For some reason, the configure tests for sendfile support in FreeBSD
[Samba/gebeck_regimport.git] / source3 / configure
blob38cf8812c6bfabcf614e46a2e41481bcda89a7a1
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 *.c | *.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 main()
3074 FILE *f=fopen("conftestval", "w");
3075 if (!f) exit(1);
3076 fprintf(f, "%d\n", sizeof(int));
3077 exit(0);
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3081 then
3082 ac_cv_sizeof_int=`cat conftestval`
3083 else
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3086 rm -fr conftest*
3087 ac_cv_sizeof_int=0
3089 rm -fr conftest*
3093 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3094 cat >> confdefs.h <<EOF
3095 #define SIZEOF_INT $ac_cv_sizeof_int
3099 echo $ac_n "checking size of long""... $ac_c" 1>&6
3100 echo "configure:3101: checking size of long" >&5
3101 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3103 else
3104 if test "$cross_compiling" = yes; then
3105 ac_cv_sizeof_long=cross
3106 else
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 #include <stdio.h>
3111 main()
3113 FILE *f=fopen("conftestval", "w");
3114 if (!f) exit(1);
3115 fprintf(f, "%d\n", sizeof(long));
3116 exit(0);
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3120 then
3121 ac_cv_sizeof_long=`cat conftestval`
3122 else
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3125 rm -fr conftest*
3126 ac_cv_sizeof_long=0
3128 rm -fr conftest*
3132 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3133 cat >> confdefs.h <<EOF
3134 #define SIZEOF_LONG $ac_cv_sizeof_long
3138 echo $ac_n "checking size of short""... $ac_c" 1>&6
3139 echo "configure:3140: checking size of short" >&5
3140 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143 if test "$cross_compiling" = yes; then
3144 ac_cv_sizeof_short=cross
3145 else
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #include <stdio.h>
3150 main()
3152 FILE *f=fopen("conftestval", "w");
3153 if (!f) exit(1);
3154 fprintf(f, "%d\n", sizeof(short));
3155 exit(0);
3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3159 then
3160 ac_cv_sizeof_short=`cat conftestval`
3161 else
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 rm -fr conftest*
3165 ac_cv_sizeof_short=0
3167 rm -fr conftest*
3171 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3172 cat >> confdefs.h <<EOF
3173 #define SIZEOF_SHORT $ac_cv_sizeof_short
3178 echo $ac_n "checking for working const""... $ac_c" 1>&6
3179 echo "configure:3180: checking for working const" >&5
3180 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3182 else
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3187 int main() {
3189 /* Ultrix mips cc rejects this. */
3190 typedef int charset[2]; const charset x;
3191 /* SunOS 4.1.1 cc rejects this. */
3192 char const *const *ccp;
3193 char **p;
3194 /* NEC SVR4.0.2 mips cc rejects this. */
3195 struct point {int x, y;};
3196 static struct point const zero = {0,0};
3197 /* AIX XL C 1.02.0.0 rejects this.
3198 It does not let you subtract one const X* pointer from another in an arm
3199 of an if-expression whose if-part is not a constant expression */
3200 const char *g = "string";
3201 ccp = &g + (g ? g-g : 0);
3202 /* HPUX 7.0 cc rejects these. */
3203 ++ccp;
3204 p = (char**) ccp;
3205 ccp = (char const *const *) p;
3206 { /* SCO 3.2v4 cc rejects this. */
3207 char *t;
3208 char const *s = 0 ? (char *) 0 : (char const *) 0;
3210 *t++ = 0;
3212 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3213 int x[] = {25, 17};
3214 const int *foo = &x[0];
3215 ++foo;
3217 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3218 typedef const int *iptr;
3219 iptr p = 0;
3220 ++p;
3222 { /* AIX XL C 1.02.0.0 rejects this saying
3223 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3224 struct s { int j; const int *ap[3]; };
3225 struct s *b; b->j = 5;
3227 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3228 const int foo = 10;
3231 ; return 0; }
3233 if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234 rm -rf conftest*
3235 ac_cv_c_const=yes
3236 else
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 rm -rf conftest*
3240 ac_cv_c_const=no
3242 rm -f conftest*
3245 echo "$ac_t""$ac_cv_c_const" 1>&6
3246 if test $ac_cv_c_const = no; then
3247 cat >> confdefs.h <<\EOF
3248 #define const
3253 echo $ac_n "checking for inline""... $ac_c" 1>&6
3254 echo "configure:3255: checking for inline" >&5
3255 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3257 else
3258 ac_cv_c_inline=no
3259 for ac_kw in inline __inline__ __inline; do
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3264 int main() {
3265 } $ac_kw foo() {
3266 ; return 0; }
3268 if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3269 rm -rf conftest*
3270 ac_cv_c_inline=$ac_kw; break
3271 else
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 rm -f conftest*
3276 done
3280 echo "$ac_t""$ac_cv_c_inline" 1>&6
3281 case "$ac_cv_c_inline" in
3282 inline | yes) ;;
3283 no) cat >> confdefs.h <<\EOF
3284 #define inline
3287 *) cat >> confdefs.h <<EOF
3288 #define inline $ac_cv_c_inline
3291 esac
3293 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3294 echo "configure:3295: checking whether byte ordering is bigendian" >&5
3295 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3298 ac_cv_c_bigendian=unknown
3299 # See if sys/param.h defines the BYTE_ORDER macro.
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3304 #include <sys/param.h>
3305 int main() {
3307 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3308 bogus endian macros
3309 #endif
3310 ; return 0; }
3312 if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3313 rm -rf conftest*
3314 # It does; now see whether it defined to BIG_ENDIAN or not.
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <sys/types.h>
3319 #include <sys/param.h>
3320 int main() {
3322 #if BYTE_ORDER != BIG_ENDIAN
3323 not big endian
3324 #endif
3325 ; return 0; }
3327 if { (eval echo configure:3328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3328 rm -rf conftest*
3329 ac_cv_c_bigendian=yes
3330 else
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3333 rm -rf conftest*
3334 ac_cv_c_bigendian=no
3336 rm -f conftest*
3337 else
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3341 rm -f conftest*
3342 if test $ac_cv_c_bigendian = unknown; then
3343 if test "$cross_compiling" = yes; then
3344 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3345 else
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 main () {
3350 /* Are we little or big endian? From Harbison&Steele. */
3351 union
3353 long l;
3354 char c[sizeof (long)];
3355 } u;
3356 u.l = 1;
3357 exit (u.c[sizeof (long) - 1] == 1);
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3361 then
3362 ac_cv_c_bigendian=no
3363 else
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3366 rm -fr conftest*
3367 ac_cv_c_bigendian=yes
3369 rm -fr conftest*
3375 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3376 if test $ac_cv_c_bigendian = yes; then
3377 cat >> confdefs.h <<\EOF
3378 #define WORDS_BIGENDIAN 1
3383 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3384 echo "configure:3385: checking whether char is unsigned" >&5
3385 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3387 else
3388 if test "$GCC" = yes; then
3389 # GCC predefines this symbol on systems where it applies.
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 #ifdef __CHAR_UNSIGNED__
3395 #endif
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399 egrep "yes" >/dev/null 2>&1; then
3400 rm -rf conftest*
3401 ac_cv_c_char_unsigned=yes
3402 else
3403 rm -rf conftest*
3404 ac_cv_c_char_unsigned=no
3406 rm -f conftest*
3408 else
3409 if test "$cross_compiling" = yes; then
3410 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3411 else
3412 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3416 #if !defined(__STDC__) || __STDC__ != 1
3417 #define volatile
3418 #endif
3419 main() {
3420 volatile char c = 255; exit(c < 0);
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3424 then
3425 ac_cv_c_char_unsigned=yes
3426 else
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429 rm -fr conftest*
3430 ac_cv_c_char_unsigned=no
3432 rm -fr conftest*
3438 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3439 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3440 cat >> confdefs.h <<\EOF
3441 #define __CHAR_UNSIGNED__ 1
3447 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3448 echo "configure:3449: checking return type of signal handlers" >&5
3449 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3451 else
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3456 #include <signal.h>
3457 #ifdef signal
3458 #undef signal
3459 #endif
3460 #ifdef __cplusplus
3461 extern "C" void (*signal (int, void (*)(int)))(int);
3462 #else
3463 void (*signal ()) ();
3464 #endif
3466 int main() {
3467 int i;
3468 ; return 0; }
3470 if { (eval echo configure:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3471 rm -rf conftest*
3472 ac_cv_type_signal=void
3473 else
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 rm -rf conftest*
3477 ac_cv_type_signal=int
3479 rm -f conftest*
3482 echo "$ac_t""$ac_cv_type_signal" 1>&6
3483 cat >> confdefs.h <<EOF
3484 #define RETSIGTYPE $ac_cv_type_signal
3488 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3489 echo "configure:3490: checking for uid_t in sys/types.h" >&5
3490 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3492 else
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 #include <sys/types.h>
3498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499 egrep "uid_t" >/dev/null 2>&1; then
3500 rm -rf conftest*
3501 ac_cv_type_uid_t=yes
3502 else
3503 rm -rf conftest*
3504 ac_cv_type_uid_t=no
3506 rm -f conftest*
3510 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3511 if test $ac_cv_type_uid_t = no; then
3512 cat >> confdefs.h <<\EOF
3513 #define uid_t int
3516 cat >> confdefs.h <<\EOF
3517 #define gid_t int
3522 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3523 echo "configure:3524: checking for mode_t" >&5
3524 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #include <sys/types.h>
3531 #if STDC_HEADERS
3532 #include <stdlib.h>
3533 #include <stddef.h>
3534 #endif
3536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3538 rm -rf conftest*
3539 ac_cv_type_mode_t=yes
3540 else
3541 rm -rf conftest*
3542 ac_cv_type_mode_t=no
3544 rm -f conftest*
3547 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3548 if test $ac_cv_type_mode_t = no; then
3549 cat >> confdefs.h <<\EOF
3550 #define mode_t int
3555 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3556 echo "configure:3557: checking for off_t" >&5
3557 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3559 else
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <sys/types.h>
3564 #if STDC_HEADERS
3565 #include <stdlib.h>
3566 #include <stddef.h>
3567 #endif
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3571 rm -rf conftest*
3572 ac_cv_type_off_t=yes
3573 else
3574 rm -rf conftest*
3575 ac_cv_type_off_t=no
3577 rm -f conftest*
3580 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3581 if test $ac_cv_type_off_t = no; then
3582 cat >> confdefs.h <<\EOF
3583 #define off_t long
3588 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3589 echo "configure:3590: checking for size_t" >&5
3590 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3592 else
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3597 #if STDC_HEADERS
3598 #include <stdlib.h>
3599 #include <stddef.h>
3600 #endif
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3604 rm -rf conftest*
3605 ac_cv_type_size_t=yes
3606 else
3607 rm -rf conftest*
3608 ac_cv_type_size_t=no
3610 rm -f conftest*
3613 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3614 if test $ac_cv_type_size_t = no; then
3615 cat >> confdefs.h <<\EOF
3616 #define size_t unsigned
3621 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3622 echo "configure:3623: checking for pid_t" >&5
3623 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3625 else
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <sys/types.h>
3630 #if STDC_HEADERS
3631 #include <stdlib.h>
3632 #include <stddef.h>
3633 #endif
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3637 rm -rf conftest*
3638 ac_cv_type_pid_t=yes
3639 else
3640 rm -rf conftest*
3641 ac_cv_type_pid_t=no
3643 rm -f conftest*
3646 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3647 if test $ac_cv_type_pid_t = no; then
3648 cat >> confdefs.h <<\EOF
3649 #define pid_t int
3654 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3655 echo "configure:3656: checking for st_rdev in struct stat" >&5
3656 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3658 else
3659 cat > conftest.$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3663 #include <sys/stat.h>
3664 int main() {
3665 struct stat s; s.st_rdev;
3666 ; return 0; }
3668 if { (eval echo configure:3669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3669 rm -rf conftest*
3670 ac_cv_struct_st_rdev=yes
3671 else
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3674 rm -rf conftest*
3675 ac_cv_struct_st_rdev=no
3677 rm -f conftest*
3680 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3681 if test $ac_cv_struct_st_rdev = yes; then
3682 cat >> confdefs.h <<\EOF
3683 #define HAVE_ST_RDEV 1
3688 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3689 echo "configure:3690: checking for d_off in dirent" >&5
3690 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3697 #include <unistd.h>
3698 #include <sys/types.h>
3699 #include <dirent.h>
3700 int main() {
3701 struct dirent d; d.d_off;
3702 ; return 0; }
3704 if { (eval echo configure:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705 rm -rf conftest*
3706 ac_cv_dirent_d_off=yes
3707 else
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3710 rm -rf conftest*
3711 ac_cv_dirent_d_off=no
3713 rm -f conftest*
3716 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3717 if test $ac_cv_dirent_d_off = yes; then
3718 cat >> confdefs.h <<\EOF
3719 #define HAVE_DIRENT_D_OFF 1
3724 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3725 echo "configure:3726: checking for ino_t" >&5
3726 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3728 else
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <sys/types.h>
3733 #if STDC_HEADERS
3734 #include <stdlib.h>
3735 #include <stddef.h>
3736 #endif
3738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3740 rm -rf conftest*
3741 ac_cv_type_ino_t=yes
3742 else
3743 rm -rf conftest*
3744 ac_cv_type_ino_t=no
3746 rm -f conftest*
3749 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3750 if test $ac_cv_type_ino_t = no; then
3751 cat >> confdefs.h <<\EOF
3752 #define ino_t unsigned
3757 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3758 echo "configure:3759: checking for loff_t" >&5
3759 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3761 else
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 #include <sys/types.h>
3766 #if STDC_HEADERS
3767 #include <stdlib.h>
3768 #include <stddef.h>
3769 #endif
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3773 rm -rf conftest*
3774 ac_cv_type_loff_t=yes
3775 else
3776 rm -rf conftest*
3777 ac_cv_type_loff_t=no
3779 rm -f conftest*
3782 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3783 if test $ac_cv_type_loff_t = no; then
3784 cat >> confdefs.h <<\EOF
3785 #define loff_t off_t
3790 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3791 echo "configure:3792: checking for offset_t" >&5
3792 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3794 else
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <sys/types.h>
3799 #if STDC_HEADERS
3800 #include <stdlib.h>
3801 #include <stddef.h>
3802 #endif
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3806 rm -rf conftest*
3807 ac_cv_type_offset_t=yes
3808 else
3809 rm -rf conftest*
3810 ac_cv_type_offset_t=no
3812 rm -f conftest*
3815 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3816 if test $ac_cv_type_offset_t = no; then
3817 cat >> confdefs.h <<\EOF
3818 #define offset_t loff_t
3823 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3824 echo "configure:3825: checking for ssize_t" >&5
3825 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827 else
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <sys/types.h>
3832 #if STDC_HEADERS
3833 #include <stdlib.h>
3834 #include <stddef.h>
3835 #endif
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3839 rm -rf conftest*
3840 ac_cv_type_ssize_t=yes
3841 else
3842 rm -rf conftest*
3843 ac_cv_type_ssize_t=no
3845 rm -f conftest*
3848 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3849 if test $ac_cv_type_ssize_t = no; then
3850 cat >> confdefs.h <<\EOF
3851 #define ssize_t int
3856 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3857 echo "configure:3858: checking for wchar_t" >&5
3858 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3860 else
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 #include <sys/types.h>
3865 #if STDC_HEADERS
3866 #include <stdlib.h>
3867 #include <stddef.h>
3868 #endif
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3872 rm -rf conftest*
3873 ac_cv_type_wchar_t=yes
3874 else
3875 rm -rf conftest*
3876 ac_cv_type_wchar_t=no
3878 rm -f conftest*
3881 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3882 if test $ac_cv_type_wchar_t = no; then
3883 cat >> confdefs.h <<\EOF
3884 #define wchar_t unsigned short
3890 ############################################
3891 # for cups support we need libcups, and a handful of header files
3893 # Check whether --enable-cups or --disable-cups was given.
3894 if test "${enable_cups+set}" = set; then
3895 enableval="$enable_cups"
3900 if test x$enable_cups != xno; then
3901 # Extract the first word of "cups-config", so it can be a program name with args.
3902 set dummy cups-config; ac_word=$2
3903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3904 echo "configure:3905: checking for $ac_word" >&5
3905 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907 else
3908 case "$CUPS_CONFIG" in
3910 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3912 ?:/*)
3913 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3917 ac_dummy="$PATH"
3918 for ac_dir in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/$ac_word; then
3921 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3922 break
3924 done
3925 IFS="$ac_save_ifs"
3927 esac
3929 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3930 if test -n "$CUPS_CONFIG"; then
3931 echo "$ac_t""$CUPS_CONFIG" 1>&6
3932 else
3933 echo "$ac_t""no" 1>&6
3937 if test "x$CUPS_CONFIG" != x; then
3938 cat >> confdefs.h <<\EOF
3939 #define HAVE_CUPS 1
3942 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3943 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3944 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3948 ############################################
3949 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
3950 for ac_func in dlopen
3952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_func" >&5
3954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3956 else
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3960 /* System header to define __stub macros and hopefully few prototypes,
3961 which can conflict with char $ac_func(); below. */
3962 #include <assert.h>
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3966 char $ac_func();
3968 int main() {
3970 /* The GNU C library defines this for functions which it implements
3971 to always fail with ENOSYS. Some functions are actually named
3972 something starting with __ and the normal name is an alias. */
3973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3974 choke me
3975 #else
3976 $ac_func();
3977 #endif
3979 ; return 0; }
3981 if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3982 rm -rf conftest*
3983 eval "ac_cv_func_$ac_func=yes"
3984 else
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 rm -rf conftest*
3988 eval "ac_cv_func_$ac_func=no"
3990 rm -f conftest*
3993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3994 echo "$ac_t""yes" 1>&6
3995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3996 cat >> confdefs.h <<EOF
3997 #define $ac_tr_func 1
4000 else
4001 echo "$ac_t""no" 1>&6
4003 done
4005 if test x"$ac_cv_func_dlopen" = x"no"; then
4006 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4007 echo "configure:4008: checking for dlopen in -ldl" >&5
4008 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4011 else
4012 ac_save_LIBS="$LIBS"
4013 LIBS="-ldl $LIBS"
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4020 char dlopen();
4022 int main() {
4023 dlopen()
4024 ; return 0; }
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4027 rm -rf conftest*
4028 eval "ac_cv_lib_$ac_lib_var=yes"
4029 else
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 rm -rf conftest*
4033 eval "ac_cv_lib_$ac_lib_var=no"
4035 rm -f conftest*
4036 LIBS="$ac_save_LIBS"
4039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4041 LIBS="$LIBS -ldl";
4042 cat >> confdefs.h <<\EOF
4043 #define HAVE_DLOPEN 1
4046 else
4047 echo "$ac_t""no" 1>&6
4051 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4053 ############################################
4054 # check if the compiler can do immediate structures
4055 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4056 echo "configure:4057: checking for immediate structures" >&5
4057 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4059 else
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4065 #include <stdio.h>
4066 int main() {
4068 typedef struct {unsigned x;} FOOBAR;
4069 #define X_FOOBAR(x) ((FOOBAR) { x })
4070 #define FOO_ONE X_FOOBAR(1)
4071 FOOBAR f = FOO_ONE;
4072 static struct {
4073 FOOBAR y;
4074 } f2[] = {
4075 {FOO_ONE}
4078 ; return 0; }
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 rm -rf conftest*
4082 samba_cv_immediate_structures=yes
4083 else
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 rm -rf conftest*
4087 samba_cv_immediate_structures=no
4089 rm -f conftest*
4092 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4093 if test x"$samba_cv_immediate_structures" = x"yes"; then
4094 cat >> confdefs.h <<\EOF
4095 #define HAVE_IMMEDIATE_STRUCTURES 1
4100 ############################################
4101 # check for unix domain sockets
4102 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4103 echo "configure:4104: checking for unix domain sockets" >&5
4104 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4106 else
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4112 #include <sys/types.h>
4113 #include <stdlib.h>
4114 #include <stddef.h>
4115 #include <sys/socket.h>
4116 #include <sys/un.h>
4117 int main() {
4119 struct sockaddr_un sunaddr;
4120 sunaddr.sun_family = AF_UNIX;
4122 ; return 0; }
4124 if { (eval echo configure:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4125 rm -rf conftest*
4126 samba_cv_unixsocket=yes
4127 else
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4130 rm -rf conftest*
4131 samba_cv_unixsocket=no
4133 rm -f conftest*
4136 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4137 if test x"$samba_cv_unixsocket" = x"yes"; then
4138 cat >> confdefs.h <<\EOF
4139 #define HAVE_UNIXSOCKET 1
4145 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4146 echo "configure:4147: checking for socklen_t type" >&5
4147 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4149 else
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4155 #include <sys/types.h>
4156 #if STDC_HEADERS
4157 #include <stdlib.h>
4158 #include <stddef.h>
4159 #endif
4160 #include <sys/socket.h>
4161 int main() {
4162 socklen_t i = 0
4163 ; return 0; }
4165 if { (eval echo configure:4166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4166 rm -rf conftest*
4167 samba_cv_socklen_t=yes
4168 else
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 rm -rf conftest*
4172 samba_cv_socklen_t=no
4174 rm -f conftest*
4177 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4178 if test x"$samba_cv_socklen_t" = x"yes"; then
4179 cat >> confdefs.h <<\EOF
4180 #define HAVE_SOCKLEN_T_TYPE 1
4185 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4186 echo "configure:4187: checking for sig_atomic_t type" >&5
4187 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4189 else
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4195 #include <sys/types.h>
4196 #if STDC_HEADERS
4197 #include <stdlib.h>
4198 #include <stddef.h>
4199 #endif
4200 #include <signal.h>
4201 int main() {
4202 sig_atomic_t i = 0
4203 ; return 0; }
4205 if { (eval echo configure:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4206 rm -rf conftest*
4207 samba_cv_sig_atomic_t=yes
4208 else
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 rm -rf conftest*
4212 samba_cv_sig_atomic_t=no
4214 rm -f conftest*
4217 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4218 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4219 cat >> confdefs.h <<\EOF
4220 #define HAVE_SIG_ATOMIC_T_TYPE 1
4225 # stupid headers have the functions but no declaration. grrrr.
4227 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4228 echo "configure:4229: checking for errno declaration" >&5
4229 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4231 else
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 #include <errno.h>
4237 int main() {
4238 int i = (int)errno
4239 ; return 0; }
4241 if { (eval echo configure:4242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4242 rm -rf conftest*
4243 ac_cv_have_errno_decl=yes
4244 else
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 rm -rf conftest*
4248 ac_cv_have_errno_decl=no
4250 rm -f conftest*
4253 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4254 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4255 cat >> confdefs.h <<\EOF
4256 #define HAVE_ERRNO_DECL 1
4262 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4263 echo "configure:4264: checking for setresuid declaration" >&5
4264 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4266 else
4268 cat > conftest.$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4271 #include <unistd.h>
4272 int main() {
4273 int i = (int)setresuid
4274 ; return 0; }
4276 if { (eval echo configure:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4277 rm -rf conftest*
4278 ac_cv_have_setresuid_decl=yes
4279 else
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4282 rm -rf conftest*
4283 ac_cv_have_setresuid_decl=no
4285 rm -f conftest*
4288 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4289 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4290 cat >> confdefs.h <<\EOF
4291 #define HAVE_SETRESUID_DECL 1
4297 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4298 echo "configure:4299: checking for setresgid declaration" >&5
4299 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4301 else
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 #include <unistd.h>
4307 int main() {
4308 int i = (int)setresgid
4309 ; return 0; }
4311 if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4312 rm -rf conftest*
4313 ac_cv_have_setresgid_decl=yes
4314 else
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4317 rm -rf conftest*
4318 ac_cv_have_setresgid_decl=no
4320 rm -f conftest*
4323 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4324 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4325 cat >> confdefs.h <<\EOF
4326 #define HAVE_SETRESGID_DECL 1
4332 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4333 echo "configure:4334: checking for asprintf declaration" >&5
4334 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336 else
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 #include <stdio.h>
4342 int main() {
4343 int i = (int)asprintf
4344 ; return 0; }
4346 if { (eval echo configure:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4347 rm -rf conftest*
4348 ac_cv_have_asprintf_decl=yes
4349 else
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 rm -rf conftest*
4353 ac_cv_have_asprintf_decl=no
4355 rm -f conftest*
4358 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4359 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4360 cat >> confdefs.h <<\EOF
4361 #define HAVE_ASPRINTF_DECL 1
4367 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4368 echo "configure:4369: checking for vasprintf declaration" >&5
4369 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4371 else
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <stdio.h>
4377 int main() {
4378 int i = (int)vasprintf
4379 ; return 0; }
4381 if { (eval echo configure:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4382 rm -rf conftest*
4383 ac_cv_have_vasprintf_decl=yes
4384 else
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 rm -rf conftest*
4388 ac_cv_have_vasprintf_decl=no
4390 rm -f conftest*
4393 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4394 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4395 cat >> confdefs.h <<\EOF
4396 #define HAVE_VASPRINTF_DECL 1
4402 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4403 echo "configure:4404: checking for vsnprintf declaration" >&5
4404 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4406 else
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 #include <stdio.h>
4412 int main() {
4413 int i = (int)vsnprintf
4414 ; return 0; }
4416 if { (eval echo configure:4417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4417 rm -rf conftest*
4418 ac_cv_have_vsnprintf_decl=yes
4419 else
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4422 rm -rf conftest*
4423 ac_cv_have_vsnprintf_decl=no
4425 rm -f conftest*
4428 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4429 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4430 cat >> confdefs.h <<\EOF
4431 #define HAVE_VSNPRINTF_DECL 1
4437 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4438 echo "configure:4439: checking for snprintf declaration" >&5
4439 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4441 else
4443 cat > conftest.$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4446 #include <stdio.h>
4447 int main() {
4448 int i = (int)snprintf
4449 ; return 0; }
4451 if { (eval echo configure:4452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4452 rm -rf conftest*
4453 ac_cv_have_snprintf_decl=yes
4454 else
4455 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4457 rm -rf conftest*
4458 ac_cv_have_snprintf_decl=no
4460 rm -f conftest*
4463 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4464 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4465 cat >> confdefs.h <<\EOF
4466 #define HAVE_SNPRINTF_DECL 1
4472 # and glibc has setresuid under linux but the function does
4473 # nothing until kernel 2.1.44! very dumb.
4474 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4475 echo "configure:4476: checking for real setresuid" >&5
4476 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4478 else
4480 if test "$cross_compiling" = yes; then
4481 samba_cv_have_setresuid=cross
4482 else
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4486 #include <errno.h>
4487 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4490 then
4491 samba_cv_have_setresuid=yes
4492 else
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4495 rm -fr conftest*
4496 samba_cv_have_setresuid=no
4498 rm -fr conftest*
4503 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4504 if test x"$samba_cv_have_setresuid" = x"yes"; then
4505 cat >> confdefs.h <<\EOF
4506 #define HAVE_SETRESUID 1
4511 # Do the same check for setresguid...
4513 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4514 echo "configure:4515: checking for real setresgid" >&5
4515 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4517 else
4519 if test "$cross_compiling" = yes; then
4520 samba_cv_have_setresgid=cross
4521 else
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 #include <unistd.h>
4526 #include <errno.h>
4527 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4530 then
4531 samba_cv_have_setresgid=yes
4532 else
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4535 rm -fr conftest*
4536 samba_cv_have_setresgid=no
4538 rm -fr conftest*
4543 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4544 if test x"$samba_cv_have_setresgid" = x"yes"; then
4545 cat >> confdefs.h <<\EOF
4546 #define HAVE_SETRESGID 1
4551 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4552 echo "configure:4553: checking for 8-bit clean memcmp" >&5
4553 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4555 else
4556 if test "$cross_compiling" = yes; then
4557 ac_cv_func_memcmp_clean=no
4558 else
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4563 main()
4565 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4566 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4571 then
4572 ac_cv_func_memcmp_clean=yes
4573 else
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4576 rm -fr conftest*
4577 ac_cv_func_memcmp_clean=no
4579 rm -fr conftest*
4584 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4585 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4588 ###############################################
4589 # test for where we get crypt() from
4590 for ac_func in crypt
4592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_func" >&5
4594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4596 else
4597 cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4600 /* System header to define __stub macros and hopefully few prototypes,
4601 which can conflict with char $ac_func(); below. */
4602 #include <assert.h>
4603 /* Override any gcc2 internal prototype to avoid an error. */
4604 /* We use char because int might match the return type of a gcc2
4605 builtin and then its argument prototype would still apply. */
4606 char $ac_func();
4608 int main() {
4610 /* The GNU C library defines this for functions which it implements
4611 to always fail with ENOSYS. Some functions are actually named
4612 something starting with __ and the normal name is an alias. */
4613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4614 choke me
4615 #else
4616 $ac_func();
4617 #endif
4619 ; return 0; }
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4622 rm -rf conftest*
4623 eval "ac_cv_func_$ac_func=yes"
4624 else
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 eval "ac_cv_func_$ac_func=no"
4630 rm -f conftest*
4633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4636 cat >> confdefs.h <<EOF
4637 #define $ac_tr_func 1
4640 else
4641 echo "$ac_t""no" 1>&6
4643 done
4645 if test x"$ac_cv_func_crypt" = x"no"; then
4646 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4647 echo "configure:4648: checking for crypt in -lcrypt" >&5
4648 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4651 else
4652 ac_save_LIBS="$LIBS"
4653 LIBS="-lcrypt $LIBS"
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 /* Override any gcc2 internal prototype to avoid an error. */
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4660 char crypt();
4662 int main() {
4663 crypt()
4664 ; return 0; }
4666 if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4667 rm -rf conftest*
4668 eval "ac_cv_lib_$ac_lib_var=yes"
4669 else
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4672 rm -rf conftest*
4673 eval "ac_cv_lib_$ac_lib_var=no"
4675 rm -f conftest*
4676 LIBS="$ac_save_LIBS"
4679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4680 echo "$ac_t""yes" 1>&6
4681 AUTHLIBS="$AUTHLIBS -lcrypt";
4682 cat >> confdefs.h <<\EOF
4683 #define HAVE_CRYPT 1
4686 else
4687 echo "$ac_t""no" 1>&6
4693 ###############################################
4694 # Readline included by default unless explicitly asked not to
4695 test "${with_readline+set}" != "set" && with_readline=yes
4697 # test for where we get readline() from
4698 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4699 echo "configure:4700: checking whether to use readline" >&5
4700 # Check whether --with-readline or --without-readline was given.
4701 if test "${with_readline+set}" = set; then
4702 withval="$with_readline"
4703 case "$with_readline" in
4704 yes)
4705 echo "$ac_t""yes" 1>&6
4707 for ac_hdr in readline.h history.h readline/readline.h
4709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_hdr" >&5
4712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4714 else
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4718 #include <$ac_hdr>
4720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721 { (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723 if test -z "$ac_err"; then
4724 rm -rf conftest*
4725 eval "ac_cv_header_$ac_safe=yes"
4726 else
4727 echo "$ac_err" >&5
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
4731 eval "ac_cv_header_$ac_safe=no"
4733 rm -f conftest*
4735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h <<EOF
4739 #define $ac_tr_hdr 1
4742 else
4743 echo "$ac_t""no" 1>&6
4745 done
4747 for ac_hdr in readline/history.h
4749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_hdr" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4754 else
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 #include <$ac_hdr>
4760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then
4764 rm -rf conftest*
4765 eval "ac_cv_header_$ac_safe=yes"
4766 else
4767 echo "$ac_err" >&5
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 rm -rf conftest*
4771 eval "ac_cv_header_$ac_safe=no"
4773 rm -f conftest*
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4778 cat >> confdefs.h <<EOF
4779 #define $ac_tr_hdr 1
4782 else
4783 echo "$ac_t""no" 1>&6
4785 done
4788 for ac_hdr in readline.h readline/readline.h
4790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4792 echo "configure:4793: checking for $ac_hdr" >&5
4793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4795 else
4796 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 #include <$ac_hdr>
4801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4802 { (eval echo configure:4803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4804 if test -z "$ac_err"; then
4805 rm -rf conftest*
4806 eval "ac_cv_header_$ac_safe=yes"
4807 else
4808 echo "$ac_err" >&5
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4811 rm -rf conftest*
4812 eval "ac_cv_header_$ac_safe=no"
4814 rm -f conftest*
4816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4819 cat >> confdefs.h <<EOF
4820 #define $ac_tr_hdr 1
4823 for termlib in ncurses curses termcap terminfo termlib; do
4824 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4825 echo "configure:4826: checking for tgetent in -l${termlib}" >&5
4826 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829 else
4830 ac_save_LIBS="$LIBS"
4831 LIBS="-l${termlib} $LIBS"
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* Override any gcc2 internal prototype to avoid an error. */
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4838 char tgetent();
4840 int main() {
4841 tgetent()
4842 ; return 0; }
4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4845 rm -rf conftest*
4846 eval "ac_cv_lib_$ac_lib_var=yes"
4847 else
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4850 rm -rf conftest*
4851 eval "ac_cv_lib_$ac_lib_var=no"
4853 rm -f conftest*
4854 LIBS="$ac_save_LIBS"
4857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 TERMLIBS="-l${termlib}"; break
4860 else
4861 echo "$ac_t""no" 1>&6
4864 done
4865 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4866 echo "configure:4867: checking for rl_callback_handler_install in -lreadline" >&5
4867 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871 ac_save_LIBS="$LIBS"
4872 LIBS="-lreadline $TERMLIBS $LIBS"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4879 char rl_callback_handler_install();
4881 int main() {
4882 rl_callback_handler_install()
4883 ; return 0; }
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 rm -rf conftest*
4887 eval "ac_cv_lib_$ac_lib_var=yes"
4888 else
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4891 rm -rf conftest*
4892 eval "ac_cv_lib_$ac_lib_var=no"
4894 rm -f conftest*
4895 LIBS="$ac_save_LIBS"
4898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4900 TERMLIBS="-lreadline $TERMLIBS"
4901 cat >> confdefs.h <<\EOF
4902 #define HAVE_LIBREADLINE 1
4905 break
4906 else
4907 echo "$ac_t""no" 1>&6
4908 TERMLIBS=
4911 else
4912 echo "$ac_t""no" 1>&6
4914 done
4918 echo "$ac_t""no" 1>&6
4921 echo "$ac_t""yes" 1>&6
4923 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4924 # alternate readline path
4925 _ldflags=${LDFLAGS}
4926 _cppflags=${CPPFLAGS}
4928 # Add additional search path
4929 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4930 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4932 for ac_hdr in readline.h history.h readline/readline.h
4934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_hdr" >&5
4937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4939 else
4940 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4943 #include <$ac_hdr>
4945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4946 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4948 if test -z "$ac_err"; then
4949 rm -rf conftest*
4950 eval "ac_cv_header_$ac_safe=yes"
4951 else
4952 echo "$ac_err" >&5
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4955 rm -rf conftest*
4956 eval "ac_cv_header_$ac_safe=no"
4958 rm -f conftest*
4960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_hdr 1
4967 else
4968 echo "$ac_t""no" 1>&6
4970 done
4972 for ac_hdr in readline/history.h
4974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4976 echo "configure:4977: checking for $ac_hdr" >&5
4977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4979 else
4980 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 #include <$ac_hdr>
4985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4986 { (eval echo configure:4987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4988 if test -z "$ac_err"; then
4989 rm -rf conftest*
4990 eval "ac_cv_header_$ac_safe=yes"
4991 else
4992 echo "$ac_err" >&5
4993 echo "configure: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
4995 rm -rf conftest*
4996 eval "ac_cv_header_$ac_safe=no"
4998 rm -f conftest*
5000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5001 echo "$ac_t""yes" 1>&6
5002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5003 cat >> confdefs.h <<EOF
5004 #define $ac_tr_hdr 1
5007 else
5008 echo "$ac_t""no" 1>&6
5010 done
5013 for ac_hdr in readline.h readline/readline.h
5015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5017 echo "configure:5018: checking for $ac_hdr" >&5
5018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5020 else
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 #include <$ac_hdr>
5026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5027 { (eval echo configure:5028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5029 if test -z "$ac_err"; then
5030 rm -rf conftest*
5031 eval "ac_cv_header_$ac_safe=yes"
5032 else
5033 echo "$ac_err" >&5
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 rm -rf conftest*
5037 eval "ac_cv_header_$ac_safe=no"
5039 rm -f conftest*
5041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5044 cat >> confdefs.h <<EOF
5045 #define $ac_tr_hdr 1
5048 for termlib in ncurses curses termcap terminfo termlib; do
5049 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5050 echo "configure:5051: checking for tgetent in -l${termlib}" >&5
5051 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5054 else
5055 ac_save_LIBS="$LIBS"
5056 LIBS="-l${termlib} $LIBS"
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 /* Override any gcc2 internal prototype to avoid an error. */
5061 /* We use char because int might match the return type of a gcc2
5062 builtin and then its argument prototype would still apply. */
5063 char tgetent();
5065 int main() {
5066 tgetent()
5067 ; return 0; }
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 rm -rf conftest*
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5072 else
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5075 rm -rf conftest*
5076 eval "ac_cv_lib_$ac_lib_var=no"
5078 rm -f conftest*
5079 LIBS="$ac_save_LIBS"
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 TERMLIBS="-l${termlib}"; break
5085 else
5086 echo "$ac_t""no" 1>&6
5089 done
5090 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5091 echo "configure:5092: checking for rl_callback_handler_install in -lreadline" >&5
5092 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5095 else
5096 ac_save_LIBS="$LIBS"
5097 LIBS="-lreadline $TERMLIBS $LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5104 char rl_callback_handler_install();
5106 int main() {
5107 rl_callback_handler_install()
5108 ; return 0; }
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5111 rm -rf conftest*
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5113 else
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5116 rm -rf conftest*
5117 eval "ac_cv_lib_$ac_lib_var=no"
5119 rm -f conftest*
5120 LIBS="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 TERMLDFLAGS="-L$with_readline/lib"
5126 TERMCPPFLAGS="-I$with_readline/include"
5127 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
5128 TERMLIBS="-lreadline $TERMLIBS"
5129 cat >> confdefs.h <<\EOF
5130 #define HAVE_LIBREADLINE 1
5133 break
5134 else
5135 echo "$ac_t""no" 1>&6
5136 TERMLIBS= CPPFLAGS=$_cppflags
5139 else
5140 echo "$ac_t""no" 1>&6
5142 done
5145 LDFLAGS=$_ldflags
5147 esac
5148 else
5149 echo "$ac_t""no" 1>&6
5156 # The readline API changed slightly from readline3 to readline4, so
5157 # code will generate warnings on one of them unless we have a few
5158 # special cases.
5159 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5160 echo "configure:5161: checking for rl_completion_matches in -lreadline" >&5
5161 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5164 else
5165 ac_save_LIBS="$LIBS"
5166 LIBS="-lreadline $TERMLIBS $LIBS"
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 /* Override any gcc2 internal prototype to avoid an error. */
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5173 char rl_completion_matches();
5175 int main() {
5176 rl_completion_matches()
5177 ; return 0; }
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180 rm -rf conftest*
5181 eval "ac_cv_lib_$ac_lib_var=yes"
5182 else
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 rm -rf conftest*
5186 eval "ac_cv_lib_$ac_lib_var=no"
5188 rm -f conftest*
5189 LIBS="$ac_save_LIBS"
5192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5193 echo "$ac_t""yes" 1>&6
5194 cat >> confdefs.h <<\EOF
5195 #define HAVE_NEW_LIBREADLINE 1
5198 else
5199 echo "$ac_t""no" 1>&6
5203 # The following test taken from the cvs sources
5204 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5205 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5206 # libsocket.so which has a bad implementation of gethostbyname (it
5207 # only looks in /etc/hosts), so we only look for -lsocket if we need
5208 # it.
5209 for ac_func in connect
5211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5212 echo "configure:5213: checking for $ac_func" >&5
5213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5215 else
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 /* System header to define __stub macros and hopefully few prototypes,
5220 which can conflict with char $ac_func(); below. */
5221 #include <assert.h>
5222 /* Override any gcc2 internal prototype to avoid an error. */
5223 /* We use char because int might match the return type of a gcc2
5224 builtin and then its argument prototype would still apply. */
5225 char $ac_func();
5227 int main() {
5229 /* The GNU C library defines this for functions which it implements
5230 to always fail with ENOSYS. Some functions are actually named
5231 something starting with __ and the normal name is an alias. */
5232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5233 choke me
5234 #else
5235 $ac_func();
5236 #endif
5238 ; return 0; }
5240 if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 rm -rf conftest*
5242 eval "ac_cv_func_$ac_func=yes"
5243 else
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5246 rm -rf conftest*
5247 eval "ac_cv_func_$ac_func=no"
5249 rm -f conftest*
5252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5255 cat >> confdefs.h <<EOF
5256 #define $ac_tr_func 1
5259 else
5260 echo "$ac_t""no" 1>&6
5262 done
5264 if test x"$ac_cv_func_connect" = x"no"; then
5265 case "$LIBS" in
5266 *-lnsl*) ;;
5267 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5268 echo "configure:5269: checking for printf in -lnsl_s" >&5
5269 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5272 else
5273 ac_save_LIBS="$LIBS"
5274 LIBS="-lnsl_s $LIBS"
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* Override any gcc2 internal prototype to avoid an error. */
5279 /* We use char because int might match the return type of a gcc2
5280 builtin and then its argument prototype would still apply. */
5281 char printf();
5283 int main() {
5284 printf()
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 rm -rf conftest*
5289 eval "ac_cv_lib_$ac_lib_var=yes"
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 eval "ac_cv_lib_$ac_lib_var=no"
5296 rm -f conftest*
5297 LIBS="$ac_save_LIBS"
5300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5304 cat >> confdefs.h <<EOF
5305 #define $ac_tr_lib 1
5308 LIBS="-lnsl_s $LIBS"
5310 else
5311 echo "$ac_t""no" 1>&6
5314 esac
5315 case "$LIBS" in
5316 *-lnsl*) ;;
5317 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5318 echo "configure:5319: checking for printf in -lnsl" >&5
5319 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5322 else
5323 ac_save_LIBS="$LIBS"
5324 LIBS="-lnsl $LIBS"
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5331 char printf();
5333 int main() {
5334 printf()
5335 ; return 0; }
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 rm -rf conftest*
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5340 else
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5343 rm -rf conftest*
5344 eval "ac_cv_lib_$ac_lib_var=no"
5346 rm -f conftest*
5347 LIBS="$ac_save_LIBS"
5350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5352 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5354 cat >> confdefs.h <<EOF
5355 #define $ac_tr_lib 1
5358 LIBS="-lnsl $LIBS"
5360 else
5361 echo "$ac_t""no" 1>&6
5364 esac
5365 case "$LIBS" in
5366 *-lsocket*) ;;
5367 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5368 echo "configure:5369: checking for connect in -lsocket" >&5
5369 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5372 else
5373 ac_save_LIBS="$LIBS"
5374 LIBS="-lsocket $LIBS"
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char connect();
5383 int main() {
5384 connect()
5385 ; return 0; }
5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5388 rm -rf conftest*
5389 eval "ac_cv_lib_$ac_lib_var=yes"
5390 else
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5393 rm -rf conftest*
5394 eval "ac_cv_lib_$ac_lib_var=no"
5396 rm -f conftest*
5397 LIBS="$ac_save_LIBS"
5400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5401 echo "$ac_t""yes" 1>&6
5402 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5404 cat >> confdefs.h <<EOF
5405 #define $ac_tr_lib 1
5408 LIBS="-lsocket $LIBS"
5410 else
5411 echo "$ac_t""no" 1>&6
5414 esac
5415 case "$LIBS" in
5416 *-linet*) ;;
5417 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5418 echo "configure:5419: checking for connect in -linet" >&5
5419 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5422 else
5423 ac_save_LIBS="$LIBS"
5424 LIBS="-linet $LIBS"
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* Override any gcc2 internal prototype to avoid an error. */
5429 /* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */
5431 char connect();
5433 int main() {
5434 connect()
5435 ; return 0; }
5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5438 rm -rf conftest*
5439 eval "ac_cv_lib_$ac_lib_var=yes"
5440 else
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5443 rm -rf conftest*
5444 eval "ac_cv_lib_$ac_lib_var=no"
5446 rm -f conftest*
5447 LIBS="$ac_save_LIBS"
5450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5451 echo "$ac_t""yes" 1>&6
5452 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5454 cat >> confdefs.h <<EOF
5455 #define $ac_tr_lib 1
5458 LIBS="-linet $LIBS"
5460 else
5461 echo "$ac_t""no" 1>&6
5464 esac
5465 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5466 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5467 # ac_cv_func_connect=yes
5468 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5469 cat >> confdefs.h <<\EOF
5470 #define HAVE_CONNECT 1
5476 ###############################################
5477 # test for where we get get_yp_default_domain() from
5478 for ac_func in yp_get_default_domain
5480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5481 echo "configure:5482: checking for $ac_func" >&5
5482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5484 else
5485 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char $ac_func(); below. */
5490 #include <assert.h>
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5494 char $ac_func();
5496 int main() {
5498 /* The GNU C library defines this for functions which it implements
5499 to always fail with ENOSYS. Some functions are actually named
5500 something starting with __ and the normal name is an alias. */
5501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5502 choke me
5503 #else
5504 $ac_func();
5505 #endif
5507 ; return 0; }
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5510 rm -rf conftest*
5511 eval "ac_cv_func_$ac_func=yes"
5512 else
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5515 rm -rf conftest*
5516 eval "ac_cv_func_$ac_func=no"
5518 rm -f conftest*
5521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5524 cat >> confdefs.h <<EOF
5525 #define $ac_tr_func 1
5528 else
5529 echo "$ac_t""no" 1>&6
5531 done
5533 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5534 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5535 echo "configure:5536: checking for yp_get_default_domain in -lnsl" >&5
5536 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5539 else
5540 ac_save_LIBS="$LIBS"
5541 LIBS="-lnsl $LIBS"
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5548 char yp_get_default_domain();
5550 int main() {
5551 yp_get_default_domain()
5552 ; return 0; }
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5555 rm -rf conftest*
5556 eval "ac_cv_lib_$ac_lib_var=yes"
5557 else
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5560 rm -rf conftest*
5561 eval "ac_cv_lib_$ac_lib_var=no"
5563 rm -f conftest*
5564 LIBS="$ac_save_LIBS"
5567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5568 echo "$ac_t""yes" 1>&6
5569 LIBS="$LIBS -lnsl";
5570 cat >> confdefs.h <<\EOF
5571 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5574 else
5575 echo "$ac_t""no" 1>&6
5580 # Check if we have execl, if not we need to compile smbrun.
5581 for ac_func in execl
5583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5584 echo "configure:5585: checking for $ac_func" >&5
5585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5587 else
5588 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 /* System header to define __stub macros and hopefully few prototypes,
5592 which can conflict with char $ac_func(); below. */
5593 #include <assert.h>
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5597 char $ac_func();
5599 int main() {
5601 /* The GNU C library defines this for functions which it implements
5602 to always fail with ENOSYS. Some functions are actually named
5603 something starting with __ and the normal name is an alias. */
5604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5605 choke me
5606 #else
5607 $ac_func();
5608 #endif
5610 ; return 0; }
5612 if { (eval echo configure:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5613 rm -rf conftest*
5614 eval "ac_cv_func_$ac_func=yes"
5615 else
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5618 rm -rf conftest*
5619 eval "ac_cv_func_$ac_func=no"
5621 rm -f conftest*
5624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5627 cat >> confdefs.h <<EOF
5628 #define $ac_tr_func 1
5631 else
5632 echo "$ac_t""no" 1>&6
5634 done
5636 if test x"$ac_cv_func_execl" = x"no"; then
5637 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5640 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5646 else
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5652 #include <assert.h>
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656 char $ac_func();
5658 int main() {
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5664 choke me
5665 #else
5666 $ac_func();
5667 #endif
5669 ; return 0; }
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5672 rm -rf conftest*
5673 eval "ac_cv_func_$ac_func=yes"
5674 else
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 rm -rf conftest*
5678 eval "ac_cv_func_$ac_func=no"
5680 rm -f conftest*
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h <<EOF
5687 #define $ac_tr_func 1
5690 else
5691 echo "$ac_t""no" 1>&6
5693 done
5695 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_func" >&5
5699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5701 else
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* System header to define __stub macros and hopefully few prototypes,
5706 which can conflict with char $ac_func(); below. */
5707 #include <assert.h>
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711 char $ac_func();
5713 int main() {
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5719 choke me
5720 #else
5721 $ac_func();
5722 #endif
5724 ; return 0; }
5726 if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5727 rm -rf conftest*
5728 eval "ac_cv_func_$ac_func=yes"
5729 else
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 rm -rf conftest*
5733 eval "ac_cv_func_$ac_func=no"
5735 rm -f conftest*
5738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5741 cat >> confdefs.h <<EOF
5742 #define $ac_tr_func 1
5745 else
5746 echo "$ac_t""no" 1>&6
5748 done
5750 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5756 else
5757 cat > conftest.$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5762 #include <assert.h>
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5766 char $ac_func();
5768 int main() {
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5774 choke me
5775 #else
5776 $ac_func();
5777 #endif
5779 ; return 0; }
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5782 rm -rf conftest*
5783 eval "ac_cv_func_$ac_func=yes"
5784 else
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 rm -rf conftest*
5788 eval "ac_cv_func_$ac_func=no"
5790 rm -f conftest*
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h <<EOF
5797 #define $ac_tr_func 1
5800 else
5801 echo "$ac_t""no" 1>&6
5803 done
5805 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5808 echo "configure:5809: checking for $ac_func" >&5
5809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5811 else
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char $ac_func(); below. */
5817 #include <assert.h>
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5821 char $ac_func();
5823 int main() {
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5829 choke me
5830 #else
5831 $ac_func();
5832 #endif
5834 ; return 0; }
5836 if { (eval echo configure:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5837 rm -rf conftest*
5838 eval "ac_cv_func_$ac_func=yes"
5839 else
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5842 rm -rf conftest*
5843 eval "ac_cv_func_$ac_func=no"
5845 rm -f conftest*
5848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5851 cat >> confdefs.h <<EOF
5852 #define $ac_tr_func 1
5855 else
5856 echo "$ac_t""no" 1>&6
5858 done
5860 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5866 else
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5872 #include <assert.h>
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5876 char $ac_func();
5878 int main() {
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5884 choke me
5885 #else
5886 $ac_func();
5887 #endif
5889 ; return 0; }
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 rm -rf conftest*
5893 eval "ac_cv_func_$ac_func=yes"
5894 else
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 rm -rf conftest*
5898 eval "ac_cv_func_$ac_func=no"
5900 rm -f conftest*
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5906 cat >> confdefs.h <<EOF
5907 #define $ac_tr_func 1
5910 else
5911 echo "$ac_t""no" 1>&6
5913 done
5915 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922 cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char $ac_func(); below. */
5927 #include <assert.h>
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5931 char $ac_func();
5933 int main() {
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5939 choke me
5940 #else
5941 $ac_func();
5942 #endif
5944 ; return 0; }
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5947 rm -rf conftest*
5948 eval "ac_cv_func_$ac_func=yes"
5949 else
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 rm -rf conftest*
5953 eval "ac_cv_func_$ac_func=no"
5955 rm -f conftest*
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961 cat >> confdefs.h <<EOF
5962 #define $ac_tr_func 1
5965 else
5966 echo "$ac_t""no" 1>&6
5968 done
5970 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_func" >&5
5974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5976 else
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 /* System header to define __stub macros and hopefully few prototypes,
5981 which can conflict with char $ac_func(); below. */
5982 #include <assert.h>
5983 /* Override any gcc2 internal prototype to avoid an error. */
5984 /* We use char because int might match the return type of a gcc2
5985 builtin and then its argument prototype would still apply. */
5986 char $ac_func();
5988 int main() {
5990 /* The GNU C library defines this for functions which it implements
5991 to always fail with ENOSYS. Some functions are actually named
5992 something starting with __ and the normal name is an alias. */
5993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5994 choke me
5995 #else
5996 $ac_func();
5997 #endif
5999 ; return 0; }
6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6002 rm -rf conftest*
6003 eval "ac_cv_func_$ac_func=yes"
6004 else
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6007 rm -rf conftest*
6008 eval "ac_cv_func_$ac_func=no"
6010 rm -f conftest*
6013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6016 cat >> confdefs.h <<EOF
6017 #define $ac_tr_func 1
6020 else
6021 echo "$ac_t""no" 1>&6
6023 done
6025 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6028 echo "configure:6029: checking for $ac_func" >&5
6029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6031 else
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 /* System header to define __stub macros and hopefully few prototypes,
6036 which can conflict with char $ac_func(); below. */
6037 #include <assert.h>
6038 /* Override any gcc2 internal prototype to avoid an error. */
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6041 char $ac_func();
6043 int main() {
6045 /* The GNU C library defines this for functions which it implements
6046 to always fail with ENOSYS. Some functions are actually named
6047 something starting with __ and the normal name is an alias. */
6048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6049 choke me
6050 #else
6051 $ac_func();
6052 #endif
6054 ; return 0; }
6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6057 rm -rf conftest*
6058 eval "ac_cv_func_$ac_func=yes"
6059 else
6060 echo "configure: failed program was:" >&5
6061 cat conftest.$ac_ext >&5
6062 rm -rf conftest*
6063 eval "ac_cv_func_$ac_func=no"
6065 rm -f conftest*
6068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6071 cat >> confdefs.h <<EOF
6072 #define $ac_tr_func 1
6075 else
6076 echo "$ac_t""no" 1>&6
6078 done
6080 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
6082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_func" >&5
6084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6086 else
6087 cat > conftest.$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* System header to define __stub macros and hopefully few prototypes,
6091 which can conflict with char $ac_func(); below. */
6092 #include <assert.h>
6093 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6096 char $ac_func();
6098 int main() {
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6104 choke me
6105 #else
6106 $ac_func();
6107 #endif
6109 ; return 0; }
6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6112 rm -rf conftest*
6113 eval "ac_cv_func_$ac_func=yes"
6114 else
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 rm -rf conftest*
6118 eval "ac_cv_func_$ac_func=no"
6120 rm -f conftest*
6123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6126 cat >> confdefs.h <<EOF
6127 #define $ac_tr_func 1
6130 else
6131 echo "$ac_t""no" 1>&6
6133 done
6135 for ac_func in syslog vsyslog getgrouplist timegm
6137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6138 echo "configure:6139: checking for $ac_func" >&5
6139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6141 else
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 /* System header to define __stub macros and hopefully few prototypes,
6146 which can conflict with char $ac_func(); below. */
6147 #include <assert.h>
6148 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151 char $ac_func();
6153 int main() {
6155 /* The GNU C library defines this for functions which it implements
6156 to always fail with ENOSYS. Some functions are actually named
6157 something starting with __ and the normal name is an alias. */
6158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6159 choke me
6160 #else
6161 $ac_func();
6162 #endif
6164 ; return 0; }
6166 if { (eval echo configure:6167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6167 rm -rf conftest*
6168 eval "ac_cv_func_$ac_func=yes"
6169 else
6170 echo "configure: failed program was:" >&5
6171 cat conftest.$ac_ext >&5
6172 rm -rf conftest*
6173 eval "ac_cv_func_$ac_func=no"
6175 rm -f conftest*
6178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6181 cat >> confdefs.h <<EOF
6182 #define $ac_tr_func 1
6185 else
6186 echo "$ac_t""no" 1>&6
6188 done
6190 # setbuffer, shmget, shm_open are needed for smbtorture
6191 for ac_func in setbuffer shmget shm_open
6193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6194 echo "configure:6195: checking for $ac_func" >&5
6195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6197 else
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 /* System header to define __stub macros and hopefully few prototypes,
6202 which can conflict with char $ac_func(); below. */
6203 #include <assert.h>
6204 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6207 char $ac_func();
6209 int main() {
6211 /* The GNU C library defines this for functions which it implements
6212 to always fail with ENOSYS. Some functions are actually named
6213 something starting with __ and the normal name is an alias. */
6214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6215 choke me
6216 #else
6217 $ac_func();
6218 #endif
6220 ; return 0; }
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6223 rm -rf conftest*
6224 eval "ac_cv_func_$ac_func=yes"
6225 else
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 rm -rf conftest*
6229 eval "ac_cv_func_$ac_func=no"
6231 rm -f conftest*
6234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6237 cat >> confdefs.h <<EOF
6238 #define $ac_tr_func 1
6241 else
6242 echo "$ac_t""no" 1>&6
6244 done
6247 # syscall() is needed for smbwrapper.
6248 for ac_func in syscall
6250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6251 echo "configure:6252: checking for $ac_func" >&5
6252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6254 else
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6260 #include <assert.h>
6261 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264 char $ac_func();
6266 int main() {
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272 choke me
6273 #else
6274 $ac_func();
6275 #endif
6277 ; return 0; }
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6280 rm -rf conftest*
6281 eval "ac_cv_func_$ac_func=yes"
6282 else
6283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 rm -rf conftest*
6286 eval "ac_cv_func_$ac_func=no"
6288 rm -f conftest*
6291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6294 cat >> confdefs.h <<EOF
6295 #define $ac_tr_func 1
6298 else
6299 echo "$ac_t""no" 1>&6
6301 done
6304 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6307 echo "configure:6308: checking for $ac_func" >&5
6308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6310 else
6311 cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func(); below. */
6316 #include <assert.h>
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6320 char $ac_func();
6322 int main() {
6324 /* The GNU C library defines this for functions which it implements
6325 to always fail with ENOSYS. Some functions are actually named
6326 something starting with __ and the normal name is an alias. */
6327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6328 choke me
6329 #else
6330 $ac_func();
6331 #endif
6333 ; return 0; }
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6336 rm -rf conftest*
6337 eval "ac_cv_func_$ac_func=yes"
6338 else
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6341 rm -rf conftest*
6342 eval "ac_cv_func_$ac_func=no"
6344 rm -f conftest*
6347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6350 cat >> confdefs.h <<EOF
6351 #define $ac_tr_func 1
6354 else
6355 echo "$ac_t""no" 1>&6
6357 done
6359 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6362 echo "configure:6363: checking for $ac_func" >&5
6363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6365 else
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6369 /* System header to define __stub macros and hopefully few prototypes,
6370 which can conflict with char $ac_func(); below. */
6371 #include <assert.h>
6372 /* Override any gcc2 internal prototype to avoid an error. */
6373 /* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */
6375 char $ac_func();
6377 int main() {
6379 /* The GNU C library defines this for functions which it implements
6380 to always fail with ENOSYS. Some functions are actually named
6381 something starting with __ and the normal name is an alias. */
6382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6383 choke me
6384 #else
6385 $ac_func();
6386 #endif
6388 ; return 0; }
6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6391 rm -rf conftest*
6392 eval "ac_cv_func_$ac_func=yes"
6393 else
6394 echo "configure: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6396 rm -rf conftest*
6397 eval "ac_cv_func_$ac_func=no"
6399 rm -f conftest*
6402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6403 echo "$ac_t""yes" 1>&6
6404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6405 cat >> confdefs.h <<EOF
6406 #define $ac_tr_func 1
6409 else
6410 echo "$ac_t""no" 1>&6
6412 done
6414 for ac_func in __getcwd _getcwd
6416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6417 echo "configure:6418: checking for $ac_func" >&5
6418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6420 else
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 /* System header to define __stub macros and hopefully few prototypes,
6425 which can conflict with char $ac_func(); below. */
6426 #include <assert.h>
6427 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6430 char $ac_func();
6432 int main() {
6434 /* The GNU C library defines this for functions which it implements
6435 to always fail with ENOSYS. Some functions are actually named
6436 something starting with __ and the normal name is an alias. */
6437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6438 choke me
6439 #else
6440 $ac_func();
6441 #endif
6443 ; return 0; }
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6446 rm -rf conftest*
6447 eval "ac_cv_func_$ac_func=yes"
6448 else
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 rm -rf conftest*
6452 eval "ac_cv_func_$ac_func=no"
6454 rm -f conftest*
6457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6458 echo "$ac_t""yes" 1>&6
6459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6460 cat >> confdefs.h <<EOF
6461 #define $ac_tr_func 1
6464 else
6465 echo "$ac_t""no" 1>&6
6467 done
6469 for ac_func in __xstat __fxstat __lxstat
6471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6472 echo "configure:6473: checking for $ac_func" >&5
6473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6475 else
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 /* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char $ac_func(); below. */
6481 #include <assert.h>
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6485 char $ac_func();
6487 int main() {
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6493 choke me
6494 #else
6495 $ac_func();
6496 #endif
6498 ; return 0; }
6500 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6501 rm -rf conftest*
6502 eval "ac_cv_func_$ac_func=yes"
6503 else
6504 echo "configure: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6506 rm -rf conftest*
6507 eval "ac_cv_func_$ac_func=no"
6509 rm -f conftest*
6512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6515 cat >> confdefs.h <<EOF
6516 #define $ac_tr_func 1
6519 else
6520 echo "$ac_t""no" 1>&6
6522 done
6524 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_func" >&5
6528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6530 else
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* System header to define __stub macros and hopefully few prototypes,
6535 which can conflict with char $ac_func(); below. */
6536 #include <assert.h>
6537 /* Override any gcc2 internal prototype to avoid an error. */
6538 /* We use char because int might match the return type of a gcc2
6539 builtin and then its argument prototype would still apply. */
6540 char $ac_func();
6542 int main() {
6544 /* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6548 choke me
6549 #else
6550 $ac_func();
6551 #endif
6553 ; return 0; }
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6556 rm -rf conftest*
6557 eval "ac_cv_func_$ac_func=yes"
6558 else
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6561 rm -rf conftest*
6562 eval "ac_cv_func_$ac_func=no"
6564 rm -f conftest*
6567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6568 echo "$ac_t""yes" 1>&6
6569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6570 cat >> confdefs.h <<EOF
6571 #define $ac_tr_func 1
6574 else
6575 echo "$ac_t""no" 1>&6
6577 done
6579 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6582 echo "configure:6583: checking for $ac_func" >&5
6583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6584 echo $ac_n "(cached) $ac_c" 1>&6
6585 else
6586 cat > conftest.$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 /* System header to define __stub macros and hopefully few prototypes,
6590 which can conflict with char $ac_func(); below. */
6591 #include <assert.h>
6592 /* Override any gcc2 internal prototype to avoid an error. */
6593 /* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */
6595 char $ac_func();
6597 int main() {
6599 /* The GNU C library defines this for functions which it implements
6600 to always fail with ENOSYS. Some functions are actually named
6601 something starting with __ and the normal name is an alias. */
6602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6603 choke me
6604 #else
6605 $ac_func();
6606 #endif
6608 ; return 0; }
6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 rm -rf conftest*
6612 eval "ac_cv_func_$ac_func=yes"
6613 else
6614 echo "configure: failed program was:" >&5
6615 cat conftest.$ac_ext >&5
6616 rm -rf conftest*
6617 eval "ac_cv_func_$ac_func=no"
6619 rm -f conftest*
6622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6625 cat >> confdefs.h <<EOF
6626 #define $ac_tr_func 1
6629 else
6630 echo "$ac_t""no" 1>&6
6632 done
6634 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6637 echo "configure:6638: checking for $ac_func" >&5
6638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6640 else
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func(); below. */
6646 #include <assert.h>
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650 char $ac_func();
6652 int main() {
6654 /* The GNU C library defines this for functions which it implements
6655 to always fail with ENOSYS. Some functions are actually named
6656 something starting with __ and the normal name is an alias. */
6657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6658 choke me
6659 #else
6660 $ac_func();
6661 #endif
6663 ; return 0; }
6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6666 rm -rf conftest*
6667 eval "ac_cv_func_$ac_func=yes"
6668 else
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 rm -rf conftest*
6672 eval "ac_cv_func_$ac_func=no"
6674 rm -f conftest*
6677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6680 cat >> confdefs.h <<EOF
6681 #define $ac_tr_func 1
6684 else
6685 echo "$ac_t""no" 1>&6
6687 done
6689 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700 which can conflict with char $ac_func(); below. */
6701 #include <assert.h>
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char $ac_func();
6707 int main() {
6709 /* The GNU C library defines this for functions which it implements
6710 to always fail with ENOSYS. Some functions are actually named
6711 something starting with __ and the normal name is an alias. */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6713 choke me
6714 #else
6715 $ac_func();
6716 #endif
6718 ; return 0; }
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 rm -rf conftest*
6722 eval "ac_cv_func_$ac_func=yes"
6723 else
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6726 rm -rf conftest*
6727 eval "ac_cv_func_$ac_func=no"
6729 rm -f conftest*
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733 echo "$ac_t""yes" 1>&6
6734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735 cat >> confdefs.h <<EOF
6736 #define $ac_tr_func 1
6739 else
6740 echo "$ac_t""no" 1>&6
6742 done
6744 for ac_func in _write __write _fork __fork
6746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6747 echo "configure:6748: checking for $ac_func" >&5
6748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6750 else
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6754 /* System header to define __stub macros and hopefully few prototypes,
6755 which can conflict with char $ac_func(); below. */
6756 #include <assert.h>
6757 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6760 char $ac_func();
6762 int main() {
6764 /* The GNU C library defines this for functions which it implements
6765 to always fail with ENOSYS. Some functions are actually named
6766 something starting with __ and the normal name is an alias. */
6767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6768 choke me
6769 #else
6770 $ac_func();
6771 #endif
6773 ; return 0; }
6775 if { (eval echo configure:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6776 rm -rf conftest*
6777 eval "ac_cv_func_$ac_func=yes"
6778 else
6779 echo "configure: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6781 rm -rf conftest*
6782 eval "ac_cv_func_$ac_func=no"
6784 rm -f conftest*
6787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6788 echo "$ac_t""yes" 1>&6
6789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6790 cat >> confdefs.h <<EOF
6791 #define $ac_tr_func 1
6794 else
6795 echo "$ac_t""no" 1>&6
6797 done
6799 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6802 echo "configure:6803: checking for $ac_func" >&5
6803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6805 else
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 /* System header to define __stub macros and hopefully few prototypes,
6810 which can conflict with char $ac_func(); below. */
6811 #include <assert.h>
6812 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6815 char $ac_func();
6817 int main() {
6819 /* The GNU C library defines this for functions which it implements
6820 to always fail with ENOSYS. Some functions are actually named
6821 something starting with __ and the normal name is an alias. */
6822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6823 choke me
6824 #else
6825 $ac_func();
6826 #endif
6828 ; return 0; }
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6831 rm -rf conftest*
6832 eval "ac_cv_func_$ac_func=yes"
6833 else
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6836 rm -rf conftest*
6837 eval "ac_cv_func_$ac_func=no"
6839 rm -f conftest*
6842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6845 cat >> confdefs.h <<EOF
6846 #define $ac_tr_func 1
6849 else
6850 echo "$ac_t""no" 1>&6
6852 done
6854 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6857 echo "configure:6858: checking for $ac_func" >&5
6858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6860 else
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 /* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func(); below. */
6866 #include <assert.h>
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6870 char $ac_func();
6872 int main() {
6874 /* The GNU C library defines this for functions which it implements
6875 to always fail with ENOSYS. Some functions are actually named
6876 something starting with __ and the normal name is an alias. */
6877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6878 choke me
6879 #else
6880 $ac_func();
6881 #endif
6883 ; return 0; }
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886 rm -rf conftest*
6887 eval "ac_cv_func_$ac_func=yes"
6888 else
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6891 rm -rf conftest*
6892 eval "ac_cv_func_$ac_func=no"
6894 rm -f conftest*
6897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6900 cat >> confdefs.h <<EOF
6901 #define $ac_tr_func 1
6904 else
6905 echo "$ac_t""no" 1>&6
6907 done
6909 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6912 echo "configure:6913: checking for $ac_func" >&5
6913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6914 echo $ac_n "(cached) $ac_c" 1>&6
6915 else
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6919 /* System header to define __stub macros and hopefully few prototypes,
6920 which can conflict with char $ac_func(); below. */
6921 #include <assert.h>
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6925 char $ac_func();
6927 int main() {
6929 /* The GNU C library defines this for functions which it implements
6930 to always fail with ENOSYS. Some functions are actually named
6931 something starting with __ and the normal name is an alias. */
6932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6933 choke me
6934 #else
6935 $ac_func();
6936 #endif
6938 ; return 0; }
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6941 rm -rf conftest*
6942 eval "ac_cv_func_$ac_func=yes"
6943 else
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6946 rm -rf conftest*
6947 eval "ac_cv_func_$ac_func=no"
6949 rm -f conftest*
6952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6953 echo "$ac_t""yes" 1>&6
6954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6955 cat >> confdefs.h <<EOF
6956 #define $ac_tr_func 1
6959 else
6960 echo "$ac_t""no" 1>&6
6962 done
6964 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6967 echo "configure:6968: checking for $ac_func" >&5
6968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6970 else
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char $ac_func(); below. */
6976 #include <assert.h>
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6980 char $ac_func();
6982 int main() {
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6988 choke me
6989 #else
6990 $ac_func();
6991 #endif
6993 ; return 0; }
6995 if { (eval echo configure:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 rm -rf conftest*
6997 eval "ac_cv_func_$ac_func=yes"
6998 else
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7001 rm -rf conftest*
7002 eval "ac_cv_func_$ac_func=no"
7004 rm -f conftest*
7007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7008 echo "$ac_t""yes" 1>&6
7009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7010 cat >> confdefs.h <<EOF
7011 #define $ac_tr_func 1
7014 else
7015 echo "$ac_t""no" 1>&6
7017 done
7019 for ac_func in open64 _open64 __open64 creat64
7021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7022 echo "configure:7023: checking for $ac_func" >&5
7023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7025 else
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* System header to define __stub macros and hopefully few prototypes,
7030 which can conflict with char $ac_func(); below. */
7031 #include <assert.h>
7032 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7035 char $ac_func();
7037 int main() {
7039 /* The GNU C library defines this for functions which it implements
7040 to always fail with ENOSYS. Some functions are actually named
7041 something starting with __ and the normal name is an alias. */
7042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7043 choke me
7044 #else
7045 $ac_func();
7046 #endif
7048 ; return 0; }
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7051 rm -rf conftest*
7052 eval "ac_cv_func_$ac_func=yes"
7053 else
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7056 rm -rf conftest*
7057 eval "ac_cv_func_$ac_func=no"
7059 rm -f conftest*
7062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7065 cat >> confdefs.h <<EOF
7066 #define $ac_tr_func 1
7069 else
7070 echo "$ac_t""no" 1>&6
7072 done
7076 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7079 if test x$ac_cv_func_stat64 = xno ; then
7080 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7081 echo "configure:7082: checking for stat64 in <sys/stat.h>" >&5
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7086 #if defined(HAVE_UNISTD_H)
7087 #include <unistd.h>
7088 #endif
7089 #include <sys/stat.h>
7091 int main() {
7092 struct stat64 st64; exit(stat64(".",&st64));
7093 ; return 0; }
7095 if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7096 rm -rf conftest*
7097 ac_cv_func_stat64=yes
7098 else
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7102 rm -f conftest*
7103 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7104 if test x$ac_cv_func_stat64 = xyes ; then
7105 cat >> confdefs.h <<\EOF
7106 #define HAVE_STAT64 1
7112 if test x$ac_cv_func_lstat64 = xno ; then
7113 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7114 echo "configure:7115: checking for lstat64 in <sys/stat.h>" >&5
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7119 #if defined(HAVE_UNISTD_H)
7120 #include <unistd.h>
7121 #endif
7122 #include <sys/stat.h>
7124 int main() {
7125 struct stat64 st64; exit(lstat64(".",&st64));
7126 ; return 0; }
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7129 rm -rf conftest*
7130 ac_cv_func_lstat64=yes
7131 else
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 rm -f conftest*
7136 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7137 if test x$ac_cv_func_lstat64 = xyes ; then
7138 cat >> confdefs.h <<\EOF
7139 #define HAVE_LSTAT64 Whether lstat64() is available
7145 if test x$ac_cv_func_fstat64 = xno ; then
7146 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7147 echo "configure:7148: checking for fstat64 in <sys/stat.h>" >&5
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7152 #if defined(HAVE_UNISTD_H)
7153 #include <unistd.h>
7154 #endif
7155 #include <sys/stat.h>
7157 int main() {
7158 struct stat64 st64; exit(fstat64(0,&st64));
7159 ; return 0; }
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 rm -rf conftest*
7163 ac_cv_func_fstat64=yes
7164 else
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7168 rm -f conftest*
7169 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7170 if test x$ac_cv_func_fstat64 = xyes ; then
7171 cat >> confdefs.h <<\EOF
7172 #define HAVE_FSTAT64 1
7178 #####################################
7179 # we might need the resolv library on some systems
7180 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7181 echo "configure:7182: checking for dn_expand in -lresolv" >&5
7182 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7185 else
7186 ac_save_LIBS="$LIBS"
7187 LIBS="-lresolv $LIBS"
7188 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7191 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */
7194 char dn_expand();
7196 int main() {
7197 dn_expand()
7198 ; return 0; }
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7201 rm -rf conftest*
7202 eval "ac_cv_lib_$ac_lib_var=yes"
7203 else
7204 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7206 rm -rf conftest*
7207 eval "ac_cv_lib_$ac_lib_var=no"
7209 rm -f conftest*
7210 LIBS="$ac_save_LIBS"
7213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_lib 1
7221 LIBS="-lresolv $LIBS"
7223 else
7224 echo "$ac_t""no" 1>&6
7229 # Check for the functions putprpwnam, set_auth_parameters,
7230 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7231 # Needed for OSF1 and HPUX.
7234 case "$LIBS" in
7235 *-lsecurity*) for ac_func in putprpwnam
7237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7238 echo "configure:7239: checking for $ac_func" >&5
7239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7241 else
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 /* System header to define __stub macros and hopefully few prototypes,
7246 which can conflict with char $ac_func(); below. */
7247 #include <assert.h>
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7251 char $ac_func();
7253 int main() {
7255 /* The GNU C library defines this for functions which it implements
7256 to always fail with ENOSYS. Some functions are actually named
7257 something starting with __ and the normal name is an alias. */
7258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7259 choke me
7260 #else
7261 $ac_func();
7262 #endif
7264 ; return 0; }
7266 if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7267 rm -rf conftest*
7268 eval "ac_cv_func_$ac_func=yes"
7269 else
7270 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7272 rm -rf conftest*
7273 eval "ac_cv_func_$ac_func=no"
7275 rm -f conftest*
7278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7279 echo "$ac_t""yes" 1>&6
7280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7281 cat >> confdefs.h <<EOF
7282 #define $ac_tr_func 1
7285 else
7286 echo "$ac_t""no" 1>&6
7288 done
7290 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7291 echo "configure:7292: checking for putprpwnam in -lsecurity" >&5
7292 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7295 else
7296 ac_save_LIBS="$LIBS"
7297 LIBS="-lsecurity $LIBS"
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7304 char putprpwnam();
7306 int main() {
7307 putprpwnam()
7308 ; return 0; }
7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7311 rm -rf conftest*
7312 eval "ac_cv_lib_$ac_lib_var=yes"
7313 else
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7316 rm -rf conftest*
7317 eval "ac_cv_lib_$ac_lib_var=no"
7319 rm -f conftest*
7320 LIBS="$ac_save_LIBS"
7323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7324 echo "$ac_t""yes" 1>&6
7325 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7327 cat >> confdefs.h <<EOF
7328 #define $ac_tr_lib 1
7331 LIBS="-lsecurity $LIBS"
7333 else
7334 echo "$ac_t""no" 1>&6
7337 for ac_func in putprpwnam
7339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7340 echo "configure:7341: checking for $ac_func" >&5
7341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7343 else
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 /* System header to define __stub macros and hopefully few prototypes,
7348 which can conflict with char $ac_func(); below. */
7349 #include <assert.h>
7350 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */
7353 char $ac_func();
7355 int main() {
7357 /* The GNU C library defines this for functions which it implements
7358 to always fail with ENOSYS. Some functions are actually named
7359 something starting with __ and the normal name is an alias. */
7360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7361 choke me
7362 #else
7363 $ac_func();
7364 #endif
7366 ; return 0; }
7368 if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7369 rm -rf conftest*
7370 eval "ac_cv_func_$ac_func=yes"
7371 else
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7374 rm -rf conftest*
7375 eval "ac_cv_func_$ac_func=no"
7377 rm -f conftest*
7380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7381 echo "$ac_t""yes" 1>&6
7382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7383 cat >> confdefs.h <<EOF
7384 #define $ac_tr_func 1
7387 else
7388 echo "$ac_t""no" 1>&6
7390 done
7393 esac
7395 case "$LIBS" in
7396 *-lsec*) for ac_func in putprpwnam
7398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7399 echo "configure:7400: checking for $ac_func" >&5
7400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7402 else
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char $ac_func(); below. */
7408 #include <assert.h>
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7412 char $ac_func();
7414 int main() {
7416 /* The GNU C library defines this for functions which it implements
7417 to always fail with ENOSYS. Some functions are actually named
7418 something starting with __ and the normal name is an alias. */
7419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7420 choke me
7421 #else
7422 $ac_func();
7423 #endif
7425 ; return 0; }
7427 if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7428 rm -rf conftest*
7429 eval "ac_cv_func_$ac_func=yes"
7430 else
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 rm -rf conftest*
7434 eval "ac_cv_func_$ac_func=no"
7436 rm -f conftest*
7439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7440 echo "$ac_t""yes" 1>&6
7441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7442 cat >> confdefs.h <<EOF
7443 #define $ac_tr_func 1
7446 else
7447 echo "$ac_t""no" 1>&6
7449 done
7451 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7452 echo "configure:7453: checking for putprpwnam in -lsec" >&5
7453 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7456 else
7457 ac_save_LIBS="$LIBS"
7458 LIBS="-lsec $LIBS"
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7465 char putprpwnam();
7467 int main() {
7468 putprpwnam()
7469 ; return 0; }
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7472 rm -rf conftest*
7473 eval "ac_cv_lib_$ac_lib_var=yes"
7474 else
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7477 rm -rf conftest*
7478 eval "ac_cv_lib_$ac_lib_var=no"
7480 rm -f conftest*
7481 LIBS="$ac_save_LIBS"
7484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7488 cat >> confdefs.h <<EOF
7489 #define $ac_tr_lib 1
7492 LIBS="-lsec $LIBS"
7494 else
7495 echo "$ac_t""no" 1>&6
7498 for ac_func in putprpwnam
7500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7501 echo "configure:7502: checking for $ac_func" >&5
7502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7504 else
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 /* System header to define __stub macros and hopefully few prototypes,
7509 which can conflict with char $ac_func(); below. */
7510 #include <assert.h>
7511 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7514 char $ac_func();
7516 int main() {
7518 /* The GNU C library defines this for functions which it implements
7519 to always fail with ENOSYS. Some functions are actually named
7520 something starting with __ and the normal name is an alias. */
7521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7522 choke me
7523 #else
7524 $ac_func();
7525 #endif
7527 ; return 0; }
7529 if { (eval echo configure:7530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7530 rm -rf conftest*
7531 eval "ac_cv_func_$ac_func=yes"
7532 else
7533 echo "configure: failed program was:" >&5
7534 cat conftest.$ac_ext >&5
7535 rm -rf conftest*
7536 eval "ac_cv_func_$ac_func=no"
7538 rm -f conftest*
7541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7542 echo "$ac_t""yes" 1>&6
7543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7544 cat >> confdefs.h <<EOF
7545 #define $ac_tr_func 1
7548 else
7549 echo "$ac_t""no" 1>&6
7551 done
7554 esac
7557 case "$LIBS" in
7558 *-lsecurity*) for ac_func in set_auth_parameters
7560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_func" >&5
7562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7564 else
7565 cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char $ac_func(); below. */
7570 #include <assert.h>
7571 /* Override any gcc2 internal prototype to avoid an error. */
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7574 char $ac_func();
7576 int main() {
7578 /* The GNU C library defines this for functions which it implements
7579 to always fail with ENOSYS. Some functions are actually named
7580 something starting with __ and the normal name is an alias. */
7581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7582 choke me
7583 #else
7584 $ac_func();
7585 #endif
7587 ; return 0; }
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7590 rm -rf conftest*
7591 eval "ac_cv_func_$ac_func=yes"
7592 else
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7595 rm -rf conftest*
7596 eval "ac_cv_func_$ac_func=no"
7598 rm -f conftest*
7601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7604 cat >> confdefs.h <<EOF
7605 #define $ac_tr_func 1
7608 else
7609 echo "$ac_t""no" 1>&6
7611 done
7613 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7614 echo "configure:7615: checking for set_auth_parameters in -lsecurity" >&5
7615 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7618 else
7619 ac_save_LIBS="$LIBS"
7620 LIBS="-lsecurity $LIBS"
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 /* Override any gcc2 internal prototype to avoid an error. */
7625 /* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7627 char set_auth_parameters();
7629 int main() {
7630 set_auth_parameters()
7631 ; return 0; }
7633 if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7634 rm -rf conftest*
7635 eval "ac_cv_lib_$ac_lib_var=yes"
7636 else
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7639 rm -rf conftest*
7640 eval "ac_cv_lib_$ac_lib_var=no"
7642 rm -f conftest*
7643 LIBS="$ac_save_LIBS"
7646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7650 cat >> confdefs.h <<EOF
7651 #define $ac_tr_lib 1
7654 LIBS="-lsecurity $LIBS"
7656 else
7657 echo "$ac_t""no" 1>&6
7660 for ac_func in set_auth_parameters
7662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7663 echo "configure:7664: checking for $ac_func" >&5
7664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7666 else
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 /* System header to define __stub macros and hopefully few prototypes,
7671 which can conflict with char $ac_func(); below. */
7672 #include <assert.h>
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7676 char $ac_func();
7678 int main() {
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7684 choke me
7685 #else
7686 $ac_func();
7687 #endif
7689 ; return 0; }
7691 if { (eval echo configure:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7692 rm -rf conftest*
7693 eval "ac_cv_func_$ac_func=yes"
7694 else
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7697 rm -rf conftest*
7698 eval "ac_cv_func_$ac_func=no"
7700 rm -f conftest*
7703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7704 echo "$ac_t""yes" 1>&6
7705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7706 cat >> confdefs.h <<EOF
7707 #define $ac_tr_func 1
7710 else
7711 echo "$ac_t""no" 1>&6
7713 done
7716 esac
7718 case "$LIBS" in
7719 *-lsec*) for ac_func in set_auth_parameters
7721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7722 echo "configure:7723: checking for $ac_func" >&5
7723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7725 else
7726 cat > conftest.$ac_ext <<EOF
7727 #line 7728 "configure"
7728 #include "confdefs.h"
7729 /* System header to define __stub macros and hopefully few prototypes,
7730 which can conflict with char $ac_func(); below. */
7731 #include <assert.h>
7732 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7735 char $ac_func();
7737 int main() {
7739 /* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7743 choke me
7744 #else
7745 $ac_func();
7746 #endif
7748 ; return 0; }
7750 if { (eval echo configure:7751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7751 rm -rf conftest*
7752 eval "ac_cv_func_$ac_func=yes"
7753 else
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7756 rm -rf conftest*
7757 eval "ac_cv_func_$ac_func=no"
7759 rm -f conftest*
7762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7765 cat >> confdefs.h <<EOF
7766 #define $ac_tr_func 1
7769 else
7770 echo "$ac_t""no" 1>&6
7772 done
7774 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7775 echo "configure:7776: checking for set_auth_parameters in -lsec" >&5
7776 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7779 else
7780 ac_save_LIBS="$LIBS"
7781 LIBS="-lsec $LIBS"
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7788 char set_auth_parameters();
7790 int main() {
7791 set_auth_parameters()
7792 ; return 0; }
7794 if { (eval echo configure:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7795 rm -rf conftest*
7796 eval "ac_cv_lib_$ac_lib_var=yes"
7797 else
7798 echo "configure: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7800 rm -rf conftest*
7801 eval "ac_cv_lib_$ac_lib_var=no"
7803 rm -f conftest*
7804 LIBS="$ac_save_LIBS"
7807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7809 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7810 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7811 cat >> confdefs.h <<EOF
7812 #define $ac_tr_lib 1
7815 LIBS="-lsec $LIBS"
7817 else
7818 echo "$ac_t""no" 1>&6
7821 for ac_func in set_auth_parameters
7823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_func" >&5
7825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7827 else
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* System header to define __stub macros and hopefully few prototypes,
7832 which can conflict with char $ac_func(); below. */
7833 #include <assert.h>
7834 /* Override any gcc2 internal prototype to avoid an error. */
7835 /* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7837 char $ac_func();
7839 int main() {
7841 /* The GNU C library defines this for functions which it implements
7842 to always fail with ENOSYS. Some functions are actually named
7843 something starting with __ and the normal name is an alias. */
7844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7845 choke me
7846 #else
7847 $ac_func();
7848 #endif
7850 ; return 0; }
7852 if { (eval echo configure:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7853 rm -rf conftest*
7854 eval "ac_cv_func_$ac_func=yes"
7855 else
7856 echo "configure: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7858 rm -rf conftest*
7859 eval "ac_cv_func_$ac_func=no"
7861 rm -f conftest*
7864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7867 cat >> confdefs.h <<EOF
7868 #define $ac_tr_func 1
7871 else
7872 echo "$ac_t""no" 1>&6
7874 done
7877 esac
7880 # UnixWare 7.x has its getspnam in -lgen
7881 case "$LIBS" in
7882 *-lgen*) for ac_func in getspnam
7884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7885 echo "configure:7886: checking for $ac_func" >&5
7886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7888 else
7889 cat > conftest.$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 /* System header to define __stub macros and hopefully few prototypes,
7893 which can conflict with char $ac_func(); below. */
7894 #include <assert.h>
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7898 char $ac_func();
7900 int main() {
7902 /* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7906 choke me
7907 #else
7908 $ac_func();
7909 #endif
7911 ; return 0; }
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7914 rm -rf conftest*
7915 eval "ac_cv_func_$ac_func=yes"
7916 else
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7919 rm -rf conftest*
7920 eval "ac_cv_func_$ac_func=no"
7922 rm -f conftest*
7925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7926 echo "$ac_t""yes" 1>&6
7927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7928 cat >> confdefs.h <<EOF
7929 #define $ac_tr_func 1
7932 else
7933 echo "$ac_t""no" 1>&6
7935 done
7937 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7938 echo "configure:7939: checking for getspnam in -lgen" >&5
7939 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7941 echo $ac_n "(cached) $ac_c" 1>&6
7942 else
7943 ac_save_LIBS="$LIBS"
7944 LIBS="-lgen $LIBS"
7945 cat > conftest.$ac_ext <<EOF
7946 #line 7947 "configure"
7947 #include "confdefs.h"
7948 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7951 char getspnam();
7953 int main() {
7954 getspnam()
7955 ; return 0; }
7957 if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 rm -rf conftest*
7959 eval "ac_cv_lib_$ac_lib_var=yes"
7960 else
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7963 rm -rf conftest*
7964 eval "ac_cv_lib_$ac_lib_var=no"
7966 rm -f conftest*
7967 LIBS="$ac_save_LIBS"
7970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7971 echo "$ac_t""yes" 1>&6
7972 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7974 cat >> confdefs.h <<EOF
7975 #define $ac_tr_lib 1
7978 LIBS="-lgen $LIBS"
7980 else
7981 echo "$ac_t""no" 1>&6
7984 for ac_func in getspnam
7986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7987 echo "configure:7988: checking for $ac_func" >&5
7988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7989 echo $ac_n "(cached) $ac_c" 1>&6
7990 else
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 /* System header to define __stub macros and hopefully few prototypes,
7995 which can conflict with char $ac_func(); below. */
7996 #include <assert.h>
7997 /* Override any gcc2 internal prototype to avoid an error. */
7998 /* We use char because int might match the return type of a gcc2
7999 builtin and then its argument prototype would still apply. */
8000 char $ac_func();
8002 int main() {
8004 /* The GNU C library defines this for functions which it implements
8005 to always fail with ENOSYS. Some functions are actually named
8006 something starting with __ and the normal name is an alias. */
8007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8008 choke me
8009 #else
8010 $ac_func();
8011 #endif
8013 ; return 0; }
8015 if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8016 rm -rf conftest*
8017 eval "ac_cv_func_$ac_func=yes"
8018 else
8019 echo "configure: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8021 rm -rf conftest*
8022 eval "ac_cv_func_$ac_func=no"
8024 rm -f conftest*
8027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8030 cat >> confdefs.h <<EOF
8031 #define $ac_tr_func 1
8034 else
8035 echo "$ac_t""no" 1>&6
8037 done
8040 esac
8043 case "$LIBS" in
8044 *-lsecurity*) for ac_func in getspnam
8046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8047 echo "configure:8048: checking for $ac_func" >&5
8048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8050 else
8051 cat > conftest.$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8054 /* System header to define __stub macros and hopefully few prototypes,
8055 which can conflict with char $ac_func(); below. */
8056 #include <assert.h>
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060 char $ac_func();
8062 int main() {
8064 /* The GNU C library defines this for functions which it implements
8065 to always fail with ENOSYS. Some functions are actually named
8066 something starting with __ and the normal name is an alias. */
8067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8068 choke me
8069 #else
8070 $ac_func();
8071 #endif
8073 ; return 0; }
8075 if { (eval echo configure:8076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8076 rm -rf conftest*
8077 eval "ac_cv_func_$ac_func=yes"
8078 else
8079 echo "configure: failed program was:" >&5
8080 cat conftest.$ac_ext >&5
8081 rm -rf conftest*
8082 eval "ac_cv_func_$ac_func=no"
8084 rm -f conftest*
8087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8088 echo "$ac_t""yes" 1>&6
8089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8090 cat >> confdefs.h <<EOF
8091 #define $ac_tr_func 1
8094 else
8095 echo "$ac_t""no" 1>&6
8097 done
8099 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8100 echo "configure:8101: checking for getspnam in -lsecurity" >&5
8101 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8104 else
8105 ac_save_LIBS="$LIBS"
8106 LIBS="-lsecurity $LIBS"
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8113 char getspnam();
8115 int main() {
8116 getspnam()
8117 ; return 0; }
8119 if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8120 rm -rf conftest*
8121 eval "ac_cv_lib_$ac_lib_var=yes"
8122 else
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8125 rm -rf conftest*
8126 eval "ac_cv_lib_$ac_lib_var=no"
8128 rm -f conftest*
8129 LIBS="$ac_save_LIBS"
8132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8133 echo "$ac_t""yes" 1>&6
8134 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8136 cat >> confdefs.h <<EOF
8137 #define $ac_tr_lib 1
8140 LIBS="-lsecurity $LIBS"
8142 else
8143 echo "$ac_t""no" 1>&6
8146 for ac_func in getspnam
8148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8149 echo "configure:8150: checking for $ac_func" >&5
8150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8152 else
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* System header to define __stub macros and hopefully few prototypes,
8157 which can conflict with char $ac_func(); below. */
8158 #include <assert.h>
8159 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8162 char $ac_func();
8164 int main() {
8166 /* The GNU C library defines this for functions which it implements
8167 to always fail with ENOSYS. Some functions are actually named
8168 something starting with __ and the normal name is an alias. */
8169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8170 choke me
8171 #else
8172 $ac_func();
8173 #endif
8175 ; return 0; }
8177 if { (eval echo configure:8178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8178 rm -rf conftest*
8179 eval "ac_cv_func_$ac_func=yes"
8180 else
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8183 rm -rf conftest*
8184 eval "ac_cv_func_$ac_func=no"
8186 rm -f conftest*
8189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8190 echo "$ac_t""yes" 1>&6
8191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8192 cat >> confdefs.h <<EOF
8193 #define $ac_tr_func 1
8196 else
8197 echo "$ac_t""no" 1>&6
8199 done
8202 esac
8204 case "$LIBS" in
8205 *-lsec*) for ac_func in getspnam
8207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8208 echo "configure:8209: checking for $ac_func" >&5
8209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8211 else
8212 cat > conftest.$ac_ext <<EOF
8213 #line 8214 "configure"
8214 #include "confdefs.h"
8215 /* System header to define __stub macros and hopefully few prototypes,
8216 which can conflict with char $ac_func(); below. */
8217 #include <assert.h>
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8221 char $ac_func();
8223 int main() {
8225 /* The GNU C library defines this for functions which it implements
8226 to always fail with ENOSYS. Some functions are actually named
8227 something starting with __ and the normal name is an alias. */
8228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8229 choke me
8230 #else
8231 $ac_func();
8232 #endif
8234 ; return 0; }
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8237 rm -rf conftest*
8238 eval "ac_cv_func_$ac_func=yes"
8239 else
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8242 rm -rf conftest*
8243 eval "ac_cv_func_$ac_func=no"
8245 rm -f conftest*
8248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8249 echo "$ac_t""yes" 1>&6
8250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8251 cat >> confdefs.h <<EOF
8252 #define $ac_tr_func 1
8255 else
8256 echo "$ac_t""no" 1>&6
8258 done
8260 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8261 echo "configure:8262: checking for getspnam in -lsec" >&5
8262 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8265 else
8266 ac_save_LIBS="$LIBS"
8267 LIBS="-lsec $LIBS"
8268 cat > conftest.$ac_ext <<EOF
8269 #line 8270 "configure"
8270 #include "confdefs.h"
8271 /* Override any gcc2 internal prototype to avoid an error. */
8272 /* We use char because int might match the return type of a gcc2
8273 builtin and then its argument prototype would still apply. */
8274 char getspnam();
8276 int main() {
8277 getspnam()
8278 ; return 0; }
8280 if { (eval echo configure:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8281 rm -rf conftest*
8282 eval "ac_cv_lib_$ac_lib_var=yes"
8283 else
8284 echo "configure: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8286 rm -rf conftest*
8287 eval "ac_cv_lib_$ac_lib_var=no"
8289 rm -f conftest*
8290 LIBS="$ac_save_LIBS"
8293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8297 cat >> confdefs.h <<EOF
8298 #define $ac_tr_lib 1
8301 LIBS="-lsec $LIBS"
8303 else
8304 echo "$ac_t""no" 1>&6
8307 for ac_func in getspnam
8309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8310 echo "configure:8311: checking for $ac_func" >&5
8311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8313 else
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* System header to define __stub macros and hopefully few prototypes,
8318 which can conflict with char $ac_func(); below. */
8319 #include <assert.h>
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8323 char $ac_func();
8325 int main() {
8327 /* The GNU C library defines this for functions which it implements
8328 to always fail with ENOSYS. Some functions are actually named
8329 something starting with __ and the normal name is an alias. */
8330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8331 choke me
8332 #else
8333 $ac_func();
8334 #endif
8336 ; return 0; }
8338 if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8339 rm -rf conftest*
8340 eval "ac_cv_func_$ac_func=yes"
8341 else
8342 echo "configure: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8344 rm -rf conftest*
8345 eval "ac_cv_func_$ac_func=no"
8347 rm -f conftest*
8350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8353 cat >> confdefs.h <<EOF
8354 #define $ac_tr_func 1
8357 else
8358 echo "$ac_t""no" 1>&6
8360 done
8363 esac
8366 case "$LIBS" in
8367 *-lsecurity*) for ac_func in bigcrypt
8369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8370 echo "configure:8371: checking for $ac_func" >&5
8371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8373 else
8374 cat > conftest.$ac_ext <<EOF
8375 #line 8376 "configure"
8376 #include "confdefs.h"
8377 /* System header to define __stub macros and hopefully few prototypes,
8378 which can conflict with char $ac_func(); below. */
8379 #include <assert.h>
8380 /* Override any gcc2 internal prototype to avoid an error. */
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8383 char $ac_func();
8385 int main() {
8387 /* The GNU C library defines this for functions which it implements
8388 to always fail with ENOSYS. Some functions are actually named
8389 something starting with __ and the normal name is an alias. */
8390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8391 choke me
8392 #else
8393 $ac_func();
8394 #endif
8396 ; return 0; }
8398 if { (eval echo configure:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8399 rm -rf conftest*
8400 eval "ac_cv_func_$ac_func=yes"
8401 else
8402 echo "configure: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8404 rm -rf conftest*
8405 eval "ac_cv_func_$ac_func=no"
8407 rm -f conftest*
8410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8411 echo "$ac_t""yes" 1>&6
8412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8413 cat >> confdefs.h <<EOF
8414 #define $ac_tr_func 1
8417 else
8418 echo "$ac_t""no" 1>&6
8420 done
8422 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8423 echo "configure:8424: checking for bigcrypt in -lsecurity" >&5
8424 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8427 else
8428 ac_save_LIBS="$LIBS"
8429 LIBS="-lsecurity $LIBS"
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 /* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8436 char bigcrypt();
8438 int main() {
8439 bigcrypt()
8440 ; return 0; }
8442 if { (eval echo configure:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8443 rm -rf conftest*
8444 eval "ac_cv_lib_$ac_lib_var=yes"
8445 else
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8448 rm -rf conftest*
8449 eval "ac_cv_lib_$ac_lib_var=no"
8451 rm -f conftest*
8452 LIBS="$ac_save_LIBS"
8455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8459 cat >> confdefs.h <<EOF
8460 #define $ac_tr_lib 1
8463 LIBS="-lsecurity $LIBS"
8465 else
8466 echo "$ac_t""no" 1>&6
8469 for ac_func in bigcrypt
8471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8472 echo "configure:8473: checking for $ac_func" >&5
8473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8474 echo $ac_n "(cached) $ac_c" 1>&6
8475 else
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 /* System header to define __stub macros and hopefully few prototypes,
8480 which can conflict with char $ac_func(); below. */
8481 #include <assert.h>
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 /* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8485 char $ac_func();
8487 int main() {
8489 /* The GNU C library defines this for functions which it implements
8490 to always fail with ENOSYS. Some functions are actually named
8491 something starting with __ and the normal name is an alias. */
8492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8493 choke me
8494 #else
8495 $ac_func();
8496 #endif
8498 ; return 0; }
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8501 rm -rf conftest*
8502 eval "ac_cv_func_$ac_func=yes"
8503 else
8504 echo "configure: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 rm -rf conftest*
8507 eval "ac_cv_func_$ac_func=no"
8509 rm -f conftest*
8512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8513 echo "$ac_t""yes" 1>&6
8514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8515 cat >> confdefs.h <<EOF
8516 #define $ac_tr_func 1
8519 else
8520 echo "$ac_t""no" 1>&6
8522 done
8525 esac
8527 case "$LIBS" in
8528 *-lsec*) for ac_func in bigcrypt
8530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8531 echo "configure:8532: checking for $ac_func" >&5
8532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8534 else
8535 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8538 /* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char $ac_func(); below. */
8540 #include <assert.h>
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8544 char $ac_func();
8546 int main() {
8548 /* The GNU C library defines this for functions which it implements
8549 to always fail with ENOSYS. Some functions are actually named
8550 something starting with __ and the normal name is an alias. */
8551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8552 choke me
8553 #else
8554 $ac_func();
8555 #endif
8557 ; return 0; }
8559 if { (eval echo configure:8560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8560 rm -rf conftest*
8561 eval "ac_cv_func_$ac_func=yes"
8562 else
8563 echo "configure: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8565 rm -rf conftest*
8566 eval "ac_cv_func_$ac_func=no"
8568 rm -f conftest*
8571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8572 echo "$ac_t""yes" 1>&6
8573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8574 cat >> confdefs.h <<EOF
8575 #define $ac_tr_func 1
8578 else
8579 echo "$ac_t""no" 1>&6
8581 done
8583 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8584 echo "configure:8585: checking for bigcrypt in -lsec" >&5
8585 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8588 else
8589 ac_save_LIBS="$LIBS"
8590 LIBS="-lsec $LIBS"
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 /* Override any gcc2 internal prototype to avoid an error. */
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8597 char bigcrypt();
8599 int main() {
8600 bigcrypt()
8601 ; return 0; }
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8604 rm -rf conftest*
8605 eval "ac_cv_lib_$ac_lib_var=yes"
8606 else
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8609 rm -rf conftest*
8610 eval "ac_cv_lib_$ac_lib_var=no"
8612 rm -f conftest*
8613 LIBS="$ac_save_LIBS"
8616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8618 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8619 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8620 cat >> confdefs.h <<EOF
8621 #define $ac_tr_lib 1
8624 LIBS="-lsec $LIBS"
8626 else
8627 echo "$ac_t""no" 1>&6
8630 for ac_func in bigcrypt
8632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8633 echo "configure:8634: checking for $ac_func" >&5
8634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8635 echo $ac_n "(cached) $ac_c" 1>&6
8636 else
8637 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 /* System header to define __stub macros and hopefully few prototypes,
8641 which can conflict with char $ac_func(); below. */
8642 #include <assert.h>
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8646 char $ac_func();
8648 int main() {
8650 /* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8654 choke me
8655 #else
8656 $ac_func();
8657 #endif
8659 ; return 0; }
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8662 rm -rf conftest*
8663 eval "ac_cv_func_$ac_func=yes"
8664 else
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8667 rm -rf conftest*
8668 eval "ac_cv_func_$ac_func=no"
8670 rm -f conftest*
8673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8676 cat >> confdefs.h <<EOF
8677 #define $ac_tr_func 1
8680 else
8681 echo "$ac_t""no" 1>&6
8683 done
8686 esac
8689 case "$LIBS" in
8690 *-lsecurity*) for ac_func in getprpwnam
8692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8693 echo "configure:8694: checking for $ac_func" >&5
8694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8696 else
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* System header to define __stub macros and hopefully few prototypes,
8701 which can conflict with char $ac_func(); below. */
8702 #include <assert.h>
8703 /* Override any gcc2 internal prototype to avoid an error. */
8704 /* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
8706 char $ac_func();
8708 int main() {
8710 /* The GNU C library defines this for functions which it implements
8711 to always fail with ENOSYS. Some functions are actually named
8712 something starting with __ and the normal name is an alias. */
8713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8714 choke me
8715 #else
8716 $ac_func();
8717 #endif
8719 ; return 0; }
8721 if { (eval echo configure:8722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8722 rm -rf conftest*
8723 eval "ac_cv_func_$ac_func=yes"
8724 else
8725 echo "configure: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 rm -rf conftest*
8728 eval "ac_cv_func_$ac_func=no"
8730 rm -f conftest*
8733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8734 echo "$ac_t""yes" 1>&6
8735 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8736 cat >> confdefs.h <<EOF
8737 #define $ac_tr_func 1
8740 else
8741 echo "$ac_t""no" 1>&6
8743 done
8745 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8746 echo "configure:8747: checking for getprpwnam in -lsecurity" >&5
8747 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8750 else
8751 ac_save_LIBS="$LIBS"
8752 LIBS="-lsecurity $LIBS"
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 /* Override any gcc2 internal prototype to avoid an error. */
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8759 char getprpwnam();
8761 int main() {
8762 getprpwnam()
8763 ; return 0; }
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8766 rm -rf conftest*
8767 eval "ac_cv_lib_$ac_lib_var=yes"
8768 else
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 rm -rf conftest*
8772 eval "ac_cv_lib_$ac_lib_var=no"
8774 rm -f conftest*
8775 LIBS="$ac_save_LIBS"
8778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8779 echo "$ac_t""yes" 1>&6
8780 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8781 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8782 cat >> confdefs.h <<EOF
8783 #define $ac_tr_lib 1
8786 LIBS="-lsecurity $LIBS"
8788 else
8789 echo "$ac_t""no" 1>&6
8792 for ac_func in getprpwnam
8794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8795 echo "configure:8796: checking for $ac_func" >&5
8796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8797 echo $ac_n "(cached) $ac_c" 1>&6
8798 else
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char $ac_func(); below. */
8804 #include <assert.h>
8805 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808 char $ac_func();
8810 int main() {
8812 /* The GNU C library defines this for functions which it implements
8813 to always fail with ENOSYS. Some functions are actually named
8814 something starting with __ and the normal name is an alias. */
8815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8816 choke me
8817 #else
8818 $ac_func();
8819 #endif
8821 ; return 0; }
8823 if { (eval echo configure:8824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8824 rm -rf conftest*
8825 eval "ac_cv_func_$ac_func=yes"
8826 else
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8829 rm -rf conftest*
8830 eval "ac_cv_func_$ac_func=no"
8832 rm -f conftest*
8835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8836 echo "$ac_t""yes" 1>&6
8837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8838 cat >> confdefs.h <<EOF
8839 #define $ac_tr_func 1
8842 else
8843 echo "$ac_t""no" 1>&6
8845 done
8848 esac
8850 case "$LIBS" in
8851 *-lsec*) for ac_func in getprpwnam
8853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8854 echo "configure:8855: checking for $ac_func" >&5
8855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8857 else
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char $ac_func(); below. */
8863 #include <assert.h>
8864 /* Override any gcc2 internal prototype to avoid an error. */
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8867 char $ac_func();
8869 int main() {
8871 /* The GNU C library defines this for functions which it implements
8872 to always fail with ENOSYS. Some functions are actually named
8873 something starting with __ and the normal name is an alias. */
8874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8875 choke me
8876 #else
8877 $ac_func();
8878 #endif
8880 ; return 0; }
8882 if { (eval echo configure:8883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8883 rm -rf conftest*
8884 eval "ac_cv_func_$ac_func=yes"
8885 else
8886 echo "configure: failed program was:" >&5
8887 cat conftest.$ac_ext >&5
8888 rm -rf conftest*
8889 eval "ac_cv_func_$ac_func=no"
8891 rm -f conftest*
8894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8895 echo "$ac_t""yes" 1>&6
8896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8897 cat >> confdefs.h <<EOF
8898 #define $ac_tr_func 1
8901 else
8902 echo "$ac_t""no" 1>&6
8904 done
8906 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8907 echo "configure:8908: checking for getprpwnam in -lsec" >&5
8908 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8911 else
8912 ac_save_LIBS="$LIBS"
8913 LIBS="-lsec $LIBS"
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 /* Override any gcc2 internal prototype to avoid an error. */
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8920 char getprpwnam();
8922 int main() {
8923 getprpwnam()
8924 ; return 0; }
8926 if { (eval echo configure:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8927 rm -rf conftest*
8928 eval "ac_cv_lib_$ac_lib_var=yes"
8929 else
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8932 rm -rf conftest*
8933 eval "ac_cv_lib_$ac_lib_var=no"
8935 rm -f conftest*
8936 LIBS="$ac_save_LIBS"
8939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8940 echo "$ac_t""yes" 1>&6
8941 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8943 cat >> confdefs.h <<EOF
8944 #define $ac_tr_lib 1
8947 LIBS="-lsec $LIBS"
8949 else
8950 echo "$ac_t""no" 1>&6
8953 for ac_func in getprpwnam
8955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8956 echo "configure:8957: checking for $ac_func" >&5
8957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8959 else
8960 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 /* System header to define __stub macros and hopefully few prototypes,
8964 which can conflict with char $ac_func(); below. */
8965 #include <assert.h>
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8969 char $ac_func();
8971 int main() {
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8977 choke me
8978 #else
8979 $ac_func();
8980 #endif
8982 ; return 0; }
8984 if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8985 rm -rf conftest*
8986 eval "ac_cv_func_$ac_func=yes"
8987 else
8988 echo "configure: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8990 rm -rf conftest*
8991 eval "ac_cv_func_$ac_func=no"
8993 rm -f conftest*
8996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8997 echo "$ac_t""yes" 1>&6
8998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8999 cat >> confdefs.h <<EOF
9000 #define $ac_tr_func 1
9003 else
9004 echo "$ac_t""no" 1>&6
9006 done
9009 esac
9012 # this bit needs to be modified for each OS that is suported by
9013 # smbwrapper. You need to specify how to created a shared library and
9014 # how to compile C code to produce PIC object files
9016 # these are the defaults, good for lots of systems
9017 HOST_OS="$host_os"
9018 LDSHFLAGS="-shared"
9019 SONAMEFLAG="#"
9020 SHLD="\${CC}"
9021 PICFLAG=""
9022 PICSUFFIX="po"
9023 POBAD_CC="#"
9024 SHLIBEXT="so"
9025 # Assume non-shared by default and override below
9026 BLDSHARED="false"
9027 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9028 echo "configure:9029: checking ability to build shared libraries" >&5
9030 # and these are for particular systems
9031 case "$host_os" in
9032 *linux*) cat >> confdefs.h <<\EOF
9033 #define LINUX 1
9036 BLDSHARED="true"
9037 LDSHFLAGS="-shared"
9038 DYNEXP="-Wl,--export-dynamic"
9039 PICFLAG="-fPIC"
9040 SONAMEFLAG="-Wl,-soname="
9041 cat >> confdefs.h <<\EOF
9042 #define STAT_ST_BLOCKSIZE 512
9046 *solaris*) cat >> confdefs.h <<\EOF
9047 #define SUNOS5 1
9050 BLDSHARED="true"
9051 LDSHFLAGS="-G"
9052 SONAMEFLAG="-h "
9053 if test "${GCC}" = "yes"; then
9054 PICFLAG="-fPIC"
9055 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9056 DYNEXP="-Wl,-E"
9058 else
9059 PICFLAG="-KPIC"
9060 ## ${CFLAGS} added for building 64-bit shared
9061 ## libs using Sun's Compiler
9062 LDSHFLAGS="-G \${CFLAGS}"
9063 POBAD_CC=""
9064 PICSUFFIX="po.o"
9066 cat >> confdefs.h <<\EOF
9067 #define STAT_ST_BLOCKSIZE 512
9071 *sunos*) cat >> confdefs.h <<\EOF
9072 #define SUNOS4 1
9075 BLDSHARED="true"
9076 LDSHFLAGS="-G"
9077 SONAMEFLAG="-Wl,-h,"
9078 PICFLAG="-KPIC" # Is this correct for SunOS
9079 cat >> confdefs.h <<\EOF
9080 #define STAT_ST_BLOCKSIZE 512
9084 *freebsd*) BLDSHARED="true"
9085 LDSHFLAGS="-shared"
9086 DYNEXP="-Wl,--export-dynamic"
9087 SONAMEFLAG="-Wl,-soname,"
9088 PICFLAG="-fPIC -DPIC"
9089 cat >> confdefs.h <<\EOF
9090 #define STAT_ST_BLOCKSIZE 512
9094 *openbsd*) BLDSHARED="true"
9095 LDSHFLAGS="-shared"
9096 DYNEXP="-Wl,-Bdynamic"
9097 SONAMEFLAG="-Wl,-soname,"
9098 PICFLAG="-fPIC"
9099 cat >> confdefs.h <<\EOF
9100 #define STAT_ST_BLOCKSIZE 512
9104 *irix*) cat >> confdefs.h <<\EOF
9105 #define IRIX 1
9108 case "$host_os" in
9109 *irix6*) cat >> confdefs.h <<\EOF
9110 #define IRIX6 1
9114 esac
9115 ATTEMPT_WRAP32_BUILD=yes
9116 BLDSHARED="true"
9117 LDSHFLAGS="-set_version sgi1.0 -shared"
9118 SONAMEFLAG="-soname "
9119 SHLD="\${LD}"
9120 if test "${GCC}" = "yes"; then
9121 PICFLAG="-fPIC"
9122 else
9123 PICFLAG="-KPIC"
9125 cat >> confdefs.h <<\EOF
9126 #define STAT_ST_BLOCKSIZE 512
9130 *aix*) cat >> confdefs.h <<\EOF
9131 #define AIX 1
9134 BLDSHARED="true"
9135 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
9136 DYNEXP="-Wl,-brtl,-bexpall"
9137 PICFLAG="-O2"
9138 if test "${GCC}" != "yes"; then
9139 ## for funky AIX compiler using strncpy()
9140 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9143 cat >> confdefs.h <<\EOF
9144 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9148 *hpux*) cat >> confdefs.h <<\EOF
9149 #define HPUX 1
9152 SHLIBEXT="sl"
9153 # Use special PIC flags for the native HP-UX compiler.
9154 if test $ac_cv_prog_cc_Ae = yes; then
9155 BLDSHARED="true"
9156 SHLD="/usr/bin/ld"
9157 LDSHFLAGS="-B symbolic -b -z"
9158 SONAMEFLAG="+h "
9159 PICFLAG="+z"
9161 DYNEXP="-Wl,-E"
9162 cat >> confdefs.h <<\EOF
9163 #define STAT_ST_BLOCKSIZE 8192
9167 *qnx*) cat >> confdefs.h <<\EOF
9168 #define QNX 1
9171 cat >> confdefs.h <<\EOF
9172 #define STAT_ST_BLOCKSIZE 512
9176 *osf*) cat >> confdefs.h <<\EOF
9177 #define OSF1 1
9180 BLDSHARED="true"
9181 LDSHFLAGS="-shared"
9182 SONAMEFLAG="-Wl,-soname,"
9183 PICFLAG="-fPIC"
9184 cat >> confdefs.h <<\EOF
9185 #define STAT_ST_BLOCKSIZE 512
9189 *sco*) cat >> confdefs.h <<\EOF
9190 #define SCO 1
9193 cat >> confdefs.h <<\EOF
9194 #define STAT_ST_BLOCKSIZE 512
9198 *unixware*) cat >> confdefs.h <<\EOF
9199 #define UNIXWARE 1
9202 BLDSHARED="true"
9203 LDSHFLAGS="-shared"
9204 SONAMEFLAG="-Wl,-soname,"
9205 PICFLAG="-KPIC"
9206 cat >> confdefs.h <<\EOF
9207 #define STAT_ST_BLOCKSIZE 512
9211 *next2*) cat >> confdefs.h <<\EOF
9212 #define NEXT2 1
9215 cat >> confdefs.h <<\EOF
9216 #define STAT_ST_BLOCKSIZE 512
9220 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9221 set dummy groff; ac_word=$2
9222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9223 echo "configure:9224: checking for $ac_word" >&5
9224 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
9226 else
9227 if test -n "$ROFF"; then
9228 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9229 else
9230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9231 ac_dummy="$PATH"
9232 for ac_dir in $ac_dummy; do
9233 test -z "$ac_dir" && ac_dir=.
9234 if test -f $ac_dir/$ac_word; then
9235 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9236 break
9238 done
9239 IFS="$ac_save_ifs"
9242 ROFF="$ac_cv_prog_ROFF"
9243 if test -n "$ROFF"; then
9244 echo "$ac_t""$ROFF" 1>&6
9245 else
9246 echo "$ac_t""no" 1>&6
9249 cat >> confdefs.h <<\EOF
9250 #define STAT_ST_BLOCKSIZE 512
9254 *sysv4*) cat >> confdefs.h <<\EOF
9255 #define SYSV 1
9258 case "$host" in
9259 *-univel-*) if test "$GCC" != yes ; then
9260 cat >> confdefs.h <<\EOF
9261 #define HAVE_MEMSET 1
9265 LDSHFLAGS="-G"
9266 DYNEXP="-Bexport"
9268 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9269 #define RELIANTUNIX 1
9272 esac
9273 cat >> confdefs.h <<\EOF
9274 #define STAT_ST_BLOCKSIZE 512
9279 *sysv5*) cat >> confdefs.h <<\EOF
9280 #define SYSV 1
9283 if test "$GCC" != yes ; then
9284 cat >> confdefs.h <<\EOF
9285 #define HAVE_MEMSET 1
9289 LDSHFLAGS="-G"
9290 cat >> confdefs.h <<\EOF
9291 #define STAT_ST_BLOCKSIZE 512
9296 cat >> confdefs.h <<\EOF
9297 #define STAT_ST_BLOCKSIZE 512
9301 esac
9303 echo "$ac_t""$BLDSHARED" 1>&6
9304 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9305 echo "configure:9306: checking linker flags for shared libraries" >&5
9306 echo "$ac_t""$LDSHFLAGS" 1>&6
9307 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9308 echo "configure:9309: checking compiler flags for position-independent code" >&5
9309 echo "$ac_t""$PICFLAGS" 1>&6
9311 #######################################################
9312 # test whether building a shared library actually works
9313 if test $BLDSHARED = true; then
9314 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9315 echo "configure:9316: checking whether building shared libraries actually works" >&5
9316 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9317 echo $ac_n "(cached) $ac_c" 1>&6
9318 else
9320 ac_cv_shlib_works=no
9321 # try building a trivial shared library
9322 if test "$PICSUFFIX" = "po"; then
9323 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9324 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9325 ac_cv_shlib_works=yes
9326 else
9327 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
9328 mv shlib.$PICSUFFIX shlib.po &&
9329 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9330 ac_cv_shlib_works=yes
9332 rm -f shlib.so shlib.po
9336 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9337 if test $ac_cv_shlib_works = no; then
9338 BLDSHARED=false
9343 # this updates our target list if we can build shared libs
9344 if test $BLDSHARED = true; then
9345 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9346 else
9347 LIBSMBCLIENT_SHARED=
9350 ################
9352 echo $ac_n "checking for long long""... $ac_c" 1>&6
9353 echo "configure:9354: checking for long long" >&5
9354 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9355 echo $ac_n "(cached) $ac_c" 1>&6
9356 else
9358 if test "$cross_compiling" = yes; then
9359 samba_cv_have_longlong=cross
9360 else
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 #include <stdio.h>
9365 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9367 if { (eval echo configure:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9368 then
9369 samba_cv_have_longlong=yes
9370 else
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9373 rm -fr conftest*
9374 samba_cv_have_longlong=no
9376 rm -fr conftest*
9381 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9382 if test x"$samba_cv_have_longlong" = x"yes"; then
9383 cat >> confdefs.h <<\EOF
9384 #define HAVE_LONGLONG 1
9390 # Check if the compiler supports the LL prefix on long long integers.
9391 # AIX needs this.
9393 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9394 echo "configure:9395: checking for LL suffix on long long integers" >&5
9395 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397 else
9399 cat > conftest.$ac_ext <<EOF
9400 #line 9401 "configure"
9401 #include "confdefs.h"
9402 #include <stdio.h>
9403 int main() {
9404 long long i = 0x8000000000LL
9405 ; return 0; }
9407 if { (eval echo configure:9408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9408 rm -rf conftest*
9409 samba_cv_compiler_supports_ll=yes
9410 else
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 rm -rf conftest*
9414 samba_cv_compiler_supports_ll=no
9416 rm -f conftest*
9419 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9420 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9421 cat >> confdefs.h <<\EOF
9422 #define COMPILER_SUPPORTS_LL 1
9428 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9429 echo "configure:9430: checking for 64 bit off_t" >&5
9430 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
9432 else
9434 if test "$cross_compiling" = yes; then
9435 samba_cv_SIZEOF_OFF_T=cross
9436 else
9437 cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 #include <stdio.h>
9441 #include <sys/stat.h>
9442 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9444 if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9445 then
9446 samba_cv_SIZEOF_OFF_T=yes
9447 else
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9450 rm -fr conftest*
9451 samba_cv_SIZEOF_OFF_T=no
9453 rm -fr conftest*
9458 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9459 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9460 cat >> confdefs.h <<\EOF
9461 #define SIZEOF_OFF_T 8
9466 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9467 echo "configure:9468: checking for off64_t" >&5
9468 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9472 if test "$cross_compiling" = yes; then
9473 samba_cv_HAVE_OFF64_T=cross
9474 else
9475 cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9479 #if defined(HAVE_UNISTD_H)
9480 #include <unistd.h>
9481 #endif
9482 #include <stdio.h>
9483 #include <sys/stat.h>
9484 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9486 if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9487 then
9488 samba_cv_HAVE_OFF64_T=yes
9489 else
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 rm -fr conftest*
9493 samba_cv_HAVE_OFF64_T=no
9495 rm -fr conftest*
9500 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9501 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9502 cat >> confdefs.h <<\EOF
9503 #define HAVE_OFF64_T 1
9508 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9509 echo "configure:9510: checking for 64 bit ino_t" >&5
9510 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9512 else
9514 if test "$cross_compiling" = yes; then
9515 samba_cv_SIZEOF_INO_T=cross
9516 else
9517 cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520 #include <stdio.h>
9521 #include <sys/stat.h>
9522 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9524 if { (eval echo configure:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9525 then
9526 samba_cv_SIZEOF_INO_T=yes
9527 else
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 rm -fr conftest*
9531 samba_cv_SIZEOF_INO_T=no
9533 rm -fr conftest*
9538 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9539 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9540 cat >> confdefs.h <<\EOF
9541 #define SIZEOF_INO_T 8
9546 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9547 echo "configure:9548: checking for ino64_t" >&5
9548 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9550 else
9552 if test "$cross_compiling" = yes; then
9553 samba_cv_HAVE_INO64_T=cross
9554 else
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9559 #if defined(HAVE_UNISTD_H)
9560 #include <unistd.h>
9561 #endif
9562 #include <stdio.h>
9563 #include <sys/stat.h>
9564 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9566 if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9567 then
9568 samba_cv_HAVE_INO64_T=yes
9569 else
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 rm -fr conftest*
9573 samba_cv_HAVE_INO64_T=no
9575 rm -fr conftest*
9580 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9581 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9582 cat >> confdefs.h <<\EOF
9583 #define HAVE_INO64_T 1
9588 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9589 echo "configure:9590: checking for dev64_t" >&5
9590 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9592 else
9594 if test "$cross_compiling" = yes; then
9595 samba_cv_HAVE_DEV64_T=cross
9596 else
9597 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9601 #if defined(HAVE_UNISTD_H)
9602 #include <unistd.h>
9603 #endif
9604 #include <stdio.h>
9605 #include <sys/stat.h>
9606 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9608 if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9609 then
9610 samba_cv_HAVE_DEV64_T=yes
9611 else
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 rm -fr conftest*
9615 samba_cv_HAVE_DEV64_T=no
9617 rm -fr conftest*
9622 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9623 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9624 cat >> confdefs.h <<\EOF
9625 #define HAVE_DEV64_T 1
9630 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9631 echo "configure:9632: checking for struct dirent64" >&5
9632 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9634 else
9636 cat > conftest.$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9640 #if defined(HAVE_UNISTD_H)
9641 #include <unistd.h>
9642 #endif
9643 #include <sys/types.h>
9644 #include <dirent.h>
9645 int main() {
9646 struct dirent64 de;
9647 ; return 0; }
9649 if { (eval echo configure:9650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9650 rm -rf conftest*
9651 samba_cv_HAVE_STRUCT_DIRENT64=yes
9652 else
9653 echo "configure: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9655 rm -rf conftest*
9656 samba_cv_HAVE_STRUCT_DIRENT64=no
9658 rm -f conftest*
9661 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9662 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9663 cat >> confdefs.h <<\EOF
9664 #define HAVE_STRUCT_DIRENT64 1
9669 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9670 echo "configure:9671: checking for major macro" >&5
9671 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9673 else
9675 if test "$cross_compiling" = yes; then
9676 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9677 else
9678 cat > conftest.$ac_ext <<EOF
9679 #line 9680 "configure"
9680 #include "confdefs.h"
9682 #if defined(HAVE_UNISTD_H)
9683 #include <unistd.h>
9684 #endif
9685 #include <sys/types.h>
9686 main() { dev_t dev; int i = major(dev); return 0; }
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9689 then
9690 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9691 else
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 rm -fr conftest*
9695 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9697 rm -fr conftest*
9702 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9703 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9704 cat >> confdefs.h <<\EOF
9705 #define HAVE_DEVICE_MAJOR_FN 1
9710 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9711 echo "configure:9712: checking for minor macro" >&5
9712 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9713 echo $ac_n "(cached) $ac_c" 1>&6
9714 else
9716 if test "$cross_compiling" = yes; then
9717 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9718 else
9719 cat > conftest.$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9723 #if defined(HAVE_UNISTD_H)
9724 #include <unistd.h>
9725 #endif
9726 #include <sys/types.h>
9727 main() { dev_t dev; int i = minor(dev); return 0; }
9729 if { (eval echo configure:9730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9730 then
9731 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9732 else
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9735 rm -fr conftest*
9736 samba_cv_HAVE_DEVICE_MINOR_FN=no
9738 rm -fr conftest*
9743 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9744 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9745 cat >> confdefs.h <<\EOF
9746 #define HAVE_DEVICE_MINOR_FN 1
9751 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9752 echo "configure:9753: checking for unsigned char" >&5
9753 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9755 else
9757 if test "$cross_compiling" = yes; then
9758 samba_cv_HAVE_UNSIGNED_CHAR=cross
9759 else
9760 cat > conftest.$ac_ext <<EOF
9761 #line 9762 "configure"
9762 #include "confdefs.h"
9763 #include <stdio.h>
9764 main() { char c; c=250; exit((c > 0)?0:1); }
9766 if { (eval echo configure:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9767 then
9768 samba_cv_HAVE_UNSIGNED_CHAR=yes
9769 else
9770 echo "configure: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9772 rm -fr conftest*
9773 samba_cv_HAVE_UNSIGNED_CHAR=no
9775 rm -fr conftest*
9780 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9781 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9782 cat >> confdefs.h <<\EOF
9783 #define HAVE_UNSIGNED_CHAR 1
9788 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9789 echo "configure:9790: checking for sin_len in sock" >&5
9790 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9792 else
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <sys/types.h>
9798 #include <sys/socket.h>
9799 #include <netinet/in.h>
9800 int main() {
9801 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9802 ; return 0; }
9804 if { (eval echo configure:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9805 rm -rf conftest*
9806 samba_cv_HAVE_SOCK_SIN_LEN=yes
9807 else
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 rm -rf conftest*
9811 samba_cv_HAVE_SOCK_SIN_LEN=no
9813 rm -f conftest*
9816 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9817 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9818 cat >> confdefs.h <<\EOF
9819 #define HAVE_SOCK_SIN_LEN 1
9824 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9825 echo "configure:9826: checking whether seekdir returns void" >&5
9826 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9828 else
9830 cat > conftest.$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9833 #include <sys/types.h>
9834 #include <dirent.h>
9835 void seekdir(DIR *d, long loc) { return; }
9836 int main() {
9837 return 0;
9838 ; return 0; }
9840 if { (eval echo configure:9841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9841 rm -rf conftest*
9842 samba_cv_SEEKDIR_RETURNS_VOID=yes
9843 else
9844 echo "configure: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9846 rm -rf conftest*
9847 samba_cv_SEEKDIR_RETURNS_VOID=no
9849 rm -f conftest*
9852 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9853 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9854 cat >> confdefs.h <<\EOF
9855 #define SEEKDIR_RETURNS_VOID 1
9860 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9861 echo "configure:9862: checking for __FUNCTION__ macro" >&5
9862 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9866 cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9869 #include <stdio.h>
9870 int main() {
9871 printf("%s\n", __FUNCTION__);
9872 ; return 0; }
9874 if { (eval echo configure:9875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9875 rm -rf conftest*
9876 samba_cv_HAVE_FUNCTION_MACRO=yes
9877 else
9878 echo "configure: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9880 rm -rf conftest*
9881 samba_cv_HAVE_FUNCTION_MACRO=no
9883 rm -f conftest*
9886 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9887 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9888 cat >> confdefs.h <<\EOF
9889 #define HAVE_FUNCTION_MACRO 1
9894 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9895 echo "configure:9896: checking if gettimeofday takes tz argument" >&5
9896 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9897 echo $ac_n "(cached) $ac_c" 1>&6
9898 else
9900 if test "$cross_compiling" = yes; then
9901 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9902 else
9903 cat > conftest.$ac_ext <<EOF
9904 #line 9905 "configure"
9905 #include "confdefs.h"
9907 #include <sys/time.h>
9908 #include <unistd.h>
9909 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9911 if { (eval echo configure:9912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9912 then
9913 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9914 else
9915 echo "configure: failed program was:" >&5
9916 cat conftest.$ac_ext >&5
9917 rm -fr conftest*
9918 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9920 rm -fr conftest*
9925 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9926 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9927 cat >> confdefs.h <<\EOF
9928 #define HAVE_GETTIMEOFDAY_TZ 1
9933 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9934 echo "configure:9935: checking for __va_copy" >&5
9935 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9937 else
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 #include <stdarg.h>
9943 va_list ap1,ap2;
9944 int main() {
9945 __va_copy(ap1,ap2);
9946 ; return 0; }
9948 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9949 rm -rf conftest*
9950 samba_cv_HAVE_VA_COPY=yes
9951 else
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9954 rm -rf conftest*
9955 samba_cv_HAVE_VA_COPY=no
9957 rm -f conftest*
9960 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9961 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9962 cat >> confdefs.h <<\EOF
9963 #define HAVE_VA_COPY 1
9968 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9969 echo "configure:9970: checking for C99 vsnprintf" >&5
9970 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9972 else
9974 if test "$cross_compiling" = yes; then
9975 samba_cv_HAVE_C99_VSNPRINTF=cross
9976 else
9977 cat > conftest.$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9981 #include <sys/types.h>
9982 #include <stdarg.h>
9983 void foo(const char *format, ...) {
9984 va_list ap;
9985 int len;
9986 char buf[5];
9988 va_start(ap, format);
9989 len = vsnprintf(buf, 0, format, ap);
9990 va_end(ap);
9991 if (len != 5) exit(1);
9993 va_start(ap, format);
9994 len = vsnprintf(0, 0, format, ap);
9995 va_end(ap);
9996 if (len != 5) exit(1);
9998 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10000 exit(0);
10002 main() { foo("hello"); }
10005 if { (eval echo configure:10006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10006 then
10007 samba_cv_HAVE_C99_VSNPRINTF=yes
10008 else
10009 echo "configure: failed program was:" >&5
10010 cat conftest.$ac_ext >&5
10011 rm -fr conftest*
10012 samba_cv_HAVE_C99_VSNPRINTF=no
10014 rm -fr conftest*
10019 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10020 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
10021 cat >> confdefs.h <<\EOF
10022 #define HAVE_C99_VSNPRINTF 1
10027 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10028 echo "configure:10029: checking for broken readdir" >&5
10029 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10030 echo $ac_n "(cached) $ac_c" 1>&6
10031 else
10033 if test "$cross_compiling" = yes; then
10034 samba_cv_HAVE_BROKEN_READDIR=cross
10035 else
10036 cat > conftest.$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 #include <sys/types.h>
10040 #include <dirent.h>
10041 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10042 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10043 di->d_name[0] == 0) exit(0); exit(1);}
10045 if { (eval echo configure:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10046 then
10047 samba_cv_HAVE_BROKEN_READDIR=yes
10048 else
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10051 rm -fr conftest*
10052 samba_cv_HAVE_BROKEN_READDIR=no
10054 rm -fr conftest*
10059 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10060 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
10061 cat >> confdefs.h <<\EOF
10062 #define HAVE_BROKEN_READDIR 1
10067 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10068 echo "configure:10069: checking for utimbuf" >&5
10069 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10071 else
10073 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 #include <sys/types.h>
10077 #include <utime.h>
10078 int main() {
10079 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10080 ; return 0; }
10082 if { (eval echo configure:10083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10083 rm -rf conftest*
10084 samba_cv_HAVE_UTIMBUF=yes
10085 else
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 rm -rf conftest*
10089 samba_cv_HAVE_UTIMBUF=no
10091 rm -f conftest*
10094 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10095 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
10096 cat >> confdefs.h <<\EOF
10097 #define HAVE_UTIMBUF 1
10103 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
10105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10106 echo "configure:10107: checking for $ac_func" >&5
10107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10109 else
10110 cat > conftest.$ac_ext <<EOF
10111 #line 10112 "configure"
10112 #include "confdefs.h"
10113 /* System header to define __stub macros and hopefully few prototypes,
10114 which can conflict with char $ac_func(); below. */
10115 #include <assert.h>
10116 /* Override any gcc2 internal prototype to avoid an error. */
10117 /* We use char because int might match the return type of a gcc2
10118 builtin and then its argument prototype would still apply. */
10119 char $ac_func();
10121 int main() {
10123 /* The GNU C library defines this for functions which it implements
10124 to always fail with ENOSYS. Some functions are actually named
10125 something starting with __ and the normal name is an alias. */
10126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10127 choke me
10128 #else
10129 $ac_func();
10130 #endif
10132 ; return 0; }
10134 if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10135 rm -rf conftest*
10136 eval "ac_cv_func_$ac_func=yes"
10137 else
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -rf conftest*
10141 eval "ac_cv_func_$ac_func=no"
10143 rm -f conftest*
10146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10147 echo "$ac_t""yes" 1>&6
10148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10149 cat >> confdefs.h <<EOF
10150 #define $ac_tr_func 1
10153 else
10154 echo "$ac_t""no" 1>&6
10156 done
10159 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10160 echo "configure:10161: checking for ut_name in utmp" >&5
10161 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10163 else
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 #include <sys/types.h>
10169 #include <utmp.h>
10170 int main() {
10171 struct utmp ut; ut.ut_name[0] = 'a';
10172 ; return 0; }
10174 if { (eval echo configure:10175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10175 rm -rf conftest*
10176 samba_cv_HAVE_UT_UT_NAME=yes
10177 else
10178 echo "configure: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 rm -rf conftest*
10181 samba_cv_HAVE_UT_UT_NAME=no
10183 rm -f conftest*
10186 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10187 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10188 cat >> confdefs.h <<\EOF
10189 #define HAVE_UT_UT_NAME 1
10194 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10195 echo "configure:10196: checking for ut_user in utmp" >&5
10196 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10198 else
10200 cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <sys/types.h>
10204 #include <utmp.h>
10205 int main() {
10206 struct utmp ut; ut.ut_user[0] = 'a';
10207 ; return 0; }
10209 if { (eval echo configure:10210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10210 rm -rf conftest*
10211 samba_cv_HAVE_UT_UT_USER=yes
10212 else
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 rm -rf conftest*
10216 samba_cv_HAVE_UT_UT_USER=no
10218 rm -f conftest*
10221 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10222 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10223 cat >> confdefs.h <<\EOF
10224 #define HAVE_UT_UT_USER 1
10229 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10230 echo "configure:10231: checking for ut_id in utmp" >&5
10231 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10233 else
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 #include <sys/types.h>
10239 #include <utmp.h>
10240 int main() {
10241 struct utmp ut; ut.ut_id[0] = 'a';
10242 ; return 0; }
10244 if { (eval echo configure:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10245 rm -rf conftest*
10246 samba_cv_HAVE_UT_UT_ID=yes
10247 else
10248 echo "configure: failed program was:" >&5
10249 cat conftest.$ac_ext >&5
10250 rm -rf conftest*
10251 samba_cv_HAVE_UT_UT_ID=no
10253 rm -f conftest*
10256 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10257 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10258 cat >> confdefs.h <<\EOF
10259 #define HAVE_UT_UT_ID 1
10264 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10265 echo "configure:10266: checking for ut_host in utmp" >&5
10266 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10268 else
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 #include <sys/types.h>
10274 #include <utmp.h>
10275 int main() {
10276 struct utmp ut; ut.ut_host[0] = 'a';
10277 ; return 0; }
10279 if { (eval echo configure:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10280 rm -rf conftest*
10281 samba_cv_HAVE_UT_UT_HOST=yes
10282 else
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10285 rm -rf conftest*
10286 samba_cv_HAVE_UT_UT_HOST=no
10288 rm -f conftest*
10291 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10292 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10293 cat >> confdefs.h <<\EOF
10294 #define HAVE_UT_UT_HOST 1
10299 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10300 echo "configure:10301: checking for ut_time in utmp" >&5
10301 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303 else
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <sys/types.h>
10309 #include <utmp.h>
10310 int main() {
10311 struct utmp ut; time_t t; ut.ut_time = t;
10312 ; return 0; }
10314 if { (eval echo configure:10315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10315 rm -rf conftest*
10316 samba_cv_HAVE_UT_UT_TIME=yes
10317 else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -rf conftest*
10321 samba_cv_HAVE_UT_UT_TIME=no
10323 rm -f conftest*
10326 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10327 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10328 cat >> confdefs.h <<\EOF
10329 #define HAVE_UT_UT_TIME 1
10334 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10335 echo "configure:10336: checking for ut_tv in utmp" >&5
10336 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10338 else
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343 #include <sys/types.h>
10344 #include <utmp.h>
10345 int main() {
10346 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10347 ; return 0; }
10349 if { (eval echo configure:10350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10350 rm -rf conftest*
10351 samba_cv_HAVE_UT_UT_TV=yes
10352 else
10353 echo "configure: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10355 rm -rf conftest*
10356 samba_cv_HAVE_UT_UT_TV=no
10358 rm -f conftest*
10361 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10362 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10363 cat >> confdefs.h <<\EOF
10364 #define HAVE_UT_UT_TV 1
10369 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10370 echo "configure:10371: checking for ut_type in utmp" >&5
10371 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10372 echo $ac_n "(cached) $ac_c" 1>&6
10373 else
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 #include <sys/types.h>
10379 #include <utmp.h>
10380 int main() {
10381 struct utmp ut; ut.ut_type = 0;
10382 ; return 0; }
10384 if { (eval echo configure:10385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10385 rm -rf conftest*
10386 samba_cv_HAVE_UT_UT_TYPE=yes
10387 else
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 rm -rf conftest*
10391 samba_cv_HAVE_UT_UT_TYPE=no
10393 rm -f conftest*
10396 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10397 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10398 cat >> confdefs.h <<\EOF
10399 #define HAVE_UT_UT_TYPE 1
10404 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10405 echo "configure:10406: checking for ut_pid in utmp" >&5
10406 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
10408 else
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 #include <sys/types.h>
10414 #include <utmp.h>
10415 int main() {
10416 struct utmp ut; ut.ut_pid = 0;
10417 ; return 0; }
10419 if { (eval echo configure:10420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10420 rm -rf conftest*
10421 samba_cv_HAVE_UT_UT_PID=yes
10422 else
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10425 rm -rf conftest*
10426 samba_cv_HAVE_UT_UT_PID=no
10428 rm -f conftest*
10431 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10432 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10433 cat >> confdefs.h <<\EOF
10434 #define HAVE_UT_UT_PID 1
10439 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10440 echo "configure:10441: checking for ut_exit in utmp" >&5
10441 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10443 else
10445 cat > conftest.$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10448 #include <sys/types.h>
10449 #include <utmp.h>
10450 int main() {
10451 struct utmp ut; ut.ut_exit.e_exit = 0;
10452 ; return 0; }
10454 if { (eval echo configure:10455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10455 rm -rf conftest*
10456 samba_cv_HAVE_UT_UT_EXIT=yes
10457 else
10458 echo "configure: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10460 rm -rf conftest*
10461 samba_cv_HAVE_UT_UT_EXIT=no
10463 rm -f conftest*
10466 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10467 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10468 cat >> confdefs.h <<\EOF
10469 #define HAVE_UT_UT_EXIT 1
10474 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10475 echo "configure:10476: checking for ut_addr in utmp" >&5
10476 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10478 else
10480 cat > conftest.$ac_ext <<EOF
10481 #line 10482 "configure"
10482 #include "confdefs.h"
10483 #include <sys/types.h>
10484 #include <utmp.h>
10485 int main() {
10486 struct utmp ut; ut.ut_addr = 0;
10487 ; return 0; }
10489 if { (eval echo configure:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10490 rm -rf conftest*
10491 samba_cv_HAVE_UT_UT_ADDR=yes
10492 else
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 rm -rf conftest*
10496 samba_cv_HAVE_UT_UT_ADDR=no
10498 rm -f conftest*
10501 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10502 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10503 cat >> confdefs.h <<\EOF
10504 #define HAVE_UT_UT_ADDR 1
10509 if test x$ac_cv_func_pututline = xyes ; then
10510 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10511 echo "configure:10512: checking whether pututline returns pointer" >&5
10512 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10514 else
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 #include <sys/types.h>
10520 #include <utmp.h>
10521 int main() {
10522 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10523 ; return 0; }
10525 if { (eval echo configure:10526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10526 rm -rf conftest*
10527 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10528 else
10529 echo "configure: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10531 rm -rf conftest*
10532 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10534 rm -f conftest*
10537 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10538 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10539 cat >> confdefs.h <<\EOF
10540 #define PUTUTLINE_RETURNS_UTMP 1
10546 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10547 echo "configure:10548: checking for ut_syslen in utmpx" >&5
10548 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10550 else
10552 cat > conftest.$ac_ext <<EOF
10553 #line 10554 "configure"
10554 #include "confdefs.h"
10555 #include <sys/types.h>
10556 #include <utmpx.h>
10557 int main() {
10558 struct utmpx ux; ux.ut_syslen = 0;
10559 ; return 0; }
10561 if { (eval echo configure:10562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10562 rm -rf conftest*
10563 samba_cv_HAVE_UX_UT_SYSLEN=yes
10564 else
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10567 rm -rf conftest*
10568 samba_cv_HAVE_UX_UT_SYSLEN=no
10570 rm -f conftest*
10573 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10574 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10575 cat >> confdefs.h <<\EOF
10576 #define HAVE_UX_UT_SYSLEN 1
10582 #################################################
10583 # check for libiconv support
10584 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10585 echo "configure:10586: checking whether to use libiconv" >&5
10586 # Check whether --with-libiconv or --without-libiconv was given.
10587 if test "${with_libiconv+set}" = set; then
10588 withval="$with_libiconv"
10589 case "$withval" in
10591 echo "$ac_t""no" 1>&6
10594 echo "$ac_t""yes" 1>&6
10595 CFLAGS="$CFLAGS -I$withval/include"
10596 LDFLAGS="$LDFLAGS -L$withval/lib"
10597 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10598 echo "configure:10599: checking for iconv_open in -liconv" >&5
10599 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10602 else
10603 ac_save_LIBS="$LIBS"
10604 LIBS="-liconv $LIBS"
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 /* Override any gcc2 internal prototype to avoid an error. */
10609 /* We use char because int might match the return type of a gcc2
10610 builtin and then its argument prototype would still apply. */
10611 char iconv_open();
10613 int main() {
10614 iconv_open()
10615 ; return 0; }
10617 if { (eval echo configure:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10618 rm -rf conftest*
10619 eval "ac_cv_lib_$ac_lib_var=yes"
10620 else
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10623 rm -rf conftest*
10624 eval "ac_cv_lib_$ac_lib_var=no"
10626 rm -f conftest*
10627 LIBS="$ac_save_LIBS"
10630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10632 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10633 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10634 cat >> confdefs.h <<EOF
10635 #define $ac_tr_lib 1
10638 LIBS="-liconv $LIBS"
10640 else
10641 echo "$ac_t""no" 1>&6
10644 cat >> confdefs.h <<EOF
10645 #define WITH_LIBICONV "${withval}"
10649 esac
10650 else
10651 echo "$ac_t""no" 1>&6
10657 ############
10658 # check for iconv in libc
10659 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10660 echo "configure:10661: checking for working iconv" >&5
10661 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10663 else
10665 if test "$cross_compiling" = yes; then
10666 samba_cv_HAVE_NATIVE_ICONV=cross
10667 else
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10672 #include <iconv.h>
10673 main() {
10674 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10675 if (cd == 0 || cd == (iconv_t)-1) return -1;
10676 return 0;
10680 if { (eval echo configure:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10681 then
10682 samba_cv_HAVE_NATIVE_ICONV=yes
10683 else
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10686 rm -fr conftest*
10687 samba_cv_HAVE_NATIVE_ICONV=no
10689 rm -fr conftest*
10694 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10695 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10696 cat >> confdefs.h <<\EOF
10697 #define HAVE_NATIVE_ICONV 1
10703 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10704 echo "configure:10705: checking for Linux kernel oplocks" >&5
10705 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10707 else
10709 if test "$cross_compiling" = yes; then
10710 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10711 else
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10716 #include <sys/types.h>
10717 #include <fcntl.h>
10718 #ifndef F_GETLEASE
10719 #define F_GETLEASE 1025
10720 #endif
10721 main() {
10722 int fd = open("/dev/null", O_RDONLY);
10723 return fcntl(fd, F_GETLEASE, 0) == -1;
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10728 then
10729 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10730 else
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -fr conftest*
10734 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10736 rm -fr conftest*
10741 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10742 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10743 cat >> confdefs.h <<\EOF
10744 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10749 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10750 echo "configure:10751: checking for kernel change notify support" >&5
10751 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10753 else
10755 if test "$cross_compiling" = yes; then
10756 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10757 else
10758 cat > conftest.$ac_ext <<EOF
10759 #line 10760 "configure"
10760 #include "confdefs.h"
10762 #include <sys/types.h>
10763 #include <fcntl.h>
10764 #include <signal.h>
10765 #ifndef F_NOTIFY
10766 #define F_NOTIFY 1026
10767 #endif
10768 main() {
10769 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10773 if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10774 then
10775 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10776 else
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10779 rm -fr conftest*
10780 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10782 rm -fr conftest*
10787 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10788 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10789 cat >> confdefs.h <<\EOF
10790 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10795 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10796 echo "configure:10797: checking for kernel share modes" >&5
10797 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10798 echo $ac_n "(cached) $ac_c" 1>&6
10799 else
10801 if test "$cross_compiling" = yes; then
10802 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10803 else
10804 cat > conftest.$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10808 #include <sys/types.h>
10809 #include <fcntl.h>
10810 #include <signal.h>
10811 #include <sys/file.h>
10812 #ifndef LOCK_MAND
10813 #define LOCK_MAND 32
10814 #define LOCK_READ 64
10815 #endif
10816 main() {
10817 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10821 if { (eval echo configure:10822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10822 then
10823 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10824 else
10825 echo "configure: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10827 rm -fr conftest*
10828 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10830 rm -fr conftest*
10835 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10836 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10837 cat >> confdefs.h <<\EOF
10838 #define HAVE_KERNEL_SHARE_MODES 1
10846 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10847 echo "configure:10848: checking for IRIX kernel oplock type definitions" >&5
10848 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10849 echo $ac_n "(cached) $ac_c" 1>&6
10850 else
10852 cat > conftest.$ac_ext <<EOF
10853 #line 10854 "configure"
10854 #include "confdefs.h"
10855 #include <sys/types.h>
10856 #include <fcntl.h>
10857 int main() {
10858 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10859 ; return 0; }
10861 if { (eval echo configure:10862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10862 rm -rf conftest*
10863 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10864 else
10865 echo "configure: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10867 rm -rf conftest*
10868 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10870 rm -f conftest*
10873 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10874 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10875 cat >> confdefs.h <<\EOF
10876 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10881 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10882 echo "configure:10883: checking for irix specific capabilities" >&5
10883 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10884 echo $ac_n "(cached) $ac_c" 1>&6
10885 else
10887 if test "$cross_compiling" = yes; then
10888 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10889 else
10890 cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10893 #include <sys/types.h>
10894 #include <sys/capability.h>
10895 main() {
10896 cap_t cap;
10897 if ((cap = cap_get_proc()) == NULL)
10898 exit(1);
10899 cap->cap_effective |= CAP_NETWORK_MGT;
10900 cap->cap_inheritable |= CAP_NETWORK_MGT;
10901 cap_set_proc(cap);
10902 exit(0);
10906 if { (eval echo configure:10907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10907 then
10908 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10909 else
10910 echo "configure: failed program was:" >&5
10911 cat conftest.$ac_ext >&5
10912 rm -fr conftest*
10913 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10915 rm -fr conftest*
10920 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10921 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10922 cat >> confdefs.h <<\EOF
10923 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10929 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10930 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10933 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10934 echo "configure:10935: checking for int16 typedef included by rpc/rpc.h" >&5
10935 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10937 else
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10942 #include <sys/types.h>
10943 #if defined(HAVE_RPC_RPC_H)
10944 #include <rpc/rpc.h>
10945 #endif
10946 int main() {
10947 int16 testvar;
10948 ; return 0; }
10950 if { (eval echo configure:10951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10951 rm -rf conftest*
10952 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10953 else
10954 echo "configure: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10956 rm -rf conftest*
10957 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10959 rm -f conftest*
10962 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10963 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10964 cat >> confdefs.h <<\EOF
10965 #define HAVE_INT16_FROM_RPC_RPC_H 1
10970 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10971 echo "configure:10972: checking for uint16 typedef included by rpc/rpc.h" >&5
10972 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
10974 else
10976 cat > conftest.$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10979 #include <sys/types.h>
10980 #if defined(HAVE_RPC_RPC_H)
10981 #include <rpc/rpc.h>
10982 #endif
10983 int main() {
10984 uint16 testvar;
10985 ; return 0; }
10987 if { (eval echo configure:10988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10988 rm -rf conftest*
10989 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10990 else
10991 echo "configure: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10993 rm -rf conftest*
10994 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10996 rm -f conftest*
10999 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
11000 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
11001 cat >> confdefs.h <<\EOF
11002 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11007 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11008 echo "configure:11009: checking for int32 typedef included by rpc/rpc.h" >&5
11009 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11011 else
11013 cat > conftest.$ac_ext <<EOF
11014 #line 11015 "configure"
11015 #include "confdefs.h"
11016 #include <sys/types.h>
11017 #if defined(HAVE_RPC_RPC_H)
11018 #include <rpc/rpc.h>
11019 #endif
11020 int main() {
11021 int32 testvar;
11022 ; return 0; }
11024 if { (eval echo configure:11025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11025 rm -rf conftest*
11026 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 rm -rf conftest*
11031 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
11033 rm -f conftest*
11036 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11037 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
11038 cat >> confdefs.h <<\EOF
11039 #define HAVE_INT32_FROM_RPC_RPC_H 1
11044 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11045 echo "configure:11046: checking for uint32 typedef included by rpc/rpc.h" >&5
11046 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11048 else
11050 cat > conftest.$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11053 #include <sys/types.h>
11054 #if defined(HAVE_RPC_RPC_H)
11055 #include <rpc/rpc.h>
11056 #endif
11057 int main() {
11058 uint32 testvar;
11059 ; return 0; }
11061 if { (eval echo configure:11062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11062 rm -rf conftest*
11063 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
11064 else
11065 echo "configure: failed program was:" >&5
11066 cat conftest.$ac_ext >&5
11067 rm -rf conftest*
11068 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
11070 rm -f conftest*
11073 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11074 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
11075 cat >> confdefs.h <<\EOF
11076 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11082 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11083 echo "configure:11084: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11084 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11085 echo $ac_n "(cached) $ac_c" 1>&6
11086 else
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 #include <sys/types.h>
11092 #ifdef HAVE_SYS_SECURITY_H
11093 #include <sys/security.h>
11094 #include <prot.h>
11095 #endif /* HAVE_SYS_SECURITY_H */
11096 #if defined(HAVE_RPC_RPC_H)
11097 #include <rpc/rpc.h>
11098 #endif
11099 int main() {
11100 int testvar;
11101 ; return 0; }
11103 if { (eval echo configure:11104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11104 rm -rf conftest*
11105 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
11106 else
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11109 rm -rf conftest*
11110 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
11112 rm -f conftest*
11115 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11116 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
11117 cat >> confdefs.h <<\EOF
11118 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11123 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11124 echo "configure:11125: checking for test routines" >&5
11125 if test "$cross_compiling" = yes; then
11126 echo "configure: warning: cannot run when cross-compiling" 1>&2
11127 else
11128 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11131 #include "${srcdir-.}/tests/trivial.c"
11133 if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11134 then
11135 echo "$ac_t""yes" 1>&6
11136 else
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11139 rm -fr conftest*
11140 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11142 rm -fr conftest*
11146 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11147 echo "configure:11148: checking for ftruncate extend" >&5
11148 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11150 else
11152 if test "$cross_compiling" = yes; then
11153 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
11154 else
11155 cat > conftest.$ac_ext <<EOF
11156 #line 11157 "configure"
11157 #include "confdefs.h"
11158 #include "${srcdir-.}/tests/ftruncate.c"
11160 if { (eval echo configure:11161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11161 then
11162 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
11163 else
11164 echo "configure: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11166 rm -fr conftest*
11167 samba_cv_HAVE_FTRUNCATE_EXTEND=no
11169 rm -fr conftest*
11174 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11175 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
11176 cat >> confdefs.h <<\EOF
11177 #define HAVE_FTRUNCATE_EXTEND 1
11182 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11183 echo "configure:11184: checking for AF_LOCAL socket support" >&5
11184 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11186 else
11188 if test "$cross_compiling" = yes; then
11189 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11190 else
11191 cat > conftest.$ac_ext <<EOF
11192 #line 11193 "configure"
11193 #include "confdefs.h"
11194 #include "${srcdir-.}/tests/unixsock.c"
11196 if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11197 then
11198 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11199 else
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11202 rm -fr conftest*
11203 samba_cv_HAVE_WORKING_AF_LOCAL=no
11205 rm -fr conftest*
11210 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11211 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11212 then
11213 cat >> confdefs.h <<\EOF
11214 #define HAVE_WORKING_AF_LOCAL 1
11219 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11220 echo "configure:11221: checking for broken getgroups" >&5
11221 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
11223 else
11225 if test "$cross_compiling" = yes; then
11226 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11227 else
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 #include "${srcdir-.}/tests/getgroups.c"
11233 if { (eval echo configure:11234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11234 then
11235 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11236 else
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 rm -fr conftest*
11240 samba_cv_HAVE_BROKEN_GETGROUPS=no
11242 rm -fr conftest*
11247 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11248 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11249 cat >> confdefs.h <<\EOF
11250 #define HAVE_BROKEN_GETGROUPS 1
11255 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11256 echo "configure:11257: checking whether getpass should be replaced" >&5
11257 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11259 else
11261 SAVE_CPPFLAGS="$CPPFLAGS"
11262 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11263 cat > conftest.$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11267 #define REPLACE_GETPASS 1
11268 #define NO_CONFIG_H 1
11269 #define main dont_declare_main
11270 #include "${srcdir-.}/lib/getsmbpass.c"
11271 #undef main
11273 int main() {
11275 ; return 0; }
11277 if { (eval echo configure:11278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11278 rm -rf conftest*
11279 samba_cv_REPLACE_GETPASS=yes
11280 else
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11283 rm -rf conftest*
11284 samba_cv_REPLACE_GETPASS=no
11286 rm -f conftest*
11287 CPPFLAGS="$SAVE_CPPFLAGS"
11291 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11292 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11293 cat >> confdefs.h <<\EOF
11294 #define REPLACE_GETPASS 1
11299 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11300 echo "configure:11301: checking for broken inet_ntoa" >&5
11301 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303 else
11305 if test "$cross_compiling" = yes; then
11306 samba_cv_REPLACE_INET_NTOA=cross
11307 else
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11312 #include <stdio.h>
11313 #include <sys/types.h>
11314 #include <netinet/in.h>
11315 #ifdef HAVE_ARPA_INET_H
11316 #include <arpa/inet.h>
11317 #endif
11318 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11319 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11320 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11321 exit(1);}
11323 if { (eval echo configure:11324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11324 then
11325 samba_cv_REPLACE_INET_NTOA=yes
11326 else
11327 echo "configure: failed program was:" >&5
11328 cat conftest.$ac_ext >&5
11329 rm -fr conftest*
11330 samba_cv_REPLACE_INET_NTOA=no
11332 rm -fr conftest*
11337 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11338 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11339 cat >> confdefs.h <<\EOF
11340 #define REPLACE_INET_NTOA 1
11345 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11346 echo "configure:11347: checking for secure mkstemp" >&5
11347 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11348 echo $ac_n "(cached) $ac_c" 1>&6
11349 else
11351 if test "$cross_compiling" = yes; then
11352 samba_cv_HAVE_SECURE_MKSTEMP=cross
11353 else
11354 cat > conftest.$ac_ext <<EOF
11355 #line 11356 "configure"
11356 #include "confdefs.h"
11357 #include <stdlib.h>
11358 #include <sys/types.h>
11359 #include <sys/stat.h>
11360 #include <unistd.h>
11361 main() {
11362 struct stat st;
11363 char tpl[20]="/tmp/test.XXXXXX";
11364 int fd = mkstemp(tpl);
11365 if (fd == -1) exit(1);
11366 unlink(tpl);
11367 if (fstat(fd, &st) != 0) exit(1);
11368 if ((st.st_mode & 0777) != 0600) exit(1);
11369 exit(0);
11372 if { (eval echo configure:11373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11373 then
11374 samba_cv_HAVE_SECURE_MKSTEMP=yes
11375 else
11376 echo "configure: failed program was:" >&5
11377 cat conftest.$ac_ext >&5
11378 rm -fr conftest*
11379 samba_cv_HAVE_SECURE_MKSTEMP=no
11381 rm -fr conftest*
11386 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11387 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11388 cat >> confdefs.h <<\EOF
11389 #define HAVE_SECURE_MKSTEMP 1
11394 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11395 echo "configure:11396: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11396 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11397 echo $ac_n "(cached) $ac_c" 1>&6
11398 else
11400 if test "$cross_compiling" = yes; then
11401 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11402 else
11403 cat > conftest.$ac_ext <<EOF
11404 #line 11405 "configure"
11405 #include "confdefs.h"
11406 #include <unistd.h>
11407 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11409 if { (eval echo configure:11410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11410 then
11411 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11412 else
11413 echo "configure: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 rm -fr conftest*
11416 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11418 rm -fr conftest*
11423 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11424 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11425 cat >> confdefs.h <<\EOF
11426 #define SYSCONF_SC_NGROUPS_MAX 1
11431 echo $ac_n "checking for root""... $ac_c" 1>&6
11432 echo "configure:11433: checking for root" >&5
11433 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11434 echo $ac_n "(cached) $ac_c" 1>&6
11435 else
11437 if test "$cross_compiling" = yes; then
11438 samba_cv_HAVE_ROOT=cross
11439 else
11440 cat > conftest.$ac_ext <<EOF
11441 #line 11442 "configure"
11442 #include "confdefs.h"
11443 main() { exit(getuid() != 0); }
11445 if { (eval echo configure:11446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11446 then
11447 samba_cv_HAVE_ROOT=yes
11448 else
11449 echo "configure: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11451 rm -fr conftest*
11452 samba_cv_HAVE_ROOT=no
11454 rm -fr conftest*
11459 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11460 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11461 cat >> confdefs.h <<\EOF
11462 #define HAVE_ROOT 1
11465 else
11466 echo "configure: warning: running as non-root will disable some tests" 1>&2
11469 ##################
11470 # look for a method of finding the list of network interfaces
11471 iface=no;
11472 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11473 echo "configure:11474: checking for iface AIX" >&5
11474 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11475 echo $ac_n "(cached) $ac_c" 1>&6
11476 else
11478 if test "$cross_compiling" = yes; then
11479 samba_cv_HAVE_IFACE_AIX=cross
11480 else
11481 cat > conftest.$ac_ext <<EOF
11482 #line 11483 "configure"
11483 #include "confdefs.h"
11485 #define HAVE_IFACE_AIX 1
11486 #define AUTOCONF_TEST 1
11487 #include "confdefs.h"
11488 #include "${srcdir-.}/lib/interfaces.c"
11490 if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11491 then
11492 samba_cv_HAVE_IFACE_AIX=yes
11493 else
11494 echo "configure: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 rm -fr conftest*
11497 samba_cv_HAVE_IFACE_AIX=no
11499 rm -fr conftest*
11504 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11505 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11506 iface=yes;cat >> confdefs.h <<\EOF
11507 #define HAVE_IFACE_AIX 1
11512 if test $iface = no; then
11513 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11514 echo "configure:11515: checking for iface ifconf" >&5
11515 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11516 echo $ac_n "(cached) $ac_c" 1>&6
11517 else
11519 if test "$cross_compiling" = yes; then
11520 samba_cv_HAVE_IFACE_IFCONF=cross
11521 else
11522 cat > conftest.$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11526 #define HAVE_IFACE_IFCONF 1
11527 #define AUTOCONF_TEST 1
11528 #include "confdefs.h"
11529 #include "${srcdir-.}/lib/interfaces.c"
11531 if { (eval echo configure:11532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11532 then
11533 samba_cv_HAVE_IFACE_IFCONF=yes
11534 else
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11537 rm -fr conftest*
11538 samba_cv_HAVE_IFACE_IFCONF=no
11540 rm -fr conftest*
11545 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11546 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11547 iface=yes;cat >> confdefs.h <<\EOF
11548 #define HAVE_IFACE_IFCONF 1
11554 if test $iface = no; then
11555 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11556 echo "configure:11557: checking for iface ifreq" >&5
11557 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11559 else
11561 if test "$cross_compiling" = yes; then
11562 samba_cv_HAVE_IFACE_IFREQ=cross
11563 else
11564 cat > conftest.$ac_ext <<EOF
11565 #line 11566 "configure"
11566 #include "confdefs.h"
11568 #define HAVE_IFACE_IFREQ 1
11569 #define AUTOCONF_TEST 1
11570 #include "confdefs.h"
11571 #include "${srcdir-.}/lib/interfaces.c"
11573 if { (eval echo configure:11574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11574 then
11575 samba_cv_HAVE_IFACE_IFREQ=yes
11576 else
11577 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11579 rm -fr conftest*
11580 samba_cv_HAVE_IFACE_IFREQ=no
11582 rm -fr conftest*
11587 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11588 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11589 iface=yes;cat >> confdefs.h <<\EOF
11590 #define HAVE_IFACE_IFREQ 1
11597 ################################################
11598 # look for a method of setting the effective uid
11599 seteuid=no;
11600 if test $seteuid = no; then
11601 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11602 echo "configure:11603: checking for setresuid" >&5
11603 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
11605 else
11607 if test "$cross_compiling" = yes; then
11608 samba_cv_USE_SETRESUID=cross
11609 else
11610 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure"
11612 #include "confdefs.h"
11614 #define AUTOCONF_TEST 1
11615 #define USE_SETRESUID 1
11616 #include "confdefs.h"
11617 #include "${srcdir-.}/lib/util_sec.c"
11619 if { (eval echo configure:11620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11620 then
11621 samba_cv_USE_SETRESUID=yes
11622 else
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11625 rm -fr conftest*
11626 samba_cv_USE_SETRESUID=no
11628 rm -fr conftest*
11633 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11634 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11635 seteuid=yes;cat >> confdefs.h <<\EOF
11636 #define USE_SETRESUID 1
11643 if test $seteuid = no; then
11644 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11645 echo "configure:11646: checking for setreuid" >&5
11646 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11648 else
11650 if test "$cross_compiling" = yes; then
11651 samba_cv_USE_SETREUID=cross
11652 else
11653 cat > conftest.$ac_ext <<EOF
11654 #line 11655 "configure"
11655 #include "confdefs.h"
11657 #define AUTOCONF_TEST 1
11658 #define USE_SETREUID 1
11659 #include "confdefs.h"
11660 #include "${srcdir-.}/lib/util_sec.c"
11662 if { (eval echo configure:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11663 then
11664 samba_cv_USE_SETREUID=yes
11665 else
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11668 rm -fr conftest*
11669 samba_cv_USE_SETREUID=no
11671 rm -fr conftest*
11676 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11677 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11678 seteuid=yes;cat >> confdefs.h <<\EOF
11679 #define USE_SETREUID 1
11685 if test $seteuid = no; then
11686 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11687 echo "configure:11688: checking for seteuid" >&5
11688 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11689 echo $ac_n "(cached) $ac_c" 1>&6
11690 else
11692 if test "$cross_compiling" = yes; then
11693 samba_cv_USE_SETEUID=cross
11694 else
11695 cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11699 #define AUTOCONF_TEST 1
11700 #define USE_SETEUID 1
11701 #include "confdefs.h"
11702 #include "${srcdir-.}/lib/util_sec.c"
11704 if { (eval echo configure:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11705 then
11706 samba_cv_USE_SETEUID=yes
11707 else
11708 echo "configure: failed program was:" >&5
11709 cat conftest.$ac_ext >&5
11710 rm -fr conftest*
11711 samba_cv_USE_SETEUID=no
11713 rm -fr conftest*
11718 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11719 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11720 seteuid=yes;cat >> confdefs.h <<\EOF
11721 #define USE_SETEUID 1
11727 if test $seteuid = no; then
11728 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11729 echo "configure:11730: checking for setuidx" >&5
11730 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11732 else
11734 if test "$cross_compiling" = yes; then
11735 samba_cv_USE_SETUIDX=cross
11736 else
11737 cat > conftest.$ac_ext <<EOF
11738 #line 11739 "configure"
11739 #include "confdefs.h"
11741 #define AUTOCONF_TEST 1
11742 #define USE_SETUIDX 1
11743 #include "confdefs.h"
11744 #include "${srcdir-.}/lib/util_sec.c"
11746 if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11747 then
11748 samba_cv_USE_SETUIDX=yes
11749 else
11750 echo "configure: failed program was:" >&5
11751 cat conftest.$ac_ext >&5
11752 rm -fr conftest*
11753 samba_cv_USE_SETUIDX=no
11755 rm -fr conftest*
11760 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11761 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11762 seteuid=yes;cat >> confdefs.h <<\EOF
11763 #define USE_SETUIDX 1
11770 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11771 echo "configure:11772: checking for working mmap" >&5
11772 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11774 else
11776 if test "$cross_compiling" = yes; then
11777 samba_cv_HAVE_MMAP=cross
11778 else
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782 #include "${srcdir-.}/tests/shared_mmap.c"
11784 if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11785 then
11786 samba_cv_HAVE_MMAP=yes
11787 else
11788 echo "configure: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11790 rm -fr conftest*
11791 samba_cv_HAVE_MMAP=no
11793 rm -fr conftest*
11798 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11799 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11800 cat >> confdefs.h <<\EOF
11801 #define HAVE_MMAP 1
11806 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11807 echo "configure:11808: checking for ftruncate needs root" >&5
11808 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11810 else
11812 if test "$cross_compiling" = yes; then
11813 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11814 else
11815 cat > conftest.$ac_ext <<EOF
11816 #line 11817 "configure"
11817 #include "confdefs.h"
11818 #include "${srcdir-.}/tests/ftruncroot.c"
11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11821 then
11822 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11823 else
11824 echo "configure: failed program was:" >&5
11825 cat conftest.$ac_ext >&5
11826 rm -fr conftest*
11827 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11829 rm -fr conftest*
11834 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11835 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11836 cat >> confdefs.h <<\EOF
11837 #define FTRUNCATE_NEEDS_ROOT 1
11842 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11843 echo "configure:11844: checking for fcntl locking" >&5
11844 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11846 else
11848 if test "$cross_compiling" = yes; then
11849 samba_cv_HAVE_FCNTL_LOCK=cross
11850 else
11851 cat > conftest.$ac_ext <<EOF
11852 #line 11853 "configure"
11853 #include "confdefs.h"
11854 #include "${srcdir-.}/tests/fcntl_lock.c"
11856 if { (eval echo configure:11857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11857 then
11858 samba_cv_HAVE_FCNTL_LOCK=yes
11859 else
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 rm -fr conftest*
11863 samba_cv_HAVE_FCNTL_LOCK=no
11865 rm -fr conftest*
11870 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11871 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11872 cat >> confdefs.h <<\EOF
11873 #define HAVE_FCNTL_LOCK 1
11878 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11879 echo "configure:11880: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11880 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11881 echo $ac_n "(cached) $ac_c" 1>&6
11882 else
11884 if test "$cross_compiling" = yes; then
11885 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11886 else
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 #include "${srcdir-.}/tests/fcntl_lock64.c"
11892 if { (eval echo configure:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11893 then
11894 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11895 else
11896 echo "configure: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 rm -fr conftest*
11899 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11901 rm -fr conftest*
11906 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11907 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11908 cat >> confdefs.h <<\EOF
11909 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11913 else
11916 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11917 echo "configure:11918: checking for 64 bit fcntl locking" >&5
11918 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
11920 else
11922 if test "$cross_compiling" = yes; then
11923 samba_cv_HAVE_STRUCT_FLOCK64=cross
11924 else
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11929 #if defined(HAVE_UNISTD_H)
11930 #include <unistd.h>
11931 #endif
11932 #include <stdio.h>
11933 #include <stdlib.h>
11935 #ifdef HAVE_FCNTL_H
11936 #include <fcntl.h>
11937 #endif
11939 #ifdef HAVE_SYS_FCNTL_H
11940 #include <sys/fcntl.h>
11941 #endif
11942 main() { struct flock64 fl64;
11943 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11944 exit(0);
11945 #else
11946 exit(1);
11947 #endif
11950 if { (eval echo configure:11951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11951 then
11952 samba_cv_HAVE_STRUCT_FLOCK64=yes
11953 else
11954 echo "configure: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11956 rm -fr conftest*
11957 samba_cv_HAVE_STRUCT_FLOCK64=no
11959 rm -fr conftest*
11964 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11966 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11967 cat >> confdefs.h <<\EOF
11968 #define HAVE_STRUCT_FLOCK64 1
11974 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11975 echo "configure:11976: checking for st_blocks in struct stat" >&5
11976 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
11978 else
11980 cat > conftest.$ac_ext <<EOF
11981 #line 11982 "configure"
11982 #include "confdefs.h"
11983 #include <sys/types.h>
11984 #include <sys/stat.h>
11985 #include <unistd.h>
11986 int main() {
11987 struct stat st; st.st_blocks = 0;
11988 ; return 0; }
11990 if { (eval echo configure:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11991 rm -rf conftest*
11992 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11993 else
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11996 rm -rf conftest*
11997 samba_cv_HAVE_STAT_ST_BLOCKS=no
11999 rm -f conftest*
12002 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12003 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
12004 cat >> confdefs.h <<\EOF
12005 #define HAVE_STAT_ST_BLOCKS 1
12010 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12011 echo "configure:12012: checking for st_blksize in struct stat" >&5
12012 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12014 else
12016 cat > conftest.$ac_ext <<EOF
12017 #line 12018 "configure"
12018 #include "confdefs.h"
12019 #include <sys/types.h>
12020 #include <sys/stat.h>
12021 #include <unistd.h>
12022 int main() {
12023 struct stat st; st.st_blksize = 0;
12024 ; return 0; }
12026 if { (eval echo configure:12027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12027 rm -rf conftest*
12028 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
12029 else
12030 echo "configure: failed program was:" >&5
12031 cat conftest.$ac_ext >&5
12032 rm -rf conftest*
12033 samba_cv_HAVE_STAT_ST_BLKSIZE=no
12035 rm -f conftest*
12038 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12039 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
12040 cat >> confdefs.h <<\EOF
12041 #define HAVE_STAT_ST_BLKSIZE 1
12046 case "$host_os" in
12047 *linux*)
12048 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12049 echo "configure:12050: checking for broken RedHat 7.2 system header files" >&5
12050 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
12052 else
12054 cat > conftest.$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12058 #ifdef HAVE_SYS_VFS_H
12059 #include <sys/vfs.h>
12060 #endif
12061 #ifdef HAVE_SYS_CAPABILITY_H
12062 #include <sys/capability.h>
12063 #endif
12065 int main() {
12066 int i;
12067 ; return 0; }
12069 if { (eval echo configure:12070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12070 rm -rf conftest*
12071 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
12072 else
12073 echo "configure: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12075 rm -rf conftest*
12076 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
12078 rm -f conftest*
12081 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12082 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
12083 cat >> confdefs.h <<\EOF
12084 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12089 esac
12091 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12092 echo "configure:12093: checking for broken nisplus include files" >&5
12093 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12095 else
12097 cat > conftest.$ac_ext <<EOF
12098 #line 12099 "configure"
12099 #include "confdefs.h"
12100 #include <sys/acl.h>
12101 #if defined(HAVE_RPCSVC_NIS_H)
12102 #include <rpcsvc/nis.h>
12103 #endif
12104 int main() {
12105 int i;
12106 ; return 0; }
12108 if { (eval echo configure:12109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12109 rm -rf conftest*
12110 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
12111 else
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12114 rm -rf conftest*
12115 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
12117 rm -f conftest*
12120 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12121 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
12122 cat >> confdefs.h <<\EOF
12123 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12129 #################################################
12130 # check for smbwrapper support
12131 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12132 echo "configure:12133: checking whether to use smbwrapper" >&5
12133 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12134 if test "${with_smbwrapper+set}" = set; then
12135 withval="$with_smbwrapper"
12136 case "$withval" in
12137 yes)
12138 echo "$ac_t""yes" 1>&6
12139 cat >> confdefs.h <<\EOF
12140 #define WITH_SMBWRAPPER 1
12143 WRAPPROG="bin/smbsh\$(EXEEXT)"
12144 WRAP="bin/smbwrapper.$SHLIBEXT"
12146 if test x$ATTEMPT_WRAP32_BUILD = x; then
12147 WRAP32=""
12148 else
12149 WRAP32=bin/smbwrapper.32.$SHLIBEXT
12152 # Conditions under which smbwrapper should not be built.
12154 if test x$PICFLAG = x; then
12155 echo No support for PIC code - disabling smbwrapper and smbsh
12156 WRAPPROG=""
12157 WRAP=""
12158 WRAP32=""
12159 elif test x$ac_cv_func_syscall = xno; then
12160 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12161 WRAPPROG=""
12162 WRAP=""
12163 WRAP32=""
12165 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12166 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
12169 echo "$ac_t""no" 1>&6
12171 esac
12172 else
12173 echo "$ac_t""no" 1>&6
12178 #################################################
12179 # check for AFS clear-text auth support
12180 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12181 echo "configure:12182: checking whether to use AFS clear-text auth" >&5
12182 # Check whether --with-afs or --without-afs was given.
12183 if test "${with_afs+set}" = set; then
12184 withval="$with_afs"
12185 case "$withval" in
12186 yes)
12187 echo "$ac_t""yes" 1>&6
12188 cat >> confdefs.h <<\EOF
12189 #define WITH_AFS 1
12194 echo "$ac_t""no" 1>&6
12196 esac
12197 else
12198 echo "$ac_t""no" 1>&6
12204 #################################################
12205 # check for the DFS clear-text auth system
12206 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12207 echo "configure:12208: checking whether to use DFS clear-text auth" >&5
12208 # Check whether --with-dfs or --without-dfs was given.
12209 if test "${with_dfs+set}" = set; then
12210 withval="$with_dfs"
12211 case "$withval" in
12212 yes)
12213 echo "$ac_t""yes" 1>&6
12214 cat >> confdefs.h <<\EOF
12215 #define WITH_DFS 1
12220 echo "$ac_t""no" 1>&6
12222 esac
12223 else
12224 echo "$ac_t""no" 1>&6
12229 #################################################
12230 # active directory support
12232 with_ads_support=yes
12233 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12234 echo "configure:12235: checking whether to use Active Directory" >&5
12236 # Check whether --with-ads or --without-ads was given.
12237 if test "${with_ads+set}" = set; then
12238 withval="$with_ads"
12239 case "$withval" in
12241 with_ads_support=no
12243 esac
12247 if test x"$with_ads_support" = x"yes"; then
12248 cat >> confdefs.h <<\EOF
12249 #define WITH_ADS 1
12254 echo "$ac_t""$with_ads_support" 1>&6
12256 FOUND_KRB5=no
12257 if test x"$with_ads_support" = x"yes"; then
12259 #################################################
12260 # check for location of Kerberos 5 install
12261 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12262 echo "configure:12263: checking for kerberos 5 install path" >&5
12263 # Check whether --with-krb5 or --without-krb5 was given.
12264 if test "${with_krb5+set}" = set; then
12265 withval="$with_krb5"
12266 case "$withval" in
12268 echo "$ac_t""no" 1>&6
12271 echo "$ac_t""yes" 1>&6
12272 LIBS="$LIBS -lkrb5"
12273 CFLAGS="$CFLAGS -I$withval/include"
12274 CPPFLAGS="$CPPFLAGS -I$withval/include"
12275 LDFLAGS="$LDFLAGS -L$withval/lib"
12276 FOUND_KRB5=yes
12278 esac
12279 else
12280 echo "$ac_t""no" 1>&6
12286 if test x$FOUND_KRB5 = x"no"; then
12287 #################################################
12288 # see if this box has the SuSE location for the heimdal kerberos implementation
12289 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12290 echo "configure:12291: checking for /usr/include/heimdal" >&5
12291 if test -d /usr/include/heimdal; then
12292 CFLAGS="$CFLAGS -I/usr/include/heimdal"
12293 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
12294 echo "$ac_t""yes" 1>&6
12295 else
12296 echo "$ac_t""no" 1>&6
12301 if test x$FOUND_KRB5 = x"no"; then
12302 #################################################
12303 # see if this box has the RedHat location for kerberos
12304 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12305 echo "configure:12306: checking for /usr/kerberos" >&5
12306 if test -d /usr/kerberos; then
12307 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12308 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12309 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12310 echo "$ac_t""yes" 1>&6
12311 else
12312 echo "$ac_t""no" 1>&6
12317 # now check for krb5.h. Some systems have the libraries without the headers!
12318 # note that this check is done here to allow for different kerberos
12319 # include paths
12320 for ac_hdr in krb5.h
12322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12324 echo "configure:12325: checking for $ac_hdr" >&5
12325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12326 echo $ac_n "(cached) $ac_c" 1>&6
12327 else
12328 cat > conftest.$ac_ext <<EOF
12329 #line 12330 "configure"
12330 #include "confdefs.h"
12331 #include <$ac_hdr>
12333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12334 { (eval echo configure:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12336 if test -z "$ac_err"; then
12337 rm -rf conftest*
12338 eval "ac_cv_header_$ac_safe=yes"
12339 else
12340 echo "$ac_err" >&5
12341 echo "configure: failed program was:" >&5
12342 cat conftest.$ac_ext >&5
12343 rm -rf conftest*
12344 eval "ac_cv_header_$ac_safe=no"
12346 rm -f conftest*
12348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12349 echo "$ac_t""yes" 1>&6
12350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12351 cat >> confdefs.h <<EOF
12352 #define $ac_tr_hdr 1
12355 else
12356 echo "$ac_t""no" 1>&6
12358 done
12361 # now check for gssapi headers. This is also done here to allow for
12362 # different kerberos include paths
12363 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12367 echo "configure:12368: checking for $ac_hdr" >&5
12368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12369 echo $ac_n "(cached) $ac_c" 1>&6
12370 else
12371 cat > conftest.$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12374 #include <$ac_hdr>
12376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12377 { (eval echo configure:12378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12379 if test -z "$ac_err"; then
12380 rm -rf conftest*
12381 eval "ac_cv_header_$ac_safe=yes"
12382 else
12383 echo "$ac_err" >&5
12384 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12386 rm -rf conftest*
12387 eval "ac_cv_header_$ac_safe=no"
12389 rm -f conftest*
12391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12392 echo "$ac_t""yes" 1>&6
12393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12394 cat >> confdefs.h <<EOF
12395 #define $ac_tr_hdr 1
12398 else
12399 echo "$ac_t""no" 1>&6
12401 done
12404 ##################################################################
12405 # we might need the k5crypto and com_err libraries on some systems
12406 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12407 echo "configure:12408: checking for _et_list in -lcom_err" >&5
12408 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12410 echo $ac_n "(cached) $ac_c" 1>&6
12411 else
12412 ac_save_LIBS="$LIBS"
12413 LIBS="-lcom_err $LIBS"
12414 cat > conftest.$ac_ext <<EOF
12415 #line 12416 "configure"
12416 #include "confdefs.h"
12417 /* Override any gcc2 internal prototype to avoid an error. */
12418 /* We use char because int might match the return type of a gcc2
12419 builtin and then its argument prototype would still apply. */
12420 char _et_list();
12422 int main() {
12423 _et_list()
12424 ; return 0; }
12426 if { (eval echo configure:12427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12427 rm -rf conftest*
12428 eval "ac_cv_lib_$ac_lib_var=yes"
12429 else
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 rm -rf conftest*
12433 eval "ac_cv_lib_$ac_lib_var=no"
12435 rm -f conftest*
12436 LIBS="$ac_save_LIBS"
12439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12440 echo "$ac_t""yes" 1>&6
12441 LIBS="$LIBS -lcom_err"
12442 else
12443 echo "$ac_t""no" 1>&6
12446 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12447 echo "configure:12448: checking for krb5_encrypt_data in -lk5crypto" >&5
12448 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12451 else
12452 ac_save_LIBS="$LIBS"
12453 LIBS="-lk5crypto $LIBS"
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12457 /* Override any gcc2 internal prototype to avoid an error. */
12458 /* We use char because int might match the return type of a gcc2
12459 builtin and then its argument prototype would still apply. */
12460 char krb5_encrypt_data();
12462 int main() {
12463 krb5_encrypt_data()
12464 ; return 0; }
12466 if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12467 rm -rf conftest*
12468 eval "ac_cv_lib_$ac_lib_var=yes"
12469 else
12470 echo "configure: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12472 rm -rf conftest*
12473 eval "ac_cv_lib_$ac_lib_var=no"
12475 rm -f conftest*
12476 LIBS="$ac_save_LIBS"
12479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12480 echo "$ac_t""yes" 1>&6
12481 LIBS="$LIBS -lk5crypto"
12482 else
12483 echo "$ac_t""no" 1>&6
12487 ########################################################
12488 # now see if we can find the krb5 libs in standard paths
12489 # or as specified above
12490 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12491 echo "configure:12492: checking for krb5_mk_req_extended in -lkrb5" >&5
12492 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12494 echo $ac_n "(cached) $ac_c" 1>&6
12495 else
12496 ac_save_LIBS="$LIBS"
12497 LIBS="-lkrb5 $LIBS"
12498 cat > conftest.$ac_ext <<EOF
12499 #line 12500 "configure"
12500 #include "confdefs.h"
12501 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12504 char krb5_mk_req_extended();
12506 int main() {
12507 krb5_mk_req_extended()
12508 ; return 0; }
12510 if { (eval echo configure:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12511 rm -rf conftest*
12512 eval "ac_cv_lib_$ac_lib_var=yes"
12513 else
12514 echo "configure: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12516 rm -rf conftest*
12517 eval "ac_cv_lib_$ac_lib_var=no"
12519 rm -f conftest*
12520 LIBS="$ac_save_LIBS"
12523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12524 echo "$ac_t""yes" 1>&6
12525 LIBS="$LIBS -lkrb5";
12526 cat >> confdefs.h <<\EOF
12527 #define HAVE_KRB5 1
12530 else
12531 echo "$ac_t""no" 1>&6
12535 ########################################################
12536 # now see if we can find the gssapi libs in standard paths
12537 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12538 echo "configure:12539: checking for gss_display_status in -lgssapi_krb5" >&5
12539 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
12542 else
12543 ac_save_LIBS="$LIBS"
12544 LIBS="-lgssapi_krb5 $LIBS"
12545 cat > conftest.$ac_ext <<EOF
12546 #line 12547 "configure"
12547 #include "confdefs.h"
12548 /* Override any gcc2 internal prototype to avoid an error. */
12549 /* We use char because int might match the return type of a gcc2
12550 builtin and then its argument prototype would still apply. */
12551 char gss_display_status();
12553 int main() {
12554 gss_display_status()
12555 ; return 0; }
12557 if { (eval echo configure:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12558 rm -rf conftest*
12559 eval "ac_cv_lib_$ac_lib_var=yes"
12560 else
12561 echo "configure: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12563 rm -rf conftest*
12564 eval "ac_cv_lib_$ac_lib_var=no"
12566 rm -f conftest*
12567 LIBS="$ac_save_LIBS"
12570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12571 echo "$ac_t""yes" 1>&6
12572 LIBS="$LIBS -lgssapi_krb5";
12573 cat >> confdefs.h <<\EOF
12574 #define HAVE_GSSAPI 1
12577 else
12578 echo "$ac_t""no" 1>&6
12583 ########################################################
12584 # Compile with LDAP support?
12586 with_ldap_support=yes
12587 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12588 echo "configure:12589: checking whether to use LDAP" >&5
12590 # Check whether --with-ldap or --without-ldap was given.
12591 if test "${with_ldap+set}" = set; then
12592 withval="$with_ldap"
12593 case "$withval" in
12595 with_ldap_support=no
12597 esac
12601 echo "$ac_t""$with_ldap_support" 1>&6
12603 if test x"$with_ldap_support" = x"yes"; then
12605 ##################################################################
12606 # we might need the lber lib on some systems. To avoid link errors
12607 # this test must be before the libldap test
12608 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12609 echo "configure:12610: checking for ber_scanf in -llber" >&5
12610 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12613 else
12614 ac_save_LIBS="$LIBS"
12615 LIBS="-llber $LIBS"
12616 cat > conftest.$ac_ext <<EOF
12617 #line 12618 "configure"
12618 #include "confdefs.h"
12619 /* Override any gcc2 internal prototype to avoid an error. */
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622 char ber_scanf();
12624 int main() {
12625 ber_scanf()
12626 ; return 0; }
12628 if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 rm -rf conftest*
12630 eval "ac_cv_lib_$ac_lib_var=yes"
12631 else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635 eval "ac_cv_lib_$ac_lib_var=no"
12637 rm -f conftest*
12638 LIBS="$ac_save_LIBS"
12641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12643 LIBS="$LIBS -llber"
12644 else
12645 echo "$ac_t""no" 1>&6
12649 ########################################################
12650 # now see if we can find the ldap libs in standard paths
12651 if test x$have_ldap != xyes; then
12652 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12653 echo "configure:12654: checking for ldap_domain2hostlist in -lldap" >&5
12654 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12656 echo $ac_n "(cached) $ac_c" 1>&6
12657 else
12658 ac_save_LIBS="$LIBS"
12659 LIBS="-lldap $LIBS"
12660 cat > conftest.$ac_ext <<EOF
12661 #line 12662 "configure"
12662 #include "confdefs.h"
12663 /* Override any gcc2 internal prototype to avoid an error. */
12664 /* We use char because int might match the return type of a gcc2
12665 builtin and then its argument prototype would still apply. */
12666 char ldap_domain2hostlist();
12668 int main() {
12669 ldap_domain2hostlist()
12670 ; return 0; }
12672 if { (eval echo configure:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12673 rm -rf conftest*
12674 eval "ac_cv_lib_$ac_lib_var=yes"
12675 else
12676 echo "configure: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12678 rm -rf conftest*
12679 eval "ac_cv_lib_$ac_lib_var=no"
12681 rm -f conftest*
12682 LIBS="$ac_save_LIBS"
12685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12686 echo "$ac_t""yes" 1>&6
12687 LIBS="$LIBS -lldap";
12688 cat >> confdefs.h <<\EOF
12689 #define HAVE_LDAP 1
12692 else
12693 echo "$ac_t""no" 1>&6
12697 ########################################################
12698 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12699 # Check found in pam_ldap 145.
12700 for ac_func in ldap_set_rebind_proc
12702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12703 echo "configure:12704: checking for $ac_func" >&5
12704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12705 echo $ac_n "(cached) $ac_c" 1>&6
12706 else
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12710 /* System header to define __stub macros and hopefully few prototypes,
12711 which can conflict with char $ac_func(); below. */
12712 #include <assert.h>
12713 /* Override any gcc2 internal prototype to avoid an error. */
12714 /* We use char because int might match the return type of a gcc2
12715 builtin and then its argument prototype would still apply. */
12716 char $ac_func();
12718 int main() {
12720 /* The GNU C library defines this for functions which it implements
12721 to always fail with ENOSYS. Some functions are actually named
12722 something starting with __ and the normal name is an alias. */
12723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12724 choke me
12725 #else
12726 $ac_func();
12727 #endif
12729 ; return 0; }
12731 if { (eval echo configure:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12732 rm -rf conftest*
12733 eval "ac_cv_func_$ac_func=yes"
12734 else
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12737 rm -rf conftest*
12738 eval "ac_cv_func_$ac_func=no"
12740 rm -f conftest*
12743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12744 echo "$ac_t""yes" 1>&6
12745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12746 cat >> confdefs.h <<EOF
12747 #define $ac_tr_func 1
12750 else
12751 echo "$ac_t""no" 1>&6
12753 done
12755 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12756 echo "configure:12757: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12757 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12759 else
12761 cat > conftest.$ac_ext <<EOF
12762 #line 12763 "configure"
12763 #include "confdefs.h"
12765 #include <lber.h>
12766 #include <ldap.h>
12767 int main() {
12768 ldap_set_rebind_proc(0, 0, 0);
12769 ; return 0; }
12771 if { (eval echo configure:12772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12772 rm -rf conftest*
12773 pam_ldap_cv_ldap_set_rebind_proc=3
12774 else
12775 echo "configure: failed program was:" >&5
12776 cat conftest.$ac_ext >&5
12777 rm -rf conftest*
12778 pam_ldap_cv_ldap_set_rebind_proc=2
12780 rm -f conftest*
12783 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12784 cat >> confdefs.h <<EOF
12785 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12791 ########################################################
12792 # Compile with MySQL support?
12793 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
12794 if test "${with_mysql_prefix+set}" = set; then
12795 withval="$with_mysql_prefix"
12796 mysql_prefix="$withval"
12797 else
12798 mysql_prefix=""
12801 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
12802 if test "${with_mysql_exec_prefix+set}" = set; then
12803 withval="$with_mysql_exec_prefix"
12804 mysql_exec_prefix="$withval"
12805 else
12806 mysql_exec_prefix=""
12809 # Check whether --enable-mysqltest or --disable-mysqltest was given.
12810 if test "${enable_mysqltest+set}" = set; then
12811 enableval="$enable_mysqltest"
12813 else
12814 enable_mysqltest=yes
12818 if test x$mysql_exec_prefix != x ; then
12819 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
12820 if test x${MYSQL_CONFIG+set} != xset ; then
12821 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
12824 if test x$mysql_prefix != x ; then
12825 mysql_args="$mysql_args --prefix=$mysql_prefix"
12826 if test x${MYSQL_CONFIG+set} != xset ; then
12827 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
12832 # Extract the first word of "mysql_config", so it can be a program name with args.
12833 set dummy mysql_config; ac_word=$2
12834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12835 echo "configure:12836: checking for $ac_word" >&5
12836 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
12837 echo $ac_n "(cached) $ac_c" 1>&6
12838 else
12839 case "$MYSQL_CONFIG" in
12841 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
12843 ?:/*)
12844 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a dos path.
12847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12848 ac_dummy="$PATH"
12849 for ac_dir in $ac_dummy; do
12850 test -z "$ac_dir" && ac_dir=.
12851 if test -f $ac_dir/$ac_word; then
12852 ac_cv_path_MYSQL_CONFIG="$ac_dir/$ac_word"
12853 break
12855 done
12856 IFS="$ac_save_ifs"
12857 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
12859 esac
12861 MYSQL_CONFIG="$ac_cv_path_MYSQL_CONFIG"
12862 if test -n "$MYSQL_CONFIG"; then
12863 echo "$ac_t""$MYSQL_CONFIG" 1>&6
12864 else
12865 echo "$ac_t""no" 1>&6
12868 min_mysql_version=0.11.0
12869 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
12870 echo "configure:12871: checking for MYSQL - version >= $min_mysql_version" >&5
12871 no_mysql=""
12872 if test "$MYSQL_CONFIG" = "no" ; then
12873 no_mysql=yes
12874 else
12875 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
12876 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
12878 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
12879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12880 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
12881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12882 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
12883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12884 if test "x$enable_mysqltest" = "xyes" ; then
12885 ac_save_CFLAGS="$CFLAGS"
12886 ac_save_LIBS="$LIBS"
12887 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
12888 LIBS="$LIBS $MYSQL_LIBS"
12889 rm -f conf.mysqltest
12890 if test "$cross_compiling" = yes; then
12891 echo $ac_n "cross compiling; assumed OK... $ac_c"
12892 else
12893 cat > conftest.$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12897 #include <stdio.h>
12898 #include <stdlib.h>
12899 #include <string.h>
12900 #include <mysql.h>
12902 char*
12903 my_strdup (char *str)
12905 char *new_str;
12907 if (str)
12909 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12910 strcpy (new_str, str);
12912 else
12913 new_str = NULL;
12915 return new_str;
12918 int main (int argc, char *argv[])
12920 int major, minor, micro;
12921 char *tmp_version;
12923 /* This hangs on some systems (?)
12924 system ("touch conf.mysqltest");
12926 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
12928 /* HP/UX 9 (%@#!) writes to sscanf strings */
12929 tmp_version = my_strdup("$min_mysql_version");
12930 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12931 printf("%s, bad version string\n", "$min_mysql_version");
12932 exit(1);
12935 if (($mysql_major_version > major) ||
12936 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
12937 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
12939 return 0;
12941 else
12943 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
12944 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
12945 printf("*** best to upgrade to the required version.\n");
12946 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
12947 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
12948 printf("*** config.cache before re-running configure\n");
12949 return 1;
12955 if { (eval echo configure:12956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12956 then
12958 else
12959 echo "configure: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12961 rm -fr conftest*
12962 no_mysql=yes
12964 rm -fr conftest*
12967 CFLAGS="$ac_save_CFLAGS"
12968 LIBS="$ac_save_LIBS"
12971 if test "x$no_mysql" = x ; then
12972 echo "$ac_t""yes" 1>&6
12973 MODULE_MYSQL=bin/mysql.so
12974 else
12975 echo "$ac_t""no" 1>&6
12976 if test "$MYSQL_CONFIG" = "no" ; then
12977 echo "*** The mysql_config script installed by MYSQL could not be found"
12978 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
12979 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
12980 echo "*** full path to mysql_config."
12981 else
12982 if test -f conf.mysqltest ; then
12984 else
12985 echo "*** Could not run MYSQL test program, checking why..."
12986 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
12987 LIBS="$LIBS $MYSQL_LIBS"
12988 cat > conftest.$ac_ext <<EOF
12989 #line 12990 "configure"
12990 #include "confdefs.h"
12992 #include <stdio.h>
12993 #include <mysql.h>
12995 int main(int argc, char *argv[])
12996 { return 0; }
12997 #undef main
12998 #define main K_and_R_C_main
13000 int main() {
13001 return 0;
13002 ; return 0; }
13004 if { (eval echo configure:13005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13005 rm -rf conftest*
13006 echo "*** The test program compiled, but did not run. This usually means"
13007 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13008 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13009 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13010 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13011 echo "*** is required on your system"
13012 echo "***"
13013 echo "*** If you have an old version installed, it is best to remove it, although"
13014 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13015 else
13016 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 rm -rf conftest*
13019 echo "*** The test program failed to compile or link. See the file config.log for the"
13020 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13021 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13022 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13024 rm -f conftest*
13025 CFLAGS="$ac_save_CFLAGS"
13026 LIBS="$ac_save_LIBS"
13029 MYSQL_CFLAGS=""
13030 MYSQL_LIBS=""
13031 MODULE_MYSQL=
13035 rm -f conf.mysqltest
13037 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13040 ########################################################
13041 # Compile with XML support?
13043 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13044 if test "${with_xml_prefix+set}" = set; then
13045 withval="$with_xml_prefix"
13046 xml_config_prefix="$withval"
13047 else
13048 xml_config_prefix=""
13051 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13052 if test "${with_xml_exec_prefix+set}" = set; then
13053 withval="$with_xml_exec_prefix"
13054 xml_config_exec_prefix="$withval"
13055 else
13056 xml_config_exec_prefix=""
13059 # Check whether --enable-xmltest or --disable-xmltest was given.
13060 if test "${enable_xmltest+set}" = set; then
13061 enableval="$enable_xmltest"
13063 else
13064 enable_xmltest=yes
13068 if test x$xml_config_exec_prefix != x ; then
13069 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13070 if test x${XML2_CONFIG+set} != xset ; then
13071 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
13074 if test x$xml_config_prefix != x ; then
13075 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
13076 if test x${XML2_CONFIG+set} != xset ; then
13077 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
13081 # Extract the first word of "xml2-config", so it can be a program name with args.
13082 set dummy xml2-config; ac_word=$2
13083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13084 echo "configure:13085: checking for $ac_word" >&5
13085 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13086 echo $ac_n "(cached) $ac_c" 1>&6
13087 else
13088 case "$XML2_CONFIG" in
13090 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
13092 ?:/*)
13093 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a dos path.
13096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13097 ac_dummy="$PATH"
13098 for ac_dir in $ac_dummy; do
13099 test -z "$ac_dir" && ac_dir=.
13100 if test -f $ac_dir/$ac_word; then
13101 ac_cv_path_XML2_CONFIG="$ac_dir/$ac_word"
13102 break
13104 done
13105 IFS="$ac_save_ifs"
13106 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
13108 esac
13110 XML2_CONFIG="$ac_cv_path_XML2_CONFIG"
13111 if test -n "$XML2_CONFIG"; then
13112 echo "$ac_t""$XML2_CONFIG" 1>&6
13113 else
13114 echo "$ac_t""no" 1>&6
13117 min_xml_version=2.0.0
13118 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13119 echo "configure:13120: checking for libxml - version >= $min_xml_version" >&5
13120 no_xml=""
13121 if test "$XML2_CONFIG" = "no" ; then
13122 no_xml=yes
13123 else
13124 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
13125 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
13126 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
13127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13128 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
13129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13130 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
13131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13132 if test "x$enable_xmltest" = "xyes" ; then
13133 ac_save_CFLAGS="$CFLAGS"
13134 ac_save_LIBS="$LIBS"
13135 CFLAGS="$CFLAGS $XML_CFLAGS"
13136 LIBS="$XML_LIBS $LIBS"
13137 rm -f conf.xmltest
13138 if test "$cross_compiling" = yes; then
13139 echo $ac_n "cross compiling; assumed OK... $ac_c"
13140 else
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13145 #include <stdlib.h>
13146 #include <stdio.h>
13147 #include <string.h>
13148 #include <libxml/xmlversion.h>
13150 int
13151 main()
13153 int xml_major_version, xml_minor_version, xml_micro_version;
13154 int major, minor, micro;
13155 char *tmp_version;
13157 system("touch conf.xmltest");
13159 /* Capture xml2-config output via autoconf/configure variables */
13160 /* HP/UX 9 (%@#!) writes to sscanf strings */
13161 tmp_version = (char *)strdup("$min_xml_version");
13162 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13163 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13164 exit(1);
13166 free(tmp_version);
13168 /* Capture the version information from the header files */
13169 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13170 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13171 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13172 exit(1);
13174 free(tmp_version);
13176 /* Compare xml2-config output to the libxml headers */
13177 if ((xml_major_version != $xml_config_major_version) ||
13178 (xml_minor_version != $xml_config_minor_version) ||
13179 (xml_micro_version != $xml_config_micro_version))
13181 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13182 xml_major_version, xml_minor_version, xml_micro_version);
13183 printf("*** xml2-config (version %d.%d.%d)\n",
13184 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13185 return 1;
13187 /* Compare the headers to the library to make sure we match */
13188 /* Less than ideal -- doesn't provide us with return value feedback,
13189 * only exits if there's a serious mismatch between header and library.
13191 LIBXML_TEST_VERSION;
13193 /* Test that the library is greater than our minimum version */
13194 if ((xml_major_version > major) ||
13195 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13196 ((xml_major_version == major) && (xml_minor_version == minor) &&
13197 (xml_micro_version >= micro)))
13199 return 0;
13201 else
13203 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13204 xml_major_version, xml_minor_version, xml_micro_version);
13205 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13206 major, minor, micro);
13207 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13208 printf("***\n");
13209 printf("*** If you have already installed a sufficiently new version, this error\n");
13210 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13211 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13212 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13213 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13214 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13215 printf("*** so that the correct libraries are found at run-time))\n");
13217 return 1;
13221 if { (eval echo configure:13222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13222 then
13224 else
13225 echo "configure: failed program was:" >&5
13226 cat conftest.$ac_ext >&5
13227 rm -fr conftest*
13228 no_xml=yes
13230 rm -fr conftest*
13233 CFLAGS="$ac_save_CFLAGS"
13234 LIBS="$ac_save_LIBS"
13238 if test "x$no_xml" = x ; then
13239 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13240 MODULE_XML=bin/xml.so
13241 else
13242 echo "$ac_t""no" 1>&6
13243 if test "$XML2_CONFIG" = "no" ; then
13244 echo "*** The xml2-config script installed by LIBXML could not be found"
13245 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13246 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13247 echo "*** full path to xml2-config."
13248 else
13249 if test -f conf.xmltest ; then
13251 else
13252 echo "*** Could not run libxml test program, checking why..."
13253 CFLAGS="$CFLAGS $XML_CFLAGS"
13254 LIBS="$LIBS $XML_LIBS"
13255 cat > conftest.$ac_ext <<EOF
13256 #line 13257 "configure"
13257 #include "confdefs.h"
13259 #include <libxml/xmlversion.h>
13260 #include <stdio.h>
13262 int main() {
13263 LIBXML_TEST_VERSION; return 0;
13264 ; return 0; }
13266 if { (eval echo configure:13267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13267 rm -rf conftest*
13268 echo "*** The test program compiled, but did not run. This usually means"
13269 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13270 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13271 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13272 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13273 echo "*** is required on your system"
13274 echo "***"
13275 echo "*** If you have an old version installed, it is best to remove it, although"
13276 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13277 else
13278 echo "configure: failed program was:" >&5
13279 cat conftest.$ac_ext >&5
13280 rm -rf conftest*
13281 echo "*** The test program failed to compile or link. See the file config.log for the"
13282 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13283 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13284 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13286 rm -f conftest*
13287 CFLAGS="$ac_save_CFLAGS"
13288 LIBS="$ac_save_LIBS"
13292 XML_CFLAGS=""
13293 XML_LIBS=""
13294 MODULE_XML=
13298 rm -f conf.xmltest
13300 CFLAGS="$CFLAGS $XML_CFLAGS"
13303 #################################################
13304 # check for automount support
13305 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13306 echo "configure:13307: checking whether to use automount" >&5
13307 # Check whether --with-automount or --without-automount was given.
13308 if test "${with_automount+set}" = set; then
13309 withval="$with_automount"
13310 case "$withval" in
13311 yes)
13312 echo "$ac_t""yes" 1>&6
13313 cat >> confdefs.h <<\EOF
13314 #define WITH_AUTOMOUNT 1
13319 echo "$ac_t""no" 1>&6
13321 esac
13322 else
13323 echo "$ac_t""no" 1>&6
13328 #################################################
13329 # check for smbmount support
13330 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13331 echo "configure:13332: checking whether to use smbmount" >&5
13332 # Check whether --with-smbmount or --without-smbmount was given.
13333 if test "${with_smbmount+set}" = set; then
13334 withval="$with_smbmount"
13335 case "$withval" in
13336 yes)
13337 case "$host_os" in
13338 *linux*)
13339 echo "$ac_t""yes" 1>&6
13340 cat >> confdefs.h <<\EOF
13341 #define WITH_SMBMOUNT 1
13344 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13347 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13349 esac
13352 echo "$ac_t""no" 1>&6
13354 esac
13355 else
13356 echo "$ac_t""no" 1>&6
13362 #################################################
13363 # check for a PAM clear-text auth, accounts, password and session support
13364 with_pam_for_crypt=no
13365 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13366 echo "configure:13367: checking whether to use PAM" >&5
13367 # Check whether --with-pam or --without-pam was given.
13368 if test "${with_pam+set}" = set; then
13369 withval="$with_pam"
13370 case "$withval" in
13371 yes)
13372 echo "$ac_t""yes" 1>&6
13373 cat >> confdefs.h <<\EOF
13374 #define WITH_PAM 1
13377 AUTHLIBS="$AUTHLIBS -lpam"
13378 with_pam_for_crypt=yes
13381 echo "$ac_t""no" 1>&6
13383 esac
13384 else
13385 echo "$ac_t""no" 1>&6
13390 # we can't build a pam module if we don't have pam.
13391 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13392 echo "configure:13393: checking for pam_get_data in -lpam" >&5
13393 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13395 echo $ac_n "(cached) $ac_c" 1>&6
13396 else
13397 ac_save_LIBS="$LIBS"
13398 LIBS="-lpam $LIBS"
13399 cat > conftest.$ac_ext <<EOF
13400 #line 13401 "configure"
13401 #include "confdefs.h"
13402 /* Override any gcc2 internal prototype to avoid an error. */
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13405 char pam_get_data();
13407 int main() {
13408 pam_get_data()
13409 ; return 0; }
13411 if { (eval echo configure:13412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13412 rm -rf conftest*
13413 eval "ac_cv_lib_$ac_lib_var=yes"
13414 else
13415 echo "configure: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13417 rm -rf conftest*
13418 eval "ac_cv_lib_$ac_lib_var=no"
13420 rm -f conftest*
13421 LIBS="$ac_save_LIBS"
13424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13425 echo "$ac_t""yes" 1>&6
13426 cat >> confdefs.h <<\EOF
13427 #define HAVE_LIBPAM 1
13430 else
13431 echo "$ac_t""no" 1>&6
13435 #################################################
13436 # check for pam_smbpass support
13437 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13438 echo "configure:13439: checking whether to use pam_smbpass" >&5
13439 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13440 if test "${with_pam_smbpass+set}" = set; then
13441 withval="$with_pam_smbpass"
13442 case "$withval" in
13443 yes)
13444 echo "$ac_t""yes" 1>&6
13446 # Conditions under which pam_smbpass should not be built.
13448 if test x$PICFLAG = x; then
13449 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13450 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
13451 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13452 else
13453 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
13457 echo "$ac_t""no" 1>&6
13459 esac
13460 else
13461 echo "$ac_t""no" 1>&6
13467 ###############################################
13468 # test for where we get crypt() from, but only
13469 # if not using PAM
13470 if test x"$with_pam_for_crypt" = x"no"; then
13471 for ac_func in crypt
13473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13474 echo "configure:13475: checking for $ac_func" >&5
13475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13476 echo $ac_n "(cached) $ac_c" 1>&6
13477 else
13478 cat > conftest.$ac_ext <<EOF
13479 #line 13480 "configure"
13480 #include "confdefs.h"
13481 /* System header to define __stub macros and hopefully few prototypes,
13482 which can conflict with char $ac_func(); below. */
13483 #include <assert.h>
13484 /* Override any gcc2 internal prototype to avoid an error. */
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13487 char $ac_func();
13489 int main() {
13491 /* The GNU C library defines this for functions which it implements
13492 to always fail with ENOSYS. Some functions are actually named
13493 something starting with __ and the normal name is an alias. */
13494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13495 choke me
13496 #else
13497 $ac_func();
13498 #endif
13500 ; return 0; }
13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503 rm -rf conftest*
13504 eval "ac_cv_func_$ac_func=yes"
13505 else
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 rm -rf conftest*
13509 eval "ac_cv_func_$ac_func=no"
13511 rm -f conftest*
13514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13515 echo "$ac_t""yes" 1>&6
13516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13517 cat >> confdefs.h <<EOF
13518 #define $ac_tr_func 1
13521 else
13522 echo "$ac_t""no" 1>&6
13524 done
13526 if test x"$ac_cv_func_crypt" = x"no"; then
13527 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13528 echo "configure:13529: checking for crypt in -lcrypt" >&5
13529 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13531 echo $ac_n "(cached) $ac_c" 1>&6
13532 else
13533 ac_save_LIBS="$LIBS"
13534 LIBS="-lcrypt $LIBS"
13535 cat > conftest.$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13538 /* Override any gcc2 internal prototype to avoid an error. */
13539 /* We use char because int might match the return type of a gcc2
13540 builtin and then its argument prototype would still apply. */
13541 char crypt();
13543 int main() {
13544 crypt()
13545 ; return 0; }
13547 if { (eval echo configure:13548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13548 rm -rf conftest*
13549 eval "ac_cv_lib_$ac_lib_var=yes"
13550 else
13551 echo "configure: failed program was:" >&5
13552 cat conftest.$ac_ext >&5
13553 rm -rf conftest*
13554 eval "ac_cv_lib_$ac_lib_var=no"
13556 rm -f conftest*
13557 LIBS="$ac_save_LIBS"
13560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13561 echo "$ac_t""yes" 1>&6
13562 AUTHLIBS="$AUTHLIBS -lcrypt";
13563 cat >> confdefs.h <<\EOF
13564 #define HAVE_CRYPT 1
13567 else
13568 echo "$ac_t""no" 1>&6
13575 ## moved after the check for -lcrypt in order to
13576 ## ensure that the necessary libraries are included
13577 ## check checking for truncated salt. Wrapped by the
13578 ## $with_pam_for_crypt variable as above --jerry
13580 if test $with_pam_for_crypt = no; then
13581 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13582 echo "configure:13583: checking for a crypt that needs truncated salt" >&5
13583 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13584 echo $ac_n "(cached) $ac_c" 1>&6
13585 else
13587 crypt_LIBS="$LIBS"
13588 LIBS="$AUTHLIBS $LIBS"
13589 if test "$cross_compiling" = yes; then
13590 samba_cv_HAVE_TRUNCATED_SALT=cross
13591 else
13592 cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13595 #include "${srcdir-.}/tests/crypttest.c"
13597 if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13598 then
13599 samba_cv_HAVE_TRUNCATED_SALT=no
13600 else
13601 echo "configure: failed program was:" >&5
13602 cat conftest.$ac_ext >&5
13603 rm -fr conftest*
13604 samba_cv_HAVE_TRUNCATED_SALT=yes
13606 rm -fr conftest*
13609 LIBS="$crypt_LIBS"
13612 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
13613 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
13614 cat >> confdefs.h <<\EOF
13615 #define HAVE_TRUNCATED_SALT 1
13621 # New experimental SAM system
13623 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
13624 echo "configure:13625: checking whether to build the new (experimental) SAM database" >&5
13625 # Check whether --with-sam or --without-sam was given.
13626 if test "${with_sam+set}" = set; then
13627 withval="$with_sam"
13628 case "$withval" in
13629 yes)
13630 echo "$ac_t""yes" 1>&6
13631 cat >> confdefs.h <<\EOF
13632 #define WITH_SAM 1
13637 echo "$ac_t""no" 1>&6
13639 esac
13640 else
13641 echo "$ac_t""no" 1>&6
13647 ########################################################################################
13649 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
13651 ########################################################################################
13653 #################################################
13654 # check for a LDAP password database configuration backwards compatibility
13655 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
13656 echo "configure:13657: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
13657 # Check whether --with-ldapsam or --without-ldapsam was given.
13658 if test "${with_ldapsam+set}" = set; then
13659 withval="$with_ldapsam"
13660 case "$withval" in
13661 yes)
13662 echo "$ac_t""yes" 1>&6
13663 cat >> confdefs.h <<\EOF
13664 #define WITH_LDAP_SAMCONFIG 1
13669 echo "$ac_t""no" 1>&6
13671 esac
13672 else
13673 echo "$ac_t""no" 1>&6
13678 #################################################
13679 # check for a TDB password database
13680 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
13681 echo "configure:13682: checking whether to use TDB SAM database" >&5
13682 # Check whether --with-tdbsam or --without-tdbsam was given.
13683 if test "${with_tdbsam+set}" = set; then
13684 withval="$with_tdbsam"
13685 case "$withval" in
13686 yes)
13687 echo "$ac_t""yes" 1>&6
13688 cat >> confdefs.h <<\EOF
13689 #define WITH_TDB_SAM 1
13694 echo "$ac_t""no" 1>&6
13696 esac
13697 else
13698 echo "$ac_t""no" 1>&6
13703 #################################################
13704 # check for a NISPLUS password database
13705 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
13706 echo "configure:13707: checking whether to use NISPLUS SAM database" >&5
13707 # Check whether --with-nisplussam or --without-nisplussam was given.
13708 if test "${with_nisplussam+set}" = set; then
13709 withval="$with_nisplussam"
13710 case "$withval" in
13711 yes)
13712 echo "$ac_t""yes" 1>&6
13713 cat >> confdefs.h <<\EOF
13714 #define WITH_NISPLUS_SAM 1
13719 echo "$ac_t""no" 1>&6
13721 esac
13722 else
13723 echo "$ac_t""no" 1>&6
13728 ########################################################################################
13730 ## END OF TESTS FOR SAM BACKENDS.
13732 ########################################################################################
13734 #################################################
13735 # check for a NISPLUS_HOME support
13736 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
13737 echo "configure:13738: checking whether to use NISPLUS_HOME" >&5
13738 # Check whether --with-nisplus-home or --without-nisplus-home was given.
13739 if test "${with_nisplus_home+set}" = set; then
13740 withval="$with_nisplus_home"
13741 case "$withval" in
13742 yes)
13743 echo "$ac_t""yes" 1>&6
13744 cat >> confdefs.h <<\EOF
13745 #define WITH_NISPLUS_HOME 1
13750 echo "$ac_t""no" 1>&6
13752 esac
13753 else
13754 echo "$ac_t""no" 1>&6
13759 #################################################
13760 # check for syslog logging
13761 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
13762 echo "configure:13763: checking whether to use syslog logging" >&5
13763 # Check whether --with-syslog or --without-syslog was given.
13764 if test "${with_syslog+set}" = set; then
13765 withval="$with_syslog"
13766 case "$withval" in
13767 yes)
13768 echo "$ac_t""yes" 1>&6
13769 cat >> confdefs.h <<\EOF
13770 #define WITH_SYSLOG 1
13775 echo "$ac_t""no" 1>&6
13777 esac
13778 else
13779 echo "$ac_t""no" 1>&6
13784 #################################################
13785 # check for a shared memory profiling support
13786 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
13787 echo "configure:13788: checking whether to use profiling" >&5
13788 # Check whether --with-profiling-data or --without-profiling-data was given.
13789 if test "${with_profiling_data+set}" = set; then
13790 withval="$with_profiling_data"
13791 case "$withval" in
13792 yes)
13793 echo "$ac_t""yes" 1>&6
13794 cat >> confdefs.h <<\EOF
13795 #define WITH_PROFILE 1
13800 echo "$ac_t""no" 1>&6
13802 esac
13803 else
13804 echo "$ac_t""no" 1>&6
13810 #################################################
13811 # check for experimental disk-quotas support
13812 QUOTAOBJS=smbd/noquotas.o
13814 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13815 echo "configure:13816: checking whether to support disk-quotas" >&5
13816 # Check whether --with-quotas or --without-quotas was given.
13817 if test "${with_quotas+set}" = set; then
13818 withval="$with_quotas"
13819 case "$withval" in
13820 yes)
13821 echo "$ac_t""yes" 1>&6
13822 case "$host_os" in
13823 *linux*)
13824 # Check for kernel 2.4.x quota braindamage...
13825 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13826 echo "configure:13827: checking for linux 2.4.x quota braindamage.." >&5
13827 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13828 echo $ac_n "(cached) $ac_c" 1>&6
13829 else
13831 cat > conftest.$ac_ext <<EOF
13832 #line 13833 "configure"
13833 #include "confdefs.h"
13834 #include <stdio.h>
13835 #include <sys/types.h>
13836 #include <asm/types.h>
13837 #include <linux/quota.h>
13838 #include <mntent.h>
13839 #include <linux/unistd.h>
13840 int main() {
13841 struct mem_dqblk D;
13842 ; return 0; }
13844 if { (eval echo configure:13845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13845 rm -rf conftest*
13846 samba_cv_linux_2_4_quota_braindamage=yes
13847 else
13848 echo "configure: failed program was:" >&5
13849 cat conftest.$ac_ext >&5
13850 rm -rf conftest*
13851 samba_cv_linux_2_4_quota_braindamage=no
13853 rm -f conftest*
13856 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13857 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13858 cat >> confdefs.h <<\EOF
13859 #define LINUX_QUOTAS_2 1
13862 else
13863 cat >> confdefs.h <<\EOF
13864 #define LINUX_QUOTAS_1 1
13871 esac
13872 QUOTAOBJS=smbd/quotas.o
13873 cat >> confdefs.h <<\EOF
13874 #define WITH_QUOTAS 1
13879 echo "$ac_t""no" 1>&6
13881 esac
13882 else
13883 echo "$ac_t""no" 1>&6
13889 #################################################
13890 # check for experimental utmp accounting
13892 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13893 echo "configure:13894: checking whether to support utmp accounting" >&5
13894 # Check whether --with-utmp or --without-utmp was given.
13895 if test "${with_utmp+set}" = set; then
13896 withval="$with_utmp"
13897 case "$withval" in
13898 yes)
13899 echo "$ac_t""yes" 1>&6
13900 cat >> confdefs.h <<\EOF
13901 #define WITH_UTMP 1
13906 echo "$ac_t""no" 1>&6
13908 esac
13909 else
13910 echo "$ac_t""no" 1>&6
13915 #################################################
13916 # choose native language(s) of man pages
13917 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13918 echo "configure:13919: checking chosen man pages' language(s)" >&5
13919 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13920 if test "${with_manpages_langs+set}" = set; then
13921 withval="$with_manpages_langs"
13922 case "$withval" in
13923 yes|no)
13924 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13925 manlangs="en"
13928 manlangs="$withval"
13930 esac
13932 echo "$ac_t""$manlangs" 1>&6
13933 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
13935 else
13936 manlangs="en"
13937 echo "$ac_t""$manlangs" 1>&6
13943 #################################################
13944 # should we build libsmbclient?
13946 LIBSMBCLIENT_SHARED=
13947 LIBSMBCLIENT=
13948 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13949 echo "configure:13950: checking whether to build the libsmbclient shared library" >&5
13950 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13951 if test "${with_libsmbclient+set}" = set; then
13952 withval="$with_libsmbclient"
13953 case "$withval" in
13954 no)
13955 echo "$ac_t""no" 1>&6
13958 if test $BLDSHARED = true; then
13959 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13960 LIBSMBCLIENT=libsmbclient
13961 echo "$ac_t""yes" 1>&6
13962 else
13963 echo "$ac_t""no shared library support" 1>&6
13966 esac
13967 else
13968 echo "$ac_t""yes" 1>&6
13974 #################################################
13975 # these tests are taken from the GNU fileutils package
13976 echo "checking how to get filesystem space usage" 1>&6
13977 echo "configure:13978: checking how to get filesystem space usage" >&5
13978 space=no
13980 # Test for statvfs64.
13981 if test $space = no; then
13982 # SVR4
13983 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13984 echo "configure:13985: checking statvfs64 function (SVR4)" >&5
13985 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13986 echo $ac_n "(cached) $ac_c" 1>&6
13987 else
13988 if test "$cross_compiling" = yes; then
13989 fu_cv_sys_stat_statvfs64=cross
13990 else
13991 cat > conftest.$ac_ext <<EOF
13992 #line 13993 "configure"
13993 #include "confdefs.h"
13995 #if defined(HAVE_UNISTD_H)
13996 #include <unistd.h>
13997 #endif
13998 #include <sys/types.h>
13999 #include <sys/statvfs.h>
14000 main ()
14002 struct statvfs64 fsd;
14003 exit (statvfs64 (".", &fsd));
14006 if { (eval echo configure:14007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14007 then
14008 fu_cv_sys_stat_statvfs64=yes
14009 else
14010 echo "configure: failed program was:" >&5
14011 cat conftest.$ac_ext >&5
14012 rm -fr conftest*
14013 fu_cv_sys_stat_statvfs64=no
14015 rm -fr conftest*
14020 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
14021 if test $fu_cv_sys_stat_statvfs64 = yes; then
14022 space=yes
14023 cat >> confdefs.h <<\EOF
14024 #define STAT_STATVFS64 1
14030 # Perform only the link test since it seems there are no variants of the
14031 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14032 # because that got a false positive on SCO OSR5. Adding the declaration
14033 # of a `struct statvfs' causes this test to fail (as it should) on such
14034 # systems. That system is reported to work fine with STAT_STATFS4 which
14035 # is what it gets when this test fails.
14036 if test $space = no; then
14037 # SVR4
14038 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14039 echo "configure:14040: checking statvfs function (SVR4)" >&5
14040 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
14042 else
14043 cat > conftest.$ac_ext <<EOF
14044 #line 14045 "configure"
14045 #include "confdefs.h"
14046 #include <sys/types.h>
14047 #include <sys/statvfs.h>
14048 int main() {
14049 struct statvfs fsd; statvfs (0, &fsd);
14050 ; return 0; }
14052 if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14053 rm -rf conftest*
14054 fu_cv_sys_stat_statvfs=yes
14055 else
14056 echo "configure: failed program was:" >&5
14057 cat conftest.$ac_ext >&5
14058 rm -rf conftest*
14059 fu_cv_sys_stat_statvfs=no
14061 rm -f conftest*
14064 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14065 if test $fu_cv_sys_stat_statvfs = yes; then
14066 space=yes
14067 cat >> confdefs.h <<\EOF
14068 #define STAT_STATVFS 1
14074 if test $space = no; then
14075 # DEC Alpha running OSF/1
14076 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14077 echo "configure:14078: checking for 3-argument statfs function (DEC OSF/1)" >&5
14078 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
14080 else
14081 if test "$cross_compiling" = yes; then
14082 fu_cv_sys_stat_statfs3_osf1=no
14083 else
14084 cat > conftest.$ac_ext <<EOF
14085 #line 14086 "configure"
14086 #include "confdefs.h"
14088 #include <sys/param.h>
14089 #include <sys/types.h>
14090 #include <sys/mount.h>
14091 main ()
14093 struct statfs fsd;
14094 fsd.f_fsize = 0;
14095 exit (statfs (".", &fsd, sizeof (struct statfs)));
14098 if { (eval echo configure:14099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14099 then
14100 fu_cv_sys_stat_statfs3_osf1=yes
14101 else
14102 echo "configure: failed program was:" >&5
14103 cat conftest.$ac_ext >&5
14104 rm -fr conftest*
14105 fu_cv_sys_stat_statfs3_osf1=no
14107 rm -fr conftest*
14112 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14113 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14114 space=yes
14115 cat >> confdefs.h <<\EOF
14116 #define STAT_STATFS3_OSF1 1
14122 if test $space = no; then
14123 # AIX
14124 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14125 echo "configure:14126: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14126 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14127 echo $ac_n "(cached) $ac_c" 1>&6
14128 else
14129 if test "$cross_compiling" = yes; then
14130 fu_cv_sys_stat_statfs2_bsize=no
14131 else
14132 cat > conftest.$ac_ext <<EOF
14133 #line 14134 "configure"
14134 #include "confdefs.h"
14136 #ifdef HAVE_SYS_PARAM_H
14137 #include <sys/param.h>
14138 #endif
14139 #ifdef HAVE_SYS_MOUNT_H
14140 #include <sys/mount.h>
14141 #endif
14142 #ifdef HAVE_SYS_VFS_H
14143 #include <sys/vfs.h>
14144 #endif
14145 main ()
14147 struct statfs fsd;
14148 fsd.f_bsize = 0;
14149 exit (statfs (".", &fsd));
14152 if { (eval echo configure:14153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14153 then
14154 fu_cv_sys_stat_statfs2_bsize=yes
14155 else
14156 echo "configure: failed program was:" >&5
14157 cat conftest.$ac_ext >&5
14158 rm -fr conftest*
14159 fu_cv_sys_stat_statfs2_bsize=no
14161 rm -fr conftest*
14166 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14167 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14168 space=yes
14169 cat >> confdefs.h <<\EOF
14170 #define STAT_STATFS2_BSIZE 1
14176 if test $space = no; then
14177 # SVR3
14178 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14179 echo "configure:14180: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14180 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14181 echo $ac_n "(cached) $ac_c" 1>&6
14182 else
14183 if test "$cross_compiling" = yes; then
14184 fu_cv_sys_stat_statfs4=no
14185 else
14186 cat > conftest.$ac_ext <<EOF
14187 #line 14188 "configure"
14188 #include "confdefs.h"
14189 #include <sys/types.h>
14190 #include <sys/statfs.h>
14191 main ()
14193 struct statfs fsd;
14194 exit (statfs (".", &fsd, sizeof fsd, 0));
14197 if { (eval echo configure:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14198 then
14199 fu_cv_sys_stat_statfs4=yes
14200 else
14201 echo "configure: failed program was:" >&5
14202 cat conftest.$ac_ext >&5
14203 rm -fr conftest*
14204 fu_cv_sys_stat_statfs4=no
14206 rm -fr conftest*
14211 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14212 if test $fu_cv_sys_stat_statfs4 = yes; then
14213 space=yes
14214 cat >> confdefs.h <<\EOF
14215 #define STAT_STATFS4 1
14221 if test $space = no; then
14222 # 4.4BSD and NetBSD
14223 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14224 echo "configure:14225: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14225 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14226 echo $ac_n "(cached) $ac_c" 1>&6
14227 else
14228 if test "$cross_compiling" = yes; then
14229 fu_cv_sys_stat_statfs2_fsize=no
14230 else
14231 cat > conftest.$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14234 #include <sys/types.h>
14235 #ifdef HAVE_SYS_PARAM_H
14236 #include <sys/param.h>
14237 #endif
14238 #ifdef HAVE_SYS_MOUNT_H
14239 #include <sys/mount.h>
14240 #endif
14241 main ()
14243 struct statfs fsd;
14244 fsd.f_fsize = 0;
14245 exit (statfs (".", &fsd));
14248 if { (eval echo configure:14249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14249 then
14250 fu_cv_sys_stat_statfs2_fsize=yes
14251 else
14252 echo "configure: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14254 rm -fr conftest*
14255 fu_cv_sys_stat_statfs2_fsize=no
14257 rm -fr conftest*
14262 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14263 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14264 space=yes
14265 cat >> confdefs.h <<\EOF
14266 #define STAT_STATFS2_FSIZE 1
14272 if test $space = no; then
14273 # Ultrix
14274 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14275 echo "configure:14276: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14276 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14277 echo $ac_n "(cached) $ac_c" 1>&6
14278 else
14279 if test "$cross_compiling" = yes; then
14280 fu_cv_sys_stat_fs_data=no
14281 else
14282 cat > conftest.$ac_ext <<EOF
14283 #line 14284 "configure"
14284 #include "confdefs.h"
14285 #include <sys/types.h>
14286 #ifdef HAVE_SYS_PARAM_H
14287 #include <sys/param.h>
14288 #endif
14289 #ifdef HAVE_SYS_MOUNT_H
14290 #include <sys/mount.h>
14291 #endif
14292 #ifdef HAVE_SYS_FS_TYPES_H
14293 #include <sys/fs_types.h>
14294 #endif
14295 main ()
14297 struct fs_data fsd;
14298 /* Ultrix's statfs returns 1 for success,
14299 0 for not mounted, -1 for failure. */
14300 exit (statfs (".", &fsd) != 1);
14303 if { (eval echo configure:14304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14304 then
14305 fu_cv_sys_stat_fs_data=yes
14306 else
14307 echo "configure: failed program was:" >&5
14308 cat conftest.$ac_ext >&5
14309 rm -fr conftest*
14310 fu_cv_sys_stat_fs_data=no
14312 rm -fr conftest*
14317 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14318 if test $fu_cv_sys_stat_fs_data = yes; then
14319 space=yes
14320 cat >> confdefs.h <<\EOF
14321 #define STAT_STATFS2_FS_DATA 1
14328 # As a gating factor for large file support, in order to
14329 # use <4GB files we must have the following minimal support
14330 # available.
14331 # long long, and a 64 bit off_t or off64_t.
14332 # If we don't have all of these then disable large
14333 # file support.
14335 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14336 echo "configure:14337: checking if large file support can be enabled" >&5
14337 cat > conftest.$ac_ext <<EOF
14338 #line 14339 "configure"
14339 #include "confdefs.h"
14341 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14342 #include <sys/types.h>
14343 #else
14344 __COMPILE_ERROR_
14345 #endif
14347 int main() {
14348 int i
14349 ; return 0; }
14351 if { (eval echo configure:14352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14352 rm -rf conftest*
14353 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
14354 else
14355 echo "configure: failed program was:" >&5
14356 cat conftest.$ac_ext >&5
14357 rm -rf conftest*
14358 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
14360 rm -f conftest*
14361 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
14362 cat >> confdefs.h <<\EOF
14363 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14367 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14369 # Check whether --with-spinlocks or --without-spinlocks was given.
14370 if test "${with_spinlocks+set}" = set; then
14371 withval="$with_spinlocks"
14375 if test "x$with_spinlocks" = "xyes"; then
14376 cat >> confdefs.h <<\EOF
14377 #define USE_SPINLOCKS 1
14381 case "$host_cpu" in
14382 sparc)
14383 cat >> confdefs.h <<\EOF
14384 #define SPARC_SPINLOCKS 1
14389 i386|i486|i586|i686)
14390 cat >> confdefs.h <<\EOF
14391 #define INTEL_SPINLOCKS 1
14396 mips)
14397 cat >> confdefs.h <<\EOF
14398 #define MIPS_SPINLOCKS 1
14403 powerpc)
14404 cat >> confdefs.h <<\EOF
14405 #define POWERPC_SPINLOCKS 1
14409 esac
14412 #################################################
14413 # check for ACL support
14415 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14416 echo "configure:14417: checking whether to support ACLs" >&5
14417 # Check whether --with-acl-support or --without-acl-support was given.
14418 if test "${with_acl_support+set}" = set; then
14419 withval="$with_acl_support"
14420 case "$withval" in
14421 yes)
14423 case "$host_os" in
14424 *sysv5*)
14425 echo "$ac_t""Using UnixWare ACLs" 1>&6
14426 cat >> confdefs.h <<\EOF
14427 #define HAVE_UNIXWARE_ACLS 1
14431 *solaris*)
14432 echo "$ac_t""Using solaris ACLs" 1>&6
14433 cat >> confdefs.h <<\EOF
14434 #define HAVE_SOLARIS_ACLS 1
14438 *hpux*)
14439 echo "$ac_t""Using HPUX ACLs" 1>&6
14440 cat >> confdefs.h <<\EOF
14441 #define HAVE_HPUX_ACLS 1
14445 *irix*)
14446 echo "$ac_t""Using IRIX ACLs" 1>&6
14447 cat >> confdefs.h <<\EOF
14448 #define HAVE_IRIX_ACLS 1
14452 *aix*)
14453 echo "$ac_t""Using AIX ACLs" 1>&6
14454 cat >> confdefs.h <<\EOF
14455 #define HAVE_AIX_ACLS 1
14459 *osf*)
14460 echo "$ac_t""Using Tru64 ACLs" 1>&6
14461 cat >> confdefs.h <<\EOF
14462 #define HAVE_TRU64_ACLS 1
14465 LIBS="$LIBS -lpacl"
14468 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14469 echo "configure:14470: checking for acl_get_file in -lacl" >&5
14470 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14473 else
14474 ac_save_LIBS="$LIBS"
14475 LIBS="-lacl $LIBS"
14476 cat > conftest.$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14479 /* Override any gcc2 internal prototype to avoid an error. */
14480 /* We use char because int might match the return type of a gcc2
14481 builtin and then its argument prototype would still apply. */
14482 char acl_get_file();
14484 int main() {
14485 acl_get_file()
14486 ; return 0; }
14488 if { (eval echo configure:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14489 rm -rf conftest*
14490 eval "ac_cv_lib_$ac_lib_var=yes"
14491 else
14492 echo "configure: failed program was:" >&5
14493 cat conftest.$ac_ext >&5
14494 rm -rf conftest*
14495 eval "ac_cv_lib_$ac_lib_var=no"
14497 rm -f conftest*
14498 LIBS="$ac_save_LIBS"
14501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14502 echo "$ac_t""yes" 1>&6
14503 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14505 cat >> confdefs.h <<EOF
14506 #define $ac_tr_lib 1
14509 LIBS="-lacl $LIBS"
14511 else
14512 echo "$ac_t""no" 1>&6
14515 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14516 echo "configure:14517: checking for ACL support" >&5
14517 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14518 echo $ac_n "(cached) $ac_c" 1>&6
14519 else
14521 cat > conftest.$ac_ext <<EOF
14522 #line 14523 "configure"
14523 #include "confdefs.h"
14524 #include <sys/types.h>
14525 #include <sys/acl.h>
14526 int main() {
14527 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14528 ; return 0; }
14530 if { (eval echo configure:14531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14531 rm -rf conftest*
14532 samba_cv_HAVE_POSIX_ACLS=yes
14533 else
14534 echo "configure: failed program was:" >&5
14535 cat conftest.$ac_ext >&5
14536 rm -rf conftest*
14537 samba_cv_HAVE_POSIX_ACLS=no
14539 rm -f conftest*
14542 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14543 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
14544 echo "$ac_t""Using posix ACLs" 1>&6
14545 cat >> confdefs.h <<\EOF
14546 #define HAVE_POSIX_ACLS 1
14549 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14550 echo "configure:14551: checking for acl_get_perm_np" >&5
14551 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14553 else
14555 cat > conftest.$ac_ext <<EOF
14556 #line 14557 "configure"
14557 #include "confdefs.h"
14558 #include <sys/types.h>
14559 #include <sys/acl.h>
14560 int main() {
14561 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14562 ; return 0; }
14564 if { (eval echo configure:14565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14565 rm -rf conftest*
14566 samba_cv_HAVE_ACL_GET_PERM_NP=yes
14567 else
14568 echo "configure: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14570 rm -rf conftest*
14571 samba_cv_HAVE_ACL_GET_PERM_NP=no
14573 rm -f conftest*
14576 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14577 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
14578 cat >> confdefs.h <<\EOF
14579 #define HAVE_ACL_GET_PERM_NP 1
14585 esac
14588 echo "$ac_t""no" 1>&6
14589 cat >> confdefs.h <<\EOF
14590 #define HAVE_NO_ACLS 1
14594 esac
14595 else
14596 cat >> confdefs.h <<\EOF
14597 #define HAVE_NO_ACLS 1
14600 echo "$ac_t""no" 1>&6
14605 #################################################
14606 # check for sendfile support
14608 with_sendfile_support=yes
14609 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
14610 echo "configure:14611: checking whether to check to support sendfile" >&5
14611 # Check whether --with-sendfile-support or --without-sendfile-support was given.
14612 if test "${with_sendfile_support+set}" = set; then
14613 withval="$with_sendfile_support"
14614 case "$withval" in
14615 yes)
14617 echo "$ac_t""yes" 1>&6;
14619 case "$host_os" in
14620 *linux*)
14621 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
14622 echo "configure:14623: checking for linux sendfile64 support" >&5
14623 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14624 echo $ac_n "(cached) $ac_c" 1>&6
14625 else
14627 cat > conftest.$ac_ext <<EOF
14628 #line 14629 "configure"
14629 #include "confdefs.h"
14630 #include <sys/sendfile.h>
14631 int main() {
14633 int tofd, fromfd;
14634 off64_t offset;
14635 size_t total;
14636 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
14638 ; return 0; }
14640 if { (eval echo configure:14641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14641 rm -rf conftest*
14642 samba_cv_HAVE_SENDFILE64=yes
14643 else
14644 echo "configure: failed program was:" >&5
14645 cat conftest.$ac_ext >&5
14646 rm -rf conftest*
14647 samba_cv_HAVE_SENDFILE64=no
14649 rm -f conftest*
14652 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14654 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
14655 echo "configure:14656: checking for linux sendfile support" >&5
14656 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14657 echo $ac_n "(cached) $ac_c" 1>&6
14658 else
14660 cat > conftest.$ac_ext <<EOF
14661 #line 14662 "configure"
14662 #include "confdefs.h"
14663 #include <sys/sendfile.h>
14664 int main() {
14666 int tofd, fromfd;
14667 off_t offset;
14668 size_t total;
14669 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14671 ; return 0; }
14673 if { (eval echo configure:14674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14674 rm -rf conftest*
14675 samba_cv_HAVE_SENDFILE=yes
14676 else
14677 echo "configure: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14679 rm -rf conftest*
14680 samba_cv_HAVE_SENDFILE=no
14682 rm -f conftest*
14685 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14687 # Try and cope with broken Linux sendfile....
14688 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
14689 echo "configure:14690: checking for broken linux sendfile support" >&5
14690 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
14691 echo $ac_n "(cached) $ac_c" 1>&6
14692 else
14694 cat > conftest.$ac_ext <<EOF
14695 #line 14696 "configure"
14696 #include "confdefs.h"
14698 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
14699 #undef _FILE_OFFSET_BITS
14700 #endif
14701 #include <sys/sendfile.h>
14702 int main() {
14704 int tofd, fromfd;
14705 off_t offset;
14706 size_t total;
14707 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14709 ; return 0; }
14711 if { (eval echo configure:14712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14712 rm -rf conftest*
14713 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
14714 else
14715 echo "configure: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14717 rm -rf conftest*
14718 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
14720 rm -f conftest*
14723 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
14725 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14726 cat >> confdefs.h <<\EOF
14727 #define HAVE_SENDFILE64 1
14730 cat >> confdefs.h <<\EOF
14731 #define LINUX_SENDFILE_API 1
14734 cat >> confdefs.h <<\EOF
14735 #define WITH_SENDFILE 1
14738 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14739 cat >> confdefs.h <<\EOF
14740 #define HAVE_SENDFILE 1
14743 cat >> confdefs.h <<\EOF
14744 #define LINUX_SENDFILE_API 1
14747 cat >> confdefs.h <<\EOF
14748 #define WITH_SENDFILE 1
14751 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
14752 cat >> confdefs.h <<\EOF
14753 #define LINUX_BROKEN_SENDFILE_API 1
14756 cat >> confdefs.h <<\EOF
14757 #define WITH_SENDFILE 1
14760 else
14761 echo "$ac_t""no" 1>&6;
14765 *freebsd*)
14766 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
14767 echo "configure:14768: checking for freebsd sendfile support" >&5
14768 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14769 echo $ac_n "(cached) $ac_c" 1>&6
14770 else
14772 cat > conftest.$ac_ext <<EOF
14773 #line 14774 "configure"
14774 #include "confdefs.h"
14776 #include <sys/types.h>
14777 #include <unistd.h>
14778 #include <sys/socket.h>
14779 #include <sys/uio.h>
14780 int main() {
14782 int fromfd, tofd, ret, total=0;
14783 off_t offset, nwritten;
14784 struct sf_hdtr hdr;
14785 struct iovec hdtrl;
14786 hdr.headers = &hdtrl;
14787 hdr.hdr_cnt = 1;
14788 hdr.trailers = NULL;
14789 hdr.trl_cnt = 0;
14790 hdtrl.iov_base = NULL;
14791 hdtrl.iov_len = 0;
14792 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
14794 ; return 0; }
14796 if { (eval echo configure:14797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14797 rm -rf conftest*
14798 samba_cv_HAVE_SENDFILE=yes
14799 else
14800 echo "configure: failed program was:" >&5
14801 cat conftest.$ac_ext >&5
14802 rm -rf conftest*
14803 samba_cv_HAVE_SENDFILE=no
14805 rm -f conftest*
14808 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14810 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14811 cat >> confdefs.h <<\EOF
14812 #define HAVE_SENDFILE 1
14815 cat >> confdefs.h <<\EOF
14816 #define FREEBSD_SENDFILE_API 1
14819 cat >> confdefs.h <<\EOF
14820 #define WITH_SENDFILE 1
14823 else
14824 echo "$ac_t""no" 1>&6;
14828 *hpux*)
14829 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
14830 echo "configure:14831: checking for hpux sendfile64 support" >&5
14831 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14832 echo $ac_n "(cached) $ac_c" 1>&6
14833 else
14835 cat > conftest.$ac_ext <<EOF
14836 #line 14837 "configure"
14837 #include "confdefs.h"
14839 #include <sys/socket.h>
14840 #include <sys/uio.h>
14841 int main() {
14843 int fromfd, tofd;
14844 size_t total=0;
14845 struct iovec hdtrl[2];
14846 ssize_t nwritten;
14847 off64_t offset;
14849 hdtrl[0].iov_base = 0;
14850 hdtrl[0].iov_len = 0;
14852 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
14854 ; return 0; }
14856 if { (eval echo configure:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14857 rm -rf conftest*
14858 samba_cv_HAVE_SENDFILE64=yes
14859 else
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 rm -rf conftest*
14863 samba_cv_HAVE_SENDFILE64=no
14865 rm -f conftest*
14868 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14869 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14870 cat >> confdefs.h <<\EOF
14871 #define HAVE_SENDFILE64 1
14874 cat >> confdefs.h <<\EOF
14875 #define HPUX_SENDFILE_API 1
14878 cat >> confdefs.h <<\EOF
14879 #define WITH_SENDFILE 1
14882 else
14883 echo "$ac_t""no" 1>&6;
14886 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
14887 echo "configure:14888: checking for hpux sendfile support" >&5
14888 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
14890 else
14892 cat > conftest.$ac_ext <<EOF
14893 #line 14894 "configure"
14894 #include "confdefs.h"
14896 #include <sys/socket.h>
14897 #include <sys/uio.h>
14898 int main() {
14900 int fromfd, tofd;
14901 size_t total=0;
14902 struct iovec hdtrl[2];
14903 ssize_t nwritten;
14904 off_t offset;
14906 hdtrl[0].iov_base = 0;
14907 hdtrl[0].iov_len = 0;
14909 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
14911 ; return 0; }
14913 if { (eval echo configure:14914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14914 rm -rf conftest*
14915 samba_cv_HAVE_SENDFILE=yes
14916 else
14917 echo "configure: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14919 rm -rf conftest*
14920 samba_cv_HAVE_SENDFILE=no
14922 rm -f conftest*
14925 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14926 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14927 cat >> confdefs.h <<\EOF
14928 #define HAVE_SENDFILE 1
14931 cat >> confdefs.h <<\EOF
14932 #define HPUX_SENDFILE_API 1
14935 cat >> confdefs.h <<\EOF
14936 #define WITH_SENDFILE 1
14939 else
14940 echo "$ac_t""no" 1>&6;
14944 *solaris*)
14945 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
14946 echo "configure:14947: checking for sendfilev in -lsendfile" >&5
14947 ac_lib_var=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
14948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14949 echo $ac_n "(cached) $ac_c" 1>&6
14950 else
14951 ac_save_LIBS="$LIBS"
14952 LIBS="-lsendfile $LIBS"
14953 cat > conftest.$ac_ext <<EOF
14954 #line 14955 "configure"
14955 #include "confdefs.h"
14956 /* Override any gcc2 internal prototype to avoid an error. */
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14959 char sendfilev();
14961 int main() {
14962 sendfilev()
14963 ; return 0; }
14965 if { (eval echo configure:14966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14966 rm -rf conftest*
14967 eval "ac_cv_lib_$ac_lib_var=yes"
14968 else
14969 echo "configure: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14971 rm -rf conftest*
14972 eval "ac_cv_lib_$ac_lib_var=no"
14974 rm -f conftest*
14975 LIBS="$ac_save_LIBS"
14978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14979 echo "$ac_t""yes" 1>&6
14980 ac_tr_lib=HAVE_LIB`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14981 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14982 cat >> confdefs.h <<EOF
14983 #define $ac_tr_lib 1
14986 LIBS="-lsendfile $LIBS"
14988 else
14989 echo "$ac_t""no" 1>&6
14992 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
14993 echo "configure:14994: checking for solaris sendfilev64 support" >&5
14994 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
14996 else
14998 cat > conftest.$ac_ext <<EOF
14999 #line 15000 "configure"
15000 #include "confdefs.h"
15002 #include <sys/sendfile.h>
15003 int main() {
15005 int sfvcnt;
15006 size_t xferred;
15007 struct sendfilevec vec[2];
15008 ssize_t nwritten;
15009 int tofd;
15011 sfvcnt = 2;
15013 vec[0].sfv_fd = SFV_FD_SELF;
15014 vec[0].sfv_flag = 0;
15015 vec[0].sfv_off = 0;
15016 vec[0].sfv_len = 0;
15018 vec[1].sfv_fd = 0;
15019 vec[1].sfv_flag = 0;
15020 vec[1].sfv_off = 0;
15021 vec[1].sfv_len = 0;
15022 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
15024 ; return 0; }
15026 if { (eval echo configure:15027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15027 rm -rf conftest*
15028 samba_cv_HAVE_SENDFILEV64=yes
15029 else
15030 echo "configure: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
15032 rm -rf conftest*
15033 samba_cv_HAVE_SENDFILEV64=no
15035 rm -f conftest*
15038 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15040 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
15041 cat >> confdefs.h <<\EOF
15042 #define HAVE_SENDFILEV64 1
15045 cat >> confdefs.h <<\EOF
15046 #define SOLARIS_SENDFILE_API 1
15049 cat >> confdefs.h <<\EOF
15050 #define WITH_SENDFILE 1
15053 else
15054 echo "$ac_t""no" 1>&6;
15057 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15058 echo "configure:15059: checking for solaris sendfilev support" >&5
15059 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15060 echo $ac_n "(cached) $ac_c" 1>&6
15061 else
15063 cat > conftest.$ac_ext <<EOF
15064 #line 15065 "configure"
15065 #include "confdefs.h"
15067 #include <sys/sendfile.h>
15068 int main() {
15070 int sfvcnt;
15071 size_t xferred;
15072 struct sendfilevec vec[2];
15073 ssize_t nwritten;
15074 int tofd;
15076 sfvcnt = 2;
15078 vec[0].sfv_fd = SFV_FD_SELF;
15079 vec[0].sfv_flag = 0;
15080 vec[0].sfv_off = 0;
15081 vec[0].sfv_len = 0;
15083 vec[1].sfv_fd = 0;
15084 vec[1].sfv_flag = 0;
15085 vec[1].sfv_off = 0;
15086 vec[1].sfv_len = 0;
15087 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15089 ; return 0; }
15091 if { (eval echo configure:15092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15092 rm -rf conftest*
15093 samba_cv_HAVE_SENDFILEV=yes
15094 else
15095 echo "configure: failed program was:" >&5
15096 cat conftest.$ac_ext >&5
15097 rm -rf conftest*
15098 samba_cv_HAVE_SENDFILEV=no
15100 rm -f conftest*
15103 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15105 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
15106 cat >> confdefs.h <<\EOF
15107 #define HAVE_SENDFILEV 1
15110 cat >> confdefs.h <<\EOF
15111 #define SOLARIS_SENDFILE_API 1
15114 cat >> confdefs.h <<\EOF
15115 #define WITH_SENDFILE 1
15118 else
15119 echo "$ac_t""no" 1>&6;
15125 esac
15128 echo "$ac_t""no" 1>&6
15130 esac
15131 else
15132 echo "$ac_t""yes" 1>&6
15138 #################################################
15139 # Check whether winbind is supported on this platform. If so we need to
15140 # build and install client programs, sbin programs and shared libraries
15142 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15143 echo "configure:15144: checking whether to build winbind" >&5
15145 # Initially, the value of $host_os decides whether winbind is supported
15147 case "$host_os" in
15148 *linux*|*irix*)
15149 HAVE_WINBIND=yes
15151 *solaris*)
15152 HAVE_WINBIND=yes
15153 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15154 WINBIND_NSS_EXTRA_LIBS="-lsocket"
15156 *hpux11*)
15157 HAVE_WINBIND=yes
15158 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15161 HAVE_WINBIND=no
15162 winbind_no_reason=", unsupported on $host_os"
15164 esac
15169 # Check the setting of --with-winbindd
15171 # Check whether --with-winbind or --without-winbind was given.
15172 if test "${with_winbind+set}" = set; then
15173 withval="$with_winbind"
15175 case "$withval" in
15176 yes)
15177 HAVE_WINBIND=yes
15180 HAVE_WINBIND=no
15181 winbind_reason=""
15183 esac
15187 # We need unix domain sockets for winbind
15189 if test x"$HAVE_WINBIND" = x"yes"; then
15190 if test x"$samba_cv_unixsocket" = x"no"; then
15191 winbind_no_reason=", no unix domain socket support on $host_os"
15192 HAVE_WINBIND=no
15196 # Display test results
15198 if test x"$HAVE_WINBIND" = x"yes"; then
15199 echo "$ac_t""yes" 1>&6
15200 cat >> confdefs.h <<\EOF
15201 #define WITH_WINBIND 1
15205 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15206 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15207 if test x"$BLDSHARED" = x"true"; then
15208 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15209 if test x"$with_pam" = x"yes"; then
15210 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
15213 else
15214 echo "$ac_t""no$winbind_no_reason" 1>&6
15217 # Solaris has some extra fields in struct passwd that need to be
15218 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15219 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15220 # this.
15222 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15223 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15224 # [#include <pwd.h>])
15226 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15227 echo "configure:15228: checking whether struct passwd has pw_comment" >&5
15228 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
15230 else
15232 cat > conftest.$ac_ext <<EOF
15233 #line 15234 "configure"
15234 #include "confdefs.h"
15235 #include <pwd.h>
15236 int main() {
15237 struct passwd p; p.pw_comment;
15238 ; return 0; }
15240 if { (eval echo configure:15241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15241 rm -rf conftest*
15242 samba_cv_passwd_pw_comment=yes
15243 else
15244 echo "configure: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15246 rm -rf conftest*
15247 samba_cv_passwd_pw_comment=no
15249 rm -f conftest*
15252 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15253 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
15254 cat >> confdefs.h <<\EOF
15255 #define HAVE_PASSWD_PW_COMMENT 1
15260 #AC_CHECK_MEMBER(struct passwd.pw_age,
15261 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15262 # [#include <pwd.h>])
15264 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15265 echo "configure:15266: checking whether struct passwd has pw_age" >&5
15266 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15267 echo $ac_n "(cached) $ac_c" 1>&6
15268 else
15270 cat > conftest.$ac_ext <<EOF
15271 #line 15272 "configure"
15272 #include "confdefs.h"
15273 #include <pwd.h>
15274 int main() {
15275 struct passwd p; p.pw_age;
15276 ; return 0; }
15278 if { (eval echo configure:15279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15279 rm -rf conftest*
15280 samba_cv_passwd_pw_age=yes
15281 else
15282 echo "configure: failed program was:" >&5
15283 cat conftest.$ac_ext >&5
15284 rm -rf conftest*
15285 samba_cv_passwd_pw_age=no
15287 rm -f conftest*
15290 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15291 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
15292 cat >> confdefs.h <<\EOF
15293 #define HAVE_PASSWD_PW_AGE 1
15298 #################################################
15299 # Check to see if we should use the included popt
15301 # Check whether --with-included-popt or --without-included-popt was given.
15302 if test "${with_included_popt+set}" = set; then
15303 withval="$with_included_popt"
15305 case "$withval" in
15306 yes)
15307 INCLUDED_POPT=yes
15310 INCLUDED_POPT=no
15312 esac
15315 if test x"$INCLUDED_POPT" != x"yes"; then
15316 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15317 echo "configure:15318: checking for poptGetContext in -lpopt" >&5
15318 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15320 echo $ac_n "(cached) $ac_c" 1>&6
15321 else
15322 ac_save_LIBS="$LIBS"
15323 LIBS="-lpopt $LIBS"
15324 cat > conftest.$ac_ext <<EOF
15325 #line 15326 "configure"
15326 #include "confdefs.h"
15327 /* Override any gcc2 internal prototype to avoid an error. */
15328 /* We use char because int might match the return type of a gcc2
15329 builtin and then its argument prototype would still apply. */
15330 char poptGetContext();
15332 int main() {
15333 poptGetContext()
15334 ; return 0; }
15336 if { (eval echo configure:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15337 rm -rf conftest*
15338 eval "ac_cv_lib_$ac_lib_var=yes"
15339 else
15340 echo "configure: failed program was:" >&5
15341 cat conftest.$ac_ext >&5
15342 rm -rf conftest*
15343 eval "ac_cv_lib_$ac_lib_var=no"
15345 rm -f conftest*
15346 LIBS="$ac_save_LIBS"
15349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15350 echo "$ac_t""yes" 1>&6
15351 INCLUDED_POPT=no
15352 else
15353 echo "$ac_t""no" 1>&6
15354 INCLUDED_POPT=yes
15359 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15360 echo "configure:15361: checking whether to use included popt" >&5
15361 if test x"$INCLUDED_POPT" = x"yes"; then
15362 echo "$ac_t""yes" 1>&6
15363 BUILD_POPT='$(POPT_OBJS)'
15364 FLAGS1="-I$srcdir/popt"
15365 else
15366 echo "$ac_t""no" 1>&6
15367 LIBS="$LIBS -lpopt"
15372 #################################################
15373 # Check if the user wants Python
15375 # At the moment, you can use this to set which Python binary to link
15376 # against. (Libraries built for Python2.2 can't be used by 2.1,
15377 # though they can coexist in different directories.) In the future
15378 # this might make the Python stuff be built by default.
15380 # Defaulting python breaks the clean target if python isn't installed
15382 PYTHON=
15384 # Check whether --with-python or --without-python was given.
15385 if test "${with_python+set}" = set; then
15386 withval="$with_python"
15387 case "${withval-python}" in
15388 yes)
15389 PYTHON=python
15390 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
15393 PYTHON=
15396 PYTHON=${withval-python}
15398 esac
15403 #################################################
15404 # do extra things if we are running insure
15406 if test "${ac_cv_prog_CC}" = "insure"; then
15407 CPPFLAGS="$CPPFLAGS -D__INSURE__"
15410 #################################################
15411 # final configure stuff
15413 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15414 echo "configure:15415: checking configure summary" >&5
15415 if test "$cross_compiling" = yes; then
15416 echo "configure: warning: cannot run when cross-compiling" 1>&2
15417 else
15418 cat > conftest.$ac_ext <<EOF
15419 #line 15420 "configure"
15420 #include "confdefs.h"
15421 #include "${srcdir-.}/tests/summary.c"
15423 if { (eval echo configure:15424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15424 then
15425 echo "$ac_t""yes" 1>&6
15426 else
15427 echo "configure: failed program was:" >&5
15428 cat conftest.$ac_ext >&5
15429 rm -fr conftest*
15430 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15432 rm -fr conftest*
15436 builddir=`pwd`
15439 trap '' 1 2 15
15440 cat > confcache <<\EOF
15441 # This file is a shell script that caches the results of configure
15442 # tests run on this system so they can be shared between configure
15443 # scripts and configure runs. It is not useful on other systems.
15444 # If it contains results you don't want to keep, you may remove or edit it.
15446 # By default, configure uses ./config.cache as the cache file,
15447 # creating it if it does not exist already. You can give configure
15448 # the --cache-file=FILE option to use a different cache file; that is
15449 # what configure does when it calls configure scripts in
15450 # subdirectories, so they share the cache.
15451 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15452 # config.status only pays attention to the cache file if you give it the
15453 # --recheck option to rerun configure.
15456 # The following way of writing the cache mishandles newlines in values,
15457 # but we know of no workaround that is simple, portable, and efficient.
15458 # So, don't put newlines in cache variables' values.
15459 # Ultrix sh set writes to stderr and can't be redirected directly,
15460 # and sets the high bit in the cache file unless we assign to the vars.
15461 (set) 2>&1 |
15462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15463 *ac_space=\ *)
15464 # `set' does not quote correctly, so add quotes (double-quote substitution
15465 # turns \\\\ into \\, and sed turns \\ into \).
15466 sed -n \
15467 -e "s/'/'\\\\''/g" \
15468 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15471 # `set' quotes correctly as required by POSIX, so do not add quotes.
15472 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15474 esac >> confcache
15475 if cmp -s $cache_file confcache; then
15477 else
15478 if test -w $cache_file; then
15479 echo "updating cache $cache_file"
15480 cat confcache > $cache_file
15481 else
15482 echo "not updating unwritable cache $cache_file"
15485 rm -f confcache
15487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15490 # Let make expand exec_prefix.
15491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15493 # Any assignment to VPATH causes Sun make to only execute
15494 # the first set of double-colon rules, so remove it if not needed.
15495 # If there is a colon in the path, we need to keep it.
15496 if test "x$srcdir" = x.; then
15497 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15500 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15502 DEFS=-DHAVE_CONFIG_H
15504 # Without the "./", some shells look in PATH for config.status.
15505 : ${CONFIG_STATUS=./config.status}
15507 echo creating $CONFIG_STATUS
15508 rm -f $CONFIG_STATUS
15509 cat > $CONFIG_STATUS <<EOF
15510 #! /bin/sh
15511 # Generated automatically by configure.
15512 # Run this file to recreate the current configuration.
15513 # This directory was configured as follows,
15514 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15516 # $0 $ac_configure_args
15518 # Compiler output produced by configure, useful for debugging
15519 # configure, is in ./config.log if it exists.
15521 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15522 for ac_option
15524 case "\$ac_option" in
15525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15526 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15527 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15528 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15529 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15530 exit 0 ;;
15531 -help | --help | --hel | --he | --h)
15532 echo "\$ac_cs_usage"; exit 0 ;;
15533 *) echo "\$ac_cs_usage"; exit 1 ;;
15534 esac
15535 done
15537 ac_given_srcdir=$srcdir
15538 ac_given_INSTALL="$INSTALL"
15540 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15542 cat >> $CONFIG_STATUS <<EOF
15544 # Protect against being on the right side of a sed subst in config.status.
15545 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15546 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15547 $ac_vpsub
15548 $extrasub
15549 s%@SHELL@%$SHELL%g
15550 s%@CFLAGS@%$CFLAGS%g
15551 s%@CPPFLAGS@%$CPPFLAGS%g
15552 s%@CXXFLAGS@%$CXXFLAGS%g
15553 s%@FFLAGS@%$FFLAGS%g
15554 s%@DEFS@%$DEFS%g
15555 s%@LDFLAGS@%$LDFLAGS%g
15556 s%@LIBS@%$LIBS%g
15557 s%@exec_prefix@%$exec_prefix%g
15558 s%@prefix@%$prefix%g
15559 s%@program_transform_name@%$program_transform_name%g
15560 s%@bindir@%$bindir%g
15561 s%@sbindir@%$sbindir%g
15562 s%@libexecdir@%$libexecdir%g
15563 s%@datadir@%$datadir%g
15564 s%@sysconfdir@%$sysconfdir%g
15565 s%@sharedstatedir@%$sharedstatedir%g
15566 s%@localstatedir@%$localstatedir%g
15567 s%@libdir@%$libdir%g
15568 s%@includedir@%$includedir%g
15569 s%@oldincludedir@%$oldincludedir%g
15570 s%@infodir@%$infodir%g
15571 s%@mandir@%$mandir%g
15572 s%@configdir@%$configdir%g
15573 s%@lockdir@%$lockdir%g
15574 s%@piddir@%$piddir%g
15575 s%@logfilebase@%$logfilebase%g
15576 s%@privatedir@%$privatedir%g
15577 s%@swatdir@%$swatdir%g
15578 s%@LDSHFLAGS@%$LDSHFLAGS%g
15579 s%@SONAMEFLAG@%$SONAMEFLAG%g
15580 s%@SHLD@%$SHLD%g
15581 s%@HOST_OS@%$HOST_OS%g
15582 s%@PICFLAG@%$PICFLAG%g
15583 s%@PICSUFFIX@%$PICSUFFIX%g
15584 s%@POBAD_CC@%$POBAD_CC%g
15585 s%@SHLIBEXT@%$SHLIBEXT%g
15586 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
15587 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
15588 s%@PRINTLIBS@%$PRINTLIBS%g
15589 s%@AUTHLIBS@%$AUTHLIBS%g
15590 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
15591 s%@SMBWRAPPER@%$SMBWRAPPER%g
15592 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
15593 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
15594 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
15595 s%@CC@%$CC%g
15596 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15597 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15598 s%@INSTALL_DATA@%$INSTALL_DATA%g
15599 s%@AWK@%$AWK%g
15600 s%@EXEEXT@%$EXEEXT%g
15601 s%@BROKEN_CC@%$BROKEN_CC%g
15602 s%@host@%$host%g
15603 s%@host_alias@%$host_alias%g
15604 s%@host_cpu@%$host_cpu%g
15605 s%@host_vendor@%$host_vendor%g
15606 s%@host_os@%$host_os%g
15607 s%@target@%$target%g
15608 s%@target_alias@%$target_alias%g
15609 s%@target_cpu@%$target_cpu%g
15610 s%@target_vendor@%$target_vendor%g
15611 s%@target_os@%$target_os%g
15612 s%@build@%$build%g
15613 s%@build_alias@%$build_alias%g
15614 s%@build_cpu@%$build_cpu%g
15615 s%@build_vendor@%$build_vendor%g
15616 s%@build_os@%$build_os%g
15617 s%@CPP@%$CPP%g
15618 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
15619 s%@LIBOBJS@%$LIBOBJS%g
15620 s%@TERMLIBS@%$TERMLIBS%g
15621 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
15622 s%@ROFF@%$ROFF%g
15623 s%@DYNEXP@%$DYNEXP%g
15624 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
15625 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
15626 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
15627 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
15628 s%@XML2_CONFIG@%$XML2_CONFIG%g
15629 s%@XML_CFLAGS@%$XML_CFLAGS%g
15630 s%@XML_LIBS@%$XML_LIBS%g
15631 s%@MODULE_XML@%$MODULE_XML%g
15632 s%@QUOTAOBJS@%$QUOTAOBJS%g
15633 s%@manlangs@%$manlangs%g
15634 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
15635 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
15636 s%@BUILD_POPT@%$BUILD_POPT%g
15637 s%@FLAGS1@%$FLAGS1%g
15638 s%@PYTHON@%$PYTHON%g
15639 s%@builddir@%$builddir%g
15641 CEOF
15644 cat >> $CONFIG_STATUS <<\EOF
15646 # Split the substitutions into bite-sized pieces for seds with
15647 # small command number limits, like on Digital OSF/1 and HP-UX.
15648 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15649 ac_file=1 # Number of current file.
15650 ac_beg=1 # First line for current file.
15651 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15652 ac_more_lines=:
15653 ac_sed_cmds=""
15654 while $ac_more_lines; do
15655 if test $ac_beg -gt 1; then
15656 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15657 else
15658 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15660 if test ! -s conftest.s$ac_file; then
15661 ac_more_lines=false
15662 rm -f conftest.s$ac_file
15663 else
15664 if test -z "$ac_sed_cmds"; then
15665 ac_sed_cmds="sed -f conftest.s$ac_file"
15666 else
15667 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15669 ac_file=`expr $ac_file + 1`
15670 ac_beg=$ac_end
15671 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15673 done
15674 if test -z "$ac_sed_cmds"; then
15675 ac_sed_cmds=cat
15679 cat >> $CONFIG_STATUS <<EOF
15681 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
15683 cat >> $CONFIG_STATUS <<\EOF
15684 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15686 case "$ac_file" in
15687 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15688 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15689 *) ac_file_in="${ac_file}.in" ;;
15690 esac
15692 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15694 # Remove last slash and all that follows it. Not all systems have dirname.
15695 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15696 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15697 # The file is in a subdirectory.
15698 test ! -d "$ac_dir" && mkdir "$ac_dir"
15699 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15700 # A "../" for each directory in $ac_dir_suffix.
15701 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15702 else
15703 ac_dir_suffix= ac_dots=
15706 case "$ac_given_srcdir" in
15707 .) srcdir=.
15708 if test -z "$ac_dots"; then top_srcdir=.
15709 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15710 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15711 *) # Relative path.
15712 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15713 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15714 esac
15716 case "$ac_given_INSTALL" in
15717 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15718 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15719 esac
15721 echo creating "$ac_file"
15722 rm -f "$ac_file"
15723 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15724 case "$ac_file" in
15725 *Makefile*) ac_comsub="1i\\
15726 # $configure_input" ;;
15727 *) ac_comsub= ;;
15728 esac
15730 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15731 sed -e "$ac_comsub
15732 s%@configure_input@%$configure_input%g
15733 s%@srcdir@%$srcdir%g
15734 s%@top_srcdir@%$top_srcdir%g
15735 s%@INSTALL@%$INSTALL%g
15736 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15737 fi; done
15738 rm -f conftest.s*
15740 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15741 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15743 # ac_d sets the value in "#define NAME VALUE" lines.
15744 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15745 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15746 ac_dC='\3'
15747 ac_dD='%g'
15748 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15749 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15750 ac_uB='\([ ]\)%\1#\2define\3'
15751 ac_uC=' '
15752 ac_uD='\4%g'
15753 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15754 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15755 ac_eB='$%\1#\2define\3'
15756 ac_eC=' '
15757 ac_eD='%g'
15759 if test "${CONFIG_HEADERS+set}" != set; then
15761 cat >> $CONFIG_STATUS <<EOF
15762 CONFIG_HEADERS="include/config.h"
15764 cat >> $CONFIG_STATUS <<\EOF
15766 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15768 case "$ac_file" in
15769 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15770 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15771 *) ac_file_in="${ac_file}.in" ;;
15772 esac
15774 echo creating $ac_file
15776 rm -f conftest.frag conftest.in conftest.out
15777 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15778 cat $ac_file_inputs > conftest.in
15782 # Transform confdefs.h into a sed script conftest.vals that substitutes
15783 # the proper values into config.h.in to produce config.h. And first:
15784 # Protect against being on the right side of a sed subst in config.status.
15785 # Protect against being in an unquoted here document in config.status.
15786 rm -f conftest.vals
15787 cat > conftest.hdr <<\EOF
15788 s/[\\&%]/\\&/g
15789 s%[\\$`]%\\&%g
15790 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15791 s%ac_d%ac_u%gp
15792 s%ac_u%ac_e%gp
15794 sed -n -f conftest.hdr confdefs.h > conftest.vals
15795 rm -f conftest.hdr
15797 # This sed command replaces #undef with comments. This is necessary, for
15798 # example, in the case of _POSIX_SOURCE, which is predefined and required
15799 # on some systems where configure will not decide to define it.
15800 cat >> conftest.vals <<\EOF
15801 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15804 # Break up conftest.vals because some shells have a limit on
15805 # the size of here documents, and old seds have small limits too.
15807 rm -f conftest.tail
15808 while :
15810 ac_lines=`grep -c . conftest.vals`
15811 # grep -c gives empty output for an empty file on some AIX systems.
15812 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15813 # Write a limited-size here document to conftest.frag.
15814 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15815 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15816 echo 'CEOF
15817 sed -f conftest.frag conftest.in > conftest.out
15818 rm -f conftest.in
15819 mv conftest.out conftest.in
15820 ' >> $CONFIG_STATUS
15821 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15822 rm -f conftest.vals
15823 mv conftest.tail conftest.vals
15824 done
15825 rm -f conftest.vals
15827 cat >> $CONFIG_STATUS <<\EOF
15828 rm -f conftest.frag conftest.h
15829 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15830 cat conftest.in >> conftest.h
15831 rm -f conftest.in
15832 if cmp -s $ac_file conftest.h 2>/dev/null; then
15833 echo "$ac_file is unchanged"
15834 rm -f conftest.h
15835 else
15836 # Remove last slash and all that follows it. Not all systems have dirname.
15837 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15838 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15839 # The file is in a subdirectory.
15840 test ! -d "$ac_dir" && mkdir "$ac_dir"
15842 rm -f $ac_file
15843 mv conftest.h $ac_file
15845 fi; done
15848 cat >> $CONFIG_STATUS <<EOF
15851 cat >> $CONFIG_STATUS <<\EOF
15853 exit 0
15855 chmod +x $CONFIG_STATUS
15856 rm -fr confdefs* $ac_clean_files
15857 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15860 #################################################
15861 # Print very concise instructions on building/use
15862 if test "x$enable_dmalloc" = xyes
15863 then
15864 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
15865 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6