Start allocating structures to keep the in memory copy of the registry tree
[Samba/vl.git] / source3 / configure
blobd5d178659fa2f34463d5dacafd9b5d3808653808
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --with-fhs Use FHS-compliant paths (default=no)"
17 ac_help="$ac_help
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
21 ac_help="$ac_help
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
23 ac_help="$ac_help
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
25 ac_help="$ac_help
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
27 ac_help="$ac_help
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
29 ac_help="$ac_help
30 --enable-debug Turn on compiler debugging information (default=no)"
31 ac_help="$ac_help
32 --enable-developer Turn on developer warnings and debugging (default=no)"
33 ac_help="$ac_help
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
35 ac_help="$ac_help
36 --enable-dmalloc Enable heap debugging [default=no]"
37 ac_help="$ac_help
38 --enable-cups Turn on CUPS support (default=auto)"
39 ac_help="$ac_help
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
41 ac_help="$ac_help
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
43 ac_help="$ac_help
44 --with-smbwrapper Include SMB wrapper support (default=no) "
45 ac_help="$ac_help
46 --with-afs Include AFS clear-text auth support (default=no) "
47 ac_help="$ac_help
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
49 ac_help="$ac_help
50 --with-ads Active Directory support (default yes)"
51 ac_help="$ac_help
52 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
53 ac_help="$ac_help
54 --with-ldap LDAP support (default yes)"
55 ac_help="$ac_help
56 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)"
57 ac_help="$ac_help
58 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)"
59 ac_help="$ac_help
60 --disable-mysqltest Do not try to compile and run a test MYSQL program"
61 ac_help="$ac_help
62 --with-xml-prefix=PFX Prefix where libxml is installed (optional)"
63 ac_help="$ac_help
64 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)"
65 ac_help="$ac_help
66 --disable-xmltest Do not try to compile and run a test LIBXML program"
67 ac_help="$ac_help
68 --with-automount Include automount support (default=no)"
69 ac_help="$ac_help
70 --with-smbmount Include smbmount (Linux only) support (default=no)"
71 ac_help="$ac_help
72 --with-pam Include PAM support (default=no)"
73 ac_help="$ac_help
74 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
75 ac_help="$ac_help
76 --with-sam Build new (experimental) SAM database (default=no)"
77 ac_help="$ac_help
78 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
79 ac_help="$ac_help
80 --with-tdbsam Include experimental TDB SAM support (default=no)"
81 ac_help="$ac_help
82 --with-nisplussam Include NISPLUS SAM support (default=no)"
83 ac_help="$ac_help
84 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
85 ac_help="$ac_help
86 --with-syslog Include experimental SYSLOG support (default=no)"
87 ac_help="$ac_help
88 --with-profiling-data Include gathering source code profile information (default=no)"
89 ac_help="$ac_help
90 --with-quotas Include experimental disk-quota support (default=no)"
91 ac_help="$ac_help
92 --with-utmp Include experimental utmp accounting (default=no)"
93 ac_help="$ac_help
94 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
95 ac_help="$ac_help
96 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
97 ac_help="$ac_help
98 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
99 ac_help="$ac_help
100 --with-acl-support Include ACL support (default=no)"
101 ac_help="$ac_help
102 --with-sendfile-support Check for sendfile support (default=yes)"
103 ac_help="$ac_help
104 --with-winbind Build winbind (default, if supported by OS)"
105 ac_help="$ac_help
106 --with-included-popt use bundled popt library, not from system"
107 ac_help="$ac_help
108 --with-python=PYTHONNAME build Python libraries"
110 # Initialize some variables set by options.
111 # The variables have the same names as the options, with
112 # dashes changed to underlines.
113 build=NONE
114 cache_file=./config.cache
115 exec_prefix=NONE
116 host=NONE
117 no_create=
118 nonopt=NONE
119 no_recursion=
120 prefix=NONE
121 program_prefix=NONE
122 program_suffix=NONE
123 program_transform_name=s,x,x,
124 silent=
125 site=
126 srcdir=
127 target=NONE
128 verbose=
129 x_includes=NONE
130 x_libraries=NONE
131 bindir='${exec_prefix}/bin'
132 sbindir='${exec_prefix}/sbin'
133 libexecdir='${exec_prefix}/libexec'
134 datadir='${prefix}/share'
135 sysconfdir='${prefix}/etc'
136 sharedstatedir='${prefix}/com'
137 localstatedir='${prefix}/var'
138 libdir='${exec_prefix}/lib'
139 includedir='${prefix}/include'
140 oldincludedir='/usr/include'
141 infodir='${prefix}/info'
142 mandir='${prefix}/man'
144 # Initialize some other variables.
145 subdirs=
146 MFLAGS= MAKEFLAGS=
147 SHELL=${CONFIG_SHELL-/bin/sh}
148 # Maximum number of lines to put in a shell here document.
149 ac_max_here_lines=12
151 ac_prev=
152 for ac_option
155 # If the previous option needs an argument, assign it.
156 if test -n "$ac_prev"; then
157 eval "$ac_prev=\$ac_option"
158 ac_prev=
159 continue
162 case "$ac_option" in
163 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
164 *) ac_optarg= ;;
165 esac
167 # Accept the important Cygnus configure options, so we can diagnose typos.
169 case "$ac_option" in
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 ac_prev=bindir ;;
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
174 bindir="$ac_optarg" ;;
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build="$ac_optarg" ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file="$ac_optarg" ;;
188 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
189 ac_prev=datadir ;;
190 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
191 | --da=*)
192 datadir="$ac_optarg" ;;
194 -disable-* | --disable-*)
195 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
201 eval "enable_${ac_feature}=no" ;;
203 -enable-* | --enable-*)
204 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
205 # Reject names that are not valid shell variable names.
206 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
207 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
209 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
210 case "$ac_option" in
211 *=*) ;;
212 *) ac_optarg=yes ;;
213 esac
214 eval "enable_${ac_feature}='$ac_optarg'" ;;
216 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
217 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
218 | --exec | --exe | --ex)
219 ac_prev=exec_prefix ;;
220 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
221 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
222 | --exec=* | --exe=* | --ex=*)
223 exec_prefix="$ac_optarg" ;;
225 -gas | --gas | --ga | --g)
226 # Obsolete; use --with-gas.
227 with_gas=yes ;;
229 -help | --help | --hel | --he)
230 # Omit some internal or obsolete options to make the list less imposing.
231 # This message is too long to be a string in the A/UX 3.1 sh.
232 cat << EOF
233 Usage: configure [options] [host]
234 Options: [defaults in brackets after descriptions]
235 Configuration:
236 --cache-file=FILE cache test results in FILE
237 --help print this message
238 --no-create do not create output files
239 --quiet, --silent do not print \`checking...' messages
240 --version print the version of autoconf that created configure
241 Directory and file names:
242 --prefix=PREFIX install architecture-independent files in PREFIX
243 [$ac_default_prefix]
244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
245 [same as prefix]
246 --bindir=DIR user executables in DIR [EPREFIX/bin]
247 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
248 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
249 --datadir=DIR read-only architecture-independent data in DIR
250 [PREFIX/share]
251 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
252 --sharedstatedir=DIR modifiable architecture-independent data in DIR
253 [PREFIX/com]
254 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
255 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
256 --includedir=DIR C header files in DIR [PREFIX/include]
257 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
258 --infodir=DIR info documentation in DIR [PREFIX/info]
259 --mandir=DIR man documentation in DIR [PREFIX/man]
260 --srcdir=DIR find the sources in DIR [configure dir or ..]
261 --program-prefix=PREFIX prepend PREFIX to installed program names
262 --program-suffix=SUFFIX append SUFFIX to installed program names
263 --program-transform-name=PROGRAM
264 run sed PROGRAM on installed program names
266 cat << EOF
267 Host type:
268 --build=BUILD configure for building on BUILD [BUILD=HOST]
269 --host=HOST configure for HOST [guessed]
270 --target=TARGET configure for TARGET [TARGET=HOST]
271 Features and packages:
272 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
273 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
274 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
275 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
276 --x-includes=DIR X include files are in DIR
277 --x-libraries=DIR X library files are in DIR
279 if test -n "$ac_help"; then
280 echo "--enable and --with options recognized:$ac_help"
282 exit 0 ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host="$ac_optarg" ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir="$ac_optarg" ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 ac_prev=infodir ;;
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir="$ac_optarg" ;;
301 -libdir | --libdir | --libdi | --libd)
302 ac_prev=libdir ;;
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
304 libdir="$ac_optarg" ;;
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir="$ac_optarg" ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir="$ac_optarg" ;;
322 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 ac_prev=mandir ;;
324 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
325 mandir="$ac_optarg" ;;
327 -nfp | --nfp | --nf)
328 # Obsolete; use --without-fp.
329 with_fp=no ;;
331 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
332 | --no-cr | --no-c)
333 no_create=yes ;;
335 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
336 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
337 no_recursion=yes ;;
339 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
340 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
341 | --oldin | --oldi | --old | --ol | --o)
342 ac_prev=oldincludedir ;;
343 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
344 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
345 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
346 oldincludedir="$ac_optarg" ;;
348 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 ac_prev=prefix ;;
350 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
351 prefix="$ac_optarg" ;;
353 -program-prefix | --program-prefix | --program-prefi | --program-pref \
354 | --program-pre | --program-pr | --program-p)
355 ac_prev=program_prefix ;;
356 -program-prefix=* | --program-prefix=* | --program-prefi=* \
357 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
358 program_prefix="$ac_optarg" ;;
360 -program-suffix | --program-suffix | --program-suffi | --program-suff \
361 | --program-suf | --program-su | --program-s)
362 ac_prev=program_suffix ;;
363 -program-suffix=* | --program-suffix=* | --program-suffi=* \
364 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
365 program_suffix="$ac_optarg" ;;
367 -program-transform-name | --program-transform-name \
368 | --program-transform-nam | --program-transform-na \
369 | --program-transform-n | --program-transform- \
370 | --program-transform | --program-transfor \
371 | --program-transfo | --program-transf \
372 | --program-trans | --program-tran \
373 | --progr-tra | --program-tr | --program-t)
374 ac_prev=program_transform_name ;;
375 -program-transform-name=* | --program-transform-name=* \
376 | --program-transform-nam=* | --program-transform-na=* \
377 | --program-transform-n=* | --program-transform-=* \
378 | --program-transform=* | --program-transfor=* \
379 | --program-transfo=* | --program-transf=* \
380 | --program-trans=* | --program-tran=* \
381 | --progr-tra=* | --program-tr=* | --program-t=*)
382 program_transform_name="$ac_optarg" ;;
384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
385 | -silent | --silent | --silen | --sile | --sil)
386 silent=yes ;;
388 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 ac_prev=sbindir ;;
390 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 | --sbi=* | --sb=*)
392 sbindir="$ac_optarg" ;;
394 -sharedstatedir | --sharedstatedir | --sharedstatedi \
395 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
396 | --sharedst | --shareds | --shared | --share | --shar \
397 | --sha | --sh)
398 ac_prev=sharedstatedir ;;
399 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
400 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
401 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 | --sha=* | --sh=*)
403 sharedstatedir="$ac_optarg" ;;
405 -site | --site | --sit)
406 ac_prev=site ;;
407 -site=* | --site=* | --sit=*)
408 site="$ac_optarg" ;;
410 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 ac_prev=srcdir ;;
412 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
413 srcdir="$ac_optarg" ;;
415 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
416 | --syscon | --sysco | --sysc | --sys | --sy)
417 ac_prev=sysconfdir ;;
418 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
419 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
420 sysconfdir="$ac_optarg" ;;
422 -target | --target | --targe | --targ | --tar | --ta | --t)
423 ac_prev=target ;;
424 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
425 target="$ac_optarg" ;;
427 -v | -verbose | --verbose | --verbos | --verbo | --verb)
428 verbose=yes ;;
430 -version | --version | --versio | --versi | --vers)
431 echo "configure generated by autoconf version 2.13"
432 exit 0 ;;
434 -with-* | --with-*)
435 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
436 # Reject names that are not valid shell variable names.
437 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
438 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
440 ac_package=`echo $ac_package| sed 's/-/_/g'`
441 case "$ac_option" in
442 *=*) ;;
443 *) ac_optarg=yes ;;
444 esac
445 eval "with_${ac_package}='$ac_optarg'" ;;
447 -without-* | --without-*)
448 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
449 # Reject names that are not valid shell variable names.
450 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
453 ac_package=`echo $ac_package| sed 's/-/_/g'`
454 eval "with_${ac_package}=no" ;;
456 --x)
457 # Obsolete; use --with-x.
458 with_x=yes ;;
460 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
461 | --x-incl | --x-inc | --x-in | --x-i)
462 ac_prev=x_includes ;;
463 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
464 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
465 x_includes="$ac_optarg" ;;
467 -x-libraries | --x-libraries | --x-librarie | --x-librari \
468 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
469 ac_prev=x_libraries ;;
470 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
471 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
472 x_libraries="$ac_optarg" ;;
474 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
478 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
479 echo "configure: warning: $ac_option: invalid host type" 1>&2
481 if test "x$nonopt" != xNONE; then
482 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
484 nonopt="$ac_option"
487 esac
488 done
490 if test -n "$ac_prev"; then
491 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
496 # File descriptor usage:
497 # 0 standard input
498 # 1 file creation
499 # 2 errors and warnings
500 # 3 some systems may open it to /dev/tty
501 # 4 used on the Kubota Titan
502 # 6 checking for... messages and results
503 # 5 compiler messages saved in config.log
504 if test "$silent" = yes; then
505 exec 6>/dev/null
506 else
507 exec 6>&1
509 exec 5>./config.log
511 echo "\
512 This file contains any messages produced by compilers while
513 running configure, to aid debugging if configure makes a mistake.
514 " 1>&5
516 # Strip out --no-create and --no-recursion so they do not pile up.
517 # Also quote any args containing shell metacharacters.
518 ac_configure_args=
519 for ac_arg
521 case "$ac_arg" in
522 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
523 | --no-cr | --no-c) ;;
524 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
525 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
527 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
528 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
529 esac
530 done
532 # NLS nuisances.
533 # Only set these to C if already set. These must not be set unconditionally
534 # because not all systems understand e.g. LANG=C (notably SCO).
535 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
536 # Non-C LC_CTYPE values break the ctype check.
537 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
538 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
539 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
540 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
543 rm -rf conftest* confdefs.h
544 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
545 echo > confdefs.h
547 # A filename unique to this package, relative to the directory that
548 # configure is in, which we can look for to find out if srcdir is correct.
549 ac_unique_file=include/includes.h
551 # Find the source files, if location was not specified.
552 if test -z "$srcdir"; then
553 ac_srcdir_defaulted=yes
554 # Try the directory containing this script, then its parent.
555 ac_prog=$0
556 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
557 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
558 srcdir=$ac_confdir
559 if test ! -r $srcdir/$ac_unique_file; then
560 srcdir=..
562 else
563 ac_srcdir_defaulted=no
565 if test ! -r $srcdir/$ac_unique_file; then
566 if test "$ac_srcdir_defaulted" = yes; then
567 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
568 else
569 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
572 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
574 # Prefer explicitly selected file to automatically selected ones.
575 if test -z "$CONFIG_SITE"; then
576 if test "x$prefix" != xNONE; then
577 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
578 else
579 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
582 for ac_site_file in $CONFIG_SITE; do
583 if test -r "$ac_site_file"; then
584 echo "loading site script $ac_site_file"
585 . "$ac_site_file"
587 done
589 if test -r "$cache_file"; then
590 echo "loading cache $cache_file"
591 . $cache_file
592 else
593 echo "creating cache $cache_file"
594 > $cache_file
597 ac_ext=c
598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
599 ac_cpp='$CPP $CPPFLAGS'
600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
602 cross_compiling=$ac_cv_prog_cc_cross
604 ac_exeext=
605 ac_objext=o
606 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
607 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
608 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
609 ac_n= ac_c='
610 ' ac_t=' '
611 else
612 ac_n=-n ac_c= ac_t=
614 else
615 ac_n= ac_c='\c' ac_t=
621 #################################################
622 # Directory handling stuff to support both the
623 # legacy SAMBA directories and FHS compliant
624 # ones...
627 # Check whether --with-fhs or --without-fhs was given.
628 if test "${with_fhs+set}" = set; then
629 withval="$with_fhs"
630 configdir="${sysconfdir}/samba"
631 lockdir="\${VARDIR}/cache/samba"
632 piddir="\${VARDIR}/run/samba"
633 logfilebase="\${VARDIR}/log/samba"
634 privatedir="\${CONFIGDIR}/private"
635 libdir="\${prefix}/lib/samba"
636 swatdir="\${DATADIR}/samba/swat"
637 else
638 configdir="\${LIBDIR}"
639 logfilebase="\${VARDIR}"
640 lockdir="\${VARDIR}/locks"
641 piddir="\${VARDIR}/locks"
642 privatedir="\${prefix}/private"
643 swatdir="\${prefix}/swat"
647 #################################################
648 # set private directory location
649 # Check whether --with-privatedir or --without-privatedir was given.
650 if test "${with_privatedir+set}" = set; then
651 withval="$with_privatedir"
652 case "$withval" in
653 yes|no)
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
660 privatedir="$withval"
662 esac
666 #################################################
667 # set lock directory location
668 # Check whether --with-lockdir or --without-lockdir was given.
669 if test "${with_lockdir+set}" = set; then
670 withval="$with_lockdir"
671 case "$withval" in
672 yes|no)
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
679 lockdir="$withval"
681 esac
685 #################################################
686 # set pid directory location
687 # Check whether --with-piddir or --without-piddir was given.
688 if test "${with_piddir+set}" = set; then
689 withval="$with_piddir"
690 case "$withval" in
691 yes|no)
693 # Just in case anybody calls it without argument
695 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
698 piddir="$withval"
700 esac
704 #################################################
705 # set SWAT directory location
706 # Check whether --with-swatdir or --without-swatdir was given.
707 if test "${with_swatdir+set}" = set; then
708 withval="$with_swatdir"
709 case "$withval" in
710 yes|no)
712 # Just in case anybody does it
714 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
717 swatdir="$withval"
719 esac
723 #################################################
724 # set configuration directory location
725 # Check whether --with-configdir or --without-configdir was given.
726 if test "${with_configdir+set}" = set; then
727 withval="$with_configdir"
728 case "$withval" in
729 yes|no)
731 # Just in case anybody does it
733 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
736 configdir="$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
789 # compile with optimization and without debugging by default
790 CFLAGS="-O ${CFLAGS}"
792 # Check whether --enable-debug or --disable-debug was given.
793 if test "${enable_debug+set}" = set; then
794 enableval="$enable_debug"
795 if eval "test x$enable_debug = xyes"; then
796 CFLAGS="${CFLAGS} -g"
801 # Check whether --enable-developer or --disable-developer was given.
802 if test "${enable_developer+set}" = set; then
803 enableval="$enable_developer"
804 if eval "test x$enable_developer = xyes"; then
805 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
810 # Check whether --enable-krb5developer or --disable-krb5developer was given.
811 if test "${enable_krb5developer+set}" = set; then
812 enableval="$enable_krb5developer"
813 if eval "test x$enable_krb5developer = xyes"; then
814 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
819 # Check whether --enable-dmalloc or --disable-dmalloc was given.
820 if test "${enable_dmalloc+set}" = set; then
821 enableval="$enable_dmalloc"
826 if test "x$enable_dmalloc" = xyes
827 then
828 cat >> confdefs.h <<\EOF
829 #define ENABLE_DMALLOC 1
832 cat >> confdefs.h <<\EOF
833 #define DMALLOC_FUNC_CHECK 1
836 LIBS="$LIBS -ldmalloc"
839 # Extract the first word of "gcc", so it can be a program name with args.
840 set dummy gcc; ac_word=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
845 else
846 if test -n "$CC"; then
847 ac_cv_prog_CC="$CC" # Let the user override the test.
848 else
849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
850 ac_dummy="$PATH"
851 for ac_dir in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir=.
853 if test -f $ac_dir/$ac_word; then
854 ac_cv_prog_CC="gcc"
855 break
857 done
858 IFS="$ac_save_ifs"
861 CC="$ac_cv_prog_CC"
862 if test -n "$CC"; then
863 echo "$ac_t""$CC" 1>&6
864 else
865 echo "$ac_t""no" 1>&6
868 if test -z "$CC"; then
869 # Extract the first word of "cc", so it can be a program name with args.
870 set dummy cc; ac_word=$2
871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
872 echo "configure:873: checking for $ac_word" >&5
873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
875 else
876 if test -n "$CC"; then
877 ac_cv_prog_CC="$CC" # Let the user override the test.
878 else
879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
880 ac_prog_rejected=no
881 ac_dummy="$PATH"
882 for ac_dir in $ac_dummy; do
883 test -z "$ac_dir" && ac_dir=.
884 if test -f $ac_dir/$ac_word; then
885 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
886 ac_prog_rejected=yes
887 continue
889 ac_cv_prog_CC="cc"
890 break
892 done
893 IFS="$ac_save_ifs"
894 if test $ac_prog_rejected = yes; then
895 # We found a bogon in the path, so make sure we never use it.
896 set dummy $ac_cv_prog_CC
897 shift
898 if test $# -gt 0; then
899 # We chose a different compiler from the bogus one.
900 # However, it has the same basename, so the bogon will be chosen
901 # first if we set CC to just the basename; use the full file name.
902 shift
903 set dummy "$ac_dir/$ac_word" "$@"
904 shift
905 ac_cv_prog_CC="$@"
910 CC="$ac_cv_prog_CC"
911 if test -n "$CC"; then
912 echo "$ac_t""$CC" 1>&6
913 else
914 echo "$ac_t""no" 1>&6
917 if test -z "$CC"; then
918 case "`uname -s`" in
919 *win32* | *WIN32*)
920 # Extract the first word of "cl", so it can be a program name with args.
921 set dummy cl; ac_word=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926 else
927 if test -n "$CC"; then
928 ac_cv_prog_CC="$CC" # Let the user override the test.
929 else
930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
931 ac_dummy="$PATH"
932 for ac_dir in $ac_dummy; do
933 test -z "$ac_dir" && ac_dir=.
934 if test -f $ac_dir/$ac_word; then
935 ac_cv_prog_CC="cl"
936 break
938 done
939 IFS="$ac_save_ifs"
942 CC="$ac_cv_prog_CC"
943 if test -n "$CC"; then
944 echo "$ac_t""$CC" 1>&6
945 else
946 echo "$ac_t""no" 1>&6
949 esac
951 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
954 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
955 echo "configure:956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
957 ac_ext=c
958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
959 ac_cpp='$CPP $CPPFLAGS'
960 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
961 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
962 cross_compiling=$ac_cv_prog_cc_cross
964 cat > conftest.$ac_ext << EOF
966 #line 967 "configure"
967 #include "confdefs.h"
969 main(){return(0);}
971 if { (eval echo configure:972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
972 ac_cv_prog_cc_works=yes
973 # If we can't run a trivial program, we are probably using a cross compiler.
974 if (./conftest; exit) 2>/dev/null; then
975 ac_cv_prog_cc_cross=no
976 else
977 ac_cv_prog_cc_cross=yes
979 else
980 echo "configure: failed program was:" >&5
981 cat conftest.$ac_ext >&5
982 ac_cv_prog_cc_works=no
984 rm -fr conftest*
985 ac_ext=c
986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
987 ac_cpp='$CPP $CPPFLAGS'
988 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
989 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
990 cross_compiling=$ac_cv_prog_cc_cross
992 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
993 if test $ac_cv_prog_cc_works = no; then
994 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
996 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
997 echo "configure:998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
998 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
999 cross_compiling=$ac_cv_prog_cc_cross
1001 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether we are using GNU C" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1005 else
1006 cat > conftest.c <<EOF
1007 #ifdef __GNUC__
1008 yes;
1009 #endif
1011 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1012 ac_cv_prog_gcc=yes
1013 else
1014 ac_cv_prog_gcc=no
1018 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1020 if test $ac_cv_prog_gcc = yes; then
1021 GCC=yes
1022 else
1023 GCC=
1026 ac_test_CFLAGS="${CFLAGS+set}"
1027 ac_save_CFLAGS="$CFLAGS"
1028 CFLAGS=
1029 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1030 echo "configure:1031: checking whether ${CC-cc} accepts -g" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1033 else
1034 echo 'void f(){}' > conftest.c
1035 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1036 ac_cv_prog_cc_g=yes
1037 else
1038 ac_cv_prog_cc_g=no
1040 rm -f conftest*
1044 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1045 if test "$ac_test_CFLAGS" = set; then
1046 CFLAGS="$ac_save_CFLAGS"
1047 elif test $ac_cv_prog_cc_g = yes; then
1048 if test "$GCC" = yes; then
1049 CFLAGS="-g -O2"
1050 else
1051 CFLAGS="-g"
1053 else
1054 if test "$GCC" = yes; then
1055 CFLAGS="-O2"
1056 else
1057 CFLAGS=
1061 ac_aux_dir=
1062 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1063 if test -f $ac_dir/install-sh; then
1064 ac_aux_dir=$ac_dir
1065 ac_install_sh="$ac_aux_dir/install-sh -c"
1066 break
1067 elif test -f $ac_dir/install.sh; then
1068 ac_aux_dir=$ac_dir
1069 ac_install_sh="$ac_aux_dir/install.sh -c"
1070 break
1072 done
1073 if test -z "$ac_aux_dir"; then
1074 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1076 ac_config_guess=$ac_aux_dir/config.guess
1077 ac_config_sub=$ac_aux_dir/config.sub
1078 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1080 # Find a good install program. We prefer a C program (faster),
1081 # so one script is as good as another. But avoid the broken or
1082 # incompatible versions:
1083 # SysV /etc/install, /usr/sbin/install
1084 # SunOS /usr/etc/install
1085 # IRIX /sbin/install
1086 # AIX /bin/install
1087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1090 # ./install, which can be erroneously created by make from ./install.sh.
1091 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1092 echo "configure:1093: checking for a BSD compatible install" >&5
1093 if test -z "$INSTALL"; then
1094 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1098 for ac_dir in $PATH; do
1099 # Account for people who put trailing slashes in PATH elements.
1100 case "$ac_dir/" in
1101 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1103 # OSF1 and SCO ODT 3.0 have their own names for install.
1104 # Don't use installbsd from OSF since it installs stuff as root
1105 # by default.
1106 for ac_prog in ginstall scoinst install; do
1107 if test -f $ac_dir/$ac_prog; then
1108 if test $ac_prog = install &&
1109 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1110 # AIX install. It has an incompatible calling convention.
1112 else
1113 ac_cv_path_install="$ac_dir/$ac_prog -c"
1114 break 2
1117 done
1119 esac
1120 done
1121 IFS="$ac_save_IFS"
1124 if test "${ac_cv_path_install+set}" = set; then
1125 INSTALL="$ac_cv_path_install"
1126 else
1127 # As a last resort, use the slow shell script. We don't cache a
1128 # path for INSTALL within a source directory, because that will
1129 # break other packages using the cache if that directory is
1130 # removed, or if the path is relative.
1131 INSTALL="$ac_install_sh"
1134 echo "$ac_t""$INSTALL" 1>&6
1136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1137 # It thinks the first close brace ends the variable substitution.
1138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1144 for ac_prog in mawk gawk nawk awk
1146 # Extract the first word of "$ac_prog", so it can be a program name with args.
1147 set dummy $ac_prog; ac_word=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 if test -n "$AWK"; then
1154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1155 else
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 ac_dummy="$PATH"
1158 for ac_dir in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_AWK="$ac_prog"
1162 break
1164 done
1165 IFS="$ac_save_ifs"
1168 AWK="$ac_cv_prog_AWK"
1169 if test -n "$AWK"; then
1170 echo "$ac_t""$AWK" 1>&6
1171 else
1172 echo "$ac_t""no" 1>&6
1175 test -n "$AWK" && break
1176 done
1179 LD=ld
1180 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1181 echo "configure:1182: checking if the linker ($LD) is GNU ld" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1184 else
1185 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1186 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1187 ac_cv_prog_gnu_ld=yes
1188 else
1189 ac_cv_prog_gnu_ld=no
1193 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1196 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1197 echo "configure:1198: checking for POSIXized ISC" >&5
1198 if test -d /etc/conf/kconfig.d &&
1199 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1200 then
1201 echo "$ac_t""yes" 1>&6
1202 ISC=yes # If later tests want to check for ISC.
1203 cat >> confdefs.h <<\EOF
1204 #define _POSIX_SOURCE 1
1207 if test "$GCC" = yes; then
1208 CC="$CC -posix"
1209 else
1210 CC="$CC -Xp"
1212 else
1213 echo "$ac_t""no" 1>&6
1214 ISC=
1218 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1219 echo "configure:1220: checking for Cygwin environment" >&5
1220 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1222 else
1223 cat > conftest.$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1227 int main() {
1229 #ifndef __CYGWIN__
1230 #define __CYGWIN__ __CYGWIN32__
1231 #endif
1232 return __CYGWIN__;
1233 ; return 0; }
1235 if { (eval echo configure:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1236 rm -rf conftest*
1237 ac_cv_cygwin=yes
1238 else
1239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1241 rm -rf conftest*
1242 ac_cv_cygwin=no
1244 rm -f conftest*
1245 rm -f conftest*
1248 echo "$ac_t""$ac_cv_cygwin" 1>&6
1249 CYGWIN=
1250 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1251 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1252 echo "configure:1253: checking for mingw32 environment" >&5
1253 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 cat > conftest.$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1260 int main() {
1261 return __MINGW32__;
1262 ; return 0; }
1264 if { (eval echo configure:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1265 rm -rf conftest*
1266 ac_cv_mingw32=yes
1267 else
1268 echo "configure: failed program was:" >&5
1269 cat conftest.$ac_ext >&5
1270 rm -rf conftest*
1271 ac_cv_mingw32=no
1273 rm -f conftest*
1274 rm -f conftest*
1277 echo "$ac_t""$ac_cv_mingw32" 1>&6
1278 MINGW32=
1279 test "$ac_cv_mingw32" = yes && MINGW32=yes
1282 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1283 echo "configure:1284: checking for executable suffix" >&5
1284 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286 else
1287 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1288 ac_cv_exeext=.exe
1289 else
1290 rm -f conftest*
1291 echo 'int main () { return 0; }' > conftest.$ac_ext
1292 ac_cv_exeext=
1293 if { (eval echo configure:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1294 for file in conftest.*; do
1295 case $file in
1296 *.$ac_ext | *.c | *.o | *.obj) ;;
1297 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1298 esac
1299 done
1300 else
1301 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1303 rm -f conftest*
1304 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1308 EXEEXT=""
1309 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1310 echo "$ac_t""${ac_cv_exeext}" 1>&6
1311 ac_exeext=$EXEEXT
1314 if test "x$CC" != xcc; then
1315 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1316 echo "configure:1317: checking whether $CC and cc understand -c and -o together" >&5
1317 else
1318 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether cc understands -c and -o together" >&5
1321 set dummy $CC; ac_cc="`echo $2 |
1322 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1323 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 echo 'foo(){}' > conftest.c
1327 # Make sure it works both with $CC and with simple cc.
1328 # We do the test twice because some compilers refuse to overwrite an
1329 # existing .o file with -o, though they will create one.
1330 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1331 if { (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1332 test -f conftest.o && { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1333 then
1334 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1335 if test "x$CC" != xcc; then
1336 # Test first that cc exists at all.
1337 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1338 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1339 if { (eval echo configure:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1340 test -f conftest.o && { (eval echo configure:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1341 then
1342 # cc works too.
1344 else
1345 # cc exists but doesn't like -o.
1346 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1350 else
1351 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1353 rm -f conftest*
1356 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1357 echo "$ac_t""yes" 1>&6
1358 else
1359 echo "$ac_t""no" 1>&6
1360 cat >> confdefs.h <<\EOF
1361 #define NO_MINUS_C_MINUS_O 1
1366 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1367 BROKEN_CC=
1368 else
1369 BROKEN_CC=#
1373 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1374 echo "configure:1375: checking that the C compiler understands volatile" >&5
1375 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <sys/types.h>
1383 int main() {
1384 volatile int i = 0
1385 ; return 0; }
1387 if { (eval echo configure:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1388 rm -rf conftest*
1389 samba_cv_volatile=yes
1390 else
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1393 rm -rf conftest*
1394 samba_cv_volatile=no
1396 rm -f conftest*
1399 echo "$ac_t""$samba_cv_volatile" 1>&6
1400 if test x"$samba_cv_volatile" = x"yes"; then
1401 cat >> confdefs.h <<\EOF
1402 #define HAVE_VOLATILE 1
1409 # Do some error checking and defaulting for the host and target type.
1410 # The inputs are:
1411 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1413 # The rules are:
1414 # 1. You are not allowed to specify --host, --target, and nonopt at the
1415 # same time.
1416 # 2. Host defaults to nonopt.
1417 # 3. If nonopt is not specified, then host defaults to the current host,
1418 # as determined by config.guess.
1419 # 4. Target and build default to nonopt.
1420 # 5. If nonopt is not specified, then target and build default to host.
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 case $host---$target---$nonopt in
1425 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1426 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1427 esac
1430 # Make sure we can run config.sub.
1431 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1432 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1435 echo $ac_n "checking host system type""... $ac_c" 1>&6
1436 echo "configure:1437: checking host system type" >&5
1438 host_alias=$host
1439 case "$host_alias" in
1440 NONE)
1441 case $nonopt in
1442 NONE)
1443 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1444 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1445 fi ;;
1446 *) host_alias=$nonopt ;;
1447 esac ;;
1448 esac
1450 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1451 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$ac_t""$host" 1>&6
1456 echo $ac_n "checking target system type""... $ac_c" 1>&6
1457 echo "configure:1458: checking target system type" >&5
1459 target_alias=$target
1460 case "$target_alias" in
1461 NONE)
1462 case $nonopt in
1463 NONE) target_alias=$host_alias ;;
1464 *) target_alias=$nonopt ;;
1465 esac ;;
1466 esac
1468 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1469 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 echo "$ac_t""$target" 1>&6
1474 echo $ac_n "checking build system type""... $ac_c" 1>&6
1475 echo "configure:1476: checking build system type" >&5
1477 build_alias=$build
1478 case "$build_alias" in
1479 NONE)
1480 case $nonopt in
1481 NONE) build_alias=$host_alias ;;
1482 *) build_alias=$nonopt ;;
1483 esac ;;
1484 esac
1486 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1487 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$ac_t""$build" 1>&6
1492 test "$host_alias" != "$target_alias" &&
1493 test "$program_prefix$program_suffix$program_transform_name" = \
1494 NONENONEs,x,x, &&
1495 program_prefix=${target_alias}-
1498 case "$host_os" in
1499 *irix6*) cat >> confdefs.h <<\EOF
1500 #include <standards.h>
1504 esac
1508 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1509 echo "configure:1510: checking config.cache system type" >&5
1510 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1511 test x"$ac_cv_host_system_type" != x"$host"; } ||
1512 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1513 test x"$ac_cv_build_system_type" != x"$build"; } ||
1514 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1515 test x"$ac_cv_target_system_type" != x"$target"; }; then
1516 echo "$ac_t""different" 1>&6
1517 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1518 else
1519 echo "$ac_t""same" 1>&6
1521 ac_cv_host_system_type="$host"
1522 ac_cv_build_system_type="$build"
1523 ac_cv_target_system_type="$target"
1526 DYNEXP=
1529 # Config CPPFLAG settings for strange OS's that must be set
1530 # before other tests.
1532 case "$host_os" in
1533 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1534 *hpux*)
1536 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1537 echo "configure:1538: checking whether ${CC-cc} accepts -Ae" >&5
1538 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1540 else
1541 echo 'void f(){}' > conftest.c
1542 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1543 ac_cv_prog_cc_Ae=yes
1544 else
1545 ac_cv_prog_cc_Ae=no
1547 rm -f conftest*
1551 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1552 # mmap on HPUX is completely broken...
1553 cat >> confdefs.h <<\EOF
1554 #define MMAP_BLACKLIST 1
1557 if test $ac_cv_prog_cc_Ae = yes; then
1558 CPPFLAGS="$CPPFLAGS -Ae"
1561 # Defines needed for HPUX support.
1562 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1563 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1565 case `uname -r` in
1566 *9*|*10*)
1567 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1568 cat >> confdefs.h <<\EOF
1569 #define USE_BOTH_CRYPT_CALLS 1
1572 cat >> confdefs.h <<\EOF
1573 #define _HPUX_SOURCE 1
1576 cat >> confdefs.h <<\EOF
1577 #define _POSIX_SOURCE 1
1580 cat >> confdefs.h <<\EOF
1581 #define _ALIGNMENT_REQUIRED 1
1584 cat >> confdefs.h <<\EOF
1585 #define _MAX_ALIGNMENT 4
1589 *11*)
1590 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1591 cat >> confdefs.h <<\EOF
1592 #define USE_BOTH_CRYPT_CALLS 1
1595 cat >> confdefs.h <<\EOF
1596 #define _HPUX_SOURCE 1
1599 cat >> confdefs.h <<\EOF
1600 #define _POSIX_SOURCE 1
1603 cat >> confdefs.h <<\EOF
1604 #define _LARGEFILE64_SOURCE 1
1607 cat >> confdefs.h <<\EOF
1608 #define _ALIGNMENT_REQUIRED 1
1611 cat >> confdefs.h <<\EOF
1612 #define _MAX_ALIGNMENT 4
1616 esac
1617 DYNEXP="-Wl,-E"
1621 # CRAY Unicos has broken const handling
1622 *unicos*)
1623 echo "$ac_t""disabling const" 1>&6
1624 CPPFLAGS="$CPPFLAGS -Dconst="
1628 # AIX4.x doesn't even admit to having large
1629 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1631 *aix4*)
1632 echo "$ac_t""enabling large file support" 1>&6
1633 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1634 cat >> confdefs.h <<\EOF
1635 #define _LARGE_FILES 1
1640 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1641 # to the existance of large files..
1642 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1643 # recommendations on large file support, however it makes the
1644 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1645 # recommendation makes the compile fail on gcc2.7. JRA.
1647 *solaris*)
1648 case `uname -r` in
1649 5.0*|5.1*|5.2*|5.3*|5.5*)
1650 echo "$ac_t""no large file support" 1>&6
1652 5.*)
1653 echo "$ac_t""enabling large file support" 1>&6
1654 if test "$ac_cv_prog_gcc" = yes; then
1655 ${CC-cc} -v >conftest.c 2>&1
1656 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1657 rm -fr conftest.c
1658 case "$ac_cv_gcc_compiler_version_number" in
1659 *"gcc version 2.6"*|*"gcc version 2.7"*)
1660 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1661 cat >> confdefs.h <<\EOF
1662 #define _LARGEFILE64_SOURCE 1
1667 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1668 cat >> confdefs.h <<\EOF
1669 #define _LARGEFILE64_SOURCE 1
1672 cat >> confdefs.h <<\EOF
1673 #define _FILE_OFFSET_BITS 64
1677 esac
1678 else
1679 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1680 cat >> confdefs.h <<\EOF
1681 #define _LARGEFILE64_SOURCE 1
1684 cat >> confdefs.h <<\EOF
1685 #define _FILE_OFFSET_BITS 64
1690 esac
1693 # Tests needed for SINIX large file support.
1695 *sysv4*)
1696 if test $host = mips-sni-sysv4 ; then
1697 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1698 echo "configure:1699: checking for LFS support" >&5
1699 old_CPPFLAGS="$CPPFLAGS"
1700 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1701 if test "$cross_compiling" = yes; then
1702 SINIX_LFS_SUPPORT=cross
1703 else
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1708 #include <unistd.h>
1709 main () {
1710 #if _LFS64_LARGEFILE == 1
1711 exit(0);
1712 #else
1713 exit(1);
1714 #endif
1717 if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1718 then
1719 SINIX_LFS_SUPPORT=yes
1720 else
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1723 rm -fr conftest*
1724 SINIX_LFS_SUPPORT=no
1726 rm -fr conftest*
1729 CPPFLAGS="$old_CPPFLAGS"
1730 if test x$SINIX_LFS_SUPPORT = xyes ; then
1731 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1732 cat >> confdefs.h <<\EOF
1733 #define _LARGEFILE64_SOURCE 1
1736 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1737 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1738 LIBS="`getconf LFS64_LIBS` $LIBS"
1740 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1744 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1746 *linux*)
1747 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1748 echo "configure:1749: checking for LFS support" >&5
1749 old_CPPFLAGS="$CPPFLAGS"
1750 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1751 if test "$cross_compiling" = yes; then
1752 LINUX_LFS_SUPPORT=cross
1753 else
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1758 #include <unistd.h>
1759 #include <sys/utsname.h>
1760 main() {
1761 #if _LFS64_LARGEFILE == 1
1762 struct utsname uts;
1763 char *release;
1764 int major, minor;
1766 /* Ensure this is glibc 2.2 or higher */
1767 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1768 int libc_major = __GLIBC__;
1769 int libc_minor = __GLIBC_MINOR__;
1771 if (libc_major < 2)
1772 exit(1);
1773 if (libc_minor < 2)
1774 exit(1);
1775 #endif
1777 /* Ensure this is kernel 2.4 or higher */
1779 uname(&uts);
1780 release = uts.release;
1781 major = atoi(strsep(&release, "."));
1782 minor = atoi(strsep(&release, "."));
1784 if (major > 2 || (major == 2 && minor > 3))
1785 exit(0);
1786 exit(1);
1787 #else
1788 exit(1);
1789 #endif
1793 if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1794 then
1795 LINUX_LFS_SUPPORT=yes
1796 else
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 rm -fr conftest*
1800 LINUX_LFS_SUPPORT=no
1802 rm -fr conftest*
1805 CPPFLAGS="$old_CPPFLAGS"
1806 if test x$LINUX_LFS_SUPPORT = xyes ; then
1807 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1808 cat >> confdefs.h <<\EOF
1809 #define _LARGEFILE64_SOURCE 1
1812 cat >> confdefs.h <<\EOF
1813 #define _FILE_OFFSET_BITS 64
1816 cat >> confdefs.h <<\EOF
1817 #define _GNU_SOURCE 1
1821 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1824 *hurd*)
1825 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1826 echo "configure:1827: checking for LFS support" >&5
1827 old_CPPFLAGS="$CPPFLAGS"
1828 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1829 if test "$cross_compiling" = yes; then
1830 GLIBC_LFS_SUPPORT=cross
1831 else
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1836 #include <unistd.h>
1837 main () {
1838 #if _LFS64_LARGEFILE == 1
1839 exit(0);
1840 #else
1841 exit(1);
1842 #endif
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1846 then
1847 GLIBC_LFS_SUPPORT=yes
1848 else
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1851 rm -fr conftest*
1852 GLIBC_LFS_SUPPORT=no
1854 rm -fr conftest*
1857 CPPFLAGS="$old_CPPFLAGS"
1858 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1859 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1860 cat >> confdefs.h <<\EOF
1861 #define _LARGEFILE64_SOURCE 1
1864 cat >> confdefs.h <<\EOF
1865 #define _GNU_SOURCE 1
1869 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1872 esac
1874 echo $ac_n "checking for inline""... $ac_c" 1>&6
1875 echo "configure:1876: checking for inline" >&5
1876 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 ac_cv_c_inline=no
1880 for ac_kw in inline __inline__ __inline; do
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1885 int main() {
1886 } $ac_kw foo() {
1887 ; return 0; }
1889 if { (eval echo configure:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890 rm -rf conftest*
1891 ac_cv_c_inline=$ac_kw; break
1892 else
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1896 rm -f conftest*
1897 done
1901 echo "$ac_t""$ac_cv_c_inline" 1>&6
1902 case "$ac_cv_c_inline" in
1903 inline | yes) ;;
1904 no) cat >> confdefs.h <<\EOF
1905 #define inline
1908 *) cat >> confdefs.h <<EOF
1909 #define inline $ac_cv_c_inline
1912 esac
1914 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1915 echo "configure:1916: checking how to run the C preprocessor" >&5
1916 # On Suns, sometimes $CPP names a directory.
1917 if test -n "$CPP" && test -d "$CPP"; then
1918 CPP=
1920 if test -z "$CPP"; then
1921 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1923 else
1924 # This must be in double quotes, not single quotes, because CPP may get
1925 # substituted into the Makefile and "${CC-cc}" will confuse make.
1926 CPP="${CC-cc} -E"
1927 # On the NeXT, cc -E runs the code through the compiler's parser,
1928 # not just through cpp.
1929 cat > conftest.$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1932 #include <assert.h>
1933 Syntax Error
1935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1936 { (eval echo configure:1937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1938 if test -z "$ac_err"; then
1940 else
1941 echo "$ac_err" >&5
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1944 rm -rf conftest*
1945 CPP="${CC-cc} -E -traditional-cpp"
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949 #include <assert.h>
1950 Syntax Error
1952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1955 if test -z "$ac_err"; then
1957 else
1958 echo "$ac_err" >&5
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 rm -rf conftest*
1962 CPP="${CC-cc} -nologo -E"
1963 cat > conftest.$ac_ext <<EOF
1964 #line 1965 "configure"
1965 #include "confdefs.h"
1966 #include <assert.h>
1967 Syntax Error
1969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1972 if test -z "$ac_err"; then
1974 else
1975 echo "$ac_err" >&5
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1978 rm -rf conftest*
1979 CPP=/lib/cpp
1981 rm -f conftest*
1983 rm -f conftest*
1985 rm -f conftest*
1986 ac_cv_prog_CPP="$CPP"
1988 CPP="$ac_cv_prog_CPP"
1989 else
1990 ac_cv_prog_CPP="$CPP"
1992 echo "$ac_t""$CPP" 1>&6
1994 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1995 echo "configure:1996: checking for ANSI C header files" >&5
1996 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998 else
1999 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2002 #include <stdlib.h>
2003 #include <stdarg.h>
2004 #include <string.h>
2005 #include <float.h>
2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2011 rm -rf conftest*
2012 ac_cv_header_stdc=yes
2013 else
2014 echo "$ac_err" >&5
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 rm -rf conftest*
2018 ac_cv_header_stdc=no
2020 rm -f conftest*
2022 if test $ac_cv_header_stdc = yes; then
2023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027 #include <string.h>
2029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2030 egrep "memchr" >/dev/null 2>&1; then
2032 else
2033 rm -rf conftest*
2034 ac_cv_header_stdc=no
2036 rm -f conftest*
2040 if test $ac_cv_header_stdc = yes; then
2041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 #include <stdlib.h>
2047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2048 egrep "free" >/dev/null 2>&1; then
2050 else
2051 rm -rf conftest*
2052 ac_cv_header_stdc=no
2054 rm -f conftest*
2058 if test $ac_cv_header_stdc = yes; then
2059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2060 if test "$cross_compiling" = yes; then
2062 else
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 #include <ctype.h>
2067 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2068 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2070 int main () { int i; for (i = 0; i < 256; i++)
2071 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2072 exit (0); }
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2076 then
2078 else
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2081 rm -fr conftest*
2082 ac_cv_header_stdc=no
2084 rm -fr conftest*
2090 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2091 if test $ac_cv_header_stdc = yes; then
2092 cat >> confdefs.h <<\EOF
2093 #define STDC_HEADERS 1
2098 ac_header_dirent=no
2099 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2102 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_hdr that defines DIR" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2111 #include <$ac_hdr>
2112 int main() {
2113 DIR *dirp = 0;
2114 ; return 0; }
2116 if { (eval echo configure:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2117 rm -rf conftest*
2118 eval "ac_cv_header_dirent_$ac_safe=yes"
2119 else
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2122 rm -rf conftest*
2123 eval "ac_cv_header_dirent_$ac_safe=no"
2125 rm -f conftest*
2127 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2130 cat >> confdefs.h <<EOF
2131 #define $ac_tr_hdr 1
2133 ac_header_dirent=$ac_hdr; break
2134 else
2135 echo "$ac_t""no" 1>&6
2137 done
2138 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2139 if test $ac_header_dirent = dirent.h; then
2140 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2141 echo "configure:2142: checking for opendir in -ldir" >&5
2142 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 ac_save_LIBS="$LIBS"
2147 LIBS="-ldir $LIBS"
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 /* Override any gcc2 internal prototype to avoid an error. */
2152 /* We use char because int might match the return type of a gcc2
2153 builtin and then its argument prototype would still apply. */
2154 char opendir();
2156 int main() {
2157 opendir()
2158 ; return 0; }
2160 if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161 rm -rf conftest*
2162 eval "ac_cv_lib_$ac_lib_var=yes"
2163 else
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 rm -rf conftest*
2167 eval "ac_cv_lib_$ac_lib_var=no"
2169 rm -f conftest*
2170 LIBS="$ac_save_LIBS"
2173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2175 LIBS="$LIBS -ldir"
2176 else
2177 echo "$ac_t""no" 1>&6
2180 else
2181 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2182 echo "configure:2183: checking for opendir in -lx" >&5
2183 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2186 else
2187 ac_save_LIBS="$LIBS"
2188 LIBS="-lx $LIBS"
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 /* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2195 char opendir();
2197 int main() {
2198 opendir()
2199 ; return 0; }
2201 if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2202 rm -rf conftest*
2203 eval "ac_cv_lib_$ac_lib_var=yes"
2204 else
2205 echo "configure: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2207 rm -rf conftest*
2208 eval "ac_cv_lib_$ac_lib_var=no"
2210 rm -f conftest*
2211 LIBS="$ac_save_LIBS"
2214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2215 echo "$ac_t""yes" 1>&6
2216 LIBS="$LIBS -lx"
2217 else
2218 echo "$ac_t""no" 1>&6
2223 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2224 echo "configure:2225: checking whether time.h and sys/time.h may both be included" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2227 else
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 #include <sys/types.h>
2232 #include <sys/time.h>
2233 #include <time.h>
2234 int main() {
2235 struct tm *tp;
2236 ; return 0; }
2238 if { (eval echo configure:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2239 rm -rf conftest*
2240 ac_cv_header_time=yes
2241 else
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 rm -rf conftest*
2245 ac_cv_header_time=no
2247 rm -f conftest*
2250 echo "$ac_t""$ac_cv_header_time" 1>&6
2251 if test $ac_cv_header_time = yes; then
2252 cat >> confdefs.h <<\EOF
2253 #define TIME_WITH_SYS_TIME 1
2258 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2259 echo "configure:2260: checking for sys/wait.h that is POSIX.1 compatible" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2267 #include <sys/wait.h>
2268 #ifndef WEXITSTATUS
2269 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2270 #endif
2271 #ifndef WIFEXITED
2272 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2273 #endif
2274 int main() {
2275 int s;
2276 wait (&s);
2277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2278 ; return 0; }
2280 if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2281 rm -rf conftest*
2282 ac_cv_header_sys_wait_h=yes
2283 else
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2286 rm -rf conftest*
2287 ac_cv_header_sys_wait_h=no
2289 rm -f conftest*
2292 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2293 if test $ac_cv_header_sys_wait_h = yes; then
2294 cat >> confdefs.h <<\EOF
2295 #define HAVE_SYS_WAIT_H 1
2300 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2307 else
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #include <$ac_hdr>
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2317 rm -rf conftest*
2318 eval "ac_cv_header_$ac_safe=yes"
2319 else
2320 echo "$ac_err" >&5
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 eval "ac_cv_header_$ac_safe=no"
2326 rm -f conftest*
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h <<EOF
2332 #define $ac_tr_hdr 1
2335 else
2336 echo "$ac_t""no" 1>&6
2338 done
2340 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2347 else
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2351 #include <$ac_hdr>
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2357 rm -rf conftest*
2358 eval "ac_cv_header_$ac_safe=yes"
2359 else
2360 echo "$ac_err" >&5
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 rm -rf conftest*
2364 eval "ac_cv_header_$ac_safe=no"
2366 rm -f conftest*
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h <<EOF
2372 #define $ac_tr_hdr 1
2375 else
2376 echo "$ac_t""no" 1>&6
2378 done
2380 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <$ac_hdr>
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2397 rm -rf conftest*
2398 eval "ac_cv_header_$ac_safe=yes"
2399 else
2400 echo "$ac_err" >&5
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 eval "ac_cv_header_$ac_safe=no"
2406 rm -f conftest*
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2415 else
2416 echo "$ac_t""no" 1>&6
2418 done
2420 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2427 else
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #include <$ac_hdr>
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2437 rm -rf conftest*
2438 eval "ac_cv_header_$ac_safe=yes"
2439 else
2440 echo "$ac_err" >&5
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 rm -rf conftest*
2444 eval "ac_cv_header_$ac_safe=no"
2446 rm -f conftest*
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_hdr 1
2455 else
2456 echo "$ac_t""no" 1>&6
2458 done
2460 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2467 else
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 #include <$ac_hdr>
2473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2477 rm -rf conftest*
2478 eval "ac_cv_header_$ac_safe=yes"
2479 else
2480 echo "$ac_err" >&5
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 rm -rf conftest*
2484 eval "ac_cv_header_$ac_safe=no"
2486 rm -f conftest*
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h <<EOF
2492 #define $ac_tr_hdr 1
2495 else
2496 echo "$ac_t""no" 1>&6
2498 done
2500 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <$ac_hdr>
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2517 rm -rf conftest*
2518 eval "ac_cv_header_$ac_safe=yes"
2519 else
2520 echo "$ac_err" >&5
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 rm -rf conftest*
2524 eval "ac_cv_header_$ac_safe=no"
2526 rm -f conftest*
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2535 else
2536 echo "$ac_t""no" 1>&6
2538 done
2540 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2547 else
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2551 #include <$ac_hdr>
2553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2557 rm -rf conftest*
2558 eval "ac_cv_header_$ac_safe=yes"
2559 else
2560 echo "$ac_err" >&5
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -rf conftest*
2564 eval "ac_cv_header_$ac_safe=no"
2566 rm -f conftest*
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h <<EOF
2572 #define $ac_tr_hdr 1
2575 else
2576 echo "$ac_t""no" 1>&6
2578 done
2580 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2584 echo "configure:2585: checking for $ac_hdr" >&5
2585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2587 else
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2591 #include <$ac_hdr>
2593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2594 { (eval echo configure:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2596 if test -z "$ac_err"; then
2597 rm -rf conftest*
2598 eval "ac_cv_header_$ac_safe=yes"
2599 else
2600 echo "$ac_err" >&5
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 rm -rf conftest*
2604 eval "ac_cv_header_$ac_safe=no"
2606 rm -f conftest*
2608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2611 cat >> confdefs.h <<EOF
2612 #define $ac_tr_hdr 1
2615 else
2616 echo "$ac_t""no" 1>&6
2618 done
2620 for ac_hdr in sys/syslog.h syslog.h
2622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_hdr" >&5
2625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2627 else
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <$ac_hdr>
2633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2634 { (eval echo configure:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2636 if test -z "$ac_err"; then
2637 rm -rf conftest*
2638 eval "ac_cv_header_$ac_safe=yes"
2639 else
2640 echo "$ac_err" >&5
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -rf conftest*
2644 eval "ac_cv_header_$ac_safe=no"
2646 rm -f conftest*
2648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2651 cat >> confdefs.h <<EOF
2652 #define $ac_tr_hdr 1
2655 else
2656 echo "$ac_t""no" 1>&6
2658 done
2662 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2663 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2665 case "$host_os" in
2666 *hpux*)
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <shadow.h>
2671 int main() {
2672 struct spwd testme
2673 ; return 0; }
2675 if { (eval echo configure:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2676 rm -rf conftest*
2677 ac_cv_header_shadow_h=yes
2678 else
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2681 rm -rf conftest*
2682 ac_cv_header_shadow_h=no
2684 rm -f conftest*
2685 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2686 cat >> confdefs.h <<\EOF
2687 #define HAVE_SHADOW_H 1
2692 esac
2693 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2700 else
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 #include <$ac_hdr>
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2710 rm -rf conftest*
2711 eval "ac_cv_header_$ac_safe=yes"
2712 else
2713 echo "$ac_err" >&5
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2716 rm -rf conftest*
2717 eval "ac_cv_header_$ac_safe=no"
2719 rm -f conftest*
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h <<EOF
2725 #define $ac_tr_hdr 1
2728 else
2729 echo "$ac_t""no" 1>&6
2731 done
2733 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_hdr" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2740 else
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 #include <$ac_hdr>
2746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2750 rm -rf conftest*
2751 eval "ac_cv_header_$ac_safe=yes"
2752 else
2753 echo "$ac_err" >&5
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2756 rm -rf conftest*
2757 eval "ac_cv_header_$ac_safe=no"
2759 rm -f conftest*
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2764 cat >> confdefs.h <<EOF
2765 #define $ac_tr_hdr 1
2768 else
2769 echo "$ac_t""no" 1>&6
2771 done
2773 for ac_hdr in stropts.h poll.h
2775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_hdr" >&5
2778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2780 else
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 #include <$ac_hdr>
2786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2789 if test -z "$ac_err"; then
2790 rm -rf conftest*
2791 eval "ac_cv_header_$ac_safe=yes"
2792 else
2793 echo "$ac_err" >&5
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2796 rm -rf conftest*
2797 eval "ac_cv_header_$ac_safe=no"
2799 rm -f conftest*
2801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2804 cat >> confdefs.h <<EOF
2805 #define $ac_tr_hdr 1
2808 else
2809 echo "$ac_t""no" 1>&6
2811 done
2813 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_hdr" >&5
2818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2820 else
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 #include <$ac_hdr>
2826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2827 { (eval echo configure:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2829 if test -z "$ac_err"; then
2830 rm -rf conftest*
2831 eval "ac_cv_header_$ac_safe=yes"
2832 else
2833 echo "$ac_err" >&5
2834 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2836 rm -rf conftest*
2837 eval "ac_cv_header_$ac_safe=no"
2839 rm -f conftest*
2841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2844 cat >> confdefs.h <<EOF
2845 #define $ac_tr_hdr 1
2848 else
2849 echo "$ac_t""no" 1>&6
2851 done
2853 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_hdr" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2860 else
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 #include <$ac_hdr>
2866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2870 rm -rf conftest*
2871 eval "ac_cv_header_$ac_safe=yes"
2872 else
2873 echo "$ac_err" >&5
2874 echo "configure: failed program was:" >&5
2875 cat conftest.$ac_ext >&5
2876 rm -rf conftest*
2877 eval "ac_cv_header_$ac_safe=no"
2879 rm -f conftest*
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2884 cat >> confdefs.h <<EOF
2885 #define $ac_tr_hdr 1
2888 else
2889 echo "$ac_t""no" 1>&6
2891 done
2894 # For experimental utmp support (lastlog on some BSD-like systems)
2895 for ac_hdr in utmp.h utmpx.h lastlog.h
2897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_hdr" >&5
2900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2902 else
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906 #include <$ac_hdr>
2908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2909 { (eval echo configure:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2911 if test -z "$ac_err"; then
2912 rm -rf conftest*
2913 eval "ac_cv_header_$ac_safe=yes"
2914 else
2915 echo "$ac_err" >&5
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2918 rm -rf conftest*
2919 eval "ac_cv_header_$ac_safe=no"
2921 rm -f conftest*
2923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2926 cat >> confdefs.h <<EOF
2927 #define $ac_tr_hdr 1
2930 else
2931 echo "$ac_t""no" 1>&6
2933 done
2936 # For quotas on Veritas VxFS filesystems
2937 for ac_hdr in sys/fs/vx_quota.h
2939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2941 echo "configure:2942: checking for $ac_hdr" >&5
2942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2944 else
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2948 #include <$ac_hdr>
2950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2951 { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2953 if test -z "$ac_err"; then
2954 rm -rf conftest*
2955 eval "ac_cv_header_$ac_safe=yes"
2956 else
2957 echo "$ac_err" >&5
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 rm -rf conftest*
2961 eval "ac_cv_header_$ac_safe=no"
2963 rm -f conftest*
2965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2968 cat >> confdefs.h <<EOF
2969 #define $ac_tr_hdr 1
2972 else
2973 echo "$ac_t""no" 1>&6
2975 done
2978 # For quotas on Linux XFS filesystems
2979 for ac_hdr in linux/xqm.h
2981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_hdr" >&5
2984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2986 else
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 #include <$ac_hdr>
2992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2993 { (eval echo configure:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2995 if test -z "$ac_err"; then
2996 rm -rf conftest*
2997 eval "ac_cv_header_$ac_safe=yes"
2998 else
2999 echo "$ac_err" >&5
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3002 rm -rf conftest*
3003 eval "ac_cv_header_$ac_safe=no"
3005 rm -f conftest*
3007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3010 cat >> confdefs.h <<EOF
3011 #define $ac_tr_hdr 1
3014 else
3015 echo "$ac_t""no" 1>&6
3017 done
3019 for ac_hdr in xfs/xqm.h
3021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_hdr" >&5
3024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
3030 #include <$ac_hdr>
3032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3033 { (eval echo configure:3034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3035 if test -z "$ac_err"; then
3036 rm -rf conftest*
3037 eval "ac_cv_header_$ac_safe=yes"
3038 else
3039 echo "$ac_err" >&5
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3042 rm -rf conftest*
3043 eval "ac_cv_header_$ac_safe=no"
3045 rm -f conftest*
3047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3048 echo "$ac_t""yes" 1>&6
3049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3050 cat >> confdefs.h <<EOF
3051 #define $ac_tr_hdr 1
3054 else
3055 echo "$ac_t""no" 1>&6
3057 done
3060 echo $ac_n "checking size of int""... $ac_c" 1>&6
3061 echo "configure:3062: checking size of int" >&5
3062 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3064 else
3065 if test "$cross_compiling" = yes; then
3066 ac_cv_sizeof_int=cross
3067 else
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 #include <stdio.h>
3072 #include <sys/types.h>
3073 main()
3075 FILE *f=fopen("conftestval", "w");
3076 if (!f) exit(1);
3077 fprintf(f, "%d\n", sizeof(int));
3078 exit(0);
3081 if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3082 then
3083 ac_cv_sizeof_int=`cat conftestval`
3084 else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -fr conftest*
3088 ac_cv_sizeof_int=0
3090 rm -fr conftest*
3094 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3095 cat >> confdefs.h <<EOF
3096 #define SIZEOF_INT $ac_cv_sizeof_int
3100 echo $ac_n "checking size of long""... $ac_c" 1>&6
3101 echo "configure:3102: checking size of long" >&5
3102 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3104 else
3105 if test "$cross_compiling" = yes; then
3106 ac_cv_sizeof_long=cross
3107 else
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <stdio.h>
3112 #include <sys/types.h>
3113 main()
3115 FILE *f=fopen("conftestval", "w");
3116 if (!f) exit(1);
3117 fprintf(f, "%d\n", sizeof(long));
3118 exit(0);
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3122 then
3123 ac_cv_sizeof_long=`cat conftestval`
3124 else
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 rm -fr conftest*
3128 ac_cv_sizeof_long=0
3130 rm -fr conftest*
3134 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3135 cat >> confdefs.h <<EOF
3136 #define SIZEOF_LONG $ac_cv_sizeof_long
3140 echo $ac_n "checking size of short""... $ac_c" 1>&6
3141 echo "configure:3142: checking size of short" >&5
3142 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3144 else
3145 if test "$cross_compiling" = yes; then
3146 ac_cv_sizeof_short=cross
3147 else
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <stdio.h>
3152 #include <sys/types.h>
3153 main()
3155 FILE *f=fopen("conftestval", "w");
3156 if (!f) exit(1);
3157 fprintf(f, "%d\n", sizeof(short));
3158 exit(0);
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3162 then
3163 ac_cv_sizeof_short=`cat conftestval`
3164 else
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3167 rm -fr conftest*
3168 ac_cv_sizeof_short=0
3170 rm -fr conftest*
3174 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3175 cat >> confdefs.h <<EOF
3176 #define SIZEOF_SHORT $ac_cv_sizeof_short
3181 echo $ac_n "checking for working const""... $ac_c" 1>&6
3182 echo "configure:3183: checking for working const" >&5
3183 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3185 else
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3190 int main() {
3192 /* Ultrix mips cc rejects this. */
3193 typedef int charset[2]; const charset x;
3194 /* SunOS 4.1.1 cc rejects this. */
3195 char const *const *ccp;
3196 char **p;
3197 /* NEC SVR4.0.2 mips cc rejects this. */
3198 struct point {int x, y;};
3199 static struct point const zero = {0,0};
3200 /* AIX XL C 1.02.0.0 rejects this.
3201 It does not let you subtract one const X* pointer from another in an arm
3202 of an if-expression whose if-part is not a constant expression */
3203 const char *g = "string";
3204 ccp = &g + (g ? g-g : 0);
3205 /* HPUX 7.0 cc rejects these. */
3206 ++ccp;
3207 p = (char**) ccp;
3208 ccp = (char const *const *) p;
3209 { /* SCO 3.2v4 cc rejects this. */
3210 char *t;
3211 char const *s = 0 ? (char *) 0 : (char const *) 0;
3213 *t++ = 0;
3215 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3216 int x[] = {25, 17};
3217 const int *foo = &x[0];
3218 ++foo;
3220 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3221 typedef const int *iptr;
3222 iptr p = 0;
3223 ++p;
3225 { /* AIX XL C 1.02.0.0 rejects this saying
3226 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3227 struct s { int j; const int *ap[3]; };
3228 struct s *b; b->j = 5;
3230 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3231 const int foo = 10;
3234 ; return 0; }
3236 if { (eval echo configure:3237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 rm -rf conftest*
3238 ac_cv_c_const=yes
3239 else
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 rm -rf conftest*
3243 ac_cv_c_const=no
3245 rm -f conftest*
3248 echo "$ac_t""$ac_cv_c_const" 1>&6
3249 if test $ac_cv_c_const = no; then
3250 cat >> confdefs.h <<\EOF
3251 #define const
3256 echo $ac_n "checking for inline""... $ac_c" 1>&6
3257 echo "configure:3258: checking for inline" >&5
3258 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3260 else
3261 ac_cv_c_inline=no
3262 for ac_kw in inline __inline__ __inline; do
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3267 int main() {
3268 } $ac_kw foo() {
3269 ; return 0; }
3271 if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272 rm -rf conftest*
3273 ac_cv_c_inline=$ac_kw; break
3274 else
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 rm -f conftest*
3279 done
3283 echo "$ac_t""$ac_cv_c_inline" 1>&6
3284 case "$ac_cv_c_inline" in
3285 inline | yes) ;;
3286 no) cat >> confdefs.h <<\EOF
3287 #define inline
3290 *) cat >> confdefs.h <<EOF
3291 #define inline $ac_cv_c_inline
3294 esac
3296 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3297 echo "configure:3298: checking whether byte ordering is bigendian" >&5
3298 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3300 else
3301 ac_cv_c_bigendian=unknown
3302 # See if sys/param.h defines the BYTE_ORDER macro.
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 #include <sys/types.h>
3307 #include <sys/param.h>
3308 int main() {
3310 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3311 bogus endian macros
3312 #endif
3313 ; return 0; }
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316 rm -rf conftest*
3317 # It does; now see whether it defined to BIG_ENDIAN or not.
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3322 #include <sys/param.h>
3323 int main() {
3325 #if BYTE_ORDER != BIG_ENDIAN
3326 not big endian
3327 #endif
3328 ; return 0; }
3330 if { (eval echo configure:3331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3331 rm -rf conftest*
3332 ac_cv_c_bigendian=yes
3333 else
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3336 rm -rf conftest*
3337 ac_cv_c_bigendian=no
3339 rm -f conftest*
3340 else
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3344 rm -f conftest*
3345 if test $ac_cv_c_bigendian = unknown; then
3346 if test "$cross_compiling" = yes; then
3347 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3348 else
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 main () {
3353 /* Are we little or big endian? From Harbison&Steele. */
3354 union
3356 long l;
3357 char c[sizeof (long)];
3358 } u;
3359 u.l = 1;
3360 exit (u.c[sizeof (long) - 1] == 1);
3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3364 then
3365 ac_cv_c_bigendian=no
3366 else
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3369 rm -fr conftest*
3370 ac_cv_c_bigendian=yes
3372 rm -fr conftest*
3378 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3379 if test $ac_cv_c_bigendian = yes; then
3380 cat >> confdefs.h <<\EOF
3381 #define WORDS_BIGENDIAN 1
3386 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3387 echo "configure:3388: checking whether char is unsigned" >&5
3388 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3390 else
3391 if test "$GCC" = yes; then
3392 # GCC predefines this symbol on systems where it applies.
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #ifdef __CHAR_UNSIGNED__
3398 #endif
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 egrep "yes" >/dev/null 2>&1; then
3403 rm -rf conftest*
3404 ac_cv_c_char_unsigned=yes
3405 else
3406 rm -rf conftest*
3407 ac_cv_c_char_unsigned=no
3409 rm -f conftest*
3411 else
3412 if test "$cross_compiling" = yes; then
3413 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3414 else
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3419 #if !defined(__STDC__) || __STDC__ != 1
3420 #define volatile
3421 #endif
3422 main() {
3423 volatile char c = 255; exit(c < 0);
3426 if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3427 then
3428 ac_cv_c_char_unsigned=yes
3429 else
3430 echo "configure: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3432 rm -fr conftest*
3433 ac_cv_c_char_unsigned=no
3435 rm -fr conftest*
3441 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3442 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3443 cat >> confdefs.h <<\EOF
3444 #define __CHAR_UNSIGNED__ 1
3450 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3451 echo "configure:3452: checking return type of signal handlers" >&5
3452 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3454 else
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <sys/types.h>
3459 #include <signal.h>
3460 #ifdef signal
3461 #undef signal
3462 #endif
3463 #ifdef __cplusplus
3464 extern "C" void (*signal (int, void (*)(int)))(int);
3465 #else
3466 void (*signal ()) ();
3467 #endif
3469 int main() {
3470 int i;
3471 ; return 0; }
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474 rm -rf conftest*
3475 ac_cv_type_signal=void
3476 else
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3479 rm -rf conftest*
3480 ac_cv_type_signal=int
3482 rm -f conftest*
3485 echo "$ac_t""$ac_cv_type_signal" 1>&6
3486 cat >> confdefs.h <<EOF
3487 #define RETSIGTYPE $ac_cv_type_signal
3491 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3492 echo "configure:3493: checking for uid_t in sys/types.h" >&5
3493 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3495 else
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <sys/types.h>
3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3502 egrep "uid_t" >/dev/null 2>&1; then
3503 rm -rf conftest*
3504 ac_cv_type_uid_t=yes
3505 else
3506 rm -rf conftest*
3507 ac_cv_type_uid_t=no
3509 rm -f conftest*
3513 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3514 if test $ac_cv_type_uid_t = no; then
3515 cat >> confdefs.h <<\EOF
3516 #define uid_t int
3519 cat >> confdefs.h <<\EOF
3520 #define gid_t int
3525 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3526 echo "configure:3527: checking for mode_t" >&5
3527 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3529 else
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <sys/types.h>
3534 #if STDC_HEADERS
3535 #include <stdlib.h>
3536 #include <stddef.h>
3537 #endif
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3541 rm -rf conftest*
3542 ac_cv_type_mode_t=yes
3543 else
3544 rm -rf conftest*
3545 ac_cv_type_mode_t=no
3547 rm -f conftest*
3550 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3551 if test $ac_cv_type_mode_t = no; then
3552 cat >> confdefs.h <<\EOF
3553 #define mode_t int
3558 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3559 echo "configure:3560: checking for off_t" >&5
3560 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3562 else
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 #include <sys/types.h>
3567 #if STDC_HEADERS
3568 #include <stdlib.h>
3569 #include <stddef.h>
3570 #endif
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3574 rm -rf conftest*
3575 ac_cv_type_off_t=yes
3576 else
3577 rm -rf conftest*
3578 ac_cv_type_off_t=no
3580 rm -f conftest*
3583 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3584 if test $ac_cv_type_off_t = no; then
3585 cat >> confdefs.h <<\EOF
3586 #define off_t long
3591 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3592 echo "configure:3593: checking for size_t" >&5
3593 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3595 else
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <sys/types.h>
3600 #if STDC_HEADERS
3601 #include <stdlib.h>
3602 #include <stddef.h>
3603 #endif
3605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3607 rm -rf conftest*
3608 ac_cv_type_size_t=yes
3609 else
3610 rm -rf conftest*
3611 ac_cv_type_size_t=no
3613 rm -f conftest*
3616 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3617 if test $ac_cv_type_size_t = no; then
3618 cat >> confdefs.h <<\EOF
3619 #define size_t unsigned
3624 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3625 echo "configure:3626: checking for pid_t" >&5
3626 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628 else
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3633 #if STDC_HEADERS
3634 #include <stdlib.h>
3635 #include <stddef.h>
3636 #endif
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3640 rm -rf conftest*
3641 ac_cv_type_pid_t=yes
3642 else
3643 rm -rf conftest*
3644 ac_cv_type_pid_t=no
3646 rm -f conftest*
3649 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3650 if test $ac_cv_type_pid_t = no; then
3651 cat >> confdefs.h <<\EOF
3652 #define pid_t int
3657 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3658 echo "configure:3659: checking for st_rdev in struct stat" >&5
3659 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3661 else
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 #include <sys/types.h>
3666 #include <sys/stat.h>
3667 int main() {
3668 struct stat s; s.st_rdev;
3669 ; return 0; }
3671 if { (eval echo configure:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3672 rm -rf conftest*
3673 ac_cv_struct_st_rdev=yes
3674 else
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 rm -rf conftest*
3678 ac_cv_struct_st_rdev=no
3680 rm -f conftest*
3683 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3684 if test $ac_cv_struct_st_rdev = yes; then
3685 cat >> confdefs.h <<\EOF
3686 #define HAVE_ST_RDEV 1
3691 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3692 echo "configure:3693: checking for d_off in dirent" >&5
3693 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3695 else
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3700 #include <unistd.h>
3701 #include <sys/types.h>
3702 #include <dirent.h>
3703 int main() {
3704 struct dirent d; d.d_off;
3705 ; return 0; }
3707 if { (eval echo configure:3708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3708 rm -rf conftest*
3709 ac_cv_dirent_d_off=yes
3710 else
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3713 rm -rf conftest*
3714 ac_cv_dirent_d_off=no
3716 rm -f conftest*
3719 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3720 if test $ac_cv_dirent_d_off = yes; then
3721 cat >> confdefs.h <<\EOF
3722 #define HAVE_DIRENT_D_OFF 1
3727 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3728 echo "configure:3729: checking for ino_t" >&5
3729 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3731 else
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 #include <sys/types.h>
3736 #if STDC_HEADERS
3737 #include <stdlib.h>
3738 #include <stddef.h>
3739 #endif
3741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3742 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3743 rm -rf conftest*
3744 ac_cv_type_ino_t=yes
3745 else
3746 rm -rf conftest*
3747 ac_cv_type_ino_t=no
3749 rm -f conftest*
3752 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3753 if test $ac_cv_type_ino_t = no; then
3754 cat >> confdefs.h <<\EOF
3755 #define ino_t unsigned
3760 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3761 echo "configure:3762: checking for loff_t" >&5
3762 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3764 else
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 #include <sys/types.h>
3769 #if STDC_HEADERS
3770 #include <stdlib.h>
3771 #include <stddef.h>
3772 #endif
3774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3776 rm -rf conftest*
3777 ac_cv_type_loff_t=yes
3778 else
3779 rm -rf conftest*
3780 ac_cv_type_loff_t=no
3782 rm -f conftest*
3785 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3786 if test $ac_cv_type_loff_t = no; then
3787 cat >> confdefs.h <<\EOF
3788 #define loff_t off_t
3793 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3794 echo "configure:3795: checking for offset_t" >&5
3795 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3797 else
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 #include <sys/types.h>
3802 #if STDC_HEADERS
3803 #include <stdlib.h>
3804 #include <stddef.h>
3805 #endif
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3809 rm -rf conftest*
3810 ac_cv_type_offset_t=yes
3811 else
3812 rm -rf conftest*
3813 ac_cv_type_offset_t=no
3815 rm -f conftest*
3818 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3819 if test $ac_cv_type_offset_t = no; then
3820 cat >> confdefs.h <<\EOF
3821 #define offset_t loff_t
3826 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3827 echo "configure:3828: checking for ssize_t" >&5
3828 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3830 else
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <sys/types.h>
3835 #if STDC_HEADERS
3836 #include <stdlib.h>
3837 #include <stddef.h>
3838 #endif
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3842 rm -rf conftest*
3843 ac_cv_type_ssize_t=yes
3844 else
3845 rm -rf conftest*
3846 ac_cv_type_ssize_t=no
3848 rm -f conftest*
3851 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3852 if test $ac_cv_type_ssize_t = no; then
3853 cat >> confdefs.h <<\EOF
3854 #define ssize_t int
3859 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3860 echo "configure:3861: checking for wchar_t" >&5
3861 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3863 else
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 #include <sys/types.h>
3868 #if STDC_HEADERS
3869 #include <stdlib.h>
3870 #include <stddef.h>
3871 #endif
3873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3875 rm -rf conftest*
3876 ac_cv_type_wchar_t=yes
3877 else
3878 rm -rf conftest*
3879 ac_cv_type_wchar_t=no
3881 rm -f conftest*
3884 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3885 if test $ac_cv_type_wchar_t = no; then
3886 cat >> confdefs.h <<\EOF
3887 #define wchar_t unsigned short
3893 ############################################
3894 # for cups support we need libcups, and a handful of header files
3896 # Check whether --enable-cups or --disable-cups was given.
3897 if test "${enable_cups+set}" = set; then
3898 enableval="$enable_cups"
3903 if test x$enable_cups != xno; then
3904 # Extract the first word of "cups-config", so it can be a program name with args.
3905 set dummy cups-config; ac_word=$2
3906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3907 echo "configure:3908: checking for $ac_word" >&5
3908 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3910 else
3911 case "$CUPS_CONFIG" in
3913 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3915 ?:/*)
3916 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3920 ac_dummy="$PATH"
3921 for ac_dir in $ac_dummy; do
3922 test -z "$ac_dir" && ac_dir=.
3923 if test -f $ac_dir/$ac_word; then
3924 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3925 break
3927 done
3928 IFS="$ac_save_ifs"
3930 esac
3932 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3933 if test -n "$CUPS_CONFIG"; then
3934 echo "$ac_t""$CUPS_CONFIG" 1>&6
3935 else
3936 echo "$ac_t""no" 1>&6
3940 if test "x$CUPS_CONFIG" != x; then
3941 cat >> confdefs.h <<\EOF
3942 #define HAVE_CUPS 1
3945 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3946 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3947 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3951 ############################################
3952 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
3953 for ac_func in dlopen
3955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3956 echo "configure:3957: checking for $ac_func" >&5
3957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3959 else
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 /* System header to define __stub macros and hopefully few prototypes,
3964 which can conflict with char $ac_func(); below. */
3965 #include <assert.h>
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969 char $ac_func();
3971 int main() {
3973 /* The GNU C library defines this for functions which it implements
3974 to always fail with ENOSYS. Some functions are actually named
3975 something starting with __ and the normal name is an alias. */
3976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3977 choke me
3978 #else
3979 $ac_func();
3980 #endif
3982 ; return 0; }
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3985 rm -rf conftest*
3986 eval "ac_cv_func_$ac_func=yes"
3987 else
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3990 rm -rf conftest*
3991 eval "ac_cv_func_$ac_func=no"
3993 rm -f conftest*
3996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3997 echo "$ac_t""yes" 1>&6
3998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3999 cat >> confdefs.h <<EOF
4000 #define $ac_tr_func 1
4003 else
4004 echo "$ac_t""no" 1>&6
4006 done
4008 if test x"$ac_cv_func_dlopen" = x"no"; then
4009 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4010 echo "configure:4011: checking for dlopen in -ldl" >&5
4011 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4014 else
4015 ac_save_LIBS="$LIBS"
4016 LIBS="-ldl $LIBS"
4017 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4020 /* Override any gcc2 internal prototype to avoid an error. */
4021 /* We use char because int might match the return type of a gcc2
4022 builtin and then its argument prototype would still apply. */
4023 char dlopen();
4025 int main() {
4026 dlopen()
4027 ; return 0; }
4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4030 rm -rf conftest*
4031 eval "ac_cv_lib_$ac_lib_var=yes"
4032 else
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4035 rm -rf conftest*
4036 eval "ac_cv_lib_$ac_lib_var=no"
4038 rm -f conftest*
4039 LIBS="$ac_save_LIBS"
4042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4043 echo "$ac_t""yes" 1>&6
4044 LIBS="$LIBS -ldl";
4045 cat >> confdefs.h <<\EOF
4046 #define HAVE_DLOPEN 1
4049 else
4050 echo "$ac_t""no" 1>&6
4054 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4056 ############################################
4057 # check if the compiler can do immediate structures
4058 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4059 echo "configure:4060: checking for immediate structures" >&5
4060 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4062 else
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4068 #include <stdio.h>
4069 int main() {
4071 typedef struct {unsigned x;} FOOBAR;
4072 #define X_FOOBAR(x) ((FOOBAR) { x })
4073 #define FOO_ONE X_FOOBAR(1)
4074 FOOBAR f = FOO_ONE;
4075 static struct {
4076 FOOBAR y;
4077 } f2[] = {
4078 {FOO_ONE}
4081 ; return 0; }
4083 if { (eval echo configure:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4084 rm -rf conftest*
4085 samba_cv_immediate_structures=yes
4086 else
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4089 rm -rf conftest*
4090 samba_cv_immediate_structures=no
4092 rm -f conftest*
4095 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4096 if test x"$samba_cv_immediate_structures" = x"yes"; then
4097 cat >> confdefs.h <<\EOF
4098 #define HAVE_IMMEDIATE_STRUCTURES 1
4103 ############################################
4104 # check for unix domain sockets
4105 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4106 echo "configure:4107: checking for unix domain sockets" >&5
4107 if eval "test \"`echo '$''{'samba_cv_unixsocket'+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"
4115 #include <sys/types.h>
4116 #include <stdlib.h>
4117 #include <stddef.h>
4118 #include <sys/socket.h>
4119 #include <sys/un.h>
4120 int main() {
4122 struct sockaddr_un sunaddr;
4123 sunaddr.sun_family = AF_UNIX;
4125 ; return 0; }
4127 if { (eval echo configure:4128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4128 rm -rf conftest*
4129 samba_cv_unixsocket=yes
4130 else
4131 echo "configure: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 rm -rf conftest*
4134 samba_cv_unixsocket=no
4136 rm -f conftest*
4139 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4140 if test x"$samba_cv_unixsocket" = x"yes"; then
4141 cat >> confdefs.h <<\EOF
4142 #define HAVE_UNIXSOCKET 1
4148 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4149 echo "configure:4150: checking for socklen_t type" >&5
4150 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4152 else
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4158 #include <sys/types.h>
4159 #if STDC_HEADERS
4160 #include <stdlib.h>
4161 #include <stddef.h>
4162 #endif
4163 #include <sys/socket.h>
4164 int main() {
4165 socklen_t i = 0
4166 ; return 0; }
4168 if { (eval echo configure:4169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4169 rm -rf conftest*
4170 samba_cv_socklen_t=yes
4171 else
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4174 rm -rf conftest*
4175 samba_cv_socklen_t=no
4177 rm -f conftest*
4180 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4181 if test x"$samba_cv_socklen_t" = x"yes"; then
4182 cat >> confdefs.h <<\EOF
4183 #define HAVE_SOCKLEN_T_TYPE 1
4188 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4189 echo "configure:4190: checking for sig_atomic_t type" >&5
4190 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192 else
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4198 #include <sys/types.h>
4199 #if STDC_HEADERS
4200 #include <stdlib.h>
4201 #include <stddef.h>
4202 #endif
4203 #include <signal.h>
4204 int main() {
4205 sig_atomic_t i = 0
4206 ; return 0; }
4208 if { (eval echo configure:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4209 rm -rf conftest*
4210 samba_cv_sig_atomic_t=yes
4211 else
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 rm -rf conftest*
4215 samba_cv_sig_atomic_t=no
4217 rm -f conftest*
4220 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4221 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_SIG_ATOMIC_T_TYPE 1
4228 # stupid headers have the functions but no declaration. grrrr.
4230 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4231 echo "configure:4232: checking for errno declaration" >&5
4232 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234 else
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 #include <errno.h>
4240 int main() {
4241 int i = (int)errno
4242 ; return 0; }
4244 if { (eval echo configure:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4245 rm -rf conftest*
4246 ac_cv_have_errno_decl=yes
4247 else
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 ac_cv_have_errno_decl=no
4253 rm -f conftest*
4256 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4257 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4258 cat >> confdefs.h <<\EOF
4259 #define HAVE_ERRNO_DECL 1
4265 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4266 echo "configure:4267: checking for setresuid declaration" >&5
4267 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4269 else
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 #include <unistd.h>
4275 int main() {
4276 int i = (int)setresuid
4277 ; return 0; }
4279 if { (eval echo configure:4280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4280 rm -rf conftest*
4281 ac_cv_have_setresuid_decl=yes
4282 else
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4285 rm -rf conftest*
4286 ac_cv_have_setresuid_decl=no
4288 rm -f conftest*
4291 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4292 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4293 cat >> confdefs.h <<\EOF
4294 #define HAVE_SETRESUID_DECL 1
4300 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4301 echo "configure:4302: checking for setresgid declaration" >&5
4302 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4304 else
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 #include <unistd.h>
4310 int main() {
4311 int i = (int)setresgid
4312 ; return 0; }
4314 if { (eval echo configure:4315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4315 rm -rf conftest*
4316 ac_cv_have_setresgid_decl=yes
4317 else
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4320 rm -rf conftest*
4321 ac_cv_have_setresgid_decl=no
4323 rm -f conftest*
4326 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4327 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4328 cat >> confdefs.h <<\EOF
4329 #define HAVE_SETRESGID_DECL 1
4335 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4336 echo "configure:4337: checking for asprintf declaration" >&5
4337 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4339 else
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 #include <stdio.h>
4345 int main() {
4346 int i = (int)asprintf
4347 ; return 0; }
4349 if { (eval echo configure:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4350 rm -rf conftest*
4351 ac_cv_have_asprintf_decl=yes
4352 else
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4355 rm -rf conftest*
4356 ac_cv_have_asprintf_decl=no
4358 rm -f conftest*
4361 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4362 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4363 cat >> confdefs.h <<\EOF
4364 #define HAVE_ASPRINTF_DECL 1
4370 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4371 echo "configure:4372: checking for vasprintf declaration" >&5
4372 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4374 else
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 #include <stdio.h>
4380 int main() {
4381 int i = (int)vasprintf
4382 ; return 0; }
4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4385 rm -rf conftest*
4386 ac_cv_have_vasprintf_decl=yes
4387 else
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4390 rm -rf conftest*
4391 ac_cv_have_vasprintf_decl=no
4393 rm -f conftest*
4396 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4397 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4398 cat >> confdefs.h <<\EOF
4399 #define HAVE_VASPRINTF_DECL 1
4405 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4406 echo "configure:4407: checking for vsnprintf declaration" >&5
4407 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4409 else
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 #include <stdio.h>
4415 int main() {
4416 int i = (int)vsnprintf
4417 ; return 0; }
4419 if { (eval echo configure:4420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4420 rm -rf conftest*
4421 ac_cv_have_vsnprintf_decl=yes
4422 else
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4425 rm -rf conftest*
4426 ac_cv_have_vsnprintf_decl=no
4428 rm -f conftest*
4431 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4432 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4433 cat >> confdefs.h <<\EOF
4434 #define HAVE_VSNPRINTF_DECL 1
4440 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4441 echo "configure:4442: checking for snprintf declaration" >&5
4442 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4444 else
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 #include <stdio.h>
4450 int main() {
4451 int i = (int)snprintf
4452 ; return 0; }
4454 if { (eval echo configure:4455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4455 rm -rf conftest*
4456 ac_cv_have_snprintf_decl=yes
4457 else
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4460 rm -rf conftest*
4461 ac_cv_have_snprintf_decl=no
4463 rm -f conftest*
4466 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4467 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4468 cat >> confdefs.h <<\EOF
4469 #define HAVE_SNPRINTF_DECL 1
4475 # and glibc has setresuid under linux but the function does
4476 # nothing until kernel 2.1.44! very dumb.
4477 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4478 echo "configure:4479: checking for real setresuid" >&5
4479 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4481 else
4483 if test "$cross_compiling" = yes; then
4484 samba_cv_have_setresuid=cross
4485 else
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4489 #include <errno.h>
4490 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4493 then
4494 samba_cv_have_setresuid=yes
4495 else
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4498 rm -fr conftest*
4499 samba_cv_have_setresuid=no
4501 rm -fr conftest*
4506 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4507 if test x"$samba_cv_have_setresuid" = x"yes"; then
4508 cat >> confdefs.h <<\EOF
4509 #define HAVE_SETRESUID 1
4514 # Do the same check for setresguid...
4516 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4517 echo "configure:4518: checking for real setresgid" >&5
4518 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4520 else
4522 if test "$cross_compiling" = yes; then
4523 samba_cv_have_setresgid=cross
4524 else
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 #include <unistd.h>
4529 #include <errno.h>
4530 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4533 then
4534 samba_cv_have_setresgid=yes
4535 else
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4538 rm -fr conftest*
4539 samba_cv_have_setresgid=no
4541 rm -fr conftest*
4546 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4547 if test x"$samba_cv_have_setresgid" = x"yes"; then
4548 cat >> confdefs.h <<\EOF
4549 #define HAVE_SETRESGID 1
4554 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4555 echo "configure:4556: checking for 8-bit clean memcmp" >&5
4556 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4558 else
4559 if test "$cross_compiling" = yes; then
4560 ac_cv_func_memcmp_clean=no
4561 else
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4566 main()
4568 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4569 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4573 if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4574 then
4575 ac_cv_func_memcmp_clean=yes
4576 else
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4579 rm -fr conftest*
4580 ac_cv_func_memcmp_clean=no
4582 rm -fr conftest*
4587 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4588 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4591 ###############################################
4592 # test for where we get crypt() from
4593 for ac_func in crypt
4595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4596 echo "configure:4597: checking for $ac_func" >&5
4597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4599 else
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4603 /* System header to define __stub macros and hopefully few prototypes,
4604 which can conflict with char $ac_func(); below. */
4605 #include <assert.h>
4606 /* Override any gcc2 internal prototype to avoid an error. */
4607 /* We use char because int might match the return type of a gcc2
4608 builtin and then its argument prototype would still apply. */
4609 char $ac_func();
4611 int main() {
4613 /* The GNU C library defines this for functions which it implements
4614 to always fail with ENOSYS. Some functions are actually named
4615 something starting with __ and the normal name is an alias. */
4616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4617 choke me
4618 #else
4619 $ac_func();
4620 #endif
4622 ; return 0; }
4624 if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4625 rm -rf conftest*
4626 eval "ac_cv_func_$ac_func=yes"
4627 else
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4630 rm -rf conftest*
4631 eval "ac_cv_func_$ac_func=no"
4633 rm -f conftest*
4636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4637 echo "$ac_t""yes" 1>&6
4638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4639 cat >> confdefs.h <<EOF
4640 #define $ac_tr_func 1
4643 else
4644 echo "$ac_t""no" 1>&6
4646 done
4648 if test x"$ac_cv_func_crypt" = x"no"; then
4649 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4650 echo "configure:4651: checking for crypt in -lcrypt" >&5
4651 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4654 else
4655 ac_save_LIBS="$LIBS"
4656 LIBS="-lcrypt $LIBS"
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4663 char crypt();
4665 int main() {
4666 crypt()
4667 ; return 0; }
4669 if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4670 rm -rf conftest*
4671 eval "ac_cv_lib_$ac_lib_var=yes"
4672 else
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 eval "ac_cv_lib_$ac_lib_var=no"
4678 rm -f conftest*
4679 LIBS="$ac_save_LIBS"
4682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 AUTHLIBS="$AUTHLIBS -lcrypt";
4685 cat >> confdefs.h <<\EOF
4686 #define HAVE_CRYPT 1
4689 else
4690 echo "$ac_t""no" 1>&6
4696 ###############################################
4697 # Readline included by default unless explicitly asked not to
4698 test "${with_readline+set}" != "set" && with_readline=yes
4700 # test for where we get readline() from
4701 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether to use readline" >&5
4703 # Check whether --with-readline or --without-readline was given.
4704 if test "${with_readline+set}" = set; then
4705 withval="$with_readline"
4706 case "$with_readline" in
4707 yes)
4708 echo "$ac_t""yes" 1>&6
4710 for ac_hdr in readline.h history.h readline/readline.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
4750 for ac_hdr in readline/history.h
4752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_hdr" >&5
4755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4757 else
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761 #include <$ac_hdr>
4763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4764 { (eval echo configure:4765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4766 if test -z "$ac_err"; then
4767 rm -rf conftest*
4768 eval "ac_cv_header_$ac_safe=yes"
4769 else
4770 echo "$ac_err" >&5
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4773 rm -rf conftest*
4774 eval "ac_cv_header_$ac_safe=no"
4776 rm -f conftest*
4778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4779 echo "$ac_t""yes" 1>&6
4780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4781 cat >> confdefs.h <<EOF
4782 #define $ac_tr_hdr 1
4785 else
4786 echo "$ac_t""no" 1>&6
4788 done
4791 for ac_hdr in readline.h readline/readline.h
4793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4795 echo "configure:4796: checking for $ac_hdr" >&5
4796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4798 else
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 #include <$ac_hdr>
4804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4805 { (eval echo configure:4806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4807 if test -z "$ac_err"; then
4808 rm -rf conftest*
4809 eval "ac_cv_header_$ac_safe=yes"
4810 else
4811 echo "$ac_err" >&5
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 rm -rf conftest*
4815 eval "ac_cv_header_$ac_safe=no"
4817 rm -f conftest*
4819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4820 echo "$ac_t""yes" 1>&6
4821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4822 cat >> confdefs.h <<EOF
4823 #define $ac_tr_hdr 1
4826 for termlib in ncurses curses termcap terminfo termlib; do
4827 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4828 echo "configure:4829: checking for tgetent in -l${termlib}" >&5
4829 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4832 else
4833 ac_save_LIBS="$LIBS"
4834 LIBS="-l${termlib} $LIBS"
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 /* Override any gcc2 internal prototype to avoid an error. */
4839 /* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4841 char tgetent();
4843 int main() {
4844 tgetent()
4845 ; return 0; }
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4848 rm -rf conftest*
4849 eval "ac_cv_lib_$ac_lib_var=yes"
4850 else
4851 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 rm -rf conftest*
4854 eval "ac_cv_lib_$ac_lib_var=no"
4856 rm -f conftest*
4857 LIBS="$ac_save_LIBS"
4860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 TERMLIBS="-l${termlib}"; break
4863 else
4864 echo "$ac_t""no" 1>&6
4867 done
4868 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4869 echo "configure:4870: checking for rl_callback_handler_install in -lreadline" >&5
4870 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4873 else
4874 ac_save_LIBS="$LIBS"
4875 LIBS="-lreadline $TERMLIBS $LIBS"
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 /* Override any gcc2 internal prototype to avoid an error. */
4880 /* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */
4882 char rl_callback_handler_install();
4884 int main() {
4885 rl_callback_handler_install()
4886 ; return 0; }
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889 rm -rf conftest*
4890 eval "ac_cv_lib_$ac_lib_var=yes"
4891 else
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4894 rm -rf conftest*
4895 eval "ac_cv_lib_$ac_lib_var=no"
4897 rm -f conftest*
4898 LIBS="$ac_save_LIBS"
4901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4902 echo "$ac_t""yes" 1>&6
4903 TERMLIBS="-lreadline $TERMLIBS"
4904 cat >> confdefs.h <<\EOF
4905 #define HAVE_LIBREADLINE 1
4908 break
4909 else
4910 echo "$ac_t""no" 1>&6
4911 TERMLIBS=
4914 else
4915 echo "$ac_t""no" 1>&6
4917 done
4921 echo "$ac_t""no" 1>&6
4924 echo "$ac_t""yes" 1>&6
4926 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4927 # alternate readline path
4928 _ldflags=${LDFLAGS}
4929 _cppflags=${CPPFLAGS}
4931 # Add additional search path
4932 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4933 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4935 for ac_hdr in readline.h history.h readline/readline.h
4937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_hdr" >&5
4940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4942 else
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 #include <$ac_hdr>
4948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4949 { (eval echo configure:4950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4951 if test -z "$ac_err"; then
4952 rm -rf conftest*
4953 eval "ac_cv_header_$ac_safe=yes"
4954 else
4955 echo "$ac_err" >&5
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4958 rm -rf conftest*
4959 eval "ac_cv_header_$ac_safe=no"
4961 rm -f conftest*
4963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4966 cat >> confdefs.h <<EOF
4967 #define $ac_tr_hdr 1
4970 else
4971 echo "$ac_t""no" 1>&6
4973 done
4975 for ac_hdr in readline/history.h
4977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4979 echo "configure:4980: checking for $ac_hdr" >&5
4980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4982 else
4983 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4986 #include <$ac_hdr>
4988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4989 { (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4991 if test -z "$ac_err"; then
4992 rm -rf conftest*
4993 eval "ac_cv_header_$ac_safe=yes"
4994 else
4995 echo "$ac_err" >&5
4996 echo "configure: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4998 rm -rf conftest*
4999 eval "ac_cv_header_$ac_safe=no"
5001 rm -f conftest*
5003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5006 cat >> confdefs.h <<EOF
5007 #define $ac_tr_hdr 1
5010 else
5011 echo "$ac_t""no" 1>&6
5013 done
5016 for ac_hdr in readline.h readline/readline.h
5018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5020 echo "configure:5021: checking for $ac_hdr" >&5
5021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5023 else
5024 cat > conftest.$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5027 #include <$ac_hdr>
5029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5030 { (eval echo configure:5031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5032 if test -z "$ac_err"; then
5033 rm -rf conftest*
5034 eval "ac_cv_header_$ac_safe=yes"
5035 else
5036 echo "$ac_err" >&5
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5039 rm -rf conftest*
5040 eval "ac_cv_header_$ac_safe=no"
5042 rm -f conftest*
5044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5047 cat >> confdefs.h <<EOF
5048 #define $ac_tr_hdr 1
5051 for termlib in ncurses curses termcap terminfo termlib; do
5052 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5053 echo "configure:5054: checking for tgetent in -l${termlib}" >&5
5054 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5057 else
5058 ac_save_LIBS="$LIBS"
5059 LIBS="-l${termlib} $LIBS"
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063 /* Override any gcc2 internal prototype to avoid an error. */
5064 /* We use char because int might match the return type of a gcc2
5065 builtin and then its argument prototype would still apply. */
5066 char tgetent();
5068 int main() {
5069 tgetent()
5070 ; return 0; }
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5073 rm -rf conftest*
5074 eval "ac_cv_lib_$ac_lib_var=yes"
5075 else
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5078 rm -rf conftest*
5079 eval "ac_cv_lib_$ac_lib_var=no"
5081 rm -f conftest*
5082 LIBS="$ac_save_LIBS"
5085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5086 echo "$ac_t""yes" 1>&6
5087 TERMLIBS="-l${termlib}"; break
5088 else
5089 echo "$ac_t""no" 1>&6
5092 done
5093 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5094 echo "configure:5095: checking for rl_callback_handler_install in -lreadline" >&5
5095 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5098 else
5099 ac_save_LIBS="$LIBS"
5100 LIBS="-lreadline $TERMLIBS $LIBS"
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5107 char rl_callback_handler_install();
5109 int main() {
5110 rl_callback_handler_install()
5111 ; return 0; }
5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5114 rm -rf conftest*
5115 eval "ac_cv_lib_$ac_lib_var=yes"
5116 else
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5119 rm -rf conftest*
5120 eval "ac_cv_lib_$ac_lib_var=no"
5122 rm -f conftest*
5123 LIBS="$ac_save_LIBS"
5126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6
5128 TERMLDFLAGS="-L$with_readline/lib"
5129 TERMCPPFLAGS="-I$with_readline/include"
5130 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
5131 TERMLIBS="-lreadline $TERMLIBS"
5132 cat >> confdefs.h <<\EOF
5133 #define HAVE_LIBREADLINE 1
5136 break
5137 else
5138 echo "$ac_t""no" 1>&6
5139 TERMLIBS= CPPFLAGS=$_cppflags
5142 else
5143 echo "$ac_t""no" 1>&6
5145 done
5148 LDFLAGS=$_ldflags
5150 esac
5151 else
5152 echo "$ac_t""no" 1>&6
5159 # The readline API changed slightly from readline3 to readline4, so
5160 # code will generate warnings on one of them unless we have a few
5161 # special cases.
5162 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5163 echo "configure:5164: checking for rl_completion_matches in -lreadline" >&5
5164 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5167 else
5168 ac_save_LIBS="$LIBS"
5169 LIBS="-lreadline $TERMLIBS $LIBS"
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 /* Override any gcc2 internal prototype to avoid an error. */
5174 /* We use char because int might match the return type of a gcc2
5175 builtin and then its argument prototype would still apply. */
5176 char rl_completion_matches();
5178 int main() {
5179 rl_completion_matches()
5180 ; return 0; }
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5183 rm -rf conftest*
5184 eval "ac_cv_lib_$ac_lib_var=yes"
5185 else
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5188 rm -rf conftest*
5189 eval "ac_cv_lib_$ac_lib_var=no"
5191 rm -f conftest*
5192 LIBS="$ac_save_LIBS"
5195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 cat >> confdefs.h <<\EOF
5198 #define HAVE_NEW_LIBREADLINE 1
5201 else
5202 echo "$ac_t""no" 1>&6
5206 # The following test taken from the cvs sources
5207 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5208 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5209 # libsocket.so which has a bad implementation of gethostbyname (it
5210 # only looks in /etc/hosts), so we only look for -lsocket if we need
5211 # it.
5212 for ac_func in connect
5214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5215 echo "configure:5216: checking for $ac_func" >&5
5216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5218 else
5219 cat > conftest.$ac_ext <<EOF
5220 #line 5221 "configure"
5221 #include "confdefs.h"
5222 /* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char $ac_func(); below. */
5224 #include <assert.h>
5225 /* Override any gcc2 internal prototype to avoid an error. */
5226 /* We use char because int might match the return type of a gcc2
5227 builtin and then its argument prototype would still apply. */
5228 char $ac_func();
5230 int main() {
5232 /* The GNU C library defines this for functions which it implements
5233 to always fail with ENOSYS. Some functions are actually named
5234 something starting with __ and the normal name is an alias. */
5235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5236 choke me
5237 #else
5238 $ac_func();
5239 #endif
5241 ; return 0; }
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5244 rm -rf conftest*
5245 eval "ac_cv_func_$ac_func=yes"
5246 else
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5249 rm -rf conftest*
5250 eval "ac_cv_func_$ac_func=no"
5252 rm -f conftest*
5255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5256 echo "$ac_t""yes" 1>&6
5257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5258 cat >> confdefs.h <<EOF
5259 #define $ac_tr_func 1
5262 else
5263 echo "$ac_t""no" 1>&6
5265 done
5267 if test x"$ac_cv_func_connect" = x"no"; then
5268 case "$LIBS" in
5269 *-lnsl*) ;;
5270 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5271 echo "configure:5272: checking for printf in -lnsl_s" >&5
5272 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5275 else
5276 ac_save_LIBS="$LIBS"
5277 LIBS="-lnsl_s $LIBS"
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */
5284 char printf();
5286 int main() {
5287 printf()
5288 ; return 0; }
5290 if { (eval echo configure:5291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5291 rm -rf conftest*
5292 eval "ac_cv_lib_$ac_lib_var=yes"
5293 else
5294 echo "configure: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 rm -rf conftest*
5297 eval "ac_cv_lib_$ac_lib_var=no"
5299 rm -f conftest*
5300 LIBS="$ac_save_LIBS"
5303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5304 echo "$ac_t""yes" 1>&6
5305 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5307 cat >> confdefs.h <<EOF
5308 #define $ac_tr_lib 1
5311 LIBS="-lnsl_s $LIBS"
5313 else
5314 echo "$ac_t""no" 1>&6
5317 esac
5318 case "$LIBS" in
5319 *-lnsl*) ;;
5320 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5321 echo "configure:5322: checking for printf in -lnsl" >&5
5322 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5325 else
5326 ac_save_LIBS="$LIBS"
5327 LIBS="-lnsl $LIBS"
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */
5334 char printf();
5336 int main() {
5337 printf()
5338 ; return 0; }
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5341 rm -rf conftest*
5342 eval "ac_cv_lib_$ac_lib_var=yes"
5343 else
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5346 rm -rf conftest*
5347 eval "ac_cv_lib_$ac_lib_var=no"
5349 rm -f conftest*
5350 LIBS="$ac_save_LIBS"
5353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5357 cat >> confdefs.h <<EOF
5358 #define $ac_tr_lib 1
5361 LIBS="-lnsl $LIBS"
5363 else
5364 echo "$ac_t""no" 1>&6
5367 esac
5368 case "$LIBS" in
5369 *-lsocket*) ;;
5370 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5371 echo "configure:5372: checking for connect in -lsocket" >&5
5372 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5375 else
5376 ac_save_LIBS="$LIBS"
5377 LIBS="-lsocket $LIBS"
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5381 /* Override any gcc2 internal prototype to avoid an error. */
5382 /* We use char because int might match the return type of a gcc2
5383 builtin and then its argument prototype would still apply. */
5384 char connect();
5386 int main() {
5387 connect()
5388 ; return 0; }
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 rm -rf conftest*
5392 eval "ac_cv_lib_$ac_lib_var=yes"
5393 else
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 rm -rf conftest*
5397 eval "ac_cv_lib_$ac_lib_var=no"
5399 rm -f conftest*
5400 LIBS="$ac_save_LIBS"
5403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5404 echo "$ac_t""yes" 1>&6
5405 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5406 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5407 cat >> confdefs.h <<EOF
5408 #define $ac_tr_lib 1
5411 LIBS="-lsocket $LIBS"
5413 else
5414 echo "$ac_t""no" 1>&6
5417 esac
5418 case "$LIBS" in
5419 *-linet*) ;;
5420 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5421 echo "configure:5422: checking for connect in -linet" >&5
5422 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5425 else
5426 ac_save_LIBS="$LIBS"
5427 LIBS="-linet $LIBS"
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 /* Override any gcc2 internal prototype to avoid an error. */
5432 /* We use char because int might match the return type of a gcc2
5433 builtin and then its argument prototype would still apply. */
5434 char connect();
5436 int main() {
5437 connect()
5438 ; return 0; }
5440 if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5441 rm -rf conftest*
5442 eval "ac_cv_lib_$ac_lib_var=yes"
5443 else
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5446 rm -rf conftest*
5447 eval "ac_cv_lib_$ac_lib_var=no"
5449 rm -f conftest*
5450 LIBS="$ac_save_LIBS"
5453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5454 echo "$ac_t""yes" 1>&6
5455 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5457 cat >> confdefs.h <<EOF
5458 #define $ac_tr_lib 1
5461 LIBS="-linet $LIBS"
5463 else
5464 echo "$ac_t""no" 1>&6
5467 esac
5468 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5469 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5470 # ac_cv_func_connect=yes
5471 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5472 cat >> confdefs.h <<\EOF
5473 #define HAVE_CONNECT 1
5479 ###############################################
5480 # test for where we get get_yp_default_domain() from
5481 for ac_func in yp_get_default_domain
5483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5484 echo "configure:5485: checking for $ac_func" >&5
5485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5487 else
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 /* System header to define __stub macros and hopefully few prototypes,
5492 which can conflict with char $ac_func(); below. */
5493 #include <assert.h>
5494 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */
5497 char $ac_func();
5499 int main() {
5501 /* The GNU C library defines this for functions which it implements
5502 to always fail with ENOSYS. Some functions are actually named
5503 something starting with __ and the normal name is an alias. */
5504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5505 choke me
5506 #else
5507 $ac_func();
5508 #endif
5510 ; return 0; }
5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5513 rm -rf conftest*
5514 eval "ac_cv_func_$ac_func=yes"
5515 else
5516 echo "configure: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5518 rm -rf conftest*
5519 eval "ac_cv_func_$ac_func=no"
5521 rm -f conftest*
5524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5527 cat >> confdefs.h <<EOF
5528 #define $ac_tr_func 1
5531 else
5532 echo "$ac_t""no" 1>&6
5534 done
5536 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5537 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5538 echo "configure:5539: checking for yp_get_default_domain in -lnsl" >&5
5539 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5542 else
5543 ac_save_LIBS="$LIBS"
5544 LIBS="-lnsl $LIBS"
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5551 char yp_get_default_domain();
5553 int main() {
5554 yp_get_default_domain()
5555 ; return 0; }
5557 if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5558 rm -rf conftest*
5559 eval "ac_cv_lib_$ac_lib_var=yes"
5560 else
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5563 rm -rf conftest*
5564 eval "ac_cv_lib_$ac_lib_var=no"
5566 rm -f conftest*
5567 LIBS="$ac_save_LIBS"
5570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5571 echo "$ac_t""yes" 1>&6
5572 LIBS="$LIBS -lnsl";
5573 cat >> confdefs.h <<\EOF
5574 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5577 else
5578 echo "$ac_t""no" 1>&6
5583 # Check if we have execl, if not we need to compile smbrun.
5584 for ac_func in execl
5586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5587 echo "configure:5588: checking for $ac_func" >&5
5588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5590 else
5591 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5594 /* System header to define __stub macros and hopefully few prototypes,
5595 which can conflict with char $ac_func(); below. */
5596 #include <assert.h>
5597 /* Override any gcc2 internal prototype to avoid an error. */
5598 /* We use char because int might match the return type of a gcc2
5599 builtin and then its argument prototype would still apply. */
5600 char $ac_func();
5602 int main() {
5604 /* The GNU C library defines this for functions which it implements
5605 to always fail with ENOSYS. Some functions are actually named
5606 something starting with __ and the normal name is an alias. */
5607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5608 choke me
5609 #else
5610 $ac_func();
5611 #endif
5613 ; return 0; }
5615 if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5616 rm -rf conftest*
5617 eval "ac_cv_func_$ac_func=yes"
5618 else
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5621 rm -rf conftest*
5622 eval "ac_cv_func_$ac_func=no"
5624 rm -f conftest*
5627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5628 echo "$ac_t""yes" 1>&6
5629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5630 cat >> confdefs.h <<EOF
5631 #define $ac_tr_func 1
5634 else
5635 echo "$ac_t""no" 1>&6
5637 done
5639 if test x"$ac_cv_func_execl" = x"no"; then
5640 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5643 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5646 echo "configure:5647: checking for $ac_func" >&5
5647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5649 else
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 /* System header to define __stub macros and hopefully few prototypes,
5654 which can conflict with char $ac_func(); below. */
5655 #include <assert.h>
5656 /* Override any gcc2 internal prototype to avoid an error. */
5657 /* We use char because int might match the return type of a gcc2
5658 builtin and then its argument prototype would still apply. */
5659 char $ac_func();
5661 int main() {
5663 /* The GNU C library defines this for functions which it implements
5664 to always fail with ENOSYS. Some functions are actually named
5665 something starting with __ and the normal name is an alias. */
5666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5667 choke me
5668 #else
5669 $ac_func();
5670 #endif
5672 ; return 0; }
5674 if { (eval echo configure:5675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5675 rm -rf conftest*
5676 eval "ac_cv_func_$ac_func=yes"
5677 else
5678 echo "configure: failed program was:" >&5
5679 cat conftest.$ac_ext >&5
5680 rm -rf conftest*
5681 eval "ac_cv_func_$ac_func=no"
5683 rm -f conftest*
5686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5687 echo "$ac_t""yes" 1>&6
5688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5689 cat >> confdefs.h <<EOF
5690 #define $ac_tr_func 1
5693 else
5694 echo "$ac_t""no" 1>&6
5696 done
5698 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5701 echo "configure:5702: checking for $ac_func" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5704 else
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char $ac_func(); below. */
5710 #include <assert.h>
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5714 char $ac_func();
5716 int main() {
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5722 choke me
5723 #else
5724 $ac_func();
5725 #endif
5727 ; return 0; }
5729 if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5730 rm -rf conftest*
5731 eval "ac_cv_func_$ac_func=yes"
5732 else
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5735 rm -rf conftest*
5736 eval "ac_cv_func_$ac_func=no"
5738 rm -f conftest*
5741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5744 cat >> confdefs.h <<EOF
5745 #define $ac_tr_func 1
5748 else
5749 echo "$ac_t""no" 1>&6
5751 done
5753 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5756 echo "configure:5757: checking for $ac_func" >&5
5757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5758 echo $ac_n "(cached) $ac_c" 1>&6
5759 else
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 /* System header to define __stub macros and hopefully few prototypes,
5764 which can conflict with char $ac_func(); below. */
5765 #include <assert.h>
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5769 char $ac_func();
5771 int main() {
5773 /* The GNU C library defines this for functions which it implements
5774 to always fail with ENOSYS. Some functions are actually named
5775 something starting with __ and the normal name is an alias. */
5776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5777 choke me
5778 #else
5779 $ac_func();
5780 #endif
5782 ; return 0; }
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5785 rm -rf conftest*
5786 eval "ac_cv_func_$ac_func=yes"
5787 else
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5790 rm -rf conftest*
5791 eval "ac_cv_func_$ac_func=no"
5793 rm -f conftest*
5796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5799 cat >> confdefs.h <<EOF
5800 #define $ac_tr_func 1
5803 else
5804 echo "$ac_t""no" 1>&6
5806 done
5808 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5811 echo "configure:5812: checking for $ac_func" >&5
5812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5814 else
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5818 /* System header to define __stub macros and hopefully few prototypes,
5819 which can conflict with char $ac_func(); below. */
5820 #include <assert.h>
5821 /* Override any gcc2 internal prototype to avoid an error. */
5822 /* We use char because int might match the return type of a gcc2
5823 builtin and then its argument prototype would still apply. */
5824 char $ac_func();
5826 int main() {
5828 /* The GNU C library defines this for functions which it implements
5829 to always fail with ENOSYS. Some functions are actually named
5830 something starting with __ and the normal name is an alias. */
5831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5832 choke me
5833 #else
5834 $ac_func();
5835 #endif
5837 ; return 0; }
5839 if { (eval echo configure:5840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5840 rm -rf conftest*
5841 eval "ac_cv_func_$ac_func=yes"
5842 else
5843 echo "configure: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5845 rm -rf conftest*
5846 eval "ac_cv_func_$ac_func=no"
5848 rm -f conftest*
5851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5852 echo "$ac_t""yes" 1>&6
5853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5854 cat >> confdefs.h <<EOF
5855 #define $ac_tr_func 1
5858 else
5859 echo "$ac_t""no" 1>&6
5861 done
5863 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5866 echo "configure:5867: checking for $ac_func" >&5
5867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5869 else
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 /* System header to define __stub macros and hopefully few prototypes,
5874 which can conflict with char $ac_func(); below. */
5875 #include <assert.h>
5876 /* Override any gcc2 internal prototype to avoid an error. */
5877 /* We use char because int might match the return type of a gcc2
5878 builtin and then its argument prototype would still apply. */
5879 char $ac_func();
5881 int main() {
5883 /* The GNU C library defines this for functions which it implements
5884 to always fail with ENOSYS. Some functions are actually named
5885 something starting with __ and the normal name is an alias. */
5886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5887 choke me
5888 #else
5889 $ac_func();
5890 #endif
5892 ; return 0; }
5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5895 rm -rf conftest*
5896 eval "ac_cv_func_$ac_func=yes"
5897 else
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5900 rm -rf conftest*
5901 eval "ac_cv_func_$ac_func=no"
5903 rm -f conftest*
5906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5909 cat >> confdefs.h <<EOF
5910 #define $ac_tr_func 1
5913 else
5914 echo "$ac_t""no" 1>&6
5916 done
5918 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5921 echo "configure:5922: checking for $ac_func" >&5
5922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5924 else
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5928 /* System header to define __stub macros and hopefully few prototypes,
5929 which can conflict with char $ac_func(); below. */
5930 #include <assert.h>
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5934 char $ac_func();
5936 int main() {
5938 /* The GNU C library defines this for functions which it implements
5939 to always fail with ENOSYS. Some functions are actually named
5940 something starting with __ and the normal name is an alias. */
5941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5942 choke me
5943 #else
5944 $ac_func();
5945 #endif
5947 ; return 0; }
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 rm -rf conftest*
5951 eval "ac_cv_func_$ac_func=yes"
5952 else
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 rm -rf conftest*
5956 eval "ac_cv_func_$ac_func=no"
5958 rm -f conftest*
5961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h <<EOF
5965 #define $ac_tr_func 1
5968 else
5969 echo "$ac_t""no" 1>&6
5971 done
5973 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5976 echo "configure:5977: checking for $ac_func" >&5
5977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5979 else
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char $ac_func(); below. */
5985 #include <assert.h>
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5989 char $ac_func();
5991 int main() {
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5997 choke me
5998 #else
5999 $ac_func();
6000 #endif
6002 ; return 0; }
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6005 rm -rf conftest*
6006 eval "ac_cv_func_$ac_func=yes"
6007 else
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6010 rm -rf conftest*
6011 eval "ac_cv_func_$ac_func=no"
6013 rm -f conftest*
6016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6019 cat >> confdefs.h <<EOF
6020 #define $ac_tr_func 1
6023 else
6024 echo "$ac_t""no" 1>&6
6026 done
6028 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6031 echo "configure:6032: checking for $ac_func" >&5
6032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6034 else
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* System header to define __stub macros and hopefully few prototypes,
6039 which can conflict with char $ac_func(); below. */
6040 #include <assert.h>
6041 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6044 char $ac_func();
6046 int main() {
6048 /* The GNU C library defines this for functions which it implements
6049 to always fail with ENOSYS. Some functions are actually named
6050 something starting with __ and the normal name is an alias. */
6051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6052 choke me
6053 #else
6054 $ac_func();
6055 #endif
6057 ; return 0; }
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 rm -rf conftest*
6061 eval "ac_cv_func_$ac_func=yes"
6062 else
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 rm -rf conftest*
6066 eval "ac_cv_func_$ac_func=no"
6068 rm -f conftest*
6071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6072 echo "$ac_t""yes" 1>&6
6073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6074 cat >> confdefs.h <<EOF
6075 #define $ac_tr_func 1
6078 else
6079 echo "$ac_t""no" 1>&6
6081 done
6083 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
6085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_func" >&5
6087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6089 else
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char $ac_func(); below. */
6095 #include <assert.h>
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6099 char $ac_func();
6101 int main() {
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6107 choke me
6108 #else
6109 $ac_func();
6110 #endif
6112 ; return 0; }
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115 rm -rf conftest*
6116 eval "ac_cv_func_$ac_func=yes"
6117 else
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 rm -rf conftest*
6121 eval "ac_cv_func_$ac_func=no"
6123 rm -f conftest*
6126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6129 cat >> confdefs.h <<EOF
6130 #define $ac_tr_func 1
6133 else
6134 echo "$ac_t""no" 1>&6
6136 done
6138 for ac_func in syslog vsyslog getgrouplist timegm
6140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_func" >&5
6142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6144 else
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func(); below. */
6150 #include <assert.h>
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6154 char $ac_func();
6156 int main() {
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162 choke me
6163 #else
6164 $ac_func();
6165 #endif
6167 ; return 0; }
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6170 rm -rf conftest*
6171 eval "ac_cv_func_$ac_func=yes"
6172 else
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 rm -rf conftest*
6176 eval "ac_cv_func_$ac_func=no"
6178 rm -f conftest*
6181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6184 cat >> confdefs.h <<EOF
6185 #define $ac_tr_func 1
6188 else
6189 echo "$ac_t""no" 1>&6
6191 done
6193 # setbuffer, shmget, shm_open are needed for smbtorture
6194 for ac_func in setbuffer shmget shm_open
6196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_func" >&5
6198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6200 else
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char $ac_func(); below. */
6206 #include <assert.h>
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6210 char $ac_func();
6212 int main() {
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6218 choke me
6219 #else
6220 $ac_func();
6221 #endif
6223 ; return 0; }
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 rm -rf conftest*
6227 eval "ac_cv_func_$ac_func=yes"
6228 else
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6231 rm -rf conftest*
6232 eval "ac_cv_func_$ac_func=no"
6234 rm -f conftest*
6237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6240 cat >> confdefs.h <<EOF
6241 #define $ac_tr_func 1
6244 else
6245 echo "$ac_t""no" 1>&6
6247 done
6250 # syscall() is needed for smbwrapper.
6251 for ac_func in syscall
6253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6254 echo "configure:6255: checking for $ac_func" >&5
6255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6257 else
6258 cat > conftest.$ac_ext <<EOF
6259 #line 6260 "configure"
6260 #include "confdefs.h"
6261 /* System header to define __stub macros and hopefully few prototypes,
6262 which can conflict with char $ac_func(); below. */
6263 #include <assert.h>
6264 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6267 char $ac_func();
6269 int main() {
6271 /* The GNU C library defines this for functions which it implements
6272 to always fail with ENOSYS. Some functions are actually named
6273 something starting with __ and the normal name is an alias. */
6274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6275 choke me
6276 #else
6277 $ac_func();
6278 #endif
6280 ; return 0; }
6282 if { (eval echo configure:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6283 rm -rf conftest*
6284 eval "ac_cv_func_$ac_func=yes"
6285 else
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6288 rm -rf conftest*
6289 eval "ac_cv_func_$ac_func=no"
6291 rm -f conftest*
6294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6297 cat >> confdefs.h <<EOF
6298 #define $ac_tr_func 1
6301 else
6302 echo "$ac_t""no" 1>&6
6304 done
6307 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6310 echo "configure:6311: checking for $ac_func" >&5
6311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6313 else
6314 cat > conftest.$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* System header to define __stub macros and hopefully few prototypes,
6318 which can conflict with char $ac_func(); below. */
6319 #include <assert.h>
6320 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6323 char $ac_func();
6325 int main() {
6327 /* The GNU C library defines this for functions which it implements
6328 to always fail with ENOSYS. Some functions are actually named
6329 something starting with __ and the normal name is an alias. */
6330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6331 choke me
6332 #else
6333 $ac_func();
6334 #endif
6336 ; return 0; }
6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6339 rm -rf conftest*
6340 eval "ac_cv_func_$ac_func=yes"
6341 else
6342 echo "configure: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6344 rm -rf conftest*
6345 eval "ac_cv_func_$ac_func=no"
6347 rm -f conftest*
6350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6353 cat >> confdefs.h <<EOF
6354 #define $ac_tr_func 1
6357 else
6358 echo "$ac_t""no" 1>&6
6360 done
6362 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_func" >&5
6366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6368 else
6369 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char $ac_func(); below. */
6374 #include <assert.h>
6375 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6378 char $ac_func();
6380 int main() {
6382 /* The GNU C library defines this for functions which it implements
6383 to always fail with ENOSYS. Some functions are actually named
6384 something starting with __ and the normal name is an alias. */
6385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6386 choke me
6387 #else
6388 $ac_func();
6389 #endif
6391 ; return 0; }
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394 rm -rf conftest*
6395 eval "ac_cv_func_$ac_func=yes"
6396 else
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 rm -rf conftest*
6400 eval "ac_cv_func_$ac_func=no"
6402 rm -f conftest*
6405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6406 echo "$ac_t""yes" 1>&6
6407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6408 cat >> confdefs.h <<EOF
6409 #define $ac_tr_func 1
6412 else
6413 echo "$ac_t""no" 1>&6
6415 done
6417 for ac_func in __getcwd _getcwd
6419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6420 echo "configure:6421: checking for $ac_func" >&5
6421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6423 else
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 /* System header to define __stub macros and hopefully few prototypes,
6428 which can conflict with char $ac_func(); below. */
6429 #include <assert.h>
6430 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6433 char $ac_func();
6435 int main() {
6437 /* The GNU C library defines this for functions which it implements
6438 to always fail with ENOSYS. Some functions are actually named
6439 something starting with __ and the normal name is an alias. */
6440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6441 choke me
6442 #else
6443 $ac_func();
6444 #endif
6446 ; return 0; }
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6449 rm -rf conftest*
6450 eval "ac_cv_func_$ac_func=yes"
6451 else
6452 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6454 rm -rf conftest*
6455 eval "ac_cv_func_$ac_func=no"
6457 rm -f conftest*
6460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6463 cat >> confdefs.h <<EOF
6464 #define $ac_tr_func 1
6467 else
6468 echo "$ac_t""no" 1>&6
6470 done
6472 for ac_func in __xstat __fxstat __lxstat
6474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6475 echo "configure:6476: checking for $ac_func" >&5
6476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6478 else
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 /* System header to define __stub macros and hopefully few prototypes,
6483 which can conflict with char $ac_func(); below. */
6484 #include <assert.h>
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char $ac_func();
6490 int main() {
6492 /* The GNU C library defines this for functions which it implements
6493 to always fail with ENOSYS. Some functions are actually named
6494 something starting with __ and the normal name is an alias. */
6495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6496 choke me
6497 #else
6498 $ac_func();
6499 #endif
6501 ; return 0; }
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6504 rm -rf conftest*
6505 eval "ac_cv_func_$ac_func=yes"
6506 else
6507 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6509 rm -rf conftest*
6510 eval "ac_cv_func_$ac_func=no"
6512 rm -f conftest*
6515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6516 echo "$ac_t""yes" 1>&6
6517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6518 cat >> confdefs.h <<EOF
6519 #define $ac_tr_func 1
6522 else
6523 echo "$ac_t""no" 1>&6
6525 done
6527 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_func" >&5
6531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6533 else
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char $ac_func(); below. */
6539 #include <assert.h>
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6543 char $ac_func();
6545 int main() {
6547 /* The GNU C library defines this for functions which it implements
6548 to always fail with ENOSYS. Some functions are actually named
6549 something starting with __ and the normal name is an alias. */
6550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6551 choke me
6552 #else
6553 $ac_func();
6554 #endif
6556 ; return 0; }
6558 if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6559 rm -rf conftest*
6560 eval "ac_cv_func_$ac_func=yes"
6561 else
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6564 rm -rf conftest*
6565 eval "ac_cv_func_$ac_func=no"
6567 rm -f conftest*
6570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6573 cat >> confdefs.h <<EOF
6574 #define $ac_tr_func 1
6577 else
6578 echo "$ac_t""no" 1>&6
6580 done
6582 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_func" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6588 else
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func(); below. */
6594 #include <assert.h>
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6598 char $ac_func();
6600 int main() {
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6606 choke me
6607 #else
6608 $ac_func();
6609 #endif
6611 ; return 0; }
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6614 rm -rf conftest*
6615 eval "ac_cv_func_$ac_func=yes"
6616 else
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6619 rm -rf conftest*
6620 eval "ac_cv_func_$ac_func=no"
6622 rm -f conftest*
6625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6628 cat >> confdefs.h <<EOF
6629 #define $ac_tr_func 1
6632 else
6633 echo "$ac_t""no" 1>&6
6635 done
6637 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6640 echo "configure:6641: checking for $ac_func" >&5
6641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6643 else
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char $ac_func(); below. */
6649 #include <assert.h>
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6653 char $ac_func();
6655 int main() {
6657 /* The GNU C library defines this for functions which it implements
6658 to always fail with ENOSYS. Some functions are actually named
6659 something starting with __ and the normal name is an alias. */
6660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6661 choke me
6662 #else
6663 $ac_func();
6664 #endif
6666 ; return 0; }
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6669 rm -rf conftest*
6670 eval "ac_cv_func_$ac_func=yes"
6671 else
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6674 rm -rf conftest*
6675 eval "ac_cv_func_$ac_func=no"
6677 rm -f conftest*
6680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6683 cat >> confdefs.h <<EOF
6684 #define $ac_tr_func 1
6687 else
6688 echo "$ac_t""no" 1>&6
6690 done
6692 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_func" >&5
6696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6698 else
6699 cat > conftest.$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6702 /* System header to define __stub macros and hopefully few prototypes,
6703 which can conflict with char $ac_func(); below. */
6704 #include <assert.h>
6705 /* Override any gcc2 internal prototype to avoid an error. */
6706 /* We use char because int might match the return type of a gcc2
6707 builtin and then its argument prototype would still apply. */
6708 char $ac_func();
6710 int main() {
6712 /* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
6715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6716 choke me
6717 #else
6718 $ac_func();
6719 #endif
6721 ; return 0; }
6723 if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 rm -rf conftest*
6725 eval "ac_cv_func_$ac_func=yes"
6726 else
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6729 rm -rf conftest*
6730 eval "ac_cv_func_$ac_func=no"
6732 rm -f conftest*
6735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6738 cat >> confdefs.h <<EOF
6739 #define $ac_tr_func 1
6742 else
6743 echo "$ac_t""no" 1>&6
6745 done
6747 for ac_func in _write __write _fork __fork
6749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6750 echo "configure:6751: checking for $ac_func" >&5
6751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6753 else
6754 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6757 /* System header to define __stub macros and hopefully few prototypes,
6758 which can conflict with char $ac_func(); below. */
6759 #include <assert.h>
6760 /* Override any gcc2 internal prototype to avoid an error. */
6761 /* We use char because int might match the return type of a gcc2
6762 builtin and then its argument prototype would still apply. */
6763 char $ac_func();
6765 int main() {
6767 /* The GNU C library defines this for functions which it implements
6768 to always fail with ENOSYS. Some functions are actually named
6769 something starting with __ and the normal name is an alias. */
6770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6771 choke me
6772 #else
6773 $ac_func();
6774 #endif
6776 ; return 0; }
6778 if { (eval echo configure:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6779 rm -rf conftest*
6780 eval "ac_cv_func_$ac_func=yes"
6781 else
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6784 rm -rf conftest*
6785 eval "ac_cv_func_$ac_func=no"
6787 rm -f conftest*
6790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6791 echo "$ac_t""yes" 1>&6
6792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6793 cat >> confdefs.h <<EOF
6794 #define $ac_tr_func 1
6797 else
6798 echo "$ac_t""no" 1>&6
6800 done
6802 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6805 echo "configure:6806: checking for $ac_func" >&5
6806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6808 else
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char $ac_func(); below. */
6814 #include <assert.h>
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6818 char $ac_func();
6820 int main() {
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6826 choke me
6827 #else
6828 $ac_func();
6829 #endif
6831 ; return 0; }
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6834 rm -rf conftest*
6835 eval "ac_cv_func_$ac_func=yes"
6836 else
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 rm -rf conftest*
6840 eval "ac_cv_func_$ac_func=no"
6842 rm -f conftest*
6845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6848 cat >> confdefs.h <<EOF
6849 #define $ac_tr_func 1
6852 else
6853 echo "$ac_t""no" 1>&6
6855 done
6857 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6860 echo "configure:6861: checking for $ac_func" >&5
6861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6863 else
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* System header to define __stub macros and hopefully few prototypes,
6868 which can conflict with char $ac_func(); below. */
6869 #include <assert.h>
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6873 char $ac_func();
6875 int main() {
6877 /* The GNU C library defines this for functions which it implements
6878 to always fail with ENOSYS. Some functions are actually named
6879 something starting with __ and the normal name is an alias. */
6880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6881 choke me
6882 #else
6883 $ac_func();
6884 #endif
6886 ; return 0; }
6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6889 rm -rf conftest*
6890 eval "ac_cv_func_$ac_func=yes"
6891 else
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6894 rm -rf conftest*
6895 eval "ac_cv_func_$ac_func=no"
6897 rm -f conftest*
6900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6901 echo "$ac_t""yes" 1>&6
6902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6903 cat >> confdefs.h <<EOF
6904 #define $ac_tr_func 1
6907 else
6908 echo "$ac_t""no" 1>&6
6910 done
6912 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6915 echo "configure:6916: checking for $ac_func" >&5
6916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6918 else
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 /* System header to define __stub macros and hopefully few prototypes,
6923 which can conflict with char $ac_func(); below. */
6924 #include <assert.h>
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6928 char $ac_func();
6930 int main() {
6932 /* The GNU C library defines this for functions which it implements
6933 to always fail with ENOSYS. Some functions are actually named
6934 something starting with __ and the normal name is an alias. */
6935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6936 choke me
6937 #else
6938 $ac_func();
6939 #endif
6941 ; return 0; }
6943 if { (eval echo configure:6944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6944 rm -rf conftest*
6945 eval "ac_cv_func_$ac_func=yes"
6946 else
6947 echo "configure: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6949 rm -rf conftest*
6950 eval "ac_cv_func_$ac_func=no"
6952 rm -f conftest*
6955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6956 echo "$ac_t""yes" 1>&6
6957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6958 cat >> confdefs.h <<EOF
6959 #define $ac_tr_func 1
6962 else
6963 echo "$ac_t""no" 1>&6
6965 done
6967 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6970 echo "configure:6971: checking for $ac_func" >&5
6971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6973 else
6974 cat > conftest.$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6977 /* System header to define __stub macros and hopefully few prototypes,
6978 which can conflict with char $ac_func(); below. */
6979 #include <assert.h>
6980 /* Override any gcc2 internal prototype to avoid an error. */
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6983 char $ac_func();
6985 int main() {
6987 /* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6991 choke me
6992 #else
6993 $ac_func();
6994 #endif
6996 ; return 0; }
6998 if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6999 rm -rf conftest*
7000 eval "ac_cv_func_$ac_func=yes"
7001 else
7002 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 rm -rf conftest*
7005 eval "ac_cv_func_$ac_func=no"
7007 rm -f conftest*
7010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7011 echo "$ac_t""yes" 1>&6
7012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7013 cat >> confdefs.h <<EOF
7014 #define $ac_tr_func 1
7017 else
7018 echo "$ac_t""no" 1>&6
7020 done
7022 for ac_func in open64 _open64 __open64 creat64
7024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7025 echo "configure:7026: checking for $ac_func" >&5
7026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7028 else
7029 cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char $ac_func(); below. */
7034 #include <assert.h>
7035 /* Override any gcc2 internal prototype to avoid an error. */
7036 /* We use char because int might match the return type of a gcc2
7037 builtin and then its argument prototype would still apply. */
7038 char $ac_func();
7040 int main() {
7042 /* The GNU C library defines this for functions which it implements
7043 to always fail with ENOSYS. Some functions are actually named
7044 something starting with __ and the normal name is an alias. */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7046 choke me
7047 #else
7048 $ac_func();
7049 #endif
7051 ; return 0; }
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7054 rm -rf conftest*
7055 eval "ac_cv_func_$ac_func=yes"
7056 else
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7059 rm -rf conftest*
7060 eval "ac_cv_func_$ac_func=no"
7062 rm -f conftest*
7065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7068 cat >> confdefs.h <<EOF
7069 #define $ac_tr_func 1
7072 else
7073 echo "$ac_t""no" 1>&6
7075 done
7079 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7082 if test x$ac_cv_func_stat64 = xno ; then
7083 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7084 echo "configure:7085: checking for stat64 in <sys/stat.h>" >&5
7085 cat > conftest.$ac_ext <<EOF
7086 #line 7087 "configure"
7087 #include "confdefs.h"
7089 #if defined(HAVE_UNISTD_H)
7090 #include <unistd.h>
7091 #endif
7092 #include <sys/stat.h>
7094 int main() {
7095 struct stat64 st64; exit(stat64(".",&st64));
7096 ; return 0; }
7098 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7099 rm -rf conftest*
7100 ac_cv_func_stat64=yes
7101 else
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7105 rm -f conftest*
7106 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7107 if test x$ac_cv_func_stat64 = xyes ; then
7108 cat >> confdefs.h <<\EOF
7109 #define HAVE_STAT64 1
7115 if test x$ac_cv_func_lstat64 = xno ; then
7116 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7117 echo "configure:7118: checking for lstat64 in <sys/stat.h>" >&5
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7122 #if defined(HAVE_UNISTD_H)
7123 #include <unistd.h>
7124 #endif
7125 #include <sys/stat.h>
7127 int main() {
7128 struct stat64 st64; exit(lstat64(".",&st64));
7129 ; return 0; }
7131 if { (eval echo configure:7132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7132 rm -rf conftest*
7133 ac_cv_func_lstat64=yes
7134 else
7135 echo "configure: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7138 rm -f conftest*
7139 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7140 if test x$ac_cv_func_lstat64 = xyes ; then
7141 cat >> confdefs.h <<\EOF
7142 #define HAVE_LSTAT64 Whether lstat64() is available
7148 if test x$ac_cv_func_fstat64 = xno ; then
7149 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7150 echo "configure:7151: checking for fstat64 in <sys/stat.h>" >&5
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7155 #if defined(HAVE_UNISTD_H)
7156 #include <unistd.h>
7157 #endif
7158 #include <sys/stat.h>
7160 int main() {
7161 struct stat64 st64; exit(fstat64(0,&st64));
7162 ; return 0; }
7164 if { (eval echo configure:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7165 rm -rf conftest*
7166 ac_cv_func_fstat64=yes
7167 else
7168 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5
7171 rm -f conftest*
7172 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7173 if test x$ac_cv_func_fstat64 = xyes ; then
7174 cat >> confdefs.h <<\EOF
7175 #define HAVE_FSTAT64 1
7181 #####################################
7182 # we might need the resolv library on some systems
7183 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7184 echo "configure:7185: checking for dn_expand in -lresolv" >&5
7185 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7188 else
7189 ac_save_LIBS="$LIBS"
7190 LIBS="-lresolv $LIBS"
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7197 char dn_expand();
7199 int main() {
7200 dn_expand()
7201 ; return 0; }
7203 if { (eval echo configure:7204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 rm -rf conftest*
7205 eval "ac_cv_lib_$ac_lib_var=yes"
7206 else
7207 echo "configure: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7209 rm -rf conftest*
7210 eval "ac_cv_lib_$ac_lib_var=no"
7212 rm -f conftest*
7213 LIBS="$ac_save_LIBS"
7216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7218 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7220 cat >> confdefs.h <<EOF
7221 #define $ac_tr_lib 1
7224 LIBS="-lresolv $LIBS"
7226 else
7227 echo "$ac_t""no" 1>&6
7232 # Check for the functions putprpwnam, set_auth_parameters,
7233 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7234 # Needed for OSF1 and HPUX.
7237 case "$LIBS" in
7238 *-lsecurity*) for ac_func in putprpwnam
7240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7241 echo "configure:7242: checking for $ac_func" >&5
7242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7244 else
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* System header to define __stub macros and hopefully few prototypes,
7249 which can conflict with char $ac_func(); below. */
7250 #include <assert.h>
7251 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7254 char $ac_func();
7256 int main() {
7258 /* The GNU C library defines this for functions which it implements
7259 to always fail with ENOSYS. Some functions are actually named
7260 something starting with __ and the normal name is an alias. */
7261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7262 choke me
7263 #else
7264 $ac_func();
7265 #endif
7267 ; return 0; }
7269 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7270 rm -rf conftest*
7271 eval "ac_cv_func_$ac_func=yes"
7272 else
7273 echo "configure: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7275 rm -rf conftest*
7276 eval "ac_cv_func_$ac_func=no"
7278 rm -f conftest*
7281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7282 echo "$ac_t""yes" 1>&6
7283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7284 cat >> confdefs.h <<EOF
7285 #define $ac_tr_func 1
7288 else
7289 echo "$ac_t""no" 1>&6
7291 done
7293 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7294 echo "configure:7295: checking for putprpwnam in -lsecurity" >&5
7295 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7298 else
7299 ac_save_LIBS="$LIBS"
7300 LIBS="-lsecurity $LIBS"
7301 cat > conftest.$ac_ext <<EOF
7302 #line 7303 "configure"
7303 #include "confdefs.h"
7304 /* Override any gcc2 internal prototype to avoid an error. */
7305 /* We use char because int might match the return type of a gcc2
7306 builtin and then its argument prototype would still apply. */
7307 char putprpwnam();
7309 int main() {
7310 putprpwnam()
7311 ; return 0; }
7313 if { (eval echo configure:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7314 rm -rf conftest*
7315 eval "ac_cv_lib_$ac_lib_var=yes"
7316 else
7317 echo "configure: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7319 rm -rf conftest*
7320 eval "ac_cv_lib_$ac_lib_var=no"
7322 rm -f conftest*
7323 LIBS="$ac_save_LIBS"
7326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7327 echo "$ac_t""yes" 1>&6
7328 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7330 cat >> confdefs.h <<EOF
7331 #define $ac_tr_lib 1
7334 LIBS="-lsecurity $LIBS"
7336 else
7337 echo "$ac_t""no" 1>&6
7340 for ac_func in putprpwnam
7342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7343 echo "configure:7344: checking for $ac_func" >&5
7344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7346 else
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 /* System header to define __stub macros and hopefully few prototypes,
7351 which can conflict with char $ac_func(); below. */
7352 #include <assert.h>
7353 /* Override any gcc2 internal prototype to avoid an error. */
7354 /* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7356 char $ac_func();
7358 int main() {
7360 /* The GNU C library defines this for functions which it implements
7361 to always fail with ENOSYS. Some functions are actually named
7362 something starting with __ and the normal name is an alias. */
7363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7364 choke me
7365 #else
7366 $ac_func();
7367 #endif
7369 ; return 0; }
7371 if { (eval echo configure:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7372 rm -rf conftest*
7373 eval "ac_cv_func_$ac_func=yes"
7374 else
7375 echo "configure: failed program was:" >&5
7376 cat conftest.$ac_ext >&5
7377 rm -rf conftest*
7378 eval "ac_cv_func_$ac_func=no"
7380 rm -f conftest*
7383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7384 echo "$ac_t""yes" 1>&6
7385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7386 cat >> confdefs.h <<EOF
7387 #define $ac_tr_func 1
7390 else
7391 echo "$ac_t""no" 1>&6
7393 done
7396 esac
7398 case "$LIBS" in
7399 *-lsec*) for ac_func in putprpwnam
7401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7402 echo "configure:7403: checking for $ac_func" >&5
7403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7405 else
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* System header to define __stub macros and hopefully few prototypes,
7410 which can conflict with char $ac_func(); below. */
7411 #include <assert.h>
7412 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415 char $ac_func();
7417 int main() {
7419 /* The GNU C library defines this for functions which it implements
7420 to always fail with ENOSYS. Some functions are actually named
7421 something starting with __ and the normal name is an alias. */
7422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7423 choke me
7424 #else
7425 $ac_func();
7426 #endif
7428 ; return 0; }
7430 if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7431 rm -rf conftest*
7432 eval "ac_cv_func_$ac_func=yes"
7433 else
7434 echo "configure: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 rm -rf conftest*
7437 eval "ac_cv_func_$ac_func=no"
7439 rm -f conftest*
7442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7445 cat >> confdefs.h <<EOF
7446 #define $ac_tr_func 1
7449 else
7450 echo "$ac_t""no" 1>&6
7452 done
7454 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7455 echo "configure:7456: checking for putprpwnam in -lsec" >&5
7456 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7458 echo $ac_n "(cached) $ac_c" 1>&6
7459 else
7460 ac_save_LIBS="$LIBS"
7461 LIBS="-lsec $LIBS"
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7468 char putprpwnam();
7470 int main() {
7471 putprpwnam()
7472 ; return 0; }
7474 if { (eval echo configure:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7475 rm -rf conftest*
7476 eval "ac_cv_lib_$ac_lib_var=yes"
7477 else
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 rm -rf conftest*
7481 eval "ac_cv_lib_$ac_lib_var=no"
7483 rm -f conftest*
7484 LIBS="$ac_save_LIBS"
7487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7491 cat >> confdefs.h <<EOF
7492 #define $ac_tr_lib 1
7495 LIBS="-lsec $LIBS"
7497 else
7498 echo "$ac_t""no" 1>&6
7501 for ac_func in putprpwnam
7503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7504 echo "configure:7505: checking for $ac_func" >&5
7505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7506 echo $ac_n "(cached) $ac_c" 1>&6
7507 else
7508 cat > conftest.$ac_ext <<EOF
7509 #line 7510 "configure"
7510 #include "confdefs.h"
7511 /* System header to define __stub macros and hopefully few prototypes,
7512 which can conflict with char $ac_func(); below. */
7513 #include <assert.h>
7514 /* Override any gcc2 internal prototype to avoid an error. */
7515 /* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7517 char $ac_func();
7519 int main() {
7521 /* The GNU C library defines this for functions which it implements
7522 to always fail with ENOSYS. Some functions are actually named
7523 something starting with __ and the normal name is an alias. */
7524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7525 choke me
7526 #else
7527 $ac_func();
7528 #endif
7530 ; return 0; }
7532 if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7533 rm -rf conftest*
7534 eval "ac_cv_func_$ac_func=yes"
7535 else
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 rm -rf conftest*
7539 eval "ac_cv_func_$ac_func=no"
7541 rm -f conftest*
7544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7545 echo "$ac_t""yes" 1>&6
7546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7547 cat >> confdefs.h <<EOF
7548 #define $ac_tr_func 1
7551 else
7552 echo "$ac_t""no" 1>&6
7554 done
7557 esac
7560 case "$LIBS" in
7561 *-lsecurity*) for ac_func in set_auth_parameters
7563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7564 echo "configure:7565: checking for $ac_func" >&5
7565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7567 else
7568 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7571 /* System header to define __stub macros and hopefully few prototypes,
7572 which can conflict with char $ac_func(); below. */
7573 #include <assert.h>
7574 /* Override any gcc2 internal prototype to avoid an error. */
7575 /* We use char because int might match the return type of a gcc2
7576 builtin and then its argument prototype would still apply. */
7577 char $ac_func();
7579 int main() {
7581 /* The GNU C library defines this for functions which it implements
7582 to always fail with ENOSYS. Some functions are actually named
7583 something starting with __ and the normal name is an alias. */
7584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7585 choke me
7586 #else
7587 $ac_func();
7588 #endif
7590 ; return 0; }
7592 if { (eval echo configure:7593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7593 rm -rf conftest*
7594 eval "ac_cv_func_$ac_func=yes"
7595 else
7596 echo "configure: failed program was:" >&5
7597 cat conftest.$ac_ext >&5
7598 rm -rf conftest*
7599 eval "ac_cv_func_$ac_func=no"
7601 rm -f conftest*
7604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7607 cat >> confdefs.h <<EOF
7608 #define $ac_tr_func 1
7611 else
7612 echo "$ac_t""no" 1>&6
7614 done
7616 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7617 echo "configure:7618: checking for set_auth_parameters in -lsecurity" >&5
7618 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7620 echo $ac_n "(cached) $ac_c" 1>&6
7621 else
7622 ac_save_LIBS="$LIBS"
7623 LIBS="-lsecurity $LIBS"
7624 cat > conftest.$ac_ext <<EOF
7625 #line 7626 "configure"
7626 #include "confdefs.h"
7627 /* Override any gcc2 internal prototype to avoid an error. */
7628 /* We use char because int might match the return type of a gcc2
7629 builtin and then its argument prototype would still apply. */
7630 char set_auth_parameters();
7632 int main() {
7633 set_auth_parameters()
7634 ; return 0; }
7636 if { (eval echo configure:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7637 rm -rf conftest*
7638 eval "ac_cv_lib_$ac_lib_var=yes"
7639 else
7640 echo "configure: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 rm -rf conftest*
7643 eval "ac_cv_lib_$ac_lib_var=no"
7645 rm -f conftest*
7646 LIBS="$ac_save_LIBS"
7649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7652 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7653 cat >> confdefs.h <<EOF
7654 #define $ac_tr_lib 1
7657 LIBS="-lsecurity $LIBS"
7659 else
7660 echo "$ac_t""no" 1>&6
7663 for ac_func in set_auth_parameters
7665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7666 echo "configure:7667: checking for $ac_func" >&5
7667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7669 else
7670 cat > conftest.$ac_ext <<EOF
7671 #line 7672 "configure"
7672 #include "confdefs.h"
7673 /* System header to define __stub macros and hopefully few prototypes,
7674 which can conflict with char $ac_func(); below. */
7675 #include <assert.h>
7676 /* Override any gcc2 internal prototype to avoid an error. */
7677 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */
7679 char $ac_func();
7681 int main() {
7683 /* The GNU C library defines this for functions which it implements
7684 to always fail with ENOSYS. Some functions are actually named
7685 something starting with __ and the normal name is an alias. */
7686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7687 choke me
7688 #else
7689 $ac_func();
7690 #endif
7692 ; return 0; }
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7695 rm -rf conftest*
7696 eval "ac_cv_func_$ac_func=yes"
7697 else
7698 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7700 rm -rf conftest*
7701 eval "ac_cv_func_$ac_func=no"
7703 rm -f conftest*
7706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7707 echo "$ac_t""yes" 1>&6
7708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7709 cat >> confdefs.h <<EOF
7710 #define $ac_tr_func 1
7713 else
7714 echo "$ac_t""no" 1>&6
7716 done
7719 esac
7721 case "$LIBS" in
7722 *-lsec*) for ac_func in set_auth_parameters
7724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7725 echo "configure:7726: checking for $ac_func" >&5
7726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7728 else
7729 cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7732 /* System header to define __stub macros and hopefully few prototypes,
7733 which can conflict with char $ac_func(); below. */
7734 #include <assert.h>
7735 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7738 char $ac_func();
7740 int main() {
7742 /* The GNU C library defines this for functions which it implements
7743 to always fail with ENOSYS. Some functions are actually named
7744 something starting with __ and the normal name is an alias. */
7745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7746 choke me
7747 #else
7748 $ac_func();
7749 #endif
7751 ; return 0; }
7753 if { (eval echo configure:7754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7754 rm -rf conftest*
7755 eval "ac_cv_func_$ac_func=yes"
7756 else
7757 echo "configure: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7759 rm -rf conftest*
7760 eval "ac_cv_func_$ac_func=no"
7762 rm -f conftest*
7765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7766 echo "$ac_t""yes" 1>&6
7767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7768 cat >> confdefs.h <<EOF
7769 #define $ac_tr_func 1
7772 else
7773 echo "$ac_t""no" 1>&6
7775 done
7777 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7778 echo "configure:7779: checking for set_auth_parameters in -lsec" >&5
7779 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7781 echo $ac_n "(cached) $ac_c" 1>&6
7782 else
7783 ac_save_LIBS="$LIBS"
7784 LIBS="-lsec $LIBS"
7785 cat > conftest.$ac_ext <<EOF
7786 #line 7787 "configure"
7787 #include "confdefs.h"
7788 /* Override any gcc2 internal prototype to avoid an error. */
7789 /* We use char because int might match the return type of a gcc2
7790 builtin and then its argument prototype would still apply. */
7791 char set_auth_parameters();
7793 int main() {
7794 set_auth_parameters()
7795 ; return 0; }
7797 if { (eval echo configure:7798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7798 rm -rf conftest*
7799 eval "ac_cv_lib_$ac_lib_var=yes"
7800 else
7801 echo "configure: failed program was:" >&5
7802 cat conftest.$ac_ext >&5
7803 rm -rf conftest*
7804 eval "ac_cv_lib_$ac_lib_var=no"
7806 rm -f conftest*
7807 LIBS="$ac_save_LIBS"
7810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7811 echo "$ac_t""yes" 1>&6
7812 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7814 cat >> confdefs.h <<EOF
7815 #define $ac_tr_lib 1
7818 LIBS="-lsec $LIBS"
7820 else
7821 echo "$ac_t""no" 1>&6
7824 for ac_func in set_auth_parameters
7826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_func" >&5
7828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7830 else
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 /* System header to define __stub macros and hopefully few prototypes,
7835 which can conflict with char $ac_func(); below. */
7836 #include <assert.h>
7837 /* Override any gcc2 internal prototype to avoid an error. */
7838 /* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7840 char $ac_func();
7842 int main() {
7844 /* The GNU C library defines this for functions which it implements
7845 to always fail with ENOSYS. Some functions are actually named
7846 something starting with __ and the normal name is an alias. */
7847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7848 choke me
7849 #else
7850 $ac_func();
7851 #endif
7853 ; return 0; }
7855 if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7856 rm -rf conftest*
7857 eval "ac_cv_func_$ac_func=yes"
7858 else
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 rm -rf conftest*
7862 eval "ac_cv_func_$ac_func=no"
7864 rm -f conftest*
7867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7868 echo "$ac_t""yes" 1>&6
7869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7870 cat >> confdefs.h <<EOF
7871 #define $ac_tr_func 1
7874 else
7875 echo "$ac_t""no" 1>&6
7877 done
7880 esac
7883 # UnixWare 7.x has its getspnam in -lgen
7884 case "$LIBS" in
7885 *-lgen*) for ac_func in getspnam
7887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7888 echo "configure:7889: checking for $ac_func" >&5
7889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7890 echo $ac_n "(cached) $ac_c" 1>&6
7891 else
7892 cat > conftest.$ac_ext <<EOF
7893 #line 7894 "configure"
7894 #include "confdefs.h"
7895 /* System header to define __stub macros and hopefully few prototypes,
7896 which can conflict with char $ac_func(); below. */
7897 #include <assert.h>
7898 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7901 char $ac_func();
7903 int main() {
7905 /* The GNU C library defines this for functions which it implements
7906 to always fail with ENOSYS. Some functions are actually named
7907 something starting with __ and the normal name is an alias. */
7908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7909 choke me
7910 #else
7911 $ac_func();
7912 #endif
7914 ; return 0; }
7916 if { (eval echo configure:7917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7917 rm -rf conftest*
7918 eval "ac_cv_func_$ac_func=yes"
7919 else
7920 echo "configure: failed program was:" >&5
7921 cat conftest.$ac_ext >&5
7922 rm -rf conftest*
7923 eval "ac_cv_func_$ac_func=no"
7925 rm -f conftest*
7928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7929 echo "$ac_t""yes" 1>&6
7930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7931 cat >> confdefs.h <<EOF
7932 #define $ac_tr_func 1
7935 else
7936 echo "$ac_t""no" 1>&6
7938 done
7940 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7941 echo "configure:7942: checking for getspnam in -lgen" >&5
7942 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7945 else
7946 ac_save_LIBS="$LIBS"
7947 LIBS="-lgen $LIBS"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7954 char getspnam();
7956 int main() {
7957 getspnam()
7958 ; return 0; }
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7961 rm -rf conftest*
7962 eval "ac_cv_lib_$ac_lib_var=yes"
7963 else
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 rm -rf conftest*
7967 eval "ac_cv_lib_$ac_lib_var=no"
7969 rm -f conftest*
7970 LIBS="$ac_save_LIBS"
7973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7977 cat >> confdefs.h <<EOF
7978 #define $ac_tr_lib 1
7981 LIBS="-lgen $LIBS"
7983 else
7984 echo "$ac_t""no" 1>&6
7987 for ac_func in getspnam
7989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7990 echo "configure:7991: checking for $ac_func" >&5
7991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7993 else
7994 cat > conftest.$ac_ext <<EOF
7995 #line 7996 "configure"
7996 #include "confdefs.h"
7997 /* System header to define __stub macros and hopefully few prototypes,
7998 which can conflict with char $ac_func(); below. */
7999 #include <assert.h>
8000 /* Override any gcc2 internal prototype to avoid an error. */
8001 /* We use char because int might match the return type of a gcc2
8002 builtin and then its argument prototype would still apply. */
8003 char $ac_func();
8005 int main() {
8007 /* The GNU C library defines this for functions which it implements
8008 to always fail with ENOSYS. Some functions are actually named
8009 something starting with __ and the normal name is an alias. */
8010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8011 choke me
8012 #else
8013 $ac_func();
8014 #endif
8016 ; return 0; }
8018 if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8019 rm -rf conftest*
8020 eval "ac_cv_func_$ac_func=yes"
8021 else
8022 echo "configure: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8024 rm -rf conftest*
8025 eval "ac_cv_func_$ac_func=no"
8027 rm -f conftest*
8030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8031 echo "$ac_t""yes" 1>&6
8032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8033 cat >> confdefs.h <<EOF
8034 #define $ac_tr_func 1
8037 else
8038 echo "$ac_t""no" 1>&6
8040 done
8043 esac
8046 case "$LIBS" in
8047 *-lsecurity*) for ac_func in getspnam
8049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8050 echo "configure:8051: checking for $ac_func" >&5
8051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8053 else
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* System header to define __stub macros and hopefully few prototypes,
8058 which can conflict with char $ac_func(); below. */
8059 #include <assert.h>
8060 /* Override any gcc2 internal prototype to avoid an error. */
8061 /* We use char because int might match the return type of a gcc2
8062 builtin and then its argument prototype would still apply. */
8063 char $ac_func();
8065 int main() {
8067 /* The GNU C library defines this for functions which it implements
8068 to always fail with ENOSYS. Some functions are actually named
8069 something starting with __ and the normal name is an alias. */
8070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8071 choke me
8072 #else
8073 $ac_func();
8074 #endif
8076 ; return 0; }
8078 if { (eval echo configure:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8079 rm -rf conftest*
8080 eval "ac_cv_func_$ac_func=yes"
8081 else
8082 echo "configure: failed program was:" >&5
8083 cat conftest.$ac_ext >&5
8084 rm -rf conftest*
8085 eval "ac_cv_func_$ac_func=no"
8087 rm -f conftest*
8090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8093 cat >> confdefs.h <<EOF
8094 #define $ac_tr_func 1
8097 else
8098 echo "$ac_t""no" 1>&6
8100 done
8102 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8103 echo "configure:8104: checking for getspnam in -lsecurity" >&5
8104 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8107 else
8108 ac_save_LIBS="$LIBS"
8109 LIBS="-lsecurity $LIBS"
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8113 /* Override any gcc2 internal prototype to avoid an error. */
8114 /* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8116 char getspnam();
8118 int main() {
8119 getspnam()
8120 ; return 0; }
8122 if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8123 rm -rf conftest*
8124 eval "ac_cv_lib_$ac_lib_var=yes"
8125 else
8126 echo "configure: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8128 rm -rf conftest*
8129 eval "ac_cv_lib_$ac_lib_var=no"
8131 rm -f conftest*
8132 LIBS="$ac_save_LIBS"
8135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8137 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8139 cat >> confdefs.h <<EOF
8140 #define $ac_tr_lib 1
8143 LIBS="-lsecurity $LIBS"
8145 else
8146 echo "$ac_t""no" 1>&6
8149 for ac_func in getspnam
8151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8152 echo "configure:8153: checking for $ac_func" >&5
8153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8154 echo $ac_n "(cached) $ac_c" 1>&6
8155 else
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 /* System header to define __stub macros and hopefully few prototypes,
8160 which can conflict with char $ac_func(); below. */
8161 #include <assert.h>
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165 char $ac_func();
8167 int main() {
8169 /* The GNU C library defines this for functions which it implements
8170 to always fail with ENOSYS. Some functions are actually named
8171 something starting with __ and the normal name is an alias. */
8172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8173 choke me
8174 #else
8175 $ac_func();
8176 #endif
8178 ; return 0; }
8180 if { (eval echo configure:8181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8181 rm -rf conftest*
8182 eval "ac_cv_func_$ac_func=yes"
8183 else
8184 echo "configure: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8186 rm -rf conftest*
8187 eval "ac_cv_func_$ac_func=no"
8189 rm -f conftest*
8192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8195 cat >> confdefs.h <<EOF
8196 #define $ac_tr_func 1
8199 else
8200 echo "$ac_t""no" 1>&6
8202 done
8205 esac
8207 case "$LIBS" in
8208 *-lsec*) for ac_func in getspnam
8210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8211 echo "configure:8212: checking for $ac_func" >&5
8212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8214 else
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* System header to define __stub macros and hopefully few prototypes,
8219 which can conflict with char $ac_func(); below. */
8220 #include <assert.h>
8221 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8224 char $ac_func();
8226 int main() {
8228 /* The GNU C library defines this for functions which it implements
8229 to always fail with ENOSYS. Some functions are actually named
8230 something starting with __ and the normal name is an alias. */
8231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8232 choke me
8233 #else
8234 $ac_func();
8235 #endif
8237 ; return 0; }
8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240 rm -rf conftest*
8241 eval "ac_cv_func_$ac_func=yes"
8242 else
8243 echo "configure: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8245 rm -rf conftest*
8246 eval "ac_cv_func_$ac_func=no"
8248 rm -f conftest*
8251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8252 echo "$ac_t""yes" 1>&6
8253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8254 cat >> confdefs.h <<EOF
8255 #define $ac_tr_func 1
8258 else
8259 echo "$ac_t""no" 1>&6
8261 done
8263 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8264 echo "configure:8265: checking for getspnam in -lsec" >&5
8265 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8268 else
8269 ac_save_LIBS="$LIBS"
8270 LIBS="-lsec $LIBS"
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 /* Override any gcc2 internal prototype to avoid an error. */
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8277 char getspnam();
8279 int main() {
8280 getspnam()
8281 ; return 0; }
8283 if { (eval echo configure:8284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8284 rm -rf conftest*
8285 eval "ac_cv_lib_$ac_lib_var=yes"
8286 else
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 rm -rf conftest*
8290 eval "ac_cv_lib_$ac_lib_var=no"
8292 rm -f conftest*
8293 LIBS="$ac_save_LIBS"
8296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8297 echo "$ac_t""yes" 1>&6
8298 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8300 cat >> confdefs.h <<EOF
8301 #define $ac_tr_lib 1
8304 LIBS="-lsec $LIBS"
8306 else
8307 echo "$ac_t""no" 1>&6
8310 for ac_func in getspnam
8312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8313 echo "configure:8314: checking for $ac_func" >&5
8314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8316 else
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 /* System header to define __stub macros and hopefully few prototypes,
8321 which can conflict with char $ac_func(); below. */
8322 #include <assert.h>
8323 /* Override any gcc2 internal prototype to avoid an error. */
8324 /* We use char because int might match the return type of a gcc2
8325 builtin and then its argument prototype would still apply. */
8326 char $ac_func();
8328 int main() {
8330 /* The GNU C library defines this for functions which it implements
8331 to always fail with ENOSYS. Some functions are actually named
8332 something starting with __ and the normal name is an alias. */
8333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8334 choke me
8335 #else
8336 $ac_func();
8337 #endif
8339 ; return 0; }
8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342 rm -rf conftest*
8343 eval "ac_cv_func_$ac_func=yes"
8344 else
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8347 rm -rf conftest*
8348 eval "ac_cv_func_$ac_func=no"
8350 rm -f conftest*
8353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8354 echo "$ac_t""yes" 1>&6
8355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8356 cat >> confdefs.h <<EOF
8357 #define $ac_tr_func 1
8360 else
8361 echo "$ac_t""no" 1>&6
8363 done
8366 esac
8369 case "$LIBS" in
8370 *-lsecurity*) for ac_func in bigcrypt
8372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8373 echo "configure:8374: checking for $ac_func" >&5
8374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8375 echo $ac_n "(cached) $ac_c" 1>&6
8376 else
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 /* System header to define __stub macros and hopefully few prototypes,
8381 which can conflict with char $ac_func(); below. */
8382 #include <assert.h>
8383 /* Override any gcc2 internal prototype to avoid an error. */
8384 /* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8386 char $ac_func();
8388 int main() {
8390 /* The GNU C library defines this for functions which it implements
8391 to always fail with ENOSYS. Some functions are actually named
8392 something starting with __ and the normal name is an alias. */
8393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8394 choke me
8395 #else
8396 $ac_func();
8397 #endif
8399 ; return 0; }
8401 if { (eval echo configure:8402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8402 rm -rf conftest*
8403 eval "ac_cv_func_$ac_func=yes"
8404 else
8405 echo "configure: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8407 rm -rf conftest*
8408 eval "ac_cv_func_$ac_func=no"
8410 rm -f conftest*
8413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8414 echo "$ac_t""yes" 1>&6
8415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8416 cat >> confdefs.h <<EOF
8417 #define $ac_tr_func 1
8420 else
8421 echo "$ac_t""no" 1>&6
8423 done
8425 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8426 echo "configure:8427: checking for bigcrypt in -lsecurity" >&5
8427 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8430 else
8431 ac_save_LIBS="$LIBS"
8432 LIBS="-lsecurity $LIBS"
8433 cat > conftest.$ac_ext <<EOF
8434 #line 8435 "configure"
8435 #include "confdefs.h"
8436 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char bigcrypt();
8441 int main() {
8442 bigcrypt()
8443 ; return 0; }
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8446 rm -rf conftest*
8447 eval "ac_cv_lib_$ac_lib_var=yes"
8448 else
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 rm -rf conftest*
8452 eval "ac_cv_lib_$ac_lib_var=no"
8454 rm -f conftest*
8455 LIBS="$ac_save_LIBS"
8458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8459 echo "$ac_t""yes" 1>&6
8460 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8461 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8462 cat >> confdefs.h <<EOF
8463 #define $ac_tr_lib 1
8466 LIBS="-lsecurity $LIBS"
8468 else
8469 echo "$ac_t""no" 1>&6
8472 for ac_func in bigcrypt
8474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8475 echo "configure:8476: checking for $ac_func" >&5
8476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8478 else
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 /* System header to define __stub macros and hopefully few prototypes,
8483 which can conflict with char $ac_func(); below. */
8484 #include <assert.h>
8485 /* Override any gcc2 internal prototype to avoid an error. */
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8488 char $ac_func();
8490 int main() {
8492 /* The GNU C library defines this for functions which it implements
8493 to always fail with ENOSYS. Some functions are actually named
8494 something starting with __ and the normal name is an alias. */
8495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8496 choke me
8497 #else
8498 $ac_func();
8499 #endif
8501 ; return 0; }
8503 if { (eval echo configure:8504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8504 rm -rf conftest*
8505 eval "ac_cv_func_$ac_func=yes"
8506 else
8507 echo "configure: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 rm -rf conftest*
8510 eval "ac_cv_func_$ac_func=no"
8512 rm -f conftest*
8515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8516 echo "$ac_t""yes" 1>&6
8517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8518 cat >> confdefs.h <<EOF
8519 #define $ac_tr_func 1
8522 else
8523 echo "$ac_t""no" 1>&6
8525 done
8528 esac
8530 case "$LIBS" in
8531 *-lsec*) for ac_func in bigcrypt
8533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8534 echo "configure:8535: checking for $ac_func" >&5
8535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8537 else
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 /* System header to define __stub macros and hopefully few prototypes,
8542 which can conflict with char $ac_func(); below. */
8543 #include <assert.h>
8544 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547 char $ac_func();
8549 int main() {
8551 /* The GNU C library defines this for functions which it implements
8552 to always fail with ENOSYS. Some functions are actually named
8553 something starting with __ and the normal name is an alias. */
8554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8555 choke me
8556 #else
8557 $ac_func();
8558 #endif
8560 ; return 0; }
8562 if { (eval echo configure:8563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8563 rm -rf conftest*
8564 eval "ac_cv_func_$ac_func=yes"
8565 else
8566 echo "configure: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 rm -rf conftest*
8569 eval "ac_cv_func_$ac_func=no"
8571 rm -f conftest*
8574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8575 echo "$ac_t""yes" 1>&6
8576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8577 cat >> confdefs.h <<EOF
8578 #define $ac_tr_func 1
8581 else
8582 echo "$ac_t""no" 1>&6
8584 done
8586 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8587 echo "configure:8588: checking for bigcrypt in -lsec" >&5
8588 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8591 else
8592 ac_save_LIBS="$LIBS"
8593 LIBS="-lsec $LIBS"
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 /* Override any gcc2 internal prototype to avoid an error. */
8598 /* We use char because int might match the return type of a gcc2
8599 builtin and then its argument prototype would still apply. */
8600 char bigcrypt();
8602 int main() {
8603 bigcrypt()
8604 ; return 0; }
8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8607 rm -rf conftest*
8608 eval "ac_cv_lib_$ac_lib_var=yes"
8609 else
8610 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5
8612 rm -rf conftest*
8613 eval "ac_cv_lib_$ac_lib_var=no"
8615 rm -f conftest*
8616 LIBS="$ac_save_LIBS"
8619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8620 echo "$ac_t""yes" 1>&6
8621 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8622 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8623 cat >> confdefs.h <<EOF
8624 #define $ac_tr_lib 1
8627 LIBS="-lsec $LIBS"
8629 else
8630 echo "$ac_t""no" 1>&6
8633 for ac_func in bigcrypt
8635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8636 echo "configure:8637: checking for $ac_func" >&5
8637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8639 else
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 /* System header to define __stub macros and hopefully few prototypes,
8644 which can conflict with char $ac_func(); below. */
8645 #include <assert.h>
8646 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8649 char $ac_func();
8651 int main() {
8653 /* The GNU C library defines this for functions which it implements
8654 to always fail with ENOSYS. Some functions are actually named
8655 something starting with __ and the normal name is an alias. */
8656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8657 choke me
8658 #else
8659 $ac_func();
8660 #endif
8662 ; return 0; }
8664 if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8665 rm -rf conftest*
8666 eval "ac_cv_func_$ac_func=yes"
8667 else
8668 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 rm -rf conftest*
8671 eval "ac_cv_func_$ac_func=no"
8673 rm -f conftest*
8676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8677 echo "$ac_t""yes" 1>&6
8678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8679 cat >> confdefs.h <<EOF
8680 #define $ac_tr_func 1
8683 else
8684 echo "$ac_t""no" 1>&6
8686 done
8689 esac
8692 case "$LIBS" in
8693 *-lsecurity*) for ac_func in getprpwnam
8695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8696 echo "configure:8697: checking for $ac_func" >&5
8697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8700 cat > conftest.$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8703 /* System header to define __stub macros and hopefully few prototypes,
8704 which can conflict with char $ac_func(); below. */
8705 #include <assert.h>
8706 /* Override any gcc2 internal prototype to avoid an error. */
8707 /* We use char because int might match the return type of a gcc2
8708 builtin and then its argument prototype would still apply. */
8709 char $ac_func();
8711 int main() {
8713 /* The GNU C library defines this for functions which it implements
8714 to always fail with ENOSYS. Some functions are actually named
8715 something starting with __ and the normal name is an alias. */
8716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8717 choke me
8718 #else
8719 $ac_func();
8720 #endif
8722 ; return 0; }
8724 if { (eval echo configure:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8725 rm -rf conftest*
8726 eval "ac_cv_func_$ac_func=yes"
8727 else
8728 echo "configure: failed program was:" >&5
8729 cat conftest.$ac_ext >&5
8730 rm -rf conftest*
8731 eval "ac_cv_func_$ac_func=no"
8733 rm -f conftest*
8736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8737 echo "$ac_t""yes" 1>&6
8738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8739 cat >> confdefs.h <<EOF
8740 #define $ac_tr_func 1
8743 else
8744 echo "$ac_t""no" 1>&6
8746 done
8748 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8749 echo "configure:8750: checking for getprpwnam in -lsecurity" >&5
8750 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8753 else
8754 ac_save_LIBS="$LIBS"
8755 LIBS="-lsecurity $LIBS"
8756 cat > conftest.$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8759 /* Override any gcc2 internal prototype to avoid an error. */
8760 /* We use char because int might match the return type of a gcc2
8761 builtin and then its argument prototype would still apply. */
8762 char getprpwnam();
8764 int main() {
8765 getprpwnam()
8766 ; return 0; }
8768 if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8769 rm -rf conftest*
8770 eval "ac_cv_lib_$ac_lib_var=yes"
8771 else
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8774 rm -rf conftest*
8775 eval "ac_cv_lib_$ac_lib_var=no"
8777 rm -f conftest*
8778 LIBS="$ac_save_LIBS"
8781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8782 echo "$ac_t""yes" 1>&6
8783 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8785 cat >> confdefs.h <<EOF
8786 #define $ac_tr_lib 1
8789 LIBS="-lsecurity $LIBS"
8791 else
8792 echo "$ac_t""no" 1>&6
8795 for ac_func in getprpwnam
8797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8798 echo "configure:8799: checking for $ac_func" >&5
8799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8801 else
8802 cat > conftest.$ac_ext <<EOF
8803 #line 8804 "configure"
8804 #include "confdefs.h"
8805 /* System header to define __stub macros and hopefully few prototypes,
8806 which can conflict with char $ac_func(); below. */
8807 #include <assert.h>
8808 /* Override any gcc2 internal prototype to avoid an error. */
8809 /* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8811 char $ac_func();
8813 int main() {
8815 /* The GNU C library defines this for functions which it implements
8816 to always fail with ENOSYS. Some functions are actually named
8817 something starting with __ and the normal name is an alias. */
8818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8819 choke me
8820 #else
8821 $ac_func();
8822 #endif
8824 ; return 0; }
8826 if { (eval echo configure:8827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8827 rm -rf conftest*
8828 eval "ac_cv_func_$ac_func=yes"
8829 else
8830 echo "configure: failed program was:" >&5
8831 cat conftest.$ac_ext >&5
8832 rm -rf conftest*
8833 eval "ac_cv_func_$ac_func=no"
8835 rm -f conftest*
8838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8839 echo "$ac_t""yes" 1>&6
8840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8841 cat >> confdefs.h <<EOF
8842 #define $ac_tr_func 1
8845 else
8846 echo "$ac_t""no" 1>&6
8848 done
8851 esac
8853 case "$LIBS" in
8854 *-lsec*) for ac_func in getprpwnam
8856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8857 echo "configure:8858: checking for $ac_func" >&5
8858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8860 else
8861 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8864 /* System header to define __stub macros and hopefully few prototypes,
8865 which can conflict with char $ac_func(); below. */
8866 #include <assert.h>
8867 /* Override any gcc2 internal prototype to avoid an error. */
8868 /* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8870 char $ac_func();
8872 int main() {
8874 /* The GNU C library defines this for functions which it implements
8875 to always fail with ENOSYS. Some functions are actually named
8876 something starting with __ and the normal name is an alias. */
8877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8878 choke me
8879 #else
8880 $ac_func();
8881 #endif
8883 ; return 0; }
8885 if { (eval echo configure:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8886 rm -rf conftest*
8887 eval "ac_cv_func_$ac_func=yes"
8888 else
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 rm -rf conftest*
8892 eval "ac_cv_func_$ac_func=no"
8894 rm -f conftest*
8897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8898 echo "$ac_t""yes" 1>&6
8899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8900 cat >> confdefs.h <<EOF
8901 #define $ac_tr_func 1
8904 else
8905 echo "$ac_t""no" 1>&6
8907 done
8909 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8910 echo "configure:8911: checking for getprpwnam in -lsec" >&5
8911 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8914 else
8915 ac_save_LIBS="$LIBS"
8916 LIBS="-lsec $LIBS"
8917 cat > conftest.$ac_ext <<EOF
8918 #line 8919 "configure"
8919 #include "confdefs.h"
8920 /* Override any gcc2 internal prototype to avoid an error. */
8921 /* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8923 char getprpwnam();
8925 int main() {
8926 getprpwnam()
8927 ; return 0; }
8929 if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 rm -rf conftest*
8931 eval "ac_cv_lib_$ac_lib_var=yes"
8932 else
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 rm -rf conftest*
8936 eval "ac_cv_lib_$ac_lib_var=no"
8938 rm -f conftest*
8939 LIBS="$ac_save_LIBS"
8942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8943 echo "$ac_t""yes" 1>&6
8944 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8945 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8946 cat >> confdefs.h <<EOF
8947 #define $ac_tr_lib 1
8950 LIBS="-lsec $LIBS"
8952 else
8953 echo "$ac_t""no" 1>&6
8956 for ac_func in getprpwnam
8958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8959 echo "configure:8960: checking for $ac_func" >&5
8960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8962 else
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 /* System header to define __stub macros and hopefully few prototypes,
8967 which can conflict with char $ac_func(); below. */
8968 #include <assert.h>
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8972 char $ac_func();
8974 int main() {
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8980 choke me
8981 #else
8982 $ac_func();
8983 #endif
8985 ; return 0; }
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8988 rm -rf conftest*
8989 eval "ac_cv_func_$ac_func=yes"
8990 else
8991 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8993 rm -rf conftest*
8994 eval "ac_cv_func_$ac_func=no"
8996 rm -f conftest*
8999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9000 echo "$ac_t""yes" 1>&6
9001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9002 cat >> confdefs.h <<EOF
9003 #define $ac_tr_func 1
9006 else
9007 echo "$ac_t""no" 1>&6
9009 done
9012 esac
9015 # this bit needs to be modified for each OS that is suported by
9016 # smbwrapper. You need to specify how to created a shared library and
9017 # how to compile C code to produce PIC object files
9019 # these are the defaults, good for lots of systems
9020 HOST_OS="$host_os"
9021 LDSHFLAGS="-shared"
9022 SONAMEFLAG="#"
9023 SHLD="\${CC}"
9024 PICFLAG=""
9025 PICSUFFIX="po"
9026 POBAD_CC="#"
9027 SHLIBEXT="so"
9028 # Assume non-shared by default and override below
9029 BLDSHARED="false"
9030 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9031 echo "configure:9032: checking ability to build shared libraries" >&5
9033 # and these are for particular systems
9034 case "$host_os" in
9035 *linux*) cat >> confdefs.h <<\EOF
9036 #define LINUX 1
9039 BLDSHARED="true"
9040 LDSHFLAGS="-shared"
9041 DYNEXP="-Wl,--export-dynamic"
9042 PICFLAG="-fPIC"
9043 SONAMEFLAG="-Wl,-soname="
9044 cat >> confdefs.h <<\EOF
9045 #define STAT_ST_BLOCKSIZE 512
9049 *solaris*) cat >> confdefs.h <<\EOF
9050 #define SUNOS5 1
9053 BLDSHARED="true"
9054 LDSHFLAGS="-G"
9055 SONAMEFLAG="-h "
9056 if test "${GCC}" = "yes"; then
9057 PICFLAG="-fPIC"
9058 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9059 DYNEXP="-Wl,-E"
9061 else
9062 PICFLAG="-KPIC"
9063 ## ${CFLAGS} added for building 64-bit shared
9064 ## libs using Sun's Compiler
9065 LDSHFLAGS="-G \${CFLAGS}"
9066 POBAD_CC=""
9067 PICSUFFIX="po.o"
9069 cat >> confdefs.h <<\EOF
9070 #define STAT_ST_BLOCKSIZE 512
9074 *sunos*) cat >> confdefs.h <<\EOF
9075 #define SUNOS4 1
9078 BLDSHARED="true"
9079 LDSHFLAGS="-G"
9080 SONAMEFLAG="-Wl,-h,"
9081 PICFLAG="-KPIC" # Is this correct for SunOS
9082 cat >> confdefs.h <<\EOF
9083 #define STAT_ST_BLOCKSIZE 512
9087 *freebsd*) BLDSHARED="true"
9088 LDSHFLAGS="-shared"
9089 DYNEXP="-Wl,--export-dynamic"
9090 SONAMEFLAG="-Wl,-soname,"
9091 PICFLAG="-fPIC -DPIC"
9092 cat >> confdefs.h <<\EOF
9093 #define STAT_ST_BLOCKSIZE 512
9097 *openbsd*) BLDSHARED="true"
9098 LDSHFLAGS="-shared"
9099 DYNEXP="-Wl,-Bdynamic"
9100 SONAMEFLAG="-Wl,-soname,"
9101 PICFLAG="-fPIC"
9102 cat >> confdefs.h <<\EOF
9103 #define STAT_ST_BLOCKSIZE 512
9107 *irix*) cat >> confdefs.h <<\EOF
9108 #define IRIX 1
9111 case "$host_os" in
9112 *irix6*) cat >> confdefs.h <<\EOF
9113 #define IRIX6 1
9117 esac
9118 ATTEMPT_WRAP32_BUILD=yes
9119 BLDSHARED="true"
9120 LDSHFLAGS="-set_version sgi1.0 -shared"
9121 SONAMEFLAG="-soname "
9122 SHLD="\${LD}"
9123 if test "${GCC}" = "yes"; then
9124 PICFLAG="-fPIC"
9125 else
9126 PICFLAG="-KPIC"
9128 cat >> confdefs.h <<\EOF
9129 #define STAT_ST_BLOCKSIZE 512
9133 *aix*) cat >> confdefs.h <<\EOF
9134 #define AIX 1
9137 BLDSHARED="true"
9138 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
9139 DYNEXP="-Wl,-brtl,-bexpall"
9140 PICFLAG="-O2"
9141 if test "${GCC}" != "yes"; then
9142 ## for funky AIX compiler using strncpy()
9143 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9146 cat >> confdefs.h <<\EOF
9147 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9151 *hpux*) cat >> confdefs.h <<\EOF
9152 #define HPUX 1
9155 SHLIBEXT="sl"
9156 # Use special PIC flags for the native HP-UX compiler.
9157 if test $ac_cv_prog_cc_Ae = yes; then
9158 BLDSHARED="true"
9159 SHLD="/usr/bin/ld"
9160 LDSHFLAGS="-B symbolic -b -z"
9161 SONAMEFLAG="+h "
9162 PICFLAG="+z"
9164 DYNEXP="-Wl,-E"
9165 cat >> confdefs.h <<\EOF
9166 #define STAT_ST_BLOCKSIZE 8192
9170 *qnx*) cat >> confdefs.h <<\EOF
9171 #define QNX 1
9174 cat >> confdefs.h <<\EOF
9175 #define STAT_ST_BLOCKSIZE 512
9179 *osf*) cat >> confdefs.h <<\EOF
9180 #define OSF1 1
9183 BLDSHARED="true"
9184 LDSHFLAGS="-shared"
9185 SONAMEFLAG="-Wl,-soname,"
9186 PICFLAG="-fPIC"
9187 cat >> confdefs.h <<\EOF
9188 #define STAT_ST_BLOCKSIZE 512
9192 *sco*) cat >> confdefs.h <<\EOF
9193 #define SCO 1
9196 cat >> confdefs.h <<\EOF
9197 #define STAT_ST_BLOCKSIZE 512
9201 *unixware*) cat >> confdefs.h <<\EOF
9202 #define UNIXWARE 1
9205 BLDSHARED="true"
9206 LDSHFLAGS="-shared"
9207 SONAMEFLAG="-Wl,-soname,"
9208 PICFLAG="-KPIC"
9209 cat >> confdefs.h <<\EOF
9210 #define STAT_ST_BLOCKSIZE 512
9214 *next2*) cat >> confdefs.h <<\EOF
9215 #define NEXT2 1
9218 cat >> confdefs.h <<\EOF
9219 #define STAT_ST_BLOCKSIZE 512
9223 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9224 set dummy groff; ac_word=$2
9225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9226 echo "configure:9227: checking for $ac_word" >&5
9227 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9229 else
9230 if test -n "$ROFF"; then
9231 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9232 else
9233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9234 ac_dummy="$PATH"
9235 for ac_dir in $ac_dummy; do
9236 test -z "$ac_dir" && ac_dir=.
9237 if test -f $ac_dir/$ac_word; then
9238 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9239 break
9241 done
9242 IFS="$ac_save_ifs"
9245 ROFF="$ac_cv_prog_ROFF"
9246 if test -n "$ROFF"; then
9247 echo "$ac_t""$ROFF" 1>&6
9248 else
9249 echo "$ac_t""no" 1>&6
9252 cat >> confdefs.h <<\EOF
9253 #define STAT_ST_BLOCKSIZE 512
9257 *sysv4*) cat >> confdefs.h <<\EOF
9258 #define SYSV 1
9261 case "$host" in
9262 *-univel-*) if test "$GCC" != yes ; then
9263 cat >> confdefs.h <<\EOF
9264 #define HAVE_MEMSET 1
9268 LDSHFLAGS="-G"
9269 DYNEXP="-Bexport"
9271 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9272 #define RELIANTUNIX 1
9275 esac
9276 cat >> confdefs.h <<\EOF
9277 #define STAT_ST_BLOCKSIZE 512
9282 *sysv5*) cat >> confdefs.h <<\EOF
9283 #define SYSV 1
9286 if test "$GCC" != yes ; then
9287 cat >> confdefs.h <<\EOF
9288 #define HAVE_MEMSET 1
9292 LDSHFLAGS="-G"
9293 cat >> confdefs.h <<\EOF
9294 #define STAT_ST_BLOCKSIZE 512
9299 cat >> confdefs.h <<\EOF
9300 #define STAT_ST_BLOCKSIZE 512
9304 esac
9306 echo "$ac_t""$BLDSHARED" 1>&6
9307 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9308 echo "configure:9309: checking linker flags for shared libraries" >&5
9309 echo "$ac_t""$LDSHFLAGS" 1>&6
9310 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9311 echo "configure:9312: checking compiler flags for position-independent code" >&5
9312 echo "$ac_t""$PICFLAGS" 1>&6
9314 #######################################################
9315 # test whether building a shared library actually works
9316 if test $BLDSHARED = true; then
9317 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9318 echo "configure:9319: checking whether building shared libraries actually works" >&5
9319 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9321 else
9323 ac_cv_shlib_works=no
9324 # try building a trivial shared library
9325 if test "$PICSUFFIX" = "po"; then
9326 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9327 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9328 ac_cv_shlib_works=yes
9329 else
9330 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
9331 mv shlib.$PICSUFFIX shlib.po &&
9332 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9333 ac_cv_shlib_works=yes
9335 rm -f shlib.so shlib.po
9339 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9340 if test $ac_cv_shlib_works = no; then
9341 BLDSHARED=false
9346 # this updates our target list if we can build shared libs
9347 if test $BLDSHARED = true; then
9348 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9349 else
9350 LIBSMBCLIENT_SHARED=
9353 ################
9355 echo $ac_n "checking for long long""... $ac_c" 1>&6
9356 echo "configure:9357: checking for long long" >&5
9357 if eval "test \"`echo '$''{'samba_cv_have_longlong'+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_longlong=cross
9363 else
9364 cat > conftest.$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9367 #include <stdio.h>
9368 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9370 if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9371 then
9372 samba_cv_have_longlong=yes
9373 else
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9376 rm -fr conftest*
9377 samba_cv_have_longlong=no
9379 rm -fr conftest*
9384 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9385 if test x"$samba_cv_have_longlong" = x"yes"; then
9386 cat >> confdefs.h <<\EOF
9387 #define HAVE_LONGLONG 1
9393 # Check if the compiler supports the LL prefix on long long integers.
9394 # AIX needs this.
9396 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9397 echo "configure:9398: checking for LL suffix on long long integers" >&5
9398 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9400 else
9402 cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9405 #include <stdio.h>
9406 int main() {
9407 long long i = 0x8000000000LL
9408 ; return 0; }
9410 if { (eval echo configure:9411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9411 rm -rf conftest*
9412 samba_cv_compiler_supports_ll=yes
9413 else
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 rm -rf conftest*
9417 samba_cv_compiler_supports_ll=no
9419 rm -f conftest*
9422 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9423 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9424 cat >> confdefs.h <<\EOF
9425 #define COMPILER_SUPPORTS_LL 1
9431 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9432 echo "configure:9433: checking for 64 bit off_t" >&5
9433 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9435 else
9437 if test "$cross_compiling" = yes; then
9438 samba_cv_SIZEOF_OFF_T=cross
9439 else
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 #include <stdio.h>
9444 #include <sys/stat.h>
9445 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9447 if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9448 then
9449 samba_cv_SIZEOF_OFF_T=yes
9450 else
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -fr conftest*
9454 samba_cv_SIZEOF_OFF_T=no
9456 rm -fr conftest*
9461 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9462 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9463 cat >> confdefs.h <<\EOF
9464 #define SIZEOF_OFF_T 8
9469 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9470 echo "configure:9471: checking for off64_t" >&5
9471 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9473 else
9475 if test "$cross_compiling" = yes; then
9476 samba_cv_HAVE_OFF64_T=cross
9477 else
9478 cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9482 #if defined(HAVE_UNISTD_H)
9483 #include <unistd.h>
9484 #endif
9485 #include <stdio.h>
9486 #include <sys/stat.h>
9487 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9489 if { (eval echo configure:9490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9490 then
9491 samba_cv_HAVE_OFF64_T=yes
9492 else
9493 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9495 rm -fr conftest*
9496 samba_cv_HAVE_OFF64_T=no
9498 rm -fr conftest*
9503 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9504 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9505 cat >> confdefs.h <<\EOF
9506 #define HAVE_OFF64_T 1
9511 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9512 echo "configure:9513: checking for 64 bit ino_t" >&5
9513 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9515 else
9517 if test "$cross_compiling" = yes; then
9518 samba_cv_SIZEOF_INO_T=cross
9519 else
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9523 #include <stdio.h>
9524 #include <sys/stat.h>
9525 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9527 if { (eval echo configure:9528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9528 then
9529 samba_cv_SIZEOF_INO_T=yes
9530 else
9531 echo "configure: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9533 rm -fr conftest*
9534 samba_cv_SIZEOF_INO_T=no
9536 rm -fr conftest*
9541 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9542 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9543 cat >> confdefs.h <<\EOF
9544 #define SIZEOF_INO_T 8
9549 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9550 echo "configure:9551: checking for ino64_t" >&5
9551 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9553 else
9555 if test "$cross_compiling" = yes; then
9556 samba_cv_HAVE_INO64_T=cross
9557 else
9558 cat > conftest.$ac_ext <<EOF
9559 #line 9560 "configure"
9560 #include "confdefs.h"
9562 #if defined(HAVE_UNISTD_H)
9563 #include <unistd.h>
9564 #endif
9565 #include <stdio.h>
9566 #include <sys/stat.h>
9567 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9570 then
9571 samba_cv_HAVE_INO64_T=yes
9572 else
9573 echo "configure: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9575 rm -fr conftest*
9576 samba_cv_HAVE_INO64_T=no
9578 rm -fr conftest*
9583 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9584 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9585 cat >> confdefs.h <<\EOF
9586 #define HAVE_INO64_T 1
9591 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9592 echo "configure:9593: checking for dev64_t" >&5
9593 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9594 echo $ac_n "(cached) $ac_c" 1>&6
9595 else
9597 if test "$cross_compiling" = yes; then
9598 samba_cv_HAVE_DEV64_T=cross
9599 else
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9604 #if defined(HAVE_UNISTD_H)
9605 #include <unistd.h>
9606 #endif
9607 #include <stdio.h>
9608 #include <sys/stat.h>
9609 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9611 if { (eval echo configure:9612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9612 then
9613 samba_cv_HAVE_DEV64_T=yes
9614 else
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9617 rm -fr conftest*
9618 samba_cv_HAVE_DEV64_T=no
9620 rm -fr conftest*
9625 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9626 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9627 cat >> confdefs.h <<\EOF
9628 #define HAVE_DEV64_T 1
9633 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9634 echo "configure:9635: checking for struct dirent64" >&5
9635 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9636 echo $ac_n "(cached) $ac_c" 1>&6
9637 else
9639 cat > conftest.$ac_ext <<EOF
9640 #line 9641 "configure"
9641 #include "confdefs.h"
9643 #if defined(HAVE_UNISTD_H)
9644 #include <unistd.h>
9645 #endif
9646 #include <sys/types.h>
9647 #include <dirent.h>
9648 int main() {
9649 struct dirent64 de;
9650 ; return 0; }
9652 if { (eval echo configure:9653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9653 rm -rf conftest*
9654 samba_cv_HAVE_STRUCT_DIRENT64=yes
9655 else
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 rm -rf conftest*
9659 samba_cv_HAVE_STRUCT_DIRENT64=no
9661 rm -f conftest*
9664 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9665 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9666 cat >> confdefs.h <<\EOF
9667 #define HAVE_STRUCT_DIRENT64 1
9672 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9673 echo "configure:9674: checking for major macro" >&5
9674 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9675 echo $ac_n "(cached) $ac_c" 1>&6
9676 else
9678 if test "$cross_compiling" = yes; then
9679 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9680 else
9681 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9685 #if defined(HAVE_UNISTD_H)
9686 #include <unistd.h>
9687 #endif
9688 #include <sys/types.h>
9689 main() { dev_t dev; int i = major(dev); return 0; }
9691 if { (eval echo configure:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9692 then
9693 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9694 else
9695 echo "configure: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9697 rm -fr conftest*
9698 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9700 rm -fr conftest*
9705 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9706 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9707 cat >> confdefs.h <<\EOF
9708 #define HAVE_DEVICE_MAJOR_FN 1
9713 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9714 echo "configure:9715: checking for minor macro" >&5
9715 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9716 echo $ac_n "(cached) $ac_c" 1>&6
9717 else
9719 if test "$cross_compiling" = yes; then
9720 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9721 else
9722 cat > conftest.$ac_ext <<EOF
9723 #line 9724 "configure"
9724 #include "confdefs.h"
9726 #if defined(HAVE_UNISTD_H)
9727 #include <unistd.h>
9728 #endif
9729 #include <sys/types.h>
9730 main() { dev_t dev; int i = minor(dev); return 0; }
9732 if { (eval echo configure:9733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9733 then
9734 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9735 else
9736 echo "configure: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9738 rm -fr conftest*
9739 samba_cv_HAVE_DEVICE_MINOR_FN=no
9741 rm -fr conftest*
9746 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9747 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9748 cat >> confdefs.h <<\EOF
9749 #define HAVE_DEVICE_MINOR_FN 1
9754 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9755 echo "configure:9756: checking for unsigned char" >&5
9756 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9757 echo $ac_n "(cached) $ac_c" 1>&6
9758 else
9760 if test "$cross_compiling" = yes; then
9761 samba_cv_HAVE_UNSIGNED_CHAR=cross
9762 else
9763 cat > conftest.$ac_ext <<EOF
9764 #line 9765 "configure"
9765 #include "confdefs.h"
9766 #include <stdio.h>
9767 main() { char c; c=250; exit((c > 0)?0:1); }
9769 if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9770 then
9771 samba_cv_HAVE_UNSIGNED_CHAR=yes
9772 else
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 rm -fr conftest*
9776 samba_cv_HAVE_UNSIGNED_CHAR=no
9778 rm -fr conftest*
9783 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9784 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9785 cat >> confdefs.h <<\EOF
9786 #define HAVE_UNSIGNED_CHAR 1
9791 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9792 echo "configure:9793: checking for sin_len in sock" >&5
9793 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9794 echo $ac_n "(cached) $ac_c" 1>&6
9795 else
9797 cat > conftest.$ac_ext <<EOF
9798 #line 9799 "configure"
9799 #include "confdefs.h"
9800 #include <sys/types.h>
9801 #include <sys/socket.h>
9802 #include <netinet/in.h>
9803 int main() {
9804 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9805 ; return 0; }
9807 if { (eval echo configure:9808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9808 rm -rf conftest*
9809 samba_cv_HAVE_SOCK_SIN_LEN=yes
9810 else
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 rm -rf conftest*
9814 samba_cv_HAVE_SOCK_SIN_LEN=no
9816 rm -f conftest*
9819 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9820 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9821 cat >> confdefs.h <<\EOF
9822 #define HAVE_SOCK_SIN_LEN 1
9827 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9828 echo "configure:9829: checking whether seekdir returns void" >&5
9829 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9831 else
9833 cat > conftest.$ac_ext <<EOF
9834 #line 9835 "configure"
9835 #include "confdefs.h"
9836 #include <sys/types.h>
9837 #include <dirent.h>
9838 void seekdir(DIR *d, long loc) { return; }
9839 int main() {
9840 return 0;
9841 ; return 0; }
9843 if { (eval echo configure:9844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9844 rm -rf conftest*
9845 samba_cv_SEEKDIR_RETURNS_VOID=yes
9846 else
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 rm -rf conftest*
9850 samba_cv_SEEKDIR_RETURNS_VOID=no
9852 rm -f conftest*
9855 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9856 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9857 cat >> confdefs.h <<\EOF
9858 #define SEEKDIR_RETURNS_VOID 1
9863 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9864 echo "configure:9865: checking for __FUNCTION__ macro" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9867 else
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 #include <stdio.h>
9873 int main() {
9874 printf("%s\n", __FUNCTION__);
9875 ; return 0; }
9877 if { (eval echo configure:9878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9878 rm -rf conftest*
9879 samba_cv_HAVE_FUNCTION_MACRO=yes
9880 else
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9883 rm -rf conftest*
9884 samba_cv_HAVE_FUNCTION_MACRO=no
9886 rm -f conftest*
9889 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9890 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9891 cat >> confdefs.h <<\EOF
9892 #define HAVE_FUNCTION_MACRO 1
9897 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9898 echo "configure:9899: checking if gettimeofday takes tz argument" >&5
9899 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9900 echo $ac_n "(cached) $ac_c" 1>&6
9901 else
9903 if test "$cross_compiling" = yes; then
9904 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9905 else
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9910 #include <sys/time.h>
9911 #include <unistd.h>
9912 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9914 if { (eval echo configure:9915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9915 then
9916 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9917 else
9918 echo "configure: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 rm -fr conftest*
9921 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9923 rm -fr conftest*
9928 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9929 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9930 cat >> confdefs.h <<\EOF
9931 #define HAVE_GETTIMEOFDAY_TZ 1
9936 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9937 echo "configure:9938: checking for __va_copy" >&5
9938 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9939 echo $ac_n "(cached) $ac_c" 1>&6
9940 else
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 #include <stdarg.h>
9946 va_list ap1,ap2;
9947 int main() {
9948 __va_copy(ap1,ap2);
9949 ; return 0; }
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9952 rm -rf conftest*
9953 samba_cv_HAVE_VA_COPY=yes
9954 else
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 rm -rf conftest*
9958 samba_cv_HAVE_VA_COPY=no
9960 rm -f conftest*
9963 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9964 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9965 cat >> confdefs.h <<\EOF
9966 #define HAVE_VA_COPY 1
9971 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9972 echo "configure:9973: checking for C99 vsnprintf" >&5
9973 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9975 else
9977 if test "$cross_compiling" = yes; then
9978 samba_cv_HAVE_C99_VSNPRINTF=cross
9979 else
9980 cat > conftest.$ac_ext <<EOF
9981 #line 9982 "configure"
9982 #include "confdefs.h"
9984 #include <sys/types.h>
9985 #include <stdarg.h>
9986 void foo(const char *format, ...) {
9987 va_list ap;
9988 int len;
9989 char buf[5];
9991 va_start(ap, format);
9992 len = vsnprintf(buf, 0, format, ap);
9993 va_end(ap);
9994 if (len != 5) exit(1);
9996 va_start(ap, format);
9997 len = vsnprintf(0, 0, format, ap);
9998 va_end(ap);
9999 if (len != 5) exit(1);
10001 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10003 exit(0);
10005 main() { foo("hello"); }
10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10009 then
10010 samba_cv_HAVE_C99_VSNPRINTF=yes
10011 else
10012 echo "configure: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 rm -fr conftest*
10015 samba_cv_HAVE_C99_VSNPRINTF=no
10017 rm -fr conftest*
10022 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10023 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
10024 cat >> confdefs.h <<\EOF
10025 #define HAVE_C99_VSNPRINTF 1
10030 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10031 echo "configure:10032: checking for broken readdir" >&5
10032 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10033 echo $ac_n "(cached) $ac_c" 1>&6
10034 else
10036 if test "$cross_compiling" = yes; then
10037 samba_cv_HAVE_BROKEN_READDIR=cross
10038 else
10039 cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include <sys/types.h>
10043 #include <dirent.h>
10044 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10045 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10046 di->d_name[0] == 0) exit(0); exit(1);}
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10049 then
10050 samba_cv_HAVE_BROKEN_READDIR=yes
10051 else
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 rm -fr conftest*
10055 samba_cv_HAVE_BROKEN_READDIR=no
10057 rm -fr conftest*
10062 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10063 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
10064 cat >> confdefs.h <<\EOF
10065 #define HAVE_BROKEN_READDIR 1
10070 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10071 echo "configure:10072: checking for utimbuf" >&5
10072 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10073 echo $ac_n "(cached) $ac_c" 1>&6
10074 else
10076 cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079 #include <sys/types.h>
10080 #include <utime.h>
10081 int main() {
10082 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10083 ; return 0; }
10085 if { (eval echo configure:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10086 rm -rf conftest*
10087 samba_cv_HAVE_UTIMBUF=yes
10088 else
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10091 rm -rf conftest*
10092 samba_cv_HAVE_UTIMBUF=no
10094 rm -f conftest*
10097 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10098 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
10099 cat >> confdefs.h <<\EOF
10100 #define HAVE_UTIMBUF 1
10106 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
10108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10109 echo "configure:10110: checking for $ac_func" >&5
10110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10112 else
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 /* System header to define __stub macros and hopefully few prototypes,
10117 which can conflict with char $ac_func(); below. */
10118 #include <assert.h>
10119 /* Override any gcc2 internal prototype to avoid an error. */
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122 char $ac_func();
10124 int main() {
10126 /* The GNU C library defines this for functions which it implements
10127 to always fail with ENOSYS. Some functions are actually named
10128 something starting with __ and the normal name is an alias. */
10129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10130 choke me
10131 #else
10132 $ac_func();
10133 #endif
10135 ; return 0; }
10137 if { (eval echo configure:10138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10138 rm -rf conftest*
10139 eval "ac_cv_func_$ac_func=yes"
10140 else
10141 echo "configure: failed program was:" >&5
10142 cat conftest.$ac_ext >&5
10143 rm -rf conftest*
10144 eval "ac_cv_func_$ac_func=no"
10146 rm -f conftest*
10149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10150 echo "$ac_t""yes" 1>&6
10151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10152 cat >> confdefs.h <<EOF
10153 #define $ac_tr_func 1
10156 else
10157 echo "$ac_t""no" 1>&6
10159 done
10162 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10163 echo "configure:10164: checking for ut_name in utmp" >&5
10164 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10166 else
10168 cat > conftest.$ac_ext <<EOF
10169 #line 10170 "configure"
10170 #include "confdefs.h"
10171 #include <sys/types.h>
10172 #include <utmp.h>
10173 int main() {
10174 struct utmp ut; ut.ut_name[0] = 'a';
10175 ; return 0; }
10177 if { (eval echo configure:10178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10178 rm -rf conftest*
10179 samba_cv_HAVE_UT_UT_NAME=yes
10180 else
10181 echo "configure: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10183 rm -rf conftest*
10184 samba_cv_HAVE_UT_UT_NAME=no
10186 rm -f conftest*
10189 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10190 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10191 cat >> confdefs.h <<\EOF
10192 #define HAVE_UT_UT_NAME 1
10197 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10198 echo "configure:10199: checking for ut_user in utmp" >&5
10199 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10200 echo $ac_n "(cached) $ac_c" 1>&6
10201 else
10203 cat > conftest.$ac_ext <<EOF
10204 #line 10205 "configure"
10205 #include "confdefs.h"
10206 #include <sys/types.h>
10207 #include <utmp.h>
10208 int main() {
10209 struct utmp ut; ut.ut_user[0] = 'a';
10210 ; return 0; }
10212 if { (eval echo configure:10213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10213 rm -rf conftest*
10214 samba_cv_HAVE_UT_UT_USER=yes
10215 else
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 rm -rf conftest*
10219 samba_cv_HAVE_UT_UT_USER=no
10221 rm -f conftest*
10224 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10225 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10226 cat >> confdefs.h <<\EOF
10227 #define HAVE_UT_UT_USER 1
10232 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10233 echo "configure:10234: checking for ut_id in utmp" >&5
10234 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10236 else
10238 cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10241 #include <sys/types.h>
10242 #include <utmp.h>
10243 int main() {
10244 struct utmp ut; ut.ut_id[0] = 'a';
10245 ; return 0; }
10247 if { (eval echo configure:10248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10248 rm -rf conftest*
10249 samba_cv_HAVE_UT_UT_ID=yes
10250 else
10251 echo "configure: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10253 rm -rf conftest*
10254 samba_cv_HAVE_UT_UT_ID=no
10256 rm -f conftest*
10259 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10260 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10261 cat >> confdefs.h <<\EOF
10262 #define HAVE_UT_UT_ID 1
10267 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10268 echo "configure:10269: checking for ut_host in utmp" >&5
10269 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10270 echo $ac_n "(cached) $ac_c" 1>&6
10271 else
10273 cat > conftest.$ac_ext <<EOF
10274 #line 10275 "configure"
10275 #include "confdefs.h"
10276 #include <sys/types.h>
10277 #include <utmp.h>
10278 int main() {
10279 struct utmp ut; ut.ut_host[0] = 'a';
10280 ; return 0; }
10282 if { (eval echo configure:10283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10283 rm -rf conftest*
10284 samba_cv_HAVE_UT_UT_HOST=yes
10285 else
10286 echo "configure: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 rm -rf conftest*
10289 samba_cv_HAVE_UT_UT_HOST=no
10291 rm -f conftest*
10294 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10295 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10296 cat >> confdefs.h <<\EOF
10297 #define HAVE_UT_UT_HOST 1
10302 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10303 echo "configure:10304: checking for ut_time in utmp" >&5
10304 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10306 else
10308 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10311 #include <sys/types.h>
10312 #include <utmp.h>
10313 int main() {
10314 struct utmp ut; time_t t; ut.ut_time = t;
10315 ; return 0; }
10317 if { (eval echo configure:10318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10318 rm -rf conftest*
10319 samba_cv_HAVE_UT_UT_TIME=yes
10320 else
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10323 rm -rf conftest*
10324 samba_cv_HAVE_UT_UT_TIME=no
10326 rm -f conftest*
10329 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10330 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10331 cat >> confdefs.h <<\EOF
10332 #define HAVE_UT_UT_TIME 1
10337 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10338 echo "configure:10339: checking for ut_tv in utmp" >&5
10339 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10341 else
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 #include <sys/types.h>
10347 #include <utmp.h>
10348 int main() {
10349 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10350 ; return 0; }
10352 if { (eval echo configure:10353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10353 rm -rf conftest*
10354 samba_cv_HAVE_UT_UT_TV=yes
10355 else
10356 echo "configure: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 rm -rf conftest*
10359 samba_cv_HAVE_UT_UT_TV=no
10361 rm -f conftest*
10364 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10365 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10366 cat >> confdefs.h <<\EOF
10367 #define HAVE_UT_UT_TV 1
10372 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10373 echo "configure:10374: checking for ut_type in utmp" >&5
10374 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10375 echo $ac_n "(cached) $ac_c" 1>&6
10376 else
10378 cat > conftest.$ac_ext <<EOF
10379 #line 10380 "configure"
10380 #include "confdefs.h"
10381 #include <sys/types.h>
10382 #include <utmp.h>
10383 int main() {
10384 struct utmp ut; ut.ut_type = 0;
10385 ; return 0; }
10387 if { (eval echo configure:10388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10388 rm -rf conftest*
10389 samba_cv_HAVE_UT_UT_TYPE=yes
10390 else
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10393 rm -rf conftest*
10394 samba_cv_HAVE_UT_UT_TYPE=no
10396 rm -f conftest*
10399 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10400 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10401 cat >> confdefs.h <<\EOF
10402 #define HAVE_UT_UT_TYPE 1
10407 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10408 echo "configure:10409: checking for ut_pid in utmp" >&5
10409 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10411 else
10413 cat > conftest.$ac_ext <<EOF
10414 #line 10415 "configure"
10415 #include "confdefs.h"
10416 #include <sys/types.h>
10417 #include <utmp.h>
10418 int main() {
10419 struct utmp ut; ut.ut_pid = 0;
10420 ; return 0; }
10422 if { (eval echo configure:10423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10423 rm -rf conftest*
10424 samba_cv_HAVE_UT_UT_PID=yes
10425 else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 rm -rf conftest*
10429 samba_cv_HAVE_UT_UT_PID=no
10431 rm -f conftest*
10434 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10435 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10436 cat >> confdefs.h <<\EOF
10437 #define HAVE_UT_UT_PID 1
10442 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10443 echo "configure:10444: checking for ut_exit in utmp" >&5
10444 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10448 cat > conftest.$ac_ext <<EOF
10449 #line 10450 "configure"
10450 #include "confdefs.h"
10451 #include <sys/types.h>
10452 #include <utmp.h>
10453 int main() {
10454 struct utmp ut; ut.ut_exit.e_exit = 0;
10455 ; return 0; }
10457 if { (eval echo configure:10458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10458 rm -rf conftest*
10459 samba_cv_HAVE_UT_UT_EXIT=yes
10460 else
10461 echo "configure: failed program was:" >&5
10462 cat conftest.$ac_ext >&5
10463 rm -rf conftest*
10464 samba_cv_HAVE_UT_UT_EXIT=no
10466 rm -f conftest*
10469 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10470 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10471 cat >> confdefs.h <<\EOF
10472 #define HAVE_UT_UT_EXIT 1
10477 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10478 echo "configure:10479: checking for ut_addr in utmp" >&5
10479 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
10481 else
10483 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 #include <sys/types.h>
10487 #include <utmp.h>
10488 int main() {
10489 struct utmp ut; ut.ut_addr = 0;
10490 ; return 0; }
10492 if { (eval echo configure:10493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10493 rm -rf conftest*
10494 samba_cv_HAVE_UT_UT_ADDR=yes
10495 else
10496 echo "configure: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10498 rm -rf conftest*
10499 samba_cv_HAVE_UT_UT_ADDR=no
10501 rm -f conftest*
10504 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10505 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10506 cat >> confdefs.h <<\EOF
10507 #define HAVE_UT_UT_ADDR 1
10512 if test x$ac_cv_func_pututline = xyes ; then
10513 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10514 echo "configure:10515: checking whether pututline returns pointer" >&5
10515 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10516 echo $ac_n "(cached) $ac_c" 1>&6
10517 else
10519 cat > conftest.$ac_ext <<EOF
10520 #line 10521 "configure"
10521 #include "confdefs.h"
10522 #include <sys/types.h>
10523 #include <utmp.h>
10524 int main() {
10525 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10526 ; return 0; }
10528 if { (eval echo configure:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10529 rm -rf conftest*
10530 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10531 else
10532 echo "configure: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10534 rm -rf conftest*
10535 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10537 rm -f conftest*
10540 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10541 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10542 cat >> confdefs.h <<\EOF
10543 #define PUTUTLINE_RETURNS_UTMP 1
10549 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10550 echo "configure:10551: checking for ut_syslen in utmpx" >&5
10551 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10552 echo $ac_n "(cached) $ac_c" 1>&6
10553 else
10555 cat > conftest.$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10558 #include <sys/types.h>
10559 #include <utmpx.h>
10560 int main() {
10561 struct utmpx ux; ux.ut_syslen = 0;
10562 ; return 0; }
10564 if { (eval echo configure:10565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10565 rm -rf conftest*
10566 samba_cv_HAVE_UX_UT_SYSLEN=yes
10567 else
10568 echo "configure: failed program was:" >&5
10569 cat conftest.$ac_ext >&5
10570 rm -rf conftest*
10571 samba_cv_HAVE_UX_UT_SYSLEN=no
10573 rm -f conftest*
10576 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10577 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10578 cat >> confdefs.h <<\EOF
10579 #define HAVE_UX_UT_SYSLEN 1
10585 #################################################
10586 # check for libiconv support
10587 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10588 echo "configure:10589: checking whether to use libiconv" >&5
10589 # Check whether --with-libiconv or --without-libiconv was given.
10590 if test "${with_libiconv+set}" = set; then
10591 withval="$with_libiconv"
10592 case "$withval" in
10594 echo "$ac_t""no" 1>&6
10597 echo "$ac_t""yes" 1>&6
10598 CFLAGS="$CFLAGS -I$withval/include"
10599 LDFLAGS="$LDFLAGS -L$withval/lib"
10600 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10601 echo "configure:10602: checking for iconv_open in -liconv" >&5
10602 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10606 ac_save_LIBS="$LIBS"
10607 LIBS="-liconv $LIBS"
10608 cat > conftest.$ac_ext <<EOF
10609 #line 10610 "configure"
10610 #include "confdefs.h"
10611 /* Override any gcc2 internal prototype to avoid an error. */
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10614 char iconv_open();
10616 int main() {
10617 iconv_open()
10618 ; return 0; }
10620 if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10621 rm -rf conftest*
10622 eval "ac_cv_lib_$ac_lib_var=yes"
10623 else
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 rm -rf conftest*
10627 eval "ac_cv_lib_$ac_lib_var=no"
10629 rm -f conftest*
10630 LIBS="$ac_save_LIBS"
10633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10634 echo "$ac_t""yes" 1>&6
10635 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10636 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10637 cat >> confdefs.h <<EOF
10638 #define $ac_tr_lib 1
10641 LIBS="-liconv $LIBS"
10643 else
10644 echo "$ac_t""no" 1>&6
10647 cat >> confdefs.h <<EOF
10648 #define WITH_LIBICONV "${withval}"
10652 esac
10653 else
10654 echo "$ac_t""no" 1>&6
10660 ############
10661 # check for iconv in libc
10662 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10663 echo "configure:10664: checking for working iconv" >&5
10664 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10665 echo $ac_n "(cached) $ac_c" 1>&6
10666 else
10668 if test "$cross_compiling" = yes; then
10669 samba_cv_HAVE_NATIVE_ICONV=cross
10670 else
10671 cat > conftest.$ac_ext <<EOF
10672 #line 10673 "configure"
10673 #include "confdefs.h"
10675 #include <iconv.h>
10676 main() {
10677 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10678 if (cd == 0 || cd == (iconv_t)-1) return -1;
10679 return 0;
10683 if { (eval echo configure:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10684 then
10685 samba_cv_HAVE_NATIVE_ICONV=yes
10686 else
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10689 rm -fr conftest*
10690 samba_cv_HAVE_NATIVE_ICONV=no
10692 rm -fr conftest*
10697 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10698 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10699 cat >> confdefs.h <<\EOF
10700 #define HAVE_NATIVE_ICONV 1
10706 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10707 echo "configure:10708: checking for Linux kernel oplocks" >&5
10708 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10710 else
10712 if test "$cross_compiling" = yes; then
10713 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10714 else
10715 cat > conftest.$ac_ext <<EOF
10716 #line 10717 "configure"
10717 #include "confdefs.h"
10719 #include <sys/types.h>
10720 #include <fcntl.h>
10721 #ifndef F_GETLEASE
10722 #define F_GETLEASE 1025
10723 #endif
10724 main() {
10725 int fd = open("/dev/null", O_RDONLY);
10726 return fcntl(fd, F_GETLEASE, 0) == -1;
10730 if { (eval echo configure:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10731 then
10732 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10733 else
10734 echo "configure: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 rm -fr conftest*
10737 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10739 rm -fr conftest*
10744 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10745 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10746 cat >> confdefs.h <<\EOF
10747 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10752 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10753 echo "configure:10754: checking for kernel change notify support" >&5
10754 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10756 else
10758 if test "$cross_compiling" = yes; then
10759 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10760 else
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10765 #include <sys/types.h>
10766 #include <fcntl.h>
10767 #include <signal.h>
10768 #ifndef F_NOTIFY
10769 #define F_NOTIFY 1026
10770 #endif
10771 main() {
10772 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10777 then
10778 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10779 else
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10782 rm -fr conftest*
10783 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10785 rm -fr conftest*
10790 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10791 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10792 cat >> confdefs.h <<\EOF
10793 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10798 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10799 echo "configure:10800: checking for kernel share modes" >&5
10800 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10801 echo $ac_n "(cached) $ac_c" 1>&6
10802 else
10804 if test "$cross_compiling" = yes; then
10805 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10806 else
10807 cat > conftest.$ac_ext <<EOF
10808 #line 10809 "configure"
10809 #include "confdefs.h"
10811 #include <sys/types.h>
10812 #include <fcntl.h>
10813 #include <signal.h>
10814 #include <sys/file.h>
10815 #ifndef LOCK_MAND
10816 #define LOCK_MAND 32
10817 #define LOCK_READ 64
10818 #endif
10819 main() {
10820 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10824 if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10825 then
10826 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10827 else
10828 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 rm -fr conftest*
10831 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10833 rm -fr conftest*
10838 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10839 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10840 cat >> confdefs.h <<\EOF
10841 #define HAVE_KERNEL_SHARE_MODES 1
10849 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10850 echo "configure:10851: checking for IRIX kernel oplock type definitions" >&5
10851 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10852 echo $ac_n "(cached) $ac_c" 1>&6
10853 else
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <sys/types.h>
10859 #include <fcntl.h>
10860 int main() {
10861 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10862 ; return 0; }
10864 if { (eval echo configure:10865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10865 rm -rf conftest*
10866 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10867 else
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 rm -rf conftest*
10871 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10873 rm -f conftest*
10876 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10877 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10878 cat >> confdefs.h <<\EOF
10879 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10884 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10885 echo "configure:10886: checking for irix specific capabilities" >&5
10886 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10888 else
10890 if test "$cross_compiling" = yes; then
10891 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10892 else
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 #include <sys/types.h>
10897 #include <sys/capability.h>
10898 main() {
10899 cap_t cap;
10900 if ((cap = cap_get_proc()) == NULL)
10901 exit(1);
10902 cap->cap_effective |= CAP_NETWORK_MGT;
10903 cap->cap_inheritable |= CAP_NETWORK_MGT;
10904 cap_set_proc(cap);
10905 exit(0);
10909 if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10910 then
10911 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10912 else
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10915 rm -fr conftest*
10916 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10918 rm -fr conftest*
10923 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10924 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10925 cat >> confdefs.h <<\EOF
10926 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10932 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10933 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10936 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10937 echo "configure:10938: checking for int16 typedef included by rpc/rpc.h" >&5
10938 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10939 echo $ac_n "(cached) $ac_c" 1>&6
10940 else
10942 cat > conftest.$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10945 #include <sys/types.h>
10946 #if defined(HAVE_RPC_RPC_H)
10947 #include <rpc/rpc.h>
10948 #endif
10949 int main() {
10950 int16 testvar;
10951 ; return 0; }
10953 if { (eval echo configure:10954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10954 rm -rf conftest*
10955 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10956 else
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10959 rm -rf conftest*
10960 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10962 rm -f conftest*
10965 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10966 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10967 cat >> confdefs.h <<\EOF
10968 #define HAVE_INT16_FROM_RPC_RPC_H 1
10973 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10974 echo "configure:10975: checking for uint16 typedef included by rpc/rpc.h" >&5
10975 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10976 echo $ac_n "(cached) $ac_c" 1>&6
10977 else
10979 cat > conftest.$ac_ext <<EOF
10980 #line 10981 "configure"
10981 #include "confdefs.h"
10982 #include <sys/types.h>
10983 #if defined(HAVE_RPC_RPC_H)
10984 #include <rpc/rpc.h>
10985 #endif
10986 int main() {
10987 uint16 testvar;
10988 ; return 0; }
10990 if { (eval echo configure:10991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10991 rm -rf conftest*
10992 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10993 else
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10996 rm -rf conftest*
10997 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10999 rm -f conftest*
11002 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
11003 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
11004 cat >> confdefs.h <<\EOF
11005 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11010 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11011 echo "configure:11012: checking for int32 typedef included by rpc/rpc.h" >&5
11012 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11013 echo $ac_n "(cached) $ac_c" 1>&6
11014 else
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <sys/types.h>
11020 #if defined(HAVE_RPC_RPC_H)
11021 #include <rpc/rpc.h>
11022 #endif
11023 int main() {
11024 int32 testvar;
11025 ; return 0; }
11027 if { (eval echo configure:11028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11028 rm -rf conftest*
11029 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
11030 else
11031 echo "configure: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11033 rm -rf conftest*
11034 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
11036 rm -f conftest*
11039 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11040 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
11041 cat >> confdefs.h <<\EOF
11042 #define HAVE_INT32_FROM_RPC_RPC_H 1
11047 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11048 echo "configure:11049: checking for uint32 typedef included by rpc/rpc.h" >&5
11049 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11050 echo $ac_n "(cached) $ac_c" 1>&6
11051 else
11053 cat > conftest.$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 #include <sys/types.h>
11057 #if defined(HAVE_RPC_RPC_H)
11058 #include <rpc/rpc.h>
11059 #endif
11060 int main() {
11061 uint32 testvar;
11062 ; return 0; }
11064 if { (eval echo configure:11065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11065 rm -rf conftest*
11066 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
11067 else
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
11073 rm -f conftest*
11076 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11077 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
11078 cat >> confdefs.h <<\EOF
11079 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11085 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11086 echo "configure:11087: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11087 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11089 else
11091 cat > conftest.$ac_ext <<EOF
11092 #line 11093 "configure"
11093 #include "confdefs.h"
11094 #include <sys/types.h>
11095 #ifdef HAVE_SYS_SECURITY_H
11096 #include <sys/security.h>
11097 #include <prot.h>
11098 #endif /* HAVE_SYS_SECURITY_H */
11099 #if defined(HAVE_RPC_RPC_H)
11100 #include <rpc/rpc.h>
11101 #endif
11102 int main() {
11103 int testvar;
11104 ; return 0; }
11106 if { (eval echo configure:11107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11107 rm -rf conftest*
11108 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
11109 else
11110 echo "configure: failed program was:" >&5
11111 cat conftest.$ac_ext >&5
11112 rm -rf conftest*
11113 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
11115 rm -f conftest*
11118 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11119 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
11120 cat >> confdefs.h <<\EOF
11121 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11126 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11127 echo "configure:11128: checking for test routines" >&5
11128 if test "$cross_compiling" = yes; then
11129 echo "configure: warning: cannot run when cross-compiling" 1>&2
11130 else
11131 cat > conftest.$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11134 #include "${srcdir-.}/tests/trivial.c"
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11137 then
11138 echo "$ac_t""yes" 1>&6
11139 else
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11142 rm -fr conftest*
11143 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11145 rm -fr conftest*
11149 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11150 echo "configure:11151: checking for ftruncate extend" >&5
11151 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
11153 else
11155 if test "$cross_compiling" = yes; then
11156 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
11157 else
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11161 #include "${srcdir-.}/tests/ftruncate.c"
11163 if { (eval echo configure:11164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11164 then
11165 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
11166 else
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11169 rm -fr conftest*
11170 samba_cv_HAVE_FTRUNCATE_EXTEND=no
11172 rm -fr conftest*
11177 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11178 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
11179 cat >> confdefs.h <<\EOF
11180 #define HAVE_FTRUNCATE_EXTEND 1
11185 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11186 echo "configure:11187: checking for AF_LOCAL socket support" >&5
11187 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11188 echo $ac_n "(cached) $ac_c" 1>&6
11189 else
11191 if test "$cross_compiling" = yes; then
11192 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11193 else
11194 cat > conftest.$ac_ext <<EOF
11195 #line 11196 "configure"
11196 #include "confdefs.h"
11197 #include "${srcdir-.}/tests/unixsock.c"
11199 if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11200 then
11201 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11202 else
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 rm -fr conftest*
11206 samba_cv_HAVE_WORKING_AF_LOCAL=no
11208 rm -fr conftest*
11213 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11214 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11215 then
11216 cat >> confdefs.h <<\EOF
11217 #define HAVE_WORKING_AF_LOCAL 1
11222 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11223 echo "configure:11224: checking for broken getgroups" >&5
11224 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11226 else
11228 if test "$cross_compiling" = yes; then
11229 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11230 else
11231 cat > conftest.$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11234 #include "${srcdir-.}/tests/getgroups.c"
11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11237 then
11238 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11239 else
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11242 rm -fr conftest*
11243 samba_cv_HAVE_BROKEN_GETGROUPS=no
11245 rm -fr conftest*
11250 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11251 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11252 cat >> confdefs.h <<\EOF
11253 #define HAVE_BROKEN_GETGROUPS 1
11258 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11259 echo "configure:11260: checking whether getpass should be replaced" >&5
11260 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11262 else
11264 SAVE_CPPFLAGS="$CPPFLAGS"
11265 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11270 #define REPLACE_GETPASS 1
11271 #define NO_CONFIG_H 1
11272 #define main dont_declare_main
11273 #include "${srcdir-.}/lib/getsmbpass.c"
11274 #undef main
11276 int main() {
11278 ; return 0; }
11280 if { (eval echo configure:11281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11281 rm -rf conftest*
11282 samba_cv_REPLACE_GETPASS=yes
11283 else
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 rm -rf conftest*
11287 samba_cv_REPLACE_GETPASS=no
11289 rm -f conftest*
11290 CPPFLAGS="$SAVE_CPPFLAGS"
11294 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11295 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11296 cat >> confdefs.h <<\EOF
11297 #define REPLACE_GETPASS 1
11302 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11303 echo "configure:11304: checking for broken inet_ntoa" >&5
11304 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11305 echo $ac_n "(cached) $ac_c" 1>&6
11306 else
11308 if test "$cross_compiling" = yes; then
11309 samba_cv_REPLACE_INET_NTOA=cross
11310 else
11311 cat > conftest.$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11315 #include <stdio.h>
11316 #include <sys/types.h>
11317 #include <netinet/in.h>
11318 #ifdef HAVE_ARPA_INET_H
11319 #include <arpa/inet.h>
11320 #endif
11321 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11322 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11323 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11324 exit(1);}
11326 if { (eval echo configure:11327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11327 then
11328 samba_cv_REPLACE_INET_NTOA=yes
11329 else
11330 echo "configure: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 rm -fr conftest*
11333 samba_cv_REPLACE_INET_NTOA=no
11335 rm -fr conftest*
11340 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11341 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11342 cat >> confdefs.h <<\EOF
11343 #define REPLACE_INET_NTOA 1
11348 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11349 echo "configure:11350: checking for secure mkstemp" >&5
11350 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11352 else
11354 if test "$cross_compiling" = yes; then
11355 samba_cv_HAVE_SECURE_MKSTEMP=cross
11356 else
11357 cat > conftest.$ac_ext <<EOF
11358 #line 11359 "configure"
11359 #include "confdefs.h"
11360 #include <stdlib.h>
11361 #include <sys/types.h>
11362 #include <sys/stat.h>
11363 #include <unistd.h>
11364 main() {
11365 struct stat st;
11366 char tpl[20]="/tmp/test.XXXXXX";
11367 int fd = mkstemp(tpl);
11368 if (fd == -1) exit(1);
11369 unlink(tpl);
11370 if (fstat(fd, &st) != 0) exit(1);
11371 if ((st.st_mode & 0777) != 0600) exit(1);
11372 exit(0);
11375 if { (eval echo configure:11376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11376 then
11377 samba_cv_HAVE_SECURE_MKSTEMP=yes
11378 else
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11381 rm -fr conftest*
11382 samba_cv_HAVE_SECURE_MKSTEMP=no
11384 rm -fr conftest*
11389 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11390 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11391 cat >> confdefs.h <<\EOF
11392 #define HAVE_SECURE_MKSTEMP 1
11397 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11398 echo "configure:11399: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11399 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11400 echo $ac_n "(cached) $ac_c" 1>&6
11401 else
11403 if test "$cross_compiling" = yes; then
11404 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11405 else
11406 cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11409 #include <unistd.h>
11410 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
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_SYSCONF_SC_NGROUPS_MAX=yes
11415 else
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 rm -fr conftest*
11419 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11421 rm -fr conftest*
11426 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11427 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11428 cat >> confdefs.h <<\EOF
11429 #define SYSCONF_SC_NGROUPS_MAX 1
11434 echo $ac_n "checking for root""... $ac_c" 1>&6
11435 echo "configure:11436: checking for root" >&5
11436 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11437 echo $ac_n "(cached) $ac_c" 1>&6
11438 else
11440 if test "$cross_compiling" = yes; then
11441 samba_cv_HAVE_ROOT=cross
11442 else
11443 cat > conftest.$ac_ext <<EOF
11444 #line 11445 "configure"
11445 #include "confdefs.h"
11446 main() { exit(getuid() != 0); }
11448 if { (eval echo configure:11449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11449 then
11450 samba_cv_HAVE_ROOT=yes
11451 else
11452 echo "configure: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11454 rm -fr conftest*
11455 samba_cv_HAVE_ROOT=no
11457 rm -fr conftest*
11462 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11463 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11464 cat >> confdefs.h <<\EOF
11465 #define HAVE_ROOT 1
11468 else
11469 echo "configure: warning: running as non-root will disable some tests" 1>&2
11472 ##################
11473 # look for a method of finding the list of network interfaces
11474 iface=no;
11475 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11476 echo "configure:11477: checking for iface AIX" >&5
11477 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11478 echo $ac_n "(cached) $ac_c" 1>&6
11479 else
11481 if test "$cross_compiling" = yes; then
11482 samba_cv_HAVE_IFACE_AIX=cross
11483 else
11484 cat > conftest.$ac_ext <<EOF
11485 #line 11486 "configure"
11486 #include "confdefs.h"
11488 #define HAVE_IFACE_AIX 1
11489 #define AUTOCONF_TEST 1
11490 #include "confdefs.h"
11491 #include "${srcdir-.}/lib/interfaces.c"
11493 if { (eval echo configure:11494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11494 then
11495 samba_cv_HAVE_IFACE_AIX=yes
11496 else
11497 echo "configure: failed program was:" >&5
11498 cat conftest.$ac_ext >&5
11499 rm -fr conftest*
11500 samba_cv_HAVE_IFACE_AIX=no
11502 rm -fr conftest*
11507 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11508 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11509 iface=yes;cat >> confdefs.h <<\EOF
11510 #define HAVE_IFACE_AIX 1
11515 if test $iface = no; then
11516 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11517 echo "configure:11518: checking for iface ifconf" >&5
11518 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11520 else
11522 if test "$cross_compiling" = yes; then
11523 samba_cv_HAVE_IFACE_IFCONF=cross
11524 else
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11529 #define HAVE_IFACE_IFCONF 1
11530 #define AUTOCONF_TEST 1
11531 #include "confdefs.h"
11532 #include "${srcdir-.}/lib/interfaces.c"
11534 if { (eval echo configure:11535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11535 then
11536 samba_cv_HAVE_IFACE_IFCONF=yes
11537 else
11538 echo "configure: failed program was:" >&5
11539 cat conftest.$ac_ext >&5
11540 rm -fr conftest*
11541 samba_cv_HAVE_IFACE_IFCONF=no
11543 rm -fr conftest*
11548 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11549 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11550 iface=yes;cat >> confdefs.h <<\EOF
11551 #define HAVE_IFACE_IFCONF 1
11557 if test $iface = no; then
11558 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11559 echo "configure:11560: checking for iface ifreq" >&5
11560 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11561 echo $ac_n "(cached) $ac_c" 1>&6
11562 else
11564 if test "$cross_compiling" = yes; then
11565 samba_cv_HAVE_IFACE_IFREQ=cross
11566 else
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11571 #define HAVE_IFACE_IFREQ 1
11572 #define AUTOCONF_TEST 1
11573 #include "confdefs.h"
11574 #include "${srcdir-.}/lib/interfaces.c"
11576 if { (eval echo configure:11577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11577 then
11578 samba_cv_HAVE_IFACE_IFREQ=yes
11579 else
11580 echo "configure: failed program was:" >&5
11581 cat conftest.$ac_ext >&5
11582 rm -fr conftest*
11583 samba_cv_HAVE_IFACE_IFREQ=no
11585 rm -fr conftest*
11590 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11591 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11592 iface=yes;cat >> confdefs.h <<\EOF
11593 #define HAVE_IFACE_IFREQ 1
11600 ################################################
11601 # look for a method of setting the effective uid
11602 seteuid=no;
11603 if test $seteuid = no; then
11604 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11605 echo "configure:11606: checking for setresuid" >&5
11606 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11607 echo $ac_n "(cached) $ac_c" 1>&6
11608 else
11610 if test "$cross_compiling" = yes; then
11611 samba_cv_USE_SETRESUID=cross
11612 else
11613 cat > conftest.$ac_ext <<EOF
11614 #line 11615 "configure"
11615 #include "confdefs.h"
11617 #define AUTOCONF_TEST 1
11618 #define USE_SETRESUID 1
11619 #include "confdefs.h"
11620 #include "${srcdir-.}/lib/util_sec.c"
11622 if { (eval echo configure:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11623 then
11624 samba_cv_USE_SETRESUID=yes
11625 else
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11628 rm -fr conftest*
11629 samba_cv_USE_SETRESUID=no
11631 rm -fr conftest*
11636 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11637 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11638 seteuid=yes;cat >> confdefs.h <<\EOF
11639 #define USE_SETRESUID 1
11646 if test $seteuid = no; then
11647 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11648 echo "configure:11649: checking for setreuid" >&5
11649 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11651 else
11653 if test "$cross_compiling" = yes; then
11654 samba_cv_USE_SETREUID=cross
11655 else
11656 cat > conftest.$ac_ext <<EOF
11657 #line 11658 "configure"
11658 #include "confdefs.h"
11660 #define AUTOCONF_TEST 1
11661 #define USE_SETREUID 1
11662 #include "confdefs.h"
11663 #include "${srcdir-.}/lib/util_sec.c"
11665 if { (eval echo configure:11666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11666 then
11667 samba_cv_USE_SETREUID=yes
11668 else
11669 echo "configure: failed program was:" >&5
11670 cat conftest.$ac_ext >&5
11671 rm -fr conftest*
11672 samba_cv_USE_SETREUID=no
11674 rm -fr conftest*
11679 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11680 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11681 seteuid=yes;cat >> confdefs.h <<\EOF
11682 #define USE_SETREUID 1
11688 if test $seteuid = no; then
11689 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11690 echo "configure:11691: checking for seteuid" >&5
11691 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11692 echo $ac_n "(cached) $ac_c" 1>&6
11693 else
11695 if test "$cross_compiling" = yes; then
11696 samba_cv_USE_SETEUID=cross
11697 else
11698 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11702 #define AUTOCONF_TEST 1
11703 #define USE_SETEUID 1
11704 #include "confdefs.h"
11705 #include "${srcdir-.}/lib/util_sec.c"
11707 if { (eval echo configure:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11708 then
11709 samba_cv_USE_SETEUID=yes
11710 else
11711 echo "configure: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11713 rm -fr conftest*
11714 samba_cv_USE_SETEUID=no
11716 rm -fr conftest*
11721 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11722 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11723 seteuid=yes;cat >> confdefs.h <<\EOF
11724 #define USE_SETEUID 1
11730 if test $seteuid = no; then
11731 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11732 echo "configure:11733: checking for setuidx" >&5
11733 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11734 echo $ac_n "(cached) $ac_c" 1>&6
11735 else
11737 if test "$cross_compiling" = yes; then
11738 samba_cv_USE_SETUIDX=cross
11739 else
11740 cat > conftest.$ac_ext <<EOF
11741 #line 11742 "configure"
11742 #include "confdefs.h"
11744 #define AUTOCONF_TEST 1
11745 #define USE_SETUIDX 1
11746 #include "confdefs.h"
11747 #include "${srcdir-.}/lib/util_sec.c"
11749 if { (eval echo configure:11750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11750 then
11751 samba_cv_USE_SETUIDX=yes
11752 else
11753 echo "configure: failed program was:" >&5
11754 cat conftest.$ac_ext >&5
11755 rm -fr conftest*
11756 samba_cv_USE_SETUIDX=no
11758 rm -fr conftest*
11763 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11764 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11765 seteuid=yes;cat >> confdefs.h <<\EOF
11766 #define USE_SETUIDX 1
11773 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11774 echo "configure:11775: checking for working mmap" >&5
11775 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11776 echo $ac_n "(cached) $ac_c" 1>&6
11777 else
11779 if test "$cross_compiling" = yes; then
11780 samba_cv_HAVE_MMAP=cross
11781 else
11782 cat > conftest.$ac_ext <<EOF
11783 #line 11784 "configure"
11784 #include "confdefs.h"
11785 #include "${srcdir-.}/tests/shared_mmap.c"
11787 if { (eval echo configure:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11788 then
11789 samba_cv_HAVE_MMAP=yes
11790 else
11791 echo "configure: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11793 rm -fr conftest*
11794 samba_cv_HAVE_MMAP=no
11796 rm -fr conftest*
11801 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11802 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11803 cat >> confdefs.h <<\EOF
11804 #define HAVE_MMAP 1
11809 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11810 echo "configure:11811: checking for ftruncate needs root" >&5
11811 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11812 echo $ac_n "(cached) $ac_c" 1>&6
11813 else
11815 if test "$cross_compiling" = yes; then
11816 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11817 else
11818 cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11821 #include "${srcdir-.}/tests/ftruncroot.c"
11823 if { (eval echo configure:11824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11824 then
11825 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11826 else
11827 echo "configure: failed program was:" >&5
11828 cat conftest.$ac_ext >&5
11829 rm -fr conftest*
11830 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11832 rm -fr conftest*
11837 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11838 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11839 cat >> confdefs.h <<\EOF
11840 #define FTRUNCATE_NEEDS_ROOT 1
11845 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11846 echo "configure:11847: checking for fcntl locking" >&5
11847 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11848 echo $ac_n "(cached) $ac_c" 1>&6
11849 else
11851 if test "$cross_compiling" = yes; then
11852 samba_cv_HAVE_FCNTL_LOCK=cross
11853 else
11854 cat > conftest.$ac_ext <<EOF
11855 #line 11856 "configure"
11856 #include "confdefs.h"
11857 #include "${srcdir-.}/tests/fcntl_lock.c"
11859 if { (eval echo configure:11860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11860 then
11861 samba_cv_HAVE_FCNTL_LOCK=yes
11862 else
11863 echo "configure: failed program was:" >&5
11864 cat conftest.$ac_ext >&5
11865 rm -fr conftest*
11866 samba_cv_HAVE_FCNTL_LOCK=no
11868 rm -fr conftest*
11873 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11874 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11875 cat >> confdefs.h <<\EOF
11876 #define HAVE_FCNTL_LOCK 1
11881 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11882 echo "configure:11883: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11883 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11884 echo $ac_n "(cached) $ac_c" 1>&6
11885 else
11887 if test "$cross_compiling" = yes; then
11888 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11889 else
11890 cat > conftest.$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11893 #include "${srcdir-.}/tests/fcntl_lock64.c"
11895 if { (eval echo configure:11896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11896 then
11897 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11898 else
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11901 rm -fr conftest*
11902 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11904 rm -fr conftest*
11909 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11910 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11911 cat >> confdefs.h <<\EOF
11912 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11916 else
11919 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11920 echo "configure:11921: checking for 64 bit fcntl locking" >&5
11921 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11922 echo $ac_n "(cached) $ac_c" 1>&6
11923 else
11925 if test "$cross_compiling" = yes; then
11926 samba_cv_HAVE_STRUCT_FLOCK64=cross
11927 else
11928 cat > conftest.$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11932 #if defined(HAVE_UNISTD_H)
11933 #include <unistd.h>
11934 #endif
11935 #include <stdio.h>
11936 #include <stdlib.h>
11938 #ifdef HAVE_FCNTL_H
11939 #include <fcntl.h>
11940 #endif
11942 #ifdef HAVE_SYS_FCNTL_H
11943 #include <sys/fcntl.h>
11944 #endif
11945 main() { struct flock64 fl64;
11946 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11947 exit(0);
11948 #else
11949 exit(1);
11950 #endif
11953 if { (eval echo configure:11954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11954 then
11955 samba_cv_HAVE_STRUCT_FLOCK64=yes
11956 else
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11959 rm -fr conftest*
11960 samba_cv_HAVE_STRUCT_FLOCK64=no
11962 rm -fr conftest*
11967 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11969 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11970 cat >> confdefs.h <<\EOF
11971 #define HAVE_STRUCT_FLOCK64 1
11977 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11978 echo "configure:11979: checking for st_blocks in struct stat" >&5
11979 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11980 echo $ac_n "(cached) $ac_c" 1>&6
11981 else
11983 cat > conftest.$ac_ext <<EOF
11984 #line 11985 "configure"
11985 #include "confdefs.h"
11986 #include <sys/types.h>
11987 #include <sys/stat.h>
11988 #include <unistd.h>
11989 int main() {
11990 struct stat st; st.st_blocks = 0;
11991 ; return 0; }
11993 if { (eval echo configure:11994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11994 rm -rf conftest*
11995 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11996 else
11997 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5
11999 rm -rf conftest*
12000 samba_cv_HAVE_STAT_ST_BLOCKS=no
12002 rm -f conftest*
12005 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12006 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
12007 cat >> confdefs.h <<\EOF
12008 #define HAVE_STAT_ST_BLOCKS 1
12013 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12014 echo "configure:12015: checking for st_blksize in struct stat" >&5
12015 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12016 echo $ac_n "(cached) $ac_c" 1>&6
12017 else
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 #include <sys/types.h>
12023 #include <sys/stat.h>
12024 #include <unistd.h>
12025 int main() {
12026 struct stat st; st.st_blksize = 0;
12027 ; return 0; }
12029 if { (eval echo configure:12030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12030 rm -rf conftest*
12031 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
12032 else
12033 echo "configure: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12035 rm -rf conftest*
12036 samba_cv_HAVE_STAT_ST_BLKSIZE=no
12038 rm -f conftest*
12041 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12042 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
12043 cat >> confdefs.h <<\EOF
12044 #define HAVE_STAT_ST_BLKSIZE 1
12049 case "$host_os" in
12050 *linux*)
12051 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12052 echo "configure:12053: checking for broken RedHat 7.2 system header files" >&5
12053 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12055 else
12057 cat > conftest.$ac_ext <<EOF
12058 #line 12059 "configure"
12059 #include "confdefs.h"
12061 #ifdef HAVE_SYS_VFS_H
12062 #include <sys/vfs.h>
12063 #endif
12064 #ifdef HAVE_SYS_CAPABILITY_H
12065 #include <sys/capability.h>
12066 #endif
12068 int main() {
12069 int i;
12070 ; return 0; }
12072 if { (eval echo configure:12073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12073 rm -rf conftest*
12074 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
12075 else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
12081 rm -f conftest*
12084 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12085 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
12086 cat >> confdefs.h <<\EOF
12087 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12092 esac
12094 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12095 echo "configure:12096: checking for broken nisplus include files" >&5
12096 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12098 else
12100 cat > conftest.$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 #include <sys/acl.h>
12104 #if defined(HAVE_RPCSVC_NIS_H)
12105 #include <rpcsvc/nis.h>
12106 #endif
12107 int main() {
12108 int i;
12109 ; return 0; }
12111 if { (eval echo configure:12112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12112 rm -rf conftest*
12113 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
12114 else
12115 echo "configure: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12117 rm -rf conftest*
12118 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
12120 rm -f conftest*
12123 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12124 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
12125 cat >> confdefs.h <<\EOF
12126 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12132 #################################################
12133 # check for smbwrapper support
12134 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12135 echo "configure:12136: checking whether to use smbwrapper" >&5
12136 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12137 if test "${with_smbwrapper+set}" = set; then
12138 withval="$with_smbwrapper"
12139 case "$withval" in
12140 yes)
12141 echo "$ac_t""yes" 1>&6
12142 cat >> confdefs.h <<\EOF
12143 #define WITH_SMBWRAPPER 1
12146 WRAPPROG="bin/smbsh\$(EXEEXT)"
12147 WRAP="bin/smbwrapper.$SHLIBEXT"
12149 if test x$ATTEMPT_WRAP32_BUILD = x; then
12150 WRAP32=""
12151 else
12152 WRAP32=bin/smbwrapper.32.$SHLIBEXT
12155 # Conditions under which smbwrapper should not be built.
12157 if test x$PICFLAG = x; then
12158 echo No support for PIC code - disabling smbwrapper and smbsh
12159 WRAPPROG=""
12160 WRAP=""
12161 WRAP32=""
12162 elif test x$ac_cv_func_syscall = xno; then
12163 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12164 WRAPPROG=""
12165 WRAP=""
12166 WRAP32=""
12168 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12169 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
12172 echo "$ac_t""no" 1>&6
12174 esac
12175 else
12176 echo "$ac_t""no" 1>&6
12181 #################################################
12182 # check for AFS clear-text auth support
12183 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12184 echo "configure:12185: checking whether to use AFS clear-text auth" >&5
12185 # Check whether --with-afs or --without-afs was given.
12186 if test "${with_afs+set}" = set; then
12187 withval="$with_afs"
12188 case "$withval" in
12189 yes)
12190 echo "$ac_t""yes" 1>&6
12191 cat >> confdefs.h <<\EOF
12192 #define WITH_AFS 1
12197 echo "$ac_t""no" 1>&6
12199 esac
12200 else
12201 echo "$ac_t""no" 1>&6
12207 #################################################
12208 # check for the DFS clear-text auth system
12209 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12210 echo "configure:12211: checking whether to use DFS clear-text auth" >&5
12211 # Check whether --with-dfs or --without-dfs was given.
12212 if test "${with_dfs+set}" = set; then
12213 withval="$with_dfs"
12214 case "$withval" in
12215 yes)
12216 echo "$ac_t""yes" 1>&6
12217 cat >> confdefs.h <<\EOF
12218 #define WITH_DFS 1
12223 echo "$ac_t""no" 1>&6
12225 esac
12226 else
12227 echo "$ac_t""no" 1>&6
12232 #################################################
12233 # active directory support
12235 with_ads_support=yes
12236 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12237 echo "configure:12238: checking whether to use Active Directory" >&5
12239 # Check whether --with-ads or --without-ads was given.
12240 if test "${with_ads+set}" = set; then
12241 withval="$with_ads"
12242 case "$withval" in
12244 with_ads_support=no
12246 esac
12250 if test x"$with_ads_support" = x"yes"; then
12251 cat >> confdefs.h <<\EOF
12252 #define WITH_ADS 1
12257 echo "$ac_t""$with_ads_support" 1>&6
12259 FOUND_KRB5=no
12260 if test x"$with_ads_support" = x"yes"; then
12262 #################################################
12263 # check for location of Kerberos 5 install
12264 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12265 echo "configure:12266: checking for kerberos 5 install path" >&5
12266 # Check whether --with-krb5 or --without-krb5 was given.
12267 if test "${with_krb5+set}" = set; then
12268 withval="$with_krb5"
12269 case "$withval" in
12271 echo "$ac_t""no" 1>&6
12274 echo "$ac_t""yes" 1>&6
12275 LIBS="$LIBS -lkrb5"
12276 CFLAGS="$CFLAGS -I$withval/include"
12277 CPPFLAGS="$CPPFLAGS -I$withval/include"
12278 LDFLAGS="$LDFLAGS -L$withval/lib"
12279 FOUND_KRB5=yes
12281 esac
12282 else
12283 echo "$ac_t""no" 1>&6
12289 if test x$FOUND_KRB5 = x"no"; then
12290 #################################################
12291 # see if this box has the SuSE location for the heimdal kerberos implementation
12292 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12293 echo "configure:12294: checking for /usr/include/heimdal" >&5
12294 if test -d /usr/include/heimdal; then
12295 CFLAGS="$CFLAGS -I/usr/include/heimdal"
12296 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
12297 echo "$ac_t""yes" 1>&6
12298 else
12299 echo "$ac_t""no" 1>&6
12304 if test x$FOUND_KRB5 = x"no"; then
12305 #################################################
12306 # see if this box has the RedHat location for kerberos
12307 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12308 echo "configure:12309: checking for /usr/kerberos" >&5
12309 if test -d /usr/kerberos; then
12310 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12311 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12312 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12313 echo "$ac_t""yes" 1>&6
12314 else
12315 echo "$ac_t""no" 1>&6
12320 # now check for krb5.h. Some systems have the libraries without the headers!
12321 # note that this check is done here to allow for different kerberos
12322 # include paths
12323 for ac_hdr in krb5.h
12325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12327 echo "configure:12328: checking for $ac_hdr" >&5
12328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12329 echo $ac_n "(cached) $ac_c" 1>&6
12330 else
12331 cat > conftest.$ac_ext <<EOF
12332 #line 12333 "configure"
12333 #include "confdefs.h"
12334 #include <$ac_hdr>
12336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12337 { (eval echo configure:12338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12339 if test -z "$ac_err"; then
12340 rm -rf conftest*
12341 eval "ac_cv_header_$ac_safe=yes"
12342 else
12343 echo "$ac_err" >&5
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 rm -rf conftest*
12347 eval "ac_cv_header_$ac_safe=no"
12349 rm -f conftest*
12351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12352 echo "$ac_t""yes" 1>&6
12353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12354 cat >> confdefs.h <<EOF
12355 #define $ac_tr_hdr 1
12358 else
12359 echo "$ac_t""no" 1>&6
12361 done
12364 # now check for gssapi headers. This is also done here to allow for
12365 # different kerberos include paths
12366 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12370 echo "configure:12371: checking for $ac_hdr" >&5
12371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12373 else
12374 cat > conftest.$ac_ext <<EOF
12375 #line 12376 "configure"
12376 #include "confdefs.h"
12377 #include <$ac_hdr>
12379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12380 { (eval echo configure:12381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12382 if test -z "$ac_err"; then
12383 rm -rf conftest*
12384 eval "ac_cv_header_$ac_safe=yes"
12385 else
12386 echo "$ac_err" >&5
12387 echo "configure: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12389 rm -rf conftest*
12390 eval "ac_cv_header_$ac_safe=no"
12392 rm -f conftest*
12394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12395 echo "$ac_t""yes" 1>&6
12396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12397 cat >> confdefs.h <<EOF
12398 #define $ac_tr_hdr 1
12401 else
12402 echo "$ac_t""no" 1>&6
12404 done
12407 ##################################################################
12408 # we might need the k5crypto and com_err libraries on some systems
12409 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12410 echo "configure:12411: checking for _et_list in -lcom_err" >&5
12411 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12413 echo $ac_n "(cached) $ac_c" 1>&6
12414 else
12415 ac_save_LIBS="$LIBS"
12416 LIBS="-lcom_err $LIBS"
12417 cat > conftest.$ac_ext <<EOF
12418 #line 12419 "configure"
12419 #include "confdefs.h"
12420 /* Override any gcc2 internal prototype to avoid an error. */
12421 /* We use char because int might match the return type of a gcc2
12422 builtin and then its argument prototype would still apply. */
12423 char _et_list();
12425 int main() {
12426 _et_list()
12427 ; return 0; }
12429 if { (eval echo configure:12430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12430 rm -rf conftest*
12431 eval "ac_cv_lib_$ac_lib_var=yes"
12432 else
12433 echo "configure: failed program was:" >&5
12434 cat conftest.$ac_ext >&5
12435 rm -rf conftest*
12436 eval "ac_cv_lib_$ac_lib_var=no"
12438 rm -f conftest*
12439 LIBS="$ac_save_LIBS"
12442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12443 echo "$ac_t""yes" 1>&6
12444 LIBS="$LIBS -lcom_err"
12445 else
12446 echo "$ac_t""no" 1>&6
12449 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12450 echo "configure:12451: checking for krb5_encrypt_data in -lk5crypto" >&5
12451 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12453 echo $ac_n "(cached) $ac_c" 1>&6
12454 else
12455 ac_save_LIBS="$LIBS"
12456 LIBS="-lk5crypto $LIBS"
12457 cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 /* Override any gcc2 internal prototype to avoid an error. */
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12463 char krb5_encrypt_data();
12465 int main() {
12466 krb5_encrypt_data()
12467 ; return 0; }
12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12470 rm -rf conftest*
12471 eval "ac_cv_lib_$ac_lib_var=yes"
12472 else
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -rf conftest*
12476 eval "ac_cv_lib_$ac_lib_var=no"
12478 rm -f conftest*
12479 LIBS="$ac_save_LIBS"
12482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12483 echo "$ac_t""yes" 1>&6
12484 LIBS="$LIBS -lk5crypto"
12485 else
12486 echo "$ac_t""no" 1>&6
12490 ########################################################
12491 # now see if we can find the krb5 libs in standard paths
12492 # or as specified above
12493 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12494 echo "configure:12495: checking for krb5_mk_req_extended in -lkrb5" >&5
12495 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12497 echo $ac_n "(cached) $ac_c" 1>&6
12498 else
12499 ac_save_LIBS="$LIBS"
12500 LIBS="-lkrb5 $LIBS"
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 /* Override any gcc2 internal prototype to avoid an error. */
12505 /* We use char because int might match the return type of a gcc2
12506 builtin and then its argument prototype would still apply. */
12507 char krb5_mk_req_extended();
12509 int main() {
12510 krb5_mk_req_extended()
12511 ; return 0; }
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12514 rm -rf conftest*
12515 eval "ac_cv_lib_$ac_lib_var=yes"
12516 else
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 rm -rf conftest*
12520 eval "ac_cv_lib_$ac_lib_var=no"
12522 rm -f conftest*
12523 LIBS="$ac_save_LIBS"
12526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12527 echo "$ac_t""yes" 1>&6
12528 LIBS="$LIBS -lkrb5";
12529 cat >> confdefs.h <<\EOF
12530 #define HAVE_KRB5 1
12533 else
12534 echo "$ac_t""no" 1>&6
12538 ########################################################
12539 # now see if we can find the gssapi libs in standard paths
12540 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12541 echo "configure:12542: checking for gss_display_status in -lgssapi_krb5" >&5
12542 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12544 echo $ac_n "(cached) $ac_c" 1>&6
12545 else
12546 ac_save_LIBS="$LIBS"
12547 LIBS="-lgssapi_krb5 $LIBS"
12548 cat > conftest.$ac_ext <<EOF
12549 #line 12550 "configure"
12550 #include "confdefs.h"
12551 /* Override any gcc2 internal prototype to avoid an error. */
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12554 char gss_display_status();
12556 int main() {
12557 gss_display_status()
12558 ; return 0; }
12560 if { (eval echo configure:12561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12561 rm -rf conftest*
12562 eval "ac_cv_lib_$ac_lib_var=yes"
12563 else
12564 echo "configure: failed program was:" >&5
12565 cat conftest.$ac_ext >&5
12566 rm -rf conftest*
12567 eval "ac_cv_lib_$ac_lib_var=no"
12569 rm -f conftest*
12570 LIBS="$ac_save_LIBS"
12573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12574 echo "$ac_t""yes" 1>&6
12575 LIBS="$LIBS -lgssapi_krb5";
12576 cat >> confdefs.h <<\EOF
12577 #define HAVE_GSSAPI 1
12580 else
12581 echo "$ac_t""no" 1>&6
12586 ########################################################
12587 # Compile with LDAP support?
12589 with_ldap_support=yes
12590 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12591 echo "configure:12592: checking whether to use LDAP" >&5
12593 # Check whether --with-ldap or --without-ldap was given.
12594 if test "${with_ldap+set}" = set; then
12595 withval="$with_ldap"
12596 case "$withval" in
12598 with_ldap_support=no
12600 esac
12604 echo "$ac_t""$with_ldap_support" 1>&6
12606 if test x"$with_ldap_support" = x"yes"; then
12608 ##################################################################
12609 # we might need the lber lib on some systems. To avoid link errors
12610 # this test must be before the libldap test
12611 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12612 echo "configure:12613: checking for ber_scanf in -llber" >&5
12613 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12615 echo $ac_n "(cached) $ac_c" 1>&6
12616 else
12617 ac_save_LIBS="$LIBS"
12618 LIBS="-llber $LIBS"
12619 cat > conftest.$ac_ext <<EOF
12620 #line 12621 "configure"
12621 #include "confdefs.h"
12622 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12625 char ber_scanf();
12627 int main() {
12628 ber_scanf()
12629 ; return 0; }
12631 if { (eval echo configure:12632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12632 rm -rf conftest*
12633 eval "ac_cv_lib_$ac_lib_var=yes"
12634 else
12635 echo "configure: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12637 rm -rf conftest*
12638 eval "ac_cv_lib_$ac_lib_var=no"
12640 rm -f conftest*
12641 LIBS="$ac_save_LIBS"
12644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12645 echo "$ac_t""yes" 1>&6
12646 LIBS="$LIBS -llber"
12647 else
12648 echo "$ac_t""no" 1>&6
12652 ########################################################
12653 # now see if we can find the ldap libs in standard paths
12654 if test x$have_ldap != xyes; then
12655 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12656 echo "configure:12657: checking for ldap_domain2hostlist in -lldap" >&5
12657 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12660 else
12661 ac_save_LIBS="$LIBS"
12662 LIBS="-lldap $LIBS"
12663 cat > conftest.$ac_ext <<EOF
12664 #line 12665 "configure"
12665 #include "confdefs.h"
12666 /* Override any gcc2 internal prototype to avoid an error. */
12667 /* We use char because int might match the return type of a gcc2
12668 builtin and then its argument prototype would still apply. */
12669 char ldap_domain2hostlist();
12671 int main() {
12672 ldap_domain2hostlist()
12673 ; return 0; }
12675 if { (eval echo configure:12676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12676 rm -rf conftest*
12677 eval "ac_cv_lib_$ac_lib_var=yes"
12678 else
12679 echo "configure: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12681 rm -rf conftest*
12682 eval "ac_cv_lib_$ac_lib_var=no"
12684 rm -f conftest*
12685 LIBS="$ac_save_LIBS"
12688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12689 echo "$ac_t""yes" 1>&6
12690 LIBS="$LIBS -lldap";
12691 cat >> confdefs.h <<\EOF
12692 #define HAVE_LDAP 1
12695 else
12696 echo "$ac_t""no" 1>&6
12700 ########################################################
12701 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12702 # Check found in pam_ldap 145.
12703 for ac_func in ldap_set_rebind_proc
12705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12706 echo "configure:12707: checking for $ac_func" >&5
12707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12709 else
12710 cat > conftest.$ac_ext <<EOF
12711 #line 12712 "configure"
12712 #include "confdefs.h"
12713 /* System header to define __stub macros and hopefully few prototypes,
12714 which can conflict with char $ac_func(); below. */
12715 #include <assert.h>
12716 /* Override any gcc2 internal prototype to avoid an error. */
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12719 char $ac_func();
12721 int main() {
12723 /* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12727 choke me
12728 #else
12729 $ac_func();
12730 #endif
12732 ; return 0; }
12734 if { (eval echo configure:12735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12735 rm -rf conftest*
12736 eval "ac_cv_func_$ac_func=yes"
12737 else
12738 echo "configure: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12740 rm -rf conftest*
12741 eval "ac_cv_func_$ac_func=no"
12743 rm -f conftest*
12746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12747 echo "$ac_t""yes" 1>&6
12748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12749 cat >> confdefs.h <<EOF
12750 #define $ac_tr_func 1
12753 else
12754 echo "$ac_t""no" 1>&6
12756 done
12758 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12759 echo "configure:12760: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12760 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12762 else
12764 cat > conftest.$ac_ext <<EOF
12765 #line 12766 "configure"
12766 #include "confdefs.h"
12768 #include <lber.h>
12769 #include <ldap.h>
12770 int main() {
12771 ldap_set_rebind_proc(0, 0, 0);
12772 ; return 0; }
12774 if { (eval echo configure:12775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12775 rm -rf conftest*
12776 pam_ldap_cv_ldap_set_rebind_proc=3
12777 else
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 rm -rf conftest*
12781 pam_ldap_cv_ldap_set_rebind_proc=2
12783 rm -f conftest*
12786 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12787 cat >> confdefs.h <<EOF
12788 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12794 ########################################################
12795 # Compile with MySQL support?
12796 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
12797 if test "${with_mysql_prefix+set}" = set; then
12798 withval="$with_mysql_prefix"
12799 mysql_prefix="$withval"
12800 else
12801 mysql_prefix=""
12804 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
12805 if test "${with_mysql_exec_prefix+set}" = set; then
12806 withval="$with_mysql_exec_prefix"
12807 mysql_exec_prefix="$withval"
12808 else
12809 mysql_exec_prefix=""
12812 # Check whether --enable-mysqltest or --disable-mysqltest was given.
12813 if test "${enable_mysqltest+set}" = set; then
12814 enableval="$enable_mysqltest"
12816 else
12817 enable_mysqltest=yes
12821 if test x$mysql_exec_prefix != x ; then
12822 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
12823 if test x${MYSQL_CONFIG+set} != xset ; then
12824 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
12827 if test x$mysql_prefix != x ; then
12828 mysql_args="$mysql_args --prefix=$mysql_prefix"
12829 if test x${MYSQL_CONFIG+set} != xset ; then
12830 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
12835 # Extract the first word of "mysql_config", so it can be a program name with args.
12836 set dummy mysql_config; ac_word=$2
12837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12838 echo "configure:12839: checking for $ac_word" >&5
12839 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
12840 echo $ac_n "(cached) $ac_c" 1>&6
12841 else
12842 case "$MYSQL_CONFIG" in
12844 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
12846 ?:/*)
12847 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a dos path.
12850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12851 ac_dummy="$PATH"
12852 for ac_dir in $ac_dummy; do
12853 test -z "$ac_dir" && ac_dir=.
12854 if test -f $ac_dir/$ac_word; then
12855 ac_cv_path_MYSQL_CONFIG="$ac_dir/$ac_word"
12856 break
12858 done
12859 IFS="$ac_save_ifs"
12860 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
12862 esac
12864 MYSQL_CONFIG="$ac_cv_path_MYSQL_CONFIG"
12865 if test -n "$MYSQL_CONFIG"; then
12866 echo "$ac_t""$MYSQL_CONFIG" 1>&6
12867 else
12868 echo "$ac_t""no" 1>&6
12871 min_mysql_version=0.11.0
12872 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
12873 echo "configure:12874: checking for MYSQL - version >= $min_mysql_version" >&5
12874 no_mysql=""
12875 if test "$MYSQL_CONFIG" = "no" ; then
12876 no_mysql=yes
12877 else
12878 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
12879 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
12881 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
12882 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12883 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
12884 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12885 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
12886 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12887 if test "x$enable_mysqltest" = "xyes" ; then
12888 ac_save_CFLAGS="$CFLAGS"
12889 ac_save_LIBS="$LIBS"
12890 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
12891 LIBS="$LIBS $MYSQL_LIBS"
12892 rm -f conf.mysqltest
12893 if test "$cross_compiling" = yes; then
12894 echo $ac_n "cross compiling; assumed OK... $ac_c"
12895 else
12896 cat > conftest.$ac_ext <<EOF
12897 #line 12898 "configure"
12898 #include "confdefs.h"
12900 #include <stdio.h>
12901 #include <stdlib.h>
12902 #include <string.h>
12903 #include <mysql.h>
12905 char*
12906 my_strdup (char *str)
12908 char *new_str;
12910 if (str)
12912 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12913 strcpy (new_str, str);
12915 else
12916 new_str = NULL;
12918 return new_str;
12921 int main (int argc, char *argv[])
12923 int major, minor, micro;
12924 char *tmp_version;
12926 /* This hangs on some systems (?)
12927 system ("touch conf.mysqltest");
12929 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
12931 /* HP/UX 9 (%@#!) writes to sscanf strings */
12932 tmp_version = my_strdup("$min_mysql_version");
12933 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12934 printf("%s, bad version string\n", "$min_mysql_version");
12935 exit(1);
12938 if (($mysql_major_version > major) ||
12939 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
12940 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
12942 return 0;
12944 else
12946 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
12947 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
12948 printf("*** best to upgrade to the required version.\n");
12949 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
12950 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
12951 printf("*** config.cache before re-running configure\n");
12952 return 1;
12958 if { (eval echo configure:12959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12959 then
12961 else
12962 echo "configure: failed program was:" >&5
12963 cat conftest.$ac_ext >&5
12964 rm -fr conftest*
12965 no_mysql=yes
12967 rm -fr conftest*
12970 CFLAGS="$ac_save_CFLAGS"
12971 LIBS="$ac_save_LIBS"
12974 if test "x$no_mysql" = x ; then
12975 echo "$ac_t""yes" 1>&6
12976 MODULE_MYSQL=bin/mysql.so
12977 else
12978 echo "$ac_t""no" 1>&6
12979 if test "$MYSQL_CONFIG" = "no" ; then
12980 echo "*** The mysql_config script installed by MYSQL could not be found"
12981 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
12982 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
12983 echo "*** full path to mysql_config."
12984 else
12985 if test -f conf.mysqltest ; then
12987 else
12988 echo "*** Could not run MYSQL test program, checking why..."
12989 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
12990 LIBS="$LIBS $MYSQL_LIBS"
12991 cat > conftest.$ac_ext <<EOF
12992 #line 12993 "configure"
12993 #include "confdefs.h"
12995 #include <stdio.h>
12996 #include <mysql.h>
12998 int main(int argc, char *argv[])
12999 { return 0; }
13000 #undef main
13001 #define main K_and_R_C_main
13003 int main() {
13004 return 0;
13005 ; return 0; }
13007 if { (eval echo configure:13008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13008 rm -rf conftest*
13009 echo "*** The test program compiled, but did not run. This usually means"
13010 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13011 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13012 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13013 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13014 echo "*** is required on your system"
13015 echo "***"
13016 echo "*** If you have an old version installed, it is best to remove it, although"
13017 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13018 else
13019 echo "configure: failed program was:" >&5
13020 cat conftest.$ac_ext >&5
13021 rm -rf conftest*
13022 echo "*** The test program failed to compile or link. See the file config.log for the"
13023 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13024 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13025 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13027 rm -f conftest*
13028 CFLAGS="$ac_save_CFLAGS"
13029 LIBS="$ac_save_LIBS"
13032 MYSQL_CFLAGS=""
13033 MYSQL_LIBS=""
13034 MODULE_MYSQL=
13038 rm -f conf.mysqltest
13040 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13043 ########################################################
13044 # Compile with XML support?
13046 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13047 if test "${with_xml_prefix+set}" = set; then
13048 withval="$with_xml_prefix"
13049 xml_config_prefix="$withval"
13050 else
13051 xml_config_prefix=""
13054 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13055 if test "${with_xml_exec_prefix+set}" = set; then
13056 withval="$with_xml_exec_prefix"
13057 xml_config_exec_prefix="$withval"
13058 else
13059 xml_config_exec_prefix=""
13062 # Check whether --enable-xmltest or --disable-xmltest was given.
13063 if test "${enable_xmltest+set}" = set; then
13064 enableval="$enable_xmltest"
13066 else
13067 enable_xmltest=yes
13071 if test x$xml_config_exec_prefix != x ; then
13072 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13073 if test x${XML2_CONFIG+set} != xset ; then
13074 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
13077 if test x$xml_config_prefix != x ; then
13078 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
13079 if test x${XML2_CONFIG+set} != xset ; then
13080 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
13084 # Extract the first word of "xml2-config", so it can be a program name with args.
13085 set dummy xml2-config; ac_word=$2
13086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13087 echo "configure:13088: checking for $ac_word" >&5
13088 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13089 echo $ac_n "(cached) $ac_c" 1>&6
13090 else
13091 case "$XML2_CONFIG" in
13093 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
13095 ?:/*)
13096 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a dos path.
13099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13100 ac_dummy="$PATH"
13101 for ac_dir in $ac_dummy; do
13102 test -z "$ac_dir" && ac_dir=.
13103 if test -f $ac_dir/$ac_word; then
13104 ac_cv_path_XML2_CONFIG="$ac_dir/$ac_word"
13105 break
13107 done
13108 IFS="$ac_save_ifs"
13109 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
13111 esac
13113 XML2_CONFIG="$ac_cv_path_XML2_CONFIG"
13114 if test -n "$XML2_CONFIG"; then
13115 echo "$ac_t""$XML2_CONFIG" 1>&6
13116 else
13117 echo "$ac_t""no" 1>&6
13120 min_xml_version=2.0.0
13121 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13122 echo "configure:13123: checking for libxml - version >= $min_xml_version" >&5
13123 no_xml=""
13124 if test "$XML2_CONFIG" = "no" ; then
13125 no_xml=yes
13126 else
13127 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
13128 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
13129 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
13130 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13131 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
13132 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13133 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
13134 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13135 if test "x$enable_xmltest" = "xyes" ; then
13136 ac_save_CFLAGS="$CFLAGS"
13137 ac_save_LIBS="$LIBS"
13138 CFLAGS="$CFLAGS $XML_CFLAGS"
13139 LIBS="$XML_LIBS $LIBS"
13140 rm -f conf.xmltest
13141 if test "$cross_compiling" = yes; then
13142 echo $ac_n "cross compiling; assumed OK... $ac_c"
13143 else
13144 cat > conftest.$ac_ext <<EOF
13145 #line 13146 "configure"
13146 #include "confdefs.h"
13148 #include <stdlib.h>
13149 #include <stdio.h>
13150 #include <string.h>
13151 #include <libxml/xmlversion.h>
13153 int
13154 main()
13156 int xml_major_version, xml_minor_version, xml_micro_version;
13157 int major, minor, micro;
13158 char *tmp_version;
13160 system("touch conf.xmltest");
13162 /* Capture xml2-config output via autoconf/configure variables */
13163 /* HP/UX 9 (%@#!) writes to sscanf strings */
13164 tmp_version = (char *)strdup("$min_xml_version");
13165 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13166 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13167 exit(1);
13169 free(tmp_version);
13171 /* Capture the version information from the header files */
13172 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13173 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13174 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13175 exit(1);
13177 free(tmp_version);
13179 /* Compare xml2-config output to the libxml headers */
13180 if ((xml_major_version != $xml_config_major_version) ||
13181 (xml_minor_version != $xml_config_minor_version) ||
13182 (xml_micro_version != $xml_config_micro_version))
13184 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13185 xml_major_version, xml_minor_version, xml_micro_version);
13186 printf("*** xml2-config (version %d.%d.%d)\n",
13187 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13188 return 1;
13190 /* Compare the headers to the library to make sure we match */
13191 /* Less than ideal -- doesn't provide us with return value feedback,
13192 * only exits if there's a serious mismatch between header and library.
13194 LIBXML_TEST_VERSION;
13196 /* Test that the library is greater than our minimum version */
13197 if ((xml_major_version > major) ||
13198 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13199 ((xml_major_version == major) && (xml_minor_version == minor) &&
13200 (xml_micro_version >= micro)))
13202 return 0;
13204 else
13206 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13207 xml_major_version, xml_minor_version, xml_micro_version);
13208 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13209 major, minor, micro);
13210 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13211 printf("***\n");
13212 printf("*** If you have already installed a sufficiently new version, this error\n");
13213 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13214 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13215 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13216 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13217 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13218 printf("*** so that the correct libraries are found at run-time))\n");
13220 return 1;
13224 if { (eval echo configure:13225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13225 then
13227 else
13228 echo "configure: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13230 rm -fr conftest*
13231 no_xml=yes
13233 rm -fr conftest*
13236 CFLAGS="$ac_save_CFLAGS"
13237 LIBS="$ac_save_LIBS"
13241 if test "x$no_xml" = x ; then
13242 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13243 MODULE_XML=bin/xml.so
13244 else
13245 echo "$ac_t""no" 1>&6
13246 if test "$XML2_CONFIG" = "no" ; then
13247 echo "*** The xml2-config script installed by LIBXML could not be found"
13248 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13249 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13250 echo "*** full path to xml2-config."
13251 else
13252 if test -f conf.xmltest ; then
13254 else
13255 echo "*** Could not run libxml test program, checking why..."
13256 CFLAGS="$CFLAGS $XML_CFLAGS"
13257 LIBS="$LIBS $XML_LIBS"
13258 cat > conftest.$ac_ext <<EOF
13259 #line 13260 "configure"
13260 #include "confdefs.h"
13262 #include <libxml/xmlversion.h>
13263 #include <stdio.h>
13265 int main() {
13266 LIBXML_TEST_VERSION; return 0;
13267 ; return 0; }
13269 if { (eval echo configure:13270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13270 rm -rf conftest*
13271 echo "*** The test program compiled, but did not run. This usually means"
13272 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13273 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13274 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13275 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13276 echo "*** is required on your system"
13277 echo "***"
13278 echo "*** If you have an old version installed, it is best to remove it, although"
13279 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13280 else
13281 echo "configure: failed program was:" >&5
13282 cat conftest.$ac_ext >&5
13283 rm -rf conftest*
13284 echo "*** The test program failed to compile or link. See the file config.log for the"
13285 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13286 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13287 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13289 rm -f conftest*
13290 CFLAGS="$ac_save_CFLAGS"
13291 LIBS="$ac_save_LIBS"
13295 XML_CFLAGS=""
13296 XML_LIBS=""
13297 MODULE_XML=
13301 rm -f conf.xmltest
13303 CFLAGS="$CFLAGS $XML_CFLAGS"
13306 #################################################
13307 # check for automount support
13308 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13309 echo "configure:13310: checking whether to use automount" >&5
13310 # Check whether --with-automount or --without-automount was given.
13311 if test "${with_automount+set}" = set; then
13312 withval="$with_automount"
13313 case "$withval" in
13314 yes)
13315 echo "$ac_t""yes" 1>&6
13316 cat >> confdefs.h <<\EOF
13317 #define WITH_AUTOMOUNT 1
13322 echo "$ac_t""no" 1>&6
13324 esac
13325 else
13326 echo "$ac_t""no" 1>&6
13331 #################################################
13332 # check for smbmount support
13333 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13334 echo "configure:13335: checking whether to use smbmount" >&5
13335 # Check whether --with-smbmount or --without-smbmount was given.
13336 if test "${with_smbmount+set}" = set; then
13337 withval="$with_smbmount"
13338 case "$withval" in
13339 yes)
13340 case "$host_os" in
13341 *linux*)
13342 echo "$ac_t""yes" 1>&6
13343 cat >> confdefs.h <<\EOF
13344 #define WITH_SMBMOUNT 1
13347 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13350 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13352 esac
13355 echo "$ac_t""no" 1>&6
13357 esac
13358 else
13359 echo "$ac_t""no" 1>&6
13365 #################################################
13366 # check for a PAM clear-text auth, accounts, password and session support
13367 with_pam_for_crypt=no
13368 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13369 echo "configure:13370: checking whether to use PAM" >&5
13370 # Check whether --with-pam or --without-pam was given.
13371 if test "${with_pam+set}" = set; then
13372 withval="$with_pam"
13373 case "$withval" in
13374 yes)
13375 echo "$ac_t""yes" 1>&6
13376 cat >> confdefs.h <<\EOF
13377 #define WITH_PAM 1
13380 AUTHLIBS="$AUTHLIBS -lpam"
13381 with_pam_for_crypt=yes
13384 echo "$ac_t""no" 1>&6
13386 esac
13387 else
13388 echo "$ac_t""no" 1>&6
13393 # we can't build a pam module if we don't have pam.
13394 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13395 echo "configure:13396: checking for pam_get_data in -lpam" >&5
13396 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
13399 else
13400 ac_save_LIBS="$LIBS"
13401 LIBS="-lpam $LIBS"
13402 cat > conftest.$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13408 char pam_get_data();
13410 int main() {
13411 pam_get_data()
13412 ; return 0; }
13414 if { (eval echo configure:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13415 rm -rf conftest*
13416 eval "ac_cv_lib_$ac_lib_var=yes"
13417 else
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13420 rm -rf conftest*
13421 eval "ac_cv_lib_$ac_lib_var=no"
13423 rm -f conftest*
13424 LIBS="$ac_save_LIBS"
13427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13428 echo "$ac_t""yes" 1>&6
13429 cat >> confdefs.h <<\EOF
13430 #define HAVE_LIBPAM 1
13433 else
13434 echo "$ac_t""no" 1>&6
13438 #################################################
13439 # check for pam_smbpass support
13440 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13441 echo "configure:13442: checking whether to use pam_smbpass" >&5
13442 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13443 if test "${with_pam_smbpass+set}" = set; then
13444 withval="$with_pam_smbpass"
13445 case "$withval" in
13446 yes)
13447 echo "$ac_t""yes" 1>&6
13449 # Conditions under which pam_smbpass should not be built.
13451 if test x$PICFLAG = x; then
13452 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13453 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
13454 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13455 else
13456 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
13460 echo "$ac_t""no" 1>&6
13462 esac
13463 else
13464 echo "$ac_t""no" 1>&6
13470 ###############################################
13471 # test for where we get crypt() from, but only
13472 # if not using PAM
13473 if test x"$with_pam_for_crypt" = x"no"; then
13474 for ac_func in crypt
13476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13477 echo "configure:13478: checking for $ac_func" >&5
13478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13480 else
13481 cat > conftest.$ac_ext <<EOF
13482 #line 13483 "configure"
13483 #include "confdefs.h"
13484 /* System header to define __stub macros and hopefully few prototypes,
13485 which can conflict with char $ac_func(); below. */
13486 #include <assert.h>
13487 /* Override any gcc2 internal prototype to avoid an error. */
13488 /* We use char because int might match the return type of a gcc2
13489 builtin and then its argument prototype would still apply. */
13490 char $ac_func();
13492 int main() {
13494 /* The GNU C library defines this for functions which it implements
13495 to always fail with ENOSYS. Some functions are actually named
13496 something starting with __ and the normal name is an alias. */
13497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13498 choke me
13499 #else
13500 $ac_func();
13501 #endif
13503 ; return 0; }
13505 if { (eval echo configure:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13506 rm -rf conftest*
13507 eval "ac_cv_func_$ac_func=yes"
13508 else
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 rm -rf conftest*
13512 eval "ac_cv_func_$ac_func=no"
13514 rm -f conftest*
13517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13518 echo "$ac_t""yes" 1>&6
13519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13520 cat >> confdefs.h <<EOF
13521 #define $ac_tr_func 1
13524 else
13525 echo "$ac_t""no" 1>&6
13527 done
13529 if test x"$ac_cv_func_crypt" = x"no"; then
13530 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13531 echo "configure:13532: checking for crypt in -lcrypt" >&5
13532 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13534 echo $ac_n "(cached) $ac_c" 1>&6
13535 else
13536 ac_save_LIBS="$LIBS"
13537 LIBS="-lcrypt $LIBS"
13538 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 /* Override any gcc2 internal prototype to avoid an error. */
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13544 char crypt();
13546 int main() {
13547 crypt()
13548 ; return 0; }
13550 if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13551 rm -rf conftest*
13552 eval "ac_cv_lib_$ac_lib_var=yes"
13553 else
13554 echo "configure: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13556 rm -rf conftest*
13557 eval "ac_cv_lib_$ac_lib_var=no"
13559 rm -f conftest*
13560 LIBS="$ac_save_LIBS"
13563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13564 echo "$ac_t""yes" 1>&6
13565 AUTHLIBS="$AUTHLIBS -lcrypt";
13566 cat >> confdefs.h <<\EOF
13567 #define HAVE_CRYPT 1
13570 else
13571 echo "$ac_t""no" 1>&6
13578 ## moved after the check for -lcrypt in order to
13579 ## ensure that the necessary libraries are included
13580 ## check checking for truncated salt. Wrapped by the
13581 ## $with_pam_for_crypt variable as above --jerry
13583 if test $with_pam_for_crypt = no; then
13584 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13585 echo "configure:13586: checking for a crypt that needs truncated salt" >&5
13586 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13587 echo $ac_n "(cached) $ac_c" 1>&6
13588 else
13590 crypt_LIBS="$LIBS"
13591 LIBS="$AUTHLIBS $LIBS"
13592 if test "$cross_compiling" = yes; then
13593 samba_cv_HAVE_TRUNCATED_SALT=cross
13594 else
13595 cat > conftest.$ac_ext <<EOF
13596 #line 13597 "configure"
13597 #include "confdefs.h"
13598 #include "${srcdir-.}/tests/crypttest.c"
13600 if { (eval echo configure:13601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13601 then
13602 samba_cv_HAVE_TRUNCATED_SALT=no
13603 else
13604 echo "configure: failed program was:" >&5
13605 cat conftest.$ac_ext >&5
13606 rm -fr conftest*
13607 samba_cv_HAVE_TRUNCATED_SALT=yes
13609 rm -fr conftest*
13612 LIBS="$crypt_LIBS"
13615 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
13616 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
13617 cat >> confdefs.h <<\EOF
13618 #define HAVE_TRUNCATED_SALT 1
13624 # New experimental SAM system
13626 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
13627 echo "configure:13628: checking whether to build the new (experimental) SAM database" >&5
13628 # Check whether --with-sam or --without-sam was given.
13629 if test "${with_sam+set}" = set; then
13630 withval="$with_sam"
13631 case "$withval" in
13632 yes)
13633 echo "$ac_t""yes" 1>&6
13634 cat >> confdefs.h <<\EOF
13635 #define WITH_SAM 1
13640 echo "$ac_t""no" 1>&6
13642 esac
13643 else
13644 echo "$ac_t""no" 1>&6
13650 ########################################################################################
13652 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
13654 ########################################################################################
13656 #################################################
13657 # check for a LDAP password database configuration backwards compatibility
13658 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
13659 echo "configure:13660: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
13660 # Check whether --with-ldapsam or --without-ldapsam was given.
13661 if test "${with_ldapsam+set}" = set; then
13662 withval="$with_ldapsam"
13663 case "$withval" in
13664 yes)
13665 echo "$ac_t""yes" 1>&6
13666 cat >> confdefs.h <<\EOF
13667 #define WITH_LDAP_SAMCONFIG 1
13672 echo "$ac_t""no" 1>&6
13674 esac
13675 else
13676 echo "$ac_t""no" 1>&6
13681 #################################################
13682 # check for a TDB password database
13683 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
13684 echo "configure:13685: checking whether to use TDB SAM database" >&5
13685 # Check whether --with-tdbsam or --without-tdbsam was given.
13686 if test "${with_tdbsam+set}" = set; then
13687 withval="$with_tdbsam"
13688 case "$withval" in
13689 yes)
13690 echo "$ac_t""yes" 1>&6
13691 cat >> confdefs.h <<\EOF
13692 #define WITH_TDB_SAM 1
13697 echo "$ac_t""no" 1>&6
13699 esac
13700 else
13701 echo "$ac_t""no" 1>&6
13706 #################################################
13707 # check for a NISPLUS password database
13708 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
13709 echo "configure:13710: checking whether to use NISPLUS SAM database" >&5
13710 # Check whether --with-nisplussam or --without-nisplussam was given.
13711 if test "${with_nisplussam+set}" = set; then
13712 withval="$with_nisplussam"
13713 case "$withval" in
13714 yes)
13715 echo "$ac_t""yes" 1>&6
13716 cat >> confdefs.h <<\EOF
13717 #define WITH_NISPLUS_SAM 1
13722 echo "$ac_t""no" 1>&6
13724 esac
13725 else
13726 echo "$ac_t""no" 1>&6
13731 ########################################################################################
13733 ## END OF TESTS FOR SAM BACKENDS.
13735 ########################################################################################
13737 #################################################
13738 # check for a NISPLUS_HOME support
13739 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
13740 echo "configure:13741: checking whether to use NISPLUS_HOME" >&5
13741 # Check whether --with-nisplus-home or --without-nisplus-home was given.
13742 if test "${with_nisplus_home+set}" = set; then
13743 withval="$with_nisplus_home"
13744 case "$withval" in
13745 yes)
13746 echo "$ac_t""yes" 1>&6
13747 cat >> confdefs.h <<\EOF
13748 #define WITH_NISPLUS_HOME 1
13753 echo "$ac_t""no" 1>&6
13755 esac
13756 else
13757 echo "$ac_t""no" 1>&6
13762 #################################################
13763 # check for syslog logging
13764 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
13765 echo "configure:13766: checking whether to use syslog logging" >&5
13766 # Check whether --with-syslog or --without-syslog was given.
13767 if test "${with_syslog+set}" = set; then
13768 withval="$with_syslog"
13769 case "$withval" in
13770 yes)
13771 echo "$ac_t""yes" 1>&6
13772 cat >> confdefs.h <<\EOF
13773 #define WITH_SYSLOG 1
13778 echo "$ac_t""no" 1>&6
13780 esac
13781 else
13782 echo "$ac_t""no" 1>&6
13787 #################################################
13788 # check for a shared memory profiling support
13789 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
13790 echo "configure:13791: checking whether to use profiling" >&5
13791 # Check whether --with-profiling-data or --without-profiling-data was given.
13792 if test "${with_profiling_data+set}" = set; then
13793 withval="$with_profiling_data"
13794 case "$withval" in
13795 yes)
13796 echo "$ac_t""yes" 1>&6
13797 cat >> confdefs.h <<\EOF
13798 #define WITH_PROFILE 1
13803 echo "$ac_t""no" 1>&6
13805 esac
13806 else
13807 echo "$ac_t""no" 1>&6
13813 #################################################
13814 # check for experimental disk-quotas support
13815 QUOTAOBJS=smbd/noquotas.o
13817 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13818 echo "configure:13819: checking whether to support disk-quotas" >&5
13819 # Check whether --with-quotas or --without-quotas was given.
13820 if test "${with_quotas+set}" = set; then
13821 withval="$with_quotas"
13822 case "$withval" in
13823 yes)
13824 echo "$ac_t""yes" 1>&6
13825 case "$host_os" in
13826 *linux*)
13827 # Check for kernel 2.4.x quota braindamage...
13828 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13829 echo "configure:13830: checking for linux 2.4.x quota braindamage.." >&5
13830 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13831 echo $ac_n "(cached) $ac_c" 1>&6
13832 else
13834 cat > conftest.$ac_ext <<EOF
13835 #line 13836 "configure"
13836 #include "confdefs.h"
13837 #include <stdio.h>
13838 #include <sys/types.h>
13839 #include <asm/types.h>
13840 #include <linux/quota.h>
13841 #include <mntent.h>
13842 #include <linux/unistd.h>
13843 int main() {
13844 struct mem_dqblk D;
13845 ; return 0; }
13847 if { (eval echo configure:13848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13848 rm -rf conftest*
13849 samba_cv_linux_2_4_quota_braindamage=yes
13850 else
13851 echo "configure: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13853 rm -rf conftest*
13854 samba_cv_linux_2_4_quota_braindamage=no
13856 rm -f conftest*
13859 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13860 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13861 cat >> confdefs.h <<\EOF
13862 #define LINUX_QUOTAS_2 1
13865 else
13866 cat >> confdefs.h <<\EOF
13867 #define LINUX_QUOTAS_1 1
13874 esac
13875 QUOTAOBJS=smbd/quotas.o
13876 cat >> confdefs.h <<\EOF
13877 #define WITH_QUOTAS 1
13882 echo "$ac_t""no" 1>&6
13884 esac
13885 else
13886 echo "$ac_t""no" 1>&6
13892 #################################################
13893 # check for experimental utmp accounting
13895 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13896 echo "configure:13897: checking whether to support utmp accounting" >&5
13897 # Check whether --with-utmp or --without-utmp was given.
13898 if test "${with_utmp+set}" = set; then
13899 withval="$with_utmp"
13900 case "$withval" in
13901 yes)
13902 echo "$ac_t""yes" 1>&6
13903 cat >> confdefs.h <<\EOF
13904 #define WITH_UTMP 1
13909 echo "$ac_t""no" 1>&6
13911 esac
13912 else
13913 echo "$ac_t""no" 1>&6
13918 #################################################
13919 # choose native language(s) of man pages
13920 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13921 echo "configure:13922: checking chosen man pages' language(s)" >&5
13922 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13923 if test "${with_manpages_langs+set}" = set; then
13924 withval="$with_manpages_langs"
13925 case "$withval" in
13926 yes|no)
13927 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13928 manlangs="en"
13931 manlangs="$withval"
13933 esac
13935 echo "$ac_t""$manlangs" 1>&6
13936 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
13938 else
13939 manlangs="en"
13940 echo "$ac_t""$manlangs" 1>&6
13946 #################################################
13947 # should we build libsmbclient?
13949 LIBSMBCLIENT_SHARED=
13950 LIBSMBCLIENT=
13951 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13952 echo "configure:13953: checking whether to build the libsmbclient shared library" >&5
13953 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13954 if test "${with_libsmbclient+set}" = set; then
13955 withval="$with_libsmbclient"
13956 case "$withval" in
13957 no)
13958 echo "$ac_t""no" 1>&6
13961 if test $BLDSHARED = true; then
13962 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13963 LIBSMBCLIENT=libsmbclient
13964 echo "$ac_t""yes" 1>&6
13965 else
13966 echo "$ac_t""no shared library support" 1>&6
13969 esac
13970 else
13971 echo "$ac_t""yes" 1>&6
13977 #################################################
13978 # these tests are taken from the GNU fileutils package
13979 echo "checking how to get filesystem space usage" 1>&6
13980 echo "configure:13981: checking how to get filesystem space usage" >&5
13981 space=no
13983 # Test for statvfs64.
13984 if test $space = no; then
13985 # SVR4
13986 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13987 echo "configure:13988: checking statvfs64 function (SVR4)" >&5
13988 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13989 echo $ac_n "(cached) $ac_c" 1>&6
13990 else
13991 if test "$cross_compiling" = yes; then
13992 fu_cv_sys_stat_statvfs64=cross
13993 else
13994 cat > conftest.$ac_ext <<EOF
13995 #line 13996 "configure"
13996 #include "confdefs.h"
13998 #if defined(HAVE_UNISTD_H)
13999 #include <unistd.h>
14000 #endif
14001 #include <sys/types.h>
14002 #include <sys/statvfs.h>
14003 main ()
14005 struct statvfs64 fsd;
14006 exit (statvfs64 (".", &fsd));
14009 if { (eval echo configure:14010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14010 then
14011 fu_cv_sys_stat_statvfs64=yes
14012 else
14013 echo "configure: failed program was:" >&5
14014 cat conftest.$ac_ext >&5
14015 rm -fr conftest*
14016 fu_cv_sys_stat_statvfs64=no
14018 rm -fr conftest*
14023 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
14024 if test $fu_cv_sys_stat_statvfs64 = yes; then
14025 space=yes
14026 cat >> confdefs.h <<\EOF
14027 #define STAT_STATVFS64 1
14033 # Perform only the link test since it seems there are no variants of the
14034 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14035 # because that got a false positive on SCO OSR5. Adding the declaration
14036 # of a `struct statvfs' causes this test to fail (as it should) on such
14037 # systems. That system is reported to work fine with STAT_STATFS4 which
14038 # is what it gets when this test fails.
14039 if test $space = no; then
14040 # SVR4
14041 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14042 echo "configure:14043: checking statvfs function (SVR4)" >&5
14043 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
14045 else
14046 cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure"
14048 #include "confdefs.h"
14049 #include <sys/types.h>
14050 #include <sys/statvfs.h>
14051 int main() {
14052 struct statvfs fsd; statvfs (0, &fsd);
14053 ; return 0; }
14055 if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14056 rm -rf conftest*
14057 fu_cv_sys_stat_statvfs=yes
14058 else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 fu_cv_sys_stat_statvfs=no
14064 rm -f conftest*
14067 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14068 if test $fu_cv_sys_stat_statvfs = yes; then
14069 space=yes
14070 cat >> confdefs.h <<\EOF
14071 #define STAT_STATVFS 1
14077 if test $space = no; then
14078 # DEC Alpha running OSF/1
14079 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14080 echo "configure:14081: checking for 3-argument statfs function (DEC OSF/1)" >&5
14081 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14082 echo $ac_n "(cached) $ac_c" 1>&6
14083 else
14084 if test "$cross_compiling" = yes; then
14085 fu_cv_sys_stat_statfs3_osf1=no
14086 else
14087 cat > conftest.$ac_ext <<EOF
14088 #line 14089 "configure"
14089 #include "confdefs.h"
14091 #include <sys/param.h>
14092 #include <sys/types.h>
14093 #include <sys/mount.h>
14094 main ()
14096 struct statfs fsd;
14097 fsd.f_fsize = 0;
14098 exit (statfs (".", &fsd, sizeof (struct statfs)));
14101 if { (eval echo configure:14102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14102 then
14103 fu_cv_sys_stat_statfs3_osf1=yes
14104 else
14105 echo "configure: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14107 rm -fr conftest*
14108 fu_cv_sys_stat_statfs3_osf1=no
14110 rm -fr conftest*
14115 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14116 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14117 space=yes
14118 cat >> confdefs.h <<\EOF
14119 #define STAT_STATFS3_OSF1 1
14125 if test $space = no; then
14126 # AIX
14127 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14128 echo "configure:14129: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14129 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14130 echo $ac_n "(cached) $ac_c" 1>&6
14131 else
14132 if test "$cross_compiling" = yes; then
14133 fu_cv_sys_stat_statfs2_bsize=no
14134 else
14135 cat > conftest.$ac_ext <<EOF
14136 #line 14137 "configure"
14137 #include "confdefs.h"
14139 #ifdef HAVE_SYS_PARAM_H
14140 #include <sys/param.h>
14141 #endif
14142 #ifdef HAVE_SYS_MOUNT_H
14143 #include <sys/mount.h>
14144 #endif
14145 #ifdef HAVE_SYS_VFS_H
14146 #include <sys/vfs.h>
14147 #endif
14148 main ()
14150 struct statfs fsd;
14151 fsd.f_bsize = 0;
14152 exit (statfs (".", &fsd));
14155 if { (eval echo configure:14156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14156 then
14157 fu_cv_sys_stat_statfs2_bsize=yes
14158 else
14159 echo "configure: failed program was:" >&5
14160 cat conftest.$ac_ext >&5
14161 rm -fr conftest*
14162 fu_cv_sys_stat_statfs2_bsize=no
14164 rm -fr conftest*
14169 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14170 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14171 space=yes
14172 cat >> confdefs.h <<\EOF
14173 #define STAT_STATFS2_BSIZE 1
14179 if test $space = no; then
14180 # SVR3
14181 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14182 echo "configure:14183: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14183 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14184 echo $ac_n "(cached) $ac_c" 1>&6
14185 else
14186 if test "$cross_compiling" = yes; then
14187 fu_cv_sys_stat_statfs4=no
14188 else
14189 cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 #include <sys/types.h>
14193 #include <sys/statfs.h>
14194 main ()
14196 struct statfs fsd;
14197 exit (statfs (".", &fsd, sizeof fsd, 0));
14200 if { (eval echo configure:14201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14201 then
14202 fu_cv_sys_stat_statfs4=yes
14203 else
14204 echo "configure: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14206 rm -fr conftest*
14207 fu_cv_sys_stat_statfs4=no
14209 rm -fr conftest*
14214 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14215 if test $fu_cv_sys_stat_statfs4 = yes; then
14216 space=yes
14217 cat >> confdefs.h <<\EOF
14218 #define STAT_STATFS4 1
14224 if test $space = no; then
14225 # 4.4BSD and NetBSD
14226 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14227 echo "configure:14228: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14228 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14229 echo $ac_n "(cached) $ac_c" 1>&6
14230 else
14231 if test "$cross_compiling" = yes; then
14232 fu_cv_sys_stat_statfs2_fsize=no
14233 else
14234 cat > conftest.$ac_ext <<EOF
14235 #line 14236 "configure"
14236 #include "confdefs.h"
14237 #include <sys/types.h>
14238 #ifdef HAVE_SYS_PARAM_H
14239 #include <sys/param.h>
14240 #endif
14241 #ifdef HAVE_SYS_MOUNT_H
14242 #include <sys/mount.h>
14243 #endif
14244 main ()
14246 struct statfs fsd;
14247 fsd.f_fsize = 0;
14248 exit (statfs (".", &fsd));
14251 if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14252 then
14253 fu_cv_sys_stat_statfs2_fsize=yes
14254 else
14255 echo "configure: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14257 rm -fr conftest*
14258 fu_cv_sys_stat_statfs2_fsize=no
14260 rm -fr conftest*
14265 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14266 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14267 space=yes
14268 cat >> confdefs.h <<\EOF
14269 #define STAT_STATFS2_FSIZE 1
14275 if test $space = no; then
14276 # Ultrix
14277 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14278 echo "configure:14279: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14279 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14280 echo $ac_n "(cached) $ac_c" 1>&6
14281 else
14282 if test "$cross_compiling" = yes; then
14283 fu_cv_sys_stat_fs_data=no
14284 else
14285 cat > conftest.$ac_ext <<EOF
14286 #line 14287 "configure"
14287 #include "confdefs.h"
14288 #include <sys/types.h>
14289 #ifdef HAVE_SYS_PARAM_H
14290 #include <sys/param.h>
14291 #endif
14292 #ifdef HAVE_SYS_MOUNT_H
14293 #include <sys/mount.h>
14294 #endif
14295 #ifdef HAVE_SYS_FS_TYPES_H
14296 #include <sys/fs_types.h>
14297 #endif
14298 main ()
14300 struct fs_data fsd;
14301 /* Ultrix's statfs returns 1 for success,
14302 0 for not mounted, -1 for failure. */
14303 exit (statfs (".", &fsd) != 1);
14306 if { (eval echo configure:14307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14307 then
14308 fu_cv_sys_stat_fs_data=yes
14309 else
14310 echo "configure: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14312 rm -fr conftest*
14313 fu_cv_sys_stat_fs_data=no
14315 rm -fr conftest*
14320 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14321 if test $fu_cv_sys_stat_fs_data = yes; then
14322 space=yes
14323 cat >> confdefs.h <<\EOF
14324 #define STAT_STATFS2_FS_DATA 1
14331 # As a gating factor for large file support, in order to
14332 # use <4GB files we must have the following minimal support
14333 # available.
14334 # long long, and a 64 bit off_t or off64_t.
14335 # If we don't have all of these then disable large
14336 # file support.
14338 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14339 echo "configure:14340: checking if large file support can be enabled" >&5
14340 cat > conftest.$ac_ext <<EOF
14341 #line 14342 "configure"
14342 #include "confdefs.h"
14344 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14345 #include <sys/types.h>
14346 #else
14347 __COMPILE_ERROR_
14348 #endif
14350 int main() {
14351 int i
14352 ; return 0; }
14354 if { (eval echo configure:14355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14355 rm -rf conftest*
14356 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
14357 else
14358 echo "configure: failed program was:" >&5
14359 cat conftest.$ac_ext >&5
14360 rm -rf conftest*
14361 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
14363 rm -f conftest*
14364 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
14365 cat >> confdefs.h <<\EOF
14366 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14370 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14372 # Check whether --with-spinlocks or --without-spinlocks was given.
14373 if test "${with_spinlocks+set}" = set; then
14374 withval="$with_spinlocks"
14378 if test "x$with_spinlocks" = "xyes"; then
14379 cat >> confdefs.h <<\EOF
14380 #define USE_SPINLOCKS 1
14384 case "$host_cpu" in
14385 sparc)
14386 cat >> confdefs.h <<\EOF
14387 #define SPARC_SPINLOCKS 1
14392 i386|i486|i586|i686)
14393 cat >> confdefs.h <<\EOF
14394 #define INTEL_SPINLOCKS 1
14399 mips)
14400 cat >> confdefs.h <<\EOF
14401 #define MIPS_SPINLOCKS 1
14406 powerpc)
14407 cat >> confdefs.h <<\EOF
14408 #define POWERPC_SPINLOCKS 1
14412 esac
14415 #################################################
14416 # check for ACL support
14418 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14419 echo "configure:14420: checking whether to support ACLs" >&5
14420 # Check whether --with-acl-support or --without-acl-support was given.
14421 if test "${with_acl_support+set}" = set; then
14422 withval="$with_acl_support"
14423 case "$withval" in
14424 yes)
14426 case "$host_os" in
14427 *sysv5*)
14428 echo "$ac_t""Using UnixWare ACLs" 1>&6
14429 cat >> confdefs.h <<\EOF
14430 #define HAVE_UNIXWARE_ACLS 1
14434 *solaris*)
14435 echo "$ac_t""Using solaris ACLs" 1>&6
14436 cat >> confdefs.h <<\EOF
14437 #define HAVE_SOLARIS_ACLS 1
14441 *hpux*)
14442 echo "$ac_t""Using HPUX ACLs" 1>&6
14443 cat >> confdefs.h <<\EOF
14444 #define HAVE_HPUX_ACLS 1
14448 *irix*)
14449 echo "$ac_t""Using IRIX ACLs" 1>&6
14450 cat >> confdefs.h <<\EOF
14451 #define HAVE_IRIX_ACLS 1
14455 *aix*)
14456 echo "$ac_t""Using AIX ACLs" 1>&6
14457 cat >> confdefs.h <<\EOF
14458 #define HAVE_AIX_ACLS 1
14462 *osf*)
14463 echo "$ac_t""Using Tru64 ACLs" 1>&6
14464 cat >> confdefs.h <<\EOF
14465 #define HAVE_TRU64_ACLS 1
14468 LIBS="$LIBS -lpacl"
14471 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14472 echo "configure:14473: checking for acl_get_file in -lacl" >&5
14473 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14475 echo $ac_n "(cached) $ac_c" 1>&6
14476 else
14477 ac_save_LIBS="$LIBS"
14478 LIBS="-lacl $LIBS"
14479 cat > conftest.$ac_ext <<EOF
14480 #line 14481 "configure"
14481 #include "confdefs.h"
14482 /* Override any gcc2 internal prototype to avoid an error. */
14483 /* We use char because int might match the return type of a gcc2
14484 builtin and then its argument prototype would still apply. */
14485 char acl_get_file();
14487 int main() {
14488 acl_get_file()
14489 ; return 0; }
14491 if { (eval echo configure:14492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14492 rm -rf conftest*
14493 eval "ac_cv_lib_$ac_lib_var=yes"
14494 else
14495 echo "configure: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14497 rm -rf conftest*
14498 eval "ac_cv_lib_$ac_lib_var=no"
14500 rm -f conftest*
14501 LIBS="$ac_save_LIBS"
14504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14505 echo "$ac_t""yes" 1>&6
14506 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14507 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14508 cat >> confdefs.h <<EOF
14509 #define $ac_tr_lib 1
14512 LIBS="-lacl $LIBS"
14514 else
14515 echo "$ac_t""no" 1>&6
14518 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14519 echo "configure:14520: checking for ACL support" >&5
14520 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14521 echo $ac_n "(cached) $ac_c" 1>&6
14522 else
14524 cat > conftest.$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14527 #include <sys/types.h>
14528 #include <sys/acl.h>
14529 int main() {
14530 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14531 ; return 0; }
14533 if { (eval echo configure:14534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14534 rm -rf conftest*
14535 samba_cv_HAVE_POSIX_ACLS=yes
14536 else
14537 echo "configure: failed program was:" >&5
14538 cat conftest.$ac_ext >&5
14539 rm -rf conftest*
14540 samba_cv_HAVE_POSIX_ACLS=no
14542 rm -f conftest*
14545 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14546 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
14547 echo "$ac_t""Using posix ACLs" 1>&6
14548 cat >> confdefs.h <<\EOF
14549 #define HAVE_POSIX_ACLS 1
14552 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14553 echo "configure:14554: checking for acl_get_perm_np" >&5
14554 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14555 echo $ac_n "(cached) $ac_c" 1>&6
14556 else
14558 cat > conftest.$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 #include <sys/types.h>
14562 #include <sys/acl.h>
14563 int main() {
14564 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14565 ; return 0; }
14567 if { (eval echo configure:14568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14568 rm -rf conftest*
14569 samba_cv_HAVE_ACL_GET_PERM_NP=yes
14570 else
14571 echo "configure: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14573 rm -rf conftest*
14574 samba_cv_HAVE_ACL_GET_PERM_NP=no
14576 rm -f conftest*
14579 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14580 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
14581 cat >> confdefs.h <<\EOF
14582 #define HAVE_ACL_GET_PERM_NP 1
14588 esac
14591 echo "$ac_t""no" 1>&6
14592 cat >> confdefs.h <<\EOF
14593 #define HAVE_NO_ACLS 1
14597 esac
14598 else
14599 cat >> confdefs.h <<\EOF
14600 #define HAVE_NO_ACLS 1
14603 echo "$ac_t""no" 1>&6
14608 #################################################
14609 # check for sendfile support
14611 with_sendfile_support=yes
14612 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
14613 echo "configure:14614: checking whether to check to support sendfile" >&5
14614 # Check whether --with-sendfile-support or --without-sendfile-support was given.
14615 if test "${with_sendfile_support+set}" = set; then
14616 withval="$with_sendfile_support"
14617 case "$withval" in
14618 yes)
14620 echo "$ac_t""yes" 1>&6;
14622 case "$host_os" in
14623 *linux*)
14624 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
14625 echo "configure:14626: checking for linux sendfile64 support" >&5
14626 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14627 echo $ac_n "(cached) $ac_c" 1>&6
14628 else
14630 cat > conftest.$ac_ext <<EOF
14631 #line 14632 "configure"
14632 #include "confdefs.h"
14633 #include <sys/sendfile.h>
14634 int main() {
14636 int tofd, fromfd;
14637 off64_t offset;
14638 size_t total;
14639 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
14641 ; return 0; }
14643 if { (eval echo configure:14644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14644 rm -rf conftest*
14645 samba_cv_HAVE_SENDFILE64=yes
14646 else
14647 echo "configure: failed program was:" >&5
14648 cat conftest.$ac_ext >&5
14649 rm -rf conftest*
14650 samba_cv_HAVE_SENDFILE64=no
14652 rm -f conftest*
14655 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14657 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
14658 echo "configure:14659: checking for linux sendfile support" >&5
14659 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14660 echo $ac_n "(cached) $ac_c" 1>&6
14661 else
14663 cat > conftest.$ac_ext <<EOF
14664 #line 14665 "configure"
14665 #include "confdefs.h"
14666 #include <sys/sendfile.h>
14667 int main() {
14669 int tofd, fromfd;
14670 off_t offset;
14671 size_t total;
14672 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14674 ; return 0; }
14676 if { (eval echo configure:14677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14677 rm -rf conftest*
14678 samba_cv_HAVE_SENDFILE=yes
14679 else
14680 echo "configure: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 rm -rf conftest*
14683 samba_cv_HAVE_SENDFILE=no
14685 rm -f conftest*
14688 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14690 # Try and cope with broken Linux sendfile....
14691 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
14692 echo "configure:14693: checking for broken linux sendfile support" >&5
14693 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
14694 echo $ac_n "(cached) $ac_c" 1>&6
14695 else
14697 cat > conftest.$ac_ext <<EOF
14698 #line 14699 "configure"
14699 #include "confdefs.h"
14701 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
14702 #undef _FILE_OFFSET_BITS
14703 #endif
14704 #include <sys/sendfile.h>
14705 int main() {
14707 int tofd, fromfd;
14708 off_t offset;
14709 size_t total;
14710 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14712 ; return 0; }
14714 if { (eval echo configure:14715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14715 rm -rf conftest*
14716 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
14717 else
14718 echo "configure: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14720 rm -rf conftest*
14721 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
14723 rm -f conftest*
14726 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
14728 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14729 cat >> confdefs.h <<\EOF
14730 #define HAVE_SENDFILE64 1
14733 cat >> confdefs.h <<\EOF
14734 #define LINUX_SENDFILE_API 1
14737 cat >> confdefs.h <<\EOF
14738 #define WITH_SENDFILE 1
14741 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14742 cat >> confdefs.h <<\EOF
14743 #define HAVE_SENDFILE 1
14746 cat >> confdefs.h <<\EOF
14747 #define LINUX_SENDFILE_API 1
14750 cat >> confdefs.h <<\EOF
14751 #define WITH_SENDFILE 1
14754 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
14755 cat >> confdefs.h <<\EOF
14756 #define LINUX_BROKEN_SENDFILE_API 1
14759 cat >> confdefs.h <<\EOF
14760 #define WITH_SENDFILE 1
14763 else
14764 echo "$ac_t""no" 1>&6;
14768 *freebsd*)
14769 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
14770 echo "configure:14771: checking for freebsd sendfile support" >&5
14771 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14772 echo $ac_n "(cached) $ac_c" 1>&6
14773 else
14775 cat > conftest.$ac_ext <<EOF
14776 #line 14777 "configure"
14777 #include "confdefs.h"
14779 #include <sys/types.h>
14780 #include <sys/socket.h>
14781 #include <sys/uio.h>
14782 int main() {
14784 int fromfd, tofd;
14785 off_t offset, nwritten;
14786 struct sf_hdtr hdr;
14787 struct iovec hdtrl;
14788 hdr->headers = &hdtrl;
14789 hdr->hdr_cnt = 1;
14790 hdr->trailers = NULL;
14791 hdr->trl_cnt = 0;
14792 hdtrl.iov_base = NULL;
14793 hdtrl.iov_len = 0;
14794 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
14796 ; return 0; }
14798 if { (eval echo configure:14799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14799 rm -rf conftest*
14800 samba_cv_HAVE_SENDFILE=yes
14801 else
14802 echo "configure: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14804 rm -rf conftest*
14805 samba_cv_HAVE_SENDFILE=no
14807 rm -f conftest*
14810 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14812 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14813 cat >> confdefs.h <<\EOF
14814 #define HAVE_SENDFILE 1
14817 cat >> confdefs.h <<\EOF
14818 #define FREEBSD_SENDFILE_API 1
14821 cat >> confdefs.h <<\EOF
14822 #define WITH_SENDFILE 1
14825 else
14826 echo "$ac_t""no" 1>&6;
14830 *hpux*)
14831 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
14832 echo "configure:14833: checking for hpux sendfile64 support" >&5
14833 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14834 echo $ac_n "(cached) $ac_c" 1>&6
14835 else
14837 cat > conftest.$ac_ext <<EOF
14838 #line 14839 "configure"
14839 #include "confdefs.h"
14841 #include <sys/socket.h>
14842 #include <sys/uio.h>
14843 int main() {
14845 int fromfd, tofd;
14846 size_t total=0;
14847 struct iovec hdtrl[2];
14848 ssize_t nwritten;
14849 off64_t offset;
14851 hdtrl[0].iov_base = 0;
14852 hdtrl[0].iov_len = 0;
14854 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
14856 ; return 0; }
14858 if { (eval echo configure:14859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14859 rm -rf conftest*
14860 samba_cv_HAVE_SENDFILE64=yes
14861 else
14862 echo "configure: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14864 rm -rf conftest*
14865 samba_cv_HAVE_SENDFILE64=no
14867 rm -f conftest*
14870 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14871 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14872 cat >> confdefs.h <<\EOF
14873 #define HAVE_SENDFILE64 1
14876 cat >> confdefs.h <<\EOF
14877 #define HPUX_SENDFILE_API 1
14880 cat >> confdefs.h <<\EOF
14881 #define WITH_SENDFILE 1
14884 else
14885 echo "$ac_t""no" 1>&6;
14888 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
14889 echo "configure:14890: checking for hpux sendfile support" >&5
14890 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14892 else
14894 cat > conftest.$ac_ext <<EOF
14895 #line 14896 "configure"
14896 #include "confdefs.h"
14898 #include <sys/socket.h>
14899 #include <sys/uio.h>
14900 int main() {
14902 int fromfd, tofd;
14903 size_t total=0;
14904 struct iovec hdtrl[2];
14905 ssize_t nwritten;
14906 off_t offset;
14908 hdtrl[0].iov_base = 0;
14909 hdtrl[0].iov_len = 0;
14911 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
14913 ; return 0; }
14915 if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14916 rm -rf conftest*
14917 samba_cv_HAVE_SENDFILE=yes
14918 else
14919 echo "configure: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14921 rm -rf conftest*
14922 samba_cv_HAVE_SENDFILE=no
14924 rm -f conftest*
14927 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14928 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14929 cat >> confdefs.h <<\EOF
14930 #define HAVE_SENDFILE 1
14933 cat >> confdefs.h <<\EOF
14934 #define HPUX_SENDFILE_API 1
14937 cat >> confdefs.h <<\EOF
14938 #define WITH_SENDFILE 1
14941 else
14942 echo "$ac_t""no" 1>&6;
14946 *solaris*)
14947 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
14948 echo "configure:14949: checking for sendfilev in -lsendfile" >&5
14949 ac_lib_var=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
14950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14951 echo $ac_n "(cached) $ac_c" 1>&6
14952 else
14953 ac_save_LIBS="$LIBS"
14954 LIBS="-lsendfile $LIBS"
14955 cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14958 /* Override any gcc2 internal prototype to avoid an error. */
14959 /* We use char because int might match the return type of a gcc2
14960 builtin and then its argument prototype would still apply. */
14961 char sendfilev();
14963 int main() {
14964 sendfilev()
14965 ; return 0; }
14967 if { (eval echo configure:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14968 rm -rf conftest*
14969 eval "ac_cv_lib_$ac_lib_var=yes"
14970 else
14971 echo "configure: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14973 rm -rf conftest*
14974 eval "ac_cv_lib_$ac_lib_var=no"
14976 rm -f conftest*
14977 LIBS="$ac_save_LIBS"
14980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14981 echo "$ac_t""yes" 1>&6
14982 ac_tr_lib=HAVE_LIB`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14983 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14984 cat >> confdefs.h <<EOF
14985 #define $ac_tr_lib 1
14988 LIBS="-lsendfile $LIBS"
14990 else
14991 echo "$ac_t""no" 1>&6
14994 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
14995 echo "configure:14996: checking for solaris sendfilev64 support" >&5
14996 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
14997 echo $ac_n "(cached) $ac_c" 1>&6
14998 else
15000 cat > conftest.$ac_ext <<EOF
15001 #line 15002 "configure"
15002 #include "confdefs.h"
15004 #include <sys/sendfile.h>
15005 int main() {
15007 int sfvcnt;
15008 size_t xferred;
15009 struct sendfilevec vec[2];
15010 ssize_t nwritten;
15011 int tofd;
15013 sfvcnt = 2;
15015 vec[0].sfv_fd = SFV_FD_SELF;
15016 vec[0].sfv_flag = 0;
15017 vec[0].sfv_off = 0;
15018 vec[0].sfv_len = 0;
15020 vec[1].sfv_fd = 0;
15021 vec[1].sfv_flag = 0;
15022 vec[1].sfv_off = 0;
15023 vec[1].sfv_len = 0;
15024 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
15026 ; return 0; }
15028 if { (eval echo configure:15029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15029 rm -rf conftest*
15030 samba_cv_HAVE_SENDFILEV64=yes
15031 else
15032 echo "configure: failed program was:" >&5
15033 cat conftest.$ac_ext >&5
15034 rm -rf conftest*
15035 samba_cv_HAVE_SENDFILEV64=no
15037 rm -f conftest*
15040 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15042 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
15043 cat >> confdefs.h <<\EOF
15044 #define HAVE_SENDFILEV64 1
15047 cat >> confdefs.h <<\EOF
15048 #define SOLARIS_SENDFILE_API 1
15051 cat >> confdefs.h <<\EOF
15052 #define WITH_SENDFILE 1
15055 else
15056 echo "$ac_t""no" 1>&6;
15059 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15060 echo "configure:15061: checking for solaris sendfilev support" >&5
15061 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15062 echo $ac_n "(cached) $ac_c" 1>&6
15063 else
15065 cat > conftest.$ac_ext <<EOF
15066 #line 15067 "configure"
15067 #include "confdefs.h"
15069 #include <sys/sendfile.h>
15070 int main() {
15072 int sfvcnt;
15073 size_t xferred;
15074 struct sendfilevec vec[2];
15075 ssize_t nwritten;
15076 int tofd;
15078 sfvcnt = 2;
15080 vec[0].sfv_fd = SFV_FD_SELF;
15081 vec[0].sfv_flag = 0;
15082 vec[0].sfv_off = 0;
15083 vec[0].sfv_len = 0;
15085 vec[1].sfv_fd = 0;
15086 vec[1].sfv_flag = 0;
15087 vec[1].sfv_off = 0;
15088 vec[1].sfv_len = 0;
15089 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15091 ; return 0; }
15093 if { (eval echo configure:15094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15094 rm -rf conftest*
15095 samba_cv_HAVE_SENDFILEV=yes
15096 else
15097 echo "configure: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15099 rm -rf conftest*
15100 samba_cv_HAVE_SENDFILEV=no
15102 rm -f conftest*
15105 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15107 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
15108 cat >> confdefs.h <<\EOF
15109 #define HAVE_SENDFILEV 1
15112 cat >> confdefs.h <<\EOF
15113 #define SOLARIS_SENDFILE_API 1
15116 cat >> confdefs.h <<\EOF
15117 #define WITH_SENDFILE 1
15120 else
15121 echo "$ac_t""no" 1>&6;
15127 esac
15130 echo "$ac_t""no" 1>&6
15132 esac
15133 else
15134 echo "$ac_t""yes" 1>&6
15140 #################################################
15141 # Check whether winbind is supported on this platform. If so we need to
15142 # build and install client programs, sbin programs and shared libraries
15144 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15145 echo "configure:15146: checking whether to build winbind" >&5
15147 # Initially, the value of $host_os decides whether winbind is supported
15149 case "$host_os" in
15150 *linux*|*irix*)
15151 HAVE_WINBIND=yes
15153 *solaris*)
15154 HAVE_WINBIND=yes
15155 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15156 WINBIND_NSS_EXTRA_LIBS="-lsocket"
15158 *hpux11*)
15159 HAVE_WINBIND=yes
15160 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15163 HAVE_WINBIND=no
15164 winbind_no_reason=", unsupported on $host_os"
15166 esac
15171 # Check the setting of --with-winbindd
15173 # Check whether --with-winbind or --without-winbind was given.
15174 if test "${with_winbind+set}" = set; then
15175 withval="$with_winbind"
15177 case "$withval" in
15178 yes)
15179 HAVE_WINBIND=yes
15182 HAVE_WINBIND=no
15183 winbind_reason=""
15185 esac
15189 # We need unix domain sockets for winbind
15191 if test x"$HAVE_WINBIND" = x"yes"; then
15192 if test x"$samba_cv_unixsocket" = x"no"; then
15193 winbind_no_reason=", no unix domain socket support on $host_os"
15194 HAVE_WINBIND=no
15198 # Display test results
15200 if test x"$HAVE_WINBIND" = x"yes"; then
15201 echo "$ac_t""yes" 1>&6
15202 cat >> confdefs.h <<\EOF
15203 #define WITH_WINBIND 1
15207 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15208 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15209 if test x"$BLDSHARED" = x"true"; then
15210 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15211 if test x"$with_pam" = x"yes"; then
15212 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
15215 else
15216 echo "$ac_t""no$winbind_no_reason" 1>&6
15219 # Solaris has some extra fields in struct passwd that need to be
15220 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15221 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15222 # this.
15224 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15225 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15226 # [#include <pwd.h>])
15228 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15229 echo "configure:15230: checking whether struct passwd has pw_comment" >&5
15230 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15231 echo $ac_n "(cached) $ac_c" 1>&6
15232 else
15234 cat > conftest.$ac_ext <<EOF
15235 #line 15236 "configure"
15236 #include "confdefs.h"
15237 #include <pwd.h>
15238 int main() {
15239 struct passwd p; p.pw_comment;
15240 ; return 0; }
15242 if { (eval echo configure:15243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15243 rm -rf conftest*
15244 samba_cv_passwd_pw_comment=yes
15245 else
15246 echo "configure: failed program was:" >&5
15247 cat conftest.$ac_ext >&5
15248 rm -rf conftest*
15249 samba_cv_passwd_pw_comment=no
15251 rm -f conftest*
15254 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15255 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
15256 cat >> confdefs.h <<\EOF
15257 #define HAVE_PASSWD_PW_COMMENT 1
15262 #AC_CHECK_MEMBER(struct passwd.pw_age,
15263 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15264 # [#include <pwd.h>])
15266 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15267 echo "configure:15268: checking whether struct passwd has pw_age" >&5
15268 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15269 echo $ac_n "(cached) $ac_c" 1>&6
15270 else
15272 cat > conftest.$ac_ext <<EOF
15273 #line 15274 "configure"
15274 #include "confdefs.h"
15275 #include <pwd.h>
15276 int main() {
15277 struct passwd p; p.pw_age;
15278 ; return 0; }
15280 if { (eval echo configure:15281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15281 rm -rf conftest*
15282 samba_cv_passwd_pw_age=yes
15283 else
15284 echo "configure: failed program was:" >&5
15285 cat conftest.$ac_ext >&5
15286 rm -rf conftest*
15287 samba_cv_passwd_pw_age=no
15289 rm -f conftest*
15292 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15293 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
15294 cat >> confdefs.h <<\EOF
15295 #define HAVE_PASSWD_PW_AGE 1
15300 #################################################
15301 # Check to see if we should use the included popt
15303 # Check whether --with-included-popt or --without-included-popt was given.
15304 if test "${with_included_popt+set}" = set; then
15305 withval="$with_included_popt"
15307 case "$withval" in
15308 yes)
15309 INCLUDED_POPT=yes
15312 INCLUDED_POPT=no
15314 esac
15317 if test x"$INCLUDED_POPT" != x"yes"; then
15318 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15319 echo "configure:15320: checking for poptGetContext in -lpopt" >&5
15320 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15322 echo $ac_n "(cached) $ac_c" 1>&6
15323 else
15324 ac_save_LIBS="$LIBS"
15325 LIBS="-lpopt $LIBS"
15326 cat > conftest.$ac_ext <<EOF
15327 #line 15328 "configure"
15328 #include "confdefs.h"
15329 /* Override any gcc2 internal prototype to avoid an error. */
15330 /* We use char because int might match the return type of a gcc2
15331 builtin and then its argument prototype would still apply. */
15332 char poptGetContext();
15334 int main() {
15335 poptGetContext()
15336 ; return 0; }
15338 if { (eval echo configure:15339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15339 rm -rf conftest*
15340 eval "ac_cv_lib_$ac_lib_var=yes"
15341 else
15342 echo "configure: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15344 rm -rf conftest*
15345 eval "ac_cv_lib_$ac_lib_var=no"
15347 rm -f conftest*
15348 LIBS="$ac_save_LIBS"
15351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15352 echo "$ac_t""yes" 1>&6
15353 INCLUDED_POPT=no
15354 else
15355 echo "$ac_t""no" 1>&6
15356 INCLUDED_POPT=yes
15361 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15362 echo "configure:15363: checking whether to use included popt" >&5
15363 if test x"$INCLUDED_POPT" = x"yes"; then
15364 echo "$ac_t""yes" 1>&6
15365 BUILD_POPT='$(POPT_OBJS)'
15366 FLAGS1="-I$srcdir/popt"
15367 else
15368 echo "$ac_t""no" 1>&6
15369 LIBS="$LIBS -lpopt"
15374 #################################################
15375 # Check if the user wants Python
15377 # At the moment, you can use this to set which Python binary to link
15378 # against. (Libraries built for Python2.2 can't be used by 2.1,
15379 # though they can coexist in different directories.) In the future
15380 # this might make the Python stuff be built by default.
15382 # Defaulting python breaks the clean target if python isn't installed
15384 PYTHON=
15386 # Check whether --with-python or --without-python was given.
15387 if test "${with_python+set}" = set; then
15388 withval="$with_python"
15389 case "${withval-python}" in
15390 yes)
15391 PYTHON=python
15392 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
15395 PYTHON=
15398 PYTHON=${withval-python}
15400 esac
15405 #################################################
15406 # do extra things if we are running insure
15408 if test "${ac_cv_prog_CC}" = "insure"; then
15409 CPPFLAGS="$CPPFLAGS -D__INSURE__"
15412 #################################################
15413 # final configure stuff
15415 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15416 echo "configure:15417: checking configure summary" >&5
15417 if test "$cross_compiling" = yes; then
15418 echo "configure: warning: cannot run when cross-compiling" 1>&2
15419 else
15420 cat > conftest.$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 #include "${srcdir-.}/tests/summary.c"
15425 if { (eval echo configure:15426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15426 then
15427 echo "$ac_t""yes" 1>&6
15428 else
15429 echo "configure: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 rm -fr conftest*
15432 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15434 rm -fr conftest*
15438 builddir=`pwd`
15441 trap '' 1 2 15
15442 cat > confcache <<\EOF
15443 # This file is a shell script that caches the results of configure
15444 # tests run on this system so they can be shared between configure
15445 # scripts and configure runs. It is not useful on other systems.
15446 # If it contains results you don't want to keep, you may remove or edit it.
15448 # By default, configure uses ./config.cache as the cache file,
15449 # creating it if it does not exist already. You can give configure
15450 # the --cache-file=FILE option to use a different cache file; that is
15451 # what configure does when it calls configure scripts in
15452 # subdirectories, so they share the cache.
15453 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15454 # config.status only pays attention to the cache file if you give it the
15455 # --recheck option to rerun configure.
15458 # The following way of writing the cache mishandles newlines in values,
15459 # but we know of no workaround that is simple, portable, and efficient.
15460 # So, don't put newlines in cache variables' values.
15461 # Ultrix sh set writes to stderr and can't be redirected directly,
15462 # and sets the high bit in the cache file unless we assign to the vars.
15463 (set) 2>&1 |
15464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15465 *ac_space=\ *)
15466 # `set' does not quote correctly, so add quotes (double-quote substitution
15467 # turns \\\\ into \\, and sed turns \\ into \).
15468 sed -n \
15469 -e "s/'/'\\\\''/g" \
15470 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15473 # `set' quotes correctly as required by POSIX, so do not add quotes.
15474 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15476 esac >> confcache
15477 if cmp -s $cache_file confcache; then
15479 else
15480 if test -w $cache_file; then
15481 echo "updating cache $cache_file"
15482 cat confcache > $cache_file
15483 else
15484 echo "not updating unwritable cache $cache_file"
15487 rm -f confcache
15489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15492 # Let make expand exec_prefix.
15493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15495 # Any assignment to VPATH causes Sun make to only execute
15496 # the first set of double-colon rules, so remove it if not needed.
15497 # If there is a colon in the path, we need to keep it.
15498 if test "x$srcdir" = x.; then
15499 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15502 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15504 DEFS=-DHAVE_CONFIG_H
15506 # Without the "./", some shells look in PATH for config.status.
15507 : ${CONFIG_STATUS=./config.status}
15509 echo creating $CONFIG_STATUS
15510 rm -f $CONFIG_STATUS
15511 cat > $CONFIG_STATUS <<EOF
15512 #! /bin/sh
15513 # Generated automatically by configure.
15514 # Run this file to recreate the current configuration.
15515 # This directory was configured as follows,
15516 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15518 # $0 $ac_configure_args
15520 # Compiler output produced by configure, useful for debugging
15521 # configure, is in ./config.log if it exists.
15523 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15524 for ac_option
15526 case "\$ac_option" in
15527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15528 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15529 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15530 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15531 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15532 exit 0 ;;
15533 -help | --help | --hel | --he | --h)
15534 echo "\$ac_cs_usage"; exit 0 ;;
15535 *) echo "\$ac_cs_usage"; exit 1 ;;
15536 esac
15537 done
15539 ac_given_srcdir=$srcdir
15540 ac_given_INSTALL="$INSTALL"
15542 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15544 cat >> $CONFIG_STATUS <<EOF
15546 # Protect against being on the right side of a sed subst in config.status.
15547 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15548 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15549 $ac_vpsub
15550 $extrasub
15551 s%@SHELL@%$SHELL%g
15552 s%@CFLAGS@%$CFLAGS%g
15553 s%@CPPFLAGS@%$CPPFLAGS%g
15554 s%@CXXFLAGS@%$CXXFLAGS%g
15555 s%@FFLAGS@%$FFLAGS%g
15556 s%@DEFS@%$DEFS%g
15557 s%@LDFLAGS@%$LDFLAGS%g
15558 s%@LIBS@%$LIBS%g
15559 s%@exec_prefix@%$exec_prefix%g
15560 s%@prefix@%$prefix%g
15561 s%@program_transform_name@%$program_transform_name%g
15562 s%@bindir@%$bindir%g
15563 s%@sbindir@%$sbindir%g
15564 s%@libexecdir@%$libexecdir%g
15565 s%@datadir@%$datadir%g
15566 s%@sysconfdir@%$sysconfdir%g
15567 s%@sharedstatedir@%$sharedstatedir%g
15568 s%@localstatedir@%$localstatedir%g
15569 s%@libdir@%$libdir%g
15570 s%@includedir@%$includedir%g
15571 s%@oldincludedir@%$oldincludedir%g
15572 s%@infodir@%$infodir%g
15573 s%@mandir@%$mandir%g
15574 s%@configdir@%$configdir%g
15575 s%@lockdir@%$lockdir%g
15576 s%@piddir@%$piddir%g
15577 s%@logfilebase@%$logfilebase%g
15578 s%@privatedir@%$privatedir%g
15579 s%@swatdir@%$swatdir%g
15580 s%@LDSHFLAGS@%$LDSHFLAGS%g
15581 s%@SONAMEFLAG@%$SONAMEFLAG%g
15582 s%@SHLD@%$SHLD%g
15583 s%@HOST_OS@%$HOST_OS%g
15584 s%@PICFLAG@%$PICFLAG%g
15585 s%@PICSUFFIX@%$PICSUFFIX%g
15586 s%@POBAD_CC@%$POBAD_CC%g
15587 s%@SHLIBEXT@%$SHLIBEXT%g
15588 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
15589 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
15590 s%@PRINTLIBS@%$PRINTLIBS%g
15591 s%@AUTHLIBS@%$AUTHLIBS%g
15592 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
15593 s%@SMBWRAPPER@%$SMBWRAPPER%g
15594 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
15595 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
15596 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
15597 s%@CC@%$CC%g
15598 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15599 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15600 s%@INSTALL_DATA@%$INSTALL_DATA%g
15601 s%@AWK@%$AWK%g
15602 s%@EXEEXT@%$EXEEXT%g
15603 s%@BROKEN_CC@%$BROKEN_CC%g
15604 s%@host@%$host%g
15605 s%@host_alias@%$host_alias%g
15606 s%@host_cpu@%$host_cpu%g
15607 s%@host_vendor@%$host_vendor%g
15608 s%@host_os@%$host_os%g
15609 s%@target@%$target%g
15610 s%@target_alias@%$target_alias%g
15611 s%@target_cpu@%$target_cpu%g
15612 s%@target_vendor@%$target_vendor%g
15613 s%@target_os@%$target_os%g
15614 s%@build@%$build%g
15615 s%@build_alias@%$build_alias%g
15616 s%@build_cpu@%$build_cpu%g
15617 s%@build_vendor@%$build_vendor%g
15618 s%@build_os@%$build_os%g
15619 s%@CPP@%$CPP%g
15620 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
15621 s%@LIBOBJS@%$LIBOBJS%g
15622 s%@TERMLIBS@%$TERMLIBS%g
15623 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
15624 s%@ROFF@%$ROFF%g
15625 s%@DYNEXP@%$DYNEXP%g
15626 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
15627 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
15628 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
15629 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
15630 s%@XML2_CONFIG@%$XML2_CONFIG%g
15631 s%@XML_CFLAGS@%$XML_CFLAGS%g
15632 s%@XML_LIBS@%$XML_LIBS%g
15633 s%@MODULE_XML@%$MODULE_XML%g
15634 s%@QUOTAOBJS@%$QUOTAOBJS%g
15635 s%@manlangs@%$manlangs%g
15636 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
15637 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
15638 s%@BUILD_POPT@%$BUILD_POPT%g
15639 s%@FLAGS1@%$FLAGS1%g
15640 s%@PYTHON@%$PYTHON%g
15641 s%@builddir@%$builddir%g
15643 CEOF
15646 cat >> $CONFIG_STATUS <<\EOF
15648 # Split the substitutions into bite-sized pieces for seds with
15649 # small command number limits, like on Digital OSF/1 and HP-UX.
15650 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15651 ac_file=1 # Number of current file.
15652 ac_beg=1 # First line for current file.
15653 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15654 ac_more_lines=:
15655 ac_sed_cmds=""
15656 while $ac_more_lines; do
15657 if test $ac_beg -gt 1; then
15658 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15659 else
15660 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15662 if test ! -s conftest.s$ac_file; then
15663 ac_more_lines=false
15664 rm -f conftest.s$ac_file
15665 else
15666 if test -z "$ac_sed_cmds"; then
15667 ac_sed_cmds="sed -f conftest.s$ac_file"
15668 else
15669 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15671 ac_file=`expr $ac_file + 1`
15672 ac_beg=$ac_end
15673 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15675 done
15676 if test -z "$ac_sed_cmds"; then
15677 ac_sed_cmds=cat
15681 cat >> $CONFIG_STATUS <<EOF
15683 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
15685 cat >> $CONFIG_STATUS <<\EOF
15686 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15688 case "$ac_file" in
15689 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15690 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15691 *) ac_file_in="${ac_file}.in" ;;
15692 esac
15694 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15696 # Remove last slash and all that follows it. Not all systems have dirname.
15697 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15699 # The file is in a subdirectory.
15700 test ! -d "$ac_dir" && mkdir "$ac_dir"
15701 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15702 # A "../" for each directory in $ac_dir_suffix.
15703 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15704 else
15705 ac_dir_suffix= ac_dots=
15708 case "$ac_given_srcdir" in
15709 .) srcdir=.
15710 if test -z "$ac_dots"; then top_srcdir=.
15711 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15712 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15713 *) # Relative path.
15714 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15715 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15716 esac
15718 case "$ac_given_INSTALL" in
15719 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15720 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15721 esac
15723 echo creating "$ac_file"
15724 rm -f "$ac_file"
15725 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15726 case "$ac_file" in
15727 *Makefile*) ac_comsub="1i\\
15728 # $configure_input" ;;
15729 *) ac_comsub= ;;
15730 esac
15732 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15733 sed -e "$ac_comsub
15734 s%@configure_input@%$configure_input%g
15735 s%@srcdir@%$srcdir%g
15736 s%@top_srcdir@%$top_srcdir%g
15737 s%@INSTALL@%$INSTALL%g
15738 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15739 fi; done
15740 rm -f conftest.s*
15742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15745 # ac_d sets the value in "#define NAME VALUE" lines.
15746 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15747 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15748 ac_dC='\3'
15749 ac_dD='%g'
15750 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15751 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15752 ac_uB='\([ ]\)%\1#\2define\3'
15753 ac_uC=' '
15754 ac_uD='\4%g'
15755 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15756 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15757 ac_eB='$%\1#\2define\3'
15758 ac_eC=' '
15759 ac_eD='%g'
15761 if test "${CONFIG_HEADERS+set}" != set; then
15763 cat >> $CONFIG_STATUS <<EOF
15764 CONFIG_HEADERS="include/config.h"
15766 cat >> $CONFIG_STATUS <<\EOF
15768 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15770 case "$ac_file" in
15771 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15772 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15773 *) ac_file_in="${ac_file}.in" ;;
15774 esac
15776 echo creating $ac_file
15778 rm -f conftest.frag conftest.in conftest.out
15779 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15780 cat $ac_file_inputs > conftest.in
15784 # Transform confdefs.h into a sed script conftest.vals that substitutes
15785 # the proper values into config.h.in to produce config.h. And first:
15786 # Protect against being on the right side of a sed subst in config.status.
15787 # Protect against being in an unquoted here document in config.status.
15788 rm -f conftest.vals
15789 cat > conftest.hdr <<\EOF
15790 s/[\\&%]/\\&/g
15791 s%[\\$`]%\\&%g
15792 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15793 s%ac_d%ac_u%gp
15794 s%ac_u%ac_e%gp
15796 sed -n -f conftest.hdr confdefs.h > conftest.vals
15797 rm -f conftest.hdr
15799 # This sed command replaces #undef with comments. This is necessary, for
15800 # example, in the case of _POSIX_SOURCE, which is predefined and required
15801 # on some systems where configure will not decide to define it.
15802 cat >> conftest.vals <<\EOF
15803 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15806 # Break up conftest.vals because some shells have a limit on
15807 # the size of here documents, and old seds have small limits too.
15809 rm -f conftest.tail
15810 while :
15812 ac_lines=`grep -c . conftest.vals`
15813 # grep -c gives empty output for an empty file on some AIX systems.
15814 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15815 # Write a limited-size here document to conftest.frag.
15816 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15817 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15818 echo 'CEOF
15819 sed -f conftest.frag conftest.in > conftest.out
15820 rm -f conftest.in
15821 mv conftest.out conftest.in
15822 ' >> $CONFIG_STATUS
15823 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15824 rm -f conftest.vals
15825 mv conftest.tail conftest.vals
15826 done
15827 rm -f conftest.vals
15829 cat >> $CONFIG_STATUS <<\EOF
15830 rm -f conftest.frag conftest.h
15831 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15832 cat conftest.in >> conftest.h
15833 rm -f conftest.in
15834 if cmp -s $ac_file conftest.h 2>/dev/null; then
15835 echo "$ac_file is unchanged"
15836 rm -f conftest.h
15837 else
15838 # Remove last slash and all that follows it. Not all systems have dirname.
15839 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15840 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15841 # The file is in a subdirectory.
15842 test ! -d "$ac_dir" && mkdir "$ac_dir"
15844 rm -f $ac_file
15845 mv conftest.h $ac_file
15847 fi; done
15850 cat >> $CONFIG_STATUS <<EOF
15853 cat >> $CONFIG_STATUS <<\EOF
15855 exit 0
15857 chmod +x $CONFIG_STATUS
15858 rm -fr confdefs* $ac_clean_files
15859 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15862 #################################################
15863 # Print very concise instructions on building/use
15864 if test "x$enable_dmalloc" = xyes
15865 then
15866 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
15867 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6