updates from Albert Chin.
[Samba.git] / source / configure
blob3f9a6bf0946cdd99f0664787b0e0fa0bb6d0c6a3
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 mawk gawk 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 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 echo $ac_n "checking size of int""... $ac_c" 1>&6
2624 echo "configure:2625: checking size of int" >&5
2625 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2627 else
2628 if test "$cross_compiling" = yes; then
2629 ac_cv_sizeof_int=cross
2630 else
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <stdio.h>
2635 main()
2637 FILE *f=fopen("conftestval", "w");
2638 if (!f) exit(1);
2639 fprintf(f, "%d\n", sizeof(int));
2640 exit(0);
2643 if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2644 then
2645 ac_cv_sizeof_int=`cat conftestval`
2646 else
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 rm -fr conftest*
2650 ac_cv_sizeof_int=0
2652 rm -fr conftest*
2656 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2657 cat >> confdefs.h <<EOF
2658 #define SIZEOF_INT $ac_cv_sizeof_int
2662 echo $ac_n "checking size of long""... $ac_c" 1>&6
2663 echo "configure:2664: checking size of long" >&5
2664 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2666 else
2667 if test "$cross_compiling" = yes; then
2668 ac_cv_sizeof_long=cross
2669 else
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2673 #include <stdio.h>
2674 main()
2676 FILE *f=fopen("conftestval", "w");
2677 if (!f) exit(1);
2678 fprintf(f, "%d\n", sizeof(long));
2679 exit(0);
2682 if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2683 then
2684 ac_cv_sizeof_long=`cat conftestval`
2685 else
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -fr conftest*
2689 ac_cv_sizeof_long=0
2691 rm -fr conftest*
2695 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2696 cat >> confdefs.h <<EOF
2697 #define SIZEOF_LONG $ac_cv_sizeof_long
2701 echo $ac_n "checking size of short""... $ac_c" 1>&6
2702 echo "configure:2703: checking size of short" >&5
2703 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2705 else
2706 if test "$cross_compiling" = yes; then
2707 ac_cv_sizeof_short=cross
2708 else
2709 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2712 #include <stdio.h>
2713 main()
2715 FILE *f=fopen("conftestval", "w");
2716 if (!f) exit(1);
2717 fprintf(f, "%d\n", sizeof(short));
2718 exit(0);
2721 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2722 then
2723 ac_cv_sizeof_short=`cat conftestval`
2724 else
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 rm -fr conftest*
2728 ac_cv_sizeof_short=0
2730 rm -fr conftest*
2734 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2735 cat >> confdefs.h <<EOF
2736 #define SIZEOF_SHORT $ac_cv_sizeof_short
2741 echo $ac_n "checking for working const""... $ac_c" 1>&6
2742 echo "configure:2743: checking for working const" >&5
2743 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2745 else
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2750 int main() {
2752 /* Ultrix mips cc rejects this. */
2753 typedef int charset[2]; const charset x;
2754 /* SunOS 4.1.1 cc rejects this. */
2755 char const *const *ccp;
2756 char **p;
2757 /* NEC SVR4.0.2 mips cc rejects this. */
2758 struct point {int x, y;};
2759 static struct point const zero = {0,0};
2760 /* AIX XL C 1.02.0.0 rejects this.
2761 It does not let you subtract one const X* pointer from another in an arm
2762 of an if-expression whose if-part is not a constant expression */
2763 const char *g = "string";
2764 ccp = &g + (g ? g-g : 0);
2765 /* HPUX 7.0 cc rejects these. */
2766 ++ccp;
2767 p = (char**) ccp;
2768 ccp = (char const *const *) p;
2769 { /* SCO 3.2v4 cc rejects this. */
2770 char *t;
2771 char const *s = 0 ? (char *) 0 : (char const *) 0;
2773 *t++ = 0;
2775 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2776 int x[] = {25, 17};
2777 const int *foo = &x[0];
2778 ++foo;
2780 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2781 typedef const int *iptr;
2782 iptr p = 0;
2783 ++p;
2785 { /* AIX XL C 1.02.0.0 rejects this saying
2786 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2787 struct s { int j; const int *ap[3]; };
2788 struct s *b; b->j = 5;
2790 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2791 const int foo = 10;
2794 ; return 0; }
2796 if { (eval echo configure:2797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2797 rm -rf conftest*
2798 ac_cv_c_const=yes
2799 else
2800 echo "configure: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 rm -rf conftest*
2803 ac_cv_c_const=no
2805 rm -f conftest*
2808 echo "$ac_t""$ac_cv_c_const" 1>&6
2809 if test $ac_cv_c_const = no; then
2810 cat >> confdefs.h <<\EOF
2811 #define const
2816 echo $ac_n "checking for inline""... $ac_c" 1>&6
2817 echo "configure:2818: checking for inline" >&5
2818 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2820 else
2821 ac_cv_c_inline=no
2822 for ac_kw in inline __inline__ __inline; do
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2827 int main() {
2828 } $ac_kw foo() {
2829 ; return 0; }
2831 if { (eval echo configure:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 rm -rf conftest*
2833 ac_cv_c_inline=$ac_kw; break
2834 else
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2838 rm -f conftest*
2839 done
2843 echo "$ac_t""$ac_cv_c_inline" 1>&6
2844 case "$ac_cv_c_inline" in
2845 inline | yes) ;;
2846 no) cat >> confdefs.h <<\EOF
2847 #define inline
2850 *) cat >> confdefs.h <<EOF
2851 #define inline $ac_cv_c_inline
2854 esac
2856 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2857 echo "configure:2858: checking whether byte ordering is bigendian" >&5
2858 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2860 else
2861 ac_cv_c_bigendian=unknown
2862 # See if sys/param.h defines the BYTE_ORDER macro.
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2866 #include <sys/types.h>
2867 #include <sys/param.h>
2868 int main() {
2870 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2871 bogus endian macros
2872 #endif
2873 ; return 0; }
2875 if { (eval echo configure:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2876 rm -rf conftest*
2877 # It does; now see whether it defined to BIG_ENDIAN or not.
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 #include <sys/types.h>
2882 #include <sys/param.h>
2883 int main() {
2885 #if BYTE_ORDER != BIG_ENDIAN
2886 not big endian
2887 #endif
2888 ; return 0; }
2890 if { (eval echo configure:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2891 rm -rf conftest*
2892 ac_cv_c_bigendian=yes
2893 else
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 rm -rf conftest*
2897 ac_cv_c_bigendian=no
2899 rm -f conftest*
2900 else
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 rm -f conftest*
2905 if test $ac_cv_c_bigendian = unknown; then
2906 if test "$cross_compiling" = yes; then
2907 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2908 else
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 main () {
2913 /* Are we little or big endian? From Harbison&Steele. */
2914 union
2916 long l;
2917 char c[sizeof (long)];
2918 } u;
2919 u.l = 1;
2920 exit (u.c[sizeof (long) - 1] == 1);
2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2924 then
2925 ac_cv_c_bigendian=no
2926 else
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 rm -fr conftest*
2930 ac_cv_c_bigendian=yes
2932 rm -fr conftest*
2938 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2939 if test $ac_cv_c_bigendian = yes; then
2940 cat >> confdefs.h <<\EOF
2941 #define WORDS_BIGENDIAN 1
2946 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2947 echo "configure:2948: checking whether char is unsigned" >&5
2948 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2950 else
2951 if test "$GCC" = yes; then
2952 # GCC predefines this symbol on systems where it applies.
2953 cat > conftest.$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2956 #ifdef __CHAR_UNSIGNED__
2958 #endif
2961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962 egrep "yes" >/dev/null 2>&1; then
2963 rm -rf conftest*
2964 ac_cv_c_char_unsigned=yes
2965 else
2966 rm -rf conftest*
2967 ac_cv_c_char_unsigned=no
2969 rm -f conftest*
2971 else
2972 if test "$cross_compiling" = yes; then
2973 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2974 else
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2979 #if !defined(__STDC__) || __STDC__ != 1
2980 #define volatile
2981 #endif
2982 main() {
2983 volatile char c = 255; exit(c < 0);
2986 if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2987 then
2988 ac_cv_c_char_unsigned=yes
2989 else
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 rm -fr conftest*
2993 ac_cv_c_char_unsigned=no
2995 rm -fr conftest*
3001 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3002 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3003 cat >> confdefs.h <<\EOF
3004 #define __CHAR_UNSIGNED__ 1
3010 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3011 echo "configure:3012: checking return type of signal handlers" >&5
3012 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3014 else
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 #include <sys/types.h>
3019 #include <signal.h>
3020 #ifdef signal
3021 #undef signal
3022 #endif
3023 #ifdef __cplusplus
3024 extern "C" void (*signal (int, void (*)(int)))(int);
3025 #else
3026 void (*signal ()) ();
3027 #endif
3029 int main() {
3030 int i;
3031 ; return 0; }
3033 if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3034 rm -rf conftest*
3035 ac_cv_type_signal=void
3036 else
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3039 rm -rf conftest*
3040 ac_cv_type_signal=int
3042 rm -f conftest*
3045 echo "$ac_t""$ac_cv_type_signal" 1>&6
3046 cat >> confdefs.h <<EOF
3047 #define RETSIGTYPE $ac_cv_type_signal
3051 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3052 echo "configure:3053: checking for uid_t in sys/types.h" >&5
3053 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3055 else
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 #include <sys/types.h>
3061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3062 egrep "uid_t" >/dev/null 2>&1; then
3063 rm -rf conftest*
3064 ac_cv_type_uid_t=yes
3065 else
3066 rm -rf conftest*
3067 ac_cv_type_uid_t=no
3069 rm -f conftest*
3073 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3074 if test $ac_cv_type_uid_t = no; then
3075 cat >> confdefs.h <<\EOF
3076 #define uid_t int
3079 cat >> confdefs.h <<\EOF
3080 #define gid_t int
3085 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3086 echo "configure:3087: checking for mode_t" >&5
3087 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3089 else
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 #include <sys/types.h>
3094 #if STDC_HEADERS
3095 #include <stdlib.h>
3096 #include <stddef.h>
3097 #endif
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3101 rm -rf conftest*
3102 ac_cv_type_mode_t=yes
3103 else
3104 rm -rf conftest*
3105 ac_cv_type_mode_t=no
3107 rm -f conftest*
3110 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3111 if test $ac_cv_type_mode_t = no; then
3112 cat >> confdefs.h <<\EOF
3113 #define mode_t int
3118 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3119 echo "configure:3120: checking for off_t" >&5
3120 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3122 else
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 #include <sys/types.h>
3127 #if STDC_HEADERS
3128 #include <stdlib.h>
3129 #include <stddef.h>
3130 #endif
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3133 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3134 rm -rf conftest*
3135 ac_cv_type_off_t=yes
3136 else
3137 rm -rf conftest*
3138 ac_cv_type_off_t=no
3140 rm -f conftest*
3143 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3144 if test $ac_cv_type_off_t = no; then
3145 cat >> confdefs.h <<\EOF
3146 #define off_t long
3151 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3152 echo "configure:3153: checking for size_t" >&5
3153 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3155 else
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #include <sys/types.h>
3160 #if STDC_HEADERS
3161 #include <stdlib.h>
3162 #include <stddef.h>
3163 #endif
3165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3166 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3167 rm -rf conftest*
3168 ac_cv_type_size_t=yes
3169 else
3170 rm -rf conftest*
3171 ac_cv_type_size_t=no
3173 rm -f conftest*
3176 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3177 if test $ac_cv_type_size_t = no; then
3178 cat >> confdefs.h <<\EOF
3179 #define size_t unsigned
3184 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3185 echo "configure:3186: checking for pid_t" >&5
3186 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3188 else
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 #include <sys/types.h>
3193 #if STDC_HEADERS
3194 #include <stdlib.h>
3195 #include <stddef.h>
3196 #endif
3198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3199 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3200 rm -rf conftest*
3201 ac_cv_type_pid_t=yes
3202 else
3203 rm -rf conftest*
3204 ac_cv_type_pid_t=no
3206 rm -f conftest*
3209 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3210 if test $ac_cv_type_pid_t = no; then
3211 cat >> confdefs.h <<\EOF
3212 #define pid_t int
3217 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3218 echo "configure:3219: checking for st_rdev in struct stat" >&5
3219 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3221 else
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 #include <sys/types.h>
3226 #include <sys/stat.h>
3227 int main() {
3228 struct stat s; s.st_rdev;
3229 ; return 0; }
3231 if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3232 rm -rf conftest*
3233 ac_cv_struct_st_rdev=yes
3234 else
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3237 rm -rf conftest*
3238 ac_cv_struct_st_rdev=no
3240 rm -f conftest*
3243 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3244 if test $ac_cv_struct_st_rdev = yes; then
3245 cat >> confdefs.h <<\EOF
3246 #define HAVE_ST_RDEV 1
3251 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3252 echo "configure:3253: checking for d_off in dirent" >&5
3253 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3255 else
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3260 #include <unistd.h>
3261 #include <sys/types.h>
3262 #include <dirent.h>
3263 int main() {
3264 struct dirent d; d.d_off;
3265 ; return 0; }
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268 rm -rf conftest*
3269 ac_cv_dirent_d_off=yes
3270 else
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 rm -rf conftest*
3274 ac_cv_dirent_d_off=no
3276 rm -f conftest*
3279 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3280 if test $ac_cv_dirent_d_off = yes; then
3281 cat >> confdefs.h <<\EOF
3282 #define HAVE_DIRENT_D_OFF 1
3287 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3288 echo "configure:3289: checking for ino_t" >&5
3289 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3291 else
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 #include <sys/types.h>
3296 #if STDC_HEADERS
3297 #include <stdlib.h>
3298 #include <stddef.h>
3299 #endif
3301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3303 rm -rf conftest*
3304 ac_cv_type_ino_t=yes
3305 else
3306 rm -rf conftest*
3307 ac_cv_type_ino_t=no
3309 rm -f conftest*
3312 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3313 if test $ac_cv_type_ino_t = no; then
3314 cat >> confdefs.h <<\EOF
3315 #define ino_t unsigned
3320 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3321 echo "configure:3322: checking for loff_t" >&5
3322 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3324 else
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <sys/types.h>
3329 #if STDC_HEADERS
3330 #include <stdlib.h>
3331 #include <stddef.h>
3332 #endif
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3336 rm -rf conftest*
3337 ac_cv_type_loff_t=yes
3338 else
3339 rm -rf conftest*
3340 ac_cv_type_loff_t=no
3342 rm -f conftest*
3345 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3346 if test $ac_cv_type_loff_t = no; then
3347 cat >> confdefs.h <<\EOF
3348 #define loff_t off_t
3353 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3354 echo "configure:3355: checking for offset_t" >&5
3355 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3357 else
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3362 #if STDC_HEADERS
3363 #include <stdlib.h>
3364 #include <stddef.h>
3365 #endif
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3369 rm -rf conftest*
3370 ac_cv_type_offset_t=yes
3371 else
3372 rm -rf conftest*
3373 ac_cv_type_offset_t=no
3375 rm -f conftest*
3378 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3379 if test $ac_cv_type_offset_t = no; then
3380 cat >> confdefs.h <<\EOF
3381 #define offset_t loff_t
3386 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3387 echo "configure:3388: checking for ssize_t" >&5
3388 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3390 else
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <sys/types.h>
3395 #if STDC_HEADERS
3396 #include <stdlib.h>
3397 #include <stddef.h>
3398 #endif
3400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3402 rm -rf conftest*
3403 ac_cv_type_ssize_t=yes
3404 else
3405 rm -rf conftest*
3406 ac_cv_type_ssize_t=no
3408 rm -f conftest*
3411 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3412 if test $ac_cv_type_ssize_t = no; then
3413 cat >> confdefs.h <<\EOF
3414 #define ssize_t int
3419 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3420 echo "configure:3421: checking for wchar_t" >&5
3421 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3423 else
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3428 #if STDC_HEADERS
3429 #include <stdlib.h>
3430 #include <stddef.h>
3431 #endif
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3435 rm -rf conftest*
3436 ac_cv_type_wchar_t=yes
3437 else
3438 rm -rf conftest*
3439 ac_cv_type_wchar_t=no
3441 rm -f conftest*
3444 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3445 if test $ac_cv_type_wchar_t = no; then
3446 cat >> confdefs.h <<\EOF
3447 #define wchar_t unsigned short
3453 ############################################
3454 # for cups support we need libcups, and a handful of header files
3456 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3457 echo "configure:3458: checking for httpConnect in -lcups" >&5
3458 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 ac_save_LIBS="$LIBS"
3463 LIBS="-lcups $LIBS"
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3467 /* Override any gcc2 internal prototype to avoid an error. */
3468 /* We use char because int might match the return type of a gcc2
3469 builtin and then its argument prototype would still apply. */
3470 char httpConnect();
3472 int main() {
3473 httpConnect()
3474 ; return 0; }
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3477 rm -rf conftest*
3478 eval "ac_cv_lib_$ac_lib_var=yes"
3479 else
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3482 rm -rf conftest*
3483 eval "ac_cv_lib_$ac_lib_var=no"
3485 rm -f conftest*
3486 LIBS="$ac_save_LIBS"
3489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3491 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3492 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3493 cat >> confdefs.h <<EOF
3494 #define $ac_tr_lib 1
3497 LIBS="-lcups $LIBS"
3499 else
3500 echo "$ac_t""no" 1>&6
3504 # I wonder if there is a nicer way of doing this?
3506 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3507 for ac_hdr in cups/cups.h cups/language.h
3509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3511 echo "configure:3512: checking for $ac_hdr" >&5
3512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3514 else
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 #include <$ac_hdr>
3520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3521 { (eval echo configure:3522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3523 if test -z "$ac_err"; then
3524 rm -rf conftest*
3525 eval "ac_cv_header_$ac_safe=yes"
3526 else
3527 echo "$ac_err" >&5
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 rm -rf conftest*
3531 eval "ac_cv_header_$ac_safe=no"
3533 rm -f conftest*
3535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3538 cat >> confdefs.h <<EOF
3539 #define $ac_tr_hdr 1
3542 else
3543 echo "$ac_t""no" 1>&6
3545 done
3547 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3548 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3549 cat >> confdefs.h <<\EOF
3550 #define HAVE_CUPS 1
3557 ############################################
3558 # we need libdl for PAM and the new VFS code
3559 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3560 echo "configure:3561: checking for dlopen in -ldl" >&5
3561 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3564 else
3565 ac_save_LIBS="$LIBS"
3566 LIBS="-ldl $LIBS"
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 /* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3573 char dlopen();
3575 int main() {
3576 dlopen()
3577 ; return 0; }
3579 if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3580 rm -rf conftest*
3581 eval "ac_cv_lib_$ac_lib_var=yes"
3582 else
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3585 rm -rf conftest*
3586 eval "ac_cv_lib_$ac_lib_var=no"
3588 rm -f conftest*
3589 LIBS="$ac_save_LIBS"
3592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3593 echo "$ac_t""yes" 1>&6
3594 LIBS="$LIBS -ldl";
3595 cat >> confdefs.h <<\EOF
3596 #define HAVE_LIBDL 1
3599 else
3600 echo "$ac_t""no" 1>&6
3604 ############################################
3605 # check for unix domain sockets
3606 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3607 echo "configure:3608: checking for unix domain sockets" >&5
3608 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3610 else
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3616 #include <sys/types.h>
3617 #include <stdlib.h>
3618 #include <stddef.h>
3619 #include <sys/socket.h>
3620 #include <sys/un.h>
3621 int main() {
3623 struct sockaddr_un sunaddr;
3624 sunaddr.sun_family = AF_UNIX;
3626 ; return 0; }
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 rm -rf conftest*
3630 samba_cv_unixsocket=yes
3631 else
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3634 rm -rf conftest*
3635 samba_cv_unixsocket=no
3637 rm -f conftest*
3640 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3641 if test x"$samba_cv_unixsocket" = x"yes"; then
3642 cat >> confdefs.h <<\EOF
3643 #define HAVE_UNIXSOCKET 1
3648 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3649 echo "configure:3650: checking for socklen_t type" >&5
3650 if eval "test \"`echo '$''{'samba_cv_socklen_t'+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 <sys/types.h>
3659 #if STDC_HEADERS
3660 #include <stdlib.h>
3661 #include <stddef.h>
3662 #endif
3663 #include <sys/socket.h>
3664 int main() {
3665 socklen_t i = 0
3666 ; return 0; }
3668 if { (eval echo configure:3669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3669 rm -rf conftest*
3670 samba_cv_socklen_t=yes
3671 else
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3674 rm -rf conftest*
3675 samba_cv_socklen_t=no
3677 rm -f conftest*
3680 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3681 if test x"$samba_cv_socklen_t" = x"yes"; then
3682 cat >> confdefs.h <<\EOF
3683 #define HAVE_SOCKLEN_T_TYPE 1
3688 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3689 echo "configure:3690: checking for sig_atomic_t type" >&5
3690 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3698 #include <sys/types.h>
3699 #if STDC_HEADERS
3700 #include <stdlib.h>
3701 #include <stddef.h>
3702 #endif
3703 #include <signal.h>
3704 int main() {
3705 sig_atomic_t i = 0
3706 ; return 0; }
3708 if { (eval echo configure:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3709 rm -rf conftest*
3710 samba_cv_sig_atomic_t=yes
3711 else
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3714 rm -rf conftest*
3715 samba_cv_sig_atomic_t=no
3717 rm -f conftest*
3720 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3721 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3722 cat >> confdefs.h <<\EOF
3723 #define HAVE_SIG_ATOMIC_T_TYPE 1
3728 # stupid headers have the functions but no declaration. grrrr.
3730 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3731 echo "configure:3732: checking for errno declaration" >&5
3732 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3734 else
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3739 #include <errno.h>
3740 int main() {
3741 int i = (int)errno
3742 ; return 0; }
3744 if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3745 rm -rf conftest*
3746 ac_cv_have_errno_decl=yes
3747 else
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3750 rm -rf conftest*
3751 ac_cv_have_errno_decl=no
3753 rm -f conftest*
3756 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3757 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3758 cat >> confdefs.h <<\EOF
3759 #define HAVE_ERRNO_DECL 1
3765 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3766 echo "configure:3767: checking for setresuid declaration" >&5
3767 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3769 else
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 #include <unistd.h>
3775 int main() {
3776 int i = (int)setresuid
3777 ; return 0; }
3779 if { (eval echo configure:3780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3780 rm -rf conftest*
3781 ac_cv_have_setresuid_decl=yes
3782 else
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3785 rm -rf conftest*
3786 ac_cv_have_setresuid_decl=no
3788 rm -f conftest*
3791 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3792 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3793 cat >> confdefs.h <<\EOF
3794 #define HAVE_SETRESUID_DECL 1
3800 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3801 echo "configure:3802: checking for setresgid declaration" >&5
3802 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3804 else
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 #include <unistd.h>
3810 int main() {
3811 int i = (int)setresgid
3812 ; return 0; }
3814 if { (eval echo configure:3815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3815 rm -rf conftest*
3816 ac_cv_have_setresgid_decl=yes
3817 else
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3820 rm -rf conftest*
3821 ac_cv_have_setresgid_decl=no
3823 rm -f conftest*
3826 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3827 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3828 cat >> confdefs.h <<\EOF
3829 #define HAVE_SETRESGID_DECL 1
3835 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3836 echo "configure:3837: checking for asprintf declaration" >&5
3837 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3839 else
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 #include <stdio.h>
3845 int main() {
3846 int i = (int)asprintf
3847 ; return 0; }
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3850 rm -rf conftest*
3851 ac_cv_have_asprintf_decl=yes
3852 else
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3855 rm -rf conftest*
3856 ac_cv_have_asprintf_decl=no
3858 rm -f conftest*
3861 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3862 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3863 cat >> confdefs.h <<\EOF
3864 #define HAVE_ASPRINTF_DECL 1
3870 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3871 echo "configure:3872: checking for vasprintf declaration" >&5
3872 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3874 else
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 #include <stdio.h>
3880 int main() {
3881 int i = (int)vasprintf
3882 ; return 0; }
3884 if { (eval echo configure:3885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3885 rm -rf conftest*
3886 ac_cv_have_vasprintf_decl=yes
3887 else
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 rm -rf conftest*
3891 ac_cv_have_vasprintf_decl=no
3893 rm -f conftest*
3896 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3897 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3898 cat >> confdefs.h <<\EOF
3899 #define HAVE_VASPRINTF_DECL 1
3905 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3906 echo "configure:3907: checking for vsnprintf declaration" >&5
3907 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3909 else
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 #include <stdio.h>
3915 int main() {
3916 int i = (int)vsnprintf
3917 ; return 0; }
3919 if { (eval echo configure:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3920 rm -rf conftest*
3921 ac_cv_have_vsnprintf_decl=yes
3922 else
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3925 rm -rf conftest*
3926 ac_cv_have_vsnprintf_decl=no
3928 rm -f conftest*
3931 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3932 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3933 cat >> confdefs.h <<\EOF
3934 #define HAVE_VSNPRINTF_DECL 1
3940 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3941 echo "configure:3942: checking for snprintf declaration" >&5
3942 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3944 else
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3949 #include <stdio.h>
3950 int main() {
3951 int i = (int)snprintf
3952 ; return 0; }
3954 if { (eval echo configure:3955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3955 rm -rf conftest*
3956 ac_cv_have_snprintf_decl=yes
3957 else
3958 echo "configure: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3960 rm -rf conftest*
3961 ac_cv_have_snprintf_decl=no
3963 rm -f conftest*
3966 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3967 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3968 cat >> confdefs.h <<\EOF
3969 #define HAVE_SNPRINTF_DECL 1
3975 # and glibc has setresuid under linux but the function does
3976 # nothing until kernel 2.1.44! very dumb.
3977 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3978 echo "configure:3979: checking for real setresuid" >&5
3979 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3981 else
3983 if test "$cross_compiling" = yes; then
3984 samba_cv_have_setresuid=cross
3985 else
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 #include <errno.h>
3990 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3993 then
3994 samba_cv_have_setresuid=yes
3995 else
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3998 rm -fr conftest*
3999 samba_cv_have_setresuid=no
4001 rm -fr conftest*
4006 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4007 if test x"$samba_cv_have_setresuid" = x"yes"; then
4008 cat >> confdefs.h <<\EOF
4009 #define HAVE_SETRESUID 1
4014 # Do the same check for setresguid...
4016 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4017 echo "configure:4018: checking for real setresgid" >&5
4018 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4020 else
4022 if test "$cross_compiling" = yes; then
4023 samba_cv_have_setresgid=cross
4024 else
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 #include <unistd.h>
4029 #include <errno.h>
4030 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4033 then
4034 samba_cv_have_setresgid=yes
4035 else
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 rm -fr conftest*
4039 samba_cv_have_setresgid=no
4041 rm -fr conftest*
4046 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4047 if test x"$samba_cv_have_setresgid" = x"yes"; then
4048 cat >> confdefs.h <<\EOF
4049 #define HAVE_SETRESGID 1
4054 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4055 echo "configure:4056: checking for 8-bit clean memcmp" >&5
4056 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4058 else
4059 if test "$cross_compiling" = yes; then
4060 ac_cv_func_memcmp_clean=no
4061 else
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4066 main()
4068 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4069 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4074 then
4075 ac_cv_func_memcmp_clean=yes
4076 else
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4079 rm -fr conftest*
4080 ac_cv_func_memcmp_clean=no
4082 rm -fr conftest*
4087 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4088 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4091 ###############################################
4092 # Readline included by default unless explicitly asked not to
4093 test "${with_readline+set}" != "set" && with_readline=yes
4095 # test for where we get readline() from
4096 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4097 echo "configure:4098: checking whether to use readline" >&5
4098 # Check whether --with-readline or --without-readline was given.
4099 if test "${with_readline+set}" = set; then
4100 withval="$with_readline"
4101 case "$with_readline" in
4102 yes)
4103 echo "$ac_t""yes" 1>&6
4105 for ac_hdr in readline.h history.h readline/readline.h
4107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_hdr" >&5
4110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4112 else
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 #include <$ac_hdr>
4118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4119 { (eval echo configure:4120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4121 if test -z "$ac_err"; then
4122 rm -rf conftest*
4123 eval "ac_cv_header_$ac_safe=yes"
4124 else
4125 echo "$ac_err" >&5
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 rm -rf conftest*
4129 eval "ac_cv_header_$ac_safe=no"
4131 rm -f conftest*
4133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4136 cat >> confdefs.h <<EOF
4137 #define $ac_tr_hdr 1
4140 else
4141 echo "$ac_t""no" 1>&6
4143 done
4145 for ac_hdr in readline/history.h
4147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4149 echo "configure:4150: checking for $ac_hdr" >&5
4150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4152 else
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 #include <$ac_hdr>
4158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4159 { (eval echo configure:4160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4161 if test -z "$ac_err"; then
4162 rm -rf conftest*
4163 eval "ac_cv_header_$ac_safe=yes"
4164 else
4165 echo "$ac_err" >&5
4166 echo "configure: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4168 rm -rf conftest*
4169 eval "ac_cv_header_$ac_safe=no"
4171 rm -f conftest*
4173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4174 echo "$ac_t""yes" 1>&6
4175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4176 cat >> confdefs.h <<EOF
4177 #define $ac_tr_hdr 1
4180 else
4181 echo "$ac_t""no" 1>&6
4183 done
4186 for ac_hdr in readline.h readline/readline.h
4188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4193 else
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 #include <$ac_hdr>
4199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4203 rm -rf conftest*
4204 eval "ac_cv_header_$ac_safe=yes"
4205 else
4206 echo "$ac_err" >&5
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 rm -rf conftest*
4210 eval "ac_cv_header_$ac_safe=no"
4212 rm -f conftest*
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_hdr 1
4221 for termlib in ncurses curses termcap terminfo termlib; do
4222 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4223 echo "configure:4224: checking for tgetent in -l${termlib}" >&5
4224 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227 else
4228 ac_save_LIBS="$LIBS"
4229 LIBS="-l${termlib} $LIBS"
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4236 char tgetent();
4238 int main() {
4239 tgetent()
4240 ; return 0; }
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4243 rm -rf conftest*
4244 eval "ac_cv_lib_$ac_lib_var=yes"
4245 else
4246 echo "configure: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4248 rm -rf conftest*
4249 eval "ac_cv_lib_$ac_lib_var=no"
4251 rm -f conftest*
4252 LIBS="$ac_save_LIBS"
4255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 TERMLIBS="-l${termlib}"; break
4258 else
4259 echo "$ac_t""no" 1>&6
4262 done
4263 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4264 echo "configure:4265: checking for rl_callback_handler_install in -lreadline" >&5
4265 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4268 else
4269 ac_save_LIBS="$LIBS"
4270 LIBS="-lreadline $TERMLIBS $LIBS"
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char rl_callback_handler_install();
4279 int main() {
4280 rl_callback_handler_install()
4281 ; return 0; }
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4284 rm -rf conftest*
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4286 else
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4289 rm -rf conftest*
4290 eval "ac_cv_lib_$ac_lib_var=no"
4292 rm -f conftest*
4293 LIBS="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 TERMLIBS="-lreadline $TERMLIBS"
4299 cat >> confdefs.h <<\EOF
4300 #define HAVE_LIBREADLINE 1
4303 break
4304 else
4305 echo "$ac_t""no" 1>&6
4306 TERMLIBS=
4309 else
4310 echo "$ac_t""no" 1>&6
4312 done
4316 echo "$ac_t""no" 1>&6
4319 echo "$ac_t""yes" 1>&6
4321 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4322 # alternate readline path
4323 _ldflags=${LDFLAGS}
4324 _cppflags=${CPPFLAGS}
4326 # Add additional search path
4327 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4328 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4330 for ac_hdr in readline.h history.h readline/readline.h
4332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_hdr" >&5
4335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4337 else
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 #include <$ac_hdr>
4343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4347 rm -rf conftest*
4348 eval "ac_cv_header_$ac_safe=yes"
4349 else
4350 echo "$ac_err" >&5
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4353 rm -rf conftest*
4354 eval "ac_cv_header_$ac_safe=no"
4356 rm -f conftest*
4358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4361 cat >> confdefs.h <<EOF
4362 #define $ac_tr_hdr 1
4365 else
4366 echo "$ac_t""no" 1>&6
4368 done
4370 for ac_hdr in readline/history.h
4372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_hdr" >&5
4375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4377 else
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 #include <$ac_hdr>
4383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4384 { (eval echo configure:4385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4386 if test -z "$ac_err"; then
4387 rm -rf conftest*
4388 eval "ac_cv_header_$ac_safe=yes"
4389 else
4390 echo "$ac_err" >&5
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 rm -rf conftest*
4394 eval "ac_cv_header_$ac_safe=no"
4396 rm -f conftest*
4398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4401 cat >> confdefs.h <<EOF
4402 #define $ac_tr_hdr 1
4405 else
4406 echo "$ac_t""no" 1>&6
4408 done
4411 for ac_hdr in readline.h readline/readline.h
4413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4418 else
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4422 #include <$ac_hdr>
4424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4428 rm -rf conftest*
4429 eval "ac_cv_header_$ac_safe=yes"
4430 else
4431 echo "$ac_err" >&5
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4434 rm -rf conftest*
4435 eval "ac_cv_header_$ac_safe=no"
4437 rm -f conftest*
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h <<EOF
4443 #define $ac_tr_hdr 1
4446 for termlib in ncurses curses termcap terminfo termlib; do
4447 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4448 echo "configure:4449: checking for tgetent in -l${termlib}" >&5
4449 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453 ac_save_LIBS="$LIBS"
4454 LIBS="-l${termlib} $LIBS"
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4461 char tgetent();
4463 int main() {
4464 tgetent()
4465 ; return 0; }
4467 if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 rm -rf conftest*
4469 eval "ac_cv_lib_$ac_lib_var=yes"
4470 else
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 rm -rf conftest*
4474 eval "ac_cv_lib_$ac_lib_var=no"
4476 rm -f conftest*
4477 LIBS="$ac_save_LIBS"
4480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 TERMLIBS="-l${termlib}"; break
4483 else
4484 echo "$ac_t""no" 1>&6
4487 done
4488 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4489 echo "configure:4490: checking for rl_callback_handler_install in -lreadline" >&5
4490 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4493 else
4494 ac_save_LIBS="$LIBS"
4495 LIBS="-lreadline $TERMLIBS $LIBS"
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4502 char rl_callback_handler_install();
4504 int main() {
4505 rl_callback_handler_install()
4506 ; return 0; }
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4509 rm -rf conftest*
4510 eval "ac_cv_lib_$ac_lib_var=yes"
4511 else
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 rm -rf conftest*
4515 eval "ac_cv_lib_$ac_lib_var=no"
4517 rm -f conftest*
4518 LIBS="$ac_save_LIBS"
4521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 TERMLDFLAGS="-L$with_readline/lib"
4524 TERMCPPFLAGS="-I$with_readline/include"
4525 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4526 TERMLIBS="-lreadline $TERMLIBS"
4527 cat >> confdefs.h <<\EOF
4528 #define HAVE_LIBREADLINE 1
4531 break
4532 else
4533 echo "$ac_t""no" 1>&6
4534 TERMLIBS= CPPFLAGS=$_cppflags
4537 else
4538 echo "$ac_t""no" 1>&6
4540 done
4543 LDFLAGS=$_ldflags
4545 esac
4546 else
4547 echo "$ac_t""no" 1>&6
4554 # The following test taken from the cvs sources
4555 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4556 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4557 # libsocket.so which has a bad implementation of gethostbyname (it
4558 # only looks in /etc/hosts), so we only look for -lsocket if we need
4559 # it.
4560 for ac_func in connect
4562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_func" >&5
4564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4566 else
4567 cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570 /* System header to define __stub macros and hopefully few prototypes,
4571 which can conflict with char $ac_func(); below. */
4572 #include <assert.h>
4573 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4576 char $ac_func();
4578 int main() {
4580 /* The GNU C library defines this for functions which it implements
4581 to always fail with ENOSYS. Some functions are actually named
4582 something starting with __ and the normal name is an alias. */
4583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4584 choke me
4585 #else
4586 $ac_func();
4587 #endif
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_func_$ac_func=yes"
4594 else
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 rm -rf conftest*
4598 eval "ac_cv_func_$ac_func=no"
4600 rm -f conftest*
4603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4606 cat >> confdefs.h <<EOF
4607 #define $ac_tr_func 1
4610 else
4611 echo "$ac_t""no" 1>&6
4613 done
4615 if test x"$ac_cv_func_connect" = x"no"; then
4616 case "$LIBS" in
4617 *-lnsl*) ;;
4618 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4619 echo "configure:4620: checking for printf in -lnsl_s" >&5
4620 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4623 else
4624 ac_save_LIBS="$LIBS"
4625 LIBS="-lnsl_s $LIBS"
4626 cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4632 char printf();
4634 int main() {
4635 printf()
4636 ; return 0; }
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4639 rm -rf conftest*
4640 eval "ac_cv_lib_$ac_lib_var=yes"
4641 else
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 rm -rf conftest*
4645 eval "ac_cv_lib_$ac_lib_var=no"
4647 rm -f conftest*
4648 LIBS="$ac_save_LIBS"
4651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4655 cat >> confdefs.h <<EOF
4656 #define $ac_tr_lib 1
4659 LIBS="-lnsl_s $LIBS"
4661 else
4662 echo "$ac_t""no" 1>&6
4665 esac
4666 case "$LIBS" in
4667 *-lnsl*) ;;
4668 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4669 echo "configure:4670: checking for printf in -lnsl" >&5
4670 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4673 else
4674 ac_save_LIBS="$LIBS"
4675 LIBS="-lnsl $LIBS"
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682 char printf();
4684 int main() {
4685 printf()
4686 ; return 0; }
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4689 rm -rf conftest*
4690 eval "ac_cv_lib_$ac_lib_var=yes"
4691 else
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4694 rm -rf conftest*
4695 eval "ac_cv_lib_$ac_lib_var=no"
4697 rm -f conftest*
4698 LIBS="$ac_save_LIBS"
4701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4703 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4704 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4705 cat >> confdefs.h <<EOF
4706 #define $ac_tr_lib 1
4709 LIBS="-lnsl $LIBS"
4711 else
4712 echo "$ac_t""no" 1>&6
4715 esac
4716 case "$LIBS" in
4717 *-lsocket*) ;;
4718 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4719 echo "configure:4720: checking for connect in -lsocket" >&5
4720 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4723 else
4724 ac_save_LIBS="$LIBS"
4725 LIBS="-lsocket $LIBS"
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4732 char connect();
4734 int main() {
4735 connect()
4736 ; return 0; }
4738 if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4739 rm -rf conftest*
4740 eval "ac_cv_lib_$ac_lib_var=yes"
4741 else
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4744 rm -rf conftest*
4745 eval "ac_cv_lib_$ac_lib_var=no"
4747 rm -f conftest*
4748 LIBS="$ac_save_LIBS"
4751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4752 echo "$ac_t""yes" 1>&6
4753 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4755 cat >> confdefs.h <<EOF
4756 #define $ac_tr_lib 1
4759 LIBS="-lsocket $LIBS"
4761 else
4762 echo "$ac_t""no" 1>&6
4765 esac
4766 case "$LIBS" in
4767 *-linet*) ;;
4768 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4769 echo "configure:4770: checking for connect in -linet" >&5
4770 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4773 else
4774 ac_save_LIBS="$LIBS"
4775 LIBS="-linet $LIBS"
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4782 char connect();
4784 int main() {
4785 connect()
4786 ; return 0; }
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789 rm -rf conftest*
4790 eval "ac_cv_lib_$ac_lib_var=yes"
4791 else
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 rm -rf conftest*
4795 eval "ac_cv_lib_$ac_lib_var=no"
4797 rm -f conftest*
4798 LIBS="$ac_save_LIBS"
4801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4805 cat >> confdefs.h <<EOF
4806 #define $ac_tr_lib 1
4809 LIBS="-linet $LIBS"
4811 else
4812 echo "$ac_t""no" 1>&6
4815 esac
4816 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4817 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4818 # ac_cv_func_connect=yes
4819 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4820 cat >> confdefs.h <<\EOF
4821 #define HAVE_CONNECT 1
4827 ###############################################
4828 # test for where we get get_yp_default_domain() from
4829 for ac_func in yp_get_default_domain
4831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4832 echo "configure:4833: checking for $ac_func" >&5
4833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4835 else
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4839 /* System header to define __stub macros and hopefully few prototypes,
4840 which can conflict with char $ac_func(); below. */
4841 #include <assert.h>
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4845 char $ac_func();
4847 int main() {
4849 /* The GNU C library defines this for functions which it implements
4850 to always fail with ENOSYS. Some functions are actually named
4851 something starting with __ and the normal name is an alias. */
4852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4853 choke me
4854 #else
4855 $ac_func();
4856 #endif
4858 ; return 0; }
4860 if { (eval echo configure:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4861 rm -rf conftest*
4862 eval "ac_cv_func_$ac_func=yes"
4863 else
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4866 rm -rf conftest*
4867 eval "ac_cv_func_$ac_func=no"
4869 rm -f conftest*
4872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4875 cat >> confdefs.h <<EOF
4876 #define $ac_tr_func 1
4879 else
4880 echo "$ac_t""no" 1>&6
4882 done
4884 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4885 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4886 echo "configure:4887: checking for yp_get_default_domain in -lnsl" >&5
4887 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4890 else
4891 ac_save_LIBS="$LIBS"
4892 LIBS="-lnsl $LIBS"
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4899 char yp_get_default_domain();
4901 int main() {
4902 yp_get_default_domain()
4903 ; return 0; }
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4906 rm -rf conftest*
4907 eval "ac_cv_lib_$ac_lib_var=yes"
4908 else
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4911 rm -rf conftest*
4912 eval "ac_cv_lib_$ac_lib_var=no"
4914 rm -f conftest*
4915 LIBS="$ac_save_LIBS"
4918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 LIBS="$LIBS -lnsl";
4921 cat >> confdefs.h <<\EOF
4922 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4925 else
4926 echo "$ac_t""no" 1>&6
4931 # Check if we have execl, if not we need to compile smbrun.
4932 for ac_func in execl
4934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4935 echo "configure:4936: checking for $ac_func" >&5
4936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4938 else
4939 cat > conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char $ac_func(); below. */
4944 #include <assert.h>
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4948 char $ac_func();
4950 int main() {
4952 /* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4956 choke me
4957 #else
4958 $ac_func();
4959 #endif
4961 ; return 0; }
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4964 rm -rf conftest*
4965 eval "ac_cv_func_$ac_func=yes"
4966 else
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 rm -rf conftest*
4970 eval "ac_cv_func_$ac_func=no"
4972 rm -f conftest*
4975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4978 cat >> confdefs.h <<EOF
4979 #define $ac_tr_func 1
4982 else
4983 echo "$ac_t""no" 1>&6
4985 done
4987 if test x"$ac_cv_func_execl" = x"no"; then
4988 RUNPROG="bin/smbrun"
4989 else
4990 RUNPROG=""
4993 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
4995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4996 echo "configure:4997: checking for $ac_func" >&5
4997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
4999 else
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 /* System header to define __stub macros and hopefully few prototypes,
5004 which can conflict with char $ac_func(); below. */
5005 #include <assert.h>
5006 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5009 char $ac_func();
5011 int main() {
5013 /* The GNU C library defines this for functions which it implements
5014 to always fail with ENOSYS. Some functions are actually named
5015 something starting with __ and the normal name is an alias. */
5016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5017 choke me
5018 #else
5019 $ac_func();
5020 #endif
5022 ; return 0; }
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5025 rm -rf conftest*
5026 eval "ac_cv_func_$ac_func=yes"
5027 else
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5030 rm -rf conftest*
5031 eval "ac_cv_func_$ac_func=no"
5033 rm -f conftest*
5036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5039 cat >> confdefs.h <<EOF
5040 #define $ac_tr_func 1
5043 else
5044 echo "$ac_t""no" 1>&6
5046 done
5048 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5051 echo "configure:5052: checking for $ac_func" >&5
5052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5054 else
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* System header to define __stub macros and hopefully few prototypes,
5059 which can conflict with char $ac_func(); below. */
5060 #include <assert.h>
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5064 char $ac_func();
5066 int main() {
5068 /* The GNU C library defines this for functions which it implements
5069 to always fail with ENOSYS. Some functions are actually named
5070 something starting with __ and the normal name is an alias. */
5071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5072 choke me
5073 #else
5074 $ac_func();
5075 #endif
5077 ; return 0; }
5079 if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5080 rm -rf conftest*
5081 eval "ac_cv_func_$ac_func=yes"
5082 else
5083 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 rm -rf conftest*
5086 eval "ac_cv_func_$ac_func=no"
5088 rm -f conftest*
5091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5094 cat >> confdefs.h <<EOF
5095 #define $ac_tr_func 1
5098 else
5099 echo "$ac_t""no" 1>&6
5101 done
5103 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_func" >&5
5107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5109 else
5110 cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 /* System header to define __stub macros and hopefully few prototypes,
5114 which can conflict with char $ac_func(); below. */
5115 #include <assert.h>
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5119 char $ac_func();
5121 int main() {
5123 /* The GNU C library defines this for functions which it implements
5124 to always fail with ENOSYS. Some functions are actually named
5125 something starting with __ and the normal name is an alias. */
5126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5127 choke me
5128 #else
5129 $ac_func();
5130 #endif
5132 ; return 0; }
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5135 rm -rf conftest*
5136 eval "ac_cv_func_$ac_func=yes"
5137 else
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 rm -rf conftest*
5141 eval "ac_cv_func_$ac_func=no"
5143 rm -f conftest*
5146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5147 echo "$ac_t""yes" 1>&6
5148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5149 cat >> confdefs.h <<EOF
5150 #define $ac_tr_func 1
5153 else
5154 echo "$ac_t""no" 1>&6
5156 done
5158 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5161 echo "configure:5162: checking for $ac_func" >&5
5162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5164 else
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 /* System header to define __stub macros and hopefully few prototypes,
5169 which can conflict with char $ac_func(); below. */
5170 #include <assert.h>
5171 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174 char $ac_func();
5176 int main() {
5178 /* The GNU C library defines this for functions which it implements
5179 to always fail with ENOSYS. Some functions are actually named
5180 something starting with __ and the normal name is an alias. */
5181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5182 choke me
5183 #else
5184 $ac_func();
5185 #endif
5187 ; return 0; }
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 rm -rf conftest*
5191 eval "ac_cv_func_$ac_func=yes"
5192 else
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 rm -rf conftest*
5196 eval "ac_cv_func_$ac_func=no"
5198 rm -f conftest*
5201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5204 cat >> confdefs.h <<EOF
5205 #define $ac_tr_func 1
5208 else
5209 echo "$ac_t""no" 1>&6
5211 done
5213 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5216 echo "configure:5217: checking for $ac_func" >&5
5217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5219 else
5220 cat > conftest.$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5223 /* System header to define __stub macros and hopefully few prototypes,
5224 which can conflict with char $ac_func(); below. */
5225 #include <assert.h>
5226 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5229 char $ac_func();
5231 int main() {
5233 /* The GNU C library defines this for functions which it implements
5234 to always fail with ENOSYS. Some functions are actually named
5235 something starting with __ and the normal name is an alias. */
5236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5237 choke me
5238 #else
5239 $ac_func();
5240 #endif
5242 ; return 0; }
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245 rm -rf conftest*
5246 eval "ac_cv_func_$ac_func=yes"
5247 else
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5250 rm -rf conftest*
5251 eval "ac_cv_func_$ac_func=no"
5253 rm -f conftest*
5256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5257 echo "$ac_t""yes" 1>&6
5258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5259 cat >> confdefs.h <<EOF
5260 #define $ac_tr_func 1
5263 else
5264 echo "$ac_t""no" 1>&6
5266 done
5268 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5271 echo "configure:5272: checking for $ac_func" >&5
5272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5274 else
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* System header to define __stub macros and hopefully few prototypes,
5279 which can conflict with char $ac_func(); below. */
5280 #include <assert.h>
5281 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */
5284 char $ac_func();
5286 int main() {
5288 /* The GNU C library defines this for functions which it implements
5289 to always fail with ENOSYS. Some functions are actually named
5290 something starting with __ and the normal name is an alias. */
5291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5292 choke me
5293 #else
5294 $ac_func();
5295 #endif
5297 ; return 0; }
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5300 rm -rf conftest*
5301 eval "ac_cv_func_$ac_func=yes"
5302 else
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5305 rm -rf conftest*
5306 eval "ac_cv_func_$ac_func=no"
5308 rm -f conftest*
5311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5312 echo "$ac_t""yes" 1>&6
5313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5314 cat >> confdefs.h <<EOF
5315 #define $ac_tr_func 1
5318 else
5319 echo "$ac_t""no" 1>&6
5321 done
5323 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5326 echo "configure:5327: checking for $ac_func" >&5
5327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5329 else
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 /* System header to define __stub macros and hopefully few prototypes,
5334 which can conflict with char $ac_func(); below. */
5335 #include <assert.h>
5336 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5339 char $ac_func();
5341 int main() {
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5347 choke me
5348 #else
5349 $ac_func();
5350 #endif
5352 ; return 0; }
5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5355 rm -rf conftest*
5356 eval "ac_cv_func_$ac_func=yes"
5357 else
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 rm -rf conftest*
5361 eval "ac_cv_func_$ac_func=no"
5363 rm -f conftest*
5366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5369 cat >> confdefs.h <<EOF
5370 #define $ac_tr_func 1
5373 else
5374 echo "$ac_t""no" 1>&6
5376 done
5378 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5381 echo "configure:5382: checking for $ac_func" >&5
5382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5383 echo $ac_n "(cached) $ac_c" 1>&6
5384 else
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5388 /* System header to define __stub macros and hopefully few prototypes,
5389 which can conflict with char $ac_func(); below. */
5390 #include <assert.h>
5391 /* Override any gcc2 internal prototype to avoid an error. */
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5394 char $ac_func();
5396 int main() {
5398 /* The GNU C library defines this for functions which it implements
5399 to always fail with ENOSYS. Some functions are actually named
5400 something starting with __ and the normal name is an alias. */
5401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5402 choke me
5403 #else
5404 $ac_func();
5405 #endif
5407 ; return 0; }
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5410 rm -rf conftest*
5411 eval "ac_cv_func_$ac_func=yes"
5412 else
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5415 rm -rf conftest*
5416 eval "ac_cv_func_$ac_func=no"
5418 rm -f conftest*
5421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5424 cat >> confdefs.h <<EOF
5425 #define $ac_tr_func 1
5428 else
5429 echo "$ac_t""no" 1>&6
5431 done
5433 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5436 echo "configure:5437: checking for $ac_func" >&5
5437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5439 else
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 /* System header to define __stub macros and hopefully few prototypes,
5444 which can conflict with char $ac_func(); below. */
5445 #include <assert.h>
5446 /* Override any gcc2 internal prototype to avoid an error. */
5447 /* We use char because int might match the return type of a gcc2
5448 builtin and then its argument prototype would still apply. */
5449 char $ac_func();
5451 int main() {
5453 /* The GNU C library defines this for functions which it implements
5454 to always fail with ENOSYS. Some functions are actually named
5455 something starting with __ and the normal name is an alias. */
5456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5457 choke me
5458 #else
5459 $ac_func();
5460 #endif
5462 ; return 0; }
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5465 rm -rf conftest*
5466 eval "ac_cv_func_$ac_func=yes"
5467 else
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5470 rm -rf conftest*
5471 eval "ac_cv_func_$ac_func=no"
5473 rm -f conftest*
5476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5477 echo "$ac_t""yes" 1>&6
5478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5479 cat >> confdefs.h <<EOF
5480 #define $ac_tr_func 1
5483 else
5484 echo "$ac_t""no" 1>&6
5486 done
5489 # syscall() is needed for smbwrapper.
5490 for ac_func in syscall
5492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5493 echo "configure:5494: checking for $ac_func" >&5
5494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5496 else
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 /* System header to define __stub macros and hopefully few prototypes,
5501 which can conflict with char $ac_func(); below. */
5502 #include <assert.h>
5503 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5506 char $ac_func();
5508 int main() {
5510 /* The GNU C library defines this for functions which it implements
5511 to always fail with ENOSYS. Some functions are actually named
5512 something starting with __ and the normal name is an alias. */
5513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5514 choke me
5515 #else
5516 $ac_func();
5517 #endif
5519 ; return 0; }
5521 if { (eval echo configure:5522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5522 rm -rf conftest*
5523 eval "ac_cv_func_$ac_func=yes"
5524 else
5525 echo "configure: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5527 rm -rf conftest*
5528 eval "ac_cv_func_$ac_func=no"
5530 rm -f conftest*
5533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5534 echo "$ac_t""yes" 1>&6
5535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5536 cat >> confdefs.h <<EOF
5537 #define $ac_tr_func 1
5540 else
5541 echo "$ac_t""no" 1>&6
5543 done
5546 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_func" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5552 else
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557 which can conflict with char $ac_func(); below. */
5558 #include <assert.h>
5559 /* Override any gcc2 internal prototype to avoid an error. */
5560 /* We use char because int might match the return type of a gcc2
5561 builtin and then its argument prototype would still apply. */
5562 char $ac_func();
5564 int main() {
5566 /* The GNU C library defines this for functions which it implements
5567 to always fail with ENOSYS. Some functions are actually named
5568 something starting with __ and the normal name is an alias. */
5569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5570 choke me
5571 #else
5572 $ac_func();
5573 #endif
5575 ; return 0; }
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 rm -rf conftest*
5579 eval "ac_cv_func_$ac_func=yes"
5580 else
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5583 rm -rf conftest*
5584 eval "ac_cv_func_$ac_func=no"
5586 rm -f conftest*
5589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5592 cat >> confdefs.h <<EOF
5593 #define $ac_tr_func 1
5596 else
5597 echo "$ac_t""no" 1>&6
5599 done
5601 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5604 echo "configure:5605: checking for $ac_func" >&5
5605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5607 else
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 /* System header to define __stub macros and hopefully few prototypes,
5612 which can conflict with char $ac_func(); below. */
5613 #include <assert.h>
5614 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5617 char $ac_func();
5619 int main() {
5621 /* The GNU C library defines this for functions which it implements
5622 to always fail with ENOSYS. Some functions are actually named
5623 something starting with __ and the normal name is an alias. */
5624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5625 choke me
5626 #else
5627 $ac_func();
5628 #endif
5630 ; return 0; }
5632 if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5633 rm -rf conftest*
5634 eval "ac_cv_func_$ac_func=yes"
5635 else
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5638 rm -rf conftest*
5639 eval "ac_cv_func_$ac_func=no"
5641 rm -f conftest*
5644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5647 cat >> confdefs.h <<EOF
5648 #define $ac_tr_func 1
5651 else
5652 echo "$ac_t""no" 1>&6
5654 done
5656 for ac_func in __getcwd _getcwd
5658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5659 echo "configure:5660: checking for $ac_func" >&5
5660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5662 else
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5666 /* System header to define __stub macros and hopefully few prototypes,
5667 which can conflict with char $ac_func(); below. */
5668 #include <assert.h>
5669 /* Override any gcc2 internal prototype to avoid an error. */
5670 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5672 char $ac_func();
5674 int main() {
5676 /* The GNU C library defines this for functions which it implements
5677 to always fail with ENOSYS. Some functions are actually named
5678 something starting with __ and the normal name is an alias. */
5679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5680 choke me
5681 #else
5682 $ac_func();
5683 #endif
5685 ; return 0; }
5687 if { (eval echo configure:5688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5688 rm -rf conftest*
5689 eval "ac_cv_func_$ac_func=yes"
5690 else
5691 echo "configure: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5693 rm -rf conftest*
5694 eval "ac_cv_func_$ac_func=no"
5696 rm -f conftest*
5699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5700 echo "$ac_t""yes" 1>&6
5701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5702 cat >> confdefs.h <<EOF
5703 #define $ac_tr_func 1
5706 else
5707 echo "$ac_t""no" 1>&6
5709 done
5711 for ac_func in __xstat __fxstat __lxstat
5713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_func" >&5
5715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5717 else
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 /* System header to define __stub macros and hopefully few prototypes,
5722 which can conflict with char $ac_func(); below. */
5723 #include <assert.h>
5724 /* Override any gcc2 internal prototype to avoid an error. */
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5727 char $ac_func();
5729 int main() {
5731 /* The GNU C library defines this for functions which it implements
5732 to always fail with ENOSYS. Some functions are actually named
5733 something starting with __ and the normal name is an alias. */
5734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5735 choke me
5736 #else
5737 $ac_func();
5738 #endif
5740 ; return 0; }
5742 if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743 rm -rf conftest*
5744 eval "ac_cv_func_$ac_func=yes"
5745 else
5746 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5748 rm -rf conftest*
5749 eval "ac_cv_func_$ac_func=no"
5751 rm -f conftest*
5754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5755 echo "$ac_t""yes" 1>&6
5756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5757 cat >> confdefs.h <<EOF
5758 #define $ac_tr_func 1
5761 else
5762 echo "$ac_t""no" 1>&6
5764 done
5766 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5769 echo "configure:5770: checking for $ac_func" >&5
5770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5772 else
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* System header to define __stub macros and hopefully few prototypes,
5777 which can conflict with char $ac_func(); below. */
5778 #include <assert.h>
5779 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5782 char $ac_func();
5784 int main() {
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5790 choke me
5791 #else
5792 $ac_func();
5793 #endif
5795 ; return 0; }
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5798 rm -rf conftest*
5799 eval "ac_cv_func_$ac_func=yes"
5800 else
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5803 rm -rf conftest*
5804 eval "ac_cv_func_$ac_func=no"
5806 rm -f conftest*
5809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5810 echo "$ac_t""yes" 1>&6
5811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5812 cat >> confdefs.h <<EOF
5813 #define $ac_tr_func 1
5816 else
5817 echo "$ac_t""no" 1>&6
5819 done
5821 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5824 echo "configure:5825: checking for $ac_func" >&5
5825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5827 else
5828 cat > conftest.$ac_ext <<EOF
5829 #line 5830 "configure"
5830 #include "confdefs.h"
5831 /* System header to define __stub macros and hopefully few prototypes,
5832 which can conflict with char $ac_func(); below. */
5833 #include <assert.h>
5834 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5837 char $ac_func();
5839 int main() {
5841 /* The GNU C library defines this for functions which it implements
5842 to always fail with ENOSYS. Some functions are actually named
5843 something starting with __ and the normal name is an alias. */
5844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5845 choke me
5846 #else
5847 $ac_func();
5848 #endif
5850 ; return 0; }
5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5853 rm -rf conftest*
5854 eval "ac_cv_func_$ac_func=yes"
5855 else
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5858 rm -rf conftest*
5859 eval "ac_cv_func_$ac_func=no"
5861 rm -f conftest*
5864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5865 echo "$ac_t""yes" 1>&6
5866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5867 cat >> confdefs.h <<EOF
5868 #define $ac_tr_func 1
5871 else
5872 echo "$ac_t""no" 1>&6
5874 done
5876 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5879 echo "configure:5880: checking for $ac_func" >&5
5880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5882 else
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 /* System header to define __stub macros and hopefully few prototypes,
5887 which can conflict with char $ac_func(); below. */
5888 #include <assert.h>
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5892 char $ac_func();
5894 int main() {
5896 /* The GNU C library defines this for functions which it implements
5897 to always fail with ENOSYS. Some functions are actually named
5898 something starting with __ and the normal name is an alias. */
5899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5900 choke me
5901 #else
5902 $ac_func();
5903 #endif
5905 ; return 0; }
5907 if { (eval echo configure:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5908 rm -rf conftest*
5909 eval "ac_cv_func_$ac_func=yes"
5910 else
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5913 rm -rf conftest*
5914 eval "ac_cv_func_$ac_func=no"
5916 rm -f conftest*
5919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5920 echo "$ac_t""yes" 1>&6
5921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5922 cat >> confdefs.h <<EOF
5923 #define $ac_tr_func 1
5926 else
5927 echo "$ac_t""no" 1>&6
5929 done
5931 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5934 echo "configure:5935: checking for $ac_func" >&5
5935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5937 else
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 /* System header to define __stub macros and hopefully few prototypes,
5942 which can conflict with char $ac_func(); below. */
5943 #include <assert.h>
5944 /* Override any gcc2 internal prototype to avoid an error. */
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5947 char $ac_func();
5949 int main() {
5951 /* The GNU C library defines this for functions which it implements
5952 to always fail with ENOSYS. Some functions are actually named
5953 something starting with __ and the normal name is an alias. */
5954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5955 choke me
5956 #else
5957 $ac_func();
5958 #endif
5960 ; return 0; }
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963 rm -rf conftest*
5964 eval "ac_cv_func_$ac_func=yes"
5965 else
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5968 rm -rf conftest*
5969 eval "ac_cv_func_$ac_func=no"
5971 rm -f conftest*
5974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5975 echo "$ac_t""yes" 1>&6
5976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5977 cat >> confdefs.h <<EOF
5978 #define $ac_tr_func 1
5981 else
5982 echo "$ac_t""no" 1>&6
5984 done
5986 for ac_func in _write __write _fork __fork
5988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_func" >&5
5990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5992 else
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 /* System header to define __stub macros and hopefully few prototypes,
5997 which can conflict with char $ac_func(); below. */
5998 #include <assert.h>
5999 /* Override any gcc2 internal prototype to avoid an error. */
6000 /* We use char because int might match the return type of a gcc2
6001 builtin and then its argument prototype would still apply. */
6002 char $ac_func();
6004 int main() {
6006 /* The GNU C library defines this for functions which it implements
6007 to always fail with ENOSYS. Some functions are actually named
6008 something starting with __ and the normal name is an alias. */
6009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6010 choke me
6011 #else
6012 $ac_func();
6013 #endif
6015 ; return 0; }
6017 if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6018 rm -rf conftest*
6019 eval "ac_cv_func_$ac_func=yes"
6020 else
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6023 rm -rf conftest*
6024 eval "ac_cv_func_$ac_func=no"
6026 rm -f conftest*
6029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6030 echo "$ac_t""yes" 1>&6
6031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6032 cat >> confdefs.h <<EOF
6033 #define $ac_tr_func 1
6036 else
6037 echo "$ac_t""no" 1>&6
6039 done
6041 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6044 echo "configure:6045: checking for $ac_func" >&5
6045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6047 else
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 /* System header to define __stub macros and hopefully few prototypes,
6052 which can conflict with char $ac_func(); below. */
6053 #include <assert.h>
6054 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6057 char $ac_func();
6059 int main() {
6061 /* The GNU C library defines this for functions which it implements
6062 to always fail with ENOSYS. Some functions are actually named
6063 something starting with __ and the normal name is an alias. */
6064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6065 choke me
6066 #else
6067 $ac_func();
6068 #endif
6070 ; return 0; }
6072 if { (eval echo configure:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6073 rm -rf conftest*
6074 eval "ac_cv_func_$ac_func=yes"
6075 else
6076 echo "configure: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6078 rm -rf conftest*
6079 eval "ac_cv_func_$ac_func=no"
6081 rm -f conftest*
6084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6085 echo "$ac_t""yes" 1>&6
6086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6087 cat >> confdefs.h <<EOF
6088 #define $ac_tr_func 1
6091 else
6092 echo "$ac_t""no" 1>&6
6094 done
6096 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6099 echo "configure:6100: checking for $ac_func" >&5
6100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6102 else
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6106 /* System header to define __stub macros and hopefully few prototypes,
6107 which can conflict with char $ac_func(); below. */
6108 #include <assert.h>
6109 /* Override any gcc2 internal prototype to avoid an error. */
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6112 char $ac_func();
6114 int main() {
6116 /* The GNU C library defines this for functions which it implements
6117 to always fail with ENOSYS. Some functions are actually named
6118 something starting with __ and the normal name is an alias. */
6119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6120 choke me
6121 #else
6122 $ac_func();
6123 #endif
6125 ; return 0; }
6127 if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6128 rm -rf conftest*
6129 eval "ac_cv_func_$ac_func=yes"
6130 else
6131 echo "configure: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 rm -rf conftest*
6134 eval "ac_cv_func_$ac_func=no"
6136 rm -f conftest*
6139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6140 echo "$ac_t""yes" 1>&6
6141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6142 cat >> confdefs.h <<EOF
6143 #define $ac_tr_func 1
6146 else
6147 echo "$ac_t""no" 1>&6
6149 done
6151 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6154 echo "configure:6155: checking for $ac_func" >&5
6155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6156 echo $ac_n "(cached) $ac_c" 1>&6
6157 else
6158 cat > conftest.$ac_ext <<EOF
6159 #line 6160 "configure"
6160 #include "confdefs.h"
6161 /* System header to define __stub macros and hopefully few prototypes,
6162 which can conflict with char $ac_func(); below. */
6163 #include <assert.h>
6164 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6167 char $ac_func();
6169 int main() {
6171 /* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
6174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6175 choke me
6176 #else
6177 $ac_func();
6178 #endif
6180 ; return 0; }
6182 if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183 rm -rf conftest*
6184 eval "ac_cv_func_$ac_func=yes"
6185 else
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6188 rm -rf conftest*
6189 eval "ac_cv_func_$ac_func=no"
6191 rm -f conftest*
6194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6197 cat >> confdefs.h <<EOF
6198 #define $ac_tr_func 1
6201 else
6202 echo "$ac_t""no" 1>&6
6204 done
6206 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6209 echo "configure:6210: checking for $ac_func" >&5
6210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6212 else
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 /* System header to define __stub macros and hopefully few prototypes,
6217 which can conflict with char $ac_func(); below. */
6218 #include <assert.h>
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6222 char $ac_func();
6224 int main() {
6226 /* The GNU C library defines this for functions which it implements
6227 to always fail with ENOSYS. Some functions are actually named
6228 something starting with __ and the normal name is an alias. */
6229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6230 choke me
6231 #else
6232 $ac_func();
6233 #endif
6235 ; return 0; }
6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6238 rm -rf conftest*
6239 eval "ac_cv_func_$ac_func=yes"
6240 else
6241 echo "configure: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6243 rm -rf conftest*
6244 eval "ac_cv_func_$ac_func=no"
6246 rm -f conftest*
6249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6250 echo "$ac_t""yes" 1>&6
6251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6252 cat >> confdefs.h <<EOF
6253 #define $ac_tr_func 1
6256 else
6257 echo "$ac_t""no" 1>&6
6259 done
6261 for ac_func in open64 _open64 __open64 creat64
6263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6264 echo "configure:6265: checking for $ac_func" >&5
6265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6267 else
6268 cat > conftest.$ac_ext <<EOF
6269 #line 6270 "configure"
6270 #include "confdefs.h"
6271 /* System header to define __stub macros and hopefully few prototypes,
6272 which can conflict with char $ac_func(); below. */
6273 #include <assert.h>
6274 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6277 char $ac_func();
6279 int main() {
6281 /* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
6284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6285 choke me
6286 #else
6287 $ac_func();
6288 #endif
6290 ; return 0; }
6292 if { (eval echo configure:6293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6293 rm -rf conftest*
6294 eval "ac_cv_func_$ac_func=yes"
6295 else
6296 echo "configure: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6298 rm -rf conftest*
6299 eval "ac_cv_func_$ac_func=no"
6301 rm -f conftest*
6304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6305 echo "$ac_t""yes" 1>&6
6306 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6307 cat >> confdefs.h <<EOF
6308 #define $ac_tr_func 1
6311 else
6312 echo "$ac_t""no" 1>&6
6314 done
6318 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6321 if test x$ac_cv_func_stat64 = xno ; then
6322 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6323 echo "configure:6324: checking for stat64 in <sys/stat.h>" >&5
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6328 #if defined(HAVE_UNISTD_H)
6329 #include <unistd.h>
6330 #endif
6331 #include <sys/stat.h>
6333 int main() {
6334 struct stat64 st64; exit(stat64(".",&st64));
6335 ; return 0; }
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 rm -rf conftest*
6339 ac_cv_func_stat64=yes
6340 else
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6344 rm -f conftest*
6345 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6346 if test x$ac_cv_func_stat64 = xyes ; then
6347 cat >> confdefs.h <<\EOF
6348 #define HAVE_STAT64 1
6354 if test x$ac_cv_func_lstat64 = xno ; then
6355 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6356 echo "configure:6357: checking for lstat64 in <sys/stat.h>" >&5
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6361 #if defined(HAVE_UNISTD_H)
6362 #include <unistd.h>
6363 #endif
6364 #include <sys/stat.h>
6366 int main() {
6367 struct stat64 st64; exit(lstat64(".",&st64));
6368 ; return 0; }
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6371 rm -rf conftest*
6372 ac_cv_func_lstat64=yes
6373 else
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6377 rm -f conftest*
6378 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6379 if test x$ac_cv_func_lstat64 = xyes ; then
6380 cat >> confdefs.h <<\EOF
6381 #define HAVE_LSTAT64 1
6387 if test x$ac_cv_func_fstat64 = xno ; then
6388 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6389 echo "configure:6390: checking for fstat64 in <sys/stat.h>" >&5
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6394 #if defined(HAVE_UNISTD_H)
6395 #include <unistd.h>
6396 #endif
6397 #include <sys/stat.h>
6399 int main() {
6400 struct stat64 st64; exit(fstat64(0,&st64));
6401 ; return 0; }
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 rm -rf conftest*
6405 ac_cv_func_fstat64=yes
6406 else
6407 echo "configure: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6410 rm -f conftest*
6411 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6412 if test x$ac_cv_func_fstat64 = xyes ; then
6413 cat >> confdefs.h <<\EOF
6414 #define HAVE_FSTAT64 1
6421 # If no strcasecmp, check for it in some known places
6422 # It is in -lresolv on ReliantUNIX and UnixWare
6423 # -lresolve *must* follow -lnsl for name resolution to work properly
6426 if test x$ac_cv_func_strcasecmp = xno ; then
6427 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6428 echo "configure:6429: checking for strcasecmp in -lresolv" >&5
6429 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6432 else
6433 ac_save_LIBS="$LIBS"
6434 LIBS="-lresolv $LIBS"
6435 cat > conftest.$ac_ext <<EOF
6436 #line 6437 "configure"
6437 #include "confdefs.h"
6438 /* Override any gcc2 internal prototype to avoid an error. */
6439 /* We use char because int might match the return type of a gcc2
6440 builtin and then its argument prototype would still apply. */
6441 char strcasecmp();
6443 int main() {
6444 strcasecmp()
6445 ; return 0; }
6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6448 rm -rf conftest*
6449 eval "ac_cv_lib_$ac_lib_var=yes"
6450 else
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6453 rm -rf conftest*
6454 eval "ac_cv_lib_$ac_lib_var=no"
6456 rm -f conftest*
6457 LIBS="$ac_save_LIBS"
6460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 LIBS="$LIBS -lresolv"
6463 cat >> confdefs.h <<\EOF
6464 #define HAVE_STRCASECMP 1
6467 else
6468 echo "$ac_t""no" 1>&6
6474 # Check for the functions putprpwnam, set_auth_parameters,
6475 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6476 # Needed for OSF1 and HPUX.
6479 case "$LIBS" in
6480 *-lsecurity*) for ac_func in putprpwnam
6482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6483 echo "configure:6484: checking for $ac_func" >&5
6484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6486 else
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 /* System header to define __stub macros and hopefully few prototypes,
6491 which can conflict with char $ac_func(); below. */
6492 #include <assert.h>
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 /* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6496 char $ac_func();
6498 int main() {
6500 /* The GNU C library defines this for functions which it implements
6501 to always fail with ENOSYS. Some functions are actually named
6502 something starting with __ and the normal name is an alias. */
6503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6504 choke me
6505 #else
6506 $ac_func();
6507 #endif
6509 ; return 0; }
6511 if { (eval echo configure:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6512 rm -rf conftest*
6513 eval "ac_cv_func_$ac_func=yes"
6514 else
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6517 rm -rf conftest*
6518 eval "ac_cv_func_$ac_func=no"
6520 rm -f conftest*
6523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6524 echo "$ac_t""yes" 1>&6
6525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6526 cat >> confdefs.h <<EOF
6527 #define $ac_tr_func 1
6530 else
6531 echo "$ac_t""no" 1>&6
6533 done
6535 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6536 echo "configure:6537: checking for putprpwnam in -lsecurity" >&5
6537 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6540 else
6541 ac_save_LIBS="$LIBS"
6542 LIBS="-lsecurity $LIBS"
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* Override any gcc2 internal prototype to avoid an error. */
6547 /* We use char because int might match the return type of a gcc2
6548 builtin and then its argument prototype would still apply. */
6549 char putprpwnam();
6551 int main() {
6552 putprpwnam()
6553 ; return 0; }
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6556 rm -rf conftest*
6557 eval "ac_cv_lib_$ac_lib_var=yes"
6558 else
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6561 rm -rf conftest*
6562 eval "ac_cv_lib_$ac_lib_var=no"
6564 rm -f conftest*
6565 LIBS="$ac_save_LIBS"
6568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6569 echo "$ac_t""yes" 1>&6
6570 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6571 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6572 cat >> confdefs.h <<EOF
6573 #define $ac_tr_lib 1
6576 LIBS="-lsecurity $LIBS"
6578 else
6579 echo "$ac_t""no" 1>&6
6582 for ac_func in putprpwnam
6584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_func" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6588 else
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func(); below. */
6594 #include <assert.h>
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6598 char $ac_func();
6600 int main() {
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6606 choke me
6607 #else
6608 $ac_func();
6609 #endif
6611 ; return 0; }
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6614 rm -rf conftest*
6615 eval "ac_cv_func_$ac_func=yes"
6616 else
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6619 rm -rf conftest*
6620 eval "ac_cv_func_$ac_func=no"
6622 rm -f conftest*
6625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6628 cat >> confdefs.h <<EOF
6629 #define $ac_tr_func 1
6632 else
6633 echo "$ac_t""no" 1>&6
6635 done
6638 esac
6640 case "$LIBS" in
6641 *-lsec*) for ac_func in putprpwnam
6643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6644 echo "configure:6645: checking for $ac_func" >&5
6645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6647 else
6648 cat > conftest.$ac_ext <<EOF
6649 #line 6650 "configure"
6650 #include "confdefs.h"
6651 /* System header to define __stub macros and hopefully few prototypes,
6652 which can conflict with char $ac_func(); below. */
6653 #include <assert.h>
6654 /* Override any gcc2 internal prototype to avoid an error. */
6655 /* We use char because int might match the return type of a gcc2
6656 builtin and then its argument prototype would still apply. */
6657 char $ac_func();
6659 int main() {
6661 /* The GNU C library defines this for functions which it implements
6662 to always fail with ENOSYS. Some functions are actually named
6663 something starting with __ and the normal name is an alias. */
6664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6665 choke me
6666 #else
6667 $ac_func();
6668 #endif
6670 ; return 0; }
6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 rm -rf conftest*
6674 eval "ac_cv_func_$ac_func=yes"
6675 else
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6678 rm -rf conftest*
6679 eval "ac_cv_func_$ac_func=no"
6681 rm -f conftest*
6684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6685 echo "$ac_t""yes" 1>&6
6686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6687 cat >> confdefs.h <<EOF
6688 #define $ac_tr_func 1
6691 else
6692 echo "$ac_t""no" 1>&6
6694 done
6696 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6697 echo "configure:6698: checking for putprpwnam in -lsec" >&5
6698 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6
6701 else
6702 ac_save_LIBS="$LIBS"
6703 LIBS="-lsec $LIBS"
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* Override any gcc2 internal prototype to avoid an error. */
6708 /* We use char because int might match the return type of a gcc2
6709 builtin and then its argument prototype would still apply. */
6710 char putprpwnam();
6712 int main() {
6713 putprpwnam()
6714 ; return 0; }
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6717 rm -rf conftest*
6718 eval "ac_cv_lib_$ac_lib_var=yes"
6719 else
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6722 rm -rf conftest*
6723 eval "ac_cv_lib_$ac_lib_var=no"
6725 rm -f conftest*
6726 LIBS="$ac_save_LIBS"
6729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6730 echo "$ac_t""yes" 1>&6
6731 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6732 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6733 cat >> confdefs.h <<EOF
6734 #define $ac_tr_lib 1
6737 LIBS="-lsec $LIBS"
6739 else
6740 echo "$ac_t""no" 1>&6
6743 for ac_func in putprpwnam
6745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6746 echo "configure:6747: checking for $ac_func" >&5
6747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6749 else
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char $ac_func(); below. */
6755 #include <assert.h>
6756 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char $ac_func();
6761 int main() {
6763 /* The GNU C library defines this for functions which it implements
6764 to always fail with ENOSYS. Some functions are actually named
6765 something starting with __ and the normal name is an alias. */
6766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6767 choke me
6768 #else
6769 $ac_func();
6770 #endif
6772 ; return 0; }
6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6775 rm -rf conftest*
6776 eval "ac_cv_func_$ac_func=yes"
6777 else
6778 echo "configure: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6780 rm -rf conftest*
6781 eval "ac_cv_func_$ac_func=no"
6783 rm -f conftest*
6786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6789 cat >> confdefs.h <<EOF
6790 #define $ac_tr_func 1
6793 else
6794 echo "$ac_t""no" 1>&6
6796 done
6799 esac
6802 case "$LIBS" in
6803 *-lsecurity*) for ac_func in set_auth_parameters
6805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6806 echo "configure:6807: checking for $ac_func" >&5
6807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809 else
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* System header to define __stub macros and hopefully few prototypes,
6814 which can conflict with char $ac_func(); below. */
6815 #include <assert.h>
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819 char $ac_func();
6821 int main() {
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 choke me
6828 #else
6829 $ac_func();
6830 #endif
6832 ; return 0; }
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 rm -rf conftest*
6836 eval "ac_cv_func_$ac_func=yes"
6837 else
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 rm -rf conftest*
6841 eval "ac_cv_func_$ac_func=no"
6843 rm -f conftest*
6846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6849 cat >> confdefs.h <<EOF
6850 #define $ac_tr_func 1
6853 else
6854 echo "$ac_t""no" 1>&6
6856 done
6858 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6859 echo "configure:6860: checking for set_auth_parameters in -lsecurity" >&5
6860 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6863 else
6864 ac_save_LIBS="$LIBS"
6865 LIBS="-lsecurity $LIBS"
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char set_auth_parameters();
6874 int main() {
6875 set_auth_parameters()
6876 ; return 0; }
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879 rm -rf conftest*
6880 eval "ac_cv_lib_$ac_lib_var=yes"
6881 else
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 rm -rf conftest*
6885 eval "ac_cv_lib_$ac_lib_var=no"
6887 rm -f conftest*
6888 LIBS="$ac_save_LIBS"
6891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6895 cat >> confdefs.h <<EOF
6896 #define $ac_tr_lib 1
6899 LIBS="-lsecurity $LIBS"
6901 else
6902 echo "$ac_t""no" 1>&6
6905 for ac_func in set_auth_parameters
6907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6908 echo "configure:6909: checking for $ac_func" >&5
6909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6911 else
6912 cat > conftest.$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6915 /* System header to define __stub macros and hopefully few prototypes,
6916 which can conflict with char $ac_func(); below. */
6917 #include <assert.h>
6918 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6921 char $ac_func();
6923 int main() {
6925 /* The GNU C library defines this for functions which it implements
6926 to always fail with ENOSYS. Some functions are actually named
6927 something starting with __ and the normal name is an alias. */
6928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6929 choke me
6930 #else
6931 $ac_func();
6932 #endif
6934 ; return 0; }
6936 if { (eval echo configure:6937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 rm -rf conftest*
6938 eval "ac_cv_func_$ac_func=yes"
6939 else
6940 echo "configure: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6942 rm -rf conftest*
6943 eval "ac_cv_func_$ac_func=no"
6945 rm -f conftest*
6948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6949 echo "$ac_t""yes" 1>&6
6950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6951 cat >> confdefs.h <<EOF
6952 #define $ac_tr_func 1
6955 else
6956 echo "$ac_t""no" 1>&6
6958 done
6961 esac
6963 case "$LIBS" in
6964 *-lsec*) for ac_func in set_auth_parameters
6966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6967 echo "configure:6968: checking for $ac_func" >&5
6968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6970 else
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char $ac_func(); below. */
6976 #include <assert.h>
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6980 char $ac_func();
6982 int main() {
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6988 choke me
6989 #else
6990 $ac_func();
6991 #endif
6993 ; return 0; }
6995 if { (eval echo configure:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 rm -rf conftest*
6997 eval "ac_cv_func_$ac_func=yes"
6998 else
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7001 rm -rf conftest*
7002 eval "ac_cv_func_$ac_func=no"
7004 rm -f conftest*
7007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7008 echo "$ac_t""yes" 1>&6
7009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7010 cat >> confdefs.h <<EOF
7011 #define $ac_tr_func 1
7014 else
7015 echo "$ac_t""no" 1>&6
7017 done
7019 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7020 echo "configure:7021: checking for set_auth_parameters in -lsec" >&5
7021 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7024 else
7025 ac_save_LIBS="$LIBS"
7026 LIBS="-lsec $LIBS"
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7033 char set_auth_parameters();
7035 int main() {
7036 set_auth_parameters()
7037 ; return 0; }
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 rm -rf conftest*
7041 eval "ac_cv_lib_$ac_lib_var=yes"
7042 else
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 rm -rf conftest*
7046 eval "ac_cv_lib_$ac_lib_var=no"
7048 rm -f conftest*
7049 LIBS="$ac_save_LIBS"
7052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7056 cat >> confdefs.h <<EOF
7057 #define $ac_tr_lib 1
7060 LIBS="-lsec $LIBS"
7062 else
7063 echo "$ac_t""no" 1>&6
7066 for ac_func in set_auth_parameters
7068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7069 echo "configure:7070: checking for $ac_func" >&5
7070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7072 else
7073 cat > conftest.$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7076 /* System header to define __stub macros and hopefully few prototypes,
7077 which can conflict with char $ac_func(); below. */
7078 #include <assert.h>
7079 /* Override any gcc2 internal prototype to avoid an error. */
7080 /* We use char because int might match the return type of a gcc2
7081 builtin and then its argument prototype would still apply. */
7082 char $ac_func();
7084 int main() {
7086 /* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */
7089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7090 choke me
7091 #else
7092 $ac_func();
7093 #endif
7095 ; return 0; }
7097 if { (eval echo configure:7098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7098 rm -rf conftest*
7099 eval "ac_cv_func_$ac_func=yes"
7100 else
7101 echo "configure: failed program was:" >&5
7102 cat conftest.$ac_ext >&5
7103 rm -rf conftest*
7104 eval "ac_cv_func_$ac_func=no"
7106 rm -f conftest*
7109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7110 echo "$ac_t""yes" 1>&6
7111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7112 cat >> confdefs.h <<EOF
7113 #define $ac_tr_func 1
7116 else
7117 echo "$ac_t""no" 1>&6
7119 done
7122 esac
7125 # UnixWare 7.x has its getspnam in -lgen
7126 case "$LIBS" in
7127 *-lgen*) for ac_func in getspnam
7129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7130 echo "configure:7131: checking for $ac_func" >&5
7131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7133 else
7134 cat > conftest.$ac_ext <<EOF
7135 #line 7136 "configure"
7136 #include "confdefs.h"
7137 /* System header to define __stub macros and hopefully few prototypes,
7138 which can conflict with char $ac_func(); below. */
7139 #include <assert.h>
7140 /* Override any gcc2 internal prototype to avoid an error. */
7141 /* We use char because int might match the return type of a gcc2
7142 builtin and then its argument prototype would still apply. */
7143 char $ac_func();
7145 int main() {
7147 /* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
7150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7151 choke me
7152 #else
7153 $ac_func();
7154 #endif
7156 ; return 0; }
7158 if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7159 rm -rf conftest*
7160 eval "ac_cv_func_$ac_func=yes"
7161 else
7162 echo "configure: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7164 rm -rf conftest*
7165 eval "ac_cv_func_$ac_func=no"
7167 rm -f conftest*
7170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7173 cat >> confdefs.h <<EOF
7174 #define $ac_tr_func 1
7177 else
7178 echo "$ac_t""no" 1>&6
7180 done
7182 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7183 echo "configure:7184: checking for getspnam in -lgen" >&5
7184 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7186 echo $ac_n "(cached) $ac_c" 1>&6
7187 else
7188 ac_save_LIBS="$LIBS"
7189 LIBS="-lgen $LIBS"
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 /* Override any gcc2 internal prototype to avoid an error. */
7194 /* We use char because int might match the return type of a gcc2
7195 builtin and then its argument prototype would still apply. */
7196 char getspnam();
7198 int main() {
7199 getspnam()
7200 ; return 0; }
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7203 rm -rf conftest*
7204 eval "ac_cv_lib_$ac_lib_var=yes"
7205 else
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 rm -rf conftest*
7209 eval "ac_cv_lib_$ac_lib_var=no"
7211 rm -f conftest*
7212 LIBS="$ac_save_LIBS"
7215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7216 echo "$ac_t""yes" 1>&6
7217 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7219 cat >> confdefs.h <<EOF
7220 #define $ac_tr_lib 1
7223 LIBS="-lgen $LIBS"
7225 else
7226 echo "$ac_t""no" 1>&6
7229 for ac_func in getspnam
7231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_func" >&5
7233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7235 else
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* System header to define __stub macros and hopefully few prototypes,
7240 which can conflict with char $ac_func(); below. */
7241 #include <assert.h>
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7245 char $ac_func();
7247 int main() {
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7253 choke me
7254 #else
7255 $ac_func();
7256 #endif
7258 ; return 0; }
7260 if { (eval echo configure:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7261 rm -rf conftest*
7262 eval "ac_cv_func_$ac_func=yes"
7263 else
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7266 rm -rf conftest*
7267 eval "ac_cv_func_$ac_func=no"
7269 rm -f conftest*
7272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7275 cat >> confdefs.h <<EOF
7276 #define $ac_tr_func 1
7279 else
7280 echo "$ac_t""no" 1>&6
7282 done
7285 esac
7288 case "$LIBS" in
7289 *-lsecurity*) for ac_func in getspnam
7291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7292 echo "configure:7293: checking for $ac_func" >&5
7293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7295 else
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* System header to define __stub macros and hopefully few prototypes,
7300 which can conflict with char $ac_func(); below. */
7301 #include <assert.h>
7302 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7305 char $ac_func();
7307 int main() {
7309 /* The GNU C library defines this for functions which it implements
7310 to always fail with ENOSYS. Some functions are actually named
7311 something starting with __ and the normal name is an alias. */
7312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7313 choke me
7314 #else
7315 $ac_func();
7316 #endif
7318 ; return 0; }
7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7321 rm -rf conftest*
7322 eval "ac_cv_func_$ac_func=yes"
7323 else
7324 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 rm -rf conftest*
7327 eval "ac_cv_func_$ac_func=no"
7329 rm -f conftest*
7332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7333 echo "$ac_t""yes" 1>&6
7334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7335 cat >> confdefs.h <<EOF
7336 #define $ac_tr_func 1
7339 else
7340 echo "$ac_t""no" 1>&6
7342 done
7344 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7345 echo "configure:7346: checking for getspnam in -lsecurity" >&5
7346 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7349 else
7350 ac_save_LIBS="$LIBS"
7351 LIBS="-lsecurity $LIBS"
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 /* Override any gcc2 internal prototype to avoid an error. */
7356 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7358 char getspnam();
7360 int main() {
7361 getspnam()
7362 ; return 0; }
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365 rm -rf conftest*
7366 eval "ac_cv_lib_$ac_lib_var=yes"
7367 else
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 rm -rf conftest*
7371 eval "ac_cv_lib_$ac_lib_var=no"
7373 rm -f conftest*
7374 LIBS="$ac_save_LIBS"
7377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7378 echo "$ac_t""yes" 1>&6
7379 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7381 cat >> confdefs.h <<EOF
7382 #define $ac_tr_lib 1
7385 LIBS="-lsecurity $LIBS"
7387 else
7388 echo "$ac_t""no" 1>&6
7391 for ac_func in getspnam
7393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7394 echo "configure:7395: checking for $ac_func" >&5
7395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7397 else
7398 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* System header to define __stub macros and hopefully few prototypes,
7402 which can conflict with char $ac_func(); below. */
7403 #include <assert.h>
7404 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7407 char $ac_func();
7409 int main() {
7411 /* The GNU C library defines this for functions which it implements
7412 to always fail with ENOSYS. Some functions are actually named
7413 something starting with __ and the normal name is an alias. */
7414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7415 choke me
7416 #else
7417 $ac_func();
7418 #endif
7420 ; return 0; }
7422 if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7423 rm -rf conftest*
7424 eval "ac_cv_func_$ac_func=yes"
7425 else
7426 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 rm -rf conftest*
7429 eval "ac_cv_func_$ac_func=no"
7431 rm -f conftest*
7434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7437 cat >> confdefs.h <<EOF
7438 #define $ac_tr_func 1
7441 else
7442 echo "$ac_t""no" 1>&6
7444 done
7447 esac
7449 case "$LIBS" in
7450 *-lsec*) for ac_func in getspnam
7452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7453 echo "configure:7454: checking for $ac_func" >&5
7454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7456 else
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* System header to define __stub macros and hopefully few prototypes,
7461 which can conflict with char $ac_func(); below. */
7462 #include <assert.h>
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7466 char $ac_func();
7468 int main() {
7470 /* The GNU C library defines this for functions which it implements
7471 to always fail with ENOSYS. Some functions are actually named
7472 something starting with __ and the normal name is an alias. */
7473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7474 choke me
7475 #else
7476 $ac_func();
7477 #endif
7479 ; return 0; }
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482 rm -rf conftest*
7483 eval "ac_cv_func_$ac_func=yes"
7484 else
7485 echo "configure: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7487 rm -rf conftest*
7488 eval "ac_cv_func_$ac_func=no"
7490 rm -f conftest*
7493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7496 cat >> confdefs.h <<EOF
7497 #define $ac_tr_func 1
7500 else
7501 echo "$ac_t""no" 1>&6
7503 done
7505 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7506 echo "configure:7507: checking for getspnam in -lsec" >&5
7507 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7510 else
7511 ac_save_LIBS="$LIBS"
7512 LIBS="-lsec $LIBS"
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 /* Override any gcc2 internal prototype to avoid an error. */
7517 /* We use char because int might match the return type of a gcc2
7518 builtin and then its argument prototype would still apply. */
7519 char getspnam();
7521 int main() {
7522 getspnam()
7523 ; return 0; }
7525 if { (eval echo configure:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7526 rm -rf conftest*
7527 eval "ac_cv_lib_$ac_lib_var=yes"
7528 else
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7531 rm -rf conftest*
7532 eval "ac_cv_lib_$ac_lib_var=no"
7534 rm -f conftest*
7535 LIBS="$ac_save_LIBS"
7538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7539 echo "$ac_t""yes" 1>&6
7540 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7542 cat >> confdefs.h <<EOF
7543 #define $ac_tr_lib 1
7546 LIBS="-lsec $LIBS"
7548 else
7549 echo "$ac_t""no" 1>&6
7552 for ac_func in getspnam
7554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7555 echo "configure:7556: checking for $ac_func" >&5
7556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7558 else
7559 cat > conftest.$ac_ext <<EOF
7560 #line 7561 "configure"
7561 #include "confdefs.h"
7562 /* System header to define __stub macros and hopefully few prototypes,
7563 which can conflict with char $ac_func(); below. */
7564 #include <assert.h>
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7568 char $ac_func();
7570 int main() {
7572 /* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7576 choke me
7577 #else
7578 $ac_func();
7579 #endif
7581 ; return 0; }
7583 if { (eval echo configure:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7584 rm -rf conftest*
7585 eval "ac_cv_func_$ac_func=yes"
7586 else
7587 echo "configure: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7589 rm -rf conftest*
7590 eval "ac_cv_func_$ac_func=no"
7592 rm -f conftest*
7595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7598 cat >> confdefs.h <<EOF
7599 #define $ac_tr_func 1
7602 else
7603 echo "$ac_t""no" 1>&6
7605 done
7608 esac
7611 case "$LIBS" in
7612 *-lsecurity*) for ac_func in bigcrypt
7614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7615 echo "configure:7616: checking for $ac_func" >&5
7616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7618 else
7619 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* System header to define __stub macros and hopefully few prototypes,
7623 which can conflict with char $ac_func(); below. */
7624 #include <assert.h>
7625 /* Override any gcc2 internal prototype to avoid an error. */
7626 /* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7628 char $ac_func();
7630 int main() {
7632 /* The GNU C library defines this for functions which it implements
7633 to always fail with ENOSYS. Some functions are actually named
7634 something starting with __ and the normal name is an alias. */
7635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7636 choke me
7637 #else
7638 $ac_func();
7639 #endif
7641 ; return 0; }
7643 if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7644 rm -rf conftest*
7645 eval "ac_cv_func_$ac_func=yes"
7646 else
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7649 rm -rf conftest*
7650 eval "ac_cv_func_$ac_func=no"
7652 rm -f conftest*
7655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7656 echo "$ac_t""yes" 1>&6
7657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7658 cat >> confdefs.h <<EOF
7659 #define $ac_tr_func 1
7662 else
7663 echo "$ac_t""no" 1>&6
7665 done
7667 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7668 echo "configure:7669: checking for bigcrypt in -lsecurity" >&5
7669 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7672 else
7673 ac_save_LIBS="$LIBS"
7674 LIBS="-lsecurity $LIBS"
7675 cat > conftest.$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* Override any gcc2 internal prototype to avoid an error. */
7679 /* We use char because int might match the return type of a gcc2
7680 builtin and then its argument prototype would still apply. */
7681 char bigcrypt();
7683 int main() {
7684 bigcrypt()
7685 ; return 0; }
7687 if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 rm -rf conftest*
7689 eval "ac_cv_lib_$ac_lib_var=yes"
7690 else
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -rf conftest*
7694 eval "ac_cv_lib_$ac_lib_var=no"
7696 rm -f conftest*
7697 LIBS="$ac_save_LIBS"
7700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7701 echo "$ac_t""yes" 1>&6
7702 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7704 cat >> confdefs.h <<EOF
7705 #define $ac_tr_lib 1
7708 LIBS="-lsecurity $LIBS"
7710 else
7711 echo "$ac_t""no" 1>&6
7714 for ac_func in bigcrypt
7716 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7717 echo "configure:7718: checking for $ac_func" >&5
7718 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7720 else
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char $ac_func(); below. */
7726 #include <assert.h>
7727 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7730 char $ac_func();
7732 int main() {
7734 /* The GNU C library defines this for functions which it implements
7735 to always fail with ENOSYS. Some functions are actually named
7736 something starting with __ and the normal name is an alias. */
7737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7738 choke me
7739 #else
7740 $ac_func();
7741 #endif
7743 ; return 0; }
7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7746 rm -rf conftest*
7747 eval "ac_cv_func_$ac_func=yes"
7748 else
7749 echo "configure: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 rm -rf conftest*
7752 eval "ac_cv_func_$ac_func=no"
7754 rm -f conftest*
7757 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7758 echo "$ac_t""yes" 1>&6
7759 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7760 cat >> confdefs.h <<EOF
7761 #define $ac_tr_func 1
7764 else
7765 echo "$ac_t""no" 1>&6
7767 done
7770 esac
7772 case "$LIBS" in
7773 *-lsec*) for ac_func in bigcrypt
7775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7776 echo "configure:7777: checking for $ac_func" >&5
7777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7779 else
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char $ac_func(); below. */
7785 #include <assert.h>
7786 /* Override any gcc2 internal prototype to avoid an error. */
7787 /* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
7789 char $ac_func();
7791 int main() {
7793 /* The GNU C library defines this for functions which it implements
7794 to always fail with ENOSYS. Some functions are actually named
7795 something starting with __ and the normal name is an alias. */
7796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7797 choke me
7798 #else
7799 $ac_func();
7800 #endif
7802 ; return 0; }
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7805 rm -rf conftest*
7806 eval "ac_cv_func_$ac_func=yes"
7807 else
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7810 rm -rf conftest*
7811 eval "ac_cv_func_$ac_func=no"
7813 rm -f conftest*
7816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7817 echo "$ac_t""yes" 1>&6
7818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7819 cat >> confdefs.h <<EOF
7820 #define $ac_tr_func 1
7823 else
7824 echo "$ac_t""no" 1>&6
7826 done
7828 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7829 echo "configure:7830: checking for bigcrypt in -lsec" >&5
7830 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7833 else
7834 ac_save_LIBS="$LIBS"
7835 LIBS="-lsec $LIBS"
7836 cat > conftest.$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* Override any gcc2 internal prototype to avoid an error. */
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7842 char bigcrypt();
7844 int main() {
7845 bigcrypt()
7846 ; return 0; }
7848 if { (eval echo configure:7849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7849 rm -rf conftest*
7850 eval "ac_cv_lib_$ac_lib_var=yes"
7851 else
7852 echo "configure: failed program was:" >&5
7853 cat conftest.$ac_ext >&5
7854 rm -rf conftest*
7855 eval "ac_cv_lib_$ac_lib_var=no"
7857 rm -f conftest*
7858 LIBS="$ac_save_LIBS"
7861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7865 cat >> confdefs.h <<EOF
7866 #define $ac_tr_lib 1
7869 LIBS="-lsec $LIBS"
7871 else
7872 echo "$ac_t""no" 1>&6
7875 for ac_func in bigcrypt
7877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_func" >&5
7879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7881 else
7882 cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7885 /* System header to define __stub macros and hopefully few prototypes,
7886 which can conflict with char $ac_func(); below. */
7887 #include <assert.h>
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891 char $ac_func();
7893 int main() {
7895 /* The GNU C library defines this for functions which it implements
7896 to always fail with ENOSYS. Some functions are actually named
7897 something starting with __ and the normal name is an alias. */
7898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7899 choke me
7900 #else
7901 $ac_func();
7902 #endif
7904 ; return 0; }
7906 if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7907 rm -rf conftest*
7908 eval "ac_cv_func_$ac_func=yes"
7909 else
7910 echo "configure: failed program was:" >&5
7911 cat conftest.$ac_ext >&5
7912 rm -rf conftest*
7913 eval "ac_cv_func_$ac_func=no"
7915 rm -f conftest*
7918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7921 cat >> confdefs.h <<EOF
7922 #define $ac_tr_func 1
7925 else
7926 echo "$ac_t""no" 1>&6
7928 done
7931 esac
7934 case "$LIBS" in
7935 *-lsecurity*) for ac_func in getprpwnam
7937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7938 echo "configure:7939: checking for $ac_func" >&5
7939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7941 else
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945 /* System header to define __stub macros and hopefully few prototypes,
7946 which can conflict with char $ac_func(); below. */
7947 #include <assert.h>
7948 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7951 char $ac_func();
7953 int main() {
7955 /* The GNU C library defines this for functions which it implements
7956 to always fail with ENOSYS. Some functions are actually named
7957 something starting with __ and the normal name is an alias. */
7958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7959 choke me
7960 #else
7961 $ac_func();
7962 #endif
7964 ; return 0; }
7966 if { (eval echo configure:7967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7967 rm -rf conftest*
7968 eval "ac_cv_func_$ac_func=yes"
7969 else
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7972 rm -rf conftest*
7973 eval "ac_cv_func_$ac_func=no"
7975 rm -f conftest*
7978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7979 echo "$ac_t""yes" 1>&6
7980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7981 cat >> confdefs.h <<EOF
7982 #define $ac_tr_func 1
7985 else
7986 echo "$ac_t""no" 1>&6
7988 done
7990 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7991 echo "configure:7992: checking for getprpwnam in -lsecurity" >&5
7992 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7994 echo $ac_n "(cached) $ac_c" 1>&6
7995 else
7996 ac_save_LIBS="$LIBS"
7997 LIBS="-lsecurity $LIBS"
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 /* Override any gcc2 internal prototype to avoid an error. */
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8004 char getprpwnam();
8006 int main() {
8007 getprpwnam()
8008 ; return 0; }
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011 rm -rf conftest*
8012 eval "ac_cv_lib_$ac_lib_var=yes"
8013 else
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8016 rm -rf conftest*
8017 eval "ac_cv_lib_$ac_lib_var=no"
8019 rm -f conftest*
8020 LIBS="$ac_save_LIBS"
8023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8024 echo "$ac_t""yes" 1>&6
8025 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8027 cat >> confdefs.h <<EOF
8028 #define $ac_tr_lib 1
8031 LIBS="-lsecurity $LIBS"
8033 else
8034 echo "$ac_t""no" 1>&6
8037 for ac_func in getprpwnam
8039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8040 echo "configure:8041: checking for $ac_func" >&5
8041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8043 else
8044 cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047 /* System header to define __stub macros and hopefully few prototypes,
8048 which can conflict with char $ac_func(); below. */
8049 #include <assert.h>
8050 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8053 char $ac_func();
8055 int main() {
8057 /* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8061 choke me
8062 #else
8063 $ac_func();
8064 #endif
8066 ; return 0; }
8068 if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8069 rm -rf conftest*
8070 eval "ac_cv_func_$ac_func=yes"
8071 else
8072 echo "configure: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8074 rm -rf conftest*
8075 eval "ac_cv_func_$ac_func=no"
8077 rm -f conftest*
8080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8081 echo "$ac_t""yes" 1>&6
8082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8083 cat >> confdefs.h <<EOF
8084 #define $ac_tr_func 1
8087 else
8088 echo "$ac_t""no" 1>&6
8090 done
8093 esac
8095 case "$LIBS" in
8096 *-lsec*) for ac_func in getprpwnam
8098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8099 echo "configure:8100: checking for $ac_func" >&5
8100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8102 else
8103 cat > conftest.$ac_ext <<EOF
8104 #line 8105 "configure"
8105 #include "confdefs.h"
8106 /* System header to define __stub macros and hopefully few prototypes,
8107 which can conflict with char $ac_func(); below. */
8108 #include <assert.h>
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8112 char $ac_func();
8114 int main() {
8116 /* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
8119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8120 choke me
8121 #else
8122 $ac_func();
8123 #endif
8125 ; return 0; }
8127 if { (eval echo configure:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8128 rm -rf conftest*
8129 eval "ac_cv_func_$ac_func=yes"
8130 else
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8133 rm -rf conftest*
8134 eval "ac_cv_func_$ac_func=no"
8136 rm -f conftest*
8139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8140 echo "$ac_t""yes" 1>&6
8141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8142 cat >> confdefs.h <<EOF
8143 #define $ac_tr_func 1
8146 else
8147 echo "$ac_t""no" 1>&6
8149 done
8151 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8152 echo "configure:8153: checking for getprpwnam in -lsec" >&5
8153 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8156 else
8157 ac_save_LIBS="$LIBS"
8158 LIBS="-lsec $LIBS"
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8165 char getprpwnam();
8167 int main() {
8168 getprpwnam()
8169 ; return 0; }
8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8172 rm -rf conftest*
8173 eval "ac_cv_lib_$ac_lib_var=yes"
8174 else
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 rm -rf conftest*
8178 eval "ac_cv_lib_$ac_lib_var=no"
8180 rm -f conftest*
8181 LIBS="$ac_save_LIBS"
8184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8188 cat >> confdefs.h <<EOF
8189 #define $ac_tr_lib 1
8192 LIBS="-lsec $LIBS"
8194 else
8195 echo "$ac_t""no" 1>&6
8198 for ac_func in getprpwnam
8200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8201 echo "configure:8202: checking for $ac_func" >&5
8202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8204 else
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char $ac_func(); below. */
8210 #include <assert.h>
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8214 char $ac_func();
8216 int main() {
8218 /* The GNU C library defines this for functions which it implements
8219 to always fail with ENOSYS. Some functions are actually named
8220 something starting with __ and the normal name is an alias. */
8221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8222 choke me
8223 #else
8224 $ac_func();
8225 #endif
8227 ; return 0; }
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230 rm -rf conftest*
8231 eval "ac_cv_func_$ac_func=yes"
8232 else
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 rm -rf conftest*
8236 eval "ac_cv_func_$ac_func=no"
8238 rm -f conftest*
8241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8242 echo "$ac_t""yes" 1>&6
8243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8244 cat >> confdefs.h <<EOF
8245 #define $ac_tr_func 1
8248 else
8249 echo "$ac_t""no" 1>&6
8251 done
8254 esac
8257 # this bit needs to be modified for each OS that is suported by
8258 # smbwrapper. You need to specify how to created a shared library and
8259 # how to compile C code to produce PIC object files
8261 # these are the defaults, good for lots of systems
8262 HOST_OS="$host_os"
8263 LDSHFLAGS="-shared"
8264 SHLD="\${CC}"
8265 PICFLAG=""
8266 PICSUFFIX="po.o"
8267 SHLIBEXT="so"
8268 # Assume non-shared by default and override below
8269 BLDSHARED="false"
8271 # and these are for particular systems
8272 case "$host_os" in
8273 *linux*) cat >> confdefs.h <<\EOF
8274 #define LINUX 1
8277 BLDSHARED="true"
8278 LDSHFLAGS="-shared"
8279 PICFLAG="-fPIC"
8281 *solaris*) cat >> confdefs.h <<\EOF
8282 #define SUNOS5 1
8286 *sunos*) cat >> confdefs.h <<\EOF
8287 #define SUNOS4 1
8291 *bsd*) LDSHFLAGS="-shared -Bshareable"
8293 *irix*) cat >> confdefs.h <<\EOF
8294 #define IRIX 1
8297 case "$host_os" in
8298 *irix6*) cat >> confdefs.h <<\EOF
8299 #define IRIX6 1
8303 esac
8304 ATTEMPT_WRAP32_BUILD=yes
8306 *aix*) cat >> confdefs.h <<\EOF
8307 #define AIX 1
8310 # AIX is too ugly for now
8312 *hpux*) cat >> confdefs.h <<\EOF
8313 #define HPUX 1
8316 SHLIBEXT="sl"
8317 # Use special PIC flags for the native HP-UX compiler.
8318 if test $ac_cv_prog_cc_Ae = yes; then
8319 LDSHFLAGS="-b"
8320 PICFLAG="+z"
8323 *qnx*) cat >> confdefs.h <<\EOF
8324 #define QNX 1
8327 *osf*) cat >> confdefs.h <<\EOF
8328 #define OSF1 1
8331 *sco*) cat >> confdefs.h <<\EOF
8332 #define SCO 1
8335 *next2*) cat >> confdefs.h <<\EOF
8336 #define NEXT2 1
8339 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8340 set dummy groff; ac_word=$2
8341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8342 echo "configure:8343: checking for $ac_word" >&5
8343 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8345 else
8346 if test -n "$ROFF"; then
8347 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8348 else
8349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8350 ac_dummy="$PATH"
8351 for ac_dir in $ac_dummy; do
8352 test -z "$ac_dir" && ac_dir=.
8353 if test -f $ac_dir/$ac_word; then
8354 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8355 break
8357 done
8358 IFS="$ac_save_ifs"
8361 ROFF="$ac_cv_prog_ROFF"
8362 if test -n "$ROFF"; then
8363 echo "$ac_t""$ROFF" 1>&6
8364 else
8365 echo "$ac_t""no" 1>&6
8368 *sysv4*)
8369 case "$host" in
8370 *-univel-*) if test "$GCC" != yes ; then
8371 cat >> confdefs.h <<\EOF
8372 #define HAVE_MEMSET 1
8376 LDSHFLAGS="-G"
8378 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8379 #define RELIANTUNIX 1
8382 esac
8384 *sysv5*)
8385 if test "$GCC" != yes ; then
8386 cat >> confdefs.h <<\EOF
8387 #define HAVE_MEMSET 1
8391 LDSHFLAGS="-G"
8393 esac
8395 # try to work out how to produce pic code with this compiler
8396 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8397 echo "configure:8398: checking whether ${CC-cc} accepts -fpic" >&5
8398 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8399 echo $ac_n "(cached) $ac_c" 1>&6
8400 else
8401 echo 'void f(){}' > conftest.c
8402 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8403 ac_cv_prog_cc_fpic=yes
8404 else
8405 ac_cv_prog_cc_fpic=no
8407 rm -f conftest*
8411 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8412 if test $ac_cv_prog_cc_fpic = yes; then
8413 PICFLAG="-fpic";
8415 if test x$PICFLAG = x; then
8416 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8417 echo "configure:8418: checking whether ${CC-cc} accepts -KPIC" >&5
8418 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8420 else
8421 echo 'void f(){}' > conftest.c
8422 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8423 ac_cv_prog_cc_KPIC=yes
8424 else
8425 ac_cv_prog_cc_KPIC=no
8427 rm -f conftest*
8431 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8432 if test $ac_cv_prog_cc_KPIC = yes; then
8433 PICFLAG="-KPIC";
8436 if test x$PICFLAG = x; then
8437 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8438 echo "configure:8439: checking whether ${CC-cc} accepts -Kpic" >&5
8439 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8441 else
8442 echo 'void f(){}' > conftest.c
8443 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8444 ac_cv_prog_cc_Kpic=yes
8445 else
8446 ac_cv_prog_cc_Kpic=no
8448 rm -f conftest*
8452 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8453 if test $ac_cv_prog_cc_Kpic = yes; then
8454 PICFLAG="-Kpic";
8458 ################
8460 echo $ac_n "checking for long long""... $ac_c" 1>&6
8461 echo "configure:8462: checking for long long" >&5
8462 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8464 else
8466 if test "$cross_compiling" = yes; then
8467 samba_cv_have_longlong=cross
8468 else
8469 cat > conftest.$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8472 #include <stdio.h>
8473 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8475 if { (eval echo configure:8476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8476 then
8477 samba_cv_have_longlong=yes
8478 else
8479 echo "configure: failed program was:" >&5
8480 cat conftest.$ac_ext >&5
8481 rm -fr conftest*
8482 samba_cv_have_longlong=no
8484 rm -fr conftest*
8489 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8490 if test x"$samba_cv_have_longlong" = x"yes"; then
8491 cat >> confdefs.h <<\EOF
8492 #define HAVE_LONGLONG 1
8498 # Check if the compiler supports the LL prefix on long long integers.
8499 # AIX needs this.
8501 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8502 echo "configure:8503: checking for LL suffix on long long integers" >&5
8503 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8504 echo $ac_n "(cached) $ac_c" 1>&6
8505 else
8507 cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure"
8509 #include "confdefs.h"
8510 #include <stdio.h>
8511 int main() {
8512 long long i = 0x8000000000LL
8513 ; return 0; }
8515 if { (eval echo configure:8516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8516 rm -rf conftest*
8517 samba_cv_compiler_supports_ll=yes
8518 else
8519 echo "configure: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8521 rm -rf conftest*
8522 samba_cv_compiler_supports_ll=no
8524 rm -f conftest*
8527 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8528 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8529 cat >> confdefs.h <<\EOF
8530 #define COMPILER_SUPPORTS_LL 1
8536 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8537 echo "configure:8538: checking for 64 bit off_t" >&5
8538 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8539 echo $ac_n "(cached) $ac_c" 1>&6
8540 else
8542 if test "$cross_compiling" = yes; then
8543 samba_cv_SIZEOF_OFF_T=cross
8544 else
8545 cat > conftest.$ac_ext <<EOF
8546 #line 8547 "configure"
8547 #include "confdefs.h"
8548 #include <stdio.h>
8549 #include <sys/stat.h>
8550 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8552 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8553 then
8554 samba_cv_SIZEOF_OFF_T=yes
8555 else
8556 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5
8558 rm -fr conftest*
8559 samba_cv_SIZEOF_OFF_T=no
8561 rm -fr conftest*
8566 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8567 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8568 cat >> confdefs.h <<\EOF
8569 #define SIZEOF_OFF_T 8
8574 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8575 echo "configure:8576: checking for off64_t" >&5
8576 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8578 else
8580 if test "$cross_compiling" = yes; then
8581 samba_cv_HAVE_OFF64_T=cross
8582 else
8583 cat > conftest.$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8587 #if defined(HAVE_UNISTD_H)
8588 #include <unistd.h>
8589 #endif
8590 #include <stdio.h>
8591 #include <sys/stat.h>
8592 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8594 if { (eval echo configure:8595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8595 then
8596 samba_cv_HAVE_OFF64_T=yes
8597 else
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8600 rm -fr conftest*
8601 samba_cv_HAVE_OFF64_T=no
8603 rm -fr conftest*
8608 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8609 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8610 cat >> confdefs.h <<\EOF
8611 #define HAVE_OFF64_T 1
8616 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8617 echo "configure:8618: checking for 64 bit ino_t" >&5
8618 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8619 echo $ac_n "(cached) $ac_c" 1>&6
8620 else
8622 if test "$cross_compiling" = yes; then
8623 samba_cv_SIZEOF_INO_T=cross
8624 else
8625 cat > conftest.$ac_ext <<EOF
8626 #line 8627 "configure"
8627 #include "confdefs.h"
8628 #include <stdio.h>
8629 #include <sys/stat.h>
8630 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8632 if { (eval echo configure:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8633 then
8634 samba_cv_SIZEOF_INO_T=yes
8635 else
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8638 rm -fr conftest*
8639 samba_cv_SIZEOF_INO_T=no
8641 rm -fr conftest*
8646 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8647 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8648 cat >> confdefs.h <<\EOF
8649 #define SIZEOF_INO_T 8
8654 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8655 echo "configure:8656: checking for ino64_t" >&5
8656 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8657 echo $ac_n "(cached) $ac_c" 1>&6
8658 else
8660 if test "$cross_compiling" = yes; then
8661 samba_cv_HAVE_INO64_T=cross
8662 else
8663 cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8667 #if defined(HAVE_UNISTD_H)
8668 #include <unistd.h>
8669 #endif
8670 #include <stdio.h>
8671 #include <sys/stat.h>
8672 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8674 if { (eval echo configure:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8675 then
8676 samba_cv_HAVE_INO64_T=yes
8677 else
8678 echo "configure: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8680 rm -fr conftest*
8681 samba_cv_HAVE_INO64_T=no
8683 rm -fr conftest*
8688 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8689 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8690 cat >> confdefs.h <<\EOF
8691 #define HAVE_INO64_T 1
8696 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8697 echo "configure:8698: checking for struct dirent64" >&5
8698 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8700 else
8702 cat > conftest.$ac_ext <<EOF
8703 #line 8704 "configure"
8704 #include "confdefs.h"
8706 #if defined(HAVE_UNISTD_H)
8707 #include <unistd.h>
8708 #endif
8709 #include <sys/types.h>
8710 #include <dirent.h>
8711 int main() {
8712 struct dirent64 de;
8713 ; return 0; }
8715 if { (eval echo configure:8716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8716 rm -rf conftest*
8717 samba_cv_HAVE_STRUCT_DIRENT64=yes
8718 else
8719 echo "configure: failed program was:" >&5
8720 cat conftest.$ac_ext >&5
8721 rm -rf conftest*
8722 samba_cv_HAVE_STRUCT_DIRENT64=no
8724 rm -f conftest*
8727 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8728 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8729 cat >> confdefs.h <<\EOF
8730 #define HAVE_STRUCT_DIRENT64 1
8735 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8736 echo "configure:8737: checking for unsigned char" >&5
8737 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8739 else
8741 if test "$cross_compiling" = yes; then
8742 samba_cv_HAVE_UNSIGNED_CHAR=cross
8743 else
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8747 #include <stdio.h>
8748 main() { char c; c=250; exit((c > 0)?0:1); }
8750 if { (eval echo configure:8751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8751 then
8752 samba_cv_HAVE_UNSIGNED_CHAR=yes
8753 else
8754 echo "configure: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 rm -fr conftest*
8757 samba_cv_HAVE_UNSIGNED_CHAR=no
8759 rm -fr conftest*
8764 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8765 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8766 cat >> confdefs.h <<\EOF
8767 #define HAVE_UNSIGNED_CHAR 1
8772 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8773 echo "configure:8774: checking for sin_len in sock" >&5
8774 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8775 echo $ac_n "(cached) $ac_c" 1>&6
8776 else
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 #include <sys/types.h>
8782 #include <sys/socket.h>
8783 #include <netinet/in.h>
8784 int main() {
8785 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8786 ; return 0; }
8788 if { (eval echo configure:8789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8789 rm -rf conftest*
8790 samba_cv_HAVE_SOCK_SIN_LEN=yes
8791 else
8792 echo "configure: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8794 rm -rf conftest*
8795 samba_cv_HAVE_SOCK_SIN_LEN=no
8797 rm -f conftest*
8800 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8801 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8802 cat >> confdefs.h <<\EOF
8803 #define HAVE_SOCK_SIN_LEN 1
8808 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8809 echo "configure:8810: checking whether seekdir returns void" >&5
8810 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8812 else
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 #include <sys/types.h>
8818 #include <dirent.h>
8819 void seekdir(DIR *d, long loc) { return; }
8820 int main() {
8821 return 0;
8822 ; return 0; }
8824 if { (eval echo configure:8825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8825 rm -rf conftest*
8826 samba_cv_SEEKDIR_RETURNS_VOID=yes
8827 else
8828 echo "configure: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8830 rm -rf conftest*
8831 samba_cv_SEEKDIR_RETURNS_VOID=no
8833 rm -f conftest*
8836 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8837 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8838 cat >> confdefs.h <<\EOF
8839 #define SEEKDIR_RETURNS_VOID 1
8844 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8845 echo "configure:8846: checking for __FILE__ macro" >&5
8846 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8848 else
8850 cat > conftest.$ac_ext <<EOF
8851 #line 8852 "configure"
8852 #include "confdefs.h"
8853 #include <stdio.h>
8854 int main() {
8855 printf("%s\n", __FILE__);
8856 ; return 0; }
8858 if { (eval echo configure:8859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8859 rm -rf conftest*
8860 samba_cv_HAVE_FILE_MACRO=yes
8861 else
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8864 rm -rf conftest*
8865 samba_cv_HAVE_FILE_MACRO=no
8867 rm -f conftest*
8870 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8871 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8872 cat >> confdefs.h <<\EOF
8873 #define HAVE_FILE_MACRO 1
8878 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8879 echo "configure:8880: checking for __FUNCTION__ macro" >&5
8880 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8882 else
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 #include <stdio.h>
8888 int main() {
8889 printf("%s\n", __FUNCTION__);
8890 ; return 0; }
8892 if { (eval echo configure:8893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8893 rm -rf conftest*
8894 samba_cv_HAVE_FUNCTION_MACRO=yes
8895 else
8896 echo "configure: failed program was:" >&5
8897 cat conftest.$ac_ext >&5
8898 rm -rf conftest*
8899 samba_cv_HAVE_FUNCTION_MACRO=no
8901 rm -f conftest*
8904 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8905 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8906 cat >> confdefs.h <<\EOF
8907 #define HAVE_FUNCTION_MACRO 1
8912 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8913 echo "configure:8914: checking if gettimeofday takes tz argument" >&5
8914 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8916 else
8918 if test "$cross_compiling" = yes; then
8919 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8920 else
8921 cat > conftest.$ac_ext <<EOF
8922 #line 8923 "configure"
8923 #include "confdefs.h"
8925 #include <sys/time.h>
8926 #include <unistd.h>
8927 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8929 if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8930 then
8931 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8932 else
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 rm -fr conftest*
8936 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8938 rm -fr conftest*
8943 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8944 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8945 cat >> confdefs.h <<\EOF
8946 #define HAVE_GETTIMEOFDAY_TZ 1
8951 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8952 echo "configure:8953: checking for C99 vsnprintf" >&5
8953 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8954 echo $ac_n "(cached) $ac_c" 1>&6
8955 else
8957 if test "$cross_compiling" = yes; then
8958 samba_cv_HAVE_C99_VSNPRINTF=cross
8959 else
8960 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8964 #include <sys/types.h>
8965 #include <stdarg.h>
8966 void foo(const char *format, ...) {
8967 va_list ap;
8968 int len;
8969 char buf[5];
8971 va_start(ap, format);
8972 len = vsnprintf(0, 0, format, ap);
8973 va_end(ap);
8974 if (len != 5) exit(1);
8976 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8978 exit(0);
8980 main() { foo("hello"); }
8983 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8984 then
8985 samba_cv_HAVE_C99_VSNPRINTF=yes
8986 else
8987 echo "configure: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 rm -fr conftest*
8990 samba_cv_HAVE_C99_VSNPRINTF=no
8992 rm -fr conftest*
8997 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8998 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_C99_VSNPRINTF 1
9005 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9006 echo "configure:9007: checking for broken readdir" >&5
9007 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9009 else
9011 if test "$cross_compiling" = yes; then
9012 samba_cv_HAVE_BROKEN_READDIR=cross
9013 else
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 #include <sys/types.h>
9018 #include <dirent.h>
9019 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9020 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9021 di->d_name[0] == 0) exit(0); exit(1);}
9023 if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9024 then
9025 samba_cv_HAVE_BROKEN_READDIR=yes
9026 else
9027 echo "configure: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 rm -fr conftest*
9030 samba_cv_HAVE_BROKEN_READDIR=no
9032 rm -fr conftest*
9037 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9038 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9039 cat >> confdefs.h <<\EOF
9040 #define HAVE_BROKEN_READDIR 1
9045 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9046 echo "configure:9047: checking for utimbuf" >&5
9047 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9049 else
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 #include <sys/types.h>
9055 #include <utime.h>
9056 int main() {
9057 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9058 ; return 0; }
9060 if { (eval echo configure:9061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9061 rm -rf conftest*
9062 samba_cv_HAVE_UTIMBUF=yes
9063 else
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 rm -rf conftest*
9067 samba_cv_HAVE_UTIMBUF=no
9069 rm -f conftest*
9072 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9073 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9074 cat >> confdefs.h <<\EOF
9075 #define HAVE_UTIMBUF 1
9081 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9084 echo "configure:9085: checking for $ac_func" >&5
9085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9087 else
9088 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 /* System header to define __stub macros and hopefully few prototypes,
9092 which can conflict with char $ac_func(); below. */
9093 #include <assert.h>
9094 /* Override any gcc2 internal prototype to avoid an error. */
9095 /* We use char because int might match the return type of a gcc2
9096 builtin and then its argument prototype would still apply. */
9097 char $ac_func();
9099 int main() {
9101 /* The GNU C library defines this for functions which it implements
9102 to always fail with ENOSYS. Some functions are actually named
9103 something starting with __ and the normal name is an alias. */
9104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9105 choke me
9106 #else
9107 $ac_func();
9108 #endif
9110 ; return 0; }
9112 if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9113 rm -rf conftest*
9114 eval "ac_cv_func_$ac_func=yes"
9115 else
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9118 rm -rf conftest*
9119 eval "ac_cv_func_$ac_func=no"
9121 rm -f conftest*
9124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9125 echo "$ac_t""yes" 1>&6
9126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9127 cat >> confdefs.h <<EOF
9128 #define $ac_tr_func 1
9131 else
9132 echo "$ac_t""no" 1>&6
9134 done
9137 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9138 echo "configure:9139: checking for ut_name in utmp" >&5
9139 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9141 else
9143 cat > conftest.$ac_ext <<EOF
9144 #line 9145 "configure"
9145 #include "confdefs.h"
9146 #include <sys/types.h>
9147 #include <utmp.h>
9148 int main() {
9149 struct utmp ut; ut.ut_name[0] = 'a';
9150 ; return 0; }
9152 if { (eval echo configure:9153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9153 rm -rf conftest*
9154 samba_cv_HAVE_UT_UT_NAME=yes
9155 else
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158 rm -rf conftest*
9159 samba_cv_HAVE_UT_UT_NAME=no
9161 rm -f conftest*
9164 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9165 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9166 cat >> confdefs.h <<\EOF
9167 #define HAVE_UT_UT_NAME 1
9172 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9173 echo "configure:9174: checking for ut_user in utmp" >&5
9174 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9176 else
9178 cat > conftest.$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9181 #include <sys/types.h>
9182 #include <utmp.h>
9183 int main() {
9184 struct utmp ut; ut.ut_user[0] = 'a';
9185 ; return 0; }
9187 if { (eval echo configure:9188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9188 rm -rf conftest*
9189 samba_cv_HAVE_UT_UT_USER=yes
9190 else
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 rm -rf conftest*
9194 samba_cv_HAVE_UT_UT_USER=no
9196 rm -f conftest*
9199 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9200 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9201 cat >> confdefs.h <<\EOF
9202 #define HAVE_UT_UT_USER 1
9207 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9208 echo "configure:9209: checking for ut_id in utmp" >&5
9209 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9210 echo $ac_n "(cached) $ac_c" 1>&6
9211 else
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 #include <sys/types.h>
9217 #include <utmp.h>
9218 int main() {
9219 struct utmp ut; ut.ut_id[0] = 'a';
9220 ; return 0; }
9222 if { (eval echo configure:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9223 rm -rf conftest*
9224 samba_cv_HAVE_UT_UT_ID=yes
9225 else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -rf conftest*
9229 samba_cv_HAVE_UT_UT_ID=no
9231 rm -f conftest*
9234 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9235 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9236 cat >> confdefs.h <<\EOF
9237 #define HAVE_UT_UT_ID 1
9242 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9243 echo "configure:9244: checking for ut_host in utmp" >&5
9244 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9245 echo $ac_n "(cached) $ac_c" 1>&6
9246 else
9248 cat > conftest.$ac_ext <<EOF
9249 #line 9250 "configure"
9250 #include "confdefs.h"
9251 #include <sys/types.h>
9252 #include <utmp.h>
9253 int main() {
9254 struct utmp ut; ut.ut_host[0] = 'a';
9255 ; return 0; }
9257 if { (eval echo configure:9258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9258 rm -rf conftest*
9259 samba_cv_HAVE_UT_UT_HOST=yes
9260 else
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9263 rm -rf conftest*
9264 samba_cv_HAVE_UT_UT_HOST=no
9266 rm -f conftest*
9269 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9270 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9271 cat >> confdefs.h <<\EOF
9272 #define HAVE_UT_UT_HOST 1
9277 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9278 echo "configure:9279: checking for ut_time in utmp" >&5
9279 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281 else
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <sys/types.h>
9287 #include <utmp.h>
9288 int main() {
9289 struct utmp ut; time_t t; ut.ut_time = t;
9290 ; return 0; }
9292 if { (eval echo configure:9293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9293 rm -rf conftest*
9294 samba_cv_HAVE_UT_UT_TIME=yes
9295 else
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298 rm -rf conftest*
9299 samba_cv_HAVE_UT_UT_TIME=no
9301 rm -f conftest*
9304 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9305 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9306 cat >> confdefs.h <<\EOF
9307 #define HAVE_UT_UT_TIME 1
9312 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9313 echo "configure:9314: checking for ut_tv in utmp" >&5
9314 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9318 cat > conftest.$ac_ext <<EOF
9319 #line 9320 "configure"
9320 #include "confdefs.h"
9321 #include <sys/types.h>
9322 #include <utmp.h>
9323 int main() {
9324 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9325 ; return 0; }
9327 if { (eval echo configure:9328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9328 rm -rf conftest*
9329 samba_cv_HAVE_UT_UT_TV=yes
9330 else
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9333 rm -rf conftest*
9334 samba_cv_HAVE_UT_UT_TV=no
9336 rm -f conftest*
9339 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9340 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9341 cat >> confdefs.h <<\EOF
9342 #define HAVE_UT_UT_TV 1
9347 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9348 echo "configure:9349: checking for ut_type in utmp" >&5
9349 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9351 else
9353 cat > conftest.$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9356 #include <sys/types.h>
9357 #include <utmp.h>
9358 int main() {
9359 struct utmp ut; ut.ut_type = 0;
9360 ; return 0; }
9362 if { (eval echo configure:9363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9363 rm -rf conftest*
9364 samba_cv_HAVE_UT_UT_TYPE=yes
9365 else
9366 echo "configure: failed program was:" >&5
9367 cat conftest.$ac_ext >&5
9368 rm -rf conftest*
9369 samba_cv_HAVE_UT_UT_TYPE=no
9371 rm -f conftest*
9374 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9375 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9376 cat >> confdefs.h <<\EOF
9377 #define HAVE_UT_UT_TYPE 1
9382 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9383 echo "configure:9384: checking for ut_pid in utmp" >&5
9384 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9386 else
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include <sys/types.h>
9392 #include <utmp.h>
9393 int main() {
9394 struct utmp ut; ut.ut_pid = 0;
9395 ; return 0; }
9397 if { (eval echo configure:9398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9398 rm -rf conftest*
9399 samba_cv_HAVE_UT_UT_PID=yes
9400 else
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9403 rm -rf conftest*
9404 samba_cv_HAVE_UT_UT_PID=no
9406 rm -f conftest*
9409 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9410 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9411 cat >> confdefs.h <<\EOF
9412 #define HAVE_UT_UT_PID 1
9417 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9418 echo "configure:9419: checking for ut_exit in utmp" >&5
9419 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9421 else
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 #include <sys/types.h>
9427 #include <utmp.h>
9428 int main() {
9429 struct utmp ut; ut.ut_exit.e_exit = 0;
9430 ; return 0; }
9432 if { (eval echo configure:9433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9433 rm -rf conftest*
9434 samba_cv_HAVE_UT_UT_EXIT=yes
9435 else
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -rf conftest*
9439 samba_cv_HAVE_UT_UT_EXIT=no
9441 rm -f conftest*
9444 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9445 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9446 cat >> confdefs.h <<\EOF
9447 #define HAVE_UT_UT_EXIT 1
9452 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9453 echo "configure:9454: checking for ut_addr in utmp" >&5
9454 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9456 else
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 #include <sys/types.h>
9462 #include <utmp.h>
9463 int main() {
9464 struct utmp ut; ut.ut_addr = 0;
9465 ; return 0; }
9467 if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468 rm -rf conftest*
9469 samba_cv_HAVE_UT_UT_ADDR=yes
9470 else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -rf conftest*
9474 samba_cv_HAVE_UT_UT_ADDR=no
9476 rm -f conftest*
9479 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9480 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9481 cat >> confdefs.h <<\EOF
9482 #define HAVE_UT_UT_ADDR 1
9487 if test x$ac_cv_func_pututline = xyes ; then
9488 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9489 echo "configure:9490: checking whether pututline returns pointer" >&5
9490 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9492 else
9494 cat > conftest.$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9497 #include <sys/types.h>
9498 #include <utmp.h>
9499 int main() {
9500 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9501 ; return 0; }
9503 if { (eval echo configure:9504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9504 rm -rf conftest*
9505 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9506 else
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9509 rm -rf conftest*
9510 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9512 rm -f conftest*
9515 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9516 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9517 cat >> confdefs.h <<\EOF
9518 #define PUTUTLINE_RETURNS_UTMP 1
9524 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9525 echo "configure:9526: checking for ut_syslen in utmpx" >&5
9526 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9528 else
9530 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9534 #include <utmpx.h>
9535 int main() {
9536 struct utmpx ux; ux.ut_syslen = 0;
9537 ; return 0; }
9539 if { (eval echo configure:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9540 rm -rf conftest*
9541 samba_cv_HAVE_UX_UT_SYSLEN=yes
9542 else
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 rm -rf conftest*
9546 samba_cv_HAVE_UX_UT_SYSLEN=no
9548 rm -f conftest*
9551 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9552 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9553 cat >> confdefs.h <<\EOF
9554 #define HAVE_UX_UT_SYSLEN 1
9559 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9560 echo "configure:9561: checking for Linux kernel oplocks" >&5
9561 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9563 else
9565 if test "$cross_compiling" = yes; then
9566 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9567 else
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9572 #include <sys/types.h>
9573 #include <fcntl.h>
9574 #ifndef F_GETLEASE
9575 #define F_GETLEASE 1025
9576 #endif
9577 main() {
9578 int fd = open("/dev/null", O_RDONLY);
9579 return fcntl(fd, F_GETLEASE, 0) == -1;
9583 if { (eval echo configure:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9584 then
9585 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9586 else
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9589 rm -fr conftest*
9590 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9592 rm -fr conftest*
9597 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9598 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9599 cat >> confdefs.h <<\EOF
9600 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9605 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9606 echo "configure:9607: checking for kernel change notify support" >&5
9607 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9608 echo $ac_n "(cached) $ac_c" 1>&6
9609 else
9611 if test "$cross_compiling" = yes; then
9612 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9613 else
9614 cat > conftest.$ac_ext <<EOF
9615 #line 9616 "configure"
9616 #include "confdefs.h"
9618 #include <sys/types.h>
9619 #include <fcntl.h>
9620 #include <signal.h>
9621 #ifndef F_NOTIFY
9622 #define F_NOTIFY 1026
9623 #endif
9624 main() {
9625 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9629 if { (eval echo configure:9630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9630 then
9631 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9632 else
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 rm -fr conftest*
9636 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9638 rm -fr conftest*
9643 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9644 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9645 cat >> confdefs.h <<\EOF
9646 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9651 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9652 echo "configure:9653: checking for kernel share modes" >&5
9653 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9655 else
9657 if test "$cross_compiling" = yes; then
9658 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9659 else
9660 cat > conftest.$ac_ext <<EOF
9661 #line 9662 "configure"
9662 #include "confdefs.h"
9664 #include <sys/types.h>
9665 #include <fcntl.h>
9666 #include <signal.h>
9667 #include <sys/file.h>
9668 #ifndef LOCK_MAND
9669 #define LOCK_MAND 32
9670 #define LOCK_READ 64
9671 #endif
9672 main() {
9673 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9677 if { (eval echo configure:9678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9678 then
9679 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9680 else
9681 echo "configure: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9683 rm -fr conftest*
9684 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9686 rm -fr conftest*
9691 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9692 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9693 cat >> confdefs.h <<\EOF
9694 #define HAVE_KERNEL_SHARE_MODES 1
9702 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9703 echo "configure:9704: checking for IRIX kernel oplock type definitions" >&5
9704 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9706 else
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 #include <sys/types.h>
9712 #include <fcntl.h>
9713 int main() {
9714 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9715 ; return 0; }
9717 if { (eval echo configure:9718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9718 rm -rf conftest*
9719 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9720 else
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 rm -rf conftest*
9724 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9726 rm -f conftest*
9729 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9730 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9731 cat >> confdefs.h <<\EOF
9732 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9737 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9738 echo "configure:9739: checking for irix specific capabilities" >&5
9739 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9741 else
9743 if test "$cross_compiling" = yes; then
9744 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9745 else
9746 cat > conftest.$ac_ext <<EOF
9747 #line 9748 "configure"
9748 #include "confdefs.h"
9749 #include <sys/types.h>
9750 #include <sys/capability.h>
9751 main() {
9752 cap_t cap;
9753 if ((cap = cap_get_proc()) == NULL)
9754 exit(1);
9755 cap->cap_effective |= CAP_NETWORK_MGT;
9756 cap->cap_inheritable |= CAP_NETWORK_MGT;
9757 cap_set_proc(cap);
9758 exit(0);
9762 if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9763 then
9764 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9765 else
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 rm -fr conftest*
9769 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9771 rm -fr conftest*
9776 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9777 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9778 cat >> confdefs.h <<\EOF
9779 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9785 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9786 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9789 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9790 echo "configure:9791: checking for int16 typedef included by rpc/rpc.h" >&5
9791 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9793 else
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 #include <sys/types.h>
9799 #if defined(HAVE_RPC_RPC_H)
9800 #include <rpc/rpc.h>
9801 #endif
9802 int main() {
9803 int16 testvar;
9804 ; return 0; }
9806 if { (eval echo configure:9807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9807 rm -rf conftest*
9808 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9809 else
9810 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9812 rm -rf conftest*
9813 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9815 rm -f conftest*
9818 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9819 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9820 cat >> confdefs.h <<\EOF
9821 #define HAVE_INT16_FROM_RPC_RPC_H 1
9826 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9827 echo "configure:9828: checking for uint16 typedef included by rpc/rpc.h" >&5
9828 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9830 else
9832 cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 #include <sys/types.h>
9836 #if defined(HAVE_RPC_RPC_H)
9837 #include <rpc/rpc.h>
9838 #endif
9839 int main() {
9840 uint16 testvar;
9841 ; return 0; }
9843 if { (eval echo configure:9844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9844 rm -rf conftest*
9845 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9846 else
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 rm -rf conftest*
9850 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9852 rm -f conftest*
9855 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9856 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9857 cat >> confdefs.h <<\EOF
9858 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9863 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9864 echo "configure:9865: checking for int32 typedef included by rpc/rpc.h" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9867 else
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 #include <sys/types.h>
9873 #if defined(HAVE_RPC_RPC_H)
9874 #include <rpc/rpc.h>
9875 #endif
9876 int main() {
9877 int32 testvar;
9878 ; return 0; }
9880 if { (eval echo configure:9881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9881 rm -rf conftest*
9882 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9883 else
9884 echo "configure: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 rm -rf conftest*
9887 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9889 rm -f conftest*
9892 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9893 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9894 cat >> confdefs.h <<\EOF
9895 #define HAVE_INT32_FROM_RPC_RPC_H 1
9900 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9901 echo "configure:9902: checking for uint32 typedef included by rpc/rpc.h" >&5
9902 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9904 else
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 #include <sys/types.h>
9910 #if defined(HAVE_RPC_RPC_H)
9911 #include <rpc/rpc.h>
9912 #endif
9913 int main() {
9914 uint32 testvar;
9915 ; return 0; }
9917 if { (eval echo configure:9918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9918 rm -rf conftest*
9919 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9920 else
9921 echo "configure: failed program was:" >&5
9922 cat conftest.$ac_ext >&5
9923 rm -rf conftest*
9924 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9926 rm -f conftest*
9929 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9930 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9931 cat >> confdefs.h <<\EOF
9932 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9938 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9939 echo "configure:9940: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9940 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9941 echo $ac_n "(cached) $ac_c" 1>&6
9942 else
9944 cat > conftest.$ac_ext <<EOF
9945 #line 9946 "configure"
9946 #include "confdefs.h"
9947 #include <sys/types.h>
9948 #ifdef HAVE_SYS_SECURITY_H
9949 #include <sys/security.h>
9950 #include <prot.h>
9951 #endif /* HAVE_SYS_SECURITY_H */
9952 #if defined(HAVE_RPC_RPC_H)
9953 #include <rpc/rpc.h>
9954 #endif
9955 int main() {
9956 int testvar;
9957 ; return 0; }
9959 if { (eval echo configure:9960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9960 rm -rf conftest*
9961 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9962 else
9963 echo "configure: failed program was:" >&5
9964 cat conftest.$ac_ext >&5
9965 rm -rf conftest*
9966 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9968 rm -f conftest*
9971 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9972 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9973 cat >> confdefs.h <<\EOF
9974 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9979 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9980 echo "configure:9981: checking for test routines" >&5
9981 if test "$cross_compiling" = yes; then
9982 echo "configure: warning: cannot run when cross-compiling" 1>&2
9983 else
9984 cat > conftest.$ac_ext <<EOF
9985 #line 9986 "configure"
9986 #include "confdefs.h"
9987 #include "${srcdir-.}/tests/trivial.c"
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9990 then
9991 echo "$ac_t""yes" 1>&6
9992 else
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 rm -fr conftest*
9996 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9998 rm -fr conftest*
10002 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10003 echo "configure:10004: checking for ftruncate extend" >&5
10004 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10006 else
10008 if test "$cross_compiling" = yes; then
10009 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10010 else
10011 cat > conftest.$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10014 #include "${srcdir-.}/tests/ftruncate.c"
10016 if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10017 then
10018 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10019 else
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 rm -fr conftest*
10023 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10025 rm -fr conftest*
10030 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10031 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10032 cat >> confdefs.h <<\EOF
10033 #define HAVE_FTRUNCATE_EXTEND 1
10038 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10039 echo "configure:10040: checking for broken getgroups" >&5
10040 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10042 else
10044 if test "$cross_compiling" = yes; then
10045 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10046 else
10047 cat > conftest.$ac_ext <<EOF
10048 #line 10049 "configure"
10049 #include "confdefs.h"
10050 #include "${srcdir-.}/tests/getgroups.c"
10052 if { (eval echo configure:10053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10053 then
10054 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10055 else
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10058 rm -fr conftest*
10059 samba_cv_HAVE_BROKEN_GETGROUPS=no
10061 rm -fr conftest*
10066 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10067 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10068 cat >> confdefs.h <<\EOF
10069 #define HAVE_BROKEN_GETGROUPS 1
10074 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10075 echo "configure:10076: checking whether getpass should be replaced" >&5
10076 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10078 else
10080 SAVE_CPPFLAGS="$CPPFLAGS"
10081 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10086 #define REPLACE_GETPASS 1
10087 #define NO_CONFIG_H 1
10088 #define main dont_declare_main
10089 #include "${srcdir-.}/lib/getsmbpass.c"
10090 #undef main
10092 int main() {
10094 ; return 0; }
10096 if { (eval echo configure:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10097 rm -rf conftest*
10098 samba_cv_REPLACE_GETPASS=yes
10099 else
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103 samba_cv_REPLACE_GETPASS=no
10105 rm -f conftest*
10106 CPPFLAGS="$SAVE_CPPFLAGS"
10110 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10111 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10112 cat >> confdefs.h <<\EOF
10113 #define REPLACE_GETPASS 1
10118 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10119 echo "configure:10120: checking for broken inet_ntoa" >&5
10120 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10122 else
10124 if test "$cross_compiling" = yes; then
10125 samba_cv_REPLACE_INET_NTOA=cross
10126 else
10127 cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10131 #include <stdio.h>
10132 #include <sys/types.h>
10133 #include <netinet/in.h>
10134 #ifdef HAVE_ARPA_INET_H
10135 #include <arpa/inet.h>
10136 #endif
10137 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10138 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10139 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10140 exit(1);}
10142 if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10143 then
10144 samba_cv_REPLACE_INET_NTOA=yes
10145 else
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -fr conftest*
10149 samba_cv_REPLACE_INET_NTOA=no
10151 rm -fr conftest*
10156 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10157 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10158 cat >> confdefs.h <<\EOF
10159 #define REPLACE_INET_NTOA 1
10164 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10165 echo "configure:10166: checking for secure mkstemp" >&5
10166 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10168 else
10170 if test "$cross_compiling" = yes; then
10171 samba_cv_HAVE_SECURE_MKSTEMP=cross
10172 else
10173 cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10176 #include <stdlib.h>
10177 #include <sys/types.h>
10178 #include <sys/stat.h>
10179 #include <unistd.h>
10180 main() {
10181 struct stat st;
10182 char tpl[20]="/tmp/test.XXXXXX";
10183 int fd = mkstemp(tpl);
10184 if (fd == -1) exit(1);
10185 unlink(tpl);
10186 if (fstat(fd, &st) != 0) exit(1);
10187 if ((st.st_mode & 0777) != 0600) exit(1);
10188 exit(0);
10191 if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10192 then
10193 samba_cv_HAVE_SECURE_MKSTEMP=yes
10194 else
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 rm -fr conftest*
10198 samba_cv_HAVE_SECURE_MKSTEMP=no
10200 rm -fr conftest*
10205 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10206 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_SECURE_MKSTEMP 1
10213 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10214 echo "configure:10215: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10215 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10217 else
10219 if test "$cross_compiling" = yes; then
10220 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10221 else
10222 cat > conftest.$ac_ext <<EOF
10223 #line 10224 "configure"
10224 #include "confdefs.h"
10225 #include <unistd.h>
10226 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10228 if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10229 then
10230 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10231 else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -fr conftest*
10235 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10237 rm -fr conftest*
10242 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10243 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10244 cat >> confdefs.h <<\EOF
10245 #define SYSCONF_SC_NGROUPS_MAX 1
10250 echo $ac_n "checking for root""... $ac_c" 1>&6
10251 echo "configure:10252: checking for root" >&5
10252 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10253 echo $ac_n "(cached) $ac_c" 1>&6
10254 else
10256 if test "$cross_compiling" = yes; then
10257 samba_cv_HAVE_ROOT=cross
10258 else
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10262 main() { exit(getuid() != 0); }
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10265 then
10266 samba_cv_HAVE_ROOT=yes
10267 else
10268 echo "configure: failed program was:" >&5
10269 cat conftest.$ac_ext >&5
10270 rm -fr conftest*
10271 samba_cv_HAVE_ROOT=no
10273 rm -fr conftest*
10278 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10279 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10280 cat >> confdefs.h <<\EOF
10281 #define HAVE_ROOT 1
10284 else
10285 echo "configure: warning: running as non-root will disable some tests" 1>&2
10288 ##################
10289 # look for a method of finding the list of network interfaces
10290 iface=no;
10291 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10292 echo "configure:10293: checking for iface AIX" >&5
10293 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10295 else
10297 if test "$cross_compiling" = yes; then
10298 samba_cv_HAVE_IFACE_AIX=cross
10299 else
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10304 #define HAVE_IFACE_AIX 1
10305 #define AUTOCONF_TEST 1
10306 #include "confdefs.h"
10307 #include "${srcdir-.}/lib/interfaces.c"
10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10310 then
10311 samba_cv_HAVE_IFACE_AIX=yes
10312 else
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10315 rm -fr conftest*
10316 samba_cv_HAVE_IFACE_AIX=no
10318 rm -fr conftest*
10323 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10324 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10325 iface=yes;cat >> confdefs.h <<\EOF
10326 #define HAVE_IFACE_AIX 1
10331 if test $iface = no; then
10332 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10333 echo "configure:10334: checking for iface ifconf" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10336 else
10338 if test "$cross_compiling" = yes; then
10339 samba_cv_HAVE_IFACE_IFCONF=cross
10340 else
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10345 #define HAVE_IFACE_IFCONF 1
10346 #define AUTOCONF_TEST 1
10347 #include "confdefs.h"
10348 #include "${srcdir-.}/lib/interfaces.c"
10350 if { (eval echo configure:10351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10351 then
10352 samba_cv_HAVE_IFACE_IFCONF=yes
10353 else
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10356 rm -fr conftest*
10357 samba_cv_HAVE_IFACE_IFCONF=no
10359 rm -fr conftest*
10364 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10365 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10366 iface=yes;cat >> confdefs.h <<\EOF
10367 #define HAVE_IFACE_IFCONF 1
10373 if test $iface = no; then
10374 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10375 echo "configure:10376: checking for iface ifreq" >&5
10376 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+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_IFREQ=cross
10382 else
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10387 #define HAVE_IFACE_IFREQ 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_IFREQ=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_IFREQ=no
10401 rm -fr conftest*
10406 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10407 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10408 iface=yes;cat >> confdefs.h <<\EOF
10409 #define HAVE_IFACE_IFREQ 1
10416 ################################################
10417 # look for a method of setting the effective uid
10418 seteuid=no;
10419 if test $seteuid = no; then
10420 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10421 echo "configure:10422: checking for setresuid" >&5
10422 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424 else
10426 if test "$cross_compiling" = yes; then
10427 samba_cv_USE_SETRESUID=cross
10428 else
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10433 #define AUTOCONF_TEST 1
10434 #define USE_SETRESUID 1
10435 #include "confdefs.h"
10436 #include "${srcdir-.}/lib/util_sec.c"
10438 if { (eval echo configure:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10439 then
10440 samba_cv_USE_SETRESUID=yes
10441 else
10442 echo "configure: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10444 rm -fr conftest*
10445 samba_cv_USE_SETRESUID=no
10447 rm -fr conftest*
10452 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10453 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10454 seteuid=yes;cat >> confdefs.h <<\EOF
10455 #define USE_SETRESUID 1
10462 if test $seteuid = no; then
10463 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10464 echo "configure:10465: checking for setreuid" >&5
10465 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10467 else
10469 if test "$cross_compiling" = yes; then
10470 samba_cv_USE_SETREUID=cross
10471 else
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10476 #define AUTOCONF_TEST 1
10477 #define USE_SETREUID 1
10478 #include "confdefs.h"
10479 #include "${srcdir-.}/lib/util_sec.c"
10481 if { (eval echo configure:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10482 then
10483 samba_cv_USE_SETREUID=yes
10484 else
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10487 rm -fr conftest*
10488 samba_cv_USE_SETREUID=no
10490 rm -fr conftest*
10495 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10496 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10497 seteuid=yes;cat >> confdefs.h <<\EOF
10498 #define USE_SETREUID 1
10504 if test $seteuid = no; then
10505 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10506 echo "configure:10507: checking for seteuid" >&5
10507 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10508 echo $ac_n "(cached) $ac_c" 1>&6
10509 else
10511 if test "$cross_compiling" = yes; then
10512 samba_cv_USE_SETEUID=cross
10513 else
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10518 #define AUTOCONF_TEST 1
10519 #define USE_SETEUID 1
10520 #include "confdefs.h"
10521 #include "${srcdir-.}/lib/util_sec.c"
10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10524 then
10525 samba_cv_USE_SETEUID=yes
10526 else
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10529 rm -fr conftest*
10530 samba_cv_USE_SETEUID=no
10532 rm -fr conftest*
10537 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10538 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10539 seteuid=yes;cat >> confdefs.h <<\EOF
10540 #define USE_SETEUID 1
10546 if test $seteuid = no; then
10547 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10548 echo "configure:10549: checking for setuidx" >&5
10549 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10550 echo $ac_n "(cached) $ac_c" 1>&6
10551 else
10553 if test "$cross_compiling" = yes; then
10554 samba_cv_USE_SETUIDX=cross
10555 else
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10560 #define AUTOCONF_TEST 1
10561 #define USE_SETUIDX 1
10562 #include "confdefs.h"
10563 #include "${srcdir-.}/lib/util_sec.c"
10565 if { (eval echo configure:10566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10566 then
10567 samba_cv_USE_SETUIDX=yes
10568 else
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10571 rm -fr conftest*
10572 samba_cv_USE_SETUIDX=no
10574 rm -fr conftest*
10579 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10580 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10581 seteuid=yes;cat >> confdefs.h <<\EOF
10582 #define USE_SETUIDX 1
10589 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10590 echo "configure:10591: checking for working mmap" >&5
10591 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
10593 else
10595 if test "$cross_compiling" = yes; then
10596 samba_cv_HAVE_MMAP=cross
10597 else
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 #include "${srcdir-.}/tests/shared_mmap.c"
10603 if { (eval echo configure:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10604 then
10605 samba_cv_HAVE_MMAP=yes
10606 else
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 rm -fr conftest*
10610 samba_cv_HAVE_MMAP=no
10612 rm -fr conftest*
10617 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10618 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10619 cat >> confdefs.h <<\EOF
10620 #define HAVE_MMAP 1
10625 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10626 echo "configure:10627: checking for ftruncate needs root" >&5
10627 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10628 echo $ac_n "(cached) $ac_c" 1>&6
10629 else
10631 if test "$cross_compiling" = yes; then
10632 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10633 else
10634 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637 #include "${srcdir-.}/tests/ftruncroot.c"
10639 if { (eval echo configure:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10640 then
10641 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10642 else
10643 echo "configure: failed program was:" >&5
10644 cat conftest.$ac_ext >&5
10645 rm -fr conftest*
10646 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10648 rm -fr conftest*
10653 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10654 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10655 cat >> confdefs.h <<\EOF
10656 #define FTRUNCATE_NEEDS_ROOT 1
10661 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10662 echo "configure:10663: checking for fcntl locking" >&5
10663 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10664 echo $ac_n "(cached) $ac_c" 1>&6
10665 else
10667 if test "$cross_compiling" = yes; then
10668 samba_cv_HAVE_FCNTL_LOCK=cross
10669 else
10670 cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure"
10672 #include "confdefs.h"
10673 #include "${srcdir-.}/tests/fcntl_lock.c"
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10676 then
10677 samba_cv_HAVE_FCNTL_LOCK=yes
10678 else
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 rm -fr conftest*
10682 samba_cv_HAVE_FCNTL_LOCK=no
10684 rm -fr conftest*
10689 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10690 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10691 cat >> confdefs.h <<\EOF
10692 #define HAVE_FCNTL_LOCK 1
10697 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10698 echo "configure:10699: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10699 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10701 else
10703 if test "$cross_compiling" = yes; then
10704 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10705 else
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10709 #include "${srcdir-.}/tests/fcntl_lock64.c"
10711 if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10712 then
10713 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10714 else
10715 echo "configure: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10717 rm -fr conftest*
10718 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10720 rm -fr conftest*
10725 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10726 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10727 cat >> confdefs.h <<\EOF
10728 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10732 else
10735 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10736 echo "configure:10737: checking for 64 bit fcntl locking" >&5
10737 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10739 else
10741 if test "$cross_compiling" = yes; then
10742 samba_cv_HAVE_STRUCT_FLOCK64=cross
10743 else
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10748 #if defined(HAVE_UNISTD_H)
10749 #include <unistd.h>
10750 #endif
10751 #include <stdio.h>
10752 #include <stdlib.h>
10754 #ifdef HAVE_FCNTL_H
10755 #include <fcntl.h>
10756 #endif
10758 #ifdef HAVE_SYS_FCNTL_H
10759 #include <sys/fcntl.h>
10760 #endif
10761 main() { struct flock64 fl64;
10762 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10763 exit(0);
10764 #else
10765 exit(1);
10766 #endif
10769 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10770 then
10771 samba_cv_HAVE_STRUCT_FLOCK64=yes
10772 else
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10775 rm -fr conftest*
10776 samba_cv_HAVE_STRUCT_FLOCK64=no
10778 rm -fr conftest*
10783 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10785 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10786 cat >> confdefs.h <<\EOF
10787 #define HAVE_STRUCT_FLOCK64 1
10793 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10794 echo "configure:10795: checking for broken nisplus include files" >&5
10795 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10797 else
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 #include <sys/acl.h>
10803 #if defined(HAVE_RPCSVC_NIS_H)
10804 #include <rpcsvc/nis.h>
10805 #endif
10806 int main() {
10807 return 0;
10808 ; return 0; }
10810 if { (eval echo configure:10811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10811 rm -rf conftest*
10812 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10813 else
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10816 rm -rf conftest*
10817 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10819 rm -f conftest*
10822 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10823 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10824 cat >> confdefs.h <<\EOF
10825 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10831 #################################################
10832 # check for smbwrapper support
10833 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10834 echo "configure:10835: checking whether to use smbwrapper" >&5
10835 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10836 if test "${with_smbwrapper+set}" = set; then
10837 withval="$with_smbwrapper"
10838 case "$withval" in
10839 yes)
10840 echo "$ac_t""yes" 1>&6
10841 cat >> confdefs.h <<\EOF
10842 #define WITH_SMBWRAPPER 1
10845 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10847 if test x$ATTEMPT_WRAP32_BUILD = x; then
10848 WRAP32=""
10849 else
10850 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10853 # Conditions under which smbwrapper should not be built.
10855 if test x$PICFLAG = x; then
10856 echo No support for PIC code - disabling smbwrapper and smbsh
10857 WRAP=""
10858 WRAP32=""
10859 elif test x$ac_cv_func_syscall = xno; then
10860 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10861 WRAP=""
10862 WRAP32=""
10866 echo "$ac_t""no" 1>&6
10868 esac
10869 else
10870 echo "$ac_t""no" 1>&6
10875 #################################################
10876 # check for the AFS filesystem
10877 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10878 echo "configure:10879: checking whether to use AFS" >&5
10879 # Check whether --with-afs or --without-afs was given.
10880 if test "${with_afs+set}" = set; then
10881 withval="$with_afs"
10882 case "$withval" in
10883 yes)
10884 echo "$ac_t""yes" 1>&6
10885 cat >> confdefs.h <<\EOF
10886 #define WITH_AFS 1
10891 echo "$ac_t""no" 1>&6
10893 esac
10894 else
10895 echo "$ac_t""no" 1>&6
10901 #################################################
10902 # check for the DFS auth system
10903 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
10904 echo "configure:10905: checking whether to use DCE/DFS auth" >&5
10905 # Check whether --with-dfs or --without-dfs was given.
10906 if test "${with_dfs+set}" = set; then
10907 withval="$with_dfs"
10908 case "$withval" in
10909 yes)
10910 echo "$ac_t""yes" 1>&6
10911 cat >> confdefs.h <<\EOF
10912 #define WITH_DFS 1
10917 echo "$ac_t""no" 1>&6
10919 esac
10920 else
10921 echo "$ac_t""no" 1>&6
10926 #################################################
10927 # check for Kerberos IV auth system
10928 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10929 echo "configure:10930: checking whether to use Kerberos IV" >&5
10930 # Check whether --with-krb4 or --without-krb4 was given.
10931 if test "${with_krb4+set}" = set; then
10932 withval="$with_krb4"
10933 case "$withval" in
10934 yes)
10935 echo "$ac_t""yes" 1>&6
10936 cat >> confdefs.h <<\EOF
10937 #define KRB4_AUTH 1
10940 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10941 echo "configure:10942: checking for dn_expand in -lresolv" >&5
10942 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10944 echo $ac_n "(cached) $ac_c" 1>&6
10945 else
10946 ac_save_LIBS="$LIBS"
10947 LIBS="-lresolv $LIBS"
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 /* Override any gcc2 internal prototype to avoid an error. */
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954 char dn_expand();
10956 int main() {
10957 dn_expand()
10958 ; return 0; }
10960 if { (eval echo configure:10961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10961 rm -rf conftest*
10962 eval "ac_cv_lib_$ac_lib_var=yes"
10963 else
10964 echo "configure: failed program was:" >&5
10965 cat conftest.$ac_ext >&5
10966 rm -rf conftest*
10967 eval "ac_cv_lib_$ac_lib_var=no"
10969 rm -f conftest*
10970 LIBS="$ac_save_LIBS"
10973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10974 echo "$ac_t""yes" 1>&6
10975 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10977 cat >> confdefs.h <<EOF
10978 #define $ac_tr_lib 1
10981 LIBS="-lresolv $LIBS"
10983 else
10984 echo "$ac_t""no" 1>&6
10987 LIBS="$LIBS -lkrb -ldes"
10988 CFLAGS="$CFLAGS -I$withval/include"
10989 LDFLAGS="$LDFLAGS -L$withval/lib"
10992 echo "$ac_t""no" 1>&6
10994 esac
10995 else
10996 echo "$ac_t""no" 1>&6
11001 #################################################
11002 # check for Kerberos 5 auth system
11003 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11004 echo "configure:11005: checking whether to use Kerberos 5" >&5
11005 # Check whether --with-krb5 or --without-krb5 was given.
11006 if test "${with_krb5+set}" = set; then
11007 withval="$with_krb5"
11008 case "$withval" in
11009 yes)
11010 echo "$ac_t""yes" 1>&6
11011 cat >> confdefs.h <<\EOF
11012 #define KRB5_AUTH 1
11015 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11016 CFLAGS="$CFLAGS -I$withval/include"
11017 LDFLAGS="$LDFLAGS -L$withval/lib"
11020 echo "$ac_t""no" 1>&6
11022 esac
11023 else
11024 echo "$ac_t""no" 1>&6
11029 #################################################
11030 # check for automount support
11031 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11032 echo "configure:11033: checking whether to use AUTOMOUNT" >&5
11033 # Check whether --with-automount or --without-automount was given.
11034 if test "${with_automount+set}" = set; then
11035 withval="$with_automount"
11036 case "$withval" in
11037 yes)
11038 echo "$ac_t""yes" 1>&6
11039 cat >> confdefs.h <<\EOF
11040 #define WITH_AUTOMOUNT 1
11045 echo "$ac_t""no" 1>&6
11047 esac
11048 else
11049 echo "$ac_t""no" 1>&6
11054 #################################################
11055 # check for smbmount support
11056 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11057 echo "configure:11058: checking whether to use SMBMOUNT" >&5
11058 # Check whether --with-smbmount or --without-smbmount was given.
11059 if test "${with_smbmount+set}" = set; then
11060 withval="$with_smbmount"
11061 case "$withval" in
11062 yes)
11063 case "$host_os" in
11064 *linux*)
11065 echo "$ac_t""yes" 1>&6
11066 cat >> confdefs.h <<\EOF
11067 #define WITH_SMBMOUNT 1
11070 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11073 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11075 esac
11078 echo "$ac_t""no" 1>&6
11079 MPROGS=
11081 esac
11082 else
11083 echo "$ac_t""no" 1>&6
11084 MPROGS=
11090 #################################################
11091 # check for a PAM password database
11092 with_pam_for_crypt=no
11093 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11094 echo "configure:11095: checking whether to use PAM password database" >&5
11095 # Check whether --with-pam or --without-pam was given.
11096 if test "${with_pam+set}" = set; then
11097 withval="$with_pam"
11098 case "$withval" in
11099 yes)
11100 echo "$ac_t""yes" 1>&6
11101 cat >> confdefs.h <<\EOF
11102 #define WITH_PAM 1
11105 LIBS="$LIBS -lpam"
11106 with_pam_for_crypt=yes
11109 echo "$ac_t""no" 1>&6
11111 esac
11112 else
11113 echo "$ac_t""no" 1>&6
11118 # we can't build a pam module if we don't have pam.
11119 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11120 echo "configure:11121: checking for pam_get_data in -lpam" >&5
11121 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11123 echo $ac_n "(cached) $ac_c" 1>&6
11124 else
11125 ac_save_LIBS="$LIBS"
11126 LIBS="-lpam $LIBS"
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11133 char pam_get_data();
11135 int main() {
11136 pam_get_data()
11137 ; return 0; }
11139 if { (eval echo configure:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11140 rm -rf conftest*
11141 eval "ac_cv_lib_$ac_lib_var=yes"
11142 else
11143 echo "configure: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11145 rm -rf conftest*
11146 eval "ac_cv_lib_$ac_lib_var=no"
11148 rm -f conftest*
11149 LIBS="$ac_save_LIBS"
11152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11153 echo "$ac_t""yes" 1>&6
11154 cat >> confdefs.h <<\EOF
11155 #define HAVE_LIBPAM 1
11158 else
11159 echo "$ac_t""no" 1>&6
11163 #################################################
11164 # check for pam_smbpass support
11165 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11166 echo "configure:11167: checking whether to use pam_smbpass" >&5
11167 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11168 if test "${with_pam_smbpass+set}" = set; then
11169 withval="$with_pam_smbpass"
11170 case "$withval" in
11171 yes)
11172 echo "$ac_t""yes" 1>&6
11174 # Conditions under which pam_smbpass should not be built.
11176 if test x$PICFLAG = x; then
11177 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11178 PAM_MOD=""
11179 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11180 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11181 PAM_MOD=""
11182 else
11183 cat >> confdefs.h <<\EOF
11184 #define WITH_PAM_SMBPASS 1
11187 PAM_MOD="bin/pam_smbpass.so"
11191 echo "$ac_t""no" 1>&6
11193 esac
11194 else
11195 echo "$ac_t""no" 1>&6
11201 ###############################################
11202 # test for where we get crypt() from, but only
11203 # if not using PAM
11204 if test $with_pam_for_crypt = no; then
11205 for ac_func in crypt
11207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11208 echo "configure:11209: checking for $ac_func" >&5
11209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11210 echo $ac_n "(cached) $ac_c" 1>&6
11211 else
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func(); below. */
11217 #include <assert.h>
11218 /* Override any gcc2 internal prototype to avoid an error. */
11219 /* We use char because int might match the return type of a gcc2
11220 builtin and then its argument prototype would still apply. */
11221 char $ac_func();
11223 int main() {
11225 /* The GNU C library defines this for functions which it implements
11226 to always fail with ENOSYS. Some functions are actually named
11227 something starting with __ and the normal name is an alias. */
11228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11229 choke me
11230 #else
11231 $ac_func();
11232 #endif
11234 ; return 0; }
11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11237 rm -rf conftest*
11238 eval "ac_cv_func_$ac_func=yes"
11239 else
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11242 rm -rf conftest*
11243 eval "ac_cv_func_$ac_func=no"
11245 rm -f conftest*
11248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11249 echo "$ac_t""yes" 1>&6
11250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11251 cat >> confdefs.h <<EOF
11252 #define $ac_tr_func 1
11255 else
11256 echo "$ac_t""no" 1>&6
11258 done
11260 if test x"$ac_cv_func_crypt" = x"no"; then
11261 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11262 echo "configure:11263: checking for crypt in -lcrypt" >&5
11263 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266 else
11267 ac_save_LIBS="$LIBS"
11268 LIBS="-lcrypt $LIBS"
11269 cat > conftest.$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11272 /* Override any gcc2 internal prototype to avoid an error. */
11273 /* We use char because int might match the return type of a gcc2
11274 builtin and then its argument prototype would still apply. */
11275 char crypt();
11277 int main() {
11278 crypt()
11279 ; return 0; }
11281 if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11282 rm -rf conftest*
11283 eval "ac_cv_lib_$ac_lib_var=yes"
11284 else
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 eval "ac_cv_lib_$ac_lib_var=no"
11290 rm -f conftest*
11291 LIBS="$ac_save_LIBS"
11294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11295 echo "$ac_t""yes" 1>&6
11296 LIBS="$LIBS -lcrypt";
11297 cat >> confdefs.h <<\EOF
11298 #define HAVE_CRYPT 1
11301 else
11302 echo "$ac_t""no" 1>&6
11309 ## moved after the check for -lcrypt in order to
11310 ## ensure that the necessary libraries are included
11311 ## check checking for truncated salt. Wrapped by the
11312 ## $with_pam_for_crypt variable as above --jerry
11314 if test $with_pam_for_crypt = no; then
11315 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11316 echo "configure:11317: checking for a crypt that needs truncated salt" >&5
11317 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11319 else
11321 if test "$cross_compiling" = yes; then
11322 samba_cv_HAVE_TRUNCATED_SALT=cross
11323 else
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 #include "${srcdir-.}/tests/crypttest.c"
11329 if { (eval echo configure:11330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11330 then
11331 samba_cv_HAVE_TRUNCATED_SALT=no
11332 else
11333 echo "configure: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 rm -fr conftest*
11336 samba_cv_HAVE_TRUNCATED_SALT=yes
11338 rm -fr conftest*
11343 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11344 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11345 cat >> confdefs.h <<\EOF
11346 #define HAVE_TRUNCATED_SALT 1
11353 ########################################################################################
11355 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11357 ########################################################################################
11359 ## set the with_smbpasswd_sam as the default
11360 with_smbpasswd_sam=yes
11364 #################################################
11365 # check for a TDB password database
11366 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11367 echo "configure:11368: checking whether to use TDB SAM database" >&5
11368 # Check whether --with-tdbsam or --without-tdbsam was given.
11369 if test "${with_tdbsam+set}" = set; then
11370 withval="$with_tdbsam"
11371 case "$withval" in
11372 yes)
11373 echo "$ac_t""yes" 1>&6
11374 cat >> confdefs.h <<\EOF
11375 #define WITH_TDB_SAM 1
11378 with_smbpasswd_sam=no
11381 echo "$ac_t""no" 1>&6
11383 esac
11384 else
11385 echo "$ac_t""no" 1>&6
11390 #################################################
11391 # check for a LDAP password database
11392 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11393 echo "configure:11394: checking whether to use LDAP SAM database" >&5
11394 # Check whether --with-ldapsam or --without-ldapsam was given.
11395 if test "${with_ldapsam+set}" = set; then
11396 withval="$with_ldapsam"
11397 case "$withval" in
11398 yes)
11399 echo "$ac_t""yes" 1>&6
11400 cat >> confdefs.h <<\EOF
11401 #define WITH_LDAP_SAM 1
11404 LIBS="-lldap -llber -lresolv $LIBS"
11405 with_smbpasswd_sam=no
11408 echo "$ac_t""no" 1>&6
11410 esac
11411 else
11412 echo "$ac_t""no" 1>&6
11417 #################################################
11418 # check for a NISPLUS password database
11419 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11420 echo "configure:11421: checking whether to use NISPLUS SAM database" >&5
11421 # Check whether --with-nisplussam or --without-nisplussam was given.
11422 if test "${with_nisplussam+set}" = set; then
11423 withval="$with_nisplussam"
11424 case "$withval" in
11425 yes)
11426 echo "$ac_t""yes" 1>&6
11427 cat >> confdefs.h <<\EOF
11428 #define WITH_NISPLUS_SAM 1
11431 with_smbpasswd_sam=no
11434 echo "$ac_t""no" 1>&6
11436 esac
11437 else
11438 echo "$ac_t""no" 1>&6
11443 ################################################
11444 # This test should come last because the
11445 # smbpasswd SAM is only used if another format
11446 # has not been defined
11447 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11448 echo "configure:11449: checking whether to use traditional smbpasswd file" >&5
11449 if test $with_smbpasswd_sam = yes; then
11450 echo "$ac_t""yes" 1>&6
11451 cat >> confdefs.h <<\EOF
11452 #define WITH_SMBPASSWD_SAM 1
11455 PDBEDIT=""
11456 else
11457 echo "$ac_t""no" 1>&6
11458 PDBEDIT=bin/pdbedit
11461 ########################################################################################
11463 ## END OF TESTS FOR SAM BACKENDS.
11465 ########################################################################################
11467 #################################################
11468 # check for a NISPLUS_HOME support
11469 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11470 echo "configure:11471: checking whether to use NISPLUS_HOME" >&5
11471 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11472 if test "${with_nisplus_home+set}" = set; then
11473 withval="$with_nisplus_home"
11474 case "$withval" in
11475 yes)
11476 echo "$ac_t""yes" 1>&6
11477 cat >> confdefs.h <<\EOF
11478 #define WITH_NISPLUS_HOME 1
11483 echo "$ac_t""no" 1>&6
11485 esac
11486 else
11487 echo "$ac_t""no" 1>&6
11492 #################################################
11493 # check for the secure socket layer
11494 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11495 echo "configure:11496: checking whether to use SSL" >&5
11496 # Check whether --with-ssl or --without-ssl was given.
11497 if test "${with_ssl+set}" = set; then
11498 withval="$with_ssl"
11499 case "$withval" in
11500 yes)
11501 echo "$ac_t""yes" 1>&6
11502 cat >> confdefs.h <<\EOF
11503 #define WITH_SSL 1
11506 withval="/usr/local/ssl" # default
11508 if test "${with_sslinc+set}" = set; then
11510 withval="$with_sslinc"
11511 case "$withval" in
11512 yes|no)
11513 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11514 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11517 CFLAGS="-I${withval} $CFLAGS"
11519 esac
11521 else
11523 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11527 if test "${with_ssllib+set}" = set; then
11529 withval="$with_ssllib"
11530 case "$withval" in
11531 yes|no)
11532 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11533 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11536 LDFLAGS="-L${withval}/lib $LDFLAGS"
11538 esac
11540 else
11542 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11546 LIBS="-lssl -lcrypto $LIBS"
11548 # if test ! -d ${withval}; then
11549 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11550 # exit 1
11551 # fi
11553 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11557 echo "$ac_t""no" 1>&6
11559 esac
11560 else
11561 echo "$ac_t""no" 1>&6
11566 #################################################
11567 # check for syslog logging
11568 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11569 echo "configure:11570: checking whether to use syslog logging" >&5
11570 # Check whether --with-syslog or --without-syslog was given.
11571 if test "${with_syslog+set}" = set; then
11572 withval="$with_syslog"
11573 case "$withval" in
11574 yes)
11575 echo "$ac_t""yes" 1>&6
11576 cat >> confdefs.h <<\EOF
11577 #define WITH_SYSLOG 1
11582 echo "$ac_t""no" 1>&6
11584 esac
11585 else
11586 echo "$ac_t""no" 1>&6
11591 #################################################
11592 # check for a shared memory profiling support
11593 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11594 echo "configure:11595: checking whether to use profiling" >&5
11595 # Check whether --with-profiling-data or --without-profiling-data was given.
11596 if test "${with_profiling_data+set}" = set; then
11597 withval="$with_profiling_data"
11598 case "$withval" in
11599 yes)
11600 echo "$ac_t""yes" 1>&6
11601 cat >> confdefs.h <<\EOF
11602 #define WITH_PROFILE 1
11607 echo "$ac_t""no" 1>&6
11609 esac
11610 else
11611 echo "$ac_t""no" 1>&6
11617 #################################################
11618 # check for experimental disk-quotas support
11619 QUOTAOBJS=smbd/noquotas.o
11621 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11622 echo "configure:11623: checking whether to support disk-quotas" >&5
11623 # Check whether --with-quotas or --without-quotas was given.
11624 if test "${with_quotas+set}" = set; then
11625 withval="$with_quotas"
11626 case "$withval" in
11627 yes)
11628 echo "$ac_t""yes" 1>&6
11629 QUOTAOBJS=smbd/quotas.o
11630 case "$host_os" in
11631 *linux*)
11632 # Check for kernel 2.4.x quota braindamage...
11633 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11634 echo "configure:11635: checking for linux 2.4.x quota braindamage.." >&5
11635 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11637 else
11639 cat > conftest.$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11642 #include <stdio.h>
11643 #include <sys/types.h>
11644 #include <asm/types.h>
11645 #include <linux/quota.h>
11646 #include <mntent.h>
11647 #include <linux/unistd.h>
11648 int main() {
11649 struct mem_dqblk D;
11650 ; return 0; }
11652 if { (eval echo configure:11653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11653 rm -rf conftest*
11654 samba_cv_linux_2_4_quota_braindamage=yes
11655 else
11656 echo "configure: failed program was:" >&5
11657 cat conftest.$ac_ext >&5
11658 rm -rf conftest*
11659 samba_cv_linux_2_4_quota_braindamage=no
11661 rm -f conftest*
11664 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11665 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
11666 cat >> confdefs.h <<\EOF
11667 #define LINUX_QUOTAS_2 1
11670 else
11671 cat >> confdefs.h <<\EOF
11672 #define LINUX_QUOTAS_1 1
11679 esac
11682 echo "$ac_t""no" 1>&6
11684 esac
11685 else
11686 echo "$ac_t""no" 1>&6
11692 #################################################
11693 # check for experimental utmp accounting
11695 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11696 echo "configure:11697: checking whether to support utmp accounting" >&5
11697 # Check whether --with-utmp or --without-utmp was given.
11698 if test "${with_utmp+set}" = set; then
11699 withval="$with_utmp"
11700 case "$withval" in
11701 yes)
11702 echo "$ac_t""yes" 1>&6
11703 cat >> confdefs.h <<\EOF
11704 #define WITH_UTMP 1
11709 echo "$ac_t""no" 1>&6
11711 esac
11712 else
11713 echo "$ac_t""no" 1>&6
11718 #################################################
11719 # check for MS Dfs support
11721 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11722 echo "configure:11723: checking whether to support Microsoft Dfs" >&5
11723 # Check whether --with-msdfs or --without-msdfs was given.
11724 if test "${with_msdfs+set}" = set; then
11725 withval="$with_msdfs"
11726 case "$withval" in
11727 yes)
11728 echo "$ac_t""yes" 1>&6
11729 cat >> confdefs.h <<\EOF
11730 #define WITH_MSDFS 1
11735 echo "$ac_t""no" 1>&6
11737 esac
11738 else
11739 echo "$ac_t""no" 1>&6
11744 #################################################
11745 # check for Samba VFS support
11747 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11748 echo "configure:11749: checking whether to support the experimantal Samba vfs" >&5
11749 # Check whether --with-vfs or --without-vfs was given.
11750 if test "${with_vfs+set}" = set; then
11751 withval="$with_vfs"
11752 case "$withval" in
11753 yes)
11754 echo "$ac_t""yes" 1>&6
11755 cat >> confdefs.h <<\EOF
11756 #define WITH_VFS 1
11761 echo "$ac_t""no" 1>&6
11763 esac
11764 else
11765 echo "$ac_t""no" 1>&6
11771 #################################################
11772 # should we build libsmbclient?
11774 LIBSMBCLIENT_SHARED=
11775 LIBSMBCLIENT=
11776 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
11777 echo "configure:11778: checking whether to build the libsmbclient shared library" >&5
11778 # Check whether --with-libsmbclient or --without-libsmbclient was given.
11779 if test "${with_libsmbclient+set}" = set; then
11780 withval="$with_libsmbclient"
11781 case "$withval" in
11782 yes)
11783 if test $BLDSHARED = true; then
11784 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
11785 LIBSMBCLIENT=libsmbclient
11786 echo "$ac_t""yes" 1>&6
11787 else
11788 echo "$ac_t""no shared library support" 1>&6
11792 echo "$ac_t""no" 1>&6
11794 esac
11795 else
11796 echo "$ac_t""no" 1>&6
11801 #################################################
11802 # these tests are taken from the GNU fileutils package
11803 echo "checking how to get filesystem space usage" 1>&6
11804 echo "configure:11805: checking how to get filesystem space usage" >&5
11805 space=no
11807 # Test for statvfs64.
11808 if test $space = no; then
11809 # SVR4
11810 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11811 echo "configure:11812: checking statvfs64 function (SVR4)" >&5
11812 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11813 echo $ac_n "(cached) $ac_c" 1>&6
11814 else
11815 if test "$cross_compiling" = yes; then
11816 fu_cv_sys_stat_statvfs64=cross
11817 else
11818 cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11822 #if defined(HAVE_UNISTD_H)
11823 #include <unistd.h>
11824 #endif
11825 #include <sys/types.h>
11826 #include <sys/statvfs.h>
11827 main ()
11829 struct statvfs64 fsd;
11830 exit (statvfs64 (".", &fsd));
11833 if { (eval echo configure:11834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11834 then
11835 fu_cv_sys_stat_statvfs64=yes
11836 else
11837 echo "configure: failed program was:" >&5
11838 cat conftest.$ac_ext >&5
11839 rm -fr conftest*
11840 fu_cv_sys_stat_statvfs64=no
11842 rm -fr conftest*
11847 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11848 if test $fu_cv_sys_stat_statvfs64 = yes; then
11849 space=yes
11850 cat >> confdefs.h <<\EOF
11851 #define STAT_STATVFS64 1
11857 # Perform only the link test since it seems there are no variants of the
11858 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11859 # because that got a false positive on SCO OSR5. Adding the declaration
11860 # of a `struct statvfs' causes this test to fail (as it should) on such
11861 # systems. That system is reported to work fine with STAT_STATFS4 which
11862 # is what it gets when this test fails.
11863 if test $space = no; then
11864 # SVR4
11865 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11866 echo "configure:11867: checking statvfs function (SVR4)" >&5
11867 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11869 else
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873 #include <sys/types.h>
11874 #include <sys/statvfs.h>
11875 int main() {
11876 struct statvfs fsd; statvfs (0, &fsd);
11877 ; return 0; }
11879 if { (eval echo configure:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11880 rm -rf conftest*
11881 fu_cv_sys_stat_statvfs=yes
11882 else
11883 echo "configure: failed program was:" >&5
11884 cat conftest.$ac_ext >&5
11885 rm -rf conftest*
11886 fu_cv_sys_stat_statvfs=no
11888 rm -f conftest*
11891 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11892 if test $fu_cv_sys_stat_statvfs = yes; then
11893 space=yes
11894 cat >> confdefs.h <<\EOF
11895 #define STAT_STATVFS 1
11901 if test $space = no; then
11902 # DEC Alpha running OSF/1
11903 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11904 echo "configure:11905: checking for 3-argument statfs function (DEC OSF/1)" >&5
11905 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11907 else
11908 if test "$cross_compiling" = yes; then
11909 fu_cv_sys_stat_statfs3_osf1=no
11910 else
11911 cat > conftest.$ac_ext <<EOF
11912 #line 11913 "configure"
11913 #include "confdefs.h"
11915 #include <sys/param.h>
11916 #include <sys/types.h>
11917 #include <sys/mount.h>
11918 main ()
11920 struct statfs fsd;
11921 fsd.f_fsize = 0;
11922 exit (statfs (".", &fsd, sizeof (struct statfs)));
11925 if { (eval echo configure:11926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11926 then
11927 fu_cv_sys_stat_statfs3_osf1=yes
11928 else
11929 echo "configure: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 rm -fr conftest*
11932 fu_cv_sys_stat_statfs3_osf1=no
11934 rm -fr conftest*
11939 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11940 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11941 space=yes
11942 cat >> confdefs.h <<\EOF
11943 #define STAT_STATFS3_OSF1 1
11949 if test $space = no; then
11950 # AIX
11951 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11952 echo "configure:11953: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11953 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
11955 else
11956 if test "$cross_compiling" = yes; then
11957 fu_cv_sys_stat_statfs2_bsize=no
11958 else
11959 cat > conftest.$ac_ext <<EOF
11960 #line 11961 "configure"
11961 #include "confdefs.h"
11963 #ifdef HAVE_SYS_PARAM_H
11964 #include <sys/param.h>
11965 #endif
11966 #ifdef HAVE_SYS_MOUNT_H
11967 #include <sys/mount.h>
11968 #endif
11969 #ifdef HAVE_SYS_VFS_H
11970 #include <sys/vfs.h>
11971 #endif
11972 main ()
11974 struct statfs fsd;
11975 fsd.f_bsize = 0;
11976 exit (statfs (".", &fsd));
11979 if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11980 then
11981 fu_cv_sys_stat_statfs2_bsize=yes
11982 else
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 rm -fr conftest*
11986 fu_cv_sys_stat_statfs2_bsize=no
11988 rm -fr conftest*
11993 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11994 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11995 space=yes
11996 cat >> confdefs.h <<\EOF
11997 #define STAT_STATFS2_BSIZE 1
12003 if test $space = no; then
12004 # SVR3
12005 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12006 echo "configure:12007: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12007 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12009 else
12010 if test "$cross_compiling" = yes; then
12011 fu_cv_sys_stat_statfs4=no
12012 else
12013 cat > conftest.$ac_ext <<EOF
12014 #line 12015 "configure"
12015 #include "confdefs.h"
12016 #include <sys/types.h>
12017 #include <sys/statfs.h>
12018 main ()
12020 struct statfs fsd;
12021 exit (statfs (".", &fsd, sizeof fsd, 0));
12024 if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12025 then
12026 fu_cv_sys_stat_statfs4=yes
12027 else
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12030 rm -fr conftest*
12031 fu_cv_sys_stat_statfs4=no
12033 rm -fr conftest*
12038 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12039 if test $fu_cv_sys_stat_statfs4 = yes; then
12040 space=yes
12041 cat >> confdefs.h <<\EOF
12042 #define STAT_STATFS4 1
12048 if test $space = no; then
12049 # 4.4BSD and NetBSD
12050 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12051 echo "configure:12052: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12052 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12054 else
12055 if test "$cross_compiling" = yes; then
12056 fu_cv_sys_stat_statfs2_fsize=no
12057 else
12058 cat > conftest.$ac_ext <<EOF
12059 #line 12060 "configure"
12060 #include "confdefs.h"
12061 #include <sys/types.h>
12062 #ifdef HAVE_SYS_PARAM_H
12063 #include <sys/param.h>
12064 #endif
12065 #ifdef HAVE_SYS_MOUNT_H
12066 #include <sys/mount.h>
12067 #endif
12068 main ()
12070 struct statfs fsd;
12071 fsd.f_fsize = 0;
12072 exit (statfs (".", &fsd));
12075 if { (eval echo configure:12076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12076 then
12077 fu_cv_sys_stat_statfs2_fsize=yes
12078 else
12079 echo "configure: failed program was:" >&5
12080 cat conftest.$ac_ext >&5
12081 rm -fr conftest*
12082 fu_cv_sys_stat_statfs2_fsize=no
12084 rm -fr conftest*
12089 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12090 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12091 space=yes
12092 cat >> confdefs.h <<\EOF
12093 #define STAT_STATFS2_FSIZE 1
12099 if test $space = no; then
12100 # Ultrix
12101 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12102 echo "configure:12103: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12103 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12104 echo $ac_n "(cached) $ac_c" 1>&6
12105 else
12106 if test "$cross_compiling" = yes; then
12107 fu_cv_sys_stat_fs_data=no
12108 else
12109 cat > conftest.$ac_ext <<EOF
12110 #line 12111 "configure"
12111 #include "confdefs.h"
12112 #include <sys/types.h>
12113 #ifdef HAVE_SYS_PARAM_H
12114 #include <sys/param.h>
12115 #endif
12116 #ifdef HAVE_SYS_MOUNT_H
12117 #include <sys/mount.h>
12118 #endif
12119 #ifdef HAVE_SYS_FS_TYPES_H
12120 #include <sys/fs_types.h>
12121 #endif
12122 main ()
12124 struct fs_data fsd;
12125 /* Ultrix's statfs returns 1 for success,
12126 0 for not mounted, -1 for failure. */
12127 exit (statfs (".", &fsd) != 1);
12130 if { (eval echo configure:12131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12131 then
12132 fu_cv_sys_stat_fs_data=yes
12133 else
12134 echo "configure: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12136 rm -fr conftest*
12137 fu_cv_sys_stat_fs_data=no
12139 rm -fr conftest*
12144 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12145 if test $fu_cv_sys_stat_fs_data = yes; then
12146 space=yes
12147 cat >> confdefs.h <<\EOF
12148 #define STAT_STATFS2_FS_DATA 1
12155 # As a gating factor for large file support, in order to
12156 # use <4GB files we must have the following minimal support
12157 # available.
12158 # long long, and a 64 bit off_t or off64_t.
12159 # If we don't have all of these then disable large
12160 # file support.
12162 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12163 echo "configure:12164: checking checking if large file support can be enabled" >&5
12164 cat > conftest.$ac_ext <<EOF
12165 #line 12166 "configure"
12166 #include "confdefs.h"
12168 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12169 #include <sys/types.h>
12170 #else
12171 __COMPILE_ERROR_
12172 #endif
12174 int main() {
12175 int i
12176 ; return 0; }
12178 if { (eval echo configure:12179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12179 rm -rf conftest*
12180 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12181 else
12182 echo "configure: failed program was:" >&5
12183 cat conftest.$ac_ext >&5
12184 rm -rf conftest*
12185 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12187 rm -f conftest*
12188 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12189 echo "$ac_t""yes" 1>&6
12190 cat >> confdefs.h <<\EOF
12191 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12194 else
12195 echo "$ac_t""no" 1>&6
12198 # Check whether --with-spinlocks or --without-spinlocks was given.
12199 if test "${with_spinlocks+set}" = set; then
12200 withval="$with_spinlocks"
12204 if test "x$with_spinlocks" = "xyes"; then
12205 cat >> confdefs.h <<\EOF
12206 #define USE_SPINLOCKS 1
12210 case "$host_cpu" in
12211 sparc)
12212 cat >> confdefs.h <<\EOF
12213 #define SPARC_SPINLOCKS 1
12218 i386|i486|i586|i686)
12219 cat >> confdefs.h <<\EOF
12220 #define INTEL_SPINLOCKS 1
12225 mips)
12226 cat >> confdefs.h <<\EOF
12227 #define MIPS_SPINLOCKS 1
12232 powerpc)
12233 cat >> confdefs.h <<\EOF
12234 #define POWERPC_SPINLOCKS 1
12238 esac
12241 #################################################
12242 # check for ACL support
12244 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12245 echo "configure:12246: checking whether to support ACLs" >&5
12246 # Check whether --with-acl-support or --without-acl-support was given.
12247 if test "${with_acl_support+set}" = set; then
12248 withval="$with_acl_support"
12249 case "$withval" in
12250 yes)
12252 case "$host_os" in
12253 *sysv5*)
12254 echo "$ac_t""Using UnixWare ACLs" 1>&6
12255 cat >> confdefs.h <<\EOF
12256 #define HAVE_UNIXWARE_ACLS 1
12260 *solaris*)
12261 echo "$ac_t""Using solaris ACLs" 1>&6
12262 cat >> confdefs.h <<\EOF
12263 #define HAVE_SOLARIS_ACLS 1
12267 *irix*)
12268 echo "$ac_t""Using IRIX ACLs" 1>&6
12269 cat >> confdefs.h <<\EOF
12270 #define HAVE_IRIX_ACLS 1
12274 *aix*)
12275 echo "$ac_t""Using AIX ACLs" 1>&6
12276 cat >> confdefs.h <<\EOF
12277 #define HAVE_AIX_ACLS 1
12281 *osf*)
12282 echo "$ac_t""Using Tru64 ACLs" 1>&6
12283 cat >> confdefs.h <<\EOF
12284 #define HAVE_TRU64_ACLS 1
12287 LIBS="$LIBS -lpacl"
12290 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12291 echo "configure:12292: checking for acl_get_file in -lacl" >&5
12292 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12294 echo $ac_n "(cached) $ac_c" 1>&6
12295 else
12296 ac_save_LIBS="$LIBS"
12297 LIBS="-lacl $LIBS"
12298 cat > conftest.$ac_ext <<EOF
12299 #line 12300 "configure"
12300 #include "confdefs.h"
12301 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char acl_get_file();
12306 int main() {
12307 acl_get_file()
12308 ; return 0; }
12310 if { (eval echo configure:12311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12311 rm -rf conftest*
12312 eval "ac_cv_lib_$ac_lib_var=yes"
12313 else
12314 echo "configure: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12316 rm -rf conftest*
12317 eval "ac_cv_lib_$ac_lib_var=no"
12319 rm -f conftest*
12320 LIBS="$ac_save_LIBS"
12323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12324 echo "$ac_t""yes" 1>&6
12325 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12327 cat >> confdefs.h <<EOF
12328 #define $ac_tr_lib 1
12331 LIBS="-lacl $LIBS"
12333 else
12334 echo "$ac_t""no" 1>&6
12337 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12338 echo "configure:12339: checking for ACL support" >&5
12339 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12340 echo $ac_n "(cached) $ac_c" 1>&6
12341 else
12343 cat > conftest.$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 #include <sys/types.h>
12347 #include <sys/acl.h>
12348 int main() {
12349 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12350 ; return 0; }
12352 if { (eval echo configure:12353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12353 rm -rf conftest*
12354 samba_cv_HAVE_POSIX_ACLS=yes
12355 else
12356 echo "configure: failed program was:" >&5
12357 cat conftest.$ac_ext >&5
12358 rm -rf conftest*
12359 samba_cv_HAVE_POSIX_ACLS=no
12361 rm -f conftest*
12364 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12365 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12366 echo "$ac_t""Using posix ACLs" 1>&6
12367 cat >> confdefs.h <<\EOF
12368 #define HAVE_POSIX_ACLS 1
12371 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12372 echo "configure:12373: checking for acl_get_perm_np" >&5
12373 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12374 echo $ac_n "(cached) $ac_c" 1>&6
12375 else
12377 cat > conftest.$ac_ext <<EOF
12378 #line 12379 "configure"
12379 #include "confdefs.h"
12380 #include <sys/types.h>
12381 #include <sys/acl.h>
12382 int main() {
12383 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12384 ; return 0; }
12386 if { (eval echo configure:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12387 rm -rf conftest*
12388 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12389 else
12390 echo "configure: failed program was:" >&5
12391 cat conftest.$ac_ext >&5
12392 rm -rf conftest*
12393 samba_cv_HAVE_ACL_GET_PERM_NP=no
12395 rm -f conftest*
12398 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12399 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12400 cat >> confdefs.h <<\EOF
12401 #define HAVE_ACL_GET_PERM_NP 1
12407 esac
12410 echo "$ac_t""no" 1>&6
12411 cat >> confdefs.h <<\EOF
12412 #define HAVE_NO_ACLS 1
12416 esac
12417 else
12418 cat >> confdefs.h <<\EOF
12419 #define HAVE_NO_ACLS 1
12422 echo "$ac_t""no" 1>&6
12427 #################################################
12428 # check for the historical SAMBA installation
12430 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
12431 # Put all binaries under the /usr/local/samba/bin directory.
12432 sbindir="$bindir"
12435 #################################################
12436 # Check whether winbind is supported on this platform. If so we need to
12437 # build and install client programs (WINBIND_TARGETS), sbin programs
12438 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12440 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12441 echo "configure:12442: checking whether to build winbind" >&5
12443 # Initially, the value of $host_os decides whether winbind is supported
12445 case "$host_os" in
12446 *linux*|*solaris*)
12447 HAVE_WINBIND=yes
12450 HAVE_WINBIND=no
12451 winbind_no_reason=", unsupported on $host_os"
12453 esac
12455 # Check the setting of --with-winbindd
12457 # Check whether --with-winbind or --without-winbind was given.
12458 if test "${with_winbind+set}" = set; then
12459 withval="$with_winbind"
12461 case "$withval" in
12462 yes)
12463 HAVE_WINBIND=yes
12466 HAVE_WINBIND=no
12467 winbind_reason=""
12469 esac
12473 # We need unix domain sockets for winbind
12475 if test x"$HAVE_WINBIND" = x"yes"; then
12476 if test x"$samba_cv_unixsocket" = x"no"; then
12477 winbind_no_reason=", no unix domain socket support on $host_os"
12478 HAVE_WINBIND=no
12482 # Display test results
12484 if test x"$HAVE_WINBIND" = x"yes"; then
12486 echo "$ac_t""yes" 1>&6
12488 WINBIND_TARGETS="bin/wbinfo"
12489 WINBIND_STARGETS="bin/winbindd"
12490 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
12492 case "$with_pam" in
12493 yes)
12494 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
12496 esac
12497 else
12498 echo "$ac_t""no$winbind_no_reason" 1>&6
12500 WINBIND_TARGETS=""
12501 WINBIND_STARGETS=""
12502 WINBIND_LTARGETS=""
12503 WINBIND_PAM_TARGETS=""
12506 # Substitution time!
12513 #################################################
12514 # final configure stuff
12515 echo "checking configure summary"
12516 if test "$cross_compiling" = yes; then
12518 else
12519 cat > conftest.$ac_ext <<EOF
12520 #line 12521 "configure"
12521 #include "confdefs.h"
12522 #include "${srcdir-.}/tests/summary.c"
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12525 then
12526 echo "configure OK";
12527 else
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 rm -fr conftest*
12531 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12533 rm -fr conftest*
12537 builddir=`pwd`
12540 trap '' 1 2 15
12541 cat > confcache <<\EOF
12542 # This file is a shell script that caches the results of configure
12543 # tests run on this system so they can be shared between configure
12544 # scripts and configure runs. It is not useful on other systems.
12545 # If it contains results you don't want to keep, you may remove or edit it.
12547 # By default, configure uses ./config.cache as the cache file,
12548 # creating it if it does not exist already. You can give configure
12549 # the --cache-file=FILE option to use a different cache file; that is
12550 # what configure does when it calls configure scripts in
12551 # subdirectories, so they share the cache.
12552 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12553 # config.status only pays attention to the cache file if you give it the
12554 # --recheck option to rerun configure.
12557 # The following way of writing the cache mishandles newlines in values,
12558 # but we know of no workaround that is simple, portable, and efficient.
12559 # So, don't put newlines in cache variables' values.
12560 # Ultrix sh set writes to stderr and can't be redirected directly,
12561 # and sets the high bit in the cache file unless we assign to the vars.
12562 (set) 2>&1 |
12563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12564 *ac_space=\ *)
12565 # `set' does not quote correctly, so add quotes (double-quote substitution
12566 # turns \\\\ into \\, and sed turns \\ into \).
12567 sed -n \
12568 -e "s/'/'\\\\''/g" \
12569 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12572 # `set' quotes correctly as required by POSIX, so do not add quotes.
12573 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12575 esac >> confcache
12576 if cmp -s $cache_file confcache; then
12578 else
12579 if test -w $cache_file; then
12580 echo "updating cache $cache_file"
12581 cat confcache > $cache_file
12582 else
12583 echo "not updating unwritable cache $cache_file"
12586 rm -f confcache
12588 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12591 # Let make expand exec_prefix.
12592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12594 # Any assignment to VPATH causes Sun make to only execute
12595 # the first set of double-colon rules, so remove it if not needed.
12596 # If there is a colon in the path, we need to keep it.
12597 if test "x$srcdir" = x.; then
12598 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12601 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12603 DEFS=-DHAVE_CONFIG_H
12605 # Without the "./", some shells look in PATH for config.status.
12606 : ${CONFIG_STATUS=./config.status}
12608 echo creating $CONFIG_STATUS
12609 rm -f $CONFIG_STATUS
12610 cat > $CONFIG_STATUS <<EOF
12611 #! /bin/sh
12612 # Generated automatically by configure.
12613 # Run this file to recreate the current configuration.
12614 # This directory was configured as follows,
12615 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12617 # $0 $ac_configure_args
12619 # Compiler output produced by configure, useful for debugging
12620 # configure, is in ./config.log if it exists.
12622 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12623 for ac_option
12625 case "\$ac_option" in
12626 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12627 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12628 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12629 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12630 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12631 exit 0 ;;
12632 -help | --help | --hel | --he | --h)
12633 echo "\$ac_cs_usage"; exit 0 ;;
12634 *) echo "\$ac_cs_usage"; exit 1 ;;
12635 esac
12636 done
12638 ac_given_srcdir=$srcdir
12639 ac_given_INSTALL="$INSTALL"
12641 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12643 cat >> $CONFIG_STATUS <<EOF
12645 # Protect against being on the right side of a sed subst in config.status.
12646 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12647 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12648 $ac_vpsub
12649 $extrasub
12650 s%@SHELL@%$SHELL%g
12651 s%@CFLAGS@%$CFLAGS%g
12652 s%@CPPFLAGS@%$CPPFLAGS%g
12653 s%@CXXFLAGS@%$CXXFLAGS%g
12654 s%@FFLAGS@%$FFLAGS%g
12655 s%@DEFS@%$DEFS%g
12656 s%@LDFLAGS@%$LDFLAGS%g
12657 s%@LIBS@%$LIBS%g
12658 s%@exec_prefix@%$exec_prefix%g
12659 s%@prefix@%$prefix%g
12660 s%@program_transform_name@%$program_transform_name%g
12661 s%@bindir@%$bindir%g
12662 s%@sbindir@%$sbindir%g
12663 s%@libexecdir@%$libexecdir%g
12664 s%@datadir@%$datadir%g
12665 s%@sysconfdir@%$sysconfdir%g
12666 s%@sharedstatedir@%$sharedstatedir%g
12667 s%@localstatedir@%$localstatedir%g
12668 s%@libdir@%$libdir%g
12669 s%@includedir@%$includedir%g
12670 s%@oldincludedir@%$oldincludedir%g
12671 s%@infodir@%$infodir%g
12672 s%@mandir@%$mandir%g
12673 s%@codepagedir@%$codepagedir%g
12674 s%@configdir@%$configdir%g
12675 s%@lockdir@%$lockdir%g
12676 s%@logfilebase@%$logfilebase%g
12677 s%@privatedir@%$privatedir%g
12678 s%@swatdir@%$swatdir%g
12679 s%@RUNPROG@%$RUNPROG%g
12680 s%@MPROGS@%$MPROGS%g
12681 s%@LDSHFLAGS@%$LDSHFLAGS%g
12682 s%@SHLD@%$SHLD%g
12683 s%@HOST_OS@%$HOST_OS%g
12684 s%@PAM_MOD@%$PAM_MOD%g
12685 s%@PDBEDIT@%$PDBEDIT%g
12686 s%@WRAP@%$WRAP%g
12687 s%@WRAP32@%$WRAP32%g
12688 s%@PICFLAG@%$PICFLAG%g
12689 s%@PICSUFFIX@%$PICSUFFIX%g
12690 s%@SHLIBEXT@%$SHLIBEXT%g
12691 s%@BLDSHARED@%$BLDSHARED%g
12692 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
12693 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
12694 s%@CC@%$CC%g
12695 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12696 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12697 s%@INSTALL_DATA@%$INSTALL_DATA%g
12698 s%@AWK@%$AWK%g
12699 s%@BROKEN_CC@%$BROKEN_CC%g
12700 s%@host@%$host%g
12701 s%@host_alias@%$host_alias%g
12702 s%@host_cpu@%$host_cpu%g
12703 s%@host_vendor@%$host_vendor%g
12704 s%@host_os@%$host_os%g
12705 s%@target@%$target%g
12706 s%@target_alias@%$target_alias%g
12707 s%@target_cpu@%$target_cpu%g
12708 s%@target_vendor@%$target_vendor%g
12709 s%@target_os@%$target_os%g
12710 s%@build@%$build%g
12711 s%@build_alias@%$build_alias%g
12712 s%@build_cpu@%$build_cpu%g
12713 s%@build_vendor@%$build_vendor%g
12714 s%@build_os@%$build_os%g
12715 s%@CPP@%$CPP%g
12716 s%@LIBOBJS@%$LIBOBJS%g
12717 s%@TERMLIBS@%$TERMLIBS%g
12718 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12719 s%@ROFF@%$ROFF%g
12720 s%@QUOTAOBJS@%$QUOTAOBJS%g
12721 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12722 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12723 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12724 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
12725 s%@builddir@%$builddir%g
12727 CEOF
12730 cat >> $CONFIG_STATUS <<\EOF
12732 # Split the substitutions into bite-sized pieces for seds with
12733 # small command number limits, like on Digital OSF/1 and HP-UX.
12734 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12735 ac_file=1 # Number of current file.
12736 ac_beg=1 # First line for current file.
12737 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12738 ac_more_lines=:
12739 ac_sed_cmds=""
12740 while $ac_more_lines; do
12741 if test $ac_beg -gt 1; then
12742 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12743 else
12744 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12746 if test ! -s conftest.s$ac_file; then
12747 ac_more_lines=false
12748 rm -f conftest.s$ac_file
12749 else
12750 if test -z "$ac_sed_cmds"; then
12751 ac_sed_cmds="sed -f conftest.s$ac_file"
12752 else
12753 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12755 ac_file=`expr $ac_file + 1`
12756 ac_beg=$ac_end
12757 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12759 done
12760 if test -z "$ac_sed_cmds"; then
12761 ac_sed_cmds=cat
12765 cat >> $CONFIG_STATUS <<EOF
12767 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12769 cat >> $CONFIG_STATUS <<\EOF
12770 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12772 case "$ac_file" in
12773 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12774 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12775 *) ac_file_in="${ac_file}.in" ;;
12776 esac
12778 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12780 # Remove last slash and all that follows it. Not all systems have dirname.
12781 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12782 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12783 # The file is in a subdirectory.
12784 test ! -d "$ac_dir" && mkdir "$ac_dir"
12785 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12786 # A "../" for each directory in $ac_dir_suffix.
12787 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12788 else
12789 ac_dir_suffix= ac_dots=
12792 case "$ac_given_srcdir" in
12793 .) srcdir=.
12794 if test -z "$ac_dots"; then top_srcdir=.
12795 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12796 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12797 *) # Relative path.
12798 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12799 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12800 esac
12802 case "$ac_given_INSTALL" in
12803 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12804 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12805 esac
12807 echo creating "$ac_file"
12808 rm -f "$ac_file"
12809 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12810 case "$ac_file" in
12811 *Makefile*) ac_comsub="1i\\
12812 # $configure_input" ;;
12813 *) ac_comsub= ;;
12814 esac
12816 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12817 sed -e "$ac_comsub
12818 s%@configure_input@%$configure_input%g
12819 s%@srcdir@%$srcdir%g
12820 s%@top_srcdir@%$top_srcdir%g
12821 s%@INSTALL@%$INSTALL%g
12822 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12823 fi; done
12824 rm -f conftest.s*
12826 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12827 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12829 # ac_d sets the value in "#define NAME VALUE" lines.
12830 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12831 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12832 ac_dC='\3'
12833 ac_dD='%g'
12834 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12835 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12836 ac_uB='\([ ]\)%\1#\2define\3'
12837 ac_uC=' '
12838 ac_uD='\4%g'
12839 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12840 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12841 ac_eB='$%\1#\2define\3'
12842 ac_eC=' '
12843 ac_eD='%g'
12845 if test "${CONFIG_HEADERS+set}" != set; then
12847 cat >> $CONFIG_STATUS <<EOF
12848 CONFIG_HEADERS="include/config.h"
12850 cat >> $CONFIG_STATUS <<\EOF
12852 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12854 case "$ac_file" in
12855 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12856 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12857 *) ac_file_in="${ac_file}.in" ;;
12858 esac
12860 echo creating $ac_file
12862 rm -f conftest.frag conftest.in conftest.out
12863 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12864 cat $ac_file_inputs > conftest.in
12868 # Transform confdefs.h into a sed script conftest.vals that substitutes
12869 # the proper values into config.h.in to produce config.h. And first:
12870 # Protect against being on the right side of a sed subst in config.status.
12871 # Protect against being in an unquoted here document in config.status.
12872 rm -f conftest.vals
12873 cat > conftest.hdr <<\EOF
12874 s/[\\&%]/\\&/g
12875 s%[\\$`]%\\&%g
12876 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12877 s%ac_d%ac_u%gp
12878 s%ac_u%ac_e%gp
12880 sed -n -f conftest.hdr confdefs.h > conftest.vals
12881 rm -f conftest.hdr
12883 # This sed command replaces #undef with comments. This is necessary, for
12884 # example, in the case of _POSIX_SOURCE, which is predefined and required
12885 # on some systems where configure will not decide to define it.
12886 cat >> conftest.vals <<\EOF
12887 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12890 # Break up conftest.vals because some shells have a limit on
12891 # the size of here documents, and old seds have small limits too.
12893 rm -f conftest.tail
12894 while :
12896 ac_lines=`grep -c . conftest.vals`
12897 # grep -c gives empty output for an empty file on some AIX systems.
12898 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12899 # Write a limited-size here document to conftest.frag.
12900 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12901 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12902 echo 'CEOF
12903 sed -f conftest.frag conftest.in > conftest.out
12904 rm -f conftest.in
12905 mv conftest.out conftest.in
12906 ' >> $CONFIG_STATUS
12907 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12908 rm -f conftest.vals
12909 mv conftest.tail conftest.vals
12910 done
12911 rm -f conftest.vals
12913 cat >> $CONFIG_STATUS <<\EOF
12914 rm -f conftest.frag conftest.h
12915 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12916 cat conftest.in >> conftest.h
12917 rm -f conftest.in
12918 if cmp -s $ac_file conftest.h 2>/dev/null; then
12919 echo "$ac_file is unchanged"
12920 rm -f conftest.h
12921 else
12922 # Remove last slash and all that follows it. Not all systems have dirname.
12923 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12925 # The file is in a subdirectory.
12926 test ! -d "$ac_dir" && mkdir "$ac_dir"
12928 rm -f $ac_file
12929 mv conftest.h $ac_file
12931 fi; done
12934 cat >> $CONFIG_STATUS <<EOF
12937 cat >> $CONFIG_STATUS <<\EOF
12939 exit 0
12941 chmod +x $CONFIG_STATUS
12942 rm -fr confdefs* $ac_clean_files
12943 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1