fixed error check which caused domain logons to fail
[Samba.git] / source / configure
blob7bac25b55d9aaa63002a9e46d77a97322317ec03
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-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
23 ac_help="$ac_help
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
25 ac_help="$ac_help
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
27 ac_help="$ac_help
28 --enable-debug Turn on compiler debugging information (default=no)"
29 ac_help="$ac_help
30 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
31 ac_help="$ac_help
32 --with-smbwrapper Include SMB wrapper support (default=no)"
33 ac_help="$ac_help
34 --with-afs Include AFS support (default=no)"
35 ac_help="$ac_help
36 --with-dce-dfs Include DCE/DFS support (default=no)"
37 ac_help="$ac_help
38 --with-krb4=base-dir Include Kerberos IV support (default=no)"
39 ac_help="$ac_help
40 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
41 ac_help="$ac_help
42 --with-automount Include AUTOMOUNT support (default=no)"
43 ac_help="$ac_help
44 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
45 ac_help="$ac_help
46 --with-pam Include PAM password database support (default=no)"
47 ac_help="$ac_help
48 --with-pam_smbpass Include the smbpass PAM module (default=no)"
49 ac_help="$ac_help
50 --with-tdbsam Include experimental TDB SAM support (default=no)"
51 ac_help="$ac_help
52 --with-ldapsam Include experimental LDAP SAM support (default=no)"
53 ac_help="$ac_help
54 --with-nisplussam Include NISPLUS SAM support (default=no)"
55 ac_help="$ac_help
56 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
57 ac_help="$ac_help
58 --with-ssl Include SSL support (default=no)
59 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
60 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
61 ac_help="$ac_help
62 --with-syslog Include experimental SYSLOG support (default=no)"
63 ac_help="$ac_help
64 --with-profiling-data Include gathering source code profile information (default=no)"
65 ac_help="$ac_help
66 --with-quotas Include experimental disk-quota support (default=no)"
67 ac_help="$ac_help
68 --with-utmp Include experimental utmp accounting (default=no)"
69 ac_help="$ac_help
70 --with-msdfs Include MS Dfs support (default=no)"
71 ac_help="$ac_help
72 --with-vfs Include Samba vfs support (default=no)"
73 ac_help="$ac_help
74 --with-libsmbclient Build the libsmbclient shared library (default=no)"
75 ac_help="$ac_help
76 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
77 ac_help="$ac_help
78 --with-acl-support Include ACL support (default=no)"
79 ac_help="$ac_help
80 --with-winbind Build winbind (default, if supported by OS)"
82 # Initialize some variables set by options.
83 # The variables have the same names as the options, with
84 # dashes changed to underlines.
85 build=NONE
86 cache_file=./config.cache
87 exec_prefix=NONE
88 host=NONE
89 no_create=
90 nonopt=NONE
91 no_recursion=
92 prefix=NONE
93 program_prefix=NONE
94 program_suffix=NONE
95 program_transform_name=s,x,x,
96 silent=
97 site=
98 srcdir=
99 target=NONE
100 verbose=
101 x_includes=NONE
102 x_libraries=NONE
103 bindir='${exec_prefix}/bin'
104 sbindir='${exec_prefix}/sbin'
105 libexecdir='${exec_prefix}/libexec'
106 datadir='${prefix}/share'
107 sysconfdir='${prefix}/etc'
108 sharedstatedir='${prefix}/com'
109 localstatedir='${prefix}/var'
110 libdir='${exec_prefix}/lib'
111 includedir='${prefix}/include'
112 oldincludedir='/usr/include'
113 infodir='${prefix}/info'
114 mandir='${prefix}/man'
116 # Initialize some other variables.
117 subdirs=
118 MFLAGS= MAKEFLAGS=
119 SHELL=${CONFIG_SHELL-/bin/sh}
120 # Maximum number of lines to put in a shell here document.
121 ac_max_here_lines=12
123 ac_prev=
124 for ac_option
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
130 ac_prev=
131 continue
134 case "$ac_option" in
135 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 *) ac_optarg= ;;
137 esac
139 # Accept the important Cygnus configure options, so we can diagnose typos.
141 case "$ac_option" in
143 -bindir | --bindir | --bindi | --bind | --bin | --bi)
144 ac_prev=bindir ;;
145 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
146 bindir="$ac_optarg" ;;
148 -build | --build | --buil | --bui | --bu)
149 ac_prev=build ;;
150 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
151 build="$ac_optarg" ;;
153 -cache-file | --cache-file | --cache-fil | --cache-fi \
154 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
155 ac_prev=cache_file ;;
156 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
157 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
158 cache_file="$ac_optarg" ;;
160 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
161 ac_prev=datadir ;;
162 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
163 | --da=*)
164 datadir="$ac_optarg" ;;
166 -disable-* | --disable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* | --enable-*)
176 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
182 case "$ac_option" in
183 *=*) ;;
184 *) ac_optarg=yes ;;
185 esac
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
189 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
190 | --exec | --exe | --ex)
191 ac_prev=exec_prefix ;;
192 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
193 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
194 | --exec=* | --exe=* | --ex=*)
195 exec_prefix="$ac_optarg" ;;
197 -gas | --gas | --ga | --g)
198 # Obsolete; use --with-gas.
199 with_gas=yes ;;
201 -help | --help | --hel | --he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
204 cat << EOF
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
207 Configuration:
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
215 [$ac_default_prefix]
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 [same as prefix]
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
222 [PREFIX/share]
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 [PREFIX/com]
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --infodir=DIR info documentation in DIR [PREFIX/info]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
238 cat << EOF
239 Host type:
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
254 exit 0 ;;
256 -host | --host | --hos | --ho)
257 ac_prev=host ;;
258 -host=* | --host=* | --hos=* | --ho=*)
259 host="$ac_optarg" ;;
261 -includedir | --includedir | --includedi | --included | --include \
262 | --includ | --inclu | --incl | --inc)
263 ac_prev=includedir ;;
264 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
265 | --includ=* | --inclu=* | --incl=* | --inc=*)
266 includedir="$ac_optarg" ;;
268 -infodir | --infodir | --infodi | --infod | --info | --inf)
269 ac_prev=infodir ;;
270 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
271 infodir="$ac_optarg" ;;
273 -libdir | --libdir | --libdi | --libd)
274 ac_prev=libdir ;;
275 -libdir=* | --libdir=* | --libdi=* | --libd=*)
276 libdir="$ac_optarg" ;;
278 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
279 | --libexe | --libex | --libe)
280 ac_prev=libexecdir ;;
281 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
282 | --libexe=* | --libex=* | --libe=*)
283 libexecdir="$ac_optarg" ;;
285 -localstatedir | --localstatedir | --localstatedi | --localstated \
286 | --localstate | --localstat | --localsta | --localst \
287 | --locals | --local | --loca | --loc | --lo)
288 ac_prev=localstatedir ;;
289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
290 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
291 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
292 localstatedir="$ac_optarg" ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
295 ac_prev=mandir ;;
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
297 mandir="$ac_optarg" ;;
299 -nfp | --nfp | --nf)
300 # Obsolete; use --without-fp.
301 with_fp=no ;;
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
304 | --no-cr | --no-c)
305 no_create=yes ;;
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
309 no_recursion=yes ;;
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir="$ac_optarg" ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
321 ac_prev=prefix ;;
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
323 prefix="$ac_optarg" ;;
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix="$ac_optarg" ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix="$ac_optarg" ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name="$ac_optarg" ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
358 silent=yes ;;
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
361 ac_prev=sbindir ;;
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
363 | --sbi=* | --sb=*)
364 sbindir="$ac_optarg" ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
369 | --sha | --sh)
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
374 | --sha=* | --sh=*)
375 sharedstatedir="$ac_optarg" ;;
377 -site | --site | --sit)
378 ac_prev=site ;;
379 -site=* | --site=* | --sit=*)
380 site="$ac_optarg" ;;
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
383 ac_prev=srcdir ;;
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
385 srcdir="$ac_optarg" ;;
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir="$ac_optarg" ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
395 ac_prev=target ;;
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target="$ac_optarg" ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
400 verbose=yes ;;
402 -version | --version | --versio | --versi | --vers)
403 echo "configure generated by autoconf version 2.13"
404 exit 0 ;;
406 -with-* | --with-*)
407 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 case "$ac_option" in
414 *=*) ;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* | --without-*)
420 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}=no" ;;
428 --x)
429 # Obsolete; use --with-x.
430 with_x=yes ;;
432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
433 | --x-incl | --x-inc | --x-in | --x-i)
434 ac_prev=x_includes ;;
435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
437 x_includes="$ac_optarg" ;;
439 -x-libraries | --x-libraries | --x-librarie | --x-librari \
440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
441 ac_prev=x_libraries ;;
442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
444 x_libraries="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 nonopt="$ac_option"
459 esac
460 done
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
469 # 0 standard input
470 # 1 file creation
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
477 exec 6>/dev/null
478 else
479 exec 6>&1
481 exec 5>./config.log
483 echo "\
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
486 " 1>&5
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
490 ac_configure_args=
491 for ac_arg
493 case "$ac_arg" in
494 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
495 | --no-cr | --no-c) ;;
496 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
501 esac
502 done
504 # NLS nuisances.
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 echo > confdefs.h
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file=include/includes.h
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted=yes
526 # Try the directory containing this script, then its parent.
527 ac_prog=$0
528 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 srcdir=$ac_confdir
531 if test ! -r $srcdir/$ac_unique_file; then
532 srcdir=..
534 else
535 ac_srcdir_defaulted=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 else
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE; then
549 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
550 else
551 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
557 . "$ac_site_file"
559 done
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
563 . $cache_file
564 else
565 echo "creating cache $cache_file"
566 > $cache_file
569 ac_ext=c
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp='$CPP $CPPFLAGS'
572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling=$ac_cv_prog_cc_cross
576 ac_exeext=
577 ac_objext=o
578 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
579 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
580 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='
582 ' ac_t=' '
583 else
584 ac_n=-n ac_c= ac_t=
586 else
587 ac_n= ac_c='\c' ac_t=
593 #################################################
594 # Directory handling stuff to support both the
595 # legacy SAMBA directories and FHS compliant
596 # ones...
599 # Check whether --with-fhs or --without-fhs was given.
600 if test "${with_fhs+set}" = set; then
601 withval="$with_fhs"
602 codepagedir="\$(DATADIR)/samba/codepages"
603 configdir="${sysconfdir}/samba"
604 lockdir="\${VARDIR}/cache/samba"
605 logfilebase="\${VARDIR}/log/samba"
606 privatedir="\${CONFIGDIR}/private"
607 swatdir="\${DATADIR}/samba/swat"
608 else
609 codepagedir="\$(LIBDIR)/codepages"
610 configdir="\$(LIBDIR)"
611 lockdir="\$(VARDIR)/locks"
612 logfilebase="\$(VARDIR)"
613 privatedir="\${prefix}/private"
614 swatdir="\${prefix}/swat"
618 #################################################
619 # set private directory location
620 # Check whether --with-privatedir or --without-privatedir was given.
621 if test "${with_privatedir+set}" = set; then
622 withval="$with_privatedir"
623 case "$withval" in
624 yes|no)
626 # Just in case anybody calls it without argument
628 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
631 privatedir="$withval"
633 esac
637 #################################################
638 # set lock directory location
639 # Check whether --with-lockdir or --without-lockdir was given.
640 if test "${with_lockdir+set}" = set; then
641 withval="$with_lockdir"
642 case "$withval" in
643 yes|no)
645 # Just in case anybody calls it without argument
647 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
650 lockdir="$withval"
652 esac
656 #################################################
657 # set SWAT directory location
658 # Check whether --with-swatdir or --without-swatdir was given.
659 if test "${with_swatdir+set}" = set; then
660 withval="$with_swatdir"
661 case "$withval" in
662 yes|no)
664 # Just in case anybody does it
666 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
669 swatdir="$withval"
671 esac
675 #################################################
676 # set configuration directory location
677 # Check whether --with-configdir or --without-configdir was given.
678 if test "${with_configdir+set}" = set; then
679 withval="$with_configdir"
680 case "$withval" in
681 yes|no)
683 # Just in case anybody does it
685 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
688 configdir="$withval"
690 esac
694 #################################################
695 # set codepage directory location
696 # Check whether --with-codepagedir or --without-codepagedir was given.
697 if test "${with_codepagedir+set}" = set; then
698 withval="$with_codepagedir"
699 case "$withval" in
700 yes|no)
702 # Just in case anybody does it
704 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
707 codepagedir="$withval"
709 esac
740 # compile with optimization and without debugging by default
741 CFLAGS="-O ${CFLAGS}"
743 # Check whether --enable-debug or --disable-debug was given.
744 if test "${enable_debug+set}" = set; then
745 enableval="$enable_debug"
746 if eval "test x$enable_debug = xyes"; then
747 CFLAGS="${CFLAGS} -g"
754 # Extract the first word of "gcc", so it can be a program name with args.
755 set dummy gcc; ac_word=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
760 else
761 if test -n "$CC"; then
762 ac_cv_prog_CC="$CC" # Let the user override the test.
763 else
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
765 ac_dummy="$PATH"
766 for ac_dir in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir=.
768 if test -f $ac_dir/$ac_word; then
769 ac_cv_prog_CC="gcc"
770 break
772 done
773 IFS="$ac_save_ifs"
776 CC="$ac_cv_prog_CC"
777 if test -n "$CC"; then
778 echo "$ac_t""$CC" 1>&6
779 else
780 echo "$ac_t""no" 1>&6
783 if test -z "$CC"; then
784 # Extract the first word of "cc", so it can be a program name with args.
785 set dummy cc; ac_word=$2
786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787 echo "configure:788: checking for $ac_word" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
790 else
791 if test -n "$CC"; then
792 ac_cv_prog_CC="$CC" # Let the user override the test.
793 else
794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
795 ac_prog_rejected=no
796 ac_dummy="$PATH"
797 for ac_dir in $ac_dummy; do
798 test -z "$ac_dir" && ac_dir=.
799 if test -f $ac_dir/$ac_word; then
800 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
801 ac_prog_rejected=yes
802 continue
804 ac_cv_prog_CC="cc"
805 break
807 done
808 IFS="$ac_save_ifs"
809 if test $ac_prog_rejected = yes; then
810 # We found a bogon in the path, so make sure we never use it.
811 set dummy $ac_cv_prog_CC
812 shift
813 if test $# -gt 0; then
814 # We chose a different compiler from the bogus one.
815 # However, it has the same basename, so the bogon will be chosen
816 # first if we set CC to just the basename; use the full file name.
817 shift
818 set dummy "$ac_dir/$ac_word" "$@"
819 shift
820 ac_cv_prog_CC="$@"
825 CC="$ac_cv_prog_CC"
826 if test -n "$CC"; then
827 echo "$ac_t""$CC" 1>&6
828 else
829 echo "$ac_t""no" 1>&6
832 if test -z "$CC"; then
833 case "`uname -s`" in
834 *win32* | *WIN32*)
835 # Extract the first word of "cl", so it can be a program name with args.
836 set dummy cl; ac_word=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
841 else
842 if test -n "$CC"; then
843 ac_cv_prog_CC="$CC" # Let the user override the test.
844 else
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
846 ac_dummy="$PATH"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 ac_cv_prog_CC="cl"
851 break
853 done
854 IFS="$ac_save_ifs"
857 CC="$ac_cv_prog_CC"
858 if test -n "$CC"; then
859 echo "$ac_t""$CC" 1>&6
860 else
861 echo "$ac_t""no" 1>&6
864 esac
866 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
869 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
870 echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
872 ac_ext=c
873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874 ac_cpp='$CPP $CPPFLAGS'
875 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877 cross_compiling=$ac_cv_prog_cc_cross
879 cat > conftest.$ac_ext << EOF
881 #line 882 "configure"
882 #include "confdefs.h"
884 main(){return(0);}
886 if { (eval echo configure:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
887 ac_cv_prog_cc_works=yes
888 # If we can't run a trivial program, we are probably using a cross compiler.
889 if (./conftest; exit) 2>/dev/null; then
890 ac_cv_prog_cc_cross=no
891 else
892 ac_cv_prog_cc_cross=yes
894 else
895 echo "configure: failed program was:" >&5
896 cat conftest.$ac_ext >&5
897 ac_cv_prog_cc_works=no
899 rm -fr conftest*
900 ac_ext=c
901 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902 ac_cpp='$CPP $CPPFLAGS'
903 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905 cross_compiling=$ac_cv_prog_cc_cross
907 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
908 if test $ac_cv_prog_cc_works = no; then
909 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
911 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
912 echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
913 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
914 cross_compiling=$ac_cv_prog_cc_cross
916 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
917 echo "configure:918: checking whether we are using GNU C" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
920 else
921 cat > conftest.c <<EOF
922 #ifdef __GNUC__
923 yes;
924 #endif
926 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
927 ac_cv_prog_gcc=yes
928 else
929 ac_cv_prog_gcc=no
933 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
935 if test $ac_cv_prog_gcc = yes; then
936 GCC=yes
937 else
938 GCC=
941 ac_test_CFLAGS="${CFLAGS+set}"
942 ac_save_CFLAGS="$CFLAGS"
943 CFLAGS=
944 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
945 echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
948 else
949 echo 'void f(){}' > conftest.c
950 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
951 ac_cv_prog_cc_g=yes
952 else
953 ac_cv_prog_cc_g=no
955 rm -f conftest*
959 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
960 if test "$ac_test_CFLAGS" = set; then
961 CFLAGS="$ac_save_CFLAGS"
962 elif test $ac_cv_prog_cc_g = yes; then
963 if test "$GCC" = yes; then
964 CFLAGS="-g -O2"
965 else
966 CFLAGS="-g"
968 else
969 if test "$GCC" = yes; then
970 CFLAGS="-O2"
971 else
972 CFLAGS=
976 ac_aux_dir=
977 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
978 if test -f $ac_dir/install-sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install-sh -c"
981 break
982 elif test -f $ac_dir/install.sh; then
983 ac_aux_dir=$ac_dir
984 ac_install_sh="$ac_aux_dir/install.sh -c"
985 break
987 done
988 if test -z "$ac_aux_dir"; then
989 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
991 ac_config_guess=$ac_aux_dir/config.guess
992 ac_config_sub=$ac_aux_dir/config.sub
993 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
995 # Find a good install program. We prefer a C program (faster),
996 # so one script is as good as another. But avoid the broken or
997 # incompatible versions:
998 # SysV /etc/install, /usr/sbin/install
999 # SunOS /usr/etc/install
1000 # IRIX /sbin/install
1001 # AIX /bin/install
1002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1005 # ./install, which can be erroneously created by make from ./install.sh.
1006 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1007 echo "configure:1008: checking for a BSD compatible install" >&5
1008 if test -z "$INSTALL"; then
1009 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011 else
1012 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1013 for ac_dir in $PATH; do
1014 # Account for people who put trailing slashes in PATH elements.
1015 case "$ac_dir/" in
1016 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1018 # OSF1 and SCO ODT 3.0 have their own names for install.
1019 # Don't use installbsd from OSF since it installs stuff as root
1020 # by default.
1021 for ac_prog in ginstall scoinst install; do
1022 if test -f $ac_dir/$ac_prog; then
1023 if test $ac_prog = install &&
1024 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1025 # AIX install. It has an incompatible calling convention.
1027 else
1028 ac_cv_path_install="$ac_dir/$ac_prog -c"
1029 break 2
1032 done
1034 esac
1035 done
1036 IFS="$ac_save_IFS"
1039 if test "${ac_cv_path_install+set}" = set; then
1040 INSTALL="$ac_cv_path_install"
1041 else
1042 # As a last resort, use the slow shell script. We don't cache a
1043 # path for INSTALL within a source directory, because that will
1044 # break other packages using the cache if that directory is
1045 # removed, or if the path is relative.
1046 INSTALL="$ac_install_sh"
1049 echo "$ac_t""$INSTALL" 1>&6
1051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1052 # It thinks the first close brace ends the variable substitution.
1053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1059 for ac_prog in gawk mawk nawk awk
1061 # Extract the first word of "$ac_prog", so it can be a program name with args.
1062 set dummy $ac_prog; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068 if test -n "$AWK"; then
1069 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1070 else
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1072 ac_dummy="$PATH"
1073 for ac_dir in $ac_dummy; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_AWK="$ac_prog"
1077 break
1079 done
1080 IFS="$ac_save_ifs"
1083 AWK="$ac_cv_prog_AWK"
1084 if test -n "$AWK"; then
1085 echo "$ac_t""$AWK" 1>&6
1086 else
1087 echo "$ac_t""no" 1>&6
1090 test -n "$AWK" && break
1091 done
1094 if test "x$CC" != xcc; then
1095 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1096 echo "configure:1097: checking whether $CC and cc understand -c and -o together" >&5
1097 else
1098 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether cc understands -c and -o together" >&5
1101 set dummy $CC; ac_cc="`echo $2 |
1102 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1103 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1105 else
1106 echo 'foo(){}' > conftest.c
1107 # Make sure it works both with $CC and with simple cc.
1108 # We do the test twice because some compilers refuse to overwrite an
1109 # existing .o file with -o, though they will create one.
1110 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1111 if { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1112 test -f conftest.o && { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1113 then
1114 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1115 if test "x$CC" != xcc; then
1116 # Test first that cc exists at all.
1117 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1118 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1119 if { (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1120 test -f conftest.o && { (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1121 then
1122 # cc works too.
1124 else
1125 # cc exists but doesn't like -o.
1126 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1130 else
1131 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1133 rm -f conftest*
1136 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1137 echo "$ac_t""yes" 1>&6
1138 else
1139 echo "$ac_t""no" 1>&6
1140 cat >> confdefs.h <<\EOF
1141 #define NO_MINUS_C_MINUS_O 1
1146 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1147 BROKEN_CC=
1148 else
1149 BROKEN_CC=#
1153 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1154 echo "configure:1155: checking that the C compiler understands volatile" >&5
1155 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1157 else
1159 cat > conftest.$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1162 #include <sys/types.h>
1163 int main() {
1164 volatile int i = 0
1165 ; return 0; }
1167 if { (eval echo configure:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1168 rm -rf conftest*
1169 samba_cv_volatile=yes
1170 else
1171 echo "configure: failed program was:" >&5
1172 cat conftest.$ac_ext >&5
1173 rm -rf conftest*
1174 samba_cv_volatile=no
1176 rm -f conftest*
1179 echo "$ac_t""$samba_cv_volatile" 1>&6
1180 if test x"$samba_cv_volatile" = x"yes"; then
1181 cat >> confdefs.h <<\EOF
1182 #define HAVE_VOLATILE 1
1190 # Do some error checking and defaulting for the host and target type.
1191 # The inputs are:
1192 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1194 # The rules are:
1195 # 1. You are not allowed to specify --host, --target, and nonopt at the
1196 # same time.
1197 # 2. Host defaults to nonopt.
1198 # 3. If nonopt is not specified, then host defaults to the current host,
1199 # as determined by config.guess.
1200 # 4. Target and build default to nonopt.
1201 # 5. If nonopt is not specified, then target and build default to host.
1203 # The aliases save the names the user supplied, while $host etc.
1204 # will get canonicalized.
1205 case $host---$target---$nonopt in
1206 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1207 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1208 esac
1211 # Make sure we can run config.sub.
1212 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1213 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1216 echo $ac_n "checking host system type""... $ac_c" 1>&6
1217 echo "configure:1218: checking host system type" >&5
1219 host_alias=$host
1220 case "$host_alias" in
1221 NONE)
1222 case $nonopt in
1223 NONE)
1224 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1225 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1226 fi ;;
1227 *) host_alias=$nonopt ;;
1228 esac ;;
1229 esac
1231 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1232 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1233 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1234 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1235 echo "$ac_t""$host" 1>&6
1237 echo $ac_n "checking target system type""... $ac_c" 1>&6
1238 echo "configure:1239: checking target system type" >&5
1240 target_alias=$target
1241 case "$target_alias" in
1242 NONE)
1243 case $nonopt in
1244 NONE) target_alias=$host_alias ;;
1245 *) target_alias=$nonopt ;;
1246 esac ;;
1247 esac
1249 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1250 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1251 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1252 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1253 echo "$ac_t""$target" 1>&6
1255 echo $ac_n "checking build system type""... $ac_c" 1>&6
1256 echo "configure:1257: checking build system type" >&5
1258 build_alias=$build
1259 case "$build_alias" in
1260 NONE)
1261 case $nonopt in
1262 NONE) build_alias=$host_alias ;;
1263 *) build_alias=$nonopt ;;
1264 esac ;;
1265 esac
1267 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1268 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1269 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1270 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$ac_t""$build" 1>&6
1273 test "$host_alias" != "$target_alias" &&
1274 test "$program_prefix$program_suffix$program_transform_name" = \
1275 NONENONEs,x,x, &&
1276 program_prefix=${target_alias}-
1279 case "$host_os" in
1280 *irix6*) cat >> confdefs.h <<\EOF
1281 #include <standards.h>
1285 esac
1289 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1290 echo "configure:1291: checking config.cache system type" >&5
1291 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1292 test x"$ac_cv_host_system_type" != x"$host"; } ||
1293 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1294 test x"$ac_cv_build_system_type" != x"$build"; } ||
1295 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1296 test x"$ac_cv_target_system_type" != x"$target"; }; then
1297 echo "$ac_t""different" 1>&6
1298 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1299 else
1300 echo "$ac_t""same" 1>&6
1302 ac_cv_host_system_type="$host"
1303 ac_cv_build_system_type="$build"
1304 ac_cv_target_system_type="$target"
1308 # Config CPPFLAG settings for strange OS's that must be set
1309 # before other tests.
1311 case "$host_os" in
1312 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1313 *hpux*)
1314 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1315 echo "configure:1316: checking whether ${CC-cc} accepts -Ae" >&5
1316 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319 echo 'void f(){}' > conftest.c
1320 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1321 ac_cv_prog_cc_Ae=yes
1322 else
1323 ac_cv_prog_cc_Ae=no
1325 rm -f conftest*
1329 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1330 # mmap on HPUX is completely broken...
1331 cat >> confdefs.h <<\EOF
1332 #define MMAP_BLACKLIST 1
1335 if test $ac_cv_prog_cc_Ae = yes; then
1336 CPPFLAGS="$CPPFLAGS -Ae"
1339 # Defines needed for HPUX support.
1340 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1341 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1343 case `uname -r` in
1344 *9*|*10*)
1345 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1346 cat >> confdefs.h <<\EOF
1347 #define USE_BOTH_CRYPT_CALLS 1
1351 *11*)
1352 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1353 cat >> confdefs.h <<\EOF
1354 #define USE_BOTH_CRYPT_CALLS 1
1358 esac
1361 # AIX4.x doesn't even admit to having large
1362 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1364 *aix4*)
1365 echo "$ac_t""enabling large file support" 1>&6
1366 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1369 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1370 # to the existance of large files..
1371 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1372 # recommendations on large file support, however it makes the
1373 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1374 # recommendation makes the compile fail on gcc2.7. JRA.
1376 *solaris*)
1377 case `uname -r` in
1378 5.0*|5.1*|5.2*|5.3*|5.5*)
1379 echo "$ac_t""no large file support" 1>&6
1381 5.*)
1382 echo "$ac_t""enabling large file support" 1>&6
1383 if test "$ac_cv_prog_gcc" = yes; then
1384 ${CC-cc} -v >conftest.c 2>&1
1385 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1386 rm -fr conftest.c
1387 case "$ac_cv_gcc_compiler_version_number" in
1388 *"gcc version 2.6"*|*"gcc version 2.7"*)
1389 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1392 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1394 esac
1395 else
1396 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1399 esac
1402 # Tests needed for SINIX large file support.
1404 *sysv4*)
1405 if test $host = mips-sni-sysv4 ; then
1406 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1407 echo "configure:1408: checking for LFS support" >&5
1408 old_CPPFLAGS="$CPPFLAGS"
1409 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1410 if test "$cross_compiling" = yes; then
1411 SINIX_LFS_SUPPORT=cross
1412 else
1413 cat > conftest.$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1417 #include <unistd.h>
1418 main () {
1419 #if _LFS64_LARGEFILE == 1
1420 exit(0);
1421 #else
1422 exit(1);
1423 #endif
1426 if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1427 then
1428 SINIX_LFS_SUPPORT=yes
1429 else
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1432 rm -fr conftest*
1433 SINIX_LFS_SUPPORT=no
1435 rm -fr conftest*
1438 CPPFLAGS="$old_CPPFLAGS"
1439 if test x$SINIX_LFS_SUPPORT = xyes ; then
1440 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1441 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1442 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1443 LIBS="`getconf LFS64_LIBS` $LIBS"
1445 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1449 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1451 *linux*)
1452 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1453 echo "configure:1454: checking for LFS support" >&5
1454 old_CPPFLAGS="$CPPFLAGS"
1455 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1456 if test "$cross_compiling" = yes; then
1457 LINUX_LFS_SUPPORT=cross
1458 else
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1463 #include <unistd.h>
1464 #include <sys/utsname.h>
1465 main() {
1466 #if _LFS64_LARGEFILE == 1
1467 struct utsname uts;
1468 char *release;
1469 int major, minor;
1471 /* Ensure this is glibc 2.2 or higher */
1472 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1473 int libc_major = __GLIBC__;
1474 int libc_minor = __GLIBC_MINOR__;
1476 if (libc_major < 2)
1477 exit(1);
1478 if (libc_minor < 2)
1479 exit(1);
1480 #endif
1482 /* Ensure this is kernel 2.4 or higher */
1484 uname(&uts);
1485 release = uts.release;
1486 major = atoi(strsep(&release, "."));
1487 minor = atoi(strsep(&release, "."));
1489 if (major > 2 || (major == 2 && minor > 3))
1490 exit(0);
1491 exit(1);
1492 #else
1493 exit(1);
1494 #endif
1498 if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1499 then
1500 LINUX_LFS_SUPPORT=yes
1501 else
1502 echo "configure: failed program was:" >&5
1503 cat conftest.$ac_ext >&5
1504 rm -fr conftest*
1505 LINUX_LFS_SUPPORT=no
1507 rm -fr conftest*
1510 CPPFLAGS="$old_CPPFLAGS"
1511 if test x$LINUX_LFS_SUPPORT = xyes ; then
1512 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1514 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1517 *hurd*)
1518 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1519 echo "configure:1520: checking for LFS support" >&5
1520 old_CPPFLAGS="$CPPFLAGS"
1521 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1522 if test "$cross_compiling" = yes; then
1523 GLIBC_LFS_SUPPORT=cross
1524 else
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1529 #include <unistd.h>
1530 main () {
1531 #if _LFS64_LARGEFILE == 1
1532 exit(0);
1533 #else
1534 exit(1);
1535 #endif
1538 if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1539 then
1540 GLIBC_LFS_SUPPORT=yes
1541 else
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1544 rm -fr conftest*
1545 GLIBC_LFS_SUPPORT=no
1547 rm -fr conftest*
1550 CPPFLAGS="$old_CPPFLAGS"
1551 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1552 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1554 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1557 esac
1559 echo $ac_n "checking for inline""... $ac_c" 1>&6
1560 echo "configure:1561: checking for inline" >&5
1561 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1563 else
1564 ac_cv_c_inline=no
1565 for ac_kw in inline __inline__ __inline; do
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1570 int main() {
1571 } $ac_kw foo() {
1572 ; return 0; }
1574 if { (eval echo configure:1575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1575 rm -rf conftest*
1576 ac_cv_c_inline=$ac_kw; break
1577 else
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1581 rm -f conftest*
1582 done
1586 echo "$ac_t""$ac_cv_c_inline" 1>&6
1587 case "$ac_cv_c_inline" in
1588 inline | yes) ;;
1589 no) cat >> confdefs.h <<\EOF
1590 #define inline
1593 *) cat >> confdefs.h <<EOF
1594 #define inline $ac_cv_c_inline
1597 esac
1599 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1600 echo "configure:1601: checking how to run the C preprocessor" >&5
1601 # On Suns, sometimes $CPP names a directory.
1602 if test -n "$CPP" && test -d "$CPP"; then
1603 CPP=
1605 if test -z "$CPP"; then
1606 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1608 else
1609 # This must be in double quotes, not single quotes, because CPP may get
1610 # substituted into the Makefile and "${CC-cc}" will confuse make.
1611 CPP="${CC-cc} -E"
1612 # On the NeXT, cc -E runs the code through the compiler's parser,
1613 # not just through cpp.
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 #include <assert.h>
1618 Syntax Error
1620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1621 { (eval echo configure:1622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1623 if test -z "$ac_err"; then
1625 else
1626 echo "$ac_err" >&5
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1629 rm -rf conftest*
1630 CPP="${CC-cc} -E -traditional-cpp"
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #include <assert.h>
1635 Syntax Error
1637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638 { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640 if test -z "$ac_err"; then
1642 else
1643 echo "$ac_err" >&5
1644 echo "configure: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1646 rm -rf conftest*
1647 CPP="${CC-cc} -nologo -E"
1648 cat > conftest.$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1651 #include <assert.h>
1652 Syntax Error
1654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1655 { (eval echo configure:1656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1657 if test -z "$ac_err"; then
1659 else
1660 echo "$ac_err" >&5
1661 echo "configure: failed program was:" >&5
1662 cat conftest.$ac_ext >&5
1663 rm -rf conftest*
1664 CPP=/lib/cpp
1666 rm -f conftest*
1668 rm -f conftest*
1670 rm -f conftest*
1671 ac_cv_prog_CPP="$CPP"
1673 CPP="$ac_cv_prog_CPP"
1674 else
1675 ac_cv_prog_CPP="$CPP"
1677 echo "$ac_t""$CPP" 1>&6
1679 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1680 echo "configure:1681: checking for ANSI C header files" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <stdlib.h>
1688 #include <stdarg.h>
1689 #include <string.h>
1690 #include <float.h>
1692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1693 { (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1695 if test -z "$ac_err"; then
1696 rm -rf conftest*
1697 ac_cv_header_stdc=yes
1698 else
1699 echo "$ac_err" >&5
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1702 rm -rf conftest*
1703 ac_cv_header_stdc=no
1705 rm -f conftest*
1707 if test $ac_cv_header_stdc = yes; then
1708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <string.h>
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715 egrep "memchr" >/dev/null 2>&1; then
1717 else
1718 rm -rf conftest*
1719 ac_cv_header_stdc=no
1721 rm -f conftest*
1725 if test $ac_cv_header_stdc = yes; then
1726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 #include <stdlib.h>
1732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1733 egrep "free" >/dev/null 2>&1; then
1735 else
1736 rm -rf conftest*
1737 ac_cv_header_stdc=no
1739 rm -f conftest*
1743 if test $ac_cv_header_stdc = yes; then
1744 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1745 if test "$cross_compiling" = yes; then
1747 else
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 #include <ctype.h>
1752 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1753 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1755 int main () { int i; for (i = 0; i < 256; i++)
1756 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1757 exit (0); }
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1761 then
1763 else
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 rm -fr conftest*
1767 ac_cv_header_stdc=no
1769 rm -fr conftest*
1775 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1776 if test $ac_cv_header_stdc = yes; then
1777 cat >> confdefs.h <<\EOF
1778 #define STDC_HEADERS 1
1783 ac_header_dirent=no
1784 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1787 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_hdr that defines DIR" >&5
1789 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 #include <sys/types.h>
1796 #include <$ac_hdr>
1797 int main() {
1798 DIR *dirp = 0;
1799 ; return 0; }
1801 if { (eval echo configure:1802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1802 rm -rf conftest*
1803 eval "ac_cv_header_dirent_$ac_safe=yes"
1804 else
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1807 rm -rf conftest*
1808 eval "ac_cv_header_dirent_$ac_safe=no"
1810 rm -f conftest*
1812 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1813 echo "$ac_t""yes" 1>&6
1814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1815 cat >> confdefs.h <<EOF
1816 #define $ac_tr_hdr 1
1818 ac_header_dirent=$ac_hdr; break
1819 else
1820 echo "$ac_t""no" 1>&6
1822 done
1823 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1824 if test $ac_header_dirent = dirent.h; then
1825 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1826 echo "configure:1827: checking for opendir in -ldir" >&5
1827 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831 ac_save_LIBS="$LIBS"
1832 LIBS="-ldir $LIBS"
1833 cat > conftest.$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* Override any gcc2 internal prototype to avoid an error. */
1837 /* We use char because int might match the return type of a gcc2
1838 builtin and then its argument prototype would still apply. */
1839 char opendir();
1841 int main() {
1842 opendir()
1843 ; return 0; }
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1846 rm -rf conftest*
1847 eval "ac_cv_lib_$ac_lib_var=yes"
1848 else
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1851 rm -rf conftest*
1852 eval "ac_cv_lib_$ac_lib_var=no"
1854 rm -f conftest*
1855 LIBS="$ac_save_LIBS"
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 LIBS="$LIBS -ldir"
1861 else
1862 echo "$ac_t""no" 1>&6
1865 else
1866 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1867 echo "configure:1868: checking for opendir in -lx" >&5
1868 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872 ac_save_LIBS="$LIBS"
1873 LIBS="-lx $LIBS"
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1880 char opendir();
1882 int main() {
1883 opendir()
1884 ; return 0; }
1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 rm -rf conftest*
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1889 else
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -rf conftest*
1893 eval "ac_cv_lib_$ac_lib_var=no"
1895 rm -f conftest*
1896 LIBS="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 LIBS="$LIBS -lx"
1902 else
1903 echo "$ac_t""no" 1>&6
1908 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1909 echo "configure:1910: checking whether time.h and sys/time.h may both be included" >&5
1910 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1912 else
1913 cat > conftest.$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 #include <sys/types.h>
1917 #include <sys/time.h>
1918 #include <time.h>
1919 int main() {
1920 struct tm *tp;
1921 ; return 0; }
1923 if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 rm -rf conftest*
1925 ac_cv_header_time=yes
1926 else
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 ac_cv_header_time=no
1932 rm -f conftest*
1935 echo "$ac_t""$ac_cv_header_time" 1>&6
1936 if test $ac_cv_header_time = yes; then
1937 cat >> confdefs.h <<\EOF
1938 #define TIME_WITH_SYS_TIME 1
1943 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1944 echo "configure:1945: checking for sys/wait.h that is POSIX.1 compatible" >&5
1945 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1947 else
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 #include <sys/types.h>
1952 #include <sys/wait.h>
1953 #ifndef WEXITSTATUS
1954 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1955 #endif
1956 #ifndef WIFEXITED
1957 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1958 #endif
1959 int main() {
1960 int s;
1961 wait (&s);
1962 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1963 ; return 0; }
1965 if { (eval echo configure:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1966 rm -rf conftest*
1967 ac_cv_header_sys_wait_h=yes
1968 else
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1971 rm -rf conftest*
1972 ac_cv_header_sys_wait_h=no
1974 rm -f conftest*
1977 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1978 if test $ac_cv_header_sys_wait_h = yes; then
1979 cat >> confdefs.h <<\EOF
1980 #define HAVE_SYS_WAIT_H 1
1985 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_hdr" >&5
1990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1992 else
1993 cat > conftest.$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1996 #include <$ac_hdr>
1998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1999 { (eval echo configure:2000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2001 if test -z "$ac_err"; then
2002 rm -rf conftest*
2003 eval "ac_cv_header_$ac_safe=yes"
2004 else
2005 echo "$ac_err" >&5
2006 echo "configure: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2008 rm -rf conftest*
2009 eval "ac_cv_header_$ac_safe=no"
2011 rm -f conftest*
2013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2016 cat >> confdefs.h <<EOF
2017 #define $ac_tr_hdr 1
2020 else
2021 echo "$ac_t""no" 1>&6
2023 done
2025 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_hdr" >&5
2030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2032 else
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2036 #include <$ac_hdr>
2038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2039 { (eval echo configure:2040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2041 if test -z "$ac_err"; then
2042 rm -rf conftest*
2043 eval "ac_cv_header_$ac_safe=yes"
2044 else
2045 echo "$ac_err" >&5
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2048 rm -rf conftest*
2049 eval "ac_cv_header_$ac_safe=no"
2051 rm -f conftest*
2053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2056 cat >> confdefs.h <<EOF
2057 #define $ac_tr_hdr 1
2060 else
2061 echo "$ac_t""no" 1>&6
2063 done
2065 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_hdr" >&5
2070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 #include <$ac_hdr>
2078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2079 { (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2081 if test -z "$ac_err"; then
2082 rm -rf conftest*
2083 eval "ac_cv_header_$ac_safe=yes"
2084 else
2085 echo "$ac_err" >&5
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2088 rm -rf conftest*
2089 eval "ac_cv_header_$ac_safe=no"
2091 rm -f conftest*
2093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2096 cat >> confdefs.h <<EOF
2097 #define $ac_tr_hdr 1
2100 else
2101 echo "$ac_t""no" 1>&6
2103 done
2105 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2109 echo "configure:2110: checking for $ac_hdr" >&5
2110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2112 else
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 #include <$ac_hdr>
2118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2119 { (eval echo configure:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2121 if test -z "$ac_err"; then
2122 rm -rf conftest*
2123 eval "ac_cv_header_$ac_safe=yes"
2124 else
2125 echo "$ac_err" >&5
2126 echo "configure: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2128 rm -rf conftest*
2129 eval "ac_cv_header_$ac_safe=no"
2131 rm -f conftest*
2133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2134 echo "$ac_t""yes" 1>&6
2135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2136 cat >> confdefs.h <<EOF
2137 #define $ac_tr_hdr 1
2140 else
2141 echo "$ac_t""no" 1>&6
2143 done
2145 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
2147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_hdr" >&5
2150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 #include <$ac_hdr>
2158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2159 { (eval echo configure:2160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2161 if test -z "$ac_err"; then
2162 rm -rf conftest*
2163 eval "ac_cv_header_$ac_safe=yes"
2164 else
2165 echo "$ac_err" >&5
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 rm -rf conftest*
2169 eval "ac_cv_header_$ac_safe=no"
2171 rm -f conftest*
2173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2176 cat >> confdefs.h <<EOF
2177 #define $ac_tr_hdr 1
2180 else
2181 echo "$ac_t""no" 1>&6
2183 done
2185 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_hdr" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2192 else
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 #include <$ac_hdr>
2198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2202 rm -rf conftest*
2203 eval "ac_cv_header_$ac_safe=yes"
2204 else
2205 echo "$ac_err" >&5
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 rm -rf conftest*
2209 eval "ac_cv_header_$ac_safe=no"
2211 rm -f conftest*
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_hdr 1
2220 else
2221 echo "$ac_t""no" 1>&6
2223 done
2225 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_hdr" >&5
2230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2232 else
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 #include <$ac_hdr>
2238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241 if test -z "$ac_err"; then
2242 rm -rf conftest*
2243 eval "ac_cv_header_$ac_safe=yes"
2244 else
2245 echo "$ac_err" >&5
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2248 rm -rf conftest*
2249 eval "ac_cv_header_$ac_safe=no"
2251 rm -f conftest*
2253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2256 cat >> confdefs.h <<EOF
2257 #define $ac_tr_hdr 1
2260 else
2261 echo "$ac_t""no" 1>&6
2263 done
2265 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_hdr" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272 else
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 #include <$ac_hdr>
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2282 rm -rf conftest*
2283 eval "ac_cv_header_$ac_safe=yes"
2284 else
2285 echo "$ac_err" >&5
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 rm -rf conftest*
2289 eval "ac_cv_header_$ac_safe=no"
2291 rm -f conftest*
2293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2296 cat >> confdefs.h <<EOF
2297 #define $ac_tr_hdr 1
2300 else
2301 echo "$ac_t""no" 1>&6
2303 done
2307 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2308 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2310 case "$host_os" in
2311 *hpux*)
2312 cat > conftest.$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2315 #include <shadow.h>
2316 int main() {
2317 struct spwd testme
2318 ; return 0; }
2320 if { (eval echo configure:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321 rm -rf conftest*
2322 ac_cv_header_shadow_h=yes
2323 else
2324 echo "configure: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2326 rm -rf conftest*
2327 ac_cv_header_shadow_h=no
2329 rm -f conftest*
2330 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2331 cat >> confdefs.h <<\EOF
2332 #define HAVE_SHADOW_H 1
2337 esac
2338 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_hdr" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2345 else
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 #include <$ac_hdr>
2351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2355 rm -rf conftest*
2356 eval "ac_cv_header_$ac_safe=yes"
2357 else
2358 echo "$ac_err" >&5
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2361 rm -rf conftest*
2362 eval "ac_cv_header_$ac_safe=no"
2364 rm -f conftest*
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2369 cat >> confdefs.h <<EOF
2370 #define $ac_tr_hdr 1
2373 else
2374 echo "$ac_t""no" 1>&6
2376 done
2378 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_hdr" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2385 else
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <$ac_hdr>
2391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2392 { (eval echo configure:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2394 if test -z "$ac_err"; then
2395 rm -rf conftest*
2396 eval "ac_cv_header_$ac_safe=yes"
2397 else
2398 echo "$ac_err" >&5
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 rm -rf conftest*
2402 eval "ac_cv_header_$ac_safe=no"
2404 rm -f conftest*
2406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2409 cat >> confdefs.h <<EOF
2410 #define $ac_tr_hdr 1
2413 else
2414 echo "$ac_t""no" 1>&6
2416 done
2418 for ac_hdr in stropts.h poll.h
2420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2425 else
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 #include <$ac_hdr>
2431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2435 rm -rf conftest*
2436 eval "ac_cv_header_$ac_safe=yes"
2437 else
2438 echo "$ac_err" >&5
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2441 rm -rf conftest*
2442 eval "ac_cv_header_$ac_safe=no"
2444 rm -f conftest*
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h <<EOF
2450 #define $ac_tr_hdr 1
2453 else
2454 echo "$ac_t""no" 1>&6
2456 done
2458 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_hdr" >&5
2463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 #include <$ac_hdr>
2471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2475 rm -rf conftest*
2476 eval "ac_cv_header_$ac_safe=yes"
2477 else
2478 echo "$ac_err" >&5
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -rf conftest*
2482 eval "ac_cv_header_$ac_safe=no"
2484 rm -f conftest*
2486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2489 cat >> confdefs.h <<EOF
2490 #define $ac_tr_hdr 1
2493 else
2494 echo "$ac_t""no" 1>&6
2496 done
2498 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_hdr" >&5
2503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2505 else
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #include <$ac_hdr>
2511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2514 if test -z "$ac_err"; then
2515 rm -rf conftest*
2516 eval "ac_cv_header_$ac_safe=yes"
2517 else
2518 echo "$ac_err" >&5
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2521 rm -rf conftest*
2522 eval "ac_cv_header_$ac_safe=no"
2524 rm -f conftest*
2526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2529 cat >> confdefs.h <<EOF
2530 #define $ac_tr_hdr 1
2533 else
2534 echo "$ac_t""no" 1>&6
2536 done
2539 # For experimental utmp support (lastlog on some BSD-like systems)
2540 for ac_hdr in utmp.h utmpx.h lastlog.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
2581 # For quotas on Veritas VxFS filesystems
2582 for ac_hdr in sys/fs/vx_quota.h
2584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_hdr" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2589 else
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <$ac_hdr>
2595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2596 { (eval echo configure:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2598 if test -z "$ac_err"; then
2599 rm -rf conftest*
2600 eval "ac_cv_header_$ac_safe=yes"
2601 else
2602 echo "$ac_err" >&5
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 rm -rf conftest*
2606 eval "ac_cv_header_$ac_safe=no"
2608 rm -f conftest*
2610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2613 cat >> confdefs.h <<EOF
2614 #define $ac_tr_hdr 1
2617 else
2618 echo "$ac_t""no" 1>&6
2620 done
2623 # For quotas on Linux XFS filesystems
2624 for ac_hdr in linux/xqm.h
2626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_hdr" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631 else
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 #include <$ac_hdr>
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2641 rm -rf conftest*
2642 eval "ac_cv_header_$ac_safe=yes"
2643 else
2644 echo "$ac_err" >&5
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 rm -rf conftest*
2648 eval "ac_cv_header_$ac_safe=no"
2650 rm -f conftest*
2652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2655 cat >> confdefs.h <<EOF
2656 #define $ac_tr_hdr 1
2659 else
2660 echo "$ac_t""no" 1>&6
2662 done
2665 echo $ac_n "checking size of int""... $ac_c" 1>&6
2666 echo "configure:2667: checking size of int" >&5
2667 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2669 else
2670 if test "$cross_compiling" = yes; then
2671 ac_cv_sizeof_int=cross
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <stdio.h>
2677 main()
2679 FILE *f=fopen("conftestval", "w");
2680 if (!f) exit(1);
2681 fprintf(f, "%d\n", sizeof(int));
2682 exit(0);
2685 if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2686 then
2687 ac_cv_sizeof_int=`cat conftestval`
2688 else
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2691 rm -fr conftest*
2692 ac_cv_sizeof_int=0
2694 rm -fr conftest*
2698 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2699 cat >> confdefs.h <<EOF
2700 #define SIZEOF_INT $ac_cv_sizeof_int
2704 echo $ac_n "checking size of long""... $ac_c" 1>&6
2705 echo "configure:2706: checking size of long" >&5
2706 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709 if test "$cross_compiling" = yes; then
2710 ac_cv_sizeof_long=cross
2711 else
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <stdio.h>
2716 main()
2718 FILE *f=fopen("conftestval", "w");
2719 if (!f) exit(1);
2720 fprintf(f, "%d\n", sizeof(long));
2721 exit(0);
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2725 then
2726 ac_cv_sizeof_long=`cat conftestval`
2727 else
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2730 rm -fr conftest*
2731 ac_cv_sizeof_long=0
2733 rm -fr conftest*
2737 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2738 cat >> confdefs.h <<EOF
2739 #define SIZEOF_LONG $ac_cv_sizeof_long
2743 echo $ac_n "checking size of short""... $ac_c" 1>&6
2744 echo "configure:2745: checking size of short" >&5
2745 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2747 else
2748 if test "$cross_compiling" = yes; then
2749 ac_cv_sizeof_short=cross
2750 else
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <stdio.h>
2755 main()
2757 FILE *f=fopen("conftestval", "w");
2758 if (!f) exit(1);
2759 fprintf(f, "%d\n", sizeof(short));
2760 exit(0);
2763 if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2764 then
2765 ac_cv_sizeof_short=`cat conftestval`
2766 else
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -fr conftest*
2770 ac_cv_sizeof_short=0
2772 rm -fr conftest*
2776 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2777 cat >> confdefs.h <<EOF
2778 #define SIZEOF_SHORT $ac_cv_sizeof_short
2783 echo $ac_n "checking for working const""... $ac_c" 1>&6
2784 echo "configure:2785: checking for working const" >&5
2785 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2787 else
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2792 int main() {
2794 /* Ultrix mips cc rejects this. */
2795 typedef int charset[2]; const charset x;
2796 /* SunOS 4.1.1 cc rejects this. */
2797 char const *const *ccp;
2798 char **p;
2799 /* NEC SVR4.0.2 mips cc rejects this. */
2800 struct point {int x, y;};
2801 static struct point const zero = {0,0};
2802 /* AIX XL C 1.02.0.0 rejects this.
2803 It does not let you subtract one const X* pointer from another in an arm
2804 of an if-expression whose if-part is not a constant expression */
2805 const char *g = "string";
2806 ccp = &g + (g ? g-g : 0);
2807 /* HPUX 7.0 cc rejects these. */
2808 ++ccp;
2809 p = (char**) ccp;
2810 ccp = (char const *const *) p;
2811 { /* SCO 3.2v4 cc rejects this. */
2812 char *t;
2813 char const *s = 0 ? (char *) 0 : (char const *) 0;
2815 *t++ = 0;
2817 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2818 int x[] = {25, 17};
2819 const int *foo = &x[0];
2820 ++foo;
2822 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2823 typedef const int *iptr;
2824 iptr p = 0;
2825 ++p;
2827 { /* AIX XL C 1.02.0.0 rejects this saying
2828 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2829 struct s { int j; const int *ap[3]; };
2830 struct s *b; b->j = 5;
2832 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2833 const int foo = 10;
2836 ; return 0; }
2838 if { (eval echo configure:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2839 rm -rf conftest*
2840 ac_cv_c_const=yes
2841 else
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 rm -rf conftest*
2845 ac_cv_c_const=no
2847 rm -f conftest*
2850 echo "$ac_t""$ac_cv_c_const" 1>&6
2851 if test $ac_cv_c_const = no; then
2852 cat >> confdefs.h <<\EOF
2853 #define const
2858 echo $ac_n "checking for inline""... $ac_c" 1>&6
2859 echo "configure:2860: checking for inline" >&5
2860 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2862 else
2863 ac_cv_c_inline=no
2864 for ac_kw in inline __inline__ __inline; do
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2869 int main() {
2870 } $ac_kw foo() {
2871 ; return 0; }
2873 if { (eval echo configure:2874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2874 rm -rf conftest*
2875 ac_cv_c_inline=$ac_kw; break
2876 else
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 rm -f conftest*
2881 done
2885 echo "$ac_t""$ac_cv_c_inline" 1>&6
2886 case "$ac_cv_c_inline" in
2887 inline | yes) ;;
2888 no) cat >> confdefs.h <<\EOF
2889 #define inline
2892 *) cat >> confdefs.h <<EOF
2893 #define inline $ac_cv_c_inline
2896 esac
2898 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2899 echo "configure:2900: checking whether byte ordering is bigendian" >&5
2900 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2902 else
2903 ac_cv_c_bigendian=unknown
2904 # See if sys/param.h defines the BYTE_ORDER macro.
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <sys/types.h>
2909 #include <sys/param.h>
2910 int main() {
2912 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2913 bogus endian macros
2914 #endif
2915 ; return 0; }
2917 if { (eval echo configure:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2918 rm -rf conftest*
2919 # It does; now see whether it defined to BIG_ENDIAN or not.
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2923 #include <sys/types.h>
2924 #include <sys/param.h>
2925 int main() {
2927 #if BYTE_ORDER != BIG_ENDIAN
2928 not big endian
2929 #endif
2930 ; return 0; }
2932 if { (eval echo configure:2933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2933 rm -rf conftest*
2934 ac_cv_c_bigendian=yes
2935 else
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2938 rm -rf conftest*
2939 ac_cv_c_bigendian=no
2941 rm -f conftest*
2942 else
2943 echo "configure: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2946 rm -f conftest*
2947 if test $ac_cv_c_bigendian = unknown; then
2948 if test "$cross_compiling" = yes; then
2949 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2950 else
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 main () {
2955 /* Are we little or big endian? From Harbison&Steele. */
2956 union
2958 long l;
2959 char c[sizeof (long)];
2960 } u;
2961 u.l = 1;
2962 exit (u.c[sizeof (long) - 1] == 1);
2965 if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2966 then
2967 ac_cv_c_bigendian=no
2968 else
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 rm -fr conftest*
2972 ac_cv_c_bigendian=yes
2974 rm -fr conftest*
2980 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2981 if test $ac_cv_c_bigendian = yes; then
2982 cat >> confdefs.h <<\EOF
2983 #define WORDS_BIGENDIAN 1
2988 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2989 echo "configure:2990: checking whether char is unsigned" >&5
2990 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2992 else
2993 if test "$GCC" = yes; then
2994 # GCC predefines this symbol on systems where it applies.
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #ifdef __CHAR_UNSIGNED__
3000 #endif
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 egrep "yes" >/dev/null 2>&1; then
3005 rm -rf conftest*
3006 ac_cv_c_char_unsigned=yes
3007 else
3008 rm -rf conftest*
3009 ac_cv_c_char_unsigned=no
3011 rm -f conftest*
3013 else
3014 if test "$cross_compiling" = yes; then
3015 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3016 else
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3021 #if !defined(__STDC__) || __STDC__ != 1
3022 #define volatile
3023 #endif
3024 main() {
3025 volatile char c = 255; exit(c < 0);
3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3029 then
3030 ac_cv_c_char_unsigned=yes
3031 else
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3034 rm -fr conftest*
3035 ac_cv_c_char_unsigned=no
3037 rm -fr conftest*
3043 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3044 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3045 cat >> confdefs.h <<\EOF
3046 #define __CHAR_UNSIGNED__ 1
3052 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3053 echo "configure:3054: checking return type of signal handlers" >&5
3054 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3056 else
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <sys/types.h>
3061 #include <signal.h>
3062 #ifdef signal
3063 #undef signal
3064 #endif
3065 #ifdef __cplusplus
3066 extern "C" void (*signal (int, void (*)(int)))(int);
3067 #else
3068 void (*signal ()) ();
3069 #endif
3071 int main() {
3072 int i;
3073 ; return 0; }
3075 if { (eval echo configure:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3076 rm -rf conftest*
3077 ac_cv_type_signal=void
3078 else
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3081 rm -rf conftest*
3082 ac_cv_type_signal=int
3084 rm -f conftest*
3087 echo "$ac_t""$ac_cv_type_signal" 1>&6
3088 cat >> confdefs.h <<EOF
3089 #define RETSIGTYPE $ac_cv_type_signal
3093 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3094 echo "configure:3095: checking for uid_t in sys/types.h" >&5
3095 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3097 else
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <sys/types.h>
3103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3104 egrep "uid_t" >/dev/null 2>&1; then
3105 rm -rf conftest*
3106 ac_cv_type_uid_t=yes
3107 else
3108 rm -rf conftest*
3109 ac_cv_type_uid_t=no
3111 rm -f conftest*
3115 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3116 if test $ac_cv_type_uid_t = no; then
3117 cat >> confdefs.h <<\EOF
3118 #define uid_t int
3121 cat >> confdefs.h <<\EOF
3122 #define gid_t int
3127 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3128 echo "configure:3129: checking for mode_t" >&5
3129 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3131 else
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3135 #include <sys/types.h>
3136 #if STDC_HEADERS
3137 #include <stdlib.h>
3138 #include <stddef.h>
3139 #endif
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3143 rm -rf conftest*
3144 ac_cv_type_mode_t=yes
3145 else
3146 rm -rf conftest*
3147 ac_cv_type_mode_t=no
3149 rm -f conftest*
3152 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3153 if test $ac_cv_type_mode_t = no; then
3154 cat >> confdefs.h <<\EOF
3155 #define mode_t int
3160 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3161 echo "configure:3162: checking for off_t" >&5
3162 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 #include <sys/types.h>
3169 #if STDC_HEADERS
3170 #include <stdlib.h>
3171 #include <stddef.h>
3172 #endif
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3176 rm -rf conftest*
3177 ac_cv_type_off_t=yes
3178 else
3179 rm -rf conftest*
3180 ac_cv_type_off_t=no
3182 rm -f conftest*
3185 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3186 if test $ac_cv_type_off_t = no; then
3187 cat >> confdefs.h <<\EOF
3188 #define off_t long
3193 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3194 echo "configure:3195: checking for size_t" >&5
3195 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3197 else
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include <sys/types.h>
3202 #if STDC_HEADERS
3203 #include <stdlib.h>
3204 #include <stddef.h>
3205 #endif
3207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3208 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3209 rm -rf conftest*
3210 ac_cv_type_size_t=yes
3211 else
3212 rm -rf conftest*
3213 ac_cv_type_size_t=no
3215 rm -f conftest*
3218 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3219 if test $ac_cv_type_size_t = no; then
3220 cat >> confdefs.h <<\EOF
3221 #define size_t unsigned
3226 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3227 echo "configure:3228: checking for pid_t" >&5
3228 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3230 else
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 #include <sys/types.h>
3235 #if STDC_HEADERS
3236 #include <stdlib.h>
3237 #include <stddef.h>
3238 #endif
3240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3241 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3242 rm -rf conftest*
3243 ac_cv_type_pid_t=yes
3244 else
3245 rm -rf conftest*
3246 ac_cv_type_pid_t=no
3248 rm -f conftest*
3251 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3252 if test $ac_cv_type_pid_t = no; then
3253 cat >> confdefs.h <<\EOF
3254 #define pid_t int
3259 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3260 echo "configure:3261: checking for st_rdev in struct stat" >&5
3261 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3263 else
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <sys/types.h>
3268 #include <sys/stat.h>
3269 int main() {
3270 struct stat s; s.st_rdev;
3271 ; return 0; }
3273 if { (eval echo configure:3274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 rm -rf conftest*
3275 ac_cv_struct_st_rdev=yes
3276 else
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3279 rm -rf conftest*
3280 ac_cv_struct_st_rdev=no
3282 rm -f conftest*
3285 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3286 if test $ac_cv_struct_st_rdev = yes; then
3287 cat >> confdefs.h <<\EOF
3288 #define HAVE_ST_RDEV 1
3293 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3294 echo "configure:3295: checking for d_off in dirent" >&5
3295 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3302 #include <unistd.h>
3303 #include <sys/types.h>
3304 #include <dirent.h>
3305 int main() {
3306 struct dirent d; d.d_off;
3307 ; return 0; }
3309 if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3310 rm -rf conftest*
3311 ac_cv_dirent_d_off=yes
3312 else
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3315 rm -rf conftest*
3316 ac_cv_dirent_d_off=no
3318 rm -f conftest*
3321 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3322 if test $ac_cv_dirent_d_off = yes; then
3323 cat >> confdefs.h <<\EOF
3324 #define HAVE_DIRENT_D_OFF 1
3329 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3330 echo "configure:3331: checking for ino_t" >&5
3331 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3333 else
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 #include <sys/types.h>
3338 #if STDC_HEADERS
3339 #include <stdlib.h>
3340 #include <stddef.h>
3341 #endif
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3345 rm -rf conftest*
3346 ac_cv_type_ino_t=yes
3347 else
3348 rm -rf conftest*
3349 ac_cv_type_ino_t=no
3351 rm -f conftest*
3354 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3355 if test $ac_cv_type_ino_t = no; then
3356 cat >> confdefs.h <<\EOF
3357 #define ino_t unsigned
3362 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3363 echo "configure:3364: checking for loff_t" >&5
3364 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3366 else
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 #include <sys/types.h>
3371 #if STDC_HEADERS
3372 #include <stdlib.h>
3373 #include <stddef.h>
3374 #endif
3376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3377 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3378 rm -rf conftest*
3379 ac_cv_type_loff_t=yes
3380 else
3381 rm -rf conftest*
3382 ac_cv_type_loff_t=no
3384 rm -f conftest*
3387 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3388 if test $ac_cv_type_loff_t = no; then
3389 cat >> confdefs.h <<\EOF
3390 #define loff_t off_t
3395 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3396 echo "configure:3397: checking for offset_t" >&5
3397 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3399 else
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include <sys/types.h>
3404 #if STDC_HEADERS
3405 #include <stdlib.h>
3406 #include <stddef.h>
3407 #endif
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3411 rm -rf conftest*
3412 ac_cv_type_offset_t=yes
3413 else
3414 rm -rf conftest*
3415 ac_cv_type_offset_t=no
3417 rm -f conftest*
3420 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3421 if test $ac_cv_type_offset_t = no; then
3422 cat >> confdefs.h <<\EOF
3423 #define offset_t loff_t
3428 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3429 echo "configure:3430: checking for ssize_t" >&5
3430 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432 else
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include <sys/types.h>
3437 #if STDC_HEADERS
3438 #include <stdlib.h>
3439 #include <stddef.h>
3440 #endif
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3444 rm -rf conftest*
3445 ac_cv_type_ssize_t=yes
3446 else
3447 rm -rf conftest*
3448 ac_cv_type_ssize_t=no
3450 rm -f conftest*
3453 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3454 if test $ac_cv_type_ssize_t = no; then
3455 cat >> confdefs.h <<\EOF
3456 #define ssize_t int
3461 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3462 echo "configure:3463: checking for wchar_t" >&5
3463 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3465 else
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 #include <sys/types.h>
3470 #if STDC_HEADERS
3471 #include <stdlib.h>
3472 #include <stddef.h>
3473 #endif
3475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3477 rm -rf conftest*
3478 ac_cv_type_wchar_t=yes
3479 else
3480 rm -rf conftest*
3481 ac_cv_type_wchar_t=no
3483 rm -f conftest*
3486 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3487 if test $ac_cv_type_wchar_t = no; then
3488 cat >> confdefs.h <<\EOF
3489 #define wchar_t unsigned short
3495 ############################################
3496 # for cups support we need libcups, and a handful of header files
3498 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3499 echo "configure:3500: checking for httpConnect in -lcups" >&5
3500 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3503 else
3504 ac_save_LIBS="$LIBS"
3505 LIBS="-lcups $LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3512 char httpConnect();
3514 int main() {
3515 httpConnect()
3516 ; return 0; }
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3519 rm -rf conftest*
3520 eval "ac_cv_lib_$ac_lib_var=yes"
3521 else
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3524 rm -rf conftest*
3525 eval "ac_cv_lib_$ac_lib_var=no"
3527 rm -f conftest*
3528 LIBS="$ac_save_LIBS"
3531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3533 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3535 cat >> confdefs.h <<EOF
3536 #define $ac_tr_lib 1
3539 LIBS="-lcups $LIBS"
3541 else
3542 echo "$ac_t""no" 1>&6
3546 # I wonder if there is a nicer way of doing this?
3548 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3549 for ac_hdr in cups/cups.h cups/language.h
3551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3553 echo "configure:3554: checking for $ac_hdr" >&5
3554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3556 else
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <$ac_hdr>
3562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3563 { (eval echo configure:3564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3565 if test -z "$ac_err"; then
3566 rm -rf conftest*
3567 eval "ac_cv_header_$ac_safe=yes"
3568 else
3569 echo "$ac_err" >&5
3570 echo "configure: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 rm -rf conftest*
3573 eval "ac_cv_header_$ac_safe=no"
3575 rm -f conftest*
3577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3580 cat >> confdefs.h <<EOF
3581 #define $ac_tr_hdr 1
3584 else
3585 echo "$ac_t""no" 1>&6
3587 done
3589 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3590 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3591 cat >> confdefs.h <<\EOF
3592 #define HAVE_CUPS 1
3599 ############################################
3600 # we need libdl for PAM and the new VFS code
3601 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3602 echo "configure:3603: checking for dlopen in -ldl" >&5
3603 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3606 else
3607 ac_save_LIBS="$LIBS"
3608 LIBS="-ldl $LIBS"
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3615 char dlopen();
3617 int main() {
3618 dlopen()
3619 ; return 0; }
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622 rm -rf conftest*
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3624 else
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 rm -rf conftest*
3628 eval "ac_cv_lib_$ac_lib_var=no"
3630 rm -f conftest*
3631 LIBS="$ac_save_LIBS"
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 LIBS="$LIBS -ldl";
3637 cat >> confdefs.h <<\EOF
3638 #define HAVE_LIBDL 1
3641 else
3642 echo "$ac_t""no" 1>&6
3646 ############################################
3647 # check if the compiler can do immediate structures
3648 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3649 echo "configure:3650: checking for immediate structures" >&5
3650 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3652 else
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3658 #include <stdio.h>
3659 int main() {
3661 #define X_FOOBAR(x) ((FOOBAR) { x })
3662 typedef struct {unsigned x;} FOOBAR;
3663 FOOBAR f = X_FOOBAR(1);
3665 ; return 0; }
3667 if { (eval echo configure:3668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 rm -rf conftest*
3669 samba_cv_immediate_structures=yes
3670 else
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 rm -rf conftest*
3674 samba_cv_immediate_structures=no
3676 rm -f conftest*
3679 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3680 if test x"$samba_cv_immediate_structures" = x"yes"; then
3681 cat >> confdefs.h <<\EOF
3682 #define HAVE_IMMEDIATE_STRUCTURES 1
3687 ############################################
3688 # check for unix domain sockets
3689 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3690 echo "configure:3691: checking for unix domain sockets" >&5
3691 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3693 else
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3699 #include <sys/types.h>
3700 #include <stdlib.h>
3701 #include <stddef.h>
3702 #include <sys/socket.h>
3703 #include <sys/un.h>
3704 int main() {
3706 struct sockaddr_un sunaddr;
3707 sunaddr.sun_family = AF_UNIX;
3709 ; return 0; }
3711 if { (eval echo configure:3712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3712 rm -rf conftest*
3713 samba_cv_unixsocket=yes
3714 else
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3717 rm -rf conftest*
3718 samba_cv_unixsocket=no
3720 rm -f conftest*
3723 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3724 if test x"$samba_cv_unixsocket" = x"yes"; then
3725 cat >> confdefs.h <<\EOF
3726 #define HAVE_UNIXSOCKET 1
3731 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3732 echo "configure:3733: checking for socklen_t type" >&5
3733 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3735 else
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3741 #include <sys/types.h>
3742 #if STDC_HEADERS
3743 #include <stdlib.h>
3744 #include <stddef.h>
3745 #endif
3746 #include <sys/socket.h>
3747 int main() {
3748 socklen_t i = 0
3749 ; return 0; }
3751 if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752 rm -rf conftest*
3753 samba_cv_socklen_t=yes
3754 else
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3757 rm -rf conftest*
3758 samba_cv_socklen_t=no
3760 rm -f conftest*
3763 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3764 if test x"$samba_cv_socklen_t" = x"yes"; then
3765 cat >> confdefs.h <<\EOF
3766 #define HAVE_SOCKLEN_T_TYPE 1
3771 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3772 echo "configure:3773: checking for sig_atomic_t type" >&5
3773 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3781 #include <sys/types.h>
3782 #if STDC_HEADERS
3783 #include <stdlib.h>
3784 #include <stddef.h>
3785 #endif
3786 #include <signal.h>
3787 int main() {
3788 sig_atomic_t i = 0
3789 ; return 0; }
3791 if { (eval echo configure:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3792 rm -rf conftest*
3793 samba_cv_sig_atomic_t=yes
3794 else
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 rm -rf conftest*
3798 samba_cv_sig_atomic_t=no
3800 rm -f conftest*
3803 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3804 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3805 cat >> confdefs.h <<\EOF
3806 #define HAVE_SIG_ATOMIC_T_TYPE 1
3811 # stupid headers have the functions but no declaration. grrrr.
3813 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3814 echo "configure:3815: checking for errno declaration" >&5
3815 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3817 else
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 #include <errno.h>
3823 int main() {
3824 int i = (int)errno
3825 ; return 0; }
3827 if { (eval echo configure:3828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3828 rm -rf conftest*
3829 ac_cv_have_errno_decl=yes
3830 else
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 rm -rf conftest*
3834 ac_cv_have_errno_decl=no
3836 rm -f conftest*
3839 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3840 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3841 cat >> confdefs.h <<\EOF
3842 #define HAVE_ERRNO_DECL 1
3848 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3849 echo "configure:3850: checking for setresuid declaration" >&5
3850 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3852 else
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 #include <unistd.h>
3858 int main() {
3859 int i = (int)setresuid
3860 ; return 0; }
3862 if { (eval echo configure:3863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3863 rm -rf conftest*
3864 ac_cv_have_setresuid_decl=yes
3865 else
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3868 rm -rf conftest*
3869 ac_cv_have_setresuid_decl=no
3871 rm -f conftest*
3874 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3875 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3876 cat >> confdefs.h <<\EOF
3877 #define HAVE_SETRESUID_DECL 1
3883 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3884 echo "configure:3885: checking for setresgid declaration" >&5
3885 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3887 else
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 #include <unistd.h>
3893 int main() {
3894 int i = (int)setresgid
3895 ; return 0; }
3897 if { (eval echo configure:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3898 rm -rf conftest*
3899 ac_cv_have_setresgid_decl=yes
3900 else
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3903 rm -rf conftest*
3904 ac_cv_have_setresgid_decl=no
3906 rm -f conftest*
3909 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3910 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3911 cat >> confdefs.h <<\EOF
3912 #define HAVE_SETRESGID_DECL 1
3918 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3919 echo "configure:3920: checking for asprintf declaration" >&5
3920 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3922 else
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3927 #include <stdio.h>
3928 int main() {
3929 int i = (int)asprintf
3930 ; return 0; }
3932 if { (eval echo configure:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3933 rm -rf conftest*
3934 ac_cv_have_asprintf_decl=yes
3935 else
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3938 rm -rf conftest*
3939 ac_cv_have_asprintf_decl=no
3941 rm -f conftest*
3944 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3945 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3946 cat >> confdefs.h <<\EOF
3947 #define HAVE_ASPRINTF_DECL 1
3953 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3954 echo "configure:3955: checking for vasprintf declaration" >&5
3955 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3957 else
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 #include <stdio.h>
3963 int main() {
3964 int i = (int)vasprintf
3965 ; return 0; }
3967 if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 rm -rf conftest*
3969 ac_cv_have_vasprintf_decl=yes
3970 else
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3973 rm -rf conftest*
3974 ac_cv_have_vasprintf_decl=no
3976 rm -f conftest*
3979 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3980 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3981 cat >> confdefs.h <<\EOF
3982 #define HAVE_VASPRINTF_DECL 1
3988 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3989 echo "configure:3990: checking for vsnprintf declaration" >&5
3990 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992 else
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 #include <stdio.h>
3998 int main() {
3999 int i = (int)vsnprintf
4000 ; return 0; }
4002 if { (eval echo configure:4003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4003 rm -rf conftest*
4004 ac_cv_have_vsnprintf_decl=yes
4005 else
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4008 rm -rf conftest*
4009 ac_cv_have_vsnprintf_decl=no
4011 rm -f conftest*
4014 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4015 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4016 cat >> confdefs.h <<\EOF
4017 #define HAVE_VSNPRINTF_DECL 1
4023 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4024 echo "configure:4025: checking for snprintf declaration" >&5
4025 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4027 else
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4032 #include <stdio.h>
4033 int main() {
4034 int i = (int)snprintf
4035 ; return 0; }
4037 if { (eval echo configure:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4038 rm -rf conftest*
4039 ac_cv_have_snprintf_decl=yes
4040 else
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4043 rm -rf conftest*
4044 ac_cv_have_snprintf_decl=no
4046 rm -f conftest*
4049 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4050 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4051 cat >> confdefs.h <<\EOF
4052 #define HAVE_SNPRINTF_DECL 1
4058 # and glibc has setresuid under linux but the function does
4059 # nothing until kernel 2.1.44! very dumb.
4060 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4061 echo "configure:4062: checking for real setresuid" >&5
4062 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4064 else
4066 if test "$cross_compiling" = yes; then
4067 samba_cv_have_setresuid=cross
4068 else
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 #include <errno.h>
4073 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4076 then
4077 samba_cv_have_setresuid=yes
4078 else
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4081 rm -fr conftest*
4082 samba_cv_have_setresuid=no
4084 rm -fr conftest*
4089 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4090 if test x"$samba_cv_have_setresuid" = x"yes"; then
4091 cat >> confdefs.h <<\EOF
4092 #define HAVE_SETRESUID 1
4097 # Do the same check for setresguid...
4099 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4100 echo "configure:4101: checking for real setresgid" >&5
4101 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4103 else
4105 if test "$cross_compiling" = yes; then
4106 samba_cv_have_setresgid=cross
4107 else
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 #include <unistd.h>
4112 #include <errno.h>
4113 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4115 if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4116 then
4117 samba_cv_have_setresgid=yes
4118 else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -fr conftest*
4122 samba_cv_have_setresgid=no
4124 rm -fr conftest*
4129 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4130 if test x"$samba_cv_have_setresgid" = x"yes"; then
4131 cat >> confdefs.h <<\EOF
4132 #define HAVE_SETRESGID 1
4137 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4138 echo "configure:4139: checking for 8-bit clean memcmp" >&5
4139 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4141 else
4142 if test "$cross_compiling" = yes; then
4143 ac_cv_func_memcmp_clean=no
4144 else
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4149 main()
4151 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4152 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4157 then
4158 ac_cv_func_memcmp_clean=yes
4159 else
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 rm -fr conftest*
4163 ac_cv_func_memcmp_clean=no
4165 rm -fr conftest*
4170 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4171 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4174 ###############################################
4175 # Readline included by default unless explicitly asked not to
4176 test "${with_readline+set}" != "set" && with_readline=yes
4178 # test for where we get readline() from
4179 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4180 echo "configure:4181: checking whether to use readline" >&5
4181 # Check whether --with-readline or --without-readline was given.
4182 if test "${with_readline+set}" = set; then
4183 withval="$with_readline"
4184 case "$with_readline" in
4185 yes)
4186 echo "$ac_t""yes" 1>&6
4188 for ac_hdr in readline.h history.h readline/readline.h
4190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4192 echo "configure:4193: checking for $ac_hdr" >&5
4193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4195 else
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4199 #include <$ac_hdr>
4201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4202 { (eval echo configure:4203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4204 if test -z "$ac_err"; then
4205 rm -rf conftest*
4206 eval "ac_cv_header_$ac_safe=yes"
4207 else
4208 echo "$ac_err" >&5
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4211 rm -rf conftest*
4212 eval "ac_cv_header_$ac_safe=no"
4214 rm -f conftest*
4216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4217 echo "$ac_t""yes" 1>&6
4218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4219 cat >> confdefs.h <<EOF
4220 #define $ac_tr_hdr 1
4223 else
4224 echo "$ac_t""no" 1>&6
4226 done
4228 for ac_hdr in readline/history.h
4230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4232 echo "configure:4233: checking for $ac_hdr" >&5
4233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4235 else
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 #include <$ac_hdr>
4241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4242 { (eval echo configure:4243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4244 if test -z "$ac_err"; then
4245 rm -rf conftest*
4246 eval "ac_cv_header_$ac_safe=yes"
4247 else
4248 echo "$ac_err" >&5
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4251 rm -rf conftest*
4252 eval "ac_cv_header_$ac_safe=no"
4254 rm -f conftest*
4256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4257 echo "$ac_t""yes" 1>&6
4258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4259 cat >> confdefs.h <<EOF
4260 #define $ac_tr_hdr 1
4263 else
4264 echo "$ac_t""no" 1>&6
4266 done
4269 for ac_hdr in readline.h readline/readline.h
4271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4273 echo "configure:4274: checking for $ac_hdr" >&5
4274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4276 else
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 #include <$ac_hdr>
4282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4283 { (eval echo configure:4284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4285 if test -z "$ac_err"; then
4286 rm -rf conftest*
4287 eval "ac_cv_header_$ac_safe=yes"
4288 else
4289 echo "$ac_err" >&5
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4292 rm -rf conftest*
4293 eval "ac_cv_header_$ac_safe=no"
4295 rm -f conftest*
4297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4300 cat >> confdefs.h <<EOF
4301 #define $ac_tr_hdr 1
4304 for termlib in ncurses curses termcap terminfo termlib; do
4305 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4306 echo "configure:4307: checking for tgetent in -l${termlib}" >&5
4307 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4310 else
4311 ac_save_LIBS="$LIBS"
4312 LIBS="-l${termlib} $LIBS"
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 /* Override any gcc2 internal prototype to avoid an error. */
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
4319 char tgetent();
4321 int main() {
4322 tgetent()
4323 ; return 0; }
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4326 rm -rf conftest*
4327 eval "ac_cv_lib_$ac_lib_var=yes"
4328 else
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 rm -rf conftest*
4332 eval "ac_cv_lib_$ac_lib_var=no"
4334 rm -f conftest*
4335 LIBS="$ac_save_LIBS"
4338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4339 echo "$ac_t""yes" 1>&6
4340 TERMLIBS="-l${termlib}"; break
4341 else
4342 echo "$ac_t""no" 1>&6
4345 done
4346 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4347 echo "configure:4348: checking for rl_callback_handler_install in -lreadline" >&5
4348 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352 ac_save_LIBS="$LIBS"
4353 LIBS="-lreadline $TERMLIBS $LIBS"
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* Override any gcc2 internal prototype to avoid an error. */
4358 /* We use char because int might match the return type of a gcc2
4359 builtin and then its argument prototype would still apply. */
4360 char rl_callback_handler_install();
4362 int main() {
4363 rl_callback_handler_install()
4364 ; return 0; }
4366 if { (eval echo configure:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4367 rm -rf conftest*
4368 eval "ac_cv_lib_$ac_lib_var=yes"
4369 else
4370 echo "configure: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4372 rm -rf conftest*
4373 eval "ac_cv_lib_$ac_lib_var=no"
4375 rm -f conftest*
4376 LIBS="$ac_save_LIBS"
4379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4381 TERMLIBS="-lreadline $TERMLIBS"
4382 cat >> confdefs.h <<\EOF
4383 #define HAVE_LIBREADLINE 1
4386 break
4387 else
4388 echo "$ac_t""no" 1>&6
4389 TERMLIBS=
4392 else
4393 echo "$ac_t""no" 1>&6
4395 done
4399 echo "$ac_t""no" 1>&6
4402 echo "$ac_t""yes" 1>&6
4404 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4405 # alternate readline path
4406 _ldflags=${LDFLAGS}
4407 _cppflags=${CPPFLAGS}
4409 # Add additional search path
4410 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4411 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4413 for ac_hdr in readline.h history.h readline/readline.h
4415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4417 echo "configure:4418: checking for $ac_hdr" >&5
4418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 #include <$ac_hdr>
4426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4427 { (eval echo configure:4428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4429 if test -z "$ac_err"; then
4430 rm -rf conftest*
4431 eval "ac_cv_header_$ac_safe=yes"
4432 else
4433 echo "$ac_err" >&5
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4436 rm -rf conftest*
4437 eval "ac_cv_header_$ac_safe=no"
4439 rm -f conftest*
4441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4442 echo "$ac_t""yes" 1>&6
4443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4444 cat >> confdefs.h <<EOF
4445 #define $ac_tr_hdr 1
4448 else
4449 echo "$ac_t""no" 1>&6
4451 done
4453 for ac_hdr in readline/history.h
4455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4457 echo "configure:4458: checking for $ac_hdr" >&5
4458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4460 else
4461 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 #include <$ac_hdr>
4466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4467 { (eval echo configure:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4469 if test -z "$ac_err"; then
4470 rm -rf conftest*
4471 eval "ac_cv_header_$ac_safe=yes"
4472 else
4473 echo "$ac_err" >&5
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4476 rm -rf conftest*
4477 eval "ac_cv_header_$ac_safe=no"
4479 rm -f conftest*
4481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4484 cat >> confdefs.h <<EOF
4485 #define $ac_tr_hdr 1
4488 else
4489 echo "$ac_t""no" 1>&6
4491 done
4494 for ac_hdr in readline.h readline/readline.h
4496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_hdr" >&5
4499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4501 else
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 #include <$ac_hdr>
4507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4508 { (eval echo configure:4509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4510 if test -z "$ac_err"; then
4511 rm -rf conftest*
4512 eval "ac_cv_header_$ac_safe=yes"
4513 else
4514 echo "$ac_err" >&5
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4517 rm -rf conftest*
4518 eval "ac_cv_header_$ac_safe=no"
4520 rm -f conftest*
4522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4525 cat >> confdefs.h <<EOF
4526 #define $ac_tr_hdr 1
4529 for termlib in ncurses curses termcap terminfo termlib; do
4530 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4531 echo "configure:4532: checking for tgetent in -l${termlib}" >&5
4532 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536 ac_save_LIBS="$LIBS"
4537 LIBS="-l${termlib} $LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4544 char tgetent();
4546 int main() {
4547 tgetent()
4548 ; return 0; }
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 rm -rf conftest*
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4553 else
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 rm -rf conftest*
4557 eval "ac_cv_lib_$ac_lib_var=no"
4559 rm -f conftest*
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 TERMLIBS="-l${termlib}"; break
4566 else
4567 echo "$ac_t""no" 1>&6
4570 done
4571 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4572 echo "configure:4573: checking for rl_callback_handler_install in -lreadline" >&5
4573 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4576 else
4577 ac_save_LIBS="$LIBS"
4578 LIBS="-lreadline $TERMLIBS $LIBS"
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4585 char rl_callback_handler_install();
4587 int main() {
4588 rl_callback_handler_install()
4589 ; return 0; }
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592 rm -rf conftest*
4593 eval "ac_cv_lib_$ac_lib_var=yes"
4594 else
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 rm -rf conftest*
4598 eval "ac_cv_lib_$ac_lib_var=no"
4600 rm -f conftest*
4601 LIBS="$ac_save_LIBS"
4604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 TERMLDFLAGS="-L$with_readline/lib"
4607 TERMCPPFLAGS="-I$with_readline/include"
4608 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4609 TERMLIBS="-lreadline $TERMLIBS"
4610 cat >> confdefs.h <<\EOF
4611 #define HAVE_LIBREADLINE 1
4614 break
4615 else
4616 echo "$ac_t""no" 1>&6
4617 TERMLIBS= CPPFLAGS=$_cppflags
4620 else
4621 echo "$ac_t""no" 1>&6
4623 done
4626 LDFLAGS=$_ldflags
4628 esac
4629 else
4630 echo "$ac_t""no" 1>&6
4637 # The following test taken from the cvs sources
4638 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4639 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4640 # libsocket.so which has a bad implementation of gethostbyname (it
4641 # only looks in /etc/hosts), so we only look for -lsocket if we need
4642 # it.
4643 for ac_func in connect
4645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4646 echo "configure:4647: checking for $ac_func" >&5
4647 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4649 else
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 /* System header to define __stub macros and hopefully few prototypes,
4654 which can conflict with char $ac_func(); below. */
4655 #include <assert.h>
4656 /* Override any gcc2 internal prototype to avoid an error. */
4657 /* We use char because int might match the return type of a gcc2
4658 builtin and then its argument prototype would still apply. */
4659 char $ac_func();
4661 int main() {
4663 /* The GNU C library defines this for functions which it implements
4664 to always fail with ENOSYS. Some functions are actually named
4665 something starting with __ and the normal name is an alias. */
4666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4667 choke me
4668 #else
4669 $ac_func();
4670 #endif
4672 ; return 0; }
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 rm -rf conftest*
4676 eval "ac_cv_func_$ac_func=yes"
4677 else
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 rm -rf conftest*
4681 eval "ac_cv_func_$ac_func=no"
4683 rm -f conftest*
4686 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
4688 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4689 cat >> confdefs.h <<EOF
4690 #define $ac_tr_func 1
4693 else
4694 echo "$ac_t""no" 1>&6
4696 done
4698 if test x"$ac_cv_func_connect" = x"no"; then
4699 case "$LIBS" in
4700 *-lnsl*) ;;
4701 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4702 echo "configure:4703: checking for printf in -lnsl_s" >&5
4703 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707 ac_save_LIBS="$LIBS"
4708 LIBS="-lnsl_s $LIBS"
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* Override any gcc2 internal prototype to avoid an error. */
4713 /* We use char because int might match the return type of a gcc2
4714 builtin and then its argument prototype would still apply. */
4715 char printf();
4717 int main() {
4718 printf()
4719 ; return 0; }
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4722 rm -rf conftest*
4723 eval "ac_cv_lib_$ac_lib_var=yes"
4724 else
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 rm -rf conftest*
4728 eval "ac_cv_lib_$ac_lib_var=no"
4730 rm -f conftest*
4731 LIBS="$ac_save_LIBS"
4734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4736 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4738 cat >> confdefs.h <<EOF
4739 #define $ac_tr_lib 1
4742 LIBS="-lnsl_s $LIBS"
4744 else
4745 echo "$ac_t""no" 1>&6
4748 esac
4749 case "$LIBS" in
4750 *-lnsl*) ;;
4751 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4752 echo "configure:4753: checking for printf in -lnsl" >&5
4753 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4756 else
4757 ac_save_LIBS="$LIBS"
4758 LIBS="-lnsl $LIBS"
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* Override any gcc2 internal prototype to avoid an error. */
4763 /* We use char because int might match the return type of a gcc2
4764 builtin and then its argument prototype would still apply. */
4765 char printf();
4767 int main() {
4768 printf()
4769 ; return 0; }
4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772 rm -rf conftest*
4773 eval "ac_cv_lib_$ac_lib_var=yes"
4774 else
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4777 rm -rf conftest*
4778 eval "ac_cv_lib_$ac_lib_var=no"
4780 rm -f conftest*
4781 LIBS="$ac_save_LIBS"
4784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6
4786 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4788 cat >> confdefs.h <<EOF
4789 #define $ac_tr_lib 1
4792 LIBS="-lnsl $LIBS"
4794 else
4795 echo "$ac_t""no" 1>&6
4798 esac
4799 case "$LIBS" in
4800 *-lsocket*) ;;
4801 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4802 echo "configure:4803: checking for connect in -lsocket" >&5
4803 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4806 else
4807 ac_save_LIBS="$LIBS"
4808 LIBS="-lsocket $LIBS"
4809 cat > conftest.$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4812 /* Override any gcc2 internal prototype to avoid an error. */
4813 /* We use char because int might match the return type of a gcc2
4814 builtin and then its argument prototype would still apply. */
4815 char connect();
4817 int main() {
4818 connect()
4819 ; return 0; }
4821 if { (eval echo configure:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4822 rm -rf conftest*
4823 eval "ac_cv_lib_$ac_lib_var=yes"
4824 else
4825 echo "configure: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4827 rm -rf conftest*
4828 eval "ac_cv_lib_$ac_lib_var=no"
4830 rm -f conftest*
4831 LIBS="$ac_save_LIBS"
4834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4838 cat >> confdefs.h <<EOF
4839 #define $ac_tr_lib 1
4842 LIBS="-lsocket $LIBS"
4844 else
4845 echo "$ac_t""no" 1>&6
4848 esac
4849 case "$LIBS" in
4850 *-linet*) ;;
4851 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4852 echo "configure:4853: checking for connect in -linet" >&5
4853 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4856 else
4857 ac_save_LIBS="$LIBS"
4858 LIBS="-linet $LIBS"
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */
4865 char connect();
4867 int main() {
4868 connect()
4869 ; return 0; }
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4872 rm -rf conftest*
4873 eval "ac_cv_lib_$ac_lib_var=yes"
4874 else
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4877 rm -rf conftest*
4878 eval "ac_cv_lib_$ac_lib_var=no"
4880 rm -f conftest*
4881 LIBS="$ac_save_LIBS"
4884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4887 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4888 cat >> confdefs.h <<EOF
4889 #define $ac_tr_lib 1
4892 LIBS="-linet $LIBS"
4894 else
4895 echo "$ac_t""no" 1>&6
4898 esac
4899 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4900 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4901 # ac_cv_func_connect=yes
4902 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4903 cat >> confdefs.h <<\EOF
4904 #define HAVE_CONNECT 1
4910 ###############################################
4911 # test for where we get get_yp_default_domain() from
4912 for ac_func in yp_get_default_domain
4914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $ac_func" >&5
4916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4918 else
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 /* System header to define __stub macros and hopefully few prototypes,
4923 which can conflict with char $ac_func(); below. */
4924 #include <assert.h>
4925 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */
4928 char $ac_func();
4930 int main() {
4932 /* The GNU C library defines this for functions which it implements
4933 to always fail with ENOSYS. Some functions are actually named
4934 something starting with __ and the normal name is an alias. */
4935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4936 choke me
4937 #else
4938 $ac_func();
4939 #endif
4941 ; return 0; }
4943 if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4944 rm -rf conftest*
4945 eval "ac_cv_func_$ac_func=yes"
4946 else
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4949 rm -rf conftest*
4950 eval "ac_cv_func_$ac_func=no"
4952 rm -f conftest*
4955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4958 cat >> confdefs.h <<EOF
4959 #define $ac_tr_func 1
4962 else
4963 echo "$ac_t""no" 1>&6
4965 done
4967 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4968 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4969 echo "configure:4970: checking for yp_get_default_domain in -lnsl" >&5
4970 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4973 else
4974 ac_save_LIBS="$LIBS"
4975 LIBS="-lnsl $LIBS"
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4982 char yp_get_default_domain();
4984 int main() {
4985 yp_get_default_domain()
4986 ; return 0; }
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4989 rm -rf conftest*
4990 eval "ac_cv_lib_$ac_lib_var=yes"
4991 else
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 rm -rf conftest*
4995 eval "ac_cv_lib_$ac_lib_var=no"
4997 rm -f conftest*
4998 LIBS="$ac_save_LIBS"
5001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5003 LIBS="$LIBS -lnsl";
5004 cat >> confdefs.h <<\EOF
5005 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5008 else
5009 echo "$ac_t""no" 1>&6
5014 # Check if we have execl, if not we need to compile smbrun.
5015 for ac_func in execl
5017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_func" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5021 else
5022 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char $ac_func(); below. */
5027 #include <assert.h>
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5031 char $ac_func();
5033 int main() {
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5039 choke me
5040 #else
5041 $ac_func();
5042 #endif
5044 ; return 0; }
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5047 rm -rf conftest*
5048 eval "ac_cv_func_$ac_func=yes"
5049 else
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5052 rm -rf conftest*
5053 eval "ac_cv_func_$ac_func=no"
5055 rm -f conftest*
5058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5061 cat >> confdefs.h <<EOF
5062 #define $ac_tr_func 1
5065 else
5066 echo "$ac_t""no" 1>&6
5068 done
5070 if test x"$ac_cv_func_execl" = x"no"; then
5071 RUNPROG="bin/smbrun"
5072 else
5073 RUNPROG=""
5076 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5079 echo "configure:5080: checking for $ac_func" >&5
5080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5081 echo $ac_n "(cached) $ac_c" 1>&6
5082 else
5083 cat > conftest.$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5086 /* System header to define __stub macros and hopefully few prototypes,
5087 which can conflict with char $ac_func(); below. */
5088 #include <assert.h>
5089 /* Override any gcc2 internal prototype to avoid an error. */
5090 /* We use char because int might match the return type of a gcc2
5091 builtin and then its argument prototype would still apply. */
5092 char $ac_func();
5094 int main() {
5096 /* The GNU C library defines this for functions which it implements
5097 to always fail with ENOSYS. Some functions are actually named
5098 something starting with __ and the normal name is an alias. */
5099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5100 choke me
5101 #else
5102 $ac_func();
5103 #endif
5105 ; return 0; }
5107 if { (eval echo configure:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 rm -rf conftest*
5109 eval "ac_cv_func_$ac_func=yes"
5110 else
5111 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5113 rm -rf conftest*
5114 eval "ac_cv_func_$ac_func=no"
5116 rm -f conftest*
5119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5120 echo "$ac_t""yes" 1>&6
5121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5122 cat >> confdefs.h <<EOF
5123 #define $ac_tr_func 1
5126 else
5127 echo "$ac_t""no" 1>&6
5129 done
5131 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5134 echo "configure:5135: checking for $ac_func" >&5
5135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5137 else
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141 /* System header to define __stub macros and hopefully few prototypes,
5142 which can conflict with char $ac_func(); below. */
5143 #include <assert.h>
5144 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5147 char $ac_func();
5149 int main() {
5151 /* The GNU C library defines this for functions which it implements
5152 to always fail with ENOSYS. Some functions are actually named
5153 something starting with __ and the normal name is an alias. */
5154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5155 choke me
5156 #else
5157 $ac_func();
5158 #endif
5160 ; return 0; }
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 rm -rf conftest*
5164 eval "ac_cv_func_$ac_func=yes"
5165 else
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5168 rm -rf conftest*
5169 eval "ac_cv_func_$ac_func=no"
5171 rm -f conftest*
5174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5175 echo "$ac_t""yes" 1>&6
5176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5177 cat >> confdefs.h <<EOF
5178 #define $ac_tr_func 1
5181 else
5182 echo "$ac_t""no" 1>&6
5184 done
5186 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5189 echo "configure:5190: checking for $ac_func" >&5
5190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5192 else
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5196 /* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char $ac_func(); below. */
5198 #include <assert.h>
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */
5202 char $ac_func();
5204 int main() {
5206 /* The GNU C library defines this for functions which it implements
5207 to always fail with ENOSYS. Some functions are actually named
5208 something starting with __ and the normal name is an alias. */
5209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5210 choke me
5211 #else
5212 $ac_func();
5213 #endif
5215 ; return 0; }
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5218 rm -rf conftest*
5219 eval "ac_cv_func_$ac_func=yes"
5220 else
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5223 rm -rf conftest*
5224 eval "ac_cv_func_$ac_func=no"
5226 rm -f conftest*
5229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5230 echo "$ac_t""yes" 1>&6
5231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5232 cat >> confdefs.h <<EOF
5233 #define $ac_tr_func 1
5236 else
5237 echo "$ac_t""no" 1>&6
5239 done
5241 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_func" >&5
5245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5247 else
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 /* System header to define __stub macros and hopefully few prototypes,
5252 which can conflict with char $ac_func(); below. */
5253 #include <assert.h>
5254 /* Override any gcc2 internal prototype to avoid an error. */
5255 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */
5257 char $ac_func();
5259 int main() {
5261 /* The GNU C library defines this for functions which it implements
5262 to always fail with ENOSYS. Some functions are actually named
5263 something starting with __ and the normal name is an alias. */
5264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5265 choke me
5266 #else
5267 $ac_func();
5268 #endif
5270 ; return 0; }
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5273 rm -rf conftest*
5274 eval "ac_cv_func_$ac_func=yes"
5275 else
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5278 rm -rf conftest*
5279 eval "ac_cv_func_$ac_func=no"
5281 rm -f conftest*
5284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5287 cat >> confdefs.h <<EOF
5288 #define $ac_tr_func 1
5291 else
5292 echo "$ac_t""no" 1>&6
5294 done
5296 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5299 echo "configure:5300: checking for $ac_func" >&5
5300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5302 else
5303 cat > conftest.$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5306 /* System header to define __stub macros and hopefully few prototypes,
5307 which can conflict with char $ac_func(); below. */
5308 #include <assert.h>
5309 /* Override any gcc2 internal prototype to avoid an error. */
5310 /* We use char because int might match the return type of a gcc2
5311 builtin and then its argument prototype would still apply. */
5312 char $ac_func();
5314 int main() {
5316 /* The GNU C library defines this for functions which it implements
5317 to always fail with ENOSYS. Some functions are actually named
5318 something starting with __ and the normal name is an alias. */
5319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5320 choke me
5321 #else
5322 $ac_func();
5323 #endif
5325 ; return 0; }
5327 if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5328 rm -rf conftest*
5329 eval "ac_cv_func_$ac_func=yes"
5330 else
5331 echo "configure: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5333 rm -rf conftest*
5334 eval "ac_cv_func_$ac_func=no"
5336 rm -f conftest*
5339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5340 echo "$ac_t""yes" 1>&6
5341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5342 cat >> confdefs.h <<EOF
5343 #define $ac_tr_func 1
5346 else
5347 echo "$ac_t""no" 1>&6
5349 done
5351 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5354 echo "configure:5355: checking for $ac_func" >&5
5355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5357 else
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5361 /* System header to define __stub macros and hopefully few prototypes,
5362 which can conflict with char $ac_func(); below. */
5363 #include <assert.h>
5364 /* Override any gcc2 internal prototype to avoid an error. */
5365 /* We use char because int might match the return type of a gcc2
5366 builtin and then its argument prototype would still apply. */
5367 char $ac_func();
5369 int main() {
5371 /* The GNU C library defines this for functions which it implements
5372 to always fail with ENOSYS. Some functions are actually named
5373 something starting with __ and the normal name is an alias. */
5374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5375 choke me
5376 #else
5377 $ac_func();
5378 #endif
5380 ; return 0; }
5382 if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383 rm -rf conftest*
5384 eval "ac_cv_func_$ac_func=yes"
5385 else
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5388 rm -rf conftest*
5389 eval "ac_cv_func_$ac_func=no"
5391 rm -f conftest*
5394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5395 echo "$ac_t""yes" 1>&6
5396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5397 cat >> confdefs.h <<EOF
5398 #define $ac_tr_func 1
5401 else
5402 echo "$ac_t""no" 1>&6
5404 done
5406 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5409 echo "configure:5410: checking for $ac_func" >&5
5410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5411 echo $ac_n "(cached) $ac_c" 1>&6
5412 else
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5416 /* System header to define __stub macros and hopefully few prototypes,
5417 which can conflict with char $ac_func(); below. */
5418 #include <assert.h>
5419 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5422 char $ac_func();
5424 int main() {
5426 /* The GNU C library defines this for functions which it implements
5427 to always fail with ENOSYS. Some functions are actually named
5428 something starting with __ and the normal name is an alias. */
5429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5430 choke me
5431 #else
5432 $ac_func();
5433 #endif
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_func_$ac_func=yes"
5440 else
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5443 rm -rf conftest*
5444 eval "ac_cv_func_$ac_func=no"
5446 rm -f conftest*
5449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5450 echo "$ac_t""yes" 1>&6
5451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5452 cat >> confdefs.h <<EOF
5453 #define $ac_tr_func 1
5456 else
5457 echo "$ac_t""no" 1>&6
5459 done
5461 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5464 echo "configure:5465: checking for $ac_func" >&5
5465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5467 else
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* System header to define __stub macros and hopefully few prototypes,
5472 which can conflict with char $ac_func(); below. */
5473 #include <assert.h>
5474 /* Override any gcc2 internal prototype to avoid an error. */
5475 /* We use char because int might match the return type of a gcc2
5476 builtin and then its argument prototype would still apply. */
5477 char $ac_func();
5479 int main() {
5481 /* The GNU C library defines this for functions which it implements
5482 to always fail with ENOSYS. Some functions are actually named
5483 something starting with __ and the normal name is an alias. */
5484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5485 choke me
5486 #else
5487 $ac_func();
5488 #endif
5490 ; return 0; }
5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 rm -rf conftest*
5494 eval "ac_cv_func_$ac_func=yes"
5495 else
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5498 rm -rf conftest*
5499 eval "ac_cv_func_$ac_func=no"
5501 rm -f conftest*
5504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5505 echo "$ac_t""yes" 1>&6
5506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5507 cat >> confdefs.h <<EOF
5508 #define $ac_tr_func 1
5511 else
5512 echo "$ac_t""no" 1>&6
5514 done
5516 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5519 echo "configure:5520: checking for $ac_func" >&5
5520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5522 else
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 /* System header to define __stub macros and hopefully few prototypes,
5527 which can conflict with char $ac_func(); below. */
5528 #include <assert.h>
5529 /* Override any gcc2 internal prototype to avoid an error. */
5530 /* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5532 char $ac_func();
5534 int main() {
5536 /* The GNU C library defines this for functions which it implements
5537 to always fail with ENOSYS. Some functions are actually named
5538 something starting with __ and the normal name is an alias. */
5539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5540 choke me
5541 #else
5542 $ac_func();
5543 #endif
5545 ; return 0; }
5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5548 rm -rf conftest*
5549 eval "ac_cv_func_$ac_func=yes"
5550 else
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5553 rm -rf conftest*
5554 eval "ac_cv_func_$ac_func=no"
5556 rm -f conftest*
5559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5560 echo "$ac_t""yes" 1>&6
5561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5562 cat >> confdefs.h <<EOF
5563 #define $ac_tr_func 1
5566 else
5567 echo "$ac_t""no" 1>&6
5569 done
5572 # syscall() is needed for smbwrapper.
5573 for ac_func in syscall
5575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_func" >&5
5577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5579 else
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 /* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char $ac_func(); below. */
5585 #include <assert.h>
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5589 char $ac_func();
5591 int main() {
5593 /* The GNU C library defines this for functions which it implements
5594 to always fail with ENOSYS. Some functions are actually named
5595 something starting with __ and the normal name is an alias. */
5596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5597 choke me
5598 #else
5599 $ac_func();
5600 #endif
5602 ; return 0; }
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5605 rm -rf conftest*
5606 eval "ac_cv_func_$ac_func=yes"
5607 else
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5610 rm -rf conftest*
5611 eval "ac_cv_func_$ac_func=no"
5613 rm -f conftest*
5616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5617 echo "$ac_t""yes" 1>&6
5618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5619 cat >> confdefs.h <<EOF
5620 #define $ac_tr_func 1
5623 else
5624 echo "$ac_t""no" 1>&6
5626 done
5629 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5632 echo "configure:5633: checking for $ac_func" >&5
5633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5635 else
5636 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 /* System header to define __stub macros and hopefully few prototypes,
5640 which can conflict with char $ac_func(); below. */
5641 #include <assert.h>
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5645 char $ac_func();
5647 int main() {
5649 /* The GNU C library defines this for functions which it implements
5650 to always fail with ENOSYS. Some functions are actually named
5651 something starting with __ and the normal name is an alias. */
5652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5653 choke me
5654 #else
5655 $ac_func();
5656 #endif
5658 ; return 0; }
5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5661 rm -rf conftest*
5662 eval "ac_cv_func_$ac_func=yes"
5663 else
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5666 rm -rf conftest*
5667 eval "ac_cv_func_$ac_func=no"
5669 rm -f conftest*
5672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5673 echo "$ac_t""yes" 1>&6
5674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5675 cat >> confdefs.h <<EOF
5676 #define $ac_tr_func 1
5679 else
5680 echo "$ac_t""no" 1>&6
5682 done
5684 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5687 echo "configure:5688: checking for $ac_func" >&5
5688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5690 else
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 /* System header to define __stub macros and hopefully few prototypes,
5695 which can conflict with char $ac_func(); below. */
5696 #include <assert.h>
5697 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700 char $ac_func();
5702 int main() {
5704 /* The GNU C library defines this for functions which it implements
5705 to always fail with ENOSYS. Some functions are actually named
5706 something starting with __ and the normal name is an alias. */
5707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5708 choke me
5709 #else
5710 $ac_func();
5711 #endif
5713 ; return 0; }
5715 if { (eval echo configure:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5716 rm -rf conftest*
5717 eval "ac_cv_func_$ac_func=yes"
5718 else
5719 echo "configure: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5721 rm -rf conftest*
5722 eval "ac_cv_func_$ac_func=no"
5724 rm -f conftest*
5727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5728 echo "$ac_t""yes" 1>&6
5729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5730 cat >> confdefs.h <<EOF
5731 #define $ac_tr_func 1
5734 else
5735 echo "$ac_t""no" 1>&6
5737 done
5739 for ac_func in __getcwd _getcwd
5741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5742 echo "configure:5743: checking for $ac_func" >&5
5743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5745 else
5746 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5749 /* System header to define __stub macros and hopefully few prototypes,
5750 which can conflict with char $ac_func(); below. */
5751 #include <assert.h>
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 /* We use char because int might match the return type of a gcc2
5754 builtin and then its argument prototype would still apply. */
5755 char $ac_func();
5757 int main() {
5759 /* The GNU C library defines this for functions which it implements
5760 to always fail with ENOSYS. Some functions are actually named
5761 something starting with __ and the normal name is an alias. */
5762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5763 choke me
5764 #else
5765 $ac_func();
5766 #endif
5768 ; return 0; }
5770 if { (eval echo configure:5771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5771 rm -rf conftest*
5772 eval "ac_cv_func_$ac_func=yes"
5773 else
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5776 rm -rf conftest*
5777 eval "ac_cv_func_$ac_func=no"
5779 rm -f conftest*
5782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5783 echo "$ac_t""yes" 1>&6
5784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5785 cat >> confdefs.h <<EOF
5786 #define $ac_tr_func 1
5789 else
5790 echo "$ac_t""no" 1>&6
5792 done
5794 for ac_func in __xstat __fxstat __lxstat
5796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_func" >&5
5798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5800 else
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5804 /* System header to define __stub macros and hopefully few prototypes,
5805 which can conflict with char $ac_func(); below. */
5806 #include <assert.h>
5807 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5810 char $ac_func();
5812 int main() {
5814 /* The GNU C library defines this for functions which it implements
5815 to always fail with ENOSYS. Some functions are actually named
5816 something starting with __ and the normal name is an alias. */
5817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5818 choke me
5819 #else
5820 $ac_func();
5821 #endif
5823 ; return 0; }
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 rm -rf conftest*
5827 eval "ac_cv_func_$ac_func=yes"
5828 else
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 rm -rf conftest*
5832 eval "ac_cv_func_$ac_func=no"
5834 rm -f conftest*
5837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5840 cat >> confdefs.h <<EOF
5841 #define $ac_tr_func 1
5844 else
5845 echo "$ac_t""no" 1>&6
5847 done
5849 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5852 echo "configure:5853: checking for $ac_func" >&5
5853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5855 else
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 /* System header to define __stub macros and hopefully few prototypes,
5860 which can conflict with char $ac_func(); below. */
5861 #include <assert.h>
5862 /* Override any gcc2 internal prototype to avoid an error. */
5863 /* We use char because int might match the return type of a gcc2
5864 builtin and then its argument prototype would still apply. */
5865 char $ac_func();
5867 int main() {
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5873 choke me
5874 #else
5875 $ac_func();
5876 #endif
5878 ; return 0; }
5880 if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 rm -rf conftest*
5882 eval "ac_cv_func_$ac_func=yes"
5883 else
5884 echo "configure: failed program was:" >&5
5885 cat conftest.$ac_ext >&5
5886 rm -rf conftest*
5887 eval "ac_cv_func_$ac_func=no"
5889 rm -f conftest*
5892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5893 echo "$ac_t""yes" 1>&6
5894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5895 cat >> confdefs.h <<EOF
5896 #define $ac_tr_func 1
5899 else
5900 echo "$ac_t""no" 1>&6
5902 done
5904 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5907 echo "configure:5908: checking for $ac_func" >&5
5908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5910 else
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 /* System header to define __stub macros and hopefully few prototypes,
5915 which can conflict with char $ac_func(); below. */
5916 #include <assert.h>
5917 /* Override any gcc2 internal prototype to avoid an error. */
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5920 char $ac_func();
5922 int main() {
5924 /* The GNU C library defines this for functions which it implements
5925 to always fail with ENOSYS. Some functions are actually named
5926 something starting with __ and the normal name is an alias. */
5927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5928 choke me
5929 #else
5930 $ac_func();
5931 #endif
5933 ; return 0; }
5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5936 rm -rf conftest*
5937 eval "ac_cv_func_$ac_func=yes"
5938 else
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5941 rm -rf conftest*
5942 eval "ac_cv_func_$ac_func=no"
5944 rm -f conftest*
5947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5948 echo "$ac_t""yes" 1>&6
5949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5950 cat >> confdefs.h <<EOF
5951 #define $ac_tr_func 1
5954 else
5955 echo "$ac_t""no" 1>&6
5957 done
5959 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5962 echo "configure:5963: checking for $ac_func" >&5
5963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5964 echo $ac_n "(cached) $ac_c" 1>&6
5965 else
5966 cat > conftest.$ac_ext <<EOF
5967 #line 5968 "configure"
5968 #include "confdefs.h"
5969 /* System header to define __stub macros and hopefully few prototypes,
5970 which can conflict with char $ac_func(); below. */
5971 #include <assert.h>
5972 /* Override any gcc2 internal prototype to avoid an error. */
5973 /* We use char because int might match the return type of a gcc2
5974 builtin and then its argument prototype would still apply. */
5975 char $ac_func();
5977 int main() {
5979 /* The GNU C library defines this for functions which it implements
5980 to always fail with ENOSYS. Some functions are actually named
5981 something starting with __ and the normal name is an alias. */
5982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5983 choke me
5984 #else
5985 $ac_func();
5986 #endif
5988 ; return 0; }
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5991 rm -rf conftest*
5992 eval "ac_cv_func_$ac_func=yes"
5993 else
5994 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5996 rm -rf conftest*
5997 eval "ac_cv_func_$ac_func=no"
5999 rm -f conftest*
6002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6005 cat >> confdefs.h <<EOF
6006 #define $ac_tr_func 1
6009 else
6010 echo "$ac_t""no" 1>&6
6012 done
6014 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6017 echo "configure:6018: checking for $ac_func" >&5
6018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6020 else
6021 cat > conftest.$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 /* System header to define __stub macros and hopefully few prototypes,
6025 which can conflict with char $ac_func(); below. */
6026 #include <assert.h>
6027 /* Override any gcc2 internal prototype to avoid an error. */
6028 /* We use char because int might match the return type of a gcc2
6029 builtin and then its argument prototype would still apply. */
6030 char $ac_func();
6032 int main() {
6034 /* The GNU C library defines this for functions which it implements
6035 to always fail with ENOSYS. Some functions are actually named
6036 something starting with __ and the normal name is an alias. */
6037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6038 choke me
6039 #else
6040 $ac_func();
6041 #endif
6043 ; return 0; }
6045 if { (eval echo configure:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6046 rm -rf conftest*
6047 eval "ac_cv_func_$ac_func=yes"
6048 else
6049 echo "configure: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6051 rm -rf conftest*
6052 eval "ac_cv_func_$ac_func=no"
6054 rm -f conftest*
6057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6058 echo "$ac_t""yes" 1>&6
6059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6060 cat >> confdefs.h <<EOF
6061 #define $ac_tr_func 1
6064 else
6065 echo "$ac_t""no" 1>&6
6067 done
6069 for ac_func in _write __write _fork __fork
6071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6072 echo "configure:6073: checking for $ac_func" >&5
6073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6075 else
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 /* System header to define __stub macros and hopefully few prototypes,
6080 which can conflict with char $ac_func(); below. */
6081 #include <assert.h>
6082 /* Override any gcc2 internal prototype to avoid an error. */
6083 /* We use char because int might match the return type of a gcc2
6084 builtin and then its argument prototype would still apply. */
6085 char $ac_func();
6087 int main() {
6089 /* The GNU C library defines this for functions which it implements
6090 to always fail with ENOSYS. Some functions are actually named
6091 something starting with __ and the normal name is an alias. */
6092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6093 choke me
6094 #else
6095 $ac_func();
6096 #endif
6098 ; return 0; }
6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6101 rm -rf conftest*
6102 eval "ac_cv_func_$ac_func=yes"
6103 else
6104 echo "configure: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 rm -rf conftest*
6107 eval "ac_cv_func_$ac_func=no"
6109 rm -f conftest*
6112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6113 echo "$ac_t""yes" 1>&6
6114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6115 cat >> confdefs.h <<EOF
6116 #define $ac_tr_func 1
6119 else
6120 echo "$ac_t""no" 1>&6
6122 done
6124 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6127 echo "configure:6128: checking for $ac_func" >&5
6128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6130 else
6131 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6134 /* System header to define __stub macros and hopefully few prototypes,
6135 which can conflict with char $ac_func(); below. */
6136 #include <assert.h>
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6140 char $ac_func();
6142 int main() {
6144 /* The GNU C library defines this for functions which it implements
6145 to always fail with ENOSYS. Some functions are actually named
6146 something starting with __ and the normal name is an alias. */
6147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6148 choke me
6149 #else
6150 $ac_func();
6151 #endif
6153 ; return 0; }
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6156 rm -rf conftest*
6157 eval "ac_cv_func_$ac_func=yes"
6158 else
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 rm -rf conftest*
6162 eval "ac_cv_func_$ac_func=no"
6164 rm -f conftest*
6167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6170 cat >> confdefs.h <<EOF
6171 #define $ac_tr_func 1
6174 else
6175 echo "$ac_t""no" 1>&6
6177 done
6179 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6182 echo "configure:6183: checking for $ac_func" >&5
6183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6184 echo $ac_n "(cached) $ac_c" 1>&6
6185 else
6186 cat > conftest.$ac_ext <<EOF
6187 #line 6188 "configure"
6188 #include "confdefs.h"
6189 /* System header to define __stub macros and hopefully few prototypes,
6190 which can conflict with char $ac_func(); below. */
6191 #include <assert.h>
6192 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195 char $ac_func();
6197 int main() {
6199 /* The GNU C library defines this for functions which it implements
6200 to always fail with ENOSYS. Some functions are actually named
6201 something starting with __ and the normal name is an alias. */
6202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6203 choke me
6204 #else
6205 $ac_func();
6206 #endif
6208 ; return 0; }
6210 if { (eval echo configure:6211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6211 rm -rf conftest*
6212 eval "ac_cv_func_$ac_func=yes"
6213 else
6214 echo "configure: failed program was:" >&5
6215 cat conftest.$ac_ext >&5
6216 rm -rf conftest*
6217 eval "ac_cv_func_$ac_func=no"
6219 rm -f conftest*
6222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6223 echo "$ac_t""yes" 1>&6
6224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6225 cat >> confdefs.h <<EOF
6226 #define $ac_tr_func 1
6229 else
6230 echo "$ac_t""no" 1>&6
6232 done
6234 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6237 echo "configure:6238: checking for $ac_func" >&5
6238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6240 else
6241 cat > conftest.$ac_ext <<EOF
6242 #line 6243 "configure"
6243 #include "confdefs.h"
6244 /* System header to define __stub macros and hopefully few prototypes,
6245 which can conflict with char $ac_func(); below. */
6246 #include <assert.h>
6247 /* Override any gcc2 internal prototype to avoid an error. */
6248 /* We use char because int might match the return type of a gcc2
6249 builtin and then its argument prototype would still apply. */
6250 char $ac_func();
6252 int main() {
6254 /* The GNU C library defines this for functions which it implements
6255 to always fail with ENOSYS. Some functions are actually named
6256 something starting with __ and the normal name is an alias. */
6257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6258 choke me
6259 #else
6260 $ac_func();
6261 #endif
6263 ; return 0; }
6265 if { (eval echo configure:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6266 rm -rf conftest*
6267 eval "ac_cv_func_$ac_func=yes"
6268 else
6269 echo "configure: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6271 rm -rf conftest*
6272 eval "ac_cv_func_$ac_func=no"
6274 rm -f conftest*
6277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6278 echo "$ac_t""yes" 1>&6
6279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6280 cat >> confdefs.h <<EOF
6281 #define $ac_tr_func 1
6284 else
6285 echo "$ac_t""no" 1>&6
6287 done
6289 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6292 echo "configure:6293: checking for $ac_func" >&5
6293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6294 echo $ac_n "(cached) $ac_c" 1>&6
6295 else
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 /* System header to define __stub macros and hopefully few prototypes,
6300 which can conflict with char $ac_func(); below. */
6301 #include <assert.h>
6302 /* Override any gcc2 internal prototype to avoid an error. */
6303 /* We use char because int might match the return type of a gcc2
6304 builtin and then its argument prototype would still apply. */
6305 char $ac_func();
6307 int main() {
6309 /* The GNU C library defines this for functions which it implements
6310 to always fail with ENOSYS. Some functions are actually named
6311 something starting with __ and the normal name is an alias. */
6312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6313 choke me
6314 #else
6315 $ac_func();
6316 #endif
6318 ; return 0; }
6320 if { (eval echo configure:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6321 rm -rf conftest*
6322 eval "ac_cv_func_$ac_func=yes"
6323 else
6324 echo "configure: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6326 rm -rf conftest*
6327 eval "ac_cv_func_$ac_func=no"
6329 rm -f conftest*
6332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6333 echo "$ac_t""yes" 1>&6
6334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6335 cat >> confdefs.h <<EOF
6336 #define $ac_tr_func 1
6339 else
6340 echo "$ac_t""no" 1>&6
6342 done
6344 for ac_func in open64 _open64 __open64 creat64
6346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6347 echo "configure:6348: checking for $ac_func" >&5
6348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6350 else
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char $ac_func(); below. */
6356 #include <assert.h>
6357 /* Override any gcc2 internal prototype to avoid an error. */
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6360 char $ac_func();
6362 int main() {
6364 /* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */
6367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6368 choke me
6369 #else
6370 $ac_func();
6371 #endif
6373 ; return 0; }
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6376 rm -rf conftest*
6377 eval "ac_cv_func_$ac_func=yes"
6378 else
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 rm -rf conftest*
6382 eval "ac_cv_func_$ac_func=no"
6384 rm -f conftest*
6387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6388 echo "$ac_t""yes" 1>&6
6389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6390 cat >> confdefs.h <<EOF
6391 #define $ac_tr_func 1
6394 else
6395 echo "$ac_t""no" 1>&6
6397 done
6401 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6404 if test x$ac_cv_func_stat64 = xno ; then
6405 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6406 echo "configure:6407: checking for stat64 in <sys/stat.h>" >&5
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6411 #if defined(HAVE_UNISTD_H)
6412 #include <unistd.h>
6413 #endif
6414 #include <sys/stat.h>
6416 int main() {
6417 struct stat64 st64; exit(stat64(".",&st64));
6418 ; return 0; }
6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6421 rm -rf conftest*
6422 ac_cv_func_stat64=yes
6423 else
6424 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5
6427 rm -f conftest*
6428 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6429 if test x$ac_cv_func_stat64 = xyes ; then
6430 cat >> confdefs.h <<\EOF
6431 #define HAVE_STAT64 1
6437 if test x$ac_cv_func_lstat64 = xno ; then
6438 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6439 echo "configure:6440: checking for lstat64 in <sys/stat.h>" >&5
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6444 #if defined(HAVE_UNISTD_H)
6445 #include <unistd.h>
6446 #endif
6447 #include <sys/stat.h>
6449 int main() {
6450 struct stat64 st64; exit(lstat64(".",&st64));
6451 ; return 0; }
6453 if { (eval echo configure:6454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6454 rm -rf conftest*
6455 ac_cv_func_lstat64=yes
6456 else
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6460 rm -f conftest*
6461 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6462 if test x$ac_cv_func_lstat64 = xyes ; then
6463 cat >> confdefs.h <<\EOF
6464 #define HAVE_LSTAT64 1
6470 if test x$ac_cv_func_fstat64 = xno ; then
6471 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6472 echo "configure:6473: checking for fstat64 in <sys/stat.h>" >&5
6473 cat > conftest.$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6477 #if defined(HAVE_UNISTD_H)
6478 #include <unistd.h>
6479 #endif
6480 #include <sys/stat.h>
6482 int main() {
6483 struct stat64 st64; exit(fstat64(0,&st64));
6484 ; return 0; }
6486 if { (eval echo configure:6487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6487 rm -rf conftest*
6488 ac_cv_func_fstat64=yes
6489 else
6490 echo "configure: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 rm -f conftest*
6494 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6495 if test x$ac_cv_func_fstat64 = xyes ; then
6496 cat >> confdefs.h <<\EOF
6497 #define HAVE_FSTAT64 1
6504 # If no strcasecmp, check for it in some known places
6505 # It is in -lresolv on ReliantUNIX and UnixWare
6506 # -lresolve *must* follow -lnsl for name resolution to work properly
6509 if test x$ac_cv_func_strcasecmp = xno ; then
6510 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6511 echo "configure:6512: checking for strcasecmp in -lresolv" >&5
6512 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6515 else
6516 ac_save_LIBS="$LIBS"
6517 LIBS="-lresolv $LIBS"
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6524 char strcasecmp();
6526 int main() {
6527 strcasecmp()
6528 ; return 0; }
6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6531 rm -rf conftest*
6532 eval "ac_cv_lib_$ac_lib_var=yes"
6533 else
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6536 rm -rf conftest*
6537 eval "ac_cv_lib_$ac_lib_var=no"
6539 rm -f conftest*
6540 LIBS="$ac_save_LIBS"
6543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6545 LIBS="$LIBS -lresolv"
6546 cat >> confdefs.h <<\EOF
6547 #define HAVE_STRCASECMP 1
6550 else
6551 echo "$ac_t""no" 1>&6
6557 # Check for the functions putprpwnam, set_auth_parameters,
6558 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6559 # Needed for OSF1 and HPUX.
6562 case "$LIBS" in
6563 *-lsecurity*) for ac_func in putprpwnam
6565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6566 echo "configure:6567: checking for $ac_func" >&5
6567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6568 echo $ac_n "(cached) $ac_c" 1>&6
6569 else
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* System header to define __stub macros and hopefully few prototypes,
6574 which can conflict with char $ac_func(); below. */
6575 #include <assert.h>
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579 char $ac_func();
6581 int main() {
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6587 choke me
6588 #else
6589 $ac_func();
6590 #endif
6592 ; return 0; }
6594 if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6595 rm -rf conftest*
6596 eval "ac_cv_func_$ac_func=yes"
6597 else
6598 echo "configure: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6600 rm -rf conftest*
6601 eval "ac_cv_func_$ac_func=no"
6603 rm -f conftest*
6606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6607 echo "$ac_t""yes" 1>&6
6608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6609 cat >> confdefs.h <<EOF
6610 #define $ac_tr_func 1
6613 else
6614 echo "$ac_t""no" 1>&6
6616 done
6618 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6619 echo "configure:6620: checking for putprpwnam in -lsecurity" >&5
6620 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6622 echo $ac_n "(cached) $ac_c" 1>&6
6623 else
6624 ac_save_LIBS="$LIBS"
6625 LIBS="-lsecurity $LIBS"
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* Override any gcc2 internal prototype to avoid an error. */
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632 char putprpwnam();
6634 int main() {
6635 putprpwnam()
6636 ; return 0; }
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6639 rm -rf conftest*
6640 eval "ac_cv_lib_$ac_lib_var=yes"
6641 else
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6644 rm -rf conftest*
6645 eval "ac_cv_lib_$ac_lib_var=no"
6647 rm -f conftest*
6648 LIBS="$ac_save_LIBS"
6651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6652 echo "$ac_t""yes" 1>&6
6653 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6655 cat >> confdefs.h <<EOF
6656 #define $ac_tr_lib 1
6659 LIBS="-lsecurity $LIBS"
6661 else
6662 echo "$ac_t""no" 1>&6
6665 for ac_func in putprpwnam
6667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_func" >&5
6669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6671 else
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char $ac_func(); below. */
6677 #include <assert.h>
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6681 char $ac_func();
6683 int main() {
6685 /* The GNU C library defines this for functions which it implements
6686 to always fail with ENOSYS. Some functions are actually named
6687 something starting with __ and the normal name is an alias. */
6688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6689 choke me
6690 #else
6691 $ac_func();
6692 #endif
6694 ; return 0; }
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6697 rm -rf conftest*
6698 eval "ac_cv_func_$ac_func=yes"
6699 else
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 rm -rf conftest*
6703 eval "ac_cv_func_$ac_func=no"
6705 rm -f conftest*
6708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6709 echo "$ac_t""yes" 1>&6
6710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6711 cat >> confdefs.h <<EOF
6712 #define $ac_tr_func 1
6715 else
6716 echo "$ac_t""no" 1>&6
6718 done
6721 esac
6723 case "$LIBS" in
6724 *-lsec*) for ac_func in putprpwnam
6726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6727 echo "configure:6728: checking for $ac_func" >&5
6728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6730 else
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char $ac_func(); below. */
6736 #include <assert.h>
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char $ac_func();
6742 int main() {
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6748 choke me
6749 #else
6750 $ac_func();
6751 #endif
6753 ; return 0; }
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6756 rm -rf conftest*
6757 eval "ac_cv_func_$ac_func=yes"
6758 else
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6761 rm -rf conftest*
6762 eval "ac_cv_func_$ac_func=no"
6764 rm -f conftest*
6767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6768 echo "$ac_t""yes" 1>&6
6769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6770 cat >> confdefs.h <<EOF
6771 #define $ac_tr_func 1
6774 else
6775 echo "$ac_t""no" 1>&6
6777 done
6779 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6780 echo "configure:6781: checking for putprpwnam in -lsec" >&5
6781 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6784 else
6785 ac_save_LIBS="$LIBS"
6786 LIBS="-lsec $LIBS"
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6793 char putprpwnam();
6795 int main() {
6796 putprpwnam()
6797 ; return 0; }
6799 if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6800 rm -rf conftest*
6801 eval "ac_cv_lib_$ac_lib_var=yes"
6802 else
6803 echo "configure: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6805 rm -rf conftest*
6806 eval "ac_cv_lib_$ac_lib_var=no"
6808 rm -f conftest*
6809 LIBS="$ac_save_LIBS"
6812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6813 echo "$ac_t""yes" 1>&6
6814 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6816 cat >> confdefs.h <<EOF
6817 #define $ac_tr_lib 1
6820 LIBS="-lsec $LIBS"
6822 else
6823 echo "$ac_t""no" 1>&6
6826 for ac_func in putprpwnam
6828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6829 echo "configure:6830: checking for $ac_func" >&5
6830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6832 else
6833 cat > conftest.$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 /* System header to define __stub macros and hopefully few prototypes,
6837 which can conflict with char $ac_func(); below. */
6838 #include <assert.h>
6839 /* Override any gcc2 internal prototype to avoid an error. */
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6842 char $ac_func();
6844 int main() {
6846 /* The GNU C library defines this for functions which it implements
6847 to always fail with ENOSYS. Some functions are actually named
6848 something starting with __ and the normal name is an alias. */
6849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6850 choke me
6851 #else
6852 $ac_func();
6853 #endif
6855 ; return 0; }
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858 rm -rf conftest*
6859 eval "ac_cv_func_$ac_func=yes"
6860 else
6861 echo "configure: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6863 rm -rf conftest*
6864 eval "ac_cv_func_$ac_func=no"
6866 rm -f conftest*
6869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6870 echo "$ac_t""yes" 1>&6
6871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6872 cat >> confdefs.h <<EOF
6873 #define $ac_tr_func 1
6876 else
6877 echo "$ac_t""no" 1>&6
6879 done
6882 esac
6885 case "$LIBS" in
6886 *-lsecurity*) for ac_func in set_auth_parameters
6888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6889 echo "configure:6890: checking for $ac_func" >&5
6890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6892 else
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 /* System header to define __stub macros and hopefully few prototypes,
6897 which can conflict with char $ac_func(); below. */
6898 #include <assert.h>
6899 /* Override any gcc2 internal prototype to avoid an error. */
6900 /* We use char because int might match the return type of a gcc2
6901 builtin and then its argument prototype would still apply. */
6902 char $ac_func();
6904 int main() {
6906 /* The GNU C library defines this for functions which it implements
6907 to always fail with ENOSYS. Some functions are actually named
6908 something starting with __ and the normal name is an alias. */
6909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6910 choke me
6911 #else
6912 $ac_func();
6913 #endif
6915 ; return 0; }
6917 if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6918 rm -rf conftest*
6919 eval "ac_cv_func_$ac_func=yes"
6920 else
6921 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6923 rm -rf conftest*
6924 eval "ac_cv_func_$ac_func=no"
6926 rm -f conftest*
6929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6930 echo "$ac_t""yes" 1>&6
6931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6932 cat >> confdefs.h <<EOF
6933 #define $ac_tr_func 1
6936 else
6937 echo "$ac_t""no" 1>&6
6939 done
6941 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6942 echo "configure:6943: checking for set_auth_parameters in -lsecurity" >&5
6943 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6946 else
6947 ac_save_LIBS="$LIBS"
6948 LIBS="-lsecurity $LIBS"
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 /* Override any gcc2 internal prototype to avoid an error. */
6953 /* We use char because int might match the return type of a gcc2
6954 builtin and then its argument prototype would still apply. */
6955 char set_auth_parameters();
6957 int main() {
6958 set_auth_parameters()
6959 ; return 0; }
6961 if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962 rm -rf conftest*
6963 eval "ac_cv_lib_$ac_lib_var=yes"
6964 else
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6967 rm -rf conftest*
6968 eval "ac_cv_lib_$ac_lib_var=no"
6970 rm -f conftest*
6971 LIBS="$ac_save_LIBS"
6974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6975 echo "$ac_t""yes" 1>&6
6976 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6977 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6978 cat >> confdefs.h <<EOF
6979 #define $ac_tr_lib 1
6982 LIBS="-lsecurity $LIBS"
6984 else
6985 echo "$ac_t""no" 1>&6
6988 for ac_func in set_auth_parameters
6990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6991 echo "configure:6992: checking for $ac_func" >&5
6992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6994 else
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6998 /* System header to define __stub macros and hopefully few prototypes,
6999 which can conflict with char $ac_func(); below. */
7000 #include <assert.h>
7001 /* Override any gcc2 internal prototype to avoid an error. */
7002 /* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7004 char $ac_func();
7006 int main() {
7008 /* The GNU C library defines this for functions which it implements
7009 to always fail with ENOSYS. Some functions are actually named
7010 something starting with __ and the normal name is an alias. */
7011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7012 choke me
7013 #else
7014 $ac_func();
7015 #endif
7017 ; return 0; }
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7020 rm -rf conftest*
7021 eval "ac_cv_func_$ac_func=yes"
7022 else
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7025 rm -rf conftest*
7026 eval "ac_cv_func_$ac_func=no"
7028 rm -f conftest*
7031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7032 echo "$ac_t""yes" 1>&6
7033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7034 cat >> confdefs.h <<EOF
7035 #define $ac_tr_func 1
7038 else
7039 echo "$ac_t""no" 1>&6
7041 done
7044 esac
7046 case "$LIBS" in
7047 *-lsec*) for ac_func in set_auth_parameters
7049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7050 echo "configure:7051: checking for $ac_func" >&5
7051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7053 else
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057 /* System header to define __stub macros and hopefully few prototypes,
7058 which can conflict with char $ac_func(); below. */
7059 #include <assert.h>
7060 /* Override any gcc2 internal prototype to avoid an error. */
7061 /* We use char because int might match the return type of a gcc2
7062 builtin and then its argument prototype would still apply. */
7063 char $ac_func();
7065 int main() {
7067 /* The GNU C library defines this for functions which it implements
7068 to always fail with ENOSYS. Some functions are actually named
7069 something starting with __ and the normal name is an alias. */
7070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7071 choke me
7072 #else
7073 $ac_func();
7074 #endif
7076 ; return 0; }
7078 if { (eval echo configure:7079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7079 rm -rf conftest*
7080 eval "ac_cv_func_$ac_func=yes"
7081 else
7082 echo "configure: failed program was:" >&5
7083 cat conftest.$ac_ext >&5
7084 rm -rf conftest*
7085 eval "ac_cv_func_$ac_func=no"
7087 rm -f conftest*
7090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7091 echo "$ac_t""yes" 1>&6
7092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7093 cat >> confdefs.h <<EOF
7094 #define $ac_tr_func 1
7097 else
7098 echo "$ac_t""no" 1>&6
7100 done
7102 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7103 echo "configure:7104: checking for set_auth_parameters in -lsec" >&5
7104 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7107 else
7108 ac_save_LIBS="$LIBS"
7109 LIBS="-lsec $LIBS"
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7116 char set_auth_parameters();
7118 int main() {
7119 set_auth_parameters()
7120 ; return 0; }
7122 if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123 rm -rf conftest*
7124 eval "ac_cv_lib_$ac_lib_var=yes"
7125 else
7126 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7128 rm -rf conftest*
7129 eval "ac_cv_lib_$ac_lib_var=no"
7131 rm -f conftest*
7132 LIBS="$ac_save_LIBS"
7135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7136 echo "$ac_t""yes" 1>&6
7137 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7139 cat >> confdefs.h <<EOF
7140 #define $ac_tr_lib 1
7143 LIBS="-lsec $LIBS"
7145 else
7146 echo "$ac_t""no" 1>&6
7149 for ac_func in set_auth_parameters
7151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7152 echo "configure:7153: checking for $ac_func" >&5
7153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7155 else
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7159 /* System header to define __stub macros and hopefully few prototypes,
7160 which can conflict with char $ac_func(); below. */
7161 #include <assert.h>
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7165 char $ac_func();
7167 int main() {
7169 /* The GNU C library defines this for functions which it implements
7170 to always fail with ENOSYS. Some functions are actually named
7171 something starting with __ and the normal name is an alias. */
7172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7173 choke me
7174 #else
7175 $ac_func();
7176 #endif
7178 ; return 0; }
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7181 rm -rf conftest*
7182 eval "ac_cv_func_$ac_func=yes"
7183 else
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 rm -rf conftest*
7187 eval "ac_cv_func_$ac_func=no"
7189 rm -f conftest*
7192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7193 echo "$ac_t""yes" 1>&6
7194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7195 cat >> confdefs.h <<EOF
7196 #define $ac_tr_func 1
7199 else
7200 echo "$ac_t""no" 1>&6
7202 done
7205 esac
7208 # UnixWare 7.x has its getspnam in -lgen
7209 case "$LIBS" in
7210 *-lgen*) for ac_func in getspnam
7212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7213 echo "configure:7214: checking for $ac_func" >&5
7214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7215 echo $ac_n "(cached) $ac_c" 1>&6
7216 else
7217 cat > conftest.$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7220 /* System header to define __stub macros and hopefully few prototypes,
7221 which can conflict with char $ac_func(); below. */
7222 #include <assert.h>
7223 /* Override any gcc2 internal prototype to avoid an error. */
7224 /* We use char because int might match the return type of a gcc2
7225 builtin and then its argument prototype would still apply. */
7226 char $ac_func();
7228 int main() {
7230 /* The GNU C library defines this for functions which it implements
7231 to always fail with ENOSYS. Some functions are actually named
7232 something starting with __ and the normal name is an alias. */
7233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7234 choke me
7235 #else
7236 $ac_func();
7237 #endif
7239 ; return 0; }
7241 if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7242 rm -rf conftest*
7243 eval "ac_cv_func_$ac_func=yes"
7244 else
7245 echo "configure: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 rm -rf conftest*
7248 eval "ac_cv_func_$ac_func=no"
7250 rm -f conftest*
7253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7254 echo "$ac_t""yes" 1>&6
7255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7256 cat >> confdefs.h <<EOF
7257 #define $ac_tr_func 1
7260 else
7261 echo "$ac_t""no" 1>&6
7263 done
7265 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7266 echo "configure:7267: checking for getspnam in -lgen" >&5
7267 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7270 else
7271 ac_save_LIBS="$LIBS"
7272 LIBS="-lgen $LIBS"
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7276 /* Override any gcc2 internal prototype to avoid an error. */
7277 /* We use char because int might match the return type of a gcc2
7278 builtin and then its argument prototype would still apply. */
7279 char getspnam();
7281 int main() {
7282 getspnam()
7283 ; return 0; }
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7286 rm -rf conftest*
7287 eval "ac_cv_lib_$ac_lib_var=yes"
7288 else
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7291 rm -rf conftest*
7292 eval "ac_cv_lib_$ac_lib_var=no"
7294 rm -f conftest*
7295 LIBS="$ac_save_LIBS"
7298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7299 echo "$ac_t""yes" 1>&6
7300 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7302 cat >> confdefs.h <<EOF
7303 #define $ac_tr_lib 1
7306 LIBS="-lgen $LIBS"
7308 else
7309 echo "$ac_t""no" 1>&6
7312 for ac_func in getspnam
7314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7315 echo "configure:7316: checking for $ac_func" >&5
7316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7317 echo $ac_n "(cached) $ac_c" 1>&6
7318 else
7319 cat > conftest.$ac_ext <<EOF
7320 #line 7321 "configure"
7321 #include "confdefs.h"
7322 /* System header to define __stub macros and hopefully few prototypes,
7323 which can conflict with char $ac_func(); below. */
7324 #include <assert.h>
7325 /* Override any gcc2 internal prototype to avoid an error. */
7326 /* We use char because int might match the return type of a gcc2
7327 builtin and then its argument prototype would still apply. */
7328 char $ac_func();
7330 int main() {
7332 /* The GNU C library defines this for functions which it implements
7333 to always fail with ENOSYS. Some functions are actually named
7334 something starting with __ and the normal name is an alias. */
7335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7336 choke me
7337 #else
7338 $ac_func();
7339 #endif
7341 ; return 0; }
7343 if { (eval echo configure:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7344 rm -rf conftest*
7345 eval "ac_cv_func_$ac_func=yes"
7346 else
7347 echo "configure: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7349 rm -rf conftest*
7350 eval "ac_cv_func_$ac_func=no"
7352 rm -f conftest*
7355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7356 echo "$ac_t""yes" 1>&6
7357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7358 cat >> confdefs.h <<EOF
7359 #define $ac_tr_func 1
7362 else
7363 echo "$ac_t""no" 1>&6
7365 done
7368 esac
7371 case "$LIBS" in
7372 *-lsecurity*) for ac_func in getspnam
7374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7375 echo "configure:7376: checking for $ac_func" >&5
7376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7378 else
7379 cat > conftest.$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7382 /* System header to define __stub macros and hopefully few prototypes,
7383 which can conflict with char $ac_func(); below. */
7384 #include <assert.h>
7385 /* Override any gcc2 internal prototype to avoid an error. */
7386 /* We use char because int might match the return type of a gcc2
7387 builtin and then its argument prototype would still apply. */
7388 char $ac_func();
7390 int main() {
7392 /* The GNU C library defines this for functions which it implements
7393 to always fail with ENOSYS. Some functions are actually named
7394 something starting with __ and the normal name is an alias. */
7395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7396 choke me
7397 #else
7398 $ac_func();
7399 #endif
7401 ; return 0; }
7403 if { (eval echo configure:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7404 rm -rf conftest*
7405 eval "ac_cv_func_$ac_func=yes"
7406 else
7407 echo "configure: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7409 rm -rf conftest*
7410 eval "ac_cv_func_$ac_func=no"
7412 rm -f conftest*
7415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7416 echo "$ac_t""yes" 1>&6
7417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7418 cat >> confdefs.h <<EOF
7419 #define $ac_tr_func 1
7422 else
7423 echo "$ac_t""no" 1>&6
7425 done
7427 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7428 echo "configure:7429: checking for getspnam in -lsecurity" >&5
7429 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7432 else
7433 ac_save_LIBS="$LIBS"
7434 LIBS="-lsecurity $LIBS"
7435 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 /* Override any gcc2 internal prototype to avoid an error. */
7439 /* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */
7441 char getspnam();
7443 int main() {
7444 getspnam()
7445 ; return 0; }
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7448 rm -rf conftest*
7449 eval "ac_cv_lib_$ac_lib_var=yes"
7450 else
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 rm -rf conftest*
7454 eval "ac_cv_lib_$ac_lib_var=no"
7456 rm -f conftest*
7457 LIBS="$ac_save_LIBS"
7460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7461 echo "$ac_t""yes" 1>&6
7462 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7464 cat >> confdefs.h <<EOF
7465 #define $ac_tr_lib 1
7468 LIBS="-lsecurity $LIBS"
7470 else
7471 echo "$ac_t""no" 1>&6
7474 for ac_func in getspnam
7476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_func" >&5
7478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7480 else
7481 cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char $ac_func(); below. */
7486 #include <assert.h>
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 /* We use char because int might match the return type of a gcc2
7489 builtin and then its argument prototype would still apply. */
7490 char $ac_func();
7492 int main() {
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7498 choke me
7499 #else
7500 $ac_func();
7501 #endif
7503 ; return 0; }
7505 if { (eval echo configure:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7506 rm -rf conftest*
7507 eval "ac_cv_func_$ac_func=yes"
7508 else
7509 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 rm -rf conftest*
7512 eval "ac_cv_func_$ac_func=no"
7514 rm -f conftest*
7517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7518 echo "$ac_t""yes" 1>&6
7519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7520 cat >> confdefs.h <<EOF
7521 #define $ac_tr_func 1
7524 else
7525 echo "$ac_t""no" 1>&6
7527 done
7530 esac
7532 case "$LIBS" in
7533 *-lsec*) for ac_func in getspnam
7535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7536 echo "configure:7537: checking for $ac_func" >&5
7537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7538 echo $ac_n "(cached) $ac_c" 1>&6
7539 else
7540 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7543 /* System header to define __stub macros and hopefully few prototypes,
7544 which can conflict with char $ac_func(); below. */
7545 #include <assert.h>
7546 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7549 char $ac_func();
7551 int main() {
7553 /* The GNU C library defines this for functions which it implements
7554 to always fail with ENOSYS. Some functions are actually named
7555 something starting with __ and the normal name is an alias. */
7556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7557 choke me
7558 #else
7559 $ac_func();
7560 #endif
7562 ; return 0; }
7564 if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7565 rm -rf conftest*
7566 eval "ac_cv_func_$ac_func=yes"
7567 else
7568 echo "configure: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7570 rm -rf conftest*
7571 eval "ac_cv_func_$ac_func=no"
7573 rm -f conftest*
7576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7577 echo "$ac_t""yes" 1>&6
7578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7579 cat >> confdefs.h <<EOF
7580 #define $ac_tr_func 1
7583 else
7584 echo "$ac_t""no" 1>&6
7586 done
7588 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7589 echo "configure:7590: checking for getspnam in -lsec" >&5
7590 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7592 echo $ac_n "(cached) $ac_c" 1>&6
7593 else
7594 ac_save_LIBS="$LIBS"
7595 LIBS="-lsec $LIBS"
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* Override any gcc2 internal prototype to avoid an error. */
7600 /* We use char because int might match the return type of a gcc2
7601 builtin and then its argument prototype would still apply. */
7602 char getspnam();
7604 int main() {
7605 getspnam()
7606 ; return 0; }
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7609 rm -rf conftest*
7610 eval "ac_cv_lib_$ac_lib_var=yes"
7611 else
7612 echo "configure: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7614 rm -rf conftest*
7615 eval "ac_cv_lib_$ac_lib_var=no"
7617 rm -f conftest*
7618 LIBS="$ac_save_LIBS"
7621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7622 echo "$ac_t""yes" 1>&6
7623 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7625 cat >> confdefs.h <<EOF
7626 #define $ac_tr_lib 1
7629 LIBS="-lsec $LIBS"
7631 else
7632 echo "$ac_t""no" 1>&6
7635 for ac_func in getspnam
7637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7638 echo "configure:7639: checking for $ac_func" >&5
7639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7641 else
7642 cat > conftest.$ac_ext <<EOF
7643 #line 7644 "configure"
7644 #include "confdefs.h"
7645 /* System header to define __stub macros and hopefully few prototypes,
7646 which can conflict with char $ac_func(); below. */
7647 #include <assert.h>
7648 /* Override any gcc2 internal prototype to avoid an error. */
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char $ac_func();
7653 int main() {
7655 /* The GNU C library defines this for functions which it implements
7656 to always fail with ENOSYS. Some functions are actually named
7657 something starting with __ and the normal name is an alias. */
7658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7659 choke me
7660 #else
7661 $ac_func();
7662 #endif
7664 ; return 0; }
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7667 rm -rf conftest*
7668 eval "ac_cv_func_$ac_func=yes"
7669 else
7670 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7672 rm -rf conftest*
7673 eval "ac_cv_func_$ac_func=no"
7675 rm -f conftest*
7678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7679 echo "$ac_t""yes" 1>&6
7680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7681 cat >> confdefs.h <<EOF
7682 #define $ac_tr_func 1
7685 else
7686 echo "$ac_t""no" 1>&6
7688 done
7691 esac
7694 case "$LIBS" in
7695 *-lsecurity*) for ac_func in bigcrypt
7697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7698 echo "configure:7699: checking for $ac_func" >&5
7699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7700 echo $ac_n "(cached) $ac_c" 1>&6
7701 else
7702 cat > conftest.$ac_ext <<EOF
7703 #line 7704 "configure"
7704 #include "confdefs.h"
7705 /* System header to define __stub macros and hopefully few prototypes,
7706 which can conflict with char $ac_func(); below. */
7707 #include <assert.h>
7708 /* Override any gcc2 internal prototype to avoid an error. */
7709 /* We use char because int might match the return type of a gcc2
7710 builtin and then its argument prototype would still apply. */
7711 char $ac_func();
7713 int main() {
7715 /* The GNU C library defines this for functions which it implements
7716 to always fail with ENOSYS. Some functions are actually named
7717 something starting with __ and the normal name is an alias. */
7718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7719 choke me
7720 #else
7721 $ac_func();
7722 #endif
7724 ; return 0; }
7726 if { (eval echo configure:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7727 rm -rf conftest*
7728 eval "ac_cv_func_$ac_func=yes"
7729 else
7730 echo "configure: failed program was:" >&5
7731 cat conftest.$ac_ext >&5
7732 rm -rf conftest*
7733 eval "ac_cv_func_$ac_func=no"
7735 rm -f conftest*
7738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7739 echo "$ac_t""yes" 1>&6
7740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7741 cat >> confdefs.h <<EOF
7742 #define $ac_tr_func 1
7745 else
7746 echo "$ac_t""no" 1>&6
7748 done
7750 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7751 echo "configure:7752: checking for bigcrypt in -lsecurity" >&5
7752 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7755 else
7756 ac_save_LIBS="$LIBS"
7757 LIBS="-lsecurity $LIBS"
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* Override any gcc2 internal prototype to avoid an error. */
7762 /* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7764 char bigcrypt();
7766 int main() {
7767 bigcrypt()
7768 ; return 0; }
7770 if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7771 rm -rf conftest*
7772 eval "ac_cv_lib_$ac_lib_var=yes"
7773 else
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 rm -rf conftest*
7777 eval "ac_cv_lib_$ac_lib_var=no"
7779 rm -f conftest*
7780 LIBS="$ac_save_LIBS"
7783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7784 echo "$ac_t""yes" 1>&6
7785 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7786 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7787 cat >> confdefs.h <<EOF
7788 #define $ac_tr_lib 1
7791 LIBS="-lsecurity $LIBS"
7793 else
7794 echo "$ac_t""no" 1>&6
7797 for ac_func in bigcrypt
7799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7800 echo "configure:7801: checking for $ac_func" >&5
7801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7803 else
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 /* System header to define __stub macros and hopefully few prototypes,
7808 which can conflict with char $ac_func(); below. */
7809 #include <assert.h>
7810 /* Override any gcc2 internal prototype to avoid an error. */
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7813 char $ac_func();
7815 int main() {
7817 /* The GNU C library defines this for functions which it implements
7818 to always fail with ENOSYS. Some functions are actually named
7819 something starting with __ and the normal name is an alias. */
7820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7821 choke me
7822 #else
7823 $ac_func();
7824 #endif
7826 ; return 0; }
7828 if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829 rm -rf conftest*
7830 eval "ac_cv_func_$ac_func=yes"
7831 else
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 rm -rf conftest*
7835 eval "ac_cv_func_$ac_func=no"
7837 rm -f conftest*
7840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7841 echo "$ac_t""yes" 1>&6
7842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7843 cat >> confdefs.h <<EOF
7844 #define $ac_tr_func 1
7847 else
7848 echo "$ac_t""no" 1>&6
7850 done
7853 esac
7855 case "$LIBS" in
7856 *-lsec*) for ac_func in bigcrypt
7858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7859 echo "configure:7860: checking for $ac_func" >&5
7860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862 else
7863 cat > conftest.$ac_ext <<EOF
7864 #line 7865 "configure"
7865 #include "confdefs.h"
7866 /* System header to define __stub macros and hopefully few prototypes,
7867 which can conflict with char $ac_func(); below. */
7868 #include <assert.h>
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872 char $ac_func();
7874 int main() {
7876 /* The GNU C library defines this for functions which it implements
7877 to always fail with ENOSYS. Some functions are actually named
7878 something starting with __ and the normal name is an alias. */
7879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7880 choke me
7881 #else
7882 $ac_func();
7883 #endif
7885 ; return 0; }
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 rm -rf conftest*
7889 eval "ac_cv_func_$ac_func=yes"
7890 else
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7893 rm -rf conftest*
7894 eval "ac_cv_func_$ac_func=no"
7896 rm -f conftest*
7899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7900 echo "$ac_t""yes" 1>&6
7901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7902 cat >> confdefs.h <<EOF
7903 #define $ac_tr_func 1
7906 else
7907 echo "$ac_t""no" 1>&6
7909 done
7911 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7912 echo "configure:7913: checking for bigcrypt in -lsec" >&5
7913 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7916 else
7917 ac_save_LIBS="$LIBS"
7918 LIBS="-lsec $LIBS"
7919 cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* Override any gcc2 internal prototype to avoid an error. */
7923 /* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */
7925 char bigcrypt();
7927 int main() {
7928 bigcrypt()
7929 ; return 0; }
7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7932 rm -rf conftest*
7933 eval "ac_cv_lib_$ac_lib_var=yes"
7934 else
7935 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 rm -rf conftest*
7938 eval "ac_cv_lib_$ac_lib_var=no"
7940 rm -f conftest*
7941 LIBS="$ac_save_LIBS"
7944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7945 echo "$ac_t""yes" 1>&6
7946 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7947 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7948 cat >> confdefs.h <<EOF
7949 #define $ac_tr_lib 1
7952 LIBS="-lsec $LIBS"
7954 else
7955 echo "$ac_t""no" 1>&6
7958 for ac_func in bigcrypt
7960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7961 echo "configure:7962: checking for $ac_func" >&5
7962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7964 else
7965 cat > conftest.$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7968 /* System header to define __stub macros and hopefully few prototypes,
7969 which can conflict with char $ac_func(); below. */
7970 #include <assert.h>
7971 /* Override any gcc2 internal prototype to avoid an error. */
7972 /* We use char because int might match the return type of a gcc2
7973 builtin and then its argument prototype would still apply. */
7974 char $ac_func();
7976 int main() {
7978 /* The GNU C library defines this for functions which it implements
7979 to always fail with ENOSYS. Some functions are actually named
7980 something starting with __ and the normal name is an alias. */
7981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7982 choke me
7983 #else
7984 $ac_func();
7985 #endif
7987 ; return 0; }
7989 if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7990 rm -rf conftest*
7991 eval "ac_cv_func_$ac_func=yes"
7992 else
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 rm -rf conftest*
7996 eval "ac_cv_func_$ac_func=no"
7998 rm -f conftest*
8001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8004 cat >> confdefs.h <<EOF
8005 #define $ac_tr_func 1
8008 else
8009 echo "$ac_t""no" 1>&6
8011 done
8014 esac
8017 case "$LIBS" in
8018 *-lsecurity*) for ac_func in getprpwnam
8020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8021 echo "configure:8022: checking for $ac_func" >&5
8022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8024 else
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8028 /* System header to define __stub macros and hopefully few prototypes,
8029 which can conflict with char $ac_func(); below. */
8030 #include <assert.h>
8031 /* Override any gcc2 internal prototype to avoid an error. */
8032 /* We use char because int might match the return type of a gcc2
8033 builtin and then its argument prototype would still apply. */
8034 char $ac_func();
8036 int main() {
8038 /* The GNU C library defines this for functions which it implements
8039 to always fail with ENOSYS. Some functions are actually named
8040 something starting with __ and the normal name is an alias. */
8041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8042 choke me
8043 #else
8044 $ac_func();
8045 #endif
8047 ; return 0; }
8049 if { (eval echo configure:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8050 rm -rf conftest*
8051 eval "ac_cv_func_$ac_func=yes"
8052 else
8053 echo "configure: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8055 rm -rf conftest*
8056 eval "ac_cv_func_$ac_func=no"
8058 rm -f conftest*
8061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8062 echo "$ac_t""yes" 1>&6
8063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8064 cat >> confdefs.h <<EOF
8065 #define $ac_tr_func 1
8068 else
8069 echo "$ac_t""no" 1>&6
8071 done
8073 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8074 echo "configure:8075: checking for getprpwnam in -lsecurity" >&5
8075 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8078 else
8079 ac_save_LIBS="$LIBS"
8080 LIBS="-lsecurity $LIBS"
8081 cat > conftest.$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8084 /* Override any gcc2 internal prototype to avoid an error. */
8085 /* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8087 char getprpwnam();
8089 int main() {
8090 getprpwnam()
8091 ; return 0; }
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8094 rm -rf conftest*
8095 eval "ac_cv_lib_$ac_lib_var=yes"
8096 else
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 rm -rf conftest*
8100 eval "ac_cv_lib_$ac_lib_var=no"
8102 rm -f conftest*
8103 LIBS="$ac_save_LIBS"
8106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8107 echo "$ac_t""yes" 1>&6
8108 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8110 cat >> confdefs.h <<EOF
8111 #define $ac_tr_lib 1
8114 LIBS="-lsecurity $LIBS"
8116 else
8117 echo "$ac_t""no" 1>&6
8120 for ac_func in getprpwnam
8122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8123 echo "configure:8124: checking for $ac_func" >&5
8124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8126 else
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 /* System header to define __stub macros and hopefully few prototypes,
8131 which can conflict with char $ac_func(); below. */
8132 #include <assert.h>
8133 /* Override any gcc2 internal prototype to avoid an error. */
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8136 char $ac_func();
8138 int main() {
8140 /* The GNU C library defines this for functions which it implements
8141 to always fail with ENOSYS. Some functions are actually named
8142 something starting with __ and the normal name is an alias. */
8143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8144 choke me
8145 #else
8146 $ac_func();
8147 #endif
8149 ; return 0; }
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8152 rm -rf conftest*
8153 eval "ac_cv_func_$ac_func=yes"
8154 else
8155 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8157 rm -rf conftest*
8158 eval "ac_cv_func_$ac_func=no"
8160 rm -f conftest*
8163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8164 echo "$ac_t""yes" 1>&6
8165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8166 cat >> confdefs.h <<EOF
8167 #define $ac_tr_func 1
8170 else
8171 echo "$ac_t""no" 1>&6
8173 done
8176 esac
8178 case "$LIBS" in
8179 *-lsec*) for ac_func in getprpwnam
8181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8182 echo "configure:8183: checking for $ac_func" >&5
8183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8184 echo $ac_n "(cached) $ac_c" 1>&6
8185 else
8186 cat > conftest.$ac_ext <<EOF
8187 #line 8188 "configure"
8188 #include "confdefs.h"
8189 /* System header to define __stub macros and hopefully few prototypes,
8190 which can conflict with char $ac_func(); below. */
8191 #include <assert.h>
8192 /* Override any gcc2 internal prototype to avoid an error. */
8193 /* We use char because int might match the return type of a gcc2
8194 builtin and then its argument prototype would still apply. */
8195 char $ac_func();
8197 int main() {
8199 /* The GNU C library defines this for functions which it implements
8200 to always fail with ENOSYS. Some functions are actually named
8201 something starting with __ and the normal name is an alias. */
8202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8203 choke me
8204 #else
8205 $ac_func();
8206 #endif
8208 ; return 0; }
8210 if { (eval echo configure:8211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8211 rm -rf conftest*
8212 eval "ac_cv_func_$ac_func=yes"
8213 else
8214 echo "configure: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8216 rm -rf conftest*
8217 eval "ac_cv_func_$ac_func=no"
8219 rm -f conftest*
8222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8223 echo "$ac_t""yes" 1>&6
8224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8225 cat >> confdefs.h <<EOF
8226 #define $ac_tr_func 1
8229 else
8230 echo "$ac_t""no" 1>&6
8232 done
8234 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8235 echo "configure:8236: checking for getprpwnam in -lsec" >&5
8236 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8239 else
8240 ac_save_LIBS="$LIBS"
8241 LIBS="-lsec $LIBS"
8242 cat > conftest.$ac_ext <<EOF
8243 #line 8244 "configure"
8244 #include "confdefs.h"
8245 /* Override any gcc2 internal prototype to avoid an error. */
8246 /* We use char because int might match the return type of a gcc2
8247 builtin and then its argument prototype would still apply. */
8248 char getprpwnam();
8250 int main() {
8251 getprpwnam()
8252 ; return 0; }
8254 if { (eval echo configure:8255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8255 rm -rf conftest*
8256 eval "ac_cv_lib_$ac_lib_var=yes"
8257 else
8258 echo "configure: failed program was:" >&5
8259 cat conftest.$ac_ext >&5
8260 rm -rf conftest*
8261 eval "ac_cv_lib_$ac_lib_var=no"
8263 rm -f conftest*
8264 LIBS="$ac_save_LIBS"
8267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8268 echo "$ac_t""yes" 1>&6
8269 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8271 cat >> confdefs.h <<EOF
8272 #define $ac_tr_lib 1
8275 LIBS="-lsec $LIBS"
8277 else
8278 echo "$ac_t""no" 1>&6
8281 for ac_func in getprpwnam
8283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8284 echo "configure:8285: checking for $ac_func" >&5
8285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8287 else
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* System header to define __stub macros and hopefully few prototypes,
8292 which can conflict with char $ac_func(); below. */
8293 #include <assert.h>
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8297 char $ac_func();
8299 int main() {
8301 /* The GNU C library defines this for functions which it implements
8302 to always fail with ENOSYS. Some functions are actually named
8303 something starting with __ and the normal name is an alias. */
8304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8305 choke me
8306 #else
8307 $ac_func();
8308 #endif
8310 ; return 0; }
8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313 rm -rf conftest*
8314 eval "ac_cv_func_$ac_func=yes"
8315 else
8316 echo "configure: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8318 rm -rf conftest*
8319 eval "ac_cv_func_$ac_func=no"
8321 rm -f conftest*
8324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8325 echo "$ac_t""yes" 1>&6
8326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8327 cat >> confdefs.h <<EOF
8328 #define $ac_tr_func 1
8331 else
8332 echo "$ac_t""no" 1>&6
8334 done
8337 esac
8340 # this bit needs to be modified for each OS that is suported by
8341 # smbwrapper. You need to specify how to created a shared library and
8342 # how to compile C code to produce PIC object files
8344 # these are the defaults, good for lots of systems
8345 HOST_OS="$host_os"
8346 LDSHFLAGS="-shared"
8347 SHLD="\${CC}"
8348 PICFLAG=""
8349 PICSUFFIX="po.o"
8350 SHLIBEXT="so"
8351 # Assume non-shared by default and override below
8352 BLDSHARED="false"
8354 # and these are for particular systems
8355 case "$host_os" in
8356 *linux*) cat >> confdefs.h <<\EOF
8357 #define LINUX 1
8360 BLDSHARED="true"
8361 LDSHFLAGS="-shared"
8362 PICFLAG="-fPIC"
8364 *solaris*) cat >> confdefs.h <<\EOF
8365 #define SUNOS5 1
8369 *sunos*) cat >> confdefs.h <<\EOF
8370 #define SUNOS4 1
8374 *bsd*) LDSHFLAGS="-shared -Bshareable"
8376 *irix*) cat >> confdefs.h <<\EOF
8377 #define IRIX 1
8380 case "$host_os" in
8381 *irix6*) cat >> confdefs.h <<\EOF
8382 #define IRIX6 1
8386 esac
8387 ATTEMPT_WRAP32_BUILD=yes
8389 *aix*) cat >> confdefs.h <<\EOF
8390 #define AIX 1
8393 # AIX is too ugly for now
8395 *hpux*) cat >> confdefs.h <<\EOF
8396 #define HPUX 1
8399 SHLIBEXT="sl"
8400 # Use special PIC flags for the native HP-UX compiler.
8401 if test $ac_cv_prog_cc_Ae = yes; then
8402 LDSHFLAGS="-b"
8403 PICFLAG="+z"
8406 *qnx*) cat >> confdefs.h <<\EOF
8407 #define QNX 1
8410 *osf*) cat >> confdefs.h <<\EOF
8411 #define OSF1 1
8414 *sco*) cat >> confdefs.h <<\EOF
8415 #define SCO 1
8418 *next2*) cat >> confdefs.h <<\EOF
8419 #define NEXT2 1
8422 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8423 set dummy groff; ac_word=$2
8424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8425 echo "configure:8426: checking for $ac_word" >&5
8426 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8428 else
8429 if test -n "$ROFF"; then
8430 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8431 else
8432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8433 ac_dummy="$PATH"
8434 for ac_dir in $ac_dummy; do
8435 test -z "$ac_dir" && ac_dir=.
8436 if test -f $ac_dir/$ac_word; then
8437 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8438 break
8440 done
8441 IFS="$ac_save_ifs"
8444 ROFF="$ac_cv_prog_ROFF"
8445 if test -n "$ROFF"; then
8446 echo "$ac_t""$ROFF" 1>&6
8447 else
8448 echo "$ac_t""no" 1>&6
8451 *sysv4*)
8452 case "$host" in
8453 *-univel-*) if test "$GCC" != yes ; then
8454 cat >> confdefs.h <<\EOF
8455 #define HAVE_MEMSET 1
8459 LDSHFLAGS="-G"
8461 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8462 #define RELIANTUNIX 1
8465 esac
8467 *sysv5*)
8468 if test "$GCC" != yes ; then
8469 cat >> confdefs.h <<\EOF
8470 #define HAVE_MEMSET 1
8474 LDSHFLAGS="-G"
8476 esac
8478 # try to work out how to produce pic code with this compiler
8479 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8480 echo "configure:8481: checking whether ${CC-cc} accepts -fpic" >&5
8481 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8483 else
8484 echo 'void f(){}' > conftest.c
8485 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8486 ac_cv_prog_cc_fpic=yes
8487 else
8488 ac_cv_prog_cc_fpic=no
8490 rm -f conftest*
8494 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8495 if test $ac_cv_prog_cc_fpic = yes; then
8496 PICFLAG="-fpic";
8498 if test x$PICFLAG = x; then
8499 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8500 echo "configure:8501: checking whether ${CC-cc} accepts -KPIC" >&5
8501 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8503 else
8504 echo 'void f(){}' > conftest.c
8505 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8506 ac_cv_prog_cc_KPIC=yes
8507 else
8508 ac_cv_prog_cc_KPIC=no
8510 rm -f conftest*
8514 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8515 if test $ac_cv_prog_cc_KPIC = yes; then
8516 PICFLAG="-KPIC";
8519 if test x$PICFLAG = x; then
8520 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8521 echo "configure:8522: checking whether ${CC-cc} accepts -Kpic" >&5
8522 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8524 else
8525 echo 'void f(){}' > conftest.c
8526 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8527 ac_cv_prog_cc_Kpic=yes
8528 else
8529 ac_cv_prog_cc_Kpic=no
8531 rm -f conftest*
8535 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8536 if test $ac_cv_prog_cc_Kpic = yes; then
8537 PICFLAG="-Kpic";
8541 ################
8543 echo $ac_n "checking for long long""... $ac_c" 1>&6
8544 echo "configure:8545: checking for long long" >&5
8545 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8547 else
8549 if test "$cross_compiling" = yes; then
8550 samba_cv_have_longlong=cross
8551 else
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8555 #include <stdio.h>
8556 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8558 if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8559 then
8560 samba_cv_have_longlong=yes
8561 else
8562 echo "configure: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8564 rm -fr conftest*
8565 samba_cv_have_longlong=no
8567 rm -fr conftest*
8572 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8573 if test x"$samba_cv_have_longlong" = x"yes"; then
8574 cat >> confdefs.h <<\EOF
8575 #define HAVE_LONGLONG 1
8581 # Check if the compiler supports the LL prefix on long long integers.
8582 # AIX needs this.
8584 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8585 echo "configure:8586: checking for LL suffix on long long integers" >&5
8586 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8588 else
8590 cat > conftest.$ac_ext <<EOF
8591 #line 8592 "configure"
8592 #include "confdefs.h"
8593 #include <stdio.h>
8594 int main() {
8595 long long i = 0x8000000000LL
8596 ; return 0; }
8598 if { (eval echo configure:8599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8599 rm -rf conftest*
8600 samba_cv_compiler_supports_ll=yes
8601 else
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 rm -rf conftest*
8605 samba_cv_compiler_supports_ll=no
8607 rm -f conftest*
8610 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8611 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8612 cat >> confdefs.h <<\EOF
8613 #define COMPILER_SUPPORTS_LL 1
8619 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8620 echo "configure:8621: checking for 64 bit off_t" >&5
8621 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8623 else
8625 if test "$cross_compiling" = yes; then
8626 samba_cv_SIZEOF_OFF_T=cross
8627 else
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 #include <stdio.h>
8632 #include <sys/stat.h>
8633 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8635 if { (eval echo configure:8636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8636 then
8637 samba_cv_SIZEOF_OFF_T=yes
8638 else
8639 echo "configure: failed program was:" >&5
8640 cat conftest.$ac_ext >&5
8641 rm -fr conftest*
8642 samba_cv_SIZEOF_OFF_T=no
8644 rm -fr conftest*
8649 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8650 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8651 cat >> confdefs.h <<\EOF
8652 #define SIZEOF_OFF_T 8
8657 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8658 echo "configure:8659: checking for off64_t" >&5
8659 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8661 else
8663 if test "$cross_compiling" = yes; then
8664 samba_cv_HAVE_OFF64_T=cross
8665 else
8666 cat > conftest.$ac_ext <<EOF
8667 #line 8668 "configure"
8668 #include "confdefs.h"
8670 #if defined(HAVE_UNISTD_H)
8671 #include <unistd.h>
8672 #endif
8673 #include <stdio.h>
8674 #include <sys/stat.h>
8675 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8677 if { (eval echo configure:8678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8678 then
8679 samba_cv_HAVE_OFF64_T=yes
8680 else
8681 echo "configure: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8683 rm -fr conftest*
8684 samba_cv_HAVE_OFF64_T=no
8686 rm -fr conftest*
8691 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8692 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8693 cat >> confdefs.h <<\EOF
8694 #define HAVE_OFF64_T 1
8699 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8700 echo "configure:8701: checking for 64 bit ino_t" >&5
8701 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8703 else
8705 if test "$cross_compiling" = yes; then
8706 samba_cv_SIZEOF_INO_T=cross
8707 else
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8711 #include <stdio.h>
8712 #include <sys/stat.h>
8713 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8715 if { (eval echo configure:8716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8716 then
8717 samba_cv_SIZEOF_INO_T=yes
8718 else
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 rm -fr conftest*
8722 samba_cv_SIZEOF_INO_T=no
8724 rm -fr conftest*
8729 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8730 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8731 cat >> confdefs.h <<\EOF
8732 #define SIZEOF_INO_T 8
8737 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8738 echo "configure:8739: checking for ino64_t" >&5
8739 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8741 else
8743 if test "$cross_compiling" = yes; then
8744 samba_cv_HAVE_INO64_T=cross
8745 else
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8750 #if defined(HAVE_UNISTD_H)
8751 #include <unistd.h>
8752 #endif
8753 #include <stdio.h>
8754 #include <sys/stat.h>
8755 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8757 if { (eval echo configure:8758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8758 then
8759 samba_cv_HAVE_INO64_T=yes
8760 else
8761 echo "configure: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 rm -fr conftest*
8764 samba_cv_HAVE_INO64_T=no
8766 rm -fr conftest*
8771 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8772 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8773 cat >> confdefs.h <<\EOF
8774 #define HAVE_INO64_T 1
8779 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8780 echo "configure:8781: checking for struct dirent64" >&5
8781 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8782 echo $ac_n "(cached) $ac_c" 1>&6
8783 else
8785 cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8789 #if defined(HAVE_UNISTD_H)
8790 #include <unistd.h>
8791 #endif
8792 #include <sys/types.h>
8793 #include <dirent.h>
8794 int main() {
8795 struct dirent64 de;
8796 ; return 0; }
8798 if { (eval echo configure:8799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8799 rm -rf conftest*
8800 samba_cv_HAVE_STRUCT_DIRENT64=yes
8801 else
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8804 rm -rf conftest*
8805 samba_cv_HAVE_STRUCT_DIRENT64=no
8807 rm -f conftest*
8810 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8811 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8812 cat >> confdefs.h <<\EOF
8813 #define HAVE_STRUCT_DIRENT64 1
8818 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8819 echo "configure:8820: checking for unsigned char" >&5
8820 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822 else
8824 if test "$cross_compiling" = yes; then
8825 samba_cv_HAVE_UNSIGNED_CHAR=cross
8826 else
8827 cat > conftest.$ac_ext <<EOF
8828 #line 8829 "configure"
8829 #include "confdefs.h"
8830 #include <stdio.h>
8831 main() { char c; c=250; exit((c > 0)?0:1); }
8833 if { (eval echo configure:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8834 then
8835 samba_cv_HAVE_UNSIGNED_CHAR=yes
8836 else
8837 echo "configure: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8839 rm -fr conftest*
8840 samba_cv_HAVE_UNSIGNED_CHAR=no
8842 rm -fr conftest*
8847 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8848 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8849 cat >> confdefs.h <<\EOF
8850 #define HAVE_UNSIGNED_CHAR 1
8855 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8856 echo "configure:8857: checking for sin_len in sock" >&5
8857 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8859 else
8861 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8864 #include <sys/types.h>
8865 #include <sys/socket.h>
8866 #include <netinet/in.h>
8867 int main() {
8868 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8869 ; return 0; }
8871 if { (eval echo configure:8872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8872 rm -rf conftest*
8873 samba_cv_HAVE_SOCK_SIN_LEN=yes
8874 else
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8877 rm -rf conftest*
8878 samba_cv_HAVE_SOCK_SIN_LEN=no
8880 rm -f conftest*
8883 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8884 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8885 cat >> confdefs.h <<\EOF
8886 #define HAVE_SOCK_SIN_LEN 1
8891 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8892 echo "configure:8893: checking whether seekdir returns void" >&5
8893 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8895 else
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8900 #include <sys/types.h>
8901 #include <dirent.h>
8902 void seekdir(DIR *d, long loc) { return; }
8903 int main() {
8904 return 0;
8905 ; return 0; }
8907 if { (eval echo configure:8908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8908 rm -rf conftest*
8909 samba_cv_SEEKDIR_RETURNS_VOID=yes
8910 else
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 rm -rf conftest*
8914 samba_cv_SEEKDIR_RETURNS_VOID=no
8916 rm -f conftest*
8919 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8920 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8921 cat >> confdefs.h <<\EOF
8922 #define SEEKDIR_RETURNS_VOID 1
8927 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8928 echo "configure:8929: checking for __FILE__ macro" >&5
8929 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8931 else
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 #include <stdio.h>
8937 int main() {
8938 printf("%s\n", __FILE__);
8939 ; return 0; }
8941 if { (eval echo configure:8942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8942 rm -rf conftest*
8943 samba_cv_HAVE_FILE_MACRO=yes
8944 else
8945 echo "configure: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8947 rm -rf conftest*
8948 samba_cv_HAVE_FILE_MACRO=no
8950 rm -f conftest*
8953 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8954 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8955 cat >> confdefs.h <<\EOF
8956 #define HAVE_FILE_MACRO 1
8961 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8962 echo "configure:8963: checking for __FUNCTION__ macro" >&5
8963 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8965 else
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8970 #include <stdio.h>
8971 int main() {
8972 printf("%s\n", __FUNCTION__);
8973 ; return 0; }
8975 if { (eval echo configure:8976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8976 rm -rf conftest*
8977 samba_cv_HAVE_FUNCTION_MACRO=yes
8978 else
8979 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 rm -rf conftest*
8982 samba_cv_HAVE_FUNCTION_MACRO=no
8984 rm -f conftest*
8987 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8988 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8989 cat >> confdefs.h <<\EOF
8990 #define HAVE_FUNCTION_MACRO 1
8995 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8996 echo "configure:8997: checking if gettimeofday takes tz argument" >&5
8997 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8998 echo $ac_n "(cached) $ac_c" 1>&6
8999 else
9001 if test "$cross_compiling" = yes; then
9002 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9003 else
9004 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9008 #include <sys/time.h>
9009 #include <unistd.h>
9010 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9013 then
9014 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9015 else
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9018 rm -fr conftest*
9019 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9021 rm -fr conftest*
9026 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9027 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9028 cat >> confdefs.h <<\EOF
9029 #define HAVE_GETTIMEOFDAY_TZ 1
9034 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9035 echo "configure:9036: checking for C99 vsnprintf" >&5
9036 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9038 else
9040 if test "$cross_compiling" = yes; then
9041 samba_cv_HAVE_C99_VSNPRINTF=cross
9042 else
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9047 #include <sys/types.h>
9048 #include <stdarg.h>
9049 void foo(const char *format, ...) {
9050 va_list ap;
9051 int len;
9052 char buf[5];
9054 va_start(ap, format);
9055 len = vsnprintf(0, 0, format, ap);
9056 va_end(ap);
9057 if (len != 5) exit(1);
9059 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9061 exit(0);
9063 main() { foo("hello"); }
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9067 then
9068 samba_cv_HAVE_C99_VSNPRINTF=yes
9069 else
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 rm -fr conftest*
9073 samba_cv_HAVE_C99_VSNPRINTF=no
9075 rm -fr conftest*
9080 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9081 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9082 cat >> confdefs.h <<\EOF
9083 #define HAVE_C99_VSNPRINTF 1
9088 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9089 echo "configure:9090: checking for broken readdir" >&5
9090 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9092 else
9094 if test "$cross_compiling" = yes; then
9095 samba_cv_HAVE_BROKEN_READDIR=cross
9096 else
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9100 #include <sys/types.h>
9101 #include <dirent.h>
9102 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9103 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9104 di->d_name[0] == 0) exit(0); exit(1);}
9106 if { (eval echo configure:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9107 then
9108 samba_cv_HAVE_BROKEN_READDIR=yes
9109 else
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9112 rm -fr conftest*
9113 samba_cv_HAVE_BROKEN_READDIR=no
9115 rm -fr conftest*
9120 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9121 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9122 cat >> confdefs.h <<\EOF
9123 #define HAVE_BROKEN_READDIR 1
9128 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9129 echo "configure:9130: checking for utimbuf" >&5
9130 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9132 else
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9137 #include <sys/types.h>
9138 #include <utime.h>
9139 int main() {
9140 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9141 ; return 0; }
9143 if { (eval echo configure:9144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9144 rm -rf conftest*
9145 samba_cv_HAVE_UTIMBUF=yes
9146 else
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9149 rm -rf conftest*
9150 samba_cv_HAVE_UTIMBUF=no
9152 rm -f conftest*
9155 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9156 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9157 cat >> confdefs.h <<\EOF
9158 #define HAVE_UTIMBUF 1
9164 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9167 echo "configure:9168: checking for $ac_func" >&5
9168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9170 else
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 /* System header to define __stub macros and hopefully few prototypes,
9175 which can conflict with char $ac_func(); below. */
9176 #include <assert.h>
9177 /* Override any gcc2 internal prototype to avoid an error. */
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9180 char $ac_func();
9182 int main() {
9184 /* The GNU C library defines this for functions which it implements
9185 to always fail with ENOSYS. Some functions are actually named
9186 something starting with __ and the normal name is an alias. */
9187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9188 choke me
9189 #else
9190 $ac_func();
9191 #endif
9193 ; return 0; }
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9196 rm -rf conftest*
9197 eval "ac_cv_func_$ac_func=yes"
9198 else
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 rm -rf conftest*
9202 eval "ac_cv_func_$ac_func=no"
9204 rm -f conftest*
9207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9208 echo "$ac_t""yes" 1>&6
9209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9210 cat >> confdefs.h <<EOF
9211 #define $ac_tr_func 1
9214 else
9215 echo "$ac_t""no" 1>&6
9217 done
9220 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9221 echo "configure:9222: checking for ut_name in utmp" >&5
9222 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9224 else
9226 cat > conftest.$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9229 #include <sys/types.h>
9230 #include <utmp.h>
9231 int main() {
9232 struct utmp ut; ut.ut_name[0] = 'a';
9233 ; return 0; }
9235 if { (eval echo configure:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9236 rm -rf conftest*
9237 samba_cv_HAVE_UT_UT_NAME=yes
9238 else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -rf conftest*
9242 samba_cv_HAVE_UT_UT_NAME=no
9244 rm -f conftest*
9247 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9248 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9249 cat >> confdefs.h <<\EOF
9250 #define HAVE_UT_UT_NAME 1
9255 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9256 echo "configure:9257: checking for ut_user in utmp" >&5
9257 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9259 else
9261 cat > conftest.$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9264 #include <sys/types.h>
9265 #include <utmp.h>
9266 int main() {
9267 struct utmp ut; ut.ut_user[0] = 'a';
9268 ; return 0; }
9270 if { (eval echo configure:9271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9271 rm -rf conftest*
9272 samba_cv_HAVE_UT_UT_USER=yes
9273 else
9274 echo "configure: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9276 rm -rf conftest*
9277 samba_cv_HAVE_UT_UT_USER=no
9279 rm -f conftest*
9282 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9283 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9284 cat >> confdefs.h <<\EOF
9285 #define HAVE_UT_UT_USER 1
9290 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9291 echo "configure:9292: checking for ut_id in utmp" >&5
9292 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9294 else
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9299 #include <sys/types.h>
9300 #include <utmp.h>
9301 int main() {
9302 struct utmp ut; ut.ut_id[0] = 'a';
9303 ; return 0; }
9305 if { (eval echo configure:9306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9306 rm -rf conftest*
9307 samba_cv_HAVE_UT_UT_ID=yes
9308 else
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9311 rm -rf conftest*
9312 samba_cv_HAVE_UT_UT_ID=no
9314 rm -f conftest*
9317 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9318 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9319 cat >> confdefs.h <<\EOF
9320 #define HAVE_UT_UT_ID 1
9325 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9326 echo "configure:9327: checking for ut_host in utmp" >&5
9327 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9329 else
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 #include <sys/types.h>
9335 #include <utmp.h>
9336 int main() {
9337 struct utmp ut; ut.ut_host[0] = 'a';
9338 ; return 0; }
9340 if { (eval echo configure:9341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9341 rm -rf conftest*
9342 samba_cv_HAVE_UT_UT_HOST=yes
9343 else
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9346 rm -rf conftest*
9347 samba_cv_HAVE_UT_UT_HOST=no
9349 rm -f conftest*
9352 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9353 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9354 cat >> confdefs.h <<\EOF
9355 #define HAVE_UT_UT_HOST 1
9360 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9361 echo "configure:9362: checking for ut_time in utmp" >&5
9362 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9364 else
9366 cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9369 #include <sys/types.h>
9370 #include <utmp.h>
9371 int main() {
9372 struct utmp ut; time_t t; ut.ut_time = t;
9373 ; return 0; }
9375 if { (eval echo configure:9376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9376 rm -rf conftest*
9377 samba_cv_HAVE_UT_UT_TIME=yes
9378 else
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9381 rm -rf conftest*
9382 samba_cv_HAVE_UT_UT_TIME=no
9384 rm -f conftest*
9387 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9388 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9389 cat >> confdefs.h <<\EOF
9390 #define HAVE_UT_UT_TIME 1
9395 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9396 echo "configure:9397: checking for ut_tv in utmp" >&5
9397 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9398 echo $ac_n "(cached) $ac_c" 1>&6
9399 else
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 #include <sys/types.h>
9405 #include <utmp.h>
9406 int main() {
9407 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9408 ; return 0; }
9410 if { (eval echo configure:9411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9411 rm -rf conftest*
9412 samba_cv_HAVE_UT_UT_TV=yes
9413 else
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 rm -rf conftest*
9417 samba_cv_HAVE_UT_UT_TV=no
9419 rm -f conftest*
9422 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9423 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9424 cat >> confdefs.h <<\EOF
9425 #define HAVE_UT_UT_TV 1
9430 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9431 echo "configure:9432: checking for ut_type in utmp" >&5
9432 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9434 else
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 #include <sys/types.h>
9440 #include <utmp.h>
9441 int main() {
9442 struct utmp ut; ut.ut_type = 0;
9443 ; return 0; }
9445 if { (eval echo configure:9446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9446 rm -rf conftest*
9447 samba_cv_HAVE_UT_UT_TYPE=yes
9448 else
9449 echo "configure: failed program was:" >&5
9450 cat conftest.$ac_ext >&5
9451 rm -rf conftest*
9452 samba_cv_HAVE_UT_UT_TYPE=no
9454 rm -f conftest*
9457 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9458 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9459 cat >> confdefs.h <<\EOF
9460 #define HAVE_UT_UT_TYPE 1
9465 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9466 echo "configure:9467: checking for ut_pid in utmp" >&5
9467 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9469 else
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 #include <sys/types.h>
9475 #include <utmp.h>
9476 int main() {
9477 struct utmp ut; ut.ut_pid = 0;
9478 ; return 0; }
9480 if { (eval echo configure:9481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9481 rm -rf conftest*
9482 samba_cv_HAVE_UT_UT_PID=yes
9483 else
9484 echo "configure: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9486 rm -rf conftest*
9487 samba_cv_HAVE_UT_UT_PID=no
9489 rm -f conftest*
9492 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9493 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9494 cat >> confdefs.h <<\EOF
9495 #define HAVE_UT_UT_PID 1
9500 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9501 echo "configure:9502: checking for ut_exit in utmp" >&5
9502 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9504 else
9506 cat > conftest.$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 #include <sys/types.h>
9510 #include <utmp.h>
9511 int main() {
9512 struct utmp ut; ut.ut_exit.e_exit = 0;
9513 ; return 0; }
9515 if { (eval echo configure:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9516 rm -rf conftest*
9517 samba_cv_HAVE_UT_UT_EXIT=yes
9518 else
9519 echo "configure: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 rm -rf conftest*
9522 samba_cv_HAVE_UT_UT_EXIT=no
9524 rm -f conftest*
9527 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9528 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9529 cat >> confdefs.h <<\EOF
9530 #define HAVE_UT_UT_EXIT 1
9535 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9536 echo "configure:9537: checking for ut_addr in utmp" >&5
9537 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9539 else
9541 cat > conftest.$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9544 #include <sys/types.h>
9545 #include <utmp.h>
9546 int main() {
9547 struct utmp ut; ut.ut_addr = 0;
9548 ; return 0; }
9550 if { (eval echo configure:9551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9551 rm -rf conftest*
9552 samba_cv_HAVE_UT_UT_ADDR=yes
9553 else
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 rm -rf conftest*
9557 samba_cv_HAVE_UT_UT_ADDR=no
9559 rm -f conftest*
9562 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9563 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9564 cat >> confdefs.h <<\EOF
9565 #define HAVE_UT_UT_ADDR 1
9570 if test x$ac_cv_func_pututline = xyes ; then
9571 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9572 echo "configure:9573: checking whether pututline returns pointer" >&5
9573 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9575 else
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9580 #include <sys/types.h>
9581 #include <utmp.h>
9582 int main() {
9583 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9584 ; return 0; }
9586 if { (eval echo configure:9587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9587 rm -rf conftest*
9588 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9589 else
9590 echo "configure: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 rm -rf conftest*
9593 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9595 rm -f conftest*
9598 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9599 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9600 cat >> confdefs.h <<\EOF
9601 #define PUTUTLINE_RETURNS_UTMP 1
9607 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9608 echo "configure:9609: checking for ut_syslen in utmpx" >&5
9609 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
9611 else
9613 cat > conftest.$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include <sys/types.h>
9617 #include <utmpx.h>
9618 int main() {
9619 struct utmpx ux; ux.ut_syslen = 0;
9620 ; return 0; }
9622 if { (eval echo configure:9623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9623 rm -rf conftest*
9624 samba_cv_HAVE_UX_UT_SYSLEN=yes
9625 else
9626 echo "configure: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9628 rm -rf conftest*
9629 samba_cv_HAVE_UX_UT_SYSLEN=no
9631 rm -f conftest*
9634 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9635 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9636 cat >> confdefs.h <<\EOF
9637 #define HAVE_UX_UT_SYSLEN 1
9642 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9643 echo "configure:9644: checking for Linux kernel oplocks" >&5
9644 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9648 if test "$cross_compiling" = yes; then
9649 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9650 else
9651 cat > conftest.$ac_ext <<EOF
9652 #line 9653 "configure"
9653 #include "confdefs.h"
9655 #include <sys/types.h>
9656 #include <fcntl.h>
9657 #ifndef F_GETLEASE
9658 #define F_GETLEASE 1025
9659 #endif
9660 main() {
9661 int fd = open("/dev/null", O_RDONLY);
9662 return fcntl(fd, F_GETLEASE, 0) == -1;
9666 if { (eval echo configure:9667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9667 then
9668 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9669 else
9670 echo "configure: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9672 rm -fr conftest*
9673 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9675 rm -fr conftest*
9680 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9681 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9682 cat >> confdefs.h <<\EOF
9683 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9688 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9689 echo "configure:9690: checking for kernel change notify support" >&5
9690 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9692 else
9694 if test "$cross_compiling" = yes; then
9695 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9696 else
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9701 #include <sys/types.h>
9702 #include <fcntl.h>
9703 #include <signal.h>
9704 #ifndef F_NOTIFY
9705 #define F_NOTIFY 1026
9706 #endif
9707 main() {
9708 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9712 if { (eval echo configure:9713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9713 then
9714 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9715 else
9716 echo "configure: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 rm -fr conftest*
9719 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9721 rm -fr conftest*
9726 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9727 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9728 cat >> confdefs.h <<\EOF
9729 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9734 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9735 echo "configure:9736: checking for kernel share modes" >&5
9736 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9738 else
9740 if test "$cross_compiling" = yes; then
9741 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9742 else
9743 cat > conftest.$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9747 #include <sys/types.h>
9748 #include <fcntl.h>
9749 #include <signal.h>
9750 #include <sys/file.h>
9751 #ifndef LOCK_MAND
9752 #define LOCK_MAND 32
9753 #define LOCK_READ 64
9754 #endif
9755 main() {
9756 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9760 if { (eval echo configure:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9761 then
9762 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9763 else
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 rm -fr conftest*
9767 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9769 rm -fr conftest*
9774 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9775 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9776 cat >> confdefs.h <<\EOF
9777 #define HAVE_KERNEL_SHARE_MODES 1
9785 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9786 echo "configure:9787: checking for IRIX kernel oplock type definitions" >&5
9787 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9794 #include <sys/types.h>
9795 #include <fcntl.h>
9796 int main() {
9797 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9798 ; return 0; }
9800 if { (eval echo configure:9801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9801 rm -rf conftest*
9802 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9803 else
9804 echo "configure: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9806 rm -rf conftest*
9807 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9809 rm -f conftest*
9812 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9813 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9814 cat >> confdefs.h <<\EOF
9815 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9820 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9821 echo "configure:9822: checking for irix specific capabilities" >&5
9822 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824 else
9826 if test "$cross_compiling" = yes; then
9827 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9828 else
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 #include <sys/types.h>
9833 #include <sys/capability.h>
9834 main() {
9835 cap_t cap;
9836 if ((cap = cap_get_proc()) == NULL)
9837 exit(1);
9838 cap->cap_effective |= CAP_NETWORK_MGT;
9839 cap->cap_inheritable |= CAP_NETWORK_MGT;
9840 cap_set_proc(cap);
9841 exit(0);
9845 if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9846 then
9847 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9848 else
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 rm -fr conftest*
9852 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9854 rm -fr conftest*
9859 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9860 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9861 cat >> confdefs.h <<\EOF
9862 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9868 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9869 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9872 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9873 echo "configure:9874: checking for int16 typedef included by rpc/rpc.h" >&5
9874 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9876 else
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include <sys/types.h>
9882 #if defined(HAVE_RPC_RPC_H)
9883 #include <rpc/rpc.h>
9884 #endif
9885 int main() {
9886 int16 testvar;
9887 ; return 0; }
9889 if { (eval echo configure:9890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9890 rm -rf conftest*
9891 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9892 else
9893 echo "configure: failed program was:" >&5
9894 cat conftest.$ac_ext >&5
9895 rm -rf conftest*
9896 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9898 rm -f conftest*
9901 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9902 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9903 cat >> confdefs.h <<\EOF
9904 #define HAVE_INT16_FROM_RPC_RPC_H 1
9909 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9910 echo "configure:9911: checking for uint16 typedef included by rpc/rpc.h" >&5
9911 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9912 echo $ac_n "(cached) $ac_c" 1>&6
9913 else
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 #include <sys/types.h>
9919 #if defined(HAVE_RPC_RPC_H)
9920 #include <rpc/rpc.h>
9921 #endif
9922 int main() {
9923 uint16 testvar;
9924 ; return 0; }
9926 if { (eval echo configure:9927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9927 rm -rf conftest*
9928 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9929 else
9930 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9932 rm -rf conftest*
9933 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9935 rm -f conftest*
9938 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9939 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9940 cat >> confdefs.h <<\EOF
9941 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9946 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9947 echo "configure:9948: checking for int32 typedef included by rpc/rpc.h" >&5
9948 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9950 else
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 #include <sys/types.h>
9956 #if defined(HAVE_RPC_RPC_H)
9957 #include <rpc/rpc.h>
9958 #endif
9959 int main() {
9960 int32 testvar;
9961 ; return 0; }
9963 if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9964 rm -rf conftest*
9965 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9966 else
9967 echo "configure: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9969 rm -rf conftest*
9970 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9972 rm -f conftest*
9975 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9976 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9977 cat >> confdefs.h <<\EOF
9978 #define HAVE_INT32_FROM_RPC_RPC_H 1
9983 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9984 echo "configure:9985: checking for uint32 typedef included by rpc/rpc.h" >&5
9985 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9986 echo $ac_n "(cached) $ac_c" 1>&6
9987 else
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 #include <sys/types.h>
9993 #if defined(HAVE_RPC_RPC_H)
9994 #include <rpc/rpc.h>
9995 #endif
9996 int main() {
9997 uint32 testvar;
9998 ; return 0; }
10000 if { (eval echo configure:10001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10001 rm -rf conftest*
10002 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10003 else
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 rm -rf conftest*
10007 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10009 rm -f conftest*
10012 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10013 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10014 cat >> confdefs.h <<\EOF
10015 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10021 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10022 echo "configure:10023: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10023 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10024 echo $ac_n "(cached) $ac_c" 1>&6
10025 else
10027 cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #ifdef HAVE_SYS_SECURITY_H
10032 #include <sys/security.h>
10033 #include <prot.h>
10034 #endif /* HAVE_SYS_SECURITY_H */
10035 #if defined(HAVE_RPC_RPC_H)
10036 #include <rpc/rpc.h>
10037 #endif
10038 int main() {
10039 int testvar;
10040 ; return 0; }
10042 if { (eval echo configure:10043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10043 rm -rf conftest*
10044 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10045 else
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10048 rm -rf conftest*
10049 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10051 rm -f conftest*
10054 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10055 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10056 cat >> confdefs.h <<\EOF
10057 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10062 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10063 echo "configure:10064: checking for test routines" >&5
10064 if test "$cross_compiling" = yes; then
10065 echo "configure: warning: cannot run when cross-compiling" 1>&2
10066 else
10067 cat > conftest.$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10070 #include "${srcdir-.}/tests/trivial.c"
10072 if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10073 then
10074 echo "$ac_t""yes" 1>&6
10075 else
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 rm -fr conftest*
10079 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10081 rm -fr conftest*
10085 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10086 echo "configure:10087: checking for ftruncate extend" >&5
10087 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10089 else
10091 if test "$cross_compiling" = yes; then
10092 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10093 else
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097 #include "${srcdir-.}/tests/ftruncate.c"
10099 if { (eval echo configure:10100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10100 then
10101 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10102 else
10103 echo "configure: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 rm -fr conftest*
10106 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10108 rm -fr conftest*
10113 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10114 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10115 cat >> confdefs.h <<\EOF
10116 #define HAVE_FTRUNCATE_EXTEND 1
10121 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10122 echo "configure:10123: checking for broken getgroups" >&5
10123 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10124 echo $ac_n "(cached) $ac_c" 1>&6
10125 else
10127 if test "$cross_compiling" = yes; then
10128 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10129 else
10130 cat > conftest.$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10133 #include "${srcdir-.}/tests/getgroups.c"
10135 if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10136 then
10137 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10138 else
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10141 rm -fr conftest*
10142 samba_cv_HAVE_BROKEN_GETGROUPS=no
10144 rm -fr conftest*
10149 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10150 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10151 cat >> confdefs.h <<\EOF
10152 #define HAVE_BROKEN_GETGROUPS 1
10157 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10158 echo "configure:10159: checking whether getpass should be replaced" >&5
10159 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10163 SAVE_CPPFLAGS="$CPPFLAGS"
10164 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10169 #define REPLACE_GETPASS 1
10170 #define NO_CONFIG_H 1
10171 #define main dont_declare_main
10172 #include "${srcdir-.}/lib/getsmbpass.c"
10173 #undef main
10175 int main() {
10177 ; return 0; }
10179 if { (eval echo configure:10180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10180 rm -rf conftest*
10181 samba_cv_REPLACE_GETPASS=yes
10182 else
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186 samba_cv_REPLACE_GETPASS=no
10188 rm -f conftest*
10189 CPPFLAGS="$SAVE_CPPFLAGS"
10193 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10194 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10195 cat >> confdefs.h <<\EOF
10196 #define REPLACE_GETPASS 1
10201 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10202 echo "configure:10203: checking for broken inet_ntoa" >&5
10203 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10205 else
10207 if test "$cross_compiling" = yes; then
10208 samba_cv_REPLACE_INET_NTOA=cross
10209 else
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10214 #include <stdio.h>
10215 #include <sys/types.h>
10216 #include <netinet/in.h>
10217 #ifdef HAVE_ARPA_INET_H
10218 #include <arpa/inet.h>
10219 #endif
10220 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10221 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10222 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10223 exit(1);}
10225 if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10226 then
10227 samba_cv_REPLACE_INET_NTOA=yes
10228 else
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10231 rm -fr conftest*
10232 samba_cv_REPLACE_INET_NTOA=no
10234 rm -fr conftest*
10239 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10240 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10241 cat >> confdefs.h <<\EOF
10242 #define REPLACE_INET_NTOA 1
10247 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10248 echo "configure:10249: checking for secure mkstemp" >&5
10249 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10253 if test "$cross_compiling" = yes; then
10254 samba_cv_HAVE_SECURE_MKSTEMP=cross
10255 else
10256 cat > conftest.$ac_ext <<EOF
10257 #line 10258 "configure"
10258 #include "confdefs.h"
10259 #include <stdlib.h>
10260 #include <sys/types.h>
10261 #include <sys/stat.h>
10262 #include <unistd.h>
10263 main() {
10264 struct stat st;
10265 char tpl[20]="/tmp/test.XXXXXX";
10266 int fd = mkstemp(tpl);
10267 if (fd == -1) exit(1);
10268 unlink(tpl);
10269 if (fstat(fd, &st) != 0) exit(1);
10270 if ((st.st_mode & 0777) != 0600) exit(1);
10271 exit(0);
10274 if { (eval echo configure:10275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10275 then
10276 samba_cv_HAVE_SECURE_MKSTEMP=yes
10277 else
10278 echo "configure: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 rm -fr conftest*
10281 samba_cv_HAVE_SECURE_MKSTEMP=no
10283 rm -fr conftest*
10288 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10289 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10290 cat >> confdefs.h <<\EOF
10291 #define HAVE_SECURE_MKSTEMP 1
10296 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10297 echo "configure:10298: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10298 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10300 else
10302 if test "$cross_compiling" = yes; then
10303 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10304 else
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <unistd.h>
10309 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10311 if { (eval echo configure:10312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10312 then
10313 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10314 else
10315 echo "configure: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10317 rm -fr conftest*
10318 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10320 rm -fr conftest*
10325 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10326 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10327 cat >> confdefs.h <<\EOF
10328 #define SYSCONF_SC_NGROUPS_MAX 1
10333 echo $ac_n "checking for root""... $ac_c" 1>&6
10334 echo "configure:10335: checking for root" >&5
10335 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10336 echo $ac_n "(cached) $ac_c" 1>&6
10337 else
10339 if test "$cross_compiling" = yes; then
10340 samba_cv_HAVE_ROOT=cross
10341 else
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10345 main() { exit(getuid() != 0); }
10347 if { (eval echo configure:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10348 then
10349 samba_cv_HAVE_ROOT=yes
10350 else
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 rm -fr conftest*
10354 samba_cv_HAVE_ROOT=no
10356 rm -fr conftest*
10361 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10362 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10363 cat >> confdefs.h <<\EOF
10364 #define HAVE_ROOT 1
10367 else
10368 echo "configure: warning: running as non-root will disable some tests" 1>&2
10371 ##################
10372 # look for a method of finding the list of network interfaces
10373 iface=no;
10374 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10375 echo "configure:10376: checking for iface AIX" >&5
10376 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10378 else
10380 if test "$cross_compiling" = yes; then
10381 samba_cv_HAVE_IFACE_AIX=cross
10382 else
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10387 #define HAVE_IFACE_AIX 1
10388 #define AUTOCONF_TEST 1
10389 #include "confdefs.h"
10390 #include "${srcdir-.}/lib/interfaces.c"
10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10393 then
10394 samba_cv_HAVE_IFACE_AIX=yes
10395 else
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10398 rm -fr conftest*
10399 samba_cv_HAVE_IFACE_AIX=no
10401 rm -fr conftest*
10406 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10407 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10408 iface=yes;cat >> confdefs.h <<\EOF
10409 #define HAVE_IFACE_AIX 1
10414 if test $iface = no; then
10415 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10416 echo "configure:10417: checking for iface ifconf" >&5
10417 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10418 echo $ac_n "(cached) $ac_c" 1>&6
10419 else
10421 if test "$cross_compiling" = yes; then
10422 samba_cv_HAVE_IFACE_IFCONF=cross
10423 else
10424 cat > conftest.$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10428 #define HAVE_IFACE_IFCONF 1
10429 #define AUTOCONF_TEST 1
10430 #include "confdefs.h"
10431 #include "${srcdir-.}/lib/interfaces.c"
10433 if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10434 then
10435 samba_cv_HAVE_IFACE_IFCONF=yes
10436 else
10437 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 rm -fr conftest*
10440 samba_cv_HAVE_IFACE_IFCONF=no
10442 rm -fr conftest*
10447 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10448 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10449 iface=yes;cat >> confdefs.h <<\EOF
10450 #define HAVE_IFACE_IFCONF 1
10456 if test $iface = no; then
10457 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10458 echo "configure:10459: checking for iface ifreq" >&5
10459 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10460 echo $ac_n "(cached) $ac_c" 1>&6
10461 else
10463 if test "$cross_compiling" = yes; then
10464 samba_cv_HAVE_IFACE_IFREQ=cross
10465 else
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10468 "configure"
10468 #include "confdefs.h"
10470 #define HAVE_IFACE_IFREQ 1
10471 #define AUTOCONF_TEST 1
10472 #include "confdefs.h"
10473 #include "${srcdir-.}/lib/interfaces.c"
10475 if { (eval echo configure:10476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10476 then
10477 samba_cv_HAVE_IFACE_IFREQ=yes
10478 else
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10481 rm -fr conftest*
10482 samba_cv_HAVE_IFACE_IFREQ=no
10484 rm -fr conftest*
10489 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10490 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10491 iface=yes;cat >> confdefs.h <<\EOF
10492 #define HAVE_IFACE_IFREQ 1
10499 ################################################
10500 # look for a method of setting the effective uid
10501 seteuid=no;
10502 if test $seteuid = no; then
10503 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10504 echo "configure:10505: checking for setresuid" >&5
10505 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10507 else
10509 if test "$cross_compiling" = yes; then
10510 samba_cv_USE_SETRESUID=cross
10511 else
10512 cat > conftest.$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10516 #define AUTOCONF_TEST 1
10517 #define USE_SETRESUID 1
10518 #include "confdefs.h"
10519 #include "${srcdir-.}/lib/util_sec.c"
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10522 then
10523 samba_cv_USE_SETRESUID=yes
10524 else
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10527 rm -fr conftest*
10528 samba_cv_USE_SETRESUID=no
10530 rm -fr conftest*
10535 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10536 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10537 seteuid=yes;cat >> confdefs.h <<\EOF
10538 #define USE_SETRESUID 1
10545 if test $seteuid = no; then
10546 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10547 echo "configure:10548: checking for setreuid" >&5
10548 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10550 else
10552 if test "$cross_compiling" = yes; then
10553 samba_cv_USE_SETREUID=cross
10554 else
10555 cat > conftest.$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10559 #define AUTOCONF_TEST 1
10560 #define USE_SETREUID 1
10561 #include "confdefs.h"
10562 #include "${srcdir-.}/lib/util_sec.c"
10564 if { (eval echo configure:10565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10565 then
10566 samba_cv_USE_SETREUID=yes
10567 else
10568 echo "configure: failed program was:" >&5
10569 cat conftest.$ac_ext >&5
10570 rm -fr conftest*
10571 samba_cv_USE_SETREUID=no
10573 rm -fr conftest*
10578 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10579 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10580 seteuid=yes;cat >> confdefs.h <<\EOF
10581 #define USE_SETREUID 1
10587 if test $seteuid = no; then
10588 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10589 echo "configure:10590: checking for seteuid" >&5
10590 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10592 else
10594 if test "$cross_compiling" = yes; then
10595 samba_cv_USE_SETEUID=cross
10596 else
10597 cat > conftest.$ac_ext <<EOF
10598 #line 10599 "configure"
10599 #include "confdefs.h"
10601 #define AUTOCONF_TEST 1
10602 #define USE_SETEUID 1
10603 #include "confdefs.h"
10604 #include "${srcdir-.}/lib/util_sec.c"
10606 if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10607 then
10608 samba_cv_USE_SETEUID=yes
10609 else
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 rm -fr conftest*
10613 samba_cv_USE_SETEUID=no
10615 rm -fr conftest*
10620 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10621 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10622 seteuid=yes;cat >> confdefs.h <<\EOF
10623 #define USE_SETEUID 1
10629 if test $seteuid = no; then
10630 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10631 echo "configure:10632: checking for setuidx" >&5
10632 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10633 echo $ac_n "(cached) $ac_c" 1>&6
10634 else
10636 if test "$cross_compiling" = yes; then
10637 samba_cv_USE_SETUIDX=cross
10638 else
10639 cat > conftest.$ac_ext <<EOF
10640 #line 10641 "configure"
10641 #include "confdefs.h"
10643 #define AUTOCONF_TEST 1
10644 #define USE_SETUIDX 1
10645 #include "confdefs.h"
10646 #include "${srcdir-.}/lib/util_sec.c"
10648 if { (eval echo configure:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10649 then
10650 samba_cv_USE_SETUIDX=yes
10651 else
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10654 rm -fr conftest*
10655 samba_cv_USE_SETUIDX=no
10657 rm -fr conftest*
10662 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10663 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10664 seteuid=yes;cat >> confdefs.h <<\EOF
10665 #define USE_SETUIDX 1
10672 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10673 echo "configure:10674: checking for working mmap" >&5
10674 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
10676 else
10678 if test "$cross_compiling" = yes; then
10679 samba_cv_HAVE_MMAP=cross
10680 else
10681 cat > conftest.$ac_ext <<EOF
10682 #line 10683 "configure"
10683 #include "confdefs.h"
10684 #include "${srcdir-.}/tests/shared_mmap.c"
10686 if { (eval echo configure:10687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10687 then
10688 samba_cv_HAVE_MMAP=yes
10689 else
10690 echo "configure: failed program was:" >&5
10691 cat conftest.$ac_ext >&5
10692 rm -fr conftest*
10693 samba_cv_HAVE_MMAP=no
10695 rm -fr conftest*
10700 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10701 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10702 cat >> confdefs.h <<\EOF
10703 #define HAVE_MMAP 1
10708 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10709 echo "configure:10710: checking for ftruncate needs root" >&5
10710 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10711 echo $ac_n "(cached) $ac_c" 1>&6
10712 else
10714 if test "$cross_compiling" = yes; then
10715 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10716 else
10717 cat > conftest.$ac_ext <<EOF
10718 #line 10719 "configure"
10719 #include "confdefs.h"
10720 #include "${srcdir-.}/tests/ftruncroot.c"
10722 if { (eval echo configure:10723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10723 then
10724 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10725 else
10726 echo "configure: failed program was:" >&5
10727 cat conftest.$ac_ext >&5
10728 rm -fr conftest*
10729 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10731 rm -fr conftest*
10736 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10737 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10738 cat >> confdefs.h <<\EOF
10739 #define FTRUNCATE_NEEDS_ROOT 1
10744 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10745 echo "configure:10746: checking for fcntl locking" >&5
10746 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10748 else
10750 if test "$cross_compiling" = yes; then
10751 samba_cv_HAVE_FCNTL_LOCK=cross
10752 else
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10756 #include "${srcdir-.}/tests/fcntl_lock.c"
10758 if { (eval echo configure:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10759 then
10760 samba_cv_HAVE_FCNTL_LOCK=yes
10761 else
10762 echo "configure: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10764 rm -fr conftest*
10765 samba_cv_HAVE_FCNTL_LOCK=no
10767 rm -fr conftest*
10772 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10773 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10774 cat >> confdefs.h <<\EOF
10775 #define HAVE_FCNTL_LOCK 1
10780 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10781 echo "configure:10782: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10782 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10788 else
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10792 #include "${srcdir-.}/tests/fcntl_lock64.c"
10794 if { (eval echo configure:10795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10795 then
10796 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10797 else
10798 echo "configure: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10800 rm -fr conftest*
10801 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10803 rm -fr conftest*
10808 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10809 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10810 cat >> confdefs.h <<\EOF
10811 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10815 else
10818 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10819 echo "configure:10820: checking for 64 bit fcntl locking" >&5
10820 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10821 echo $ac_n "(cached) $ac_c" 1>&6
10822 else
10824 if test "$cross_compiling" = yes; then
10825 samba_cv_HAVE_STRUCT_FLOCK64=cross
10826 else
10827 cat > conftest.$ac_ext <<EOF
10828 #line 10829 "configure"
10829 #include "confdefs.h"
10831 #if defined(HAVE_UNISTD_H)
10832 #include <unistd.h>
10833 #endif
10834 #include <stdio.h>
10835 #include <stdlib.h>
10837 #ifdef HAVE_FCNTL_H
10838 #include <fcntl.h>
10839 #endif
10841 #ifdef HAVE_SYS_FCNTL_H
10842 #include <sys/fcntl.h>
10843 #endif
10844 main() { struct flock64 fl64;
10845 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10846 exit(0);
10847 #else
10848 exit(1);
10849 #endif
10852 if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10853 then
10854 samba_cv_HAVE_STRUCT_FLOCK64=yes
10855 else
10856 echo "configure: failed program was:" >&5
10857 cat conftest.$ac_ext >&5
10858 rm -fr conftest*
10859 samba_cv_HAVE_STRUCT_FLOCK64=no
10861 rm -fr conftest*
10866 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10868 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10869 cat >> confdefs.h <<\EOF
10870 #define HAVE_STRUCT_FLOCK64 1
10877 case "$host_os" in
10878 *linux*)
10879 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
10880 echo "configure:10881: checking for broken RedHat 7.2 system header files" >&5
10881 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10883 else
10885 cat > conftest.$ac_ext <<EOF
10886 #line 10887 "configure"
10887 #include "confdefs.h"
10889 #ifdef HAVE_SYS_VFS_H
10890 #include <sys/vfs.h>
10891 #endif
10892 #ifdef HAVE_SYS_CAPABILITY_H
10893 #include <sys/capability.h>
10894 #endif
10896 int main() {
10897 int i;
10898 ; return 0; }
10900 if { (eval echo configure:10901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10901 rm -rf conftest*
10902 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
10903 else
10904 echo "configure: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10906 rm -rf conftest*
10907 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
10909 rm -f conftest*
10912 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
10913 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
10914 cat >> confdefs.h <<\EOF
10915 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
10920 esac
10922 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10923 echo "configure:10924: checking for broken nisplus include files" >&5
10924 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10925 echo $ac_n "(cached) $ac_c" 1>&6
10926 else
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 #include <sys/acl.h>
10932 #if defined(HAVE_RPCSVC_NIS_H)
10933 #include <rpcsvc/nis.h>
10934 #endif
10935 int main() {
10936 int i;
10937 ; return 0; }
10939 if { (eval echo configure:10940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10940 rm -rf conftest*
10941 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10942 else
10943 echo "configure: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10945 rm -rf conftest*
10946 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10948 rm -f conftest*
10951 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10952 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10953 cat >> confdefs.h <<\EOF
10954 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10960 #################################################
10961 # check for smbwrapper support
10962 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10963 echo "configure:10964: checking whether to use smbwrapper" >&5
10964 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10965 if test "${with_smbwrapper+set}" = set; then
10966 withval="$with_smbwrapper"
10967 case "$withval" in
10968 yes)
10969 echo "$ac_t""yes" 1>&6
10970 cat >> confdefs.h <<\EOF
10971 #define WITH_SMBWRAPPER 1
10974 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10976 if test x$ATTEMPT_WRAP32_BUILD = x; then
10977 WRAP32=""
10978 else
10979 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10982 # Conditions under which smbwrapper should not be built.
10984 if test x$PICFLAG = x; then
10985 echo No support for PIC code - disabling smbwrapper and smbsh
10986 WRAP=""
10987 WRAP32=""
10988 elif test x$ac_cv_func_syscall = xno; then
10989 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10990 WRAP=""
10991 WRAP32=""
10995 echo "$ac_t""no" 1>&6
10997 esac
10998 else
10999 echo "$ac_t""no" 1>&6
11004 #################################################
11005 # check for the AFS filesystem
11006 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11007 echo "configure:11008: checking whether to use AFS" >&5
11008 # Check whether --with-afs or --without-afs was given.
11009 if test "${with_afs+set}" = set; then
11010 withval="$with_afs"
11011 case "$withval" in
11012 yes)
11013 echo "$ac_t""yes" 1>&6
11014 cat >> confdefs.h <<\EOF
11015 #define WITH_AFS 1
11020 echo "$ac_t""no" 1>&6
11022 esac
11023 else
11024 echo "$ac_t""no" 1>&6
11030 #################################################
11031 # check for the DFS auth system
11032 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11033 echo "configure:11034: checking whether to use DCE/DFS auth" >&5
11034 # Check whether --with-dfs or --without-dfs was given.
11035 if test "${with_dfs+set}" = set; then
11036 withval="$with_dfs"
11037 case "$withval" in
11038 yes)
11039 echo "$ac_t""yes" 1>&6
11040 cat >> confdefs.h <<\EOF
11041 #define WITH_DFS 1
11046 echo "$ac_t""no" 1>&6
11048 esac
11049 else
11050 echo "$ac_t""no" 1>&6
11055 #################################################
11056 # check for Kerberos IV auth system
11057 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11058 echo "configure:11059: checking whether to use Kerberos IV" >&5
11059 # Check whether --with-krb4 or --without-krb4 was given.
11060 if test "${with_krb4+set}" = set; then
11061 withval="$with_krb4"
11062 case "$withval" in
11063 yes)
11064 echo "$ac_t""yes" 1>&6
11065 cat >> confdefs.h <<\EOF
11066 #define KRB4_AUTH 1
11069 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11070 echo "configure:11071: checking for dn_expand in -lresolv" >&5
11071 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11073 echo $ac_n "(cached) $ac_c" 1>&6
11074 else
11075 ac_save_LIBS="$LIBS"
11076 LIBS="-lresolv $LIBS"
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080 /* Override any gcc2 internal prototype to avoid an error. */
11081 /* We use char because int might match the return type of a gcc2
11082 builtin and then its argument prototype would still apply. */
11083 char dn_expand();
11085 int main() {
11086 dn_expand()
11087 ; return 0; }
11089 if { (eval echo configure:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11090 rm -rf conftest*
11091 eval "ac_cv_lib_$ac_lib_var=yes"
11092 else
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 rm -rf conftest*
11096 eval "ac_cv_lib_$ac_lib_var=no"
11098 rm -f conftest*
11099 LIBS="$ac_save_LIBS"
11102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11103 echo "$ac_t""yes" 1>&6
11104 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11105 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11106 cat >> confdefs.h <<EOF
11107 #define $ac_tr_lib 1
11110 LIBS="-lresolv $LIBS"
11112 else
11113 echo "$ac_t""no" 1>&6
11116 LIBS="$LIBS -lkrb -ldes"
11117 CFLAGS="$CFLAGS -I$withval/include"
11118 LDFLAGS="$LDFLAGS -L$withval/lib"
11121 echo "$ac_t""no" 1>&6
11123 esac
11124 else
11125 echo "$ac_t""no" 1>&6
11130 #################################################
11131 # check for Kerberos 5 auth system
11132 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11133 echo "configure:11134: checking whether to use Kerberos 5" >&5
11134 # Check whether --with-krb5 or --without-krb5 was given.
11135 if test "${with_krb5+set}" = set; then
11136 withval="$with_krb5"
11137 case "$withval" in
11138 yes)
11139 echo "$ac_t""yes" 1>&6
11140 cat >> confdefs.h <<\EOF
11141 #define KRB5_AUTH 1
11144 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11145 CFLAGS="$CFLAGS -I$withval/include"
11146 LDFLAGS="$LDFLAGS -L$withval/lib"
11149 echo "$ac_t""no" 1>&6
11151 esac
11152 else
11153 echo "$ac_t""no" 1>&6
11158 #################################################
11159 # check for automount support
11160 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11161 echo "configure:11162: checking whether to use AUTOMOUNT" >&5
11162 # Check whether --with-automount or --without-automount was given.
11163 if test "${with_automount+set}" = set; then
11164 withval="$with_automount"
11165 case "$withval" in
11166 yes)
11167 echo "$ac_t""yes" 1>&6
11168 cat >> confdefs.h <<\EOF
11169 #define WITH_AUTOMOUNT 1
11174 echo "$ac_t""no" 1>&6
11176 esac
11177 else
11178 echo "$ac_t""no" 1>&6
11183 #################################################
11184 # check for smbmount support
11185 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11186 echo "configure:11187: checking whether to use SMBMOUNT" >&5
11187 # Check whether --with-smbmount or --without-smbmount was given.
11188 if test "${with_smbmount+set}" = set; then
11189 withval="$with_smbmount"
11190 case "$withval" in
11191 yes)
11192 case "$host_os" in
11193 *linux*)
11194 echo "$ac_t""yes" 1>&6
11195 cat >> confdefs.h <<\EOF
11196 #define WITH_SMBMOUNT 1
11199 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11202 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11204 esac
11207 echo "$ac_t""no" 1>&6
11208 MPROGS=
11210 esac
11211 else
11212 echo "$ac_t""no" 1>&6
11213 MPROGS=
11219 #################################################
11220 # check for a PAM password database
11221 with_pam_for_crypt=no
11222 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11223 echo "configure:11224: checking whether to use PAM password database" >&5
11224 # Check whether --with-pam or --without-pam was given.
11225 if test "${with_pam+set}" = set; then
11226 withval="$with_pam"
11227 case "$withval" in
11228 yes)
11229 echo "$ac_t""yes" 1>&6
11230 cat >> confdefs.h <<\EOF
11231 #define WITH_PAM 1
11234 LIBS="$LIBS -lpam"
11235 with_pam_for_crypt=yes
11238 echo "$ac_t""no" 1>&6
11240 esac
11241 else
11242 echo "$ac_t""no" 1>&6
11247 # we can't build a pam module if we don't have pam.
11248 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11249 echo "configure:11250: checking for pam_get_data in -lpam" >&5
11250 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11253 else
11254 ac_save_LIBS="$LIBS"
11255 LIBS="-lpam $LIBS"
11256 cat > conftest.$ac_ext <<EOF
11257 #line 11258 "configure"
11258 #include "confdefs.h"
11259 /* Override any gcc2 internal prototype to avoid an error. */
11260 /* We use char because int might match the return type of a gcc2
11261 builtin and then its argument prototype would still apply. */
11262 char pam_get_data();
11264 int main() {
11265 pam_get_data()
11266 ; return 0; }
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11269 rm -rf conftest*
11270 eval "ac_cv_lib_$ac_lib_var=yes"
11271 else
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 rm -rf conftest*
11275 eval "ac_cv_lib_$ac_lib_var=no"
11277 rm -f conftest*
11278 LIBS="$ac_save_LIBS"
11281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11282 echo "$ac_t""yes" 1>&6
11283 cat >> confdefs.h <<\EOF
11284 #define HAVE_LIBPAM 1
11287 else
11288 echo "$ac_t""no" 1>&6
11292 #################################################
11293 # check for pam_smbpass support
11294 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11295 echo "configure:11296: checking whether to use pam_smbpass" >&5
11296 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11297 if test "${with_pam_smbpass+set}" = set; then
11298 withval="$with_pam_smbpass"
11299 case "$withval" in
11300 yes)
11301 echo "$ac_t""yes" 1>&6
11303 # Conditions under which pam_smbpass should not be built.
11305 if test x$PICFLAG = x; then
11306 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11307 PAM_MOD=""
11308 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11309 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11310 PAM_MOD=""
11311 else
11312 cat >> confdefs.h <<\EOF
11313 #define WITH_PAM_SMBPASS 1
11316 PAM_MOD="bin/pam_smbpass.so"
11320 echo "$ac_t""no" 1>&6
11322 esac
11323 else
11324 echo "$ac_t""no" 1>&6
11330 ###############################################
11331 # test for where we get crypt() from, but only
11332 # if not using PAM
11333 if test $with_pam_for_crypt = no; then
11334 for ac_func in crypt
11336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11337 echo "configure:11338: checking for $ac_func" >&5
11338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11340 else
11341 cat > conftest.$ac_ext <<EOF
11342 #line 11343 "configure"
11343 #include "confdefs.h"
11344 /* System header to define __stub macros and hopefully few prototypes,
11345 which can conflict with char $ac_func(); below. */
11346 #include <assert.h>
11347 /* Override any gcc2 internal prototype to avoid an error. */
11348 /* We use char because int might match the return type of a gcc2
11349 builtin and then its argument prototype would still apply. */
11350 char $ac_func();
11352 int main() {
11354 /* The GNU C library defines this for functions which it implements
11355 to always fail with ENOSYS. Some functions are actually named
11356 something starting with __ and the normal name is an alias. */
11357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11358 choke me
11359 #else
11360 $ac_func();
11361 #endif
11363 ; return 0; }
11365 if { (eval echo configure:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11366 rm -rf conftest*
11367 eval "ac_cv_func_$ac_func=yes"
11368 else
11369 echo "configure: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 rm -rf conftest*
11372 eval "ac_cv_func_$ac_func=no"
11374 rm -f conftest*
11377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11378 echo "$ac_t""yes" 1>&6
11379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11380 cat >> confdefs.h <<EOF
11381 #define $ac_tr_func 1
11384 else
11385 echo "$ac_t""no" 1>&6
11387 done
11389 if test x"$ac_cv_func_crypt" = x"no"; then
11390 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11391 echo "configure:11392: checking for crypt in -lcrypt" >&5
11392 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11394 echo $ac_n "(cached) $ac_c" 1>&6
11395 else
11396 ac_save_LIBS="$LIBS"
11397 LIBS="-lcrypt $LIBS"
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11401 /* Override any gcc2 internal prototype to avoid an error. */
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11404 char crypt();
11406 int main() {
11407 crypt()
11408 ; return 0; }
11410 if { (eval echo configure:11411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11411 rm -rf conftest*
11412 eval "ac_cv_lib_$ac_lib_var=yes"
11413 else
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 rm -rf conftest*
11417 eval "ac_cv_lib_$ac_lib_var=no"
11419 rm -f conftest*
11420 LIBS="$ac_save_LIBS"
11423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11424 echo "$ac_t""yes" 1>&6
11425 LIBS="$LIBS -lcrypt";
11426 cat >> confdefs.h <<\EOF
11427 #define HAVE_CRYPT 1
11430 else
11431 echo "$ac_t""no" 1>&6
11438 ## moved after the check for -lcrypt in order to
11439 ## ensure that the necessary libraries are included
11440 ## check checking for truncated salt. Wrapped by the
11441 ## $with_pam_for_crypt variable as above --jerry
11443 if test $with_pam_for_crypt = no; then
11444 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11445 echo "configure:11446: checking for a crypt that needs truncated salt" >&5
11446 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
11448 else
11450 if test "$cross_compiling" = yes; then
11451 samba_cv_HAVE_TRUNCATED_SALT=cross
11452 else
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 #include "${srcdir-.}/tests/crypttest.c"
11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11459 then
11460 samba_cv_HAVE_TRUNCATED_SALT=no
11461 else
11462 echo "configure: failed program was:" >&5
11463 cat conftest.$ac_ext >&5
11464 rm -fr conftest*
11465 samba_cv_HAVE_TRUNCATED_SALT=yes
11467 rm -fr conftest*
11472 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11473 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11474 cat >> confdefs.h <<\EOF
11475 #define HAVE_TRUNCATED_SALT 1
11482 ########################################################################################
11484 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11486 ########################################################################################
11488 ## set the with_smbpasswd_sam as the default
11489 with_smbpasswd_sam=yes
11493 #################################################
11494 # check for a TDB password database
11495 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11496 echo "configure:11497: checking whether to use TDB SAM database" >&5
11497 # Check whether --with-tdbsam or --without-tdbsam was given.
11498 if test "${with_tdbsam+set}" = set; then
11499 withval="$with_tdbsam"
11500 case "$withval" in
11501 yes)
11502 echo "$ac_t""yes" 1>&6
11503 cat >> confdefs.h <<\EOF
11504 #define WITH_TDB_SAM 1
11507 with_smbpasswd_sam=no
11510 echo "$ac_t""no" 1>&6
11512 esac
11513 else
11514 echo "$ac_t""no" 1>&6
11519 #################################################
11520 # check for a LDAP password database
11521 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11522 echo "configure:11523: checking whether to use LDAP SAM database" >&5
11523 # Check whether --with-ldapsam or --without-ldapsam was given.
11524 if test "${with_ldapsam+set}" = set; then
11525 withval="$with_ldapsam"
11526 case "$withval" in
11527 yes)
11528 echo "$ac_t""yes" 1>&6
11529 cat >> confdefs.h <<\EOF
11530 #define WITH_LDAP_SAM 1
11533 LIBS="-lldap -llber -lresolv $LIBS"
11534 with_smbpasswd_sam=no
11537 echo "$ac_t""no" 1>&6
11539 esac
11540 else
11541 echo "$ac_t""no" 1>&6
11546 #################################################
11547 # check for a NISPLUS password database
11548 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11549 echo "configure:11550: checking whether to use NISPLUS SAM database" >&5
11550 # Check whether --with-nisplussam or --without-nisplussam was given.
11551 if test "${with_nisplussam+set}" = set; then
11552 withval="$with_nisplussam"
11553 case "$withval" in
11554 yes)
11555 echo "$ac_t""yes" 1>&6
11556 cat >> confdefs.h <<\EOF
11557 #define WITH_NISPLUS_SAM 1
11560 with_smbpasswd_sam=no
11563 echo "$ac_t""no" 1>&6
11565 esac
11566 else
11567 echo "$ac_t""no" 1>&6
11572 ################################################
11573 # This test should come last because the
11574 # smbpasswd SAM is only used if another format
11575 # has not been defined
11576 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11577 echo "configure:11578: checking whether to use traditional smbpasswd file" >&5
11578 if test $with_smbpasswd_sam = yes; then
11579 echo "$ac_t""yes" 1>&6
11580 cat >> confdefs.h <<\EOF
11581 #define WITH_SMBPASSWD_SAM 1
11584 PDBEDIT=""
11585 else
11586 echo "$ac_t""no" 1>&6
11587 PDBEDIT=bin/pdbedit
11590 ########################################################################################
11592 ## END OF TESTS FOR SAM BACKENDS.
11594 ########################################################################################
11596 #################################################
11597 # check for a NISPLUS_HOME support
11598 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11599 echo "configure:11600: checking whether to use NISPLUS_HOME" >&5
11600 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11601 if test "${with_nisplus_home+set}" = set; then
11602 withval="$with_nisplus_home"
11603 case "$withval" in
11604 yes)
11605 echo "$ac_t""yes" 1>&6
11606 cat >> confdefs.h <<\EOF
11607 #define WITH_NISPLUS_HOME 1
11612 echo "$ac_t""no" 1>&6
11614 esac
11615 else
11616 echo "$ac_t""no" 1>&6
11621 #################################################
11622 # check for the secure socket layer
11623 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11624 echo "configure:11625: checking whether to use SSL" >&5
11625 # Check whether --with-ssl or --without-ssl was given.
11626 if test "${with_ssl+set}" = set; then
11627 withval="$with_ssl"
11628 case "$withval" in
11629 yes)
11630 echo "$ac_t""yes" 1>&6
11631 cat >> confdefs.h <<\EOF
11632 #define WITH_SSL 1
11635 withval="/usr/local/ssl" # default
11637 if test "${with_sslinc+set}" = set; then
11639 withval="$with_sslinc"
11640 case "$withval" in
11641 yes|no)
11642 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11643 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11646 CFLAGS="-I${withval} $CFLAGS"
11648 esac
11650 else
11652 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11656 if test "${with_ssllib+set}" = set; then
11658 withval="$with_ssllib"
11659 case "$withval" in
11660 yes|no)
11661 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11662 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11665 LDFLAGS="-L${withval}/lib $LDFLAGS"
11667 esac
11669 else
11671 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11675 LIBS="-lssl -lcrypto $LIBS"
11677 # if test ! -d ${withval}; then
11678 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11679 # exit 1
11680 # fi
11682 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11686 echo "$ac_t""no" 1>&6
11688 esac
11689 else
11690 echo "$ac_t""no" 1>&6
11695 #################################################
11696 # check for syslog logging
11697 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11698 echo "configure:11699: checking whether to use syslog logging" >&5
11699 # Check whether --with-syslog or --without-syslog was given.
11700 if test "${with_syslog+set}" = set; then
11701 withval="$with_syslog"
11702 case "$withval" in
11703 yes)
11704 echo "$ac_t""yes" 1>&6
11705 cat >> confdefs.h <<\EOF
11706 #define WITH_SYSLOG 1
11711 echo "$ac_t""no" 1>&6
11713 esac
11714 else
11715 echo "$ac_t""no" 1>&6
11720 #################################################
11721 # check for a shared memory profiling support
11722 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11723 echo "configure:11724: checking whether to use profiling" >&5
11724 # Check whether --with-profiling-data or --without-profiling-data was given.
11725 if test "${with_profiling_data+set}" = set; then
11726 withval="$with_profiling_data"
11727 case "$withval" in
11728 yes)
11729 echo "$ac_t""yes" 1>&6
11730 cat >> confdefs.h <<\EOF
11731 #define WITH_PROFILE 1
11736 echo "$ac_t""no" 1>&6
11738 esac
11739 else
11740 echo "$ac_t""no" 1>&6
11746 #################################################
11747 # check for experimental disk-quotas support
11748 QUOTAOBJS=smbd/noquotas.o
11750 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11751 echo "configure:11752: checking whether to support disk-quotas" >&5
11752 # Check whether --with-quotas or --without-quotas was given.
11753 if test "${with_quotas+set}" = set; then
11754 withval="$with_quotas"
11755 case "$withval" in
11756 yes)
11757 echo "$ac_t""yes" 1>&6
11758 QUOTAOBJS=smbd/quotas.o
11759 case "$host_os" in
11760 *linux*)
11761 # Check for kernel 2.4.x quota braindamage...
11762 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11763 echo "configure:11764: checking for linux 2.4.x quota braindamage.." >&5
11764 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11765 echo $ac_n "(cached) $ac_c" 1>&6
11766 else
11768 cat > conftest.$ac_ext <<EOF
11769 #line 11770 "configure"
11770 #include "confdefs.h"
11771 #include <stdio.h>
11772 #include <sys/types.h>
11773 #include <asm/types.h>
11774 #include <linux/quota.h>
11775 #include <mntent.h>
11776 #include <linux/unistd.h>
11777 int main() {
11778 struct mem_dqblk D;
11779 ; return 0; }
11781 if { (eval echo configure:11782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11782 rm -rf conftest*
11783 samba_cv_linux_2_4_quota_braindamage=yes
11784 else
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 rm -rf conftest*
11788 samba_cv_linux_2_4_quota_braindamage=no
11790 rm -f conftest*
11793 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11794 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
11795 cat >> confdefs.h <<\EOF
11796 #define LINUX_QUOTAS_2 1
11799 else
11800 cat >> confdefs.h <<\EOF
11801 #define LINUX_QUOTAS_1 1
11808 esac
11811 echo "$ac_t""no" 1>&6
11813 esac
11814 else
11815 echo "$ac_t""no" 1>&6
11821 #################################################
11822 # check for experimental utmp accounting
11824 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11825 echo "configure:11826: checking whether to support utmp accounting" >&5
11826 # Check whether --with-utmp or --without-utmp was given.
11827 if test "${with_utmp+set}" = set; then
11828 withval="$with_utmp"
11829 case "$withval" in
11830 yes)
11831 echo "$ac_t""yes" 1>&6
11832 cat >> confdefs.h <<\EOF
11833 #define WITH_UTMP 1
11838 echo "$ac_t""no" 1>&6
11840 esac
11841 else
11842 echo "$ac_t""no" 1>&6
11847 #################################################
11848 # check for MS Dfs support
11850 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11851 echo "configure:11852: checking whether to support Microsoft Dfs" >&5
11852 # Check whether --with-msdfs or --without-msdfs was given.
11853 if test "${with_msdfs+set}" = set; then
11854 withval="$with_msdfs"
11855 case "$withval" in
11856 yes)
11857 echo "$ac_t""yes" 1>&6
11858 cat >> confdefs.h <<\EOF
11859 #define WITH_MSDFS 1
11864 echo "$ac_t""no" 1>&6
11866 esac
11867 else
11868 echo "$ac_t""no" 1>&6
11873 #################################################
11874 # check for Samba VFS support
11876 echo $ac_n "checking whether to support the experimental Samba vfs""... $ac_c" 1>&6
11877 echo "configure:11878: checking whether to support the experimental Samba vfs" >&5
11878 # Check whether --with-vfs or --without-vfs was given.
11879 if test "${with_vfs+set}" = set; then
11880 withval="$with_vfs"
11881 case "$withval" in
11882 yes)
11883 echo "$ac_t""yes" 1>&6
11884 cat >> confdefs.h <<\EOF
11885 #define WITH_VFS 1
11890 echo "$ac_t""no" 1>&6
11892 esac
11893 else
11894 echo "$ac_t""no" 1>&6
11900 #################################################
11901 # should we build libsmbclient?
11903 LIBSMBCLIENT_SHARED=
11904 LIBSMBCLIENT=
11905 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
11906 echo "configure:11907: checking whether to build the libsmbclient shared library" >&5
11907 # Check whether --with-libsmbclient or --without-libsmbclient was given.
11908 if test "${with_libsmbclient+set}" = set; then
11909 withval="$with_libsmbclient"
11910 case "$withval" in
11911 yes)
11912 if test $BLDSHARED = true; then
11913 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
11914 LIBSMBCLIENT=libsmbclient
11915 echo "$ac_t""yes" 1>&6
11916 else
11917 echo "$ac_t""no shared library support" 1>&6
11921 echo "$ac_t""no" 1>&6
11923 esac
11924 else
11925 echo "$ac_t""no" 1>&6
11930 #################################################
11931 # these tests are taken from the GNU fileutils package
11932 echo "checking how to get filesystem space usage" 1>&6
11933 echo "configure:11934: checking how to get filesystem space usage" >&5
11934 space=no
11936 # Test for statvfs64.
11937 if test $space = no; then
11938 # SVR4
11939 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11940 echo "configure:11941: checking statvfs64 function (SVR4)" >&5
11941 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11942 echo $ac_n "(cached) $ac_c" 1>&6
11943 else
11944 if test "$cross_compiling" = yes; then
11945 fu_cv_sys_stat_statvfs64=cross
11946 else
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11951 #if defined(HAVE_UNISTD_H)
11952 #include <unistd.h>
11953 #endif
11954 #include <sys/types.h>
11955 #include <sys/statvfs.h>
11956 main ()
11958 struct statvfs64 fsd;
11959 exit (statvfs64 (".", &fsd));
11962 if { (eval echo configure:11963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11963 then
11964 fu_cv_sys_stat_statvfs64=yes
11965 else
11966 echo "configure: failed program was:" >&5
11967 cat conftest.$ac_ext >&5
11968 rm -fr conftest*
11969 fu_cv_sys_stat_statvfs64=no
11971 rm -fr conftest*
11976 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11977 if test $fu_cv_sys_stat_statvfs64 = yes; then
11978 space=yes
11979 cat >> confdefs.h <<\EOF
11980 #define STAT_STATVFS64 1
11986 # Perform only the link test since it seems there are no variants of the
11987 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11988 # because that got a false positive on SCO OSR5. Adding the declaration
11989 # of a `struct statvfs' causes this test to fail (as it should) on such
11990 # systems. That system is reported to work fine with STAT_STATFS4 which
11991 # is what it gets when this test fails.
11992 if test $space = no; then
11993 # SVR4
11994 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11995 echo "configure:11996: checking statvfs function (SVR4)" >&5
11996 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11998 else
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 #include <sys/types.h>
12003 #include <sys/statvfs.h>
12004 int main() {
12005 struct statvfs fsd; statvfs (0, &fsd);
12006 ; return 0; }
12008 if { (eval echo configure:12009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12009 rm -rf conftest*
12010 fu_cv_sys_stat_statvfs=yes
12011 else
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 rm -rf conftest*
12015 fu_cv_sys_stat_statvfs=no
12017 rm -f conftest*
12020 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12021 if test $fu_cv_sys_stat_statvfs = yes; then
12022 space=yes
12023 cat >> confdefs.h <<\EOF
12024 #define STAT_STATVFS 1
12030 if test $space = no; then
12031 # DEC Alpha running OSF/1
12032 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12033 echo "configure:12034: checking for 3-argument statfs function (DEC OSF/1)" >&5
12034 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12035 echo $ac_n "(cached) $ac_c" 1>&6
12036 else
12037 if test "$cross_compiling" = yes; then
12038 fu_cv_sys_stat_statfs3_osf1=no
12039 else
12040 cat > conftest.$ac_ext <<EOF
12041 #line 12042 "configure"
12042 #include "confdefs.h"
12044 #include <sys/param.h>
12045 #include <sys/types.h>
12046 #include <sys/mount.h>
12047 main ()
12049 struct statfs fsd;
12050 fsd.f_fsize = 0;
12051 exit (statfs (".", &fsd, sizeof (struct statfs)));
12054 if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12055 then
12056 fu_cv_sys_stat_statfs3_osf1=yes
12057 else
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12060 rm -fr conftest*
12061 fu_cv_sys_stat_statfs3_osf1=no
12063 rm -fr conftest*
12068 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12069 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12070 space=yes
12071 cat >> confdefs.h <<\EOF
12072 #define STAT_STATFS3_OSF1 1
12078 if test $space = no; then
12079 # AIX
12080 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12081 echo "configure:12082: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12082 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12083 echo $ac_n "(cached) $ac_c" 1>&6
12084 else
12085 if test "$cross_compiling" = yes; then
12086 fu_cv_sys_stat_statfs2_bsize=no
12087 else
12088 cat > conftest.$ac_ext <<EOF
12089 #line 12090 "configure"
12090 #include "confdefs.h"
12092 #ifdef HAVE_SYS_PARAM_H
12093 #include <sys/param.h>
12094 #endif
12095 #ifdef HAVE_SYS_MOUNT_H
12096 #include <sys/mount.h>
12097 #endif
12098 #ifdef HAVE_SYS_VFS_H
12099 #include <sys/vfs.h>
12100 #endif
12101 main ()
12103 struct statfs fsd;
12104 fsd.f_bsize = 0;
12105 exit (statfs (".", &fsd));
12108 if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12109 then
12110 fu_cv_sys_stat_statfs2_bsize=yes
12111 else
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12114 rm -fr conftest*
12115 fu_cv_sys_stat_statfs2_bsize=no
12117 rm -fr conftest*
12122 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12123 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12124 space=yes
12125 cat >> confdefs.h <<\EOF
12126 #define STAT_STATFS2_BSIZE 1
12132 if test $space = no; then
12133 # SVR3
12134 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12135 echo "configure:12136: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12136 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12137 echo $ac_n "(cached) $ac_c" 1>&6
12138 else
12139 if test "$cross_compiling" = yes; then
12140 fu_cv_sys_stat_statfs4=no
12141 else
12142 cat > conftest.$ac_ext <<EOF
12143 #line 12144 "configure"
12144 #include "confdefs.h"
12145 #include <sys/types.h>
12146 #include <sys/statfs.h>
12147 main ()
12149 struct statfs fsd;
12150 exit (statfs (".", &fsd, sizeof fsd, 0));
12153 if { (eval echo configure:12154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12154 then
12155 fu_cv_sys_stat_statfs4=yes
12156 else
12157 echo "configure: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12159 rm -fr conftest*
12160 fu_cv_sys_stat_statfs4=no
12162 rm -fr conftest*
12167 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12168 if test $fu_cv_sys_stat_statfs4 = yes; then
12169 space=yes
12170 cat >> confdefs.h <<\EOF
12171 #define STAT_STATFS4 1
12177 if test $space = no; then
12178 # 4.4BSD and NetBSD
12179 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12180 echo "configure:12181: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12181 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12182 echo $ac_n "(cached) $ac_c" 1>&6
12183 else
12184 if test "$cross_compiling" = yes; then
12185 fu_cv_sys_stat_statfs2_fsize=no
12186 else
12187 cat > conftest.$ac_ext <<EOF
12188 #line 12189 "configure"
12189 #include "confdefs.h"
12190 #include <sys/types.h>
12191 #ifdef HAVE_SYS_PARAM_H
12192 #include <sys/param.h>
12193 #endif
12194 #ifdef HAVE_SYS_MOUNT_H
12195 #include <sys/mount.h>
12196 #endif
12197 main ()
12199 struct statfs fsd;
12200 fsd.f_fsize = 0;
12201 exit (statfs (".", &fsd));
12204 if { (eval echo configure:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12205 then
12206 fu_cv_sys_stat_statfs2_fsize=yes
12207 else
12208 echo "configure: failed program was:" >&5
12209 cat conftest.$ac_ext >&5
12210 rm -fr conftest*
12211 fu_cv_sys_stat_statfs2_fsize=no
12213 rm -fr conftest*
12218 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12219 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12220 space=yes
12221 cat >> confdefs.h <<\EOF
12222 #define STAT_STATFS2_FSIZE 1
12228 if test $space = no; then
12229 # Ultrix
12230 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12231 echo "configure:12232: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12232 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12233 echo $ac_n "(cached) $ac_c" 1>&6
12234 else
12235 if test "$cross_compiling" = yes; then
12236 fu_cv_sys_stat_fs_data=no
12237 else
12238 cat > conftest.$ac_ext <<EOF
12239 #line 12240 "configure"
12240 #include "confdefs.h"
12241 #include <sys/types.h>
12242 #ifdef HAVE_SYS_PARAM_H
12243 #include <sys/param.h>
12244 #endif
12245 #ifdef HAVE_SYS_MOUNT_H
12246 #include <sys/mount.h>
12247 #endif
12248 #ifdef HAVE_SYS_FS_TYPES_H
12249 #include <sys/fs_types.h>
12250 #endif
12251 main ()
12253 struct fs_data fsd;
12254 /* Ultrix's statfs returns 1 for success,
12255 0 for not mounted, -1 for failure. */
12256 exit (statfs (".", &fsd) != 1);
12259 if { (eval echo configure:12260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12260 then
12261 fu_cv_sys_stat_fs_data=yes
12262 else
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -fr conftest*
12266 fu_cv_sys_stat_fs_data=no
12268 rm -fr conftest*
12273 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12274 if test $fu_cv_sys_stat_fs_data = yes; then
12275 space=yes
12276 cat >> confdefs.h <<\EOF
12277 #define STAT_STATFS2_FS_DATA 1
12284 # As a gating factor for large file support, in order to
12285 # use <4GB files we must have the following minimal support
12286 # available.
12287 # long long, and a 64 bit off_t or off64_t.
12288 # If we don't have all of these then disable large
12289 # file support.
12291 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12292 echo "configure:12293: checking checking if large file support can be enabled" >&5
12293 cat > conftest.$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12297 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12298 #include <sys/types.h>
12299 #else
12300 __COMPILE_ERROR_
12301 #endif
12303 int main() {
12304 int i
12305 ; return 0; }
12307 if { (eval echo configure:12308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12308 rm -rf conftest*
12309 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12310 else
12311 echo "configure: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12313 rm -rf conftest*
12314 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12316 rm -f conftest*
12317 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12318 echo "$ac_t""yes" 1>&6
12319 cat >> confdefs.h <<\EOF
12320 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12323 else
12324 echo "$ac_t""no" 1>&6
12327 # Check whether --with-spinlocks or --without-spinlocks was given.
12328 if test "${with_spinlocks+set}" = set; then
12329 withval="$with_spinlocks"
12333 if test "x$with_spinlocks" = "xyes"; then
12334 cat >> confdefs.h <<\EOF
12335 #define USE_SPINLOCKS 1
12339 case "$host_cpu" in
12340 sparc)
12341 cat >> confdefs.h <<\EOF
12342 #define SPARC_SPINLOCKS 1
12347 i386|i486|i586|i686)
12348 cat >> confdefs.h <<\EOF
12349 #define INTEL_SPINLOCKS 1
12354 mips)
12355 cat >> confdefs.h <<\EOF
12356 #define MIPS_SPINLOCKS 1
12361 powerpc)
12362 cat >> confdefs.h <<\EOF
12363 #define POWERPC_SPINLOCKS 1
12367 esac
12370 #################################################
12371 # check for ACL support
12373 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12374 echo "configure:12375: checking whether to support ACLs" >&5
12375 # Check whether --with-acl-support or --without-acl-support was given.
12376 if test "${with_acl_support+set}" = set; then
12377 withval="$with_acl_support"
12378 case "$withval" in
12379 yes)
12381 case "$host_os" in
12382 *sysv5*)
12383 echo "$ac_t""Using UnixWare ACLs" 1>&6
12384 cat >> confdefs.h <<\EOF
12385 #define HAVE_UNIXWARE_ACLS 1
12389 *solaris*)
12390 echo "$ac_t""Using solaris ACLs" 1>&6
12391 cat >> confdefs.h <<\EOF
12392 #define HAVE_SOLARIS_ACLS 1
12396 *irix*)
12397 echo "$ac_t""Using IRIX ACLs" 1>&6
12398 cat >> confdefs.h <<\EOF
12399 #define HAVE_IRIX_ACLS 1
12403 *aix*)
12404 echo "$ac_t""Using AIX ACLs" 1>&6
12405 cat >> confdefs.h <<\EOF
12406 #define HAVE_AIX_ACLS 1
12410 *osf*)
12411 echo "$ac_t""Using Tru64 ACLs" 1>&6
12412 cat >> confdefs.h <<\EOF
12413 #define HAVE_TRU64_ACLS 1
12416 LIBS="$LIBS -lpacl"
12419 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12420 echo "configure:12421: checking for acl_get_file in -lacl" >&5
12421 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12424 else
12425 ac_save_LIBS="$LIBS"
12426 LIBS="-lacl $LIBS"
12427 cat > conftest.$ac_ext <<EOF
12428 #line 12429 "configure"
12429 #include "confdefs.h"
12430 /* Override any gcc2 internal prototype to avoid an error. */
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433 char acl_get_file();
12435 int main() {
12436 acl_get_file()
12437 ; return 0; }
12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12440 rm -rf conftest*
12441 eval "ac_cv_lib_$ac_lib_var=yes"
12442 else
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12445 rm -rf conftest*
12446 eval "ac_cv_lib_$ac_lib_var=no"
12448 rm -f conftest*
12449 LIBS="$ac_save_LIBS"
12452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12453 echo "$ac_t""yes" 1>&6
12454 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12456 cat >> confdefs.h <<EOF
12457 #define $ac_tr_lib 1
12460 LIBS="-lacl $LIBS"
12462 else
12463 echo "$ac_t""no" 1>&6
12466 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12467 echo "configure:12468: checking for ACL support" >&5
12468 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12469 echo $ac_n "(cached) $ac_c" 1>&6
12470 else
12472 cat > conftest.$ac_ext <<EOF
12473 #line 12474 "configure"
12474 #include "confdefs.h"
12475 #include <sys/types.h>
12476 #include <sys/acl.h>
12477 int main() {
12478 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12479 ; return 0; }
12481 if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12482 rm -rf conftest*
12483 samba_cv_HAVE_POSIX_ACLS=yes
12484 else
12485 echo "configure: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12487 rm -rf conftest*
12488 samba_cv_HAVE_POSIX_ACLS=no
12490 rm -f conftest*
12493 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12494 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12495 echo "$ac_t""Using posix ACLs" 1>&6
12496 cat >> confdefs.h <<\EOF
12497 #define HAVE_POSIX_ACLS 1
12500 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12501 echo "configure:12502: checking for acl_get_perm_np" >&5
12502 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12504 else
12506 cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure"
12508 #include "confdefs.h"
12509 #include <sys/types.h>
12510 #include <sys/acl.h>
12511 int main() {
12512 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12513 ; return 0; }
12515 if { (eval echo configure:12516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12516 rm -rf conftest*
12517 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12518 else
12519 echo "configure: failed program was:" >&5
12520 cat conftest.$ac_ext >&5
12521 rm -rf conftest*
12522 samba_cv_HAVE_ACL_GET_PERM_NP=no
12524 rm -f conftest*
12527 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12528 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12529 cat >> confdefs.h <<\EOF
12530 #define HAVE_ACL_GET_PERM_NP 1
12536 esac
12539 echo "$ac_t""no" 1>&6
12540 cat >> confdefs.h <<\EOF
12541 #define HAVE_NO_ACLS 1
12545 esac
12546 else
12547 cat >> confdefs.h <<\EOF
12548 #define HAVE_NO_ACLS 1
12551 echo "$ac_t""no" 1>&6
12556 #################################################
12557 # check for the historical SAMBA installation
12559 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
12560 # Put all binaries under the /usr/local/samba/bin directory.
12561 sbindir="$bindir"
12564 #################################################
12565 # Check whether winbind is supported on this platform. If so we need to
12566 # build and install client programs (WINBIND_TARGETS), sbin programs
12567 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12569 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12570 echo "configure:12571: checking whether to build winbind" >&5
12572 # Initially, the value of $host_os decides whether winbind is supported
12574 case "$host_os" in
12575 *linux*|*solaris*)
12576 HAVE_WINBIND=yes
12579 HAVE_WINBIND=no
12580 winbind_no_reason=", unsupported on $host_os"
12582 esac
12584 # Check the setting of --with-winbindd
12586 # Check whether --with-winbind or --without-winbind was given.
12587 if test "${with_winbind+set}" = set; then
12588 withval="$with_winbind"
12590 case "$withval" in
12591 yes)
12592 HAVE_WINBIND=yes
12595 HAVE_WINBIND=no
12596 winbind_reason=""
12598 esac
12602 # We need unix domain sockets for winbind
12604 if test x"$HAVE_WINBIND" = x"yes"; then
12605 if test x"$samba_cv_unixsocket" = x"no"; then
12606 winbind_no_reason=", no unix domain socket support on $host_os"
12607 HAVE_WINBIND=no
12611 # Display test results
12613 if test x"$HAVE_WINBIND" = x"yes"; then
12615 echo "$ac_t""yes" 1>&6
12617 WINBIND_TARGETS="bin/wbinfo"
12618 WINBIND_STARGETS="bin/winbindd"
12619 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
12621 case "$with_pam" in
12622 yes)
12623 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
12625 esac
12626 else
12627 echo "$ac_t""no$winbind_no_reason" 1>&6
12629 WINBIND_TARGETS=""
12630 WINBIND_STARGETS=""
12631 WINBIND_LTARGETS=""
12632 WINBIND_PAM_TARGETS=""
12635 # Substitution time!
12642 #################################################
12643 # final configure stuff
12644 echo "checking configure summary"
12645 if test "$cross_compiling" = yes; then
12647 else
12648 cat > conftest.$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12651 #include "${srcdir-.}/tests/summary.c"
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12654 then
12655 echo "configure OK";
12656 else
12657 echo "configure: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12659 rm -fr conftest*
12660 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12662 rm -fr conftest*
12666 builddir=`pwd`
12669 trap '' 1 2 15
12670 cat > confcache <<\EOF
12671 # This file is a shell script that caches the results of configure
12672 # tests run on this system so they can be shared between configure
12673 # scripts and configure runs. It is not useful on other systems.
12674 # If it contains results you don't want to keep, you may remove or edit it.
12676 # By default, configure uses ./config.cache as the cache file,
12677 # creating it if it does not exist already. You can give configure
12678 # the --cache-file=FILE option to use a different cache file; that is
12679 # what configure does when it calls configure scripts in
12680 # subdirectories, so they share the cache.
12681 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12682 # config.status only pays attention to the cache file if you give it the
12683 # --recheck option to rerun configure.
12686 # The following way of writing the cache mishandles newlines in values,
12687 # but we know of no workaround that is simple, portable, and efficient.
12688 # So, don't put newlines in cache variables' values.
12689 # Ultrix sh set writes to stderr and can't be redirected directly,
12690 # and sets the high bit in the cache file unless we assign to the vars.
12691 (set) 2>&1 |
12692 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12693 *ac_space=\ *)
12694 # `set' does not quote correctly, so add quotes (double-quote substitution
12695 # turns \\\\ into \\, and sed turns \\ into \).
12696 sed -n \
12697 -e "s/'/'\\\\''/g" \
12698 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12701 # `set' quotes correctly as required by POSIX, so do not add quotes.
12702 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12704 esac >> confcache
12705 if cmp -s $cache_file confcache; then
12707 else
12708 if test -w $cache_file; then
12709 echo "updating cache $cache_file"
12710 cat confcache > $cache_file
12711 else
12712 echo "not updating unwritable cache $cache_file"
12715 rm -f confcache
12717 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12720 # Let make expand exec_prefix.
12721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12723 # Any assignment to VPATH causes Sun make to only execute
12724 # the first set of double-colon rules, so remove it if not needed.
12725 # If there is a colon in the path, we need to keep it.
12726 if test "x$srcdir" = x.; then
12727 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12730 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12732 DEFS=-DHAVE_CONFIG_H
12734 # Without the "./", some shells look in PATH for config.status.
12735 : ${CONFIG_STATUS=./config.status}
12737 echo creating $CONFIG_STATUS
12738 rm -f $CONFIG_STATUS
12739 cat > $CONFIG_STATUS <<EOF
12740 #! /bin/sh
12741 # Generated automatically by configure.
12742 # Run this file to recreate the current configuration.
12743 # This directory was configured as follows,
12744 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12746 # $0 $ac_configure_args
12748 # Compiler output produced by configure, useful for debugging
12749 # configure, is in ./config.log if it exists.
12751 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12752 for ac_option
12754 case "\$ac_option" in
12755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12756 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12757 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12758 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12759 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12760 exit 0 ;;
12761 -help | --help | --hel | --he | --h)
12762 echo "\$ac_cs_usage"; exit 0 ;;
12763 *) echo "\$ac_cs_usage"; exit 1 ;;
12764 esac
12765 done
12767 ac_given_srcdir=$srcdir
12768 ac_given_INSTALL="$INSTALL"
12770 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12772 cat >> $CONFIG_STATUS <<EOF
12774 # Protect against being on the right side of a sed subst in config.status.
12775 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12776 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12777 $ac_vpsub
12778 $extrasub
12779 s%@SHELL@%$SHELL%g
12780 s%@CFLAGS@%$CFLAGS%g
12781 s%@CPPFLAGS@%$CPPFLAGS%g
12782 s%@CXXFLAGS@%$CXXFLAGS%g
12783 s%@FFLAGS@%$FFLAGS%g
12784 s%@DEFS@%$DEFS%g
12785 s%@LDFLAGS@%$LDFLAGS%g
12786 s%@LIBS@%$LIBS%g
12787 s%@exec_prefix@%$exec_prefix%g
12788 s%@prefix@%$prefix%g
12789 s%@program_transform_name@%$program_transform_name%g
12790 s%@bindir@%$bindir%g
12791 s%@sbindir@%$sbindir%g
12792 s%@libexecdir@%$libexecdir%g
12793 s%@datadir@%$datadir%g
12794 s%@sysconfdir@%$sysconfdir%g
12795 s%@sharedstatedir@%$sharedstatedir%g
12796 s%@localstatedir@%$localstatedir%g
12797 s%@libdir@%$libdir%g
12798 s%@includedir@%$includedir%g
12799 s%@oldincludedir@%$oldincludedir%g
12800 s%@infodir@%$infodir%g
12801 s%@mandir@%$mandir%g
12802 s%@codepagedir@%$codepagedir%g
12803 s%@configdir@%$configdir%g
12804 s%@lockdir@%$lockdir%g
12805 s%@logfilebase@%$logfilebase%g
12806 s%@privatedir@%$privatedir%g
12807 s%@swatdir@%$swatdir%g
12808 s%@RUNPROG@%$RUNPROG%g
12809 s%@MPROGS@%$MPROGS%g
12810 s%@LDSHFLAGS@%$LDSHFLAGS%g
12811 s%@SHLD@%$SHLD%g
12812 s%@HOST_OS@%$HOST_OS%g
12813 s%@PAM_MOD@%$PAM_MOD%g
12814 s%@PDBEDIT@%$PDBEDIT%g
12815 s%@WRAP@%$WRAP%g
12816 s%@WRAP32@%$WRAP32%g
12817 s%@PICFLAG@%$PICFLAG%g
12818 s%@PICSUFFIX@%$PICSUFFIX%g
12819 s%@SHLIBEXT@%$SHLIBEXT%g
12820 s%@BLDSHARED@%$BLDSHARED%g
12821 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
12822 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
12823 s%@CC@%$CC%g
12824 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12825 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12826 s%@INSTALL_DATA@%$INSTALL_DATA%g
12827 s%@AWK@%$AWK%g
12828 s%@BROKEN_CC@%$BROKEN_CC%g
12829 s%@host@%$host%g
12830 s%@host_alias@%$host_alias%g
12831 s%@host_cpu@%$host_cpu%g
12832 s%@host_vendor@%$host_vendor%g
12833 s%@host_os@%$host_os%g
12834 s%@target@%$target%g
12835 s%@target_alias@%$target_alias%g
12836 s%@target_cpu@%$target_cpu%g
12837 s%@target_vendor@%$target_vendor%g
12838 s%@target_os@%$target_os%g
12839 s%@build@%$build%g
12840 s%@build_alias@%$build_alias%g
12841 s%@build_cpu@%$build_cpu%g
12842 s%@build_vendor@%$build_vendor%g
12843 s%@build_os@%$build_os%g
12844 s%@CPP@%$CPP%g
12845 s%@LIBOBJS@%$LIBOBJS%g
12846 s%@TERMLIBS@%$TERMLIBS%g
12847 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12848 s%@ROFF@%$ROFF%g
12849 s%@QUOTAOBJS@%$QUOTAOBJS%g
12850 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12851 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12852 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12853 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
12854 s%@builddir@%$builddir%g
12856 CEOF
12859 cat >> $CONFIG_STATUS <<\EOF
12861 # Split the substitutions into bite-sized pieces for seds with
12862 # small command number limits, like on Digital OSF/1 and HP-UX.
12863 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12864 ac_file=1 # Number of current file.
12865 ac_beg=1 # First line for current file.
12866 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12867 ac_more_lines=:
12868 ac_sed_cmds=""
12869 while $ac_more_lines; do
12870 if test $ac_beg -gt 1; then
12871 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12872 else
12873 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12875 if test ! -s conftest.s$ac_file; then
12876 ac_more_lines=false
12877 rm -f conftest.s$ac_file
12878 else
12879 if test -z "$ac_sed_cmds"; then
12880 ac_sed_cmds="sed -f conftest.s$ac_file"
12881 else
12882 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12884 ac_file=`expr $ac_file + 1`
12885 ac_beg=$ac_end
12886 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12888 done
12889 if test -z "$ac_sed_cmds"; then
12890 ac_sed_cmds=cat
12894 cat >> $CONFIG_STATUS <<EOF
12896 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12898 cat >> $CONFIG_STATUS <<\EOF
12899 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12901 case "$ac_file" in
12902 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12903 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12904 *) ac_file_in="${ac_file}.in" ;;
12905 esac
12907 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12909 # Remove last slash and all that follows it. Not all systems have dirname.
12910 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12911 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12912 # The file is in a subdirectory.
12913 test ! -d "$ac_dir" && mkdir "$ac_dir"
12914 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12915 # A "../" for each directory in $ac_dir_suffix.
12916 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12917 else
12918 ac_dir_suffix= ac_dots=
12921 case "$ac_given_srcdir" in
12922 .) srcdir=.
12923 if test -z "$ac_dots"; then top_srcdir=.
12924 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12925 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12926 *) # Relative path.
12927 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12928 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12929 esac
12931 case "$ac_given_INSTALL" in
12932 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12933 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12934 esac
12936 echo creating "$ac_file"
12937 rm -f "$ac_file"
12938 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12939 case "$ac_file" in
12940 *Makefile*) ac_comsub="1i\\
12941 # $configure_input" ;;
12942 *) ac_comsub= ;;
12943 esac
12945 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12946 sed -e "$ac_comsub
12947 s%@configure_input@%$configure_input%g
12948 s%@srcdir@%$srcdir%g
12949 s%@top_srcdir@%$top_srcdir%g
12950 s%@INSTALL@%$INSTALL%g
12951 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12952 fi; done
12953 rm -f conftest.s*
12955 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12956 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12958 # ac_d sets the value in "#define NAME VALUE" lines.
12959 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12960 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12961 ac_dC='\3'
12962 ac_dD='%g'
12963 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12964 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12965 ac_uB='\([ ]\)%\1#\2define\3'
12966 ac_uC=' '
12967 ac_uD='\4%g'
12968 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12969 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12970 ac_eB='$%\1#\2define\3'
12971 ac_eC=' '
12972 ac_eD='%g'
12974 if test "${CONFIG_HEADERS+set}" != set; then
12976 cat >> $CONFIG_STATUS <<EOF
12977 CONFIG_HEADERS="include/config.h"
12979 cat >> $CONFIG_STATUS <<\EOF
12981 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12983 case "$ac_file" in
12984 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12985 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12986 *) ac_file_in="${ac_file}.in" ;;
12987 esac
12989 echo creating $ac_file
12991 rm -f conftest.frag conftest.in conftest.out
12992 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12993 cat $ac_file_inputs > conftest.in
12997 # Transform confdefs.h into a sed script conftest.vals that substitutes
12998 # the proper values into config.h.in to produce config.h. And first:
12999 # Protect against being on the right side of a sed subst in config.status.
13000 # Protect against being in an unquoted here document in config.status.
13001 rm -f conftest.vals
13002 cat > conftest.hdr <<\EOF
13003 s/[\\&%]/\\&/g
13004 s%[\\$`]%\\&%g
13005 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13006 s%ac_d%ac_u%gp
13007 s%ac_u%ac_e%gp
13009 sed -n -f conftest.hdr confdefs.h > conftest.vals
13010 rm -f conftest.hdr
13012 # This sed command replaces #undef with comments. This is necessary, for
13013 # example, in the case of _POSIX_SOURCE, which is predefined and required
13014 # on some systems where configure will not decide to define it.
13015 cat >> conftest.vals <<\EOF
13016 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13019 # Break up conftest.vals because some shells have a limit on
13020 # the size of here documents, and old seds have small limits too.
13022 rm -f conftest.tail
13023 while :
13025 ac_lines=`grep -c . conftest.vals`
13026 # grep -c gives empty output for an empty file on some AIX systems.
13027 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13028 # Write a limited-size here document to conftest.frag.
13029 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13030 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13031 echo 'CEOF
13032 sed -f conftest.frag conftest.in > conftest.out
13033 rm -f conftest.in
13034 mv conftest.out conftest.in
13035 ' >> $CONFIG_STATUS
13036 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13037 rm -f conftest.vals
13038 mv conftest.tail conftest.vals
13039 done
13040 rm -f conftest.vals
13042 cat >> $CONFIG_STATUS <<\EOF
13043 rm -f conftest.frag conftest.h
13044 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13045 cat conftest.in >> conftest.h
13046 rm -f conftest.in
13047 if cmp -s $ac_file conftest.h 2>/dev/null; then
13048 echo "$ac_file is unchanged"
13049 rm -f conftest.h
13050 else
13051 # Remove last slash and all that follows it. Not all systems have dirname.
13052 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13054 # The file is in a subdirectory.
13055 test ! -d "$ac_dir" && mkdir "$ac_dir"
13057 rm -f $ac_file
13058 mv conftest.h $ac_file
13060 fi; done
13063 cat >> $CONFIG_STATUS <<EOF
13066 cat >> $CONFIG_STATUS <<\EOF
13068 exit 0
13070 chmod +x $CONFIG_STATUS
13071 rm -fr confdefs* $ac_clean_files
13072 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1