merge from APPLIANCE_HEAD
[Samba.git] / source / configure
blobddd77f29a6a1903a4bb4651593b5f4df6728d697
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 --enable-debug turn on debugging [default=no]"
17 ac_help="$ac_help
18 --enable-developer turn on developer warnings and debugging [default=no]"
19 ac_help="$ac_help
20 --enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
21 ac_help="$ac_help
22 --enable-dmalloc enable heap debugging [default=no]"
23 ac_help="$ac_help
24 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
25 ac_help="$ac_help
26 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
27 ac_help="$ac_help
28 --with-smbwrapper Include SMB wrapper support (default=no) "
29 ac_help="$ac_help
30 --with-afs Include AFS clear-text auth support (default=no) "
31 ac_help="$ac_help
32 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
33 ac_help="$ac_help
34 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
35 ac_help="$ac_help
36 --with-automount Include AUTOMOUNT support (default=no)"
37 ac_help="$ac_help
38 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
39 ac_help="$ac_help
40 --with-pam Include PAM support (default=no)"
41 ac_help="$ac_help
42 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
43 ac_help="$ac_help
44 --with-tdbsam Include experimental TDB SAM support (default=no)"
45 ac_help="$ac_help
46 --with-ldapsam Include experimental LDAP SAM support (default=no)"
47 ac_help="$ac_help
48 --with-nisplussam Include NISPLUS SAM support (default=no)"
49 ac_help="$ac_help
50 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
51 ac_help="$ac_help
52 --with-ssl Include SSL support (default=no)
53 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
54 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
55 ac_help="$ac_help
56 --with-syslog Include experimental SYSLOG support (default=no)"
57 ac_help="$ac_help
58 --with-profiling-data Include gathering source code profile information (default=no)"
59 ac_help="$ac_help
60 --with-quotas Include experimental disk-quota support (default=no)"
61 ac_help="$ac_help
62 --with-utmp Include experimental utmp accounting (default=no)"
63 ac_help="$ac_help
64 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
65 ac_help="$ac_help
66 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
67 ac_help="$ac_help
68 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
69 ac_help="$ac_help
70 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
71 ac_help="$ac_help
72 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
73 ac_help="$ac_help
74 --with-acl-support Include ACL support (default=no)"
75 ac_help="$ac_help
76 --with-winbind Build winbind (default, if supported by OS)"
77 ac_help="$ac_help
78 --with-included-popt use bundled popt library, not from system"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
83 build=NONE
84 cache_file=./config.cache
85 exec_prefix=NONE
86 host=NONE
87 no_create=
88 nonopt=NONE
89 no_recursion=
90 prefix=NONE
91 program_prefix=NONE
92 program_suffix=NONE
93 program_transform_name=s,x,x,
94 silent=
95 site=
96 srcdir=
97 target=NONE
98 verbose=
99 x_includes=NONE
100 x_libraries=NONE
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 infodir='${prefix}/info'
112 mandir='${prefix}/man'
114 # Initialize some other variables.
115 subdirs=
116 MFLAGS= MAKEFLAGS=
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
119 ac_max_here_lines=12
121 ac_prev=
122 for ac_option
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
128 ac_prev=
129 continue
132 case "$ac_option" in
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 *) ac_optarg= ;;
135 esac
137 # Accept the important Cygnus configure options, so we can diagnose typos.
139 case "$ac_option" in
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 ac_prev=bindir ;;
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
146 -build | --build | --buil | --bui | --bu)
147 ac_prev=build ;;
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 ac_prev=datadir ;;
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 | --da=*)
162 datadir="$ac_optarg" ;;
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 case "$ac_option" in
181 *=*) ;;
182 *) ac_optarg=yes ;;
183 esac
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
197 with_gas=yes ;;
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
202 cat << EOF
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
205 Configuration:
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
213 [$ac_default_prefix]
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 [same as prefix]
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
220 [PREFIX/share]
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 [PREFIX/com]
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
236 cat << EOF
237 Host type:
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
252 exit 0 ;;
254 -host | --host | --hos | --ho)
255 ac_prev=host ;;
256 -host=* | --host=* | --hos=* | --ho=*)
257 host="$ac_optarg" ;;
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
266 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 ac_prev=infodir ;;
268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269 infodir="$ac_optarg" ;;
271 -libdir | --libdir | --libdi | --libd)
272 ac_prev=libdir ;;
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 ac_prev=mandir ;;
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
297 -nfp | --nfp | --nf)
298 # Obsolete; use --without-fp.
299 with_fp=no ;;
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 | --no-cr | --no-c)
303 no_create=yes ;;
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 no_recursion=yes ;;
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 ac_prev=prefix ;;
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
356 silent=yes ;;
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 ac_prev=sbindir ;;
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 | --sbi=* | --sb=*)
362 sbindir="$ac_optarg" ;;
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
367 | --sha | --sh)
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 | --sha=* | --sh=*)
373 sharedstatedir="$ac_optarg" ;;
375 -site | --site | --sit)
376 ac_prev=site ;;
377 -site=* | --site=* | --sit=*)
378 site="$ac_optarg" ;;
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 ac_prev=srcdir ;;
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
393 ac_prev=target ;;
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 verbose=yes ;;
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
402 exit 0 ;;
404 -with-* | --with-*)
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 case "$ac_option" in
412 *=*) ;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
426 --x)
427 # Obsolete; use --with-x.
428 with_x=yes ;;
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 nonopt="$ac_option"
457 esac
458 done
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
467 # 0 standard input
468 # 1 file creation
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
475 exec 6>/dev/null
476 else
477 exec 6>&1
479 exec 5>./config.log
481 echo "\
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
484 " 1>&5
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
488 ac_configure_args=
489 for ac_arg
491 case "$ac_arg" in
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 esac
500 done
502 # NLS nuisances.
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 echo > confdefs.h
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=include/includes.h
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
525 ac_prog=$0
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 srcdir=$ac_confdir
529 if test ! -r $srcdir/$ac_unique_file; then
530 srcdir=..
532 else
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 else
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 else
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
555 . "$ac_site_file"
557 done
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
561 . $cache_file
562 else
563 echo "creating cache $cache_file"
564 > $cache_file
567 ac_ext=c
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
574 ac_exeext=
575 ac_objext=o
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='
580 ' ac_t=' '
581 else
582 ac_n=-n ac_c= ac_t=
584 else
585 ac_n= ac_c='\c' ac_t=
590 # we want to be compatible with older versions of Samba
608 # compile with optimisation and without debugging by default
609 CFLAGS="-O ${CFLAGS}"
611 # Check whether --enable-debug or --disable-debug was given.
612 if test "${enable_debug+set}" = set; then
613 enableval="$enable_debug"
614 if eval "test x$enable_debug = xyes"; then
615 CFLAGS="${CFLAGS} -g"
620 # Check whether --enable-developer or --disable-developer was given.
621 if test "${enable_developer+set}" = set; then
622 enableval="$enable_developer"
623 if eval "test x$enable_developer = xyes"; then
624 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
629 # Check whether --enable-krb5developer or --disable-krb5developer was given.
630 if test "${enable_krb5developer+set}" = set; then
631 enableval="$enable_krb5developer"
632 if eval "test x$enable_krb5developer = xyes"; then
633 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
638 # Check whether --enable-dmalloc or --disable-dmalloc was given.
639 if test "${enable_dmalloc+set}" = set; then
640 enableval="$enable_dmalloc"
645 if test "x$enable_dmalloc" = xyes
646 then
647 cat >> confdefs.h <<\EOF
648 #define ENABLE_DMALLOC 1
651 cat >> confdefs.h <<\EOF
652 #define DMALLOC_FUNC_CHECK 1
655 LIBS="$LIBS -ldmalloc"
658 # Extract the first word of "gcc", so it can be a program name with args.
659 set dummy gcc; ac_word=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
664 else
665 if test -n "$CC"; then
666 ac_cv_prog_CC="$CC" # Let the user override the test.
667 else
668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
669 ac_dummy="$PATH"
670 for ac_dir in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir=.
672 if test -f $ac_dir/$ac_word; then
673 ac_cv_prog_CC="gcc"
674 break
676 done
677 IFS="$ac_save_ifs"
680 CC="$ac_cv_prog_CC"
681 if test -n "$CC"; then
682 echo "$ac_t""$CC" 1>&6
683 else
684 echo "$ac_t""no" 1>&6
687 if test -z "$CC"; then
688 # Extract the first word of "cc", so it can be a program name with args.
689 set dummy cc; ac_word=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
694 else
695 if test -n "$CC"; then
696 ac_cv_prog_CC="$CC" # Let the user override the test.
697 else
698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
699 ac_prog_rejected=no
700 ac_dummy="$PATH"
701 for ac_dir in $ac_dummy; do
702 test -z "$ac_dir" && ac_dir=.
703 if test -f $ac_dir/$ac_word; then
704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
705 ac_prog_rejected=yes
706 continue
708 ac_cv_prog_CC="cc"
709 break
711 done
712 IFS="$ac_save_ifs"
713 if test $ac_prog_rejected = yes; then
714 # We found a bogon in the path, so make sure we never use it.
715 set dummy $ac_cv_prog_CC
716 shift
717 if test $# -gt 0; then
718 # We chose a different compiler from the bogus one.
719 # However, it has the same basename, so the bogon will be chosen
720 # first if we set CC to just the basename; use the full file name.
721 shift
722 set dummy "$ac_dir/$ac_word" "$@"
723 shift
724 ac_cv_prog_CC="$@"
729 CC="$ac_cv_prog_CC"
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
732 else
733 echo "$ac_t""no" 1>&6
736 if test -z "$CC"; then
737 case "`uname -s`" in
738 *win32* | *WIN32*)
739 # Extract the first word of "cl", so it can be a program name with args.
740 set dummy cl; ac_word=$2
741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742 echo "configure:743: checking for $ac_word" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
745 else
746 if test -n "$CC"; then
747 ac_cv_prog_CC="$CC" # Let the user override the test.
748 else
749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
750 ac_dummy="$PATH"
751 for ac_dir in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir=.
753 if test -f $ac_dir/$ac_word; then
754 ac_cv_prog_CC="cl"
755 break
757 done
758 IFS="$ac_save_ifs"
761 CC="$ac_cv_prog_CC"
762 if test -n "$CC"; then
763 echo "$ac_t""$CC" 1>&6
764 else
765 echo "$ac_t""no" 1>&6
768 esac
770 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
774 echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
776 ac_ext=c
777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778 ac_cpp='$CPP $CPPFLAGS'
779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781 cross_compiling=$ac_cv_prog_cc_cross
783 cat > conftest.$ac_ext << EOF
785 #line 786 "configure"
786 #include "confdefs.h"
788 main(){return(0);}
790 if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
791 ac_cv_prog_cc_works=yes
792 # If we can't run a trivial program, we are probably using a cross compiler.
793 if (./conftest; exit) 2>/dev/null; then
794 ac_cv_prog_cc_cross=no
795 else
796 ac_cv_prog_cc_cross=yes
798 else
799 echo "configure: failed program was:" >&5
800 cat conftest.$ac_ext >&5
801 ac_cv_prog_cc_works=no
803 rm -fr conftest*
804 ac_ext=c
805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806 ac_cpp='$CPP $CPPFLAGS'
807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809 cross_compiling=$ac_cv_prog_cc_cross
811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812 if test $ac_cv_prog_cc_works = no; then
813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821 echo "configure:822: checking whether we are using GNU C" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
824 else
825 cat > conftest.c <<EOF
826 #ifdef __GNUC__
827 yes;
828 #endif
830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
831 ac_cv_prog_gcc=yes
832 else
833 ac_cv_prog_gcc=no
837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839 if test $ac_cv_prog_gcc = yes; then
840 GCC=yes
841 else
842 GCC=
845 ac_test_CFLAGS="${CFLAGS+set}"
846 ac_save_CFLAGS="$CFLAGS"
847 CFLAGS=
848 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${CC-cc} accepts -g" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 echo 'void f(){}' > conftest.c
854 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
855 ac_cv_prog_cc_g=yes
856 else
857 ac_cv_prog_cc_g=no
859 rm -f conftest*
863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
864 if test "$ac_test_CFLAGS" = set; then
865 CFLAGS="$ac_save_CFLAGS"
866 elif test $ac_cv_prog_cc_g = yes; then
867 if test "$GCC" = yes; then
868 CFLAGS="-g -O2"
869 else
870 CFLAGS="-g"
872 else
873 if test "$GCC" = yes; then
874 CFLAGS="-O2"
875 else
876 CFLAGS=
880 ac_aux_dir=
881 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
882 if test -f $ac_dir/install-sh; then
883 ac_aux_dir=$ac_dir
884 ac_install_sh="$ac_aux_dir/install-sh -c"
885 break
886 elif test -f $ac_dir/install.sh; then
887 ac_aux_dir=$ac_dir
888 ac_install_sh="$ac_aux_dir/install.sh -c"
889 break
891 done
892 if test -z "$ac_aux_dir"; then
893 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
895 ac_config_guess=$ac_aux_dir/config.guess
896 ac_config_sub=$ac_aux_dir/config.sub
897 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
899 # Find a good install program. We prefer a C program (faster),
900 # so one script is as good as another. But avoid the broken or
901 # incompatible versions:
902 # SysV /etc/install, /usr/sbin/install
903 # SunOS /usr/etc/install
904 # IRIX /sbin/install
905 # AIX /bin/install
906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
909 # ./install, which can be erroneously created by make from ./install.sh.
910 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
911 echo "configure:912: checking for a BSD compatible install" >&5
912 if test -z "$INSTALL"; then
913 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
915 else
916 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
917 for ac_dir in $PATH; do
918 # Account for people who put trailing slashes in PATH elements.
919 case "$ac_dir/" in
920 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
922 # OSF1 and SCO ODT 3.0 have their own names for install.
923 # Don't use installbsd from OSF since it installs stuff as root
924 # by default.
925 for ac_prog in ginstall scoinst install; do
926 if test -f $ac_dir/$ac_prog; then
927 if test $ac_prog = install &&
928 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
929 # AIX install. It has an incompatible calling convention.
931 else
932 ac_cv_path_install="$ac_dir/$ac_prog -c"
933 break 2
936 done
938 esac
939 done
940 IFS="$ac_save_IFS"
943 if test "${ac_cv_path_install+set}" = set; then
944 INSTALL="$ac_cv_path_install"
945 else
946 # As a last resort, use the slow shell script. We don't cache a
947 # path for INSTALL within a source directory, because that will
948 # break other packages using the cache if that directory is
949 # removed, or if the path is relative.
950 INSTALL="$ac_install_sh"
953 echo "$ac_t""$INSTALL" 1>&6
955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
956 # It thinks the first close brace ends the variable substitution.
957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
963 for ac_prog in mawk gawk nawk awk
965 # Extract the first word of "$ac_prog", so it can be a program name with args.
966 set dummy $ac_prog; ac_word=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
971 else
972 if test -n "$AWK"; then
973 ac_cv_prog_AWK="$AWK" # Let the user override the test.
974 else
975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
976 ac_dummy="$PATH"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word; then
980 ac_cv_prog_AWK="$ac_prog"
981 break
983 done
984 IFS="$ac_save_ifs"
987 AWK="$ac_cv_prog_AWK"
988 if test -n "$AWK"; then
989 echo "$ac_t""$AWK" 1>&6
990 else
991 echo "$ac_t""no" 1>&6
994 test -n "$AWK" && break
995 done
998 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
999 echo "configure:1000: checking for POSIXized ISC" >&5
1000 if test -d /etc/conf/kconfig.d &&
1001 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1002 then
1003 echo "$ac_t""yes" 1>&6
1004 ISC=yes # If later tests want to check for ISC.
1005 cat >> confdefs.h <<\EOF
1006 #define _POSIX_SOURCE 1
1009 if test "$GCC" = yes; then
1010 CC="$CC -posix"
1011 else
1012 CC="$CC -Xp"
1014 else
1015 echo "$ac_t""no" 1>&6
1016 ISC=
1020 if test "x$CC" != xcc; then
1021 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether $CC and cc understand -c and -o together" >&5
1023 else
1024 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether cc understands -c and -o together" >&5
1027 set dummy $CC; ac_cc="`echo $2 |
1028 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1029 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1031 else
1032 echo 'foo(){}' > conftest.c
1033 # Make sure it works both with $CC and with simple cc.
1034 # We do the test twice because some compilers refuse to overwrite an
1035 # existing .o file with -o, though they will create one.
1036 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1037 if { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1038 test -f conftest.o && { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1039 then
1040 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1041 if test "x$CC" != xcc; then
1042 # Test first that cc exists at all.
1043 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1044 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1045 if { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1046 test -f conftest.o && { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1047 then
1048 # cc works too.
1050 else
1051 # cc exists but doesn't like -o.
1052 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1056 else
1057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1059 rm -f conftest*
1062 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1063 echo "$ac_t""yes" 1>&6
1064 else
1065 echo "$ac_t""no" 1>&6
1066 cat >> confdefs.h <<\EOF
1067 #define NO_MINUS_C_MINUS_O 1
1072 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1073 BROKEN_CC=
1074 else
1075 BROKEN_CC=#
1079 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1080 echo "configure:1081: checking that the C compiler understands volatile" >&5
1081 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1085 cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1088 #include <sys/types.h>
1089 int main() {
1090 volatile int i = 0
1091 ; return 0; }
1093 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1094 rm -rf conftest*
1095 samba_cv_volatile=yes
1096 else
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1099 rm -rf conftest*
1100 samba_cv_volatile=no
1102 rm -f conftest*
1105 echo "$ac_t""$samba_cv_volatile" 1>&6
1106 if test x"$samba_cv_volatile" = x"yes"; then
1107 cat >> confdefs.h <<\EOF
1108 #define HAVE_VOLATILE 1
1115 # Do some error checking and defaulting for the host and target type.
1116 # The inputs are:
1117 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1119 # The rules are:
1120 # 1. You are not allowed to specify --host, --target, and nonopt at the
1121 # same time.
1122 # 2. Host defaults to nonopt.
1123 # 3. If nonopt is not specified, then host defaults to the current host,
1124 # as determined by config.guess.
1125 # 4. Target and build default to nonopt.
1126 # 5. If nonopt is not specified, then target and build default to host.
1128 # The aliases save the names the user supplied, while $host etc.
1129 # will get canonicalized.
1130 case $host---$target---$nonopt in
1131 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1132 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1133 esac
1136 # Make sure we can run config.sub.
1137 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1138 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1141 echo $ac_n "checking host system type""... $ac_c" 1>&6
1142 echo "configure:1143: checking host system type" >&5
1144 host_alias=$host
1145 case "$host_alias" in
1146 NONE)
1147 case $nonopt in
1148 NONE)
1149 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1150 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1151 fi ;;
1152 *) host_alias=$nonopt ;;
1153 esac ;;
1154 esac
1156 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1157 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1158 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1159 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1160 echo "$ac_t""$host" 1>&6
1162 echo $ac_n "checking target system type""... $ac_c" 1>&6
1163 echo "configure:1164: checking target system type" >&5
1165 target_alias=$target
1166 case "$target_alias" in
1167 NONE)
1168 case $nonopt in
1169 NONE) target_alias=$host_alias ;;
1170 *) target_alias=$nonopt ;;
1171 esac ;;
1172 esac
1174 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1175 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1176 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1177 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1178 echo "$ac_t""$target" 1>&6
1180 echo $ac_n "checking build system type""... $ac_c" 1>&6
1181 echo "configure:1182: checking build system type" >&5
1183 build_alias=$build
1184 case "$build_alias" in
1185 NONE)
1186 case $nonopt in
1187 NONE) build_alias=$host_alias ;;
1188 *) build_alias=$nonopt ;;
1189 esac ;;
1190 esac
1192 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1193 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1194 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1195 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1196 echo "$ac_t""$build" 1>&6
1198 test "$host_alias" != "$target_alias" &&
1199 test "$program_prefix$program_suffix$program_transform_name" = \
1200 NONENONEs,x,x, &&
1201 program_prefix=${target_alias}-
1204 case "$host_os" in
1205 *irix6*) cat >> confdefs.h <<\EOF
1206 #include <standards.h>
1210 esac
1214 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1215 echo "configure:1216: checking config.cache system type" >&5
1216 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1217 test x"$ac_cv_host_system_type" != x"$host"; } ||
1218 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1219 test x"$ac_cv_build_system_type" != x"$build"; } ||
1220 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1221 test x"$ac_cv_target_system_type" != x"$target"; }; then
1222 echo "$ac_t""different" 1>&6
1223 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1224 else
1225 echo "$ac_t""same" 1>&6
1227 ac_cv_host_system_type="$host"
1228 ac_cv_build_system_type="$build"
1229 ac_cv_target_system_type="$target"
1233 # Config CPPFLAG settings for strange OS's that must be set
1234 # before other tests.
1236 case "$host_os" in
1237 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1238 *hpux*)
1239 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1240 echo "configure:1241: checking whether ${CC-cc} accepts -Ae" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1243 else
1244 echo 'void f(){}' > conftest.c
1245 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1246 ac_cv_prog_cc_Ae=yes
1247 else
1248 ac_cv_prog_cc_Ae=no
1250 rm -f conftest*
1254 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1255 # mmap on HPUX is completely broken...
1256 cat >> confdefs.h <<\EOF
1257 #define MMAP_BLACKLIST 1
1260 if test $ac_cv_prog_cc_Ae = yes; then
1261 CPPFLAGS="$CPPFLAGS -Ae"
1264 # Defines needed for HPUX support.
1265 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1266 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1268 case `uname -r` in
1269 *9*|*10*)
1270 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1271 cat >> confdefs.h <<\EOF
1272 #define USE_BOTH_CRYPT_CALLS 1
1276 *11*)
1277 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1278 cat >> confdefs.h <<\EOF
1279 #define USE_BOTH_CRYPT_CALLS 1
1283 esac
1287 # CRAY Unicos has broken const handling
1288 *unicos*)
1289 echo "$ac_t""disabling const" 1>&6
1290 CPPFLAGS="$CPPFLAGS -Dconst="
1294 # AIX4.x doesn't even admit to having large
1295 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1297 *aix4*)
1298 echo "$ac_t""enabling large file support" 1>&6
1299 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1302 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1303 # to the existance of large files..
1304 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1305 # recommendations on large file support, however it makes the
1306 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1307 # recommendation makes the compile fail on gcc2.7. JRA.
1309 *solaris*)
1310 case `uname -r` in
1311 5.0*|5.1*|5.2*|5.3*|5.5*)
1312 echo "$ac_t""no large file support" 1>&6
1314 5.*)
1315 echo "$ac_t""enabling large file support" 1>&6
1316 if test "$ac_cv_prog_gcc" = yes; then
1317 ${CC-cc} -v >conftest.c 2>&1
1318 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1319 rm -fr conftest.c
1320 case "$ac_cv_gcc_compiler_version_number" in
1321 *"gcc version 2.6"*|*"gcc version 2.7"*)
1322 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1325 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1327 esac
1328 else
1329 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1332 esac
1335 # Tests needed for SINIX large file support.
1337 *sysv4*)
1338 if test $host = mips-sni-sysv4 ; then
1339 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1340 echo "configure:1341: checking for LFS support" >&5
1341 old_CPPFLAGS="$CPPFLAGS"
1342 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1343 if test "$cross_compiling" = yes; then
1344 SINIX_LFS_SUPPORT=cross
1345 else
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1350 #include <unistd.h>
1351 main () {
1352 #if _LFS64_LARGEFILE == 1
1353 exit(0);
1354 #else
1355 exit(1);
1356 #endif
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1360 then
1361 SINIX_LFS_SUPPORT=yes
1362 else
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1365 rm -fr conftest*
1366 SINIX_LFS_SUPPORT=no
1368 rm -fr conftest*
1371 CPPFLAGS="$old_CPPFLAGS"
1372 if test x$SINIX_LFS_SUPPORT = xyes ; then
1373 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1374 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1375 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1376 LIBS="`getconf LFS64_LIBS` $LIBS"
1378 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1382 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1384 *linux*)
1385 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1386 echo "configure:1387: checking for LFS support" >&5
1387 old_CPPFLAGS="$CPPFLAGS"
1388 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1389 if test "$cross_compiling" = yes; then
1390 LINUX_LFS_SUPPORT=cross
1391 else
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1396 #include <unistd.h>
1397 #include <sys/utsname.h>
1398 main() {
1399 #if _LFS64_LARGEFILE == 1
1400 struct utsname uts;
1401 char *release;
1402 int major, minor;
1404 /* Ensure this is glibc 2.2 or higher */
1405 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1406 int libc_major = __GLIBC__;
1407 int libc_minor = __GLIBC_MINOR__;
1409 if (libc_major < 2)
1410 exit(1);
1411 if (libc_minor < 2)
1412 exit(1);
1413 #endif
1415 /* Ensure this is kernel 2.4 or higher */
1417 uname(&uts);
1418 release = uts.release;
1419 major = atoi(strsep(&release, "."));
1420 minor = atoi(strsep(&release, "."));
1422 if (major > 2 || (major == 2 && minor > 3))
1423 exit(0);
1424 exit(1);
1425 #else
1426 exit(1);
1427 #endif
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1432 then
1433 LINUX_LFS_SUPPORT=yes
1434 else
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1437 rm -fr conftest*
1438 LINUX_LFS_SUPPORT=no
1440 rm -fr conftest*
1443 CPPFLAGS="$old_CPPFLAGS"
1444 if test x$LINUX_LFS_SUPPORT = xyes ; then
1445 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1447 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1450 *hurd*)
1451 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1452 echo "configure:1453: checking for LFS support" >&5
1453 old_CPPFLAGS="$CPPFLAGS"
1454 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1455 if test "$cross_compiling" = yes; then
1456 GLIBC_LFS_SUPPORT=cross
1457 else
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1462 #include <unistd.h>
1463 main () {
1464 #if _LFS64_LARGEFILE == 1
1465 exit(0);
1466 #else
1467 exit(1);
1468 #endif
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1472 then
1473 GLIBC_LFS_SUPPORT=yes
1474 else
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1477 rm -fr conftest*
1478 GLIBC_LFS_SUPPORT=no
1480 rm -fr conftest*
1483 CPPFLAGS="$old_CPPFLAGS"
1484 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1485 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1487 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1490 esac
1492 echo $ac_n "checking for inline""... $ac_c" 1>&6
1493 echo "configure:1494: checking for inline" >&5
1494 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497 ac_cv_c_inline=no
1498 for ac_kw in inline __inline__ __inline; do
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1503 int main() {
1504 } $ac_kw foo() {
1505 ; return 0; }
1507 if { (eval echo configure:1508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1508 rm -rf conftest*
1509 ac_cv_c_inline=$ac_kw; break
1510 else
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1514 rm -f conftest*
1515 done
1519 echo "$ac_t""$ac_cv_c_inline" 1>&6
1520 case "$ac_cv_c_inline" in
1521 inline | yes) ;;
1522 no) cat >> confdefs.h <<\EOF
1523 #define inline
1526 *) cat >> confdefs.h <<EOF
1527 #define inline $ac_cv_c_inline
1530 esac
1532 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1533 echo "configure:1534: checking how to run the C preprocessor" >&5
1534 # On Suns, sometimes $CPP names a directory.
1535 if test -n "$CPP" && test -d "$CPP"; then
1536 CPP=
1538 if test -z "$CPP"; then
1539 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1541 else
1542 # This must be in double quotes, not single quotes, because CPP may get
1543 # substituted into the Makefile and "${CC-cc}" will confuse make.
1544 CPP="${CC-cc} -E"
1545 # On the NeXT, cc -E runs the code through the compiler's parser,
1546 # not just through cpp.
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 #include <assert.h>
1551 Syntax Error
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1558 else
1559 echo "$ac_err" >&5
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1562 rm -rf conftest*
1563 CPP="${CC-cc} -E -traditional-cpp"
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1567 #include <assert.h>
1568 Syntax Error
1570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1571 { (eval echo configure:1572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1573 if test -z "$ac_err"; then
1575 else
1576 echo "$ac_err" >&5
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1579 rm -rf conftest*
1580 CPP="${CC-cc} -nologo -E"
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1584 #include <assert.h>
1585 Syntax Error
1587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588 { (eval echo configure:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1590 if test -z "$ac_err"; then
1592 else
1593 echo "$ac_err" >&5
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 rm -rf conftest*
1597 CPP=/lib/cpp
1599 rm -f conftest*
1601 rm -f conftest*
1603 rm -f conftest*
1604 ac_cv_prog_CPP="$CPP"
1606 CPP="$ac_cv_prog_CPP"
1607 else
1608 ac_cv_prog_CPP="$CPP"
1610 echo "$ac_t""$CPP" 1>&6
1612 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1613 echo "configure:1614: checking for ANSI C header files" >&5
1614 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620 #include <stdlib.h>
1621 #include <stdarg.h>
1622 #include <string.h>
1623 #include <float.h>
1625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1626 { (eval echo configure:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1628 if test -z "$ac_err"; then
1629 rm -rf conftest*
1630 ac_cv_header_stdc=yes
1631 else
1632 echo "$ac_err" >&5
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1635 rm -rf conftest*
1636 ac_cv_header_stdc=no
1638 rm -f conftest*
1640 if test $ac_cv_header_stdc = yes; then
1641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 #include <string.h>
1647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "memchr" >/dev/null 2>&1; then
1650 else
1651 rm -rf conftest*
1652 ac_cv_header_stdc=no
1654 rm -f conftest*
1658 if test $ac_cv_header_stdc = yes; then
1659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1663 #include <stdlib.h>
1665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1666 egrep "free" >/dev/null 2>&1; then
1668 else
1669 rm -rf conftest*
1670 ac_cv_header_stdc=no
1672 rm -f conftest*
1676 if test $ac_cv_header_stdc = yes; then
1677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1678 if test "$cross_compiling" = yes; then
1680 else
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1684 #include <ctype.h>
1685 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1686 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1688 int main () { int i; for (i = 0; i < 256; i++)
1689 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1690 exit (0); }
1693 if { (eval echo configure:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1694 then
1696 else
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 rm -fr conftest*
1700 ac_cv_header_stdc=no
1702 rm -fr conftest*
1708 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1709 if test $ac_cv_header_stdc = yes; then
1710 cat >> confdefs.h <<\EOF
1711 #define STDC_HEADERS 1
1716 ac_header_dirent=no
1717 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1720 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1721 echo "configure:1722: checking for $ac_hdr that defines DIR" >&5
1722 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1724 else
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 #include <sys/types.h>
1729 #include <$ac_hdr>
1730 int main() {
1731 DIR *dirp = 0;
1732 ; return 0; }
1734 if { (eval echo configure:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1735 rm -rf conftest*
1736 eval "ac_cv_header_dirent_$ac_safe=yes"
1737 else
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 rm -rf conftest*
1741 eval "ac_cv_header_dirent_$ac_safe=no"
1743 rm -f conftest*
1745 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1746 echo "$ac_t""yes" 1>&6
1747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1748 cat >> confdefs.h <<EOF
1749 #define $ac_tr_hdr 1
1751 ac_header_dirent=$ac_hdr; break
1752 else
1753 echo "$ac_t""no" 1>&6
1755 done
1756 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1757 if test $ac_header_dirent = dirent.h; then
1758 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1759 echo "configure:1760: checking for opendir in -ldir" >&5
1760 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 ac_save_LIBS="$LIBS"
1765 LIBS="-ldir $LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1772 char opendir();
1774 int main() {
1775 opendir()
1776 ; return 0; }
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1779 rm -rf conftest*
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1781 else
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1784 rm -rf conftest*
1785 eval "ac_cv_lib_$ac_lib_var=no"
1787 rm -f conftest*
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 LIBS="$LIBS -ldir"
1794 else
1795 echo "$ac_t""no" 1>&6
1798 else
1799 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1800 echo "configure:1801: checking for opendir in -lx" >&5
1801 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805 ac_save_LIBS="$LIBS"
1806 LIBS="-lx $LIBS"
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 /* Override any gcc2 internal prototype to avoid an error. */
1811 /* We use char because int might match the return type of a gcc2
1812 builtin and then its argument prototype would still apply. */
1813 char opendir();
1815 int main() {
1816 opendir()
1817 ; return 0; }
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1820 rm -rf conftest*
1821 eval "ac_cv_lib_$ac_lib_var=yes"
1822 else
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1825 rm -rf conftest*
1826 eval "ac_cv_lib_$ac_lib_var=no"
1828 rm -f conftest*
1829 LIBS="$ac_save_LIBS"
1832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1833 echo "$ac_t""yes" 1>&6
1834 LIBS="$LIBS -lx"
1835 else
1836 echo "$ac_t""no" 1>&6
1841 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether time.h and sys/time.h may both be included" >&5
1843 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 #include <sys/types.h>
1850 #include <sys/time.h>
1851 #include <time.h>
1852 int main() {
1853 struct tm *tp;
1854 ; return 0; }
1856 if { (eval echo configure:1857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1857 rm -rf conftest*
1858 ac_cv_header_time=yes
1859 else
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1862 rm -rf conftest*
1863 ac_cv_header_time=no
1865 rm -f conftest*
1868 echo "$ac_t""$ac_cv_header_time" 1>&6
1869 if test $ac_cv_header_time = yes; then
1870 cat >> confdefs.h <<\EOF
1871 #define TIME_WITH_SYS_TIME 1
1876 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1877 echo "configure:1878: checking for sys/wait.h that is POSIX.1 compatible" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880 else
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <sys/types.h>
1885 #include <sys/wait.h>
1886 #ifndef WEXITSTATUS
1887 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1888 #endif
1889 #ifndef WIFEXITED
1890 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1891 #endif
1892 int main() {
1893 int s;
1894 wait (&s);
1895 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1896 ; return 0; }
1898 if { (eval echo configure:1899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1899 rm -rf conftest*
1900 ac_cv_header_sys_wait_h=yes
1901 else
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1904 rm -rf conftest*
1905 ac_cv_header_sys_wait_h=no
1907 rm -f conftest*
1910 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1911 if test $ac_cv_header_sys_wait_h = yes; then
1912 cat >> confdefs.h <<\EOF
1913 #define HAVE_SYS_WAIT_H 1
1918 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1922 echo "configure:1923: checking for $ac_hdr" >&5
1923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1925 else
1926 cat > conftest.$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1929 #include <$ac_hdr>
1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1935 rm -rf conftest*
1936 eval "ac_cv_header_$ac_safe=yes"
1937 else
1938 echo "$ac_err" >&5
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 rm -rf conftest*
1942 eval "ac_cv_header_$ac_safe=no"
1944 rm -f conftest*
1946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1949 cat >> confdefs.h <<EOF
1950 #define $ac_tr_hdr 1
1953 else
1954 echo "$ac_t""no" 1>&6
1956 done
1958 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_hdr" >&5
1963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965 else
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1969 #include <$ac_hdr>
1971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1972 { (eval echo configure:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1974 if test -z "$ac_err"; then
1975 rm -rf conftest*
1976 eval "ac_cv_header_$ac_safe=yes"
1977 else
1978 echo "$ac_err" >&5
1979 echo "configure: failed program was:" >&5
1980 cat conftest.$ac_ext >&5
1981 rm -rf conftest*
1982 eval "ac_cv_header_$ac_safe=no"
1984 rm -f conftest*
1986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1989 cat >> confdefs.h <<EOF
1990 #define $ac_tr_hdr 1
1993 else
1994 echo "$ac_t""no" 1>&6
1996 done
1998 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2002 echo "configure:2003: checking for $ac_hdr" >&5
2003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2005 else
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2009 #include <$ac_hdr>
2011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2012 { (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2014 if test -z "$ac_err"; then
2015 rm -rf conftest*
2016 eval "ac_cv_header_$ac_safe=yes"
2017 else
2018 echo "$ac_err" >&5
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 rm -rf conftest*
2022 eval "ac_cv_header_$ac_safe=no"
2024 rm -f conftest*
2026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2029 cat >> confdefs.h <<EOF
2030 #define $ac_tr_hdr 1
2033 else
2034 echo "$ac_t""no" 1>&6
2036 done
2038 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042 echo "configure:2043: checking for $ac_hdr" >&5
2043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 #include <$ac_hdr>
2051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052 { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054 if test -z "$ac_err"; then
2055 rm -rf conftest*
2056 eval "ac_cv_header_$ac_safe=yes"
2057 else
2058 echo "$ac_err" >&5
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2061 rm -rf conftest*
2062 eval "ac_cv_header_$ac_safe=no"
2064 rm -f conftest*
2066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069 cat >> confdefs.h <<EOF
2070 #define $ac_tr_hdr 1
2073 else
2074 echo "$ac_t""no" 1>&6
2076 done
2078 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
2080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2082 echo "configure:2083: checking for $ac_hdr" >&5
2083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2089 #include <$ac_hdr>
2091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2092 { (eval echo configure:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2094 if test -z "$ac_err"; then
2095 rm -rf conftest*
2096 eval "ac_cv_header_$ac_safe=yes"
2097 else
2098 echo "$ac_err" >&5
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 rm -rf conftest*
2102 eval "ac_cv_header_$ac_safe=no"
2104 rm -f conftest*
2106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2109 cat >> confdefs.h <<EOF
2110 #define $ac_tr_hdr 1
2113 else
2114 echo "$ac_t""no" 1>&6
2116 done
2118 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2122 echo "configure:2123: checking for $ac_hdr" >&5
2123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2125 else
2126 cat > conftest.$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2129 #include <$ac_hdr>
2131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2132 { (eval echo configure:2133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2134 if test -z "$ac_err"; then
2135 rm -rf conftest*
2136 eval "ac_cv_header_$ac_safe=yes"
2137 else
2138 echo "$ac_err" >&5
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2141 rm -rf conftest*
2142 eval "ac_cv_header_$ac_safe=no"
2144 rm -f conftest*
2146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2149 cat >> confdefs.h <<EOF
2150 #define $ac_tr_hdr 1
2153 else
2154 echo "$ac_t""no" 1>&6
2156 done
2158 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_hdr" >&5
2163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 #include <$ac_hdr>
2171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2172 { (eval echo configure:2173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2174 if test -z "$ac_err"; then
2175 rm -rf conftest*
2176 eval "ac_cv_header_$ac_safe=yes"
2177 else
2178 echo "$ac_err" >&5
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 rm -rf conftest*
2182 eval "ac_cv_header_$ac_safe=no"
2184 rm -f conftest*
2186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2189 cat >> confdefs.h <<EOF
2190 #define $ac_tr_hdr 1
2193 else
2194 echo "$ac_t""no" 1>&6
2196 done
2198 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h
2200 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2202 echo "configure:2203: checking for $ac_hdr" >&5
2203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2205 else
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <$ac_hdr>
2211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2212 { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2214 if test -z "$ac_err"; then
2215 rm -rf conftest*
2216 eval "ac_cv_header_$ac_safe=yes"
2217 else
2218 echo "$ac_err" >&5
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 rm -rf conftest*
2222 eval "ac_cv_header_$ac_safe=no"
2224 rm -f conftest*
2226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2229 cat >> confdefs.h <<EOF
2230 #define $ac_tr_hdr 1
2233 else
2234 echo "$ac_t""no" 1>&6
2236 done
2240 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2241 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2243 case "$host_os" in
2244 *hpux*)
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 #include <shadow.h>
2249 int main() {
2250 struct spwd testme
2251 ; return 0; }
2253 if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2254 rm -rf conftest*
2255 ac_cv_header_shadow_h=yes
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -rf conftest*
2260 ac_cv_header_shadow_h=no
2262 rm -f conftest*
2263 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2264 cat >> confdefs.h <<\EOF
2265 #define HAVE_SHADOW_H 1
2270 esac
2271 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_hdr" >&5
2276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2278 else
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 #include <$ac_hdr>
2284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285 { (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287 if test -z "$ac_err"; then
2288 rm -rf conftest*
2289 eval "ac_cv_header_$ac_safe=yes"
2290 else
2291 echo "$ac_err" >&5
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2294 rm -rf conftest*
2295 eval "ac_cv_header_$ac_safe=no"
2297 rm -f conftest*
2299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2302 cat >> confdefs.h <<EOF
2303 #define $ac_tr_hdr 1
2306 else
2307 echo "$ac_t""no" 1>&6
2309 done
2311 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_hdr" >&5
2316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 #include <$ac_hdr>
2324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2325 { (eval echo configure:2326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2327 if test -z "$ac_err"; then
2328 rm -rf conftest*
2329 eval "ac_cv_header_$ac_safe=yes"
2330 else
2331 echo "$ac_err" >&5
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 rm -rf conftest*
2335 eval "ac_cv_header_$ac_safe=no"
2337 rm -f conftest*
2339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2342 cat >> confdefs.h <<EOF
2343 #define $ac_tr_hdr 1
2346 else
2347 echo "$ac_t""no" 1>&6
2349 done
2351 for ac_hdr in stropts.h poll.h
2353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_hdr" >&5
2356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 #include <$ac_hdr>
2364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2365 { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2367 if test -z "$ac_err"; then
2368 rm -rf conftest*
2369 eval "ac_cv_header_$ac_safe=yes"
2370 else
2371 echo "$ac_err" >&5
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 rm -rf conftest*
2375 eval "ac_cv_header_$ac_safe=no"
2377 rm -f conftest*
2379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2382 cat >> confdefs.h <<EOF
2383 #define $ac_tr_hdr 1
2386 else
2387 echo "$ac_t""no" 1>&6
2389 done
2391 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_hdr" >&5
2396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2398 else
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 #include <$ac_hdr>
2404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2405 { (eval echo configure:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2407 if test -z "$ac_err"; then
2408 rm -rf conftest*
2409 eval "ac_cv_header_$ac_safe=yes"
2410 else
2411 echo "$ac_err" >&5
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 rm -rf conftest*
2415 eval "ac_cv_header_$ac_safe=no"
2417 rm -f conftest*
2419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2422 cat >> confdefs.h <<EOF
2423 #define $ac_tr_hdr 1
2426 else
2427 echo "$ac_t""no" 1>&6
2429 done
2431 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_hdr" >&5
2436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2438 else
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 #include <$ac_hdr>
2444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2445 { (eval echo configure:2446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2447 if test -z "$ac_err"; then
2448 rm -rf conftest*
2449 eval "ac_cv_header_$ac_safe=yes"
2450 else
2451 echo "$ac_err" >&5
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 rm -rf conftest*
2455 eval "ac_cv_header_$ac_safe=no"
2457 rm -f conftest*
2459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2462 cat >> confdefs.h <<EOF
2463 #define $ac_tr_hdr 1
2466 else
2467 echo "$ac_t""no" 1>&6
2469 done
2472 # For experimental utmp support (lastlog on some BSD-like systems)
2473 for ac_hdr in utmp.h utmpx.h lastlog.h
2475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_hdr" >&5
2478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 #include <$ac_hdr>
2486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2487 { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2489 if test -z "$ac_err"; then
2490 rm -rf conftest*
2491 eval "ac_cv_header_$ac_safe=yes"
2492 else
2493 echo "$ac_err" >&5
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2496 rm -rf conftest*
2497 eval "ac_cv_header_$ac_safe=no"
2499 rm -f conftest*
2501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2503 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2504 cat >> confdefs.h <<EOF
2505 #define $ac_tr_hdr 1
2508 else
2509 echo "$ac_t""no" 1>&6
2511 done
2514 # For quotas on Veritas VxFS filesystems
2515 for ac_hdr in sys/fs/vx_quota.h
2517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_hdr" >&5
2520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2522 else
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2526 #include <$ac_hdr>
2528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2529 { (eval echo configure:2530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2531 if test -z "$ac_err"; then
2532 rm -rf conftest*
2533 eval "ac_cv_header_$ac_safe=yes"
2534 else
2535 echo "$ac_err" >&5
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 rm -rf conftest*
2539 eval "ac_cv_header_$ac_safe=no"
2541 rm -f conftest*
2543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2544 echo "$ac_t""yes" 1>&6
2545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2546 cat >> confdefs.h <<EOF
2547 #define $ac_tr_hdr 1
2550 else
2551 echo "$ac_t""no" 1>&6
2553 done
2556 # For quotas on Linux XFS filesystems
2557 for ac_hdr in linux/xqm.h
2559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_hdr" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564 else
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <$ac_hdr>
2570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2571 { (eval echo configure:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2573 if test -z "$ac_err"; then
2574 rm -rf conftest*
2575 eval "ac_cv_header_$ac_safe=yes"
2576 else
2577 echo "$ac_err" >&5
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 rm -rf conftest*
2581 eval "ac_cv_header_$ac_safe=no"
2583 rm -f conftest*
2585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2588 cat >> confdefs.h <<EOF
2589 #define $ac_tr_hdr 1
2592 else
2593 echo "$ac_t""no" 1>&6
2595 done
2598 echo $ac_n "checking size of int""... $ac_c" 1>&6
2599 echo "configure:2600: checking size of int" >&5
2600 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2602 else
2603 if test "$cross_compiling" = yes; then
2604 ac_cv_sizeof_int=cross
2605 else
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <stdio.h>
2610 main()
2612 FILE *f=fopen("conftestval", "w");
2613 if (!f) exit(1);
2614 fprintf(f, "%d\n", sizeof(int));
2615 exit(0);
2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2619 then
2620 ac_cv_sizeof_int=`cat conftestval`
2621 else
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2624 rm -fr conftest*
2625 ac_cv_sizeof_int=0
2627 rm -fr conftest*
2631 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2632 cat >> confdefs.h <<EOF
2633 #define SIZEOF_INT $ac_cv_sizeof_int
2637 echo $ac_n "checking size of long""... $ac_c" 1>&6
2638 echo "configure:2639: checking size of long" >&5
2639 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2641 else
2642 if test "$cross_compiling" = yes; then
2643 ac_cv_sizeof_long=cross
2644 else
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <stdio.h>
2649 main()
2651 FILE *f=fopen("conftestval", "w");
2652 if (!f) exit(1);
2653 fprintf(f, "%d\n", sizeof(long));
2654 exit(0);
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2658 then
2659 ac_cv_sizeof_long=`cat conftestval`
2660 else
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2663 rm -fr conftest*
2664 ac_cv_sizeof_long=0
2666 rm -fr conftest*
2670 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2671 cat >> confdefs.h <<EOF
2672 #define SIZEOF_LONG $ac_cv_sizeof_long
2676 echo $ac_n "checking size of short""... $ac_c" 1>&6
2677 echo "configure:2678: checking size of short" >&5
2678 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2680 else
2681 if test "$cross_compiling" = yes; then
2682 ac_cv_sizeof_short=cross
2683 else
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 #include <stdio.h>
2688 main()
2690 FILE *f=fopen("conftestval", "w");
2691 if (!f) exit(1);
2692 fprintf(f, "%d\n", sizeof(short));
2693 exit(0);
2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2697 then
2698 ac_cv_sizeof_short=`cat conftestval`
2699 else
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 rm -fr conftest*
2703 ac_cv_sizeof_short=0
2705 rm -fr conftest*
2709 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2710 cat >> confdefs.h <<EOF
2711 #define SIZEOF_SHORT $ac_cv_sizeof_short
2716 echo $ac_n "checking for working const""... $ac_c" 1>&6
2717 echo "configure:2718: checking for working const" >&5
2718 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2720 else
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2725 int main() {
2727 /* Ultrix mips cc rejects this. */
2728 typedef int charset[2]; const charset x;
2729 /* SunOS 4.1.1 cc rejects this. */
2730 char const *const *ccp;
2731 char **p;
2732 /* NEC SVR4.0.2 mips cc rejects this. */
2733 struct point {int x, y;};
2734 static struct point const zero = {0,0};
2735 /* AIX XL C 1.02.0.0 rejects this.
2736 It does not let you subtract one const X* pointer from another in an arm
2737 of an if-expression whose if-part is not a constant expression */
2738 const char *g = "string";
2739 ccp = &g + (g ? g-g : 0);
2740 /* HPUX 7.0 cc rejects these. */
2741 ++ccp;
2742 p = (char**) ccp;
2743 ccp = (char const *const *) p;
2744 { /* SCO 3.2v4 cc rejects this. */
2745 char *t;
2746 char const *s = 0 ? (char *) 0 : (char const *) 0;
2748 *t++ = 0;
2750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2751 int x[] = {25, 17};
2752 const int *foo = &x[0];
2753 ++foo;
2755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2756 typedef const int *iptr;
2757 iptr p = 0;
2758 ++p;
2760 { /* AIX XL C 1.02.0.0 rejects this saying
2761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2762 struct s { int j; const int *ap[3]; };
2763 struct s *b; b->j = 5;
2765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2766 const int foo = 10;
2769 ; return 0; }
2771 if { (eval echo configure:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2772 rm -rf conftest*
2773 ac_cv_c_const=yes
2774 else
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 rm -rf conftest*
2778 ac_cv_c_const=no
2780 rm -f conftest*
2783 echo "$ac_t""$ac_cv_c_const" 1>&6
2784 if test $ac_cv_c_const = no; then
2785 cat >> confdefs.h <<\EOF
2786 #define const
2791 echo $ac_n "checking for inline""... $ac_c" 1>&6
2792 echo "configure:2793: checking for inline" >&5
2793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2795 else
2796 ac_cv_c_inline=no
2797 for ac_kw in inline __inline__ __inline; do
2798 cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2802 int main() {
2803 } $ac_kw foo() {
2804 ; return 0; }
2806 if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2807 rm -rf conftest*
2808 ac_cv_c_inline=$ac_kw; break
2809 else
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2813 rm -f conftest*
2814 done
2818 echo "$ac_t""$ac_cv_c_inline" 1>&6
2819 case "$ac_cv_c_inline" in
2820 inline | yes) ;;
2821 no) cat >> confdefs.h <<\EOF
2822 #define inline
2825 *) cat >> confdefs.h <<EOF
2826 #define inline $ac_cv_c_inline
2829 esac
2831 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2832 echo "configure:2833: checking whether byte ordering is bigendian" >&5
2833 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2835 else
2836 ac_cv_c_bigendian=unknown
2837 # See if sys/param.h defines the BYTE_ORDER macro.
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2842 #include <sys/param.h>
2843 int main() {
2845 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2846 bogus endian macros
2847 #endif
2848 ; return 0; }
2850 if { (eval echo configure:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2851 rm -rf conftest*
2852 # It does; now see whether it defined to BIG_ENDIAN or not.
2853 cat > conftest.$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 #include <sys/types.h>
2857 #include <sys/param.h>
2858 int main() {
2860 #if BYTE_ORDER != BIG_ENDIAN
2861 not big endian
2862 #endif
2863 ; return 0; }
2865 if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2866 rm -rf conftest*
2867 ac_cv_c_bigendian=yes
2868 else
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2871 rm -rf conftest*
2872 ac_cv_c_bigendian=no
2874 rm -f conftest*
2875 else
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2879 rm -f conftest*
2880 if test $ac_cv_c_bigendian = unknown; then
2881 if test "$cross_compiling" = yes; then
2882 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2883 else
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2887 main () {
2888 /* Are we little or big endian? From Harbison&Steele. */
2889 union
2891 long l;
2892 char c[sizeof (long)];
2893 } u;
2894 u.l = 1;
2895 exit (u.c[sizeof (long) - 1] == 1);
2898 if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2899 then
2900 ac_cv_c_bigendian=no
2901 else
2902 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 rm -fr conftest*
2905 ac_cv_c_bigendian=yes
2907 rm -fr conftest*
2913 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2914 if test $ac_cv_c_bigendian = yes; then
2915 cat >> confdefs.h <<\EOF
2916 #define WORDS_BIGENDIAN 1
2921 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2922 echo "configure:2923: checking whether char is unsigned" >&5
2923 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2925 else
2926 if test "$GCC" = yes; then
2927 # GCC predefines this symbol on systems where it applies.
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 #ifdef __CHAR_UNSIGNED__
2933 #endif
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "yes" >/dev/null 2>&1; then
2938 rm -rf conftest*
2939 ac_cv_c_char_unsigned=yes
2940 else
2941 rm -rf conftest*
2942 ac_cv_c_char_unsigned=no
2944 rm -f conftest*
2946 else
2947 if test "$cross_compiling" = yes; then
2948 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2949 else
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2954 #if !defined(__STDC__) || __STDC__ != 1
2955 #define volatile
2956 #endif
2957 main() {
2958 volatile char c = 255; exit(c < 0);
2961 if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2962 then
2963 ac_cv_c_char_unsigned=yes
2964 else
2965 echo "configure: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2967 rm -fr conftest*
2968 ac_cv_c_char_unsigned=no
2970 rm -fr conftest*
2976 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2977 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2978 cat >> confdefs.h <<\EOF
2979 #define __CHAR_UNSIGNED__ 1
2985 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2986 echo "configure:2987: checking return type of signal handlers" >&5
2987 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2989 else
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2994 #include <signal.h>
2995 #ifdef signal
2996 #undef signal
2997 #endif
2998 #ifdef __cplusplus
2999 extern "C" void (*signal (int, void (*)(int)))(int);
3000 #else
3001 void (*signal ()) ();
3002 #endif
3004 int main() {
3005 int i;
3006 ; return 0; }
3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3009 rm -rf conftest*
3010 ac_cv_type_signal=void
3011 else
3012 echo "configure: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3014 rm -rf conftest*
3015 ac_cv_type_signal=int
3017 rm -f conftest*
3020 echo "$ac_t""$ac_cv_type_signal" 1>&6
3021 cat >> confdefs.h <<EOF
3022 #define RETSIGTYPE $ac_cv_type_signal
3026 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3027 echo "configure:3028: checking for uid_t in sys/types.h" >&5
3028 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030 else
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 egrep "uid_t" >/dev/null 2>&1; then
3038 rm -rf conftest*
3039 ac_cv_type_uid_t=yes
3040 else
3041 rm -rf conftest*
3042 ac_cv_type_uid_t=no
3044 rm -f conftest*
3048 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3049 if test $ac_cv_type_uid_t = no; then
3050 cat >> confdefs.h <<\EOF
3051 #define uid_t int
3054 cat >> confdefs.h <<\EOF
3055 #define gid_t int
3060 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3061 echo "configure:3062: checking for mode_t" >&5
3062 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3064 else
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 #include <sys/types.h>
3069 #if STDC_HEADERS
3070 #include <stdlib.h>
3071 #include <stddef.h>
3072 #endif
3074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3075 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3076 rm -rf conftest*
3077 ac_cv_type_mode_t=yes
3078 else
3079 rm -rf conftest*
3080 ac_cv_type_mode_t=no
3082 rm -f conftest*
3085 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3086 if test $ac_cv_type_mode_t = no; then
3087 cat >> confdefs.h <<\EOF
3088 #define mode_t int
3093 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3094 echo "configure:3095: checking for off_t" >&5
3095 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3097 else
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <sys/types.h>
3102 #if STDC_HEADERS
3103 #include <stdlib.h>
3104 #include <stddef.h>
3105 #endif
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3109 rm -rf conftest*
3110 ac_cv_type_off_t=yes
3111 else
3112 rm -rf conftest*
3113 ac_cv_type_off_t=no
3115 rm -f conftest*
3118 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3119 if test $ac_cv_type_off_t = no; then
3120 cat >> confdefs.h <<\EOF
3121 #define off_t long
3126 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3127 echo "configure:3128: checking for size_t" >&5
3128 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3130 else
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <sys/types.h>
3135 #if STDC_HEADERS
3136 #include <stdlib.h>
3137 #include <stddef.h>
3138 #endif
3140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3141 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3142 rm -rf conftest*
3143 ac_cv_type_size_t=yes
3144 else
3145 rm -rf conftest*
3146 ac_cv_type_size_t=no
3148 rm -f conftest*
3151 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3152 if test $ac_cv_type_size_t = no; then
3153 cat >> confdefs.h <<\EOF
3154 #define size_t unsigned
3159 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3160 echo "configure:3161: checking for pid_t" >&5
3161 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3163 else
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 #include <sys/types.h>
3168 #if STDC_HEADERS
3169 #include <stdlib.h>
3170 #include <stddef.h>
3171 #endif
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3175 rm -rf conftest*
3176 ac_cv_type_pid_t=yes
3177 else
3178 rm -rf conftest*
3179 ac_cv_type_pid_t=no
3181 rm -f conftest*
3184 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3185 if test $ac_cv_type_pid_t = no; then
3186 cat >> confdefs.h <<\EOF
3187 #define pid_t int
3192 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3193 echo "configure:3194: checking for st_rdev in struct stat" >&5
3194 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3196 else
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3202 int main() {
3203 struct stat s; s.st_rdev;
3204 ; return 0; }
3206 if { (eval echo configure:3207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3207 rm -rf conftest*
3208 ac_cv_struct_st_rdev=yes
3209 else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 rm -rf conftest*
3213 ac_cv_struct_st_rdev=no
3215 rm -f conftest*
3218 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3219 if test $ac_cv_struct_st_rdev = yes; then
3220 cat >> confdefs.h <<\EOF
3221 #define HAVE_ST_RDEV 1
3226 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3227 echo "configure:3228: checking for d_off in dirent" >&5
3228 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3230 else
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3235 #include <unistd.h>
3236 #include <sys/types.h>
3237 #include <dirent.h>
3238 int main() {
3239 struct dirent d; d.d_off;
3240 ; return 0; }
3242 if { (eval echo configure:3243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3243 rm -rf conftest*
3244 ac_cv_dirent_d_off=yes
3245 else
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3248 rm -rf conftest*
3249 ac_cv_dirent_d_off=no
3251 rm -f conftest*
3254 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3255 if test $ac_cv_dirent_d_off = yes; then
3256 cat >> confdefs.h <<\EOF
3257 #define HAVE_DIRENT_D_OFF 1
3262 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3263 echo "configure:3264: checking for ino_t" >&5
3264 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3266 else
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include <sys/types.h>
3271 #if STDC_HEADERS
3272 #include <stdlib.h>
3273 #include <stddef.h>
3274 #endif
3276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3277 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3278 rm -rf conftest*
3279 ac_cv_type_ino_t=yes
3280 else
3281 rm -rf conftest*
3282 ac_cv_type_ino_t=no
3284 rm -f conftest*
3287 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3288 if test $ac_cv_type_ino_t = no; then
3289 cat >> confdefs.h <<\EOF
3290 #define ino_t unsigned
3295 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3296 echo "configure:3297: checking for loff_t" >&5
3297 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3299 else
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3304 #if STDC_HEADERS
3305 #include <stdlib.h>
3306 #include <stddef.h>
3307 #endif
3309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3310 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3311 rm -rf conftest*
3312 ac_cv_type_loff_t=yes
3313 else
3314 rm -rf conftest*
3315 ac_cv_type_loff_t=no
3317 rm -f conftest*
3320 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3321 if test $ac_cv_type_loff_t = no; then
3322 cat >> confdefs.h <<\EOF
3323 #define loff_t off_t
3328 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3329 echo "configure:3330: checking for offset_t" >&5
3330 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3332 else
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 #include <sys/types.h>
3337 #if STDC_HEADERS
3338 #include <stdlib.h>
3339 #include <stddef.h>
3340 #endif
3342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3343 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3344 rm -rf conftest*
3345 ac_cv_type_offset_t=yes
3346 else
3347 rm -rf conftest*
3348 ac_cv_type_offset_t=no
3350 rm -f conftest*
3353 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3354 if test $ac_cv_type_offset_t = no; then
3355 cat >> confdefs.h <<\EOF
3356 #define offset_t loff_t
3361 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3362 echo "configure:3363: checking for ssize_t" >&5
3363 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3365 else
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <sys/types.h>
3370 #if STDC_HEADERS
3371 #include <stdlib.h>
3372 #include <stddef.h>
3373 #endif
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3377 rm -rf conftest*
3378 ac_cv_type_ssize_t=yes
3379 else
3380 rm -rf conftest*
3381 ac_cv_type_ssize_t=no
3383 rm -f conftest*
3386 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3387 if test $ac_cv_type_ssize_t = no; then
3388 cat >> confdefs.h <<\EOF
3389 #define ssize_t int
3394 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3395 echo "configure:3396: checking for wchar_t" >&5
3396 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3398 else
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3403 #if STDC_HEADERS
3404 #include <stdlib.h>
3405 #include <stddef.h>
3406 #endif
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3410 rm -rf conftest*
3411 ac_cv_type_wchar_t=yes
3412 else
3413 rm -rf conftest*
3414 ac_cv_type_wchar_t=no
3416 rm -f conftest*
3419 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3420 if test $ac_cv_type_wchar_t = no; then
3421 cat >> confdefs.h <<\EOF
3422 #define wchar_t unsigned short
3428 ############################################
3429 # for cups support we need libcups, and a handful of header files
3431 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3432 echo "configure:3433: checking for httpConnect in -lcups" >&5
3433 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3436 else
3437 ac_save_LIBS="$LIBS"
3438 LIBS="-lcups $LIBS"
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* Override any gcc2 internal prototype to avoid an error. */
3443 /* We use char because int might match the return type of a gcc2
3444 builtin and then its argument prototype would still apply. */
3445 char httpConnect();
3447 int main() {
3448 httpConnect()
3449 ; return 0; }
3451 if { (eval echo configure:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3452 rm -rf conftest*
3453 eval "ac_cv_lib_$ac_lib_var=yes"
3454 else
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3457 rm -rf conftest*
3458 eval "ac_cv_lib_$ac_lib_var=no"
3460 rm -f conftest*
3461 LIBS="$ac_save_LIBS"
3464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3466 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3467 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3468 cat >> confdefs.h <<EOF
3469 #define $ac_tr_lib 1
3472 LIBS="-lcups $LIBS"
3474 else
3475 echo "$ac_t""no" 1>&6
3479 # I wonder if there is a nicer way of doing this?
3481 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3482 for ac_hdr in cups/cups.h cups/language.h
3484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3486 echo "configure:3487: checking for $ac_hdr" >&5
3487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3489 else
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3493 #include <$ac_hdr>
3495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3496 { (eval echo configure:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3498 if test -z "$ac_err"; then
3499 rm -rf conftest*
3500 eval "ac_cv_header_$ac_safe=yes"
3501 else
3502 echo "$ac_err" >&5
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 rm -rf conftest*
3506 eval "ac_cv_header_$ac_safe=no"
3508 rm -f conftest*
3510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3513 cat >> confdefs.h <<EOF
3514 #define $ac_tr_hdr 1
3517 else
3518 echo "$ac_t""no" 1>&6
3520 done
3522 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3523 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3524 cat >> confdefs.h <<\EOF
3525 #define HAVE_CUPS 1
3532 ############################################
3533 # we need libdl for PAM and the new VFS code
3534 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3535 echo "configure:3536: checking for dlopen in -ldl" >&5
3536 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3539 else
3540 ac_save_LIBS="$LIBS"
3541 LIBS="-ldl $LIBS"
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 /* Override any gcc2 internal prototype to avoid an error. */
3546 /* We use char because int might match the return type of a gcc2
3547 builtin and then its argument prototype would still apply. */
3548 char dlopen();
3550 int main() {
3551 dlopen()
3552 ; return 0; }
3554 if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555 rm -rf conftest*
3556 eval "ac_cv_lib_$ac_lib_var=yes"
3557 else
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3560 rm -rf conftest*
3561 eval "ac_cv_lib_$ac_lib_var=no"
3563 rm -f conftest*
3564 LIBS="$ac_save_LIBS"
3567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3569 LIBS="$LIBS -ldl";
3570 cat >> confdefs.h <<\EOF
3571 #define HAVE_LIBDL 1
3574 else
3575 echo "$ac_t""no" 1>&6
3579 ############################################
3580 # check if the compiler can do immediate structures
3581 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3582 echo "configure:3583: checking for immediate structures" >&5
3583 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3585 else
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3591 #include <stdio.h>
3592 int main() {
3594 #define X_FOOBAR(x) ((FOOBAR) { x })
3595 typedef struct {unsigned x;} FOOBAR;
3596 FOOBAR f = X_FOOBAR(1);
3598 ; return 0; }
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3601 rm -rf conftest*
3602 samba_cv_immediate_structures=yes
3603 else
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3606 rm -rf conftest*
3607 samba_cv_immediate_structures=no
3609 rm -f conftest*
3612 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3613 if test x"$samba_cv_immediate_structures" = x"yes"; then
3614 cat >> confdefs.h <<\EOF
3615 #define HAVE_IMMEDIATE_STRUCTURES 1
3620 ############################################
3621 # check for unix domain sockets
3622 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3623 echo "configure:3624: checking for unix domain sockets" >&5
3624 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3626 else
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3632 #include <sys/types.h>
3633 #include <stdlib.h>
3634 #include <stddef.h>
3635 #include <sys/socket.h>
3636 #include <sys/un.h>
3637 int main() {
3639 struct sockaddr_un sunaddr;
3640 sunaddr.sun_family = AF_UNIX;
3642 ; return 0; }
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3645 rm -rf conftest*
3646 samba_cv_unixsocket=yes
3647 else
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3650 rm -rf conftest*
3651 samba_cv_unixsocket=no
3653 rm -f conftest*
3656 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3657 if test x"$samba_cv_unixsocket" = x"yes"; then
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_UNIXSOCKET 1
3665 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3666 echo "configure:3667: checking for socklen_t type" >&5
3667 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3669 else
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3675 #include <sys/types.h>
3676 #if STDC_HEADERS
3677 #include <stdlib.h>
3678 #include <stddef.h>
3679 #endif
3680 #include <sys/socket.h>
3681 int main() {
3682 socklen_t i = 0
3683 ; return 0; }
3685 if { (eval echo configure:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3686 rm -rf conftest*
3687 samba_cv_socklen_t=yes
3688 else
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3691 rm -rf conftest*
3692 samba_cv_socklen_t=no
3694 rm -f conftest*
3697 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3698 if test x"$samba_cv_socklen_t" = x"yes"; then
3699 cat >> confdefs.h <<\EOF
3700 #define HAVE_SOCKLEN_T_TYPE 1
3705 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3706 echo "configure:3707: checking for sig_atomic_t type" >&5
3707 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3709 else
3711 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3715 #include <sys/types.h>
3716 #if STDC_HEADERS
3717 #include <stdlib.h>
3718 #include <stddef.h>
3719 #endif
3720 #include <signal.h>
3721 int main() {
3722 sig_atomic_t i = 0
3723 ; return 0; }
3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726 rm -rf conftest*
3727 samba_cv_sig_atomic_t=yes
3728 else
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3731 rm -rf conftest*
3732 samba_cv_sig_atomic_t=no
3734 rm -f conftest*
3737 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3738 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3739 cat >> confdefs.h <<\EOF
3740 #define HAVE_SIG_ATOMIC_T_TYPE 1
3745 # stupid headers have the functions but no declaration. grrrr.
3747 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3748 echo "configure:3749: checking for errno declaration" >&5
3749 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3751 else
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <errno.h>
3757 int main() {
3758 int i = (int)errno
3759 ; return 0; }
3761 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762 rm -rf conftest*
3763 ac_cv_have_errno_decl=yes
3764 else
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3767 rm -rf conftest*
3768 ac_cv_have_errno_decl=no
3770 rm -f conftest*
3773 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3774 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3775 cat >> confdefs.h <<\EOF
3776 #define HAVE_ERRNO_DECL 1
3782 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3783 echo "configure:3784: checking for setresuid declaration" >&5
3784 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3786 else
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <unistd.h>
3792 int main() {
3793 int i = (int)setresuid
3794 ; return 0; }
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797 rm -rf conftest*
3798 ac_cv_have_setresuid_decl=yes
3799 else
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 rm -rf conftest*
3803 ac_cv_have_setresuid_decl=no
3805 rm -f conftest*
3808 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3809 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3810 cat >> confdefs.h <<\EOF
3811 #define HAVE_SETRESUID_DECL 1
3817 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3818 echo "configure:3819: checking for setresgid declaration" >&5
3819 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3821 else
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 #include <unistd.h>
3827 int main() {
3828 int i = (int)setresgid
3829 ; return 0; }
3831 if { (eval echo configure:3832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3832 rm -rf conftest*
3833 ac_cv_have_setresgid_decl=yes
3834 else
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3837 rm -rf conftest*
3838 ac_cv_have_setresgid_decl=no
3840 rm -f conftest*
3843 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3844 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3845 cat >> confdefs.h <<\EOF
3846 #define HAVE_SETRESGID_DECL 1
3852 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3853 echo "configure:3854: checking for asprintf declaration" >&5
3854 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3856 else
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 #include <stdio.h>
3862 int main() {
3863 int i = (int)asprintf
3864 ; return 0; }
3866 if { (eval echo configure:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3867 rm -rf conftest*
3868 ac_cv_have_asprintf_decl=yes
3869 else
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3872 rm -rf conftest*
3873 ac_cv_have_asprintf_decl=no
3875 rm -f conftest*
3878 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3879 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3880 cat >> confdefs.h <<\EOF
3881 #define HAVE_ASPRINTF_DECL 1
3887 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3888 echo "configure:3889: checking for vasprintf declaration" >&5
3889 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3891 else
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3896 #include <stdio.h>
3897 int main() {
3898 int i = (int)vasprintf
3899 ; return 0; }
3901 if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3902 rm -rf conftest*
3903 ac_cv_have_vasprintf_decl=yes
3904 else
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3907 rm -rf conftest*
3908 ac_cv_have_vasprintf_decl=no
3910 rm -f conftest*
3913 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3914 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3915 cat >> confdefs.h <<\EOF
3916 #define HAVE_VASPRINTF_DECL 1
3922 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3923 echo "configure:3924: checking for vsnprintf declaration" >&5
3924 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3926 else
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 #include <stdio.h>
3932 int main() {
3933 int i = (int)vsnprintf
3934 ; return 0; }
3936 if { (eval echo configure:3937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3937 rm -rf conftest*
3938 ac_cv_have_vsnprintf_decl=yes
3939 else
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 rm -rf conftest*
3943 ac_cv_have_vsnprintf_decl=no
3945 rm -f conftest*
3948 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3949 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3950 cat >> confdefs.h <<\EOF
3951 #define HAVE_VSNPRINTF_DECL 1
3957 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3958 echo "configure:3959: checking for snprintf declaration" >&5
3959 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3961 else
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 #include <stdio.h>
3967 int main() {
3968 int i = (int)snprintf
3969 ; return 0; }
3971 if { (eval echo configure:3972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3972 rm -rf conftest*
3973 ac_cv_have_snprintf_decl=yes
3974 else
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3977 rm -rf conftest*
3978 ac_cv_have_snprintf_decl=no
3980 rm -f conftest*
3983 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3984 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_SNPRINTF_DECL 1
3992 # and glibc has setresuid under linux but the function does
3993 # nothing until kernel 2.1.44! very dumb.
3994 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3995 echo "configure:3996: checking for real setresuid" >&5
3996 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3998 else
4000 if test "$cross_compiling" = yes; then
4001 samba_cv_have_setresuid=cross
4002 else
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 #include <errno.h>
4007 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4009 if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4010 then
4011 samba_cv_have_setresuid=yes
4012 else
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4015 rm -fr conftest*
4016 samba_cv_have_setresuid=no
4018 rm -fr conftest*
4023 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4024 if test x"$samba_cv_have_setresuid" = x"yes"; then
4025 cat >> confdefs.h <<\EOF
4026 #define HAVE_SETRESUID 1
4031 # Do the same check for setresguid...
4033 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4034 echo "configure:4035: checking for real setresgid" >&5
4035 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4037 else
4039 if test "$cross_compiling" = yes; then
4040 samba_cv_have_setresgid=cross
4041 else
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 #include <unistd.h>
4046 #include <errno.h>
4047 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4050 then
4051 samba_cv_have_setresgid=yes
4052 else
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4055 rm -fr conftest*
4056 samba_cv_have_setresgid=no
4058 rm -fr conftest*
4063 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4064 if test x"$samba_cv_have_setresgid" = x"yes"; then
4065 cat >> confdefs.h <<\EOF
4066 #define HAVE_SETRESGID 1
4071 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4072 echo "configure:4073: checking for 8-bit clean memcmp" >&5
4073 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4075 else
4076 if test "$cross_compiling" = yes; then
4077 ac_cv_func_memcmp_clean=no
4078 else
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4083 main()
4085 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4086 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4091 then
4092 ac_cv_func_memcmp_clean=yes
4093 else
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 rm -fr conftest*
4097 ac_cv_func_memcmp_clean=no
4099 rm -fr conftest*
4104 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4105 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4108 ###############################################
4109 # test for where we get crypt() from
4110 for ac_func in crypt
4112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4113 echo "configure:4114: checking for $ac_func" >&5
4114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4116 else
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* System header to define __stub macros and hopefully few prototypes,
4121 which can conflict with char $ac_func(); below. */
4122 #include <assert.h>
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4126 char $ac_func();
4128 int main() {
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4134 choke me
4135 #else
4136 $ac_func();
4137 #endif
4139 ; return 0; }
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4142 rm -rf conftest*
4143 eval "ac_cv_func_$ac_func=yes"
4144 else
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4147 rm -rf conftest*
4148 eval "ac_cv_func_$ac_func=no"
4150 rm -f conftest*
4153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4156 cat >> confdefs.h <<EOF
4157 #define $ac_tr_func 1
4160 else
4161 echo "$ac_t""no" 1>&6
4163 done
4165 if test x"$ac_cv_func_crypt" = x"no"; then
4166 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4167 echo "configure:4168: checking for crypt in -lcrypt" >&5
4168 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4171 else
4172 ac_save_LIBS="$LIBS"
4173 LIBS="-lcrypt $LIBS"
4174 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4180 char crypt();
4182 int main() {
4183 crypt()
4184 ; return 0; }
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4187 rm -rf conftest*
4188 eval "ac_cv_lib_$ac_lib_var=yes"
4189 else
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4192 rm -rf conftest*
4193 eval "ac_cv_lib_$ac_lib_var=no"
4195 rm -f conftest*
4196 LIBS="$ac_save_LIBS"
4199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4200 echo "$ac_t""yes" 1>&6
4201 LIBS="$LIBS -lcrypt";
4202 cat >> confdefs.h <<\EOF
4203 #define HAVE_CRYPT 1
4206 else
4207 echo "$ac_t""no" 1>&6
4213 ###############################################
4214 # Readline included by default unless explicitly asked not to
4215 test "${with_readline+set}" != "set" && with_readline=yes
4217 # test for where we get readline() from
4218 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4219 echo "configure:4220: checking whether to use readline" >&5
4220 # Check whether --with-readline or --without-readline was given.
4221 if test "${with_readline+set}" = set; then
4222 withval="$with_readline"
4223 case "$with_readline" in
4224 yes)
4225 echo "$ac_t""yes" 1>&6
4227 for ac_hdr in readline.h history.h readline/readline.h
4229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4231 echo "configure:4232: checking for $ac_hdr" >&5
4232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234 else
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 #include <$ac_hdr>
4240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4241 { (eval echo configure:4242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4243 if test -z "$ac_err"; then
4244 rm -rf conftest*
4245 eval "ac_cv_header_$ac_safe=yes"
4246 else
4247 echo "$ac_err" >&5
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 eval "ac_cv_header_$ac_safe=no"
4253 rm -f conftest*
4255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4258 cat >> confdefs.h <<EOF
4259 #define $ac_tr_hdr 1
4262 else
4263 echo "$ac_t""no" 1>&6
4265 done
4267 for ac_hdr in readline/history.h
4269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4271 echo "configure:4272: checking for $ac_hdr" >&5
4272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4274 else
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4278 #include <$ac_hdr>
4280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281 { (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4283 if test -z "$ac_err"; then
4284 rm -rf conftest*
4285 eval "ac_cv_header_$ac_safe=yes"
4286 else
4287 echo "$ac_err" >&5
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4290 rm -rf conftest*
4291 eval "ac_cv_header_$ac_safe=no"
4293 rm -f conftest*
4295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4298 cat >> confdefs.h <<EOF
4299 #define $ac_tr_hdr 1
4302 else
4303 echo "$ac_t""no" 1>&6
4305 done
4308 for ac_hdr in readline.h readline/readline.h
4310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_hdr" >&5
4313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4315 else
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 #include <$ac_hdr>
4321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4322 { (eval echo configure:4323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4324 if test -z "$ac_err"; then
4325 rm -rf conftest*
4326 eval "ac_cv_header_$ac_safe=yes"
4327 else
4328 echo "$ac_err" >&5
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 rm -rf conftest*
4332 eval "ac_cv_header_$ac_safe=no"
4334 rm -f conftest*
4336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4339 cat >> confdefs.h <<EOF
4340 #define $ac_tr_hdr 1
4343 for termlib in ncurses curses termcap terminfo termlib; do
4344 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4345 echo "configure:4346: checking for tgetent in -l${termlib}" >&5
4346 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4349 else
4350 ac_save_LIBS="$LIBS"
4351 LIBS="-l${termlib} $LIBS"
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4358 char tgetent();
4360 int main() {
4361 tgetent()
4362 ; return 0; }
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4365 rm -rf conftest*
4366 eval "ac_cv_lib_$ac_lib_var=yes"
4367 else
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4370 rm -rf conftest*
4371 eval "ac_cv_lib_$ac_lib_var=no"
4373 rm -f conftest*
4374 LIBS="$ac_save_LIBS"
4377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4379 TERMLIBS="-l${termlib}"; break
4380 else
4381 echo "$ac_t""no" 1>&6
4384 done
4385 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4386 echo "configure:4387: checking for rl_callback_handler_install in -lreadline" >&5
4387 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4390 else
4391 ac_save_LIBS="$LIBS"
4392 LIBS="-lreadline $TERMLIBS $LIBS"
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4399 char rl_callback_handler_install();
4401 int main() {
4402 rl_callback_handler_install()
4403 ; return 0; }
4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4406 rm -rf conftest*
4407 eval "ac_cv_lib_$ac_lib_var=yes"
4408 else
4409 echo "configure: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4411 rm -rf conftest*
4412 eval "ac_cv_lib_$ac_lib_var=no"
4414 rm -f conftest*
4415 LIBS="$ac_save_LIBS"
4418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6
4420 TERMLIBS="-lreadline $TERMLIBS"
4421 cat >> confdefs.h <<\EOF
4422 #define HAVE_LIBREADLINE 1
4425 break
4426 else
4427 echo "$ac_t""no" 1>&6
4428 TERMLIBS=
4431 else
4432 echo "$ac_t""no" 1>&6
4434 done
4438 echo "$ac_t""no" 1>&6
4441 echo "$ac_t""yes" 1>&6
4443 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4444 # alternate readline path
4445 _ldflags=${LDFLAGS}
4446 _cppflags=${CPPFLAGS}
4448 # Add additional search path
4449 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4450 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4452 for ac_hdr in readline.h history.h readline/readline.h
4454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_hdr" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4459 else
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 #include <$ac_hdr>
4465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4469 rm -rf conftest*
4470 eval "ac_cv_header_$ac_safe=yes"
4471 else
4472 echo "$ac_err" >&5
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -rf conftest*
4476 eval "ac_cv_header_$ac_safe=no"
4478 rm -f conftest*
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_hdr 1
4487 else
4488 echo "$ac_t""no" 1>&6
4490 done
4492 for ac_hdr in readline/history.h
4494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_hdr" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503 #include <$ac_hdr>
4505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4509 rm -rf conftest*
4510 eval "ac_cv_header_$ac_safe=yes"
4511 else
4512 echo "$ac_err" >&5
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4515 rm -rf conftest*
4516 eval "ac_cv_header_$ac_safe=no"
4518 rm -f conftest*
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4523 cat >> confdefs.h <<EOF
4524 #define $ac_tr_hdr 1
4527 else
4528 echo "$ac_t""no" 1>&6
4530 done
4533 for ac_hdr in readline.h readline/readline.h
4535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4537 echo "configure:4538: checking for $ac_hdr" >&5
4538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4540 else
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544 #include <$ac_hdr>
4546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4547 { (eval echo configure:4548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4549 if test -z "$ac_err"; then
4550 rm -rf conftest*
4551 eval "ac_cv_header_$ac_safe=yes"
4552 else
4553 echo "$ac_err" >&5
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 rm -rf conftest*
4557 eval "ac_cv_header_$ac_safe=no"
4559 rm -f conftest*
4561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_hdr 1
4568 for termlib in ncurses curses termcap terminfo termlib; do
4569 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4570 echo "configure:4571: checking for tgetent in -l${termlib}" >&5
4571 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4574 else
4575 ac_save_LIBS="$LIBS"
4576 LIBS="-l${termlib} $LIBS"
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 /* Override any gcc2 internal prototype to avoid an error. */
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4583 char tgetent();
4585 int main() {
4586 tgetent()
4587 ; return 0; }
4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4590 rm -rf conftest*
4591 eval "ac_cv_lib_$ac_lib_var=yes"
4592 else
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4595 rm -rf conftest*
4596 eval "ac_cv_lib_$ac_lib_var=no"
4598 rm -f conftest*
4599 LIBS="$ac_save_LIBS"
4602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 TERMLIBS="-l${termlib}"; break
4605 else
4606 echo "$ac_t""no" 1>&6
4609 done
4610 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4611 echo "configure:4612: checking for rl_callback_handler_install in -lreadline" >&5
4612 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4615 else
4616 ac_save_LIBS="$LIBS"
4617 LIBS="-lreadline $TERMLIBS $LIBS"
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4624 char rl_callback_handler_install();
4626 int main() {
4627 rl_callback_handler_install()
4628 ; return 0; }
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4631 rm -rf conftest*
4632 eval "ac_cv_lib_$ac_lib_var=yes"
4633 else
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4636 rm -rf conftest*
4637 eval "ac_cv_lib_$ac_lib_var=no"
4639 rm -f conftest*
4640 LIBS="$ac_save_LIBS"
4643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 TERMLDFLAGS="-L$with_readline/lib"
4646 TERMCPPFLAGS="-I$with_readline/include"
4647 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4648 TERMLIBS="-lreadline $TERMLIBS"
4649 cat >> confdefs.h <<\EOF
4650 #define HAVE_LIBREADLINE 1
4653 break
4654 else
4655 echo "$ac_t""no" 1>&6
4656 TERMLIBS= CPPFLAGS=$_cppflags
4659 else
4660 echo "$ac_t""no" 1>&6
4662 done
4665 LDFLAGS=$_ldflags
4667 esac
4668 else
4669 echo "$ac_t""no" 1>&6
4676 # The readline API changed slightly from readline3 to readline4, so
4677 # code will generate warnings on one of them unless we have a few
4678 # special cases.
4679 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4680 echo "configure:4681: checking for rl_completion_matches in -lreadline" >&5
4681 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4684 else
4685 ac_save_LIBS="$LIBS"
4686 LIBS="-lreadline $TERMLIBS $LIBS"
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4690 /* Override any gcc2 internal prototype to avoid an error. */
4691 /* We use char because int might match the return type of a gcc2
4692 builtin and then its argument prototype would still apply. */
4693 char rl_completion_matches();
4695 int main() {
4696 rl_completion_matches()
4697 ; return 0; }
4699 if { (eval echo configure:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4700 rm -rf conftest*
4701 eval "ac_cv_lib_$ac_lib_var=yes"
4702 else
4703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4705 rm -rf conftest*
4706 eval "ac_cv_lib_$ac_lib_var=no"
4708 rm -f conftest*
4709 LIBS="$ac_save_LIBS"
4712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4713 echo "$ac_t""yes" 1>&6
4714 cat >> confdefs.h <<\EOF
4715 #define HAVE_NEW_LIBREADLINE 1
4718 else
4719 echo "$ac_t""no" 1>&6
4723 # The following test taken from the cvs sources
4724 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4725 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4726 # libsocket.so which has a bad implementation of gethostbyname (it
4727 # only looks in /etc/hosts), so we only look for -lsocket if we need
4728 # it.
4729 for ac_func in connect
4731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4732 echo "configure:4733: checking for $ac_func" >&5
4733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4735 else
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* System header to define __stub macros and hopefully few prototypes,
4740 which can conflict with char $ac_func(); below. */
4741 #include <assert.h>
4742 /* Override any gcc2 internal prototype to avoid an error. */
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4745 char $ac_func();
4747 int main() {
4749 /* The GNU C library defines this for functions which it implements
4750 to always fail with ENOSYS. Some functions are actually named
4751 something starting with __ and the normal name is an alias. */
4752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4753 choke me
4754 #else
4755 $ac_func();
4756 #endif
4758 ; return 0; }
4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4761 rm -rf conftest*
4762 eval "ac_cv_func_$ac_func=yes"
4763 else
4764 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4766 rm -rf conftest*
4767 eval "ac_cv_func_$ac_func=no"
4769 rm -f conftest*
4772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6
4774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4775 cat >> confdefs.h <<EOF
4776 #define $ac_tr_func 1
4779 else
4780 echo "$ac_t""no" 1>&6
4782 done
4784 if test x"$ac_cv_func_connect" = x"no"; then
4785 case "$LIBS" in
4786 *-lnsl*) ;;
4787 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4788 echo "configure:4789: checking for printf in -lnsl_s" >&5
4789 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4792 else
4793 ac_save_LIBS="$LIBS"
4794 LIBS="-lnsl_s $LIBS"
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4801 char printf();
4803 int main() {
4804 printf()
4805 ; return 0; }
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4808 rm -rf conftest*
4809 eval "ac_cv_lib_$ac_lib_var=yes"
4810 else
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4813 rm -rf conftest*
4814 eval "ac_cv_lib_$ac_lib_var=no"
4816 rm -f conftest*
4817 LIBS="$ac_save_LIBS"
4820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4823 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4824 cat >> confdefs.h <<EOF
4825 #define $ac_tr_lib 1
4828 LIBS="-lnsl_s $LIBS"
4830 else
4831 echo "$ac_t""no" 1>&6
4834 esac
4835 case "$LIBS" in
4836 *-lnsl*) ;;
4837 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4838 echo "configure:4839: checking for printf in -lnsl" >&5
4839 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4841 echo $ac_n "(cached) $ac_c" 1>&6
4842 else
4843 ac_save_LIBS="$LIBS"
4844 LIBS="-lnsl $LIBS"
4845 cat > conftest.$ac_ext <<EOF
4846 #line 4847 "configure"
4847 #include "confdefs.h"
4848 /* Override any gcc2 internal prototype to avoid an error. */
4849 /* We use char because int might match the return type of a gcc2
4850 builtin and then its argument prototype would still apply. */
4851 char printf();
4853 int main() {
4854 printf()
4855 ; return 0; }
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4858 rm -rf conftest*
4859 eval "ac_cv_lib_$ac_lib_var=yes"
4860 else
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4863 rm -rf conftest*
4864 eval "ac_cv_lib_$ac_lib_var=no"
4866 rm -f conftest*
4867 LIBS="$ac_save_LIBS"
4870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4871 echo "$ac_t""yes" 1>&6
4872 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4874 cat >> confdefs.h <<EOF
4875 #define $ac_tr_lib 1
4878 LIBS="-lnsl $LIBS"
4880 else
4881 echo "$ac_t""no" 1>&6
4884 esac
4885 case "$LIBS" in
4886 *-lsocket*) ;;
4887 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4888 echo "configure:4889: checking for connect in -lsocket" >&5
4889 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4892 else
4893 ac_save_LIBS="$LIBS"
4894 LIBS="-lsocket $LIBS"
4895 cat > conftest.$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4898 /* Override any gcc2 internal prototype to avoid an error. */
4899 /* We use char because int might match the return type of a gcc2
4900 builtin and then its argument prototype would still apply. */
4901 char connect();
4903 int main() {
4904 connect()
4905 ; return 0; }
4907 if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4908 rm -rf conftest*
4909 eval "ac_cv_lib_$ac_lib_var=yes"
4910 else
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4913 rm -rf conftest*
4914 eval "ac_cv_lib_$ac_lib_var=no"
4916 rm -f conftest*
4917 LIBS="$ac_save_LIBS"
4920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4921 echo "$ac_t""yes" 1>&6
4922 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4923 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4924 cat >> confdefs.h <<EOF
4925 #define $ac_tr_lib 1
4928 LIBS="-lsocket $LIBS"
4930 else
4931 echo "$ac_t""no" 1>&6
4934 esac
4935 case "$LIBS" in
4936 *-linet*) ;;
4937 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4938 echo "configure:4939: checking for connect in -linet" >&5
4939 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4942 else
4943 ac_save_LIBS="$LIBS"
4944 LIBS="-linet $LIBS"
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4951 char connect();
4953 int main() {
4954 connect()
4955 ; return 0; }
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4958 rm -rf conftest*
4959 eval "ac_cv_lib_$ac_lib_var=yes"
4960 else
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4963 rm -rf conftest*
4964 eval "ac_cv_lib_$ac_lib_var=no"
4966 rm -f conftest*
4967 LIBS="$ac_save_LIBS"
4970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4974 cat >> confdefs.h <<EOF
4975 #define $ac_tr_lib 1
4978 LIBS="-linet $LIBS"
4980 else
4981 echo "$ac_t""no" 1>&6
4984 esac
4985 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4986 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4987 # ac_cv_func_connect=yes
4988 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4989 cat >> confdefs.h <<\EOF
4990 #define HAVE_CONNECT 1
4996 ###############################################
4997 # test for where we get get_yp_default_domain() from
4998 for ac_func in yp_get_default_domain
5000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5001 echo "configure:5002: checking for $ac_func" >&5
5002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5004 else
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5008 /* System header to define __stub macros and hopefully few prototypes,
5009 which can conflict with char $ac_func(); below. */
5010 #include <assert.h>
5011 /* Override any gcc2 internal prototype to avoid an error. */
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5014 char $ac_func();
5016 int main() {
5018 /* The GNU C library defines this for functions which it implements
5019 to always fail with ENOSYS. Some functions are actually named
5020 something starting with __ and the normal name is an alias. */
5021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5022 choke me
5023 #else
5024 $ac_func();
5025 #endif
5027 ; return 0; }
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5030 rm -rf conftest*
5031 eval "ac_cv_func_$ac_func=yes"
5032 else
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5035 rm -rf conftest*
5036 eval "ac_cv_func_$ac_func=no"
5038 rm -f conftest*
5041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5044 cat >> confdefs.h <<EOF
5045 #define $ac_tr_func 1
5048 else
5049 echo "$ac_t""no" 1>&6
5051 done
5053 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5054 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5055 echo "configure:5056: checking for yp_get_default_domain in -lnsl" >&5
5056 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5059 else
5060 ac_save_LIBS="$LIBS"
5061 LIBS="-lnsl $LIBS"
5062 cat > conftest.$ac_ext <<EOF
5063 #line 5064 "configure"
5064 #include "confdefs.h"
5065 /* Override any gcc2 internal prototype to avoid an error. */
5066 /* We use char because int might match the return type of a gcc2
5067 builtin and then its argument prototype would still apply. */
5068 char yp_get_default_domain();
5070 int main() {
5071 yp_get_default_domain()
5072 ; return 0; }
5074 if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5075 rm -rf conftest*
5076 eval "ac_cv_lib_$ac_lib_var=yes"
5077 else
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5080 rm -rf conftest*
5081 eval "ac_cv_lib_$ac_lib_var=no"
5083 rm -f conftest*
5084 LIBS="$ac_save_LIBS"
5087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5088 echo "$ac_t""yes" 1>&6
5089 LIBS="$LIBS -lnsl";
5090 cat >> confdefs.h <<\EOF
5091 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5094 else
5095 echo "$ac_t""no" 1>&6
5100 # Check if we have execl, if not we need to compile smbrun.
5101 for ac_func in execl
5103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5104 echo "configure:5105: checking for $ac_func" >&5
5105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5106 echo $ac_n "(cached) $ac_c" 1>&6
5107 else
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5111 /* System header to define __stub macros and hopefully few prototypes,
5112 which can conflict with char $ac_func(); below. */
5113 #include <assert.h>
5114 /* Override any gcc2 internal prototype to avoid an error. */
5115 /* We use char because int might match the return type of a gcc2
5116 builtin and then its argument prototype would still apply. */
5117 char $ac_func();
5119 int main() {
5121 /* The GNU C library defines this for functions which it implements
5122 to always fail with ENOSYS. Some functions are actually named
5123 something starting with __ and the normal name is an alias. */
5124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5125 choke me
5126 #else
5127 $ac_func();
5128 #endif
5130 ; return 0; }
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5133 rm -rf conftest*
5134 eval "ac_cv_func_$ac_func=yes"
5135 else
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 rm -rf conftest*
5139 eval "ac_cv_func_$ac_func=no"
5141 rm -f conftest*
5144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5147 cat >> confdefs.h <<EOF
5148 #define $ac_tr_func 1
5151 else
5152 echo "$ac_t""no" 1>&6
5154 done
5156 if test x"$ac_cv_func_execl" = x"no"; then
5157 RUNPROG="bin/smbrun"
5158 else
5159 RUNPROG=""
5162 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5165 echo "configure:5166: checking for $ac_func" >&5
5166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5168 else
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 /* System header to define __stub macros and hopefully few prototypes,
5173 which can conflict with char $ac_func(); below. */
5174 #include <assert.h>
5175 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5178 char $ac_func();
5180 int main() {
5182 /* The GNU C library defines this for functions which it implements
5183 to always fail with ENOSYS. Some functions are actually named
5184 something starting with __ and the normal name is an alias. */
5185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5186 choke me
5187 #else
5188 $ac_func();
5189 #endif
5191 ; return 0; }
5193 if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5194 rm -rf conftest*
5195 eval "ac_cv_func_$ac_func=yes"
5196 else
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5199 rm -rf conftest*
5200 eval "ac_cv_func_$ac_func=no"
5202 rm -f conftest*
5205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5208 cat >> confdefs.h <<EOF
5209 #define $ac_tr_func 1
5212 else
5213 echo "$ac_t""no" 1>&6
5215 done
5217 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5220 echo "configure:5221: checking for $ac_func" >&5
5221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5223 else
5224 cat > conftest.$ac_ext <<EOF
5225 #line 5226 "configure"
5226 #include "confdefs.h"
5227 /* System header to define __stub macros and hopefully few prototypes,
5228 which can conflict with char $ac_func(); below. */
5229 #include <assert.h>
5230 /* Override any gcc2 internal prototype to avoid an error. */
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5233 char $ac_func();
5235 int main() {
5237 /* The GNU C library defines this for functions which it implements
5238 to always fail with ENOSYS. Some functions are actually named
5239 something starting with __ and the normal name is an alias. */
5240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5241 choke me
5242 #else
5243 $ac_func();
5244 #endif
5246 ; return 0; }
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249 rm -rf conftest*
5250 eval "ac_cv_func_$ac_func=yes"
5251 else
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 rm -rf conftest*
5255 eval "ac_cv_func_$ac_func=no"
5257 rm -f conftest*
5260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5263 cat >> confdefs.h <<EOF
5264 #define $ac_tr_func 1
5267 else
5268 echo "$ac_t""no" 1>&6
5270 done
5272 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5275 echo "configure:5276: checking for $ac_func" >&5
5276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5278 else
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 /* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func(); below. */
5284 #include <assert.h>
5285 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5288 char $ac_func();
5290 int main() {
5292 /* The GNU C library defines this for functions which it implements
5293 to always fail with ENOSYS. Some functions are actually named
5294 something starting with __ and the normal name is an alias. */
5295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5296 choke me
5297 #else
5298 $ac_func();
5299 #endif
5301 ; return 0; }
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 rm -rf conftest*
5305 eval "ac_cv_func_$ac_func=yes"
5306 else
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5309 rm -rf conftest*
5310 eval "ac_cv_func_$ac_func=no"
5312 rm -f conftest*
5315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5316 echo "$ac_t""yes" 1>&6
5317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5318 cat >> confdefs.h <<EOF
5319 #define $ac_tr_func 1
5322 else
5323 echo "$ac_t""no" 1>&6
5325 done
5327 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5330 echo "configure:5331: checking for $ac_func" >&5
5331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5333 else
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5337 /* System header to define __stub macros and hopefully few prototypes,
5338 which can conflict with char $ac_func(); below. */
5339 #include <assert.h>
5340 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */
5343 char $ac_func();
5345 int main() {
5347 /* The GNU C library defines this for functions which it implements
5348 to always fail with ENOSYS. Some functions are actually named
5349 something starting with __ and the normal name is an alias. */
5350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5351 choke me
5352 #else
5353 $ac_func();
5354 #endif
5356 ; return 0; }
5358 if { (eval echo configure:5359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359 rm -rf conftest*
5360 eval "ac_cv_func_$ac_func=yes"
5361 else
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5364 rm -rf conftest*
5365 eval "ac_cv_func_$ac_func=no"
5367 rm -f conftest*
5370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5371 echo "$ac_t""yes" 1>&6
5372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5373 cat >> confdefs.h <<EOF
5374 #define $ac_tr_func 1
5377 else
5378 echo "$ac_t""no" 1>&6
5380 done
5382 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5385 echo "configure:5386: checking for $ac_func" >&5
5386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5388 else
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 /* System header to define __stub macros and hopefully few prototypes,
5393 which can conflict with char $ac_func(); below. */
5394 #include <assert.h>
5395 /* Override any gcc2 internal prototype to avoid an error. */
5396 /* We use char because int might match the return type of a gcc2
5397 builtin and then its argument prototype would still apply. */
5398 char $ac_func();
5400 int main() {
5402 /* The GNU C library defines this for functions which it implements
5403 to always fail with ENOSYS. Some functions are actually named
5404 something starting with __ and the normal name is an alias. */
5405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5406 choke me
5407 #else
5408 $ac_func();
5409 #endif
5411 ; return 0; }
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5414 rm -rf conftest*
5415 eval "ac_cv_func_$ac_func=yes"
5416 else
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 rm -rf conftest*
5420 eval "ac_cv_func_$ac_func=no"
5422 rm -f conftest*
5425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5426 echo "$ac_t""yes" 1>&6
5427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5428 cat >> confdefs.h <<EOF
5429 #define $ac_tr_func 1
5432 else
5433 echo "$ac_t""no" 1>&6
5435 done
5437 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5440 echo "configure:5441: checking for $ac_func" >&5
5441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6
5443 else
5444 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5447 /* System header to define __stub macros and hopefully few prototypes,
5448 which can conflict with char $ac_func(); below. */
5449 #include <assert.h>
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 /* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5453 char $ac_func();
5455 int main() {
5457 /* The GNU C library defines this for functions which it implements
5458 to always fail with ENOSYS. Some functions are actually named
5459 something starting with __ and the normal name is an alias. */
5460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5461 choke me
5462 #else
5463 $ac_func();
5464 #endif
5466 ; return 0; }
5468 if { (eval echo configure:5469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5469 rm -rf conftest*
5470 eval "ac_cv_func_$ac_func=yes"
5471 else
5472 echo "configure: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5474 rm -rf conftest*
5475 eval "ac_cv_func_$ac_func=no"
5477 rm -f conftest*
5480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5481 echo "$ac_t""yes" 1>&6
5482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5483 cat >> confdefs.h <<EOF
5484 #define $ac_tr_func 1
5487 else
5488 echo "$ac_t""no" 1>&6
5490 done
5492 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5495 echo "configure:5496: checking for $ac_func" >&5
5496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5498 else
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 /* System header to define __stub macros and hopefully few prototypes,
5503 which can conflict with char $ac_func(); below. */
5504 #include <assert.h>
5505 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5508 char $ac_func();
5510 int main() {
5512 /* The GNU C library defines this for functions which it implements
5513 to always fail with ENOSYS. Some functions are actually named
5514 something starting with __ and the normal name is an alias. */
5515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5516 choke me
5517 #else
5518 $ac_func();
5519 #endif
5521 ; return 0; }
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5524 rm -rf conftest*
5525 eval "ac_cv_func_$ac_func=yes"
5526 else
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 rm -rf conftest*
5530 eval "ac_cv_func_$ac_func=no"
5532 rm -f conftest*
5535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5538 cat >> confdefs.h <<EOF
5539 #define $ac_tr_func 1
5542 else
5543 echo "$ac_t""no" 1>&6
5545 done
5547 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5550 echo "configure:5551: checking for $ac_func" >&5
5551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5553 else
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 /* System header to define __stub macros and hopefully few prototypes,
5558 which can conflict with char $ac_func(); below. */
5559 #include <assert.h>
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5563 char $ac_func();
5565 int main() {
5567 /* The GNU C library defines this for functions which it implements
5568 to always fail with ENOSYS. Some functions are actually named
5569 something starting with __ and the normal name is an alias. */
5570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5571 choke me
5572 #else
5573 $ac_func();
5574 #endif
5576 ; return 0; }
5578 if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 rm -rf conftest*
5580 eval "ac_cv_func_$ac_func=yes"
5581 else
5582 echo "configure: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5584 rm -rf conftest*
5585 eval "ac_cv_func_$ac_func=no"
5587 rm -f conftest*
5590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5593 cat >> confdefs.h <<EOF
5594 #define $ac_tr_func 1
5597 else
5598 echo "$ac_t""no" 1>&6
5600 done
5602 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5605 echo "configure:5606: checking for $ac_func" >&5
5606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5608 else
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 /* System header to define __stub macros and hopefully few prototypes,
5613 which can conflict with char $ac_func(); below. */
5614 #include <assert.h>
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5618 char $ac_func();
5620 int main() {
5622 /* The GNU C library defines this for functions which it implements
5623 to always fail with ENOSYS. Some functions are actually named
5624 something starting with __ and the normal name is an alias. */
5625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5626 choke me
5627 #else
5628 $ac_func();
5629 #endif
5631 ; return 0; }
5633 if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5634 rm -rf conftest*
5635 eval "ac_cv_func_$ac_func=yes"
5636 else
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 rm -rf conftest*
5640 eval "ac_cv_func_$ac_func=no"
5642 rm -f conftest*
5645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5648 cat >> confdefs.h <<EOF
5649 #define $ac_tr_func 1
5652 else
5653 echo "$ac_t""no" 1>&6
5655 done
5657 for ac_func in syslog vsyslog
5659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5660 echo "configure:5661: checking for $ac_func" >&5
5661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5663 else
5664 cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 /* System header to define __stub macros and hopefully few prototypes,
5668 which can conflict with char $ac_func(); below. */
5669 #include <assert.h>
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5673 char $ac_func();
5675 int main() {
5677 /* The GNU C library defines this for functions which it implements
5678 to always fail with ENOSYS. Some functions are actually named
5679 something starting with __ and the normal name is an alias. */
5680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5681 choke me
5682 #else
5683 $ac_func();
5684 #endif
5686 ; return 0; }
5688 if { (eval echo configure:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5689 rm -rf conftest*
5690 eval "ac_cv_func_$ac_func=yes"
5691 else
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 rm -rf conftest*
5695 eval "ac_cv_func_$ac_func=no"
5697 rm -f conftest*
5700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5701 echo "$ac_t""yes" 1>&6
5702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5703 cat >> confdefs.h <<EOF
5704 #define $ac_tr_func 1
5707 else
5708 echo "$ac_t""no" 1>&6
5710 done
5712 # setbuffer is needed for smbtorture
5713 for ac_func in setbuffer
5715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5716 echo "configure:5717: checking for $ac_func" >&5
5717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5719 else
5720 cat > conftest.$ac_ext <<EOF
5721 #line 5722 "configure"
5722 #include "confdefs.h"
5723 /* System header to define __stub macros and hopefully few prototypes,
5724 which can conflict with char $ac_func(); below. */
5725 #include <assert.h>
5726 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5729 char $ac_func();
5731 int main() {
5733 /* The GNU C library defines this for functions which it implements
5734 to always fail with ENOSYS. Some functions are actually named
5735 something starting with __ and the normal name is an alias. */
5736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5737 choke me
5738 #else
5739 $ac_func();
5740 #endif
5742 ; return 0; }
5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5745 rm -rf conftest*
5746 eval "ac_cv_func_$ac_func=yes"
5747 else
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 rm -rf conftest*
5751 eval "ac_cv_func_$ac_func=no"
5753 rm -f conftest*
5756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5757 echo "$ac_t""yes" 1>&6
5758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5759 cat >> confdefs.h <<EOF
5760 #define $ac_tr_func 1
5763 else
5764 echo "$ac_t""no" 1>&6
5766 done
5769 # syscall() is needed for smbwrapper.
5770 for ac_func in syscall
5772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5773 echo "configure:5774: checking for $ac_func" >&5
5774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5776 else
5777 cat > conftest.$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 /* System header to define __stub macros and hopefully few prototypes,
5781 which can conflict with char $ac_func(); below. */
5782 #include <assert.h>
5783 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5786 char $ac_func();
5788 int main() {
5790 /* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5794 choke me
5795 #else
5796 $ac_func();
5797 #endif
5799 ; return 0; }
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 rm -rf conftest*
5803 eval "ac_cv_func_$ac_func=yes"
5804 else
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5807 rm -rf conftest*
5808 eval "ac_cv_func_$ac_func=no"
5810 rm -f conftest*
5813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5814 echo "$ac_t""yes" 1>&6
5815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5816 cat >> confdefs.h <<EOF
5817 #define $ac_tr_func 1
5820 else
5821 echo "$ac_t""no" 1>&6
5823 done
5826 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5829 echo "configure:5830: checking for $ac_func" >&5
5830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5832 else
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 /* System header to define __stub macros and hopefully few prototypes,
5837 which can conflict with char $ac_func(); below. */
5838 #include <assert.h>
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5842 char $ac_func();
5844 int main() {
5846 /* The GNU C library defines this for functions which it implements
5847 to always fail with ENOSYS. Some functions are actually named
5848 something starting with __ and the normal name is an alias. */
5849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5850 choke me
5851 #else
5852 $ac_func();
5853 #endif
5855 ; return 0; }
5857 if { (eval echo configure:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5858 rm -rf conftest*
5859 eval "ac_cv_func_$ac_func=yes"
5860 else
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5863 rm -rf conftest*
5864 eval "ac_cv_func_$ac_func=no"
5866 rm -f conftest*
5869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5870 echo "$ac_t""yes" 1>&6
5871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5872 cat >> confdefs.h <<EOF
5873 #define $ac_tr_func 1
5876 else
5877 echo "$ac_t""no" 1>&6
5879 done
5881 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5884 echo "configure:5885: checking for $ac_func" >&5
5885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5887 else
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 /* System header to define __stub macros and hopefully few prototypes,
5892 which can conflict with char $ac_func(); below. */
5893 #include <assert.h>
5894 /* Override any gcc2 internal prototype to avoid an error. */
5895 /* We use char because int might match the return type of a gcc2
5896 builtin and then its argument prototype would still apply. */
5897 char $ac_func();
5899 int main() {
5901 /* The GNU C library defines this for functions which it implements
5902 to always fail with ENOSYS. Some functions are actually named
5903 something starting with __ and the normal name is an alias. */
5904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5905 choke me
5906 #else
5907 $ac_func();
5908 #endif
5910 ; return 0; }
5912 if { (eval echo configure:5913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5913 rm -rf conftest*
5914 eval "ac_cv_func_$ac_func=yes"
5915 else
5916 echo "configure: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5918 rm -rf conftest*
5919 eval "ac_cv_func_$ac_func=no"
5921 rm -f conftest*
5924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5925 echo "$ac_t""yes" 1>&6
5926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5927 cat >> confdefs.h <<EOF
5928 #define $ac_tr_func 1
5931 else
5932 echo "$ac_t""no" 1>&6
5934 done
5936 for ac_func in __getcwd _getcwd
5938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5939 echo "configure:5940: checking for $ac_func" >&5
5940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5942 else
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 /* System header to define __stub macros and hopefully few prototypes,
5947 which can conflict with char $ac_func(); below. */
5948 #include <assert.h>
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5952 char $ac_func();
5954 int main() {
5956 /* The GNU C library defines this for functions which it implements
5957 to always fail with ENOSYS. Some functions are actually named
5958 something starting with __ and the normal name is an alias. */
5959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5960 choke me
5961 #else
5962 $ac_func();
5963 #endif
5965 ; return 0; }
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5968 rm -rf conftest*
5969 eval "ac_cv_func_$ac_func=yes"
5970 else
5971 echo "configure: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 rm -rf conftest*
5974 eval "ac_cv_func_$ac_func=no"
5976 rm -f conftest*
5979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5982 cat >> confdefs.h <<EOF
5983 #define $ac_tr_func 1
5986 else
5987 echo "$ac_t""no" 1>&6
5989 done
5991 for ac_func in __xstat __fxstat __lxstat
5993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5994 echo "configure:5995: checking for $ac_func" >&5
5995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5997 else
5998 cat > conftest.$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 /* System header to define __stub macros and hopefully few prototypes,
6002 which can conflict with char $ac_func(); below. */
6003 #include <assert.h>
6004 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6007 char $ac_func();
6009 int main() {
6011 /* The GNU C library defines this for functions which it implements
6012 to always fail with ENOSYS. Some functions are actually named
6013 something starting with __ and the normal name is an alias. */
6014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6015 choke me
6016 #else
6017 $ac_func();
6018 #endif
6020 ; return 0; }
6022 if { (eval echo configure:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6023 rm -rf conftest*
6024 eval "ac_cv_func_$ac_func=yes"
6025 else
6026 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 rm -rf conftest*
6029 eval "ac_cv_func_$ac_func=no"
6031 rm -f conftest*
6034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6035 echo "$ac_t""yes" 1>&6
6036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6037 cat >> confdefs.h <<EOF
6038 #define $ac_tr_func 1
6041 else
6042 echo "$ac_t""no" 1>&6
6044 done
6046 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6049 echo "configure:6050: checking for $ac_func" >&5
6050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6052 else
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6056 /* System header to define __stub macros and hopefully few prototypes,
6057 which can conflict with char $ac_func(); below. */
6058 #include <assert.h>
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6062 char $ac_func();
6064 int main() {
6066 /* The GNU C library defines this for functions which it implements
6067 to always fail with ENOSYS. Some functions are actually named
6068 something starting with __ and the normal name is an alias. */
6069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6070 choke me
6071 #else
6072 $ac_func();
6073 #endif
6075 ; return 0; }
6077 if { (eval echo configure:6078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6078 rm -rf conftest*
6079 eval "ac_cv_func_$ac_func=yes"
6080 else
6081 echo "configure: failed program was:" >&5
6082 cat conftest.$ac_ext >&5
6083 rm -rf conftest*
6084 eval "ac_cv_func_$ac_func=no"
6086 rm -f conftest*
6089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6092 cat >> confdefs.h <<EOF
6093 #define $ac_tr_func 1
6096 else
6097 echo "$ac_t""no" 1>&6
6099 done
6101 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6104 echo "configure:6105: checking for $ac_func" >&5
6105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6107 else
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 /* System header to define __stub macros and hopefully few prototypes,
6112 which can conflict with char $ac_func(); below. */
6113 #include <assert.h>
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6117 char $ac_func();
6119 int main() {
6121 /* The GNU C library defines this for functions which it implements
6122 to always fail with ENOSYS. Some functions are actually named
6123 something starting with __ and the normal name is an alias. */
6124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6125 choke me
6126 #else
6127 $ac_func();
6128 #endif
6130 ; return 0; }
6132 if { (eval echo configure:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6133 rm -rf conftest*
6134 eval "ac_cv_func_$ac_func=yes"
6135 else
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 rm -rf conftest*
6139 eval "ac_cv_func_$ac_func=no"
6141 rm -f conftest*
6144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6145 echo "$ac_t""yes" 1>&6
6146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6147 cat >> confdefs.h <<EOF
6148 #define $ac_tr_func 1
6151 else
6152 echo "$ac_t""no" 1>&6
6154 done
6156 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6159 echo "configure:6160: checking for $ac_func" >&5
6160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6162 else
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 /* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char $ac_func(); below. */
6168 #include <assert.h>
6169 /* Override any gcc2 internal prototype to avoid an error. */
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6172 char $ac_func();
6174 int main() {
6176 /* The GNU C library defines this for functions which it implements
6177 to always fail with ENOSYS. Some functions are actually named
6178 something starting with __ and the normal name is an alias. */
6179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6180 choke me
6181 #else
6182 $ac_func();
6183 #endif
6185 ; return 0; }
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 rm -rf conftest*
6189 eval "ac_cv_func_$ac_func=yes"
6190 else
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6193 rm -rf conftest*
6194 eval "ac_cv_func_$ac_func=no"
6196 rm -f conftest*
6199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6202 cat >> confdefs.h <<EOF
6203 #define $ac_tr_func 1
6206 else
6207 echo "$ac_t""no" 1>&6
6209 done
6211 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6214 echo "configure:6215: checking for $ac_func" >&5
6215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6217 else
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 /* System header to define __stub macros and hopefully few prototypes,
6222 which can conflict with char $ac_func(); below. */
6223 #include <assert.h>
6224 /* Override any gcc2 internal prototype to avoid an error. */
6225 /* We use char because int might match the return type of a gcc2
6226 builtin and then its argument prototype would still apply. */
6227 char $ac_func();
6229 int main() {
6231 /* The GNU C library defines this for functions which it implements
6232 to always fail with ENOSYS. Some functions are actually named
6233 something starting with __ and the normal name is an alias. */
6234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6235 choke me
6236 #else
6237 $ac_func();
6238 #endif
6240 ; return 0; }
6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6243 rm -rf conftest*
6244 eval "ac_cv_func_$ac_func=yes"
6245 else
6246 echo "configure: failed program was:" >&5
6247 cat conftest.$ac_ext >&5
6248 rm -rf conftest*
6249 eval "ac_cv_func_$ac_func=no"
6251 rm -f conftest*
6254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6257 cat >> confdefs.h <<EOF
6258 #define $ac_tr_func 1
6261 else
6262 echo "$ac_t""no" 1>&6
6264 done
6266 for ac_func in _write __write _fork __fork
6268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_func" >&5
6270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6272 else
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 /* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char $ac_func(); below. */
6278 #include <assert.h>
6279 /* Override any gcc2 internal prototype to avoid an error. */
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6282 char $ac_func();
6284 int main() {
6286 /* The GNU C library defines this for functions which it implements
6287 to always fail with ENOSYS. Some functions are actually named
6288 something starting with __ and the normal name is an alias. */
6289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6290 choke me
6291 #else
6292 $ac_func();
6293 #endif
6295 ; return 0; }
6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6298 rm -rf conftest*
6299 eval "ac_cv_func_$ac_func=yes"
6300 else
6301 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6303 rm -rf conftest*
6304 eval "ac_cv_func_$ac_func=no"
6306 rm -f conftest*
6309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6310 echo "$ac_t""yes" 1>&6
6311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6312 cat >> confdefs.h <<EOF
6313 #define $ac_tr_func 1
6316 else
6317 echo "$ac_t""no" 1>&6
6319 done
6321 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6324 echo "configure:6325: checking for $ac_func" >&5
6325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6327 else
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func(); below. */
6333 #include <assert.h>
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6337 char $ac_func();
6339 int main() {
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6345 choke me
6346 #else
6347 $ac_func();
6348 #endif
6350 ; return 0; }
6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6353 rm -rf conftest*
6354 eval "ac_cv_func_$ac_func=yes"
6355 else
6356 echo "configure: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6358 rm -rf conftest*
6359 eval "ac_cv_func_$ac_func=no"
6361 rm -f conftest*
6364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6367 cat >> confdefs.h <<EOF
6368 #define $ac_tr_func 1
6371 else
6372 echo "$ac_t""no" 1>&6
6374 done
6376 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6379 echo "configure:6380: checking for $ac_func" >&5
6380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6382 else
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 /* System header to define __stub macros and hopefully few prototypes,
6387 which can conflict with char $ac_func(); below. */
6388 #include <assert.h>
6389 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6392 char $ac_func();
6394 int main() {
6396 /* The GNU C library defines this for functions which it implements
6397 to always fail with ENOSYS. Some functions are actually named
6398 something starting with __ and the normal name is an alias. */
6399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6400 choke me
6401 #else
6402 $ac_func();
6403 #endif
6405 ; return 0; }
6407 if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6408 rm -rf conftest*
6409 eval "ac_cv_func_$ac_func=yes"
6410 else
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6413 rm -rf conftest*
6414 eval "ac_cv_func_$ac_func=no"
6416 rm -f conftest*
6419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6420 echo "$ac_t""yes" 1>&6
6421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6422 cat >> confdefs.h <<EOF
6423 #define $ac_tr_func 1
6426 else
6427 echo "$ac_t""no" 1>&6
6429 done
6431 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6434 echo "configure:6435: checking for $ac_func" >&5
6435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6437 else
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 /* System header to define __stub macros and hopefully few prototypes,
6442 which can conflict with char $ac_func(); below. */
6443 #include <assert.h>
6444 /* Override any gcc2 internal prototype to avoid an error. */
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6447 char $ac_func();
6449 int main() {
6451 /* The GNU C library defines this for functions which it implements
6452 to always fail with ENOSYS. Some functions are actually named
6453 something starting with __ and the normal name is an alias. */
6454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6455 choke me
6456 #else
6457 $ac_func();
6458 #endif
6460 ; return 0; }
6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6463 rm -rf conftest*
6464 eval "ac_cv_func_$ac_func=yes"
6465 else
6466 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6468 rm -rf conftest*
6469 eval "ac_cv_func_$ac_func=no"
6471 rm -f conftest*
6474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6477 cat >> confdefs.h <<EOF
6478 #define $ac_tr_func 1
6481 else
6482 echo "$ac_t""no" 1>&6
6484 done
6486 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6489 echo "configure:6490: checking for $ac_func" >&5
6490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6492 else
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* System header to define __stub macros and hopefully few prototypes,
6497 which can conflict with char $ac_func(); below. */
6498 #include <assert.h>
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6502 char $ac_func();
6504 int main() {
6506 /* The GNU C library defines this for functions which it implements
6507 to always fail with ENOSYS. Some functions are actually named
6508 something starting with __ and the normal name is an alias. */
6509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6510 choke me
6511 #else
6512 $ac_func();
6513 #endif
6515 ; return 0; }
6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6518 rm -rf conftest*
6519 eval "ac_cv_func_$ac_func=yes"
6520 else
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6523 rm -rf conftest*
6524 eval "ac_cv_func_$ac_func=no"
6526 rm -f conftest*
6529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6530 echo "$ac_t""yes" 1>&6
6531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6532 cat >> confdefs.h <<EOF
6533 #define $ac_tr_func 1
6536 else
6537 echo "$ac_t""no" 1>&6
6539 done
6541 for ac_func in open64 _open64 __open64 creat64
6543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6544 echo "configure:6545: checking for $ac_func" >&5
6545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6547 else
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 /* System header to define __stub macros and hopefully few prototypes,
6552 which can conflict with char $ac_func(); below. */
6553 #include <assert.h>
6554 /* Override any gcc2 internal prototype to avoid an error. */
6555 /* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */
6557 char $ac_func();
6559 int main() {
6561 /* The GNU C library defines this for functions which it implements
6562 to always fail with ENOSYS. Some functions are actually named
6563 something starting with __ and the normal name is an alias. */
6564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6565 choke me
6566 #else
6567 $ac_func();
6568 #endif
6570 ; return 0; }
6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6573 rm -rf conftest*
6574 eval "ac_cv_func_$ac_func=yes"
6575 else
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6578 rm -rf conftest*
6579 eval "ac_cv_func_$ac_func=no"
6581 rm -f conftest*
6584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6585 echo "$ac_t""yes" 1>&6
6586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6587 cat >> confdefs.h <<EOF
6588 #define $ac_tr_func 1
6591 else
6592 echo "$ac_t""no" 1>&6
6594 done
6598 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6601 if test x$ac_cv_func_stat64 = xno ; then
6602 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6603 echo "configure:6604: checking for stat64 in <sys/stat.h>" >&5
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6608 #if defined(HAVE_UNISTD_H)
6609 #include <unistd.h>
6610 #endif
6611 #include <sys/stat.h>
6613 int main() {
6614 struct stat64 st64; exit(stat64(".",&st64));
6615 ; return 0; }
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 rm -rf conftest*
6619 ac_cv_func_stat64=yes
6620 else
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 rm -f conftest*
6625 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6626 if test x$ac_cv_func_stat64 = xyes ; then
6627 cat >> confdefs.h <<\EOF
6628 #define HAVE_STAT64 1
6634 if test x$ac_cv_func_lstat64 = xno ; then
6635 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6636 echo "configure:6637: checking for lstat64 in <sys/stat.h>" >&5
6637 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6641 #if defined(HAVE_UNISTD_H)
6642 #include <unistd.h>
6643 #endif
6644 #include <sys/stat.h>
6646 int main() {
6647 struct stat64 st64; exit(lstat64(".",&st64));
6648 ; return 0; }
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6651 rm -rf conftest*
6652 ac_cv_func_lstat64=yes
6653 else
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 rm -f conftest*
6658 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6659 if test x$ac_cv_func_lstat64 = xyes ; then
6660 cat >> confdefs.h <<\EOF
6661 #define HAVE_LSTAT64 1
6667 if test x$ac_cv_func_fstat64 = xno ; then
6668 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6669 echo "configure:6670: checking for fstat64 in <sys/stat.h>" >&5
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6674 #if defined(HAVE_UNISTD_H)
6675 #include <unistd.h>
6676 #endif
6677 #include <sys/stat.h>
6679 int main() {
6680 struct stat64 st64; exit(fstat64(0,&st64));
6681 ; return 0; }
6683 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6684 rm -rf conftest*
6685 ac_cv_func_fstat64=yes
6686 else
6687 echo "configure: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6690 rm -f conftest*
6691 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6692 if test x$ac_cv_func_fstat64 = xyes ; then
6693 cat >> confdefs.h <<\EOF
6694 #define HAVE_FSTAT64 1
6700 #####################################
6701 # we might need the resolv library on some systems
6702 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6703 echo "configure:6704: checking for dn_expand in -lresolv" >&5
6704 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6707 else
6708 ac_save_LIBS="$LIBS"
6709 LIBS="-lresolv $LIBS"
6710 cat > conftest.$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6713 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6716 char dn_expand();
6718 int main() {
6719 dn_expand()
6720 ; return 0; }
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723 rm -rf conftest*
6724 eval "ac_cv_lib_$ac_lib_var=yes"
6725 else
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6728 rm -rf conftest*
6729 eval "ac_cv_lib_$ac_lib_var=no"
6731 rm -f conftest*
6732 LIBS="$ac_save_LIBS"
6735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6738 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6739 cat >> confdefs.h <<EOF
6740 #define $ac_tr_lib 1
6743 LIBS="-lresolv $LIBS"
6745 else
6746 echo "$ac_t""no" 1>&6
6751 # Check for the functions putprpwnam, set_auth_parameters,
6752 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6753 # Needed for OSF1 and HPUX.
6756 case "$LIBS" in
6757 *-lsecurity*) for ac_func in putprpwnam
6759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_func" >&5
6761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6763 else
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 /* System header to define __stub macros and hopefully few prototypes,
6768 which can conflict with char $ac_func(); below. */
6769 #include <assert.h>
6770 /* Override any gcc2 internal prototype to avoid an error. */
6771 /* We use char because int might match the return type of a gcc2
6772 builtin and then its argument prototype would still apply. */
6773 char $ac_func();
6775 int main() {
6777 /* The GNU C library defines this for functions which it implements
6778 to always fail with ENOSYS. Some functions are actually named
6779 something starting with __ and the normal name is an alias. */
6780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6781 choke me
6782 #else
6783 $ac_func();
6784 #endif
6786 ; return 0; }
6788 if { (eval echo configure:6789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6789 rm -rf conftest*
6790 eval "ac_cv_func_$ac_func=yes"
6791 else
6792 echo "configure: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6794 rm -rf conftest*
6795 eval "ac_cv_func_$ac_func=no"
6797 rm -f conftest*
6800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6801 echo "$ac_t""yes" 1>&6
6802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6803 cat >> confdefs.h <<EOF
6804 #define $ac_tr_func 1
6807 else
6808 echo "$ac_t""no" 1>&6
6810 done
6812 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6813 echo "configure:6814: checking for putprpwnam in -lsecurity" >&5
6814 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6817 else
6818 ac_save_LIBS="$LIBS"
6819 LIBS="-lsecurity $LIBS"
6820 cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6823 /* Override any gcc2 internal prototype to avoid an error. */
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6826 char putprpwnam();
6828 int main() {
6829 putprpwnam()
6830 ; return 0; }
6832 if { (eval echo configure:6833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6833 rm -rf conftest*
6834 eval "ac_cv_lib_$ac_lib_var=yes"
6835 else
6836 echo "configure: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6838 rm -rf conftest*
6839 eval "ac_cv_lib_$ac_lib_var=no"
6841 rm -f conftest*
6842 LIBS="$ac_save_LIBS"
6845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6847 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6848 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6849 cat >> confdefs.h <<EOF
6850 #define $ac_tr_lib 1
6853 LIBS="-lsecurity $LIBS"
6855 else
6856 echo "$ac_t""no" 1>&6
6859 for ac_func in putprpwnam
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_func" >&5
6863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6865 else
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* System header to define __stub macros and hopefully few prototypes,
6870 which can conflict with char $ac_func(); below. */
6871 #include <assert.h>
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6875 char $ac_func();
6877 int main() {
6879 /* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6883 choke me
6884 #else
6885 $ac_func();
6886 #endif
6888 ; return 0; }
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6891 rm -rf conftest*
6892 eval "ac_cv_func_$ac_func=yes"
6893 else
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6896 rm -rf conftest*
6897 eval "ac_cv_func_$ac_func=no"
6899 rm -f conftest*
6902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6905 cat >> confdefs.h <<EOF
6906 #define $ac_tr_func 1
6909 else
6910 echo "$ac_t""no" 1>&6
6912 done
6915 esac
6917 case "$LIBS" in
6918 *-lsec*) for ac_func in putprpwnam
6920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6921 echo "configure:6922: checking for $ac_func" >&5
6922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6923 echo $ac_n "(cached) $ac_c" 1>&6
6924 else
6925 cat > conftest.$ac_ext <<EOF
6926 #line 6927 "configure"
6927 #include "confdefs.h"
6928 /* System header to define __stub macros and hopefully few prototypes,
6929 which can conflict with char $ac_func(); below. */
6930 #include <assert.h>
6931 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6934 char $ac_func();
6936 int main() {
6938 /* The GNU C library defines this for functions which it implements
6939 to always fail with ENOSYS. Some functions are actually named
6940 something starting with __ and the normal name is an alias. */
6941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6942 choke me
6943 #else
6944 $ac_func();
6945 #endif
6947 ; return 0; }
6949 if { (eval echo configure:6950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6950 rm -rf conftest*
6951 eval "ac_cv_func_$ac_func=yes"
6952 else
6953 echo "configure: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6955 rm -rf conftest*
6956 eval "ac_cv_func_$ac_func=no"
6958 rm -f conftest*
6961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6964 cat >> confdefs.h <<EOF
6965 #define $ac_tr_func 1
6968 else
6969 echo "$ac_t""no" 1>&6
6971 done
6973 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6974 echo "configure:6975: checking for putprpwnam in -lsec" >&5
6975 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6978 else
6979 ac_save_LIBS="$LIBS"
6980 LIBS="-lsec $LIBS"
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6984 /* Override any gcc2 internal prototype to avoid an error. */
6985 /* We use char because int might match the return type of a gcc2
6986 builtin and then its argument prototype would still apply. */
6987 char putprpwnam();
6989 int main() {
6990 putprpwnam()
6991 ; return 0; }
6993 if { (eval echo configure:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6994 rm -rf conftest*
6995 eval "ac_cv_lib_$ac_lib_var=yes"
6996 else
6997 echo "configure: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
6999 rm -rf conftest*
7000 eval "ac_cv_lib_$ac_lib_var=no"
7002 rm -f conftest*
7003 LIBS="$ac_save_LIBS"
7006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7008 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7009 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7010 cat >> confdefs.h <<EOF
7011 #define $ac_tr_lib 1
7014 LIBS="-lsec $LIBS"
7016 else
7017 echo "$ac_t""no" 1>&6
7020 for ac_func in putprpwnam
7022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7023 echo "configure:7024: checking for $ac_func" >&5
7024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7026 else
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* System header to define __stub macros and hopefully few prototypes,
7031 which can conflict with char $ac_func(); below. */
7032 #include <assert.h>
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char $ac_func();
7038 int main() {
7040 /* The GNU C library defines this for functions which it implements
7041 to always fail with ENOSYS. Some functions are actually named
7042 something starting with __ and the normal name is an alias. */
7043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7044 choke me
7045 #else
7046 $ac_func();
7047 #endif
7049 ; return 0; }
7051 if { (eval echo configure:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 rm -rf conftest*
7053 eval "ac_cv_func_$ac_func=yes"
7054 else
7055 echo "configure: failed program was:" >&5
7056 cat conftest.$ac_ext >&5
7057 rm -rf conftest*
7058 eval "ac_cv_func_$ac_func=no"
7060 rm -f conftest*
7063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7064 echo "$ac_t""yes" 1>&6
7065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7066 cat >> confdefs.h <<EOF
7067 #define $ac_tr_func 1
7070 else
7071 echo "$ac_t""no" 1>&6
7073 done
7076 esac
7079 case "$LIBS" in
7080 *-lsecurity*) for ac_func in set_auth_parameters
7082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7083 echo "configure:7084: checking for $ac_func" >&5
7084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7086 else
7087 cat > conftest.$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 /* System header to define __stub macros and hopefully few prototypes,
7091 which can conflict with char $ac_func(); below. */
7092 #include <assert.h>
7093 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */
7096 char $ac_func();
7098 int main() {
7100 /* The GNU C library defines this for functions which it implements
7101 to always fail with ENOSYS. Some functions are actually named
7102 something starting with __ and the normal name is an alias. */
7103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7104 choke me
7105 #else
7106 $ac_func();
7107 #endif
7109 ; return 0; }
7111 if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7112 rm -rf conftest*
7113 eval "ac_cv_func_$ac_func=yes"
7114 else
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7117 rm -rf conftest*
7118 eval "ac_cv_func_$ac_func=no"
7120 rm -f conftest*
7123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7124 echo "$ac_t""yes" 1>&6
7125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7126 cat >> confdefs.h <<EOF
7127 #define $ac_tr_func 1
7130 else
7131 echo "$ac_t""no" 1>&6
7133 done
7135 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7136 echo "configure:7137: checking for set_auth_parameters in -lsecurity" >&5
7137 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7140 else
7141 ac_save_LIBS="$LIBS"
7142 LIBS="-lsecurity $LIBS"
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 /* Override any gcc2 internal prototype to avoid an error. */
7147 /* We use char because int might match the return type of a gcc2
7148 builtin and then its argument prototype would still apply. */
7149 char set_auth_parameters();
7151 int main() {
7152 set_auth_parameters()
7153 ; return 0; }
7155 if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7156 rm -rf conftest*
7157 eval "ac_cv_lib_$ac_lib_var=yes"
7158 else
7159 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 rm -rf conftest*
7162 eval "ac_cv_lib_$ac_lib_var=no"
7164 rm -f conftest*
7165 LIBS="$ac_save_LIBS"
7168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7170 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7172 cat >> confdefs.h <<EOF
7173 #define $ac_tr_lib 1
7176 LIBS="-lsecurity $LIBS"
7178 else
7179 echo "$ac_t""no" 1>&6
7182 for ac_func in set_auth_parameters
7184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7185 echo "configure:7186: checking for $ac_func" >&5
7186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7188 else
7189 cat > conftest.$ac_ext <<EOF
7190 #line 7191 "configure"
7191 #include "confdefs.h"
7192 /* System header to define __stub macros and hopefully few prototypes,
7193 which can conflict with char $ac_func(); below. */
7194 #include <assert.h>
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 /* We use char because int might match the return type of a gcc2
7197 builtin and then its argument prototype would still apply. */
7198 char $ac_func();
7200 int main() {
7202 /* The GNU C library defines this for functions which it implements
7203 to always fail with ENOSYS. Some functions are actually named
7204 something starting with __ and the normal name is an alias. */
7205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7206 choke me
7207 #else
7208 $ac_func();
7209 #endif
7211 ; return 0; }
7213 if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7214 rm -rf conftest*
7215 eval "ac_cv_func_$ac_func=yes"
7216 else
7217 echo "configure: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7219 rm -rf conftest*
7220 eval "ac_cv_func_$ac_func=no"
7222 rm -f conftest*
7225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7226 echo "$ac_t""yes" 1>&6
7227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7228 cat >> confdefs.h <<EOF
7229 #define $ac_tr_func 1
7232 else
7233 echo "$ac_t""no" 1>&6
7235 done
7238 esac
7240 case "$LIBS" in
7241 *-lsec*) for ac_func in set_auth_parameters
7243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7244 echo "configure:7245: checking for $ac_func" >&5
7245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7246 echo $ac_n "(cached) $ac_c" 1>&6
7247 else
7248 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 /* System header to define __stub macros and hopefully few prototypes,
7252 which can conflict with char $ac_func(); below. */
7253 #include <assert.h>
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7257 char $ac_func();
7259 int main() {
7261 /* The GNU C library defines this for functions which it implements
7262 to always fail with ENOSYS. Some functions are actually named
7263 something starting with __ and the normal name is an alias. */
7264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7265 choke me
7266 #else
7267 $ac_func();
7268 #endif
7270 ; return 0; }
7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7273 rm -rf conftest*
7274 eval "ac_cv_func_$ac_func=yes"
7275 else
7276 echo "configure: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7278 rm -rf conftest*
7279 eval "ac_cv_func_$ac_func=no"
7281 rm -f conftest*
7284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7287 cat >> confdefs.h <<EOF
7288 #define $ac_tr_func 1
7291 else
7292 echo "$ac_t""no" 1>&6
7294 done
7296 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7297 echo "configure:7298: checking for set_auth_parameters in -lsec" >&5
7298 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7301 else
7302 ac_save_LIBS="$LIBS"
7303 LIBS="-lsec $LIBS"
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7310 char set_auth_parameters();
7312 int main() {
7313 set_auth_parameters()
7314 ; return 0; }
7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7317 rm -rf conftest*
7318 eval "ac_cv_lib_$ac_lib_var=yes"
7319 else
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7322 rm -rf conftest*
7323 eval "ac_cv_lib_$ac_lib_var=no"
7325 rm -f conftest*
7326 LIBS="$ac_save_LIBS"
7329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7332 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7333 cat >> confdefs.h <<EOF
7334 #define $ac_tr_lib 1
7337 LIBS="-lsec $LIBS"
7339 else
7340 echo "$ac_t""no" 1>&6
7343 for ac_func in set_auth_parameters
7345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7346 echo "configure:7347: checking for $ac_func" >&5
7347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7349 else
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* System header to define __stub macros and hopefully few prototypes,
7354 which can conflict with char $ac_func(); below. */
7355 #include <assert.h>
7356 /* Override any gcc2 internal prototype to avoid an error. */
7357 /* We use char because int might match the return type of a gcc2
7358 builtin and then its argument prototype would still apply. */
7359 char $ac_func();
7361 int main() {
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7367 choke me
7368 #else
7369 $ac_func();
7370 #endif
7372 ; return 0; }
7374 if { (eval echo configure:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7375 rm -rf conftest*
7376 eval "ac_cv_func_$ac_func=yes"
7377 else
7378 echo "configure: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 rm -rf conftest*
7381 eval "ac_cv_func_$ac_func=no"
7383 rm -f conftest*
7386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7387 echo "$ac_t""yes" 1>&6
7388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7389 cat >> confdefs.h <<EOF
7390 #define $ac_tr_func 1
7393 else
7394 echo "$ac_t""no" 1>&6
7396 done
7399 esac
7402 # UnixWare 7.x has its getspnam in -lgen
7403 case "$LIBS" in
7404 *-lgen*) for ac_func in getspnam
7406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7407 echo "configure:7408: checking for $ac_func" >&5
7408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7410 else
7411 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7414 /* System header to define __stub macros and hopefully few prototypes,
7415 which can conflict with char $ac_func(); below. */
7416 #include <assert.h>
7417 /* Override any gcc2 internal prototype to avoid an error. */
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7420 char $ac_func();
7422 int main() {
7424 /* The GNU C library defines this for functions which it implements
7425 to always fail with ENOSYS. Some functions are actually named
7426 something starting with __ and the normal name is an alias. */
7427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7428 choke me
7429 #else
7430 $ac_func();
7431 #endif
7433 ; return 0; }
7435 if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7436 rm -rf conftest*
7437 eval "ac_cv_func_$ac_func=yes"
7438 else
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 rm -rf conftest*
7442 eval "ac_cv_func_$ac_func=no"
7444 rm -f conftest*
7447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7448 echo "$ac_t""yes" 1>&6
7449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7450 cat >> confdefs.h <<EOF
7451 #define $ac_tr_func 1
7454 else
7455 echo "$ac_t""no" 1>&6
7457 done
7459 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7460 echo "configure:7461: checking for getspnam in -lgen" >&5
7461 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7464 else
7465 ac_save_LIBS="$LIBS"
7466 LIBS="-lgen $LIBS"
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 /* Override any gcc2 internal prototype to avoid an error. */
7471 /* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */
7473 char getspnam();
7475 int main() {
7476 getspnam()
7477 ; return 0; }
7479 if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7480 rm -rf conftest*
7481 eval "ac_cv_lib_$ac_lib_var=yes"
7482 else
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 rm -rf conftest*
7486 eval "ac_cv_lib_$ac_lib_var=no"
7488 rm -f conftest*
7489 LIBS="$ac_save_LIBS"
7492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7493 echo "$ac_t""yes" 1>&6
7494 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7496 cat >> confdefs.h <<EOF
7497 #define $ac_tr_lib 1
7500 LIBS="-lgen $LIBS"
7502 else
7503 echo "$ac_t""no" 1>&6
7506 for ac_func in getspnam
7508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_func" >&5
7510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7512 else
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 /* System header to define __stub macros and hopefully few prototypes,
7517 which can conflict with char $ac_func(); below. */
7518 #include <assert.h>
7519 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7522 char $ac_func();
7524 int main() {
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7530 choke me
7531 #else
7532 $ac_func();
7533 #endif
7535 ; return 0; }
7537 if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7538 rm -rf conftest*
7539 eval "ac_cv_func_$ac_func=yes"
7540 else
7541 echo "configure: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7543 rm -rf conftest*
7544 eval "ac_cv_func_$ac_func=no"
7546 rm -f conftest*
7549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7552 cat >> confdefs.h <<EOF
7553 #define $ac_tr_func 1
7556 else
7557 echo "$ac_t""no" 1>&6
7559 done
7562 esac
7565 case "$LIBS" in
7566 *-lsecurity*) for ac_func in getspnam
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7572 else
7573 cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7578 #include <assert.h>
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7582 char $ac_func();
7584 int main() {
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7590 choke me
7591 #else
7592 $ac_func();
7593 #endif
7595 ; return 0; }
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 rm -rf conftest*
7599 eval "ac_cv_func_$ac_func=yes"
7600 else
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 rm -rf conftest*
7604 eval "ac_cv_func_$ac_func=no"
7606 rm -f conftest*
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h <<EOF
7613 #define $ac_tr_func 1
7616 else
7617 echo "$ac_t""no" 1>&6
7619 done
7621 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7622 echo "configure:7623: checking for getspnam in -lsecurity" >&5
7623 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7626 else
7627 ac_save_LIBS="$LIBS"
7628 LIBS="-lsecurity $LIBS"
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7635 char getspnam();
7637 int main() {
7638 getspnam()
7639 ; return 0; }
7641 if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7642 rm -rf conftest*
7643 eval "ac_cv_lib_$ac_lib_var=yes"
7644 else
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7647 rm -rf conftest*
7648 eval "ac_cv_lib_$ac_lib_var=no"
7650 rm -f conftest*
7651 LIBS="$ac_save_LIBS"
7654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7658 cat >> confdefs.h <<EOF
7659 #define $ac_tr_lib 1
7662 LIBS="-lsecurity $LIBS"
7664 else
7665 echo "$ac_t""no" 1>&6
7668 for ac_func in getspnam
7670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7671 echo "configure:7672: checking for $ac_func" >&5
7672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7674 else
7675 cat > conftest.$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func(); below. */
7680 #include <assert.h>
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char $ac_func();
7686 int main() {
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7692 choke me
7693 #else
7694 $ac_func();
7695 #endif
7697 ; return 0; }
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7700 rm -rf conftest*
7701 eval "ac_cv_func_$ac_func=yes"
7702 else
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 rm -rf conftest*
7706 eval "ac_cv_func_$ac_func=no"
7708 rm -f conftest*
7711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7714 cat >> confdefs.h <<EOF
7715 #define $ac_tr_func 1
7718 else
7719 echo "$ac_t""no" 1>&6
7721 done
7724 esac
7726 case "$LIBS" in
7727 *-lsec*) for ac_func in getspnam
7729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7730 echo "configure:7731: checking for $ac_func" >&5
7731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7733 else
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7737 /* System header to define __stub macros and hopefully few prototypes,
7738 which can conflict with char $ac_func(); below. */
7739 #include <assert.h>
7740 /* Override any gcc2 internal prototype to avoid an error. */
7741 /* We use char because int might match the return type of a gcc2
7742 builtin and then its argument prototype would still apply. */
7743 char $ac_func();
7745 int main() {
7747 /* The GNU C library defines this for functions which it implements
7748 to always fail with ENOSYS. Some functions are actually named
7749 something starting with __ and the normal name is an alias. */
7750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7751 choke me
7752 #else
7753 $ac_func();
7754 #endif
7756 ; return 0; }
7758 if { (eval echo configure:7759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7759 rm -rf conftest*
7760 eval "ac_cv_func_$ac_func=yes"
7761 else
7762 echo "configure: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7764 rm -rf conftest*
7765 eval "ac_cv_func_$ac_func=no"
7767 rm -f conftest*
7770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7771 echo "$ac_t""yes" 1>&6
7772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7773 cat >> confdefs.h <<EOF
7774 #define $ac_tr_func 1
7777 else
7778 echo "$ac_t""no" 1>&6
7780 done
7782 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7783 echo "configure:7784: checking for getspnam in -lsec" >&5
7784 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7786 echo $ac_n "(cached) $ac_c" 1>&6
7787 else
7788 ac_save_LIBS="$LIBS"
7789 LIBS="-lsec $LIBS"
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 /* Override any gcc2 internal prototype to avoid an error. */
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7796 char getspnam();
7798 int main() {
7799 getspnam()
7800 ; return 0; }
7802 if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7803 rm -rf conftest*
7804 eval "ac_cv_lib_$ac_lib_var=yes"
7805 else
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7808 rm -rf conftest*
7809 eval "ac_cv_lib_$ac_lib_var=no"
7811 rm -f conftest*
7812 LIBS="$ac_save_LIBS"
7815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7817 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7818 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7819 cat >> confdefs.h <<EOF
7820 #define $ac_tr_lib 1
7823 LIBS="-lsec $LIBS"
7825 else
7826 echo "$ac_t""no" 1>&6
7829 for ac_func in getspnam
7831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7832 echo "configure:7833: checking for $ac_func" >&5
7833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7835 else
7836 cat > conftest.$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char $ac_func(); below. */
7841 #include <assert.h>
7842 /* Override any gcc2 internal prototype to avoid an error. */
7843 /* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7845 char $ac_func();
7847 int main() {
7849 /* The GNU C library defines this for functions which it implements
7850 to always fail with ENOSYS. Some functions are actually named
7851 something starting with __ and the normal name is an alias. */
7852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7853 choke me
7854 #else
7855 $ac_func();
7856 #endif
7858 ; return 0; }
7860 if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7861 rm -rf conftest*
7862 eval "ac_cv_func_$ac_func=yes"
7863 else
7864 echo "configure: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7866 rm -rf conftest*
7867 eval "ac_cv_func_$ac_func=no"
7869 rm -f conftest*
7872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7875 cat >> confdefs.h <<EOF
7876 #define $ac_tr_func 1
7879 else
7880 echo "$ac_t""no" 1>&6
7882 done
7885 esac
7888 case "$LIBS" in
7889 *-lsecurity*) for ac_func in bigcrypt
7891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7892 echo "configure:7893: checking for $ac_func" >&5
7893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7895 else
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char $ac_func(); below. */
7901 #include <assert.h>
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7905 char $ac_func();
7907 int main() {
7909 /* The GNU C library defines this for functions which it implements
7910 to always fail with ENOSYS. Some functions are actually named
7911 something starting with __ and the normal name is an alias. */
7912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 choke me
7914 #else
7915 $ac_func();
7916 #endif
7918 ; return 0; }
7920 if { (eval echo configure:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7921 rm -rf conftest*
7922 eval "ac_cv_func_$ac_func=yes"
7923 else
7924 echo "configure: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 rm -rf conftest*
7927 eval "ac_cv_func_$ac_func=no"
7929 rm -f conftest*
7932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7933 echo "$ac_t""yes" 1>&6
7934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7935 cat >> confdefs.h <<EOF
7936 #define $ac_tr_func 1
7939 else
7940 echo "$ac_t""no" 1>&6
7942 done
7944 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7945 echo "configure:7946: checking for bigcrypt in -lsecurity" >&5
7946 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7949 else
7950 ac_save_LIBS="$LIBS"
7951 LIBS="-lsecurity $LIBS"
7952 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7958 char bigcrypt();
7960 int main() {
7961 bigcrypt()
7962 ; return 0; }
7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7965 rm -rf conftest*
7966 eval "ac_cv_lib_$ac_lib_var=yes"
7967 else
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7970 rm -rf conftest*
7971 eval "ac_cv_lib_$ac_lib_var=no"
7973 rm -f conftest*
7974 LIBS="$ac_save_LIBS"
7977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7981 cat >> confdefs.h <<EOF
7982 #define $ac_tr_lib 1
7985 LIBS="-lsecurity $LIBS"
7987 else
7988 echo "$ac_t""no" 1>&6
7991 for ac_func in bigcrypt
7993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7994 echo "configure:7995: checking for $ac_func" >&5
7995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7997 else
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 /* System header to define __stub macros and hopefully few prototypes,
8002 which can conflict with char $ac_func(); below. */
8003 #include <assert.h>
8004 /* Override any gcc2 internal prototype to avoid an error. */
8005 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */
8007 char $ac_func();
8009 int main() {
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8015 choke me
8016 #else
8017 $ac_func();
8018 #endif
8020 ; return 0; }
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8023 rm -rf conftest*
8024 eval "ac_cv_func_$ac_func=yes"
8025 else
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8028 rm -rf conftest*
8029 eval "ac_cv_func_$ac_func=no"
8031 rm -f conftest*
8034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8035 echo "$ac_t""yes" 1>&6
8036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8037 cat >> confdefs.h <<EOF
8038 #define $ac_tr_func 1
8041 else
8042 echo "$ac_t""no" 1>&6
8044 done
8047 esac
8049 case "$LIBS" in
8050 *-lsec*) for ac_func in bigcrypt
8052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8053 echo "configure:8054: checking for $ac_func" >&5
8054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8055 echo $ac_n "(cached) $ac_c" 1>&6
8056 else
8057 cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 /* System header to define __stub macros and hopefully few prototypes,
8061 which can conflict with char $ac_func(); below. */
8062 #include <assert.h>
8063 /* Override any gcc2 internal prototype to avoid an error. */
8064 /* We use char because int might match the return type of a gcc2
8065 builtin and then its argument prototype would still apply. */
8066 char $ac_func();
8068 int main() {
8070 /* The GNU C library defines this for functions which it implements
8071 to always fail with ENOSYS. Some functions are actually named
8072 something starting with __ and the normal name is an alias. */
8073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8074 choke me
8075 #else
8076 $ac_func();
8077 #endif
8079 ; return 0; }
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082 rm -rf conftest*
8083 eval "ac_cv_func_$ac_func=yes"
8084 else
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8087 rm -rf conftest*
8088 eval "ac_cv_func_$ac_func=no"
8090 rm -f conftest*
8093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8096 cat >> confdefs.h <<EOF
8097 #define $ac_tr_func 1
8100 else
8101 echo "$ac_t""no" 1>&6
8103 done
8105 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8106 echo "configure:8107: checking for bigcrypt in -lsec" >&5
8107 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8110 else
8111 ac_save_LIBS="$LIBS"
8112 LIBS="-lsec $LIBS"
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8116 /* Override any gcc2 internal prototype to avoid an error. */
8117 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8119 char bigcrypt();
8121 int main() {
8122 bigcrypt()
8123 ; return 0; }
8125 if { (eval echo configure:8126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8126 rm -rf conftest*
8127 eval "ac_cv_lib_$ac_lib_var=yes"
8128 else
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 rm -rf conftest*
8132 eval "ac_cv_lib_$ac_lib_var=no"
8134 rm -f conftest*
8135 LIBS="$ac_save_LIBS"
8138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8139 echo "$ac_t""yes" 1>&6
8140 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8142 cat >> confdefs.h <<EOF
8143 #define $ac_tr_lib 1
8146 LIBS="-lsec $LIBS"
8148 else
8149 echo "$ac_t""no" 1>&6
8152 for ac_func in bigcrypt
8154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8155 echo "configure:8156: checking for $ac_func" >&5
8156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8158 else
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char $ac_func(); below. */
8164 #include <assert.h>
8165 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8168 char $ac_func();
8170 int main() {
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8176 choke me
8177 #else
8178 $ac_func();
8179 #endif
8181 ; return 0; }
8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8184 rm -rf conftest*
8185 eval "ac_cv_func_$ac_func=yes"
8186 else
8187 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 rm -rf conftest*
8190 eval "ac_cv_func_$ac_func=no"
8192 rm -f conftest*
8195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8196 echo "$ac_t""yes" 1>&6
8197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8198 cat >> confdefs.h <<EOF
8199 #define $ac_tr_func 1
8202 else
8203 echo "$ac_t""no" 1>&6
8205 done
8208 esac
8211 case "$LIBS" in
8212 *-lsecurity*) for ac_func in getprpwnam
8214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8215 echo "configure:8216: checking for $ac_func" >&5
8216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8218 else
8219 cat > conftest.$ac_ext <<EOF
8220 #line 8221 "configure"
8221 #include "confdefs.h"
8222 /* System header to define __stub macros and hopefully few prototypes,
8223 which can conflict with char $ac_func(); below. */
8224 #include <assert.h>
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 /* We use char because int might match the return type of a gcc2
8227 builtin and then its argument prototype would still apply. */
8228 char $ac_func();
8230 int main() {
8232 /* The GNU C library defines this for functions which it implements
8233 to always fail with ENOSYS. Some functions are actually named
8234 something starting with __ and the normal name is an alias. */
8235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8236 choke me
8237 #else
8238 $ac_func();
8239 #endif
8241 ; return 0; }
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 rm -rf conftest*
8245 eval "ac_cv_func_$ac_func=yes"
8246 else
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 rm -rf conftest*
8250 eval "ac_cv_func_$ac_func=no"
8252 rm -f conftest*
8255 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8258 cat >> confdefs.h <<EOF
8259 #define $ac_tr_func 1
8262 else
8263 echo "$ac_t""no" 1>&6
8265 done
8267 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8268 echo "configure:8269: checking for getprpwnam in -lsecurity" >&5
8269 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8271 echo $ac_n "(cached) $ac_c" 1>&6
8272 else
8273 ac_save_LIBS="$LIBS"
8274 LIBS="-lsecurity $LIBS"
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 /* Override any gcc2 internal prototype to avoid an error. */
8279 /* We use char because int might match the return type of a gcc2
8280 builtin and then its argument prototype would still apply. */
8281 char getprpwnam();
8283 int main() {
8284 getprpwnam()
8285 ; return 0; }
8287 if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8288 rm -rf conftest*
8289 eval "ac_cv_lib_$ac_lib_var=yes"
8290 else
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8293 rm -rf conftest*
8294 eval "ac_cv_lib_$ac_lib_var=no"
8296 rm -f conftest*
8297 LIBS="$ac_save_LIBS"
8300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8301 echo "$ac_t""yes" 1>&6
8302 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8304 cat >> confdefs.h <<EOF
8305 #define $ac_tr_lib 1
8308 LIBS="-lsecurity $LIBS"
8310 else
8311 echo "$ac_t""no" 1>&6
8314 for ac_func in getprpwnam
8316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8317 echo "configure:8318: checking for $ac_func" >&5
8318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8320 else
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* System header to define __stub macros and hopefully few prototypes,
8325 which can conflict with char $ac_func(); below. */
8326 #include <assert.h>
8327 /* Override any gcc2 internal prototype to avoid an error. */
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8330 char $ac_func();
8332 int main() {
8334 /* The GNU C library defines this for functions which it implements
8335 to always fail with ENOSYS. Some functions are actually named
8336 something starting with __ and the normal name is an alias. */
8337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8338 choke me
8339 #else
8340 $ac_func();
8341 #endif
8343 ; return 0; }
8345 if { (eval echo configure:8346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8346 rm -rf conftest*
8347 eval "ac_cv_func_$ac_func=yes"
8348 else
8349 echo "configure: failed program was:" >&5
8350 cat conftest.$ac_ext >&5
8351 rm -rf conftest*
8352 eval "ac_cv_func_$ac_func=no"
8354 rm -f conftest*
8357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8358 echo "$ac_t""yes" 1>&6
8359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8360 cat >> confdefs.h <<EOF
8361 #define $ac_tr_func 1
8364 else
8365 echo "$ac_t""no" 1>&6
8367 done
8370 esac
8372 case "$LIBS" in
8373 *-lsec*) for ac_func in getprpwnam
8375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8376 echo "configure:8377: checking for $ac_func" >&5
8377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8378 echo $ac_n "(cached) $ac_c" 1>&6
8379 else
8380 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 /* System header to define __stub macros and hopefully few prototypes,
8384 which can conflict with char $ac_func(); below. */
8385 #include <assert.h>
8386 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8389 char $ac_func();
8391 int main() {
8393 /* The GNU C library defines this for functions which it implements
8394 to always fail with ENOSYS. Some functions are actually named
8395 something starting with __ and the normal name is an alias. */
8396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8397 choke me
8398 #else
8399 $ac_func();
8400 #endif
8402 ; return 0; }
8404 if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8405 rm -rf conftest*
8406 eval "ac_cv_func_$ac_func=yes"
8407 else
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 rm -rf conftest*
8411 eval "ac_cv_func_$ac_func=no"
8413 rm -f conftest*
8416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8419 cat >> confdefs.h <<EOF
8420 #define $ac_tr_func 1
8423 else
8424 echo "$ac_t""no" 1>&6
8426 done
8428 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8429 echo "configure:8430: checking for getprpwnam in -lsec" >&5
8430 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8433 else
8434 ac_save_LIBS="$LIBS"
8435 LIBS="-lsec $LIBS"
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8442 char getprpwnam();
8444 int main() {
8445 getprpwnam()
8446 ; return 0; }
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8449 rm -rf conftest*
8450 eval "ac_cv_lib_$ac_lib_var=yes"
8451 else
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8454 rm -rf conftest*
8455 eval "ac_cv_lib_$ac_lib_var=no"
8457 rm -f conftest*
8458 LIBS="$ac_save_LIBS"
8461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8462 echo "$ac_t""yes" 1>&6
8463 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8465 cat >> confdefs.h <<EOF
8466 #define $ac_tr_lib 1
8469 LIBS="-lsec $LIBS"
8471 else
8472 echo "$ac_t""no" 1>&6
8475 for ac_func in getprpwnam
8477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8478 echo "configure:8479: checking for $ac_func" >&5
8479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8480 echo $ac_n "(cached) $ac_c" 1>&6
8481 else
8482 cat > conftest.$ac_ext <<EOF
8483 #line 8484 "configure"
8484 #include "confdefs.h"
8485 /* System header to define __stub macros and hopefully few prototypes,
8486 which can conflict with char $ac_func(); below. */
8487 #include <assert.h>
8488 /* Override any gcc2 internal prototype to avoid an error. */
8489 /* We use char because int might match the return type of a gcc2
8490 builtin and then its argument prototype would still apply. */
8491 char $ac_func();
8493 int main() {
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8499 choke me
8500 #else
8501 $ac_func();
8502 #endif
8504 ; return 0; }
8506 if { (eval echo configure:8507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8507 rm -rf conftest*
8508 eval "ac_cv_func_$ac_func=yes"
8509 else
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8512 rm -rf conftest*
8513 eval "ac_cv_func_$ac_func=no"
8515 rm -f conftest*
8518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8521 cat >> confdefs.h <<EOF
8522 #define $ac_tr_func 1
8525 else
8526 echo "$ac_t""no" 1>&6
8528 done
8531 esac
8534 # this bit needs to be modified for each OS that is suported by
8535 # smbwrapper. You need to specify how to created a shared library and
8536 # how to compile C code to produce PIC object files
8538 # these are the defaults, good for lots of systems
8539 HOST_OS="$host_os"
8540 LDSHFLAGS="-shared"
8541 SHLD="\${CC}"
8542 PICFLAG=""
8543 PICSUFFIX="po"
8544 POBAD_CC="#"
8545 SHLIBEXT="so"
8546 # Assume non-shared by default and override below
8547 BLDSHARED="false"
8548 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8549 echo "configure:8550: checking ability to build shared libraries" >&5
8551 # and these are for particular systems
8552 case "$host_os" in
8553 *linux*) cat >> confdefs.h <<\EOF
8554 #define LINUX 1
8557 BLDSHARED="true"
8558 LDSHFLAGS="-shared"
8559 PICFLAG="-fPIC"
8560 cat >> confdefs.h <<\EOF
8561 #define STAT_ST_BLOCKSIZE 512
8565 *solaris*) cat >> confdefs.h <<\EOF
8566 #define SUNOS5 1
8569 BLDSHARED="true"
8570 LDSHFLAGS="-h \$@ -G"
8571 if test "${ac_cv_prog_CC}" = "gcc"; then
8572 PICFLAG="-fPIC"
8573 else
8574 PICFLAG="-KPIC"
8575 POBAD_CC=""
8576 PICSUFFIX="po.o"
8578 cat >> confdefs.h <<\EOF
8579 #define STAT_ST_BLOCKSIZE 512
8583 *sunos*) cat >> confdefs.h <<\EOF
8584 #define SUNOS4 1
8587 BLDSHARED="true"
8588 LDSHFLAGS="-Wl,-h,\$@ -G"
8589 PICFLAG="-KPIC" # Is this correct for SunOS
8591 *bsd*) BLDSHARED="true"
8592 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8593 PICFLAG="-fPIC"
8594 cat >> confdefs.h <<\EOF
8595 #define STAT_ST_BLOCKSIZE 512
8599 *irix*) cat >> confdefs.h <<\EOF
8600 #define IRIX 1
8603 case "$host_os" in
8604 *irix6*) cat >> confdefs.h <<\EOF
8605 #define IRIX6 1
8609 esac
8610 ATTEMPT_WRAP32_BUILD=yes
8611 BLDSHARED="true"
8612 LDSHFLAGS="-soname \$@ -shared"
8613 SHLD="\${LD}"
8614 if test "${ac_cv_prog_CC}" = "gcc"; then
8615 PICFLAG="-fPIC"
8616 else
8617 PICFLAG="-KPIC"
8619 cat >> confdefs.h <<\EOF
8620 #define STAT_ST_BLOCKSIZE 512
8624 *aix*) cat >> confdefs.h <<\EOF
8625 #define AIX 1
8628 BLDSHARED="true"
8629 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8630 PICFLAG="-O2 -qmaxmem=6000"
8631 cat >> confdefs.h <<\EOF
8632 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8636 *hpux*) cat >> confdefs.h <<\EOF
8637 #define HPUX 1
8640 SHLIBEXT="sl"
8641 # Use special PIC flags for the native HP-UX compiler.
8642 if test $ac_cv_prog_cc_Ae = yes; then
8643 #BLDSHARED="true"
8644 LDSHFLAGS="-b -z +h \$@"
8645 PICFLAG="+z"
8647 cat >> confdefs.h <<\EOF
8648 #define STAT_ST_BLOCKSIZE 8192
8652 *qnx*) cat >> confdefs.h <<\EOF
8653 #define QNX 1
8656 *osf*) cat >> confdefs.h <<\EOF
8657 #define OSF1 1
8660 BLDSHARED="true"
8661 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8662 PICFLAG="-fPIC"
8664 *sco*) cat >> confdefs.h <<\EOF
8665 #define SCO 1
8668 *unixware*) cat >> confdefs.h <<\EOF
8669 #define UNIXWARE 1
8672 BLDSHARED="true"
8673 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8674 PICFLAG="-KPIC"
8676 *next2*) cat >> confdefs.h <<\EOF
8677 #define NEXT2 1
8680 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8681 set dummy groff; ac_word=$2
8682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8683 echo "configure:8684: checking for $ac_word" >&5
8684 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8686 else
8687 if test -n "$ROFF"; then
8688 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8689 else
8690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8691 ac_dummy="$PATH"
8692 for ac_dir in $ac_dummy; do
8693 test -z "$ac_dir" && ac_dir=.
8694 if test -f $ac_dir/$ac_word; then
8695 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8696 break
8698 done
8699 IFS="$ac_save_ifs"
8702 ROFF="$ac_cv_prog_ROFF"
8703 if test -n "$ROFF"; then
8704 echo "$ac_t""$ROFF" 1>&6
8705 else
8706 echo "$ac_t""no" 1>&6
8709 *sysv4*)
8710 case "$host" in
8711 *-univel-*) if test "$GCC" != yes ; then
8712 cat >> confdefs.h <<\EOF
8713 #define HAVE_MEMSET 1
8717 LDSHFLAGS="-G"
8719 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8720 #define RELIANTUNIX 1
8723 esac
8725 *sysv5*)
8726 if test "$GCC" != yes ; then
8727 cat >> confdefs.h <<\EOF
8728 #define HAVE_MEMSET 1
8732 LDSHFLAGS="-G"
8734 esac
8735 echo "$ac_t""$BLDSHARED" 1>&6
8736 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8737 echo "configure:8738: checking linker flags for shared libraries" >&5
8738 echo "$ac_t""$LDSHFLAGS" 1>&6
8739 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8740 echo "configure:8741: checking compiler flags for position-independent code" >&5
8741 echo "$ac_t""$PICFLAGS" 1>&6
8743 #######################################################
8744 # test whether building a shared library actually works
8745 if test $BLDSHARED = true; then
8746 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
8747 echo "configure:8748: checking whether building shared libraries actually works" >&5
8748 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8750 else
8752 ac_cv_shlib_works=no
8753 # try building a trivial shared library
8754 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
8755 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
8756 ac_cv_shlib_works=yes
8757 rm -f shlib.so shlib.po
8761 echo "$ac_t""$ac_cv_shlib_works" 1>&6
8762 if test $ac_cv_shlib_works = no; then
8763 BLDSHARED=false
8768 # this updates our target list if we can build shared libs
8769 if test $BLDSHARED = true; then
8770 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8771 else
8772 LIBSMBCLIENT_SHARED=
8775 ################
8777 echo $ac_n "checking for long long""... $ac_c" 1>&6
8778 echo "configure:8779: checking for long long" >&5
8779 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8781 else
8783 if test "$cross_compiling" = yes; then
8784 samba_cv_have_longlong=cross
8785 else
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 #include <stdio.h>
8790 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8792 if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8793 then
8794 samba_cv_have_longlong=yes
8795 else
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 rm -fr conftest*
8799 samba_cv_have_longlong=no
8801 rm -fr conftest*
8806 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8807 if test x"$samba_cv_have_longlong" = x"yes"; then
8808 cat >> confdefs.h <<\EOF
8809 #define HAVE_LONGLONG 1
8815 # Check if the compiler supports the LL prefix on long long integers.
8816 # AIX needs this.
8818 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8819 echo "configure:8820: checking for LL suffix on long long integers" >&5
8820 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822 else
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8827 #include <stdio.h>
8828 int main() {
8829 long long i = 0x8000000000LL
8830 ; return 0; }
8832 if { (eval echo configure:8833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8833 rm -rf conftest*
8834 samba_cv_compiler_supports_ll=yes
8835 else
8836 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 rm -rf conftest*
8839 samba_cv_compiler_supports_ll=no
8841 rm -f conftest*
8844 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8845 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8846 cat >> confdefs.h <<\EOF
8847 #define COMPILER_SUPPORTS_LL 1
8853 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8854 echo "configure:8855: checking for 64 bit off_t" >&5
8855 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8857 else
8859 if test "$cross_compiling" = yes; then
8860 samba_cv_SIZEOF_OFF_T=cross
8861 else
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 #include <stdio.h>
8866 #include <sys/stat.h>
8867 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8869 if { (eval echo configure:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8870 then
8871 samba_cv_SIZEOF_OFF_T=yes
8872 else
8873 echo "configure: failed program was:" >&5
8874 cat conftest.$ac_ext >&5
8875 rm -fr conftest*
8876 samba_cv_SIZEOF_OFF_T=no
8878 rm -fr conftest*
8883 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8884 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8885 cat >> confdefs.h <<\EOF
8886 #define SIZEOF_OFF_T 8
8891 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8892 echo "configure:8893: checking for off64_t" >&5
8893 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8895 else
8897 if test "$cross_compiling" = yes; then
8898 samba_cv_HAVE_OFF64_T=cross
8899 else
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8904 #if defined(HAVE_UNISTD_H)
8905 #include <unistd.h>
8906 #endif
8907 #include <stdio.h>
8908 #include <sys/stat.h>
8909 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8911 if { (eval echo configure:8912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8912 then
8913 samba_cv_HAVE_OFF64_T=yes
8914 else
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8917 rm -fr conftest*
8918 samba_cv_HAVE_OFF64_T=no
8920 rm -fr conftest*
8925 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8926 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8927 cat >> confdefs.h <<\EOF
8928 #define HAVE_OFF64_T 1
8933 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8934 echo "configure:8935: checking for 64 bit ino_t" >&5
8935 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8937 else
8939 if test "$cross_compiling" = yes; then
8940 samba_cv_SIZEOF_INO_T=cross
8941 else
8942 cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8945 #include <stdio.h>
8946 #include <sys/stat.h>
8947 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8949 if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8950 then
8951 samba_cv_SIZEOF_INO_T=yes
8952 else
8953 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8955 rm -fr conftest*
8956 samba_cv_SIZEOF_INO_T=no
8958 rm -fr conftest*
8963 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8964 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8965 cat >> confdefs.h <<\EOF
8966 #define SIZEOF_INO_T 8
8971 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8972 echo "configure:8973: checking for ino64_t" >&5
8973 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8975 else
8977 if test "$cross_compiling" = yes; then
8978 samba_cv_HAVE_INO64_T=cross
8979 else
8980 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8984 #if defined(HAVE_UNISTD_H)
8985 #include <unistd.h>
8986 #endif
8987 #include <stdio.h>
8988 #include <sys/stat.h>
8989 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8991 if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8992 then
8993 samba_cv_HAVE_INO64_T=yes
8994 else
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8997 rm -fr conftest*
8998 samba_cv_HAVE_INO64_T=no
9000 rm -fr conftest*
9005 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9006 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9007 cat >> confdefs.h <<\EOF
9008 #define HAVE_INO64_T 1
9013 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9014 echo "configure:9015: checking for dev64_t" >&5
9015 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9017 else
9019 if test "$cross_compiling" = yes; then
9020 samba_cv_HAVE_DEV64_T=cross
9021 else
9022 cat > conftest.$ac_ext <<EOF
9023 #line 9024 "configure"
9024 #include "confdefs.h"
9026 #if defined(HAVE_UNISTD_H)
9027 #include <unistd.h>
9028 #endif
9029 #include <stdio.h>
9030 #include <sys/stat.h>
9031 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9033 if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9034 then
9035 samba_cv_HAVE_DEV64_T=yes
9036 else
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9039 rm -fr conftest*
9040 samba_cv_HAVE_DEV64_T=no
9042 rm -fr conftest*
9047 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9048 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9049 cat >> confdefs.h <<\EOF
9050 #define HAVE_DEV64_T 1
9055 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9056 echo "configure:9057: checking for struct dirent64" >&5
9057 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9059 else
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9065 #if defined(HAVE_UNISTD_H)
9066 #include <unistd.h>
9067 #endif
9068 #include <sys/types.h>
9069 #include <dirent.h>
9070 int main() {
9071 struct dirent64 de;
9072 ; return 0; }
9074 if { (eval echo configure:9075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9075 rm -rf conftest*
9076 samba_cv_HAVE_STRUCT_DIRENT64=yes
9077 else
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9080 rm -rf conftest*
9081 samba_cv_HAVE_STRUCT_DIRENT64=no
9083 rm -f conftest*
9086 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9087 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9088 cat >> confdefs.h <<\EOF
9089 #define HAVE_STRUCT_DIRENT64 1
9094 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9095 echo "configure:9096: checking for major macro" >&5
9096 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9098 else
9100 if test "$cross_compiling" = yes; then
9101 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9102 else
9103 cat > conftest.$ac_ext <<EOF
9104 #line 9105 "configure"
9105 #include "confdefs.h"
9107 #if defined(HAVE_UNISTD_H)
9108 #include <unistd.h>
9109 #endif
9110 #include <sys/types.h>
9111 main() { dev_t dev; int i = major(dev); return 0; }
9113 if { (eval echo configure:9114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9114 then
9115 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9116 else
9117 echo "configure: failed program was:" >&5
9118 cat conftest.$ac_ext >&5
9119 rm -fr conftest*
9120 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9122 rm -fr conftest*
9127 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9128 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9129 cat >> confdefs.h <<\EOF
9130 #define HAVE_DEVICE_MAJOR_FN 1
9135 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9136 echo "configure:9137: checking for minor macro" >&5
9137 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9139 else
9141 if test "$cross_compiling" = yes; then
9142 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9143 else
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9148 #if defined(HAVE_UNISTD_H)
9149 #include <unistd.h>
9150 #endif
9151 #include <sys/types.h>
9152 main() { dev_t dev; int i = minor(dev); return 0; }
9154 if { (eval echo configure:9155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9155 then
9156 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9157 else
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9160 rm -fr conftest*
9161 samba_cv_HAVE_DEVICE_MINOR_FN=no
9163 rm -fr conftest*
9168 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9169 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9170 cat >> confdefs.h <<\EOF
9171 #define HAVE_DEVICE_MINOR_FN 1
9176 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9177 echo "configure:9178: checking for unsigned char" >&5
9178 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9179 echo $ac_n "(cached) $ac_c" 1>&6
9180 else
9182 if test "$cross_compiling" = yes; then
9183 samba_cv_HAVE_UNSIGNED_CHAR=cross
9184 else
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9188 #include <stdio.h>
9189 main() { char c; c=250; exit((c > 0)?0:1); }
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9192 then
9193 samba_cv_HAVE_UNSIGNED_CHAR=yes
9194 else
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9197 rm -fr conftest*
9198 samba_cv_HAVE_UNSIGNED_CHAR=no
9200 rm -fr conftest*
9205 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9206 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9207 cat >> confdefs.h <<\EOF
9208 #define HAVE_UNSIGNED_CHAR 1
9213 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9214 echo "configure:9215: checking for sin_len in sock" >&5
9215 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9217 else
9219 cat > conftest.$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9222 #include <sys/types.h>
9223 #include <sys/socket.h>
9224 #include <netinet/in.h>
9225 int main() {
9226 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9227 ; return 0; }
9229 if { (eval echo configure:9230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9230 rm -rf conftest*
9231 samba_cv_HAVE_SOCK_SIN_LEN=yes
9232 else
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235 rm -rf conftest*
9236 samba_cv_HAVE_SOCK_SIN_LEN=no
9238 rm -f conftest*
9241 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9242 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9243 cat >> confdefs.h <<\EOF
9244 #define HAVE_SOCK_SIN_LEN 1
9249 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9250 echo "configure:9251: checking whether seekdir returns void" >&5
9251 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9253 else
9255 cat > conftest.$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9258 #include <sys/types.h>
9259 #include <dirent.h>
9260 void seekdir(DIR *d, long loc) { return; }
9261 int main() {
9262 return 0;
9263 ; return 0; }
9265 if { (eval echo configure:9266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9266 rm -rf conftest*
9267 samba_cv_SEEKDIR_RETURNS_VOID=yes
9268 else
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -rf conftest*
9272 samba_cv_SEEKDIR_RETURNS_VOID=no
9274 rm -f conftest*
9277 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9278 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9279 cat >> confdefs.h <<\EOF
9280 #define SEEKDIR_RETURNS_VOID 1
9285 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9286 echo "configure:9287: checking for __FILE__ macro" >&5
9287 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9288 echo $ac_n "(cached) $ac_c" 1>&6
9289 else
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9294 #include <stdio.h>
9295 int main() {
9296 printf("%s\n", __FILE__);
9297 ; return 0; }
9299 if { (eval echo configure:9300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9300 rm -rf conftest*
9301 samba_cv_HAVE_FILE_MACRO=yes
9302 else
9303 echo "configure: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9305 rm -rf conftest*
9306 samba_cv_HAVE_FILE_MACRO=no
9308 rm -f conftest*
9311 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9312 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9313 cat >> confdefs.h <<\EOF
9314 #define HAVE_FILE_MACRO 1
9319 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9320 echo "configure:9321: checking for __FUNCTION__ macro" >&5
9321 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9323 else
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9328 #include <stdio.h>
9329 int main() {
9330 printf("%s\n", __FUNCTION__);
9331 ; return 0; }
9333 if { (eval echo configure:9334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9334 rm -rf conftest*
9335 samba_cv_HAVE_FUNCTION_MACRO=yes
9336 else
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 rm -rf conftest*
9340 samba_cv_HAVE_FUNCTION_MACRO=no
9342 rm -f conftest*
9345 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9346 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9347 cat >> confdefs.h <<\EOF
9348 #define HAVE_FUNCTION_MACRO 1
9353 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9354 echo "configure:9355: checking if gettimeofday takes tz argument" >&5
9355 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9357 else
9359 if test "$cross_compiling" = yes; then
9360 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9361 else
9362 cat > conftest.$ac_ext <<EOF
9363 #line 9364 "configure"
9364 #include "confdefs.h"
9366 #include <sys/time.h>
9367 #include <unistd.h>
9368 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9370 if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9371 then
9372 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9373 else
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9376 rm -fr conftest*
9377 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9379 rm -fr conftest*
9384 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9385 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9386 cat >> confdefs.h <<\EOF
9387 #define HAVE_GETTIMEOFDAY_TZ 1
9392 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9393 echo "configure:9394: checking for C99 vsnprintf" >&5
9394 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396 else
9398 if test "$cross_compiling" = yes; then
9399 samba_cv_HAVE_C99_VSNPRINTF=cross
9400 else
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9405 #include <sys/types.h>
9406 #include <stdarg.h>
9407 void foo(const char *format, ...) {
9408 va_list ap;
9409 int len;
9410 char buf[5];
9412 va_start(ap, format);
9413 len = vsnprintf(0, 0, format, ap);
9414 va_end(ap);
9415 if (len != 5) exit(1);
9417 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9419 exit(0);
9421 main() { foo("hello"); }
9424 if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9425 then
9426 samba_cv_HAVE_C99_VSNPRINTF=yes
9427 else
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9430 rm -fr conftest*
9431 samba_cv_HAVE_C99_VSNPRINTF=no
9433 rm -fr conftest*
9438 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9439 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9440 cat >> confdefs.h <<\EOF
9441 #define HAVE_C99_VSNPRINTF 1
9446 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9447 echo "configure:9448: checking for broken readdir" >&5
9448 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
9450 else
9452 if test "$cross_compiling" = yes; then
9453 samba_cv_HAVE_BROKEN_READDIR=cross
9454 else
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 #include <sys/types.h>
9459 #include <dirent.h>
9460 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9461 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9462 di->d_name[0] == 0) exit(0); exit(1);}
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9465 then
9466 samba_cv_HAVE_BROKEN_READDIR=yes
9467 else
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 rm -fr conftest*
9471 samba_cv_HAVE_BROKEN_READDIR=no
9473 rm -fr conftest*
9478 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9479 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9480 cat >> confdefs.h <<\EOF
9481 #define HAVE_BROKEN_READDIR 1
9486 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9487 echo "configure:9488: checking for utimbuf" >&5
9488 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9490 else
9492 cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 #include <sys/types.h>
9496 #include <utime.h>
9497 int main() {
9498 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9499 ; return 0; }
9501 if { (eval echo configure:9502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9502 rm -rf conftest*
9503 samba_cv_HAVE_UTIMBUF=yes
9504 else
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9507 rm -rf conftest*
9508 samba_cv_HAVE_UTIMBUF=no
9510 rm -f conftest*
9513 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9514 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9515 cat >> confdefs.h <<\EOF
9516 #define HAVE_UTIMBUF 1
9522 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9525 echo "configure:9526: checking for $ac_func" >&5
9526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9528 else
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 /* System header to define __stub macros and hopefully few prototypes,
9533 which can conflict with char $ac_func(); below. */
9534 #include <assert.h>
9535 /* Override any gcc2 internal prototype to avoid an error. */
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9538 char $ac_func();
9540 int main() {
9542 /* The GNU C library defines this for functions which it implements
9543 to always fail with ENOSYS. Some functions are actually named
9544 something starting with __ and the normal name is an alias. */
9545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9546 choke me
9547 #else
9548 $ac_func();
9549 #endif
9551 ; return 0; }
9553 if { (eval echo configure:9554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9554 rm -rf conftest*
9555 eval "ac_cv_func_$ac_func=yes"
9556 else
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560 eval "ac_cv_func_$ac_func=no"
9562 rm -f conftest*
9565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9568 cat >> confdefs.h <<EOF
9569 #define $ac_tr_func 1
9572 else
9573 echo "$ac_t""no" 1>&6
9575 done
9578 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9579 echo "configure:9580: checking for ut_name in utmp" >&5
9580 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582 else
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 #include <sys/types.h>
9588 #include <utmp.h>
9589 int main() {
9590 struct utmp ut; ut.ut_name[0] = 'a';
9591 ; return 0; }
9593 if { (eval echo configure:9594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9594 rm -rf conftest*
9595 samba_cv_HAVE_UT_UT_NAME=yes
9596 else
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9599 rm -rf conftest*
9600 samba_cv_HAVE_UT_UT_NAME=no
9602 rm -f conftest*
9605 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9606 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9607 cat >> confdefs.h <<\EOF
9608 #define HAVE_UT_UT_NAME 1
9613 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9614 echo "configure:9615: checking for ut_user in utmp" >&5
9615 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9617 else
9619 cat > conftest.$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9622 #include <sys/types.h>
9623 #include <utmp.h>
9624 int main() {
9625 struct utmp ut; ut.ut_user[0] = 'a';
9626 ; return 0; }
9628 if { (eval echo configure:9629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9629 rm -rf conftest*
9630 samba_cv_HAVE_UT_UT_USER=yes
9631 else
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9634 rm -rf conftest*
9635 samba_cv_HAVE_UT_UT_USER=no
9637 rm -f conftest*
9640 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9641 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9642 cat >> confdefs.h <<\EOF
9643 #define HAVE_UT_UT_USER 1
9648 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9649 echo "configure:9650: checking for ut_id in utmp" >&5
9650 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6
9652 else
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9657 #include <sys/types.h>
9658 #include <utmp.h>
9659 int main() {
9660 struct utmp ut; ut.ut_id[0] = 'a';
9661 ; return 0; }
9663 if { (eval echo configure:9664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9664 rm -rf conftest*
9665 samba_cv_HAVE_UT_UT_ID=yes
9666 else
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9669 rm -rf conftest*
9670 samba_cv_HAVE_UT_UT_ID=no
9672 rm -f conftest*
9675 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9676 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9677 cat >> confdefs.h <<\EOF
9678 #define HAVE_UT_UT_ID 1
9683 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9684 echo "configure:9685: checking for ut_host in utmp" >&5
9685 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687 else
9689 cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure"
9691 #include "confdefs.h"
9692 #include <sys/types.h>
9693 #include <utmp.h>
9694 int main() {
9695 struct utmp ut; ut.ut_host[0] = 'a';
9696 ; return 0; }
9698 if { (eval echo configure:9699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9699 rm -rf conftest*
9700 samba_cv_HAVE_UT_UT_HOST=yes
9701 else
9702 echo "configure: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9704 rm -rf conftest*
9705 samba_cv_HAVE_UT_UT_HOST=no
9707 rm -f conftest*
9710 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9711 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9712 cat >> confdefs.h <<\EOF
9713 #define HAVE_UT_UT_HOST 1
9718 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9719 echo "configure:9720: checking for ut_time in utmp" >&5
9720 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9721 echo $ac_n "(cached) $ac_c" 1>&6
9722 else
9724 cat > conftest.$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9728 #include <utmp.h>
9729 int main() {
9730 struct utmp ut; time_t t; ut.ut_time = t;
9731 ; return 0; }
9733 if { (eval echo configure:9734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9734 rm -rf conftest*
9735 samba_cv_HAVE_UT_UT_TIME=yes
9736 else
9737 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9739 rm -rf conftest*
9740 samba_cv_HAVE_UT_UT_TIME=no
9742 rm -f conftest*
9745 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9746 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9747 cat >> confdefs.h <<\EOF
9748 #define HAVE_UT_UT_TIME 1
9753 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9754 echo "configure:9755: checking for ut_tv in utmp" >&5
9755 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9756 echo $ac_n "(cached) $ac_c" 1>&6
9757 else
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9762 #include <sys/types.h>
9763 #include <utmp.h>
9764 int main() {
9765 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9766 ; return 0; }
9768 if { (eval echo configure:9769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9769 rm -rf conftest*
9770 samba_cv_HAVE_UT_UT_TV=yes
9771 else
9772 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9774 rm -rf conftest*
9775 samba_cv_HAVE_UT_UT_TV=no
9777 rm -f conftest*
9780 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9781 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9782 cat >> confdefs.h <<\EOF
9783 #define HAVE_UT_UT_TV 1
9788 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9789 echo "configure:9790: checking for ut_type in utmp" >&5
9790 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9792 else
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <sys/types.h>
9798 #include <utmp.h>
9799 int main() {
9800 struct utmp ut; ut.ut_type = 0;
9801 ; return 0; }
9803 if { (eval echo configure:9804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9804 rm -rf conftest*
9805 samba_cv_HAVE_UT_UT_TYPE=yes
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 samba_cv_HAVE_UT_UT_TYPE=no
9812 rm -f conftest*
9815 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9816 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9817 cat >> confdefs.h <<\EOF
9818 #define HAVE_UT_UT_TYPE 1
9823 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9824 echo "configure:9825: checking for ut_pid in utmp" >&5
9825 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9827 else
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 #include <sys/types.h>
9833 #include <utmp.h>
9834 int main() {
9835 struct utmp ut; ut.ut_pid = 0;
9836 ; return 0; }
9838 if { (eval echo configure:9839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9839 rm -rf conftest*
9840 samba_cv_HAVE_UT_UT_PID=yes
9841 else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 samba_cv_HAVE_UT_UT_PID=no
9847 rm -f conftest*
9850 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9851 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9852 cat >> confdefs.h <<\EOF
9853 #define HAVE_UT_UT_PID 1
9858 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9859 echo "configure:9860: checking for ut_exit in utmp" >&5
9860 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9862 else
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 #include <sys/types.h>
9868 #include <utmp.h>
9869 int main() {
9870 struct utmp ut; ut.ut_exit.e_exit = 0;
9871 ; return 0; }
9873 if { (eval echo configure:9874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9874 rm -rf conftest*
9875 samba_cv_HAVE_UT_UT_EXIT=yes
9876 else
9877 echo "configure: failed program was:" >&5
9878 cat conftest.$ac_ext >&5
9879 rm -rf conftest*
9880 samba_cv_HAVE_UT_UT_EXIT=no
9882 rm -f conftest*
9885 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9886 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9887 cat >> confdefs.h <<\EOF
9888 #define HAVE_UT_UT_EXIT 1
9893 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9894 echo "configure:9895: checking for ut_addr in utmp" >&5
9895 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9897 else
9899 cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9902 #include <sys/types.h>
9903 #include <utmp.h>
9904 int main() {
9905 struct utmp ut; ut.ut_addr = 0;
9906 ; return 0; }
9908 if { (eval echo configure:9909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9909 rm -rf conftest*
9910 samba_cv_HAVE_UT_UT_ADDR=yes
9911 else
9912 echo "configure: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9914 rm -rf conftest*
9915 samba_cv_HAVE_UT_UT_ADDR=no
9917 rm -f conftest*
9920 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9921 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9922 cat >> confdefs.h <<\EOF
9923 #define HAVE_UT_UT_ADDR 1
9928 if test x$ac_cv_func_pututline = xyes ; then
9929 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9930 echo "configure:9931: checking whether pututline returns pointer" >&5
9931 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9933 else
9935 cat > conftest.$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 #include <sys/types.h>
9939 #include <utmp.h>
9940 int main() {
9941 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9942 ; return 0; }
9944 if { (eval echo configure:9945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9945 rm -rf conftest*
9946 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9947 else
9948 echo "configure: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9950 rm -rf conftest*
9951 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9953 rm -f conftest*
9956 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9957 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9958 cat >> confdefs.h <<\EOF
9959 #define PUTUTLINE_RETURNS_UTMP 1
9965 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9966 echo "configure:9967: checking for ut_syslen in utmpx" >&5
9967 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9969 else
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 #include <sys/types.h>
9975 #include <utmpx.h>
9976 int main() {
9977 struct utmpx ux; ux.ut_syslen = 0;
9978 ; return 0; }
9980 if { (eval echo configure:9981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9981 rm -rf conftest*
9982 samba_cv_HAVE_UX_UT_SYSLEN=yes
9983 else
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9986 rm -rf conftest*
9987 samba_cv_HAVE_UX_UT_SYSLEN=no
9989 rm -f conftest*
9992 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9993 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9994 cat >> confdefs.h <<\EOF
9995 #define HAVE_UX_UT_SYSLEN 1
10001 #################################################
10002 # check for libiconv support
10003 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10004 echo "configure:10005: checking whether to use libiconv" >&5
10005 # Check whether --with-libiconv or --without-libiconv was given.
10006 if test "${with_libiconv+set}" = set; then
10007 withval="$with_libiconv"
10008 case "$withval" in
10010 echo "$ac_t""no" 1>&6
10013 echo "$ac_t""yes" 1>&6
10014 CFLAGS="$CFLAGS -I$withval/include"
10015 LDFLAGS="$LDFLAGS -L$withval/lib"
10016 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10017 echo "configure:10018: checking for iconv_open in -liconv" >&5
10018 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10021 else
10022 ac_save_LIBS="$LIBS"
10023 LIBS="-liconv $LIBS"
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char iconv_open();
10032 int main() {
10033 iconv_open()
10034 ; return 0; }
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 rm -rf conftest*
10038 eval "ac_cv_lib_$ac_lib_var=yes"
10039 else
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 rm -rf conftest*
10043 eval "ac_cv_lib_$ac_lib_var=no"
10045 rm -f conftest*
10046 LIBS="$ac_save_LIBS"
10049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10051 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10052 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10053 cat >> confdefs.h <<EOF
10054 #define $ac_tr_lib 1
10057 LIBS="-liconv $LIBS"
10059 else
10060 echo "$ac_t""no" 1>&6
10063 cat >> confdefs.h <<EOF
10064 #define WITH_LIBICONV "${withval}"
10068 esac
10069 else
10070 echo "$ac_t""no" 1>&6
10076 ############
10077 # check for iconv in libc
10078 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10079 echo "configure:10080: checking for working iconv" >&5
10080 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10082 else
10084 if test "$cross_compiling" = yes; then
10085 samba_cv_HAVE_NATIVE_ICONV=cross
10086 else
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10091 #include <iconv.h>
10092 main() {
10093 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10094 if (cd == 0 || cd == (iconv_t)-1) return -1;
10095 return 0;
10099 if { (eval echo configure:10100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10100 then
10101 samba_cv_HAVE_NATIVE_ICONV=yes
10102 else
10103 echo "configure: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 rm -fr conftest*
10106 samba_cv_HAVE_NATIVE_ICONV=no
10108 rm -fr conftest*
10113 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10114 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10115 cat >> confdefs.h <<\EOF
10116 #define HAVE_NATIVE_ICONV 1
10122 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10123 echo "configure:10124: checking for Linux kernel oplocks" >&5
10124 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10126 else
10128 if test "$cross_compiling" = yes; then
10129 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10130 else
10131 cat > conftest.$ac_ext <<EOF
10132 #line 10133 "configure"
10133 #include "confdefs.h"
10135 #include <sys/types.h>
10136 #include <fcntl.h>
10137 #ifndef F_GETLEASE
10138 #define F_GETLEASE 1025
10139 #endif
10140 main() {
10141 int fd = open("/dev/null", O_RDONLY);
10142 return fcntl(fd, F_GETLEASE, 0) == -1;
10146 if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10147 then
10148 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10149 else
10150 echo "configure: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10152 rm -fr conftest*
10153 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10155 rm -fr conftest*
10160 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10161 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10162 cat >> confdefs.h <<\EOF
10163 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10168 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10169 echo "configure:10170: checking for kernel change notify support" >&5
10170 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
10172 else
10174 if test "$cross_compiling" = yes; then
10175 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10176 else
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10181 #include <sys/types.h>
10182 #include <fcntl.h>
10183 #include <signal.h>
10184 #ifndef F_NOTIFY
10185 #define F_NOTIFY 1026
10186 #endif
10187 main() {
10188 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10192 if { (eval echo configure:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10193 then
10194 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10195 else
10196 echo "configure: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10198 rm -fr conftest*
10199 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10201 rm -fr conftest*
10206 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10207 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10208 cat >> confdefs.h <<\EOF
10209 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10214 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10215 echo "configure:10216: checking for kernel share modes" >&5
10216 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10217 echo $ac_n "(cached) $ac_c" 1>&6
10218 else
10220 if test "$cross_compiling" = yes; then
10221 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10222 else
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10227 #include <sys/types.h>
10228 #include <fcntl.h>
10229 #include <signal.h>
10230 #include <sys/file.h>
10231 #ifndef LOCK_MAND
10232 #define LOCK_MAND 32
10233 #define LOCK_READ 64
10234 #endif
10235 main() {
10236 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10240 if { (eval echo configure:10241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10241 then
10242 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10243 else
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 rm -fr conftest*
10247 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10249 rm -fr conftest*
10254 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10255 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10256 cat >> confdefs.h <<\EOF
10257 #define HAVE_KERNEL_SHARE_MODES 1
10265 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10266 echo "configure:10267: checking for IRIX kernel oplock type definitions" >&5
10267 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10268 echo $ac_n "(cached) $ac_c" 1>&6
10269 else
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 #include <sys/types.h>
10275 #include <fcntl.h>
10276 int main() {
10277 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10278 ; return 0; }
10280 if { (eval echo configure:10281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10281 rm -rf conftest*
10282 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10283 else
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 rm -rf conftest*
10287 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10289 rm -f conftest*
10292 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10293 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10294 cat >> confdefs.h <<\EOF
10295 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10300 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10301 echo "configure:10302: checking for irix specific capabilities" >&5
10302 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10304 else
10306 if test "$cross_compiling" = yes; then
10307 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10308 else
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10312 #include <sys/types.h>
10313 #include <sys/capability.h>
10314 main() {
10315 cap_t cap;
10316 if ((cap = cap_get_proc()) == NULL)
10317 exit(1);
10318 cap->cap_effective |= CAP_NETWORK_MGT;
10319 cap->cap_inheritable |= CAP_NETWORK_MGT;
10320 cap_set_proc(cap);
10321 exit(0);
10325 if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10326 then
10327 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10328 else
10329 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 rm -fr conftest*
10332 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10334 rm -fr conftest*
10339 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10340 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10341 cat >> confdefs.h <<\EOF
10342 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10348 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10349 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10352 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10353 echo "configure:10354: checking for int16 typedef included by rpc/rpc.h" >&5
10354 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10356 else
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 #include <sys/types.h>
10362 #if defined(HAVE_RPC_RPC_H)
10363 #include <rpc/rpc.h>
10364 #endif
10365 int main() {
10366 int16 testvar;
10367 ; return 0; }
10369 if { (eval echo configure:10370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10370 rm -rf conftest*
10371 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10372 else
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -rf conftest*
10376 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10378 rm -f conftest*
10381 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10382 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10383 cat >> confdefs.h <<\EOF
10384 #define HAVE_INT16_FROM_RPC_RPC_H 1
10389 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10390 echo "configure:10391: checking for uint16 typedef included by rpc/rpc.h" >&5
10391 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10392 echo $ac_n "(cached) $ac_c" 1>&6
10393 else
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 #include <sys/types.h>
10399 #if defined(HAVE_RPC_RPC_H)
10400 #include <rpc/rpc.h>
10401 #endif
10402 int main() {
10403 uint16 testvar;
10404 ; return 0; }
10406 if { (eval echo configure:10407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10407 rm -rf conftest*
10408 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10409 else
10410 echo "configure: failed program was:" >&5
10411 cat conftest.$ac_ext >&5
10412 rm -rf conftest*
10413 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10415 rm -f conftest*
10418 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10419 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10420 cat >> confdefs.h <<\EOF
10421 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10426 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10427 echo "configure:10428: checking for int32 typedef included by rpc/rpc.h" >&5
10428 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10429 echo $ac_n "(cached) $ac_c" 1>&6
10430 else
10432 cat > conftest.$ac_ext <<EOF
10433 #line 10434 "configure"
10434 #include "confdefs.h"
10435 #include <sys/types.h>
10436 #if defined(HAVE_RPC_RPC_H)
10437 #include <rpc/rpc.h>
10438 #endif
10439 int main() {
10440 int32 testvar;
10441 ; return 0; }
10443 if { (eval echo configure:10444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10444 rm -rf conftest*
10445 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10446 else
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10449 rm -rf conftest*
10450 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10452 rm -f conftest*
10455 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10456 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10457 cat >> confdefs.h <<\EOF
10458 #define HAVE_INT32_FROM_RPC_RPC_H 1
10463 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10464 echo "configure:10465: checking for uint32 typedef included by rpc/rpc.h" >&5
10465 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10467 else
10469 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure"
10471 #include "confdefs.h"
10472 #include <sys/types.h>
10473 #if defined(HAVE_RPC_RPC_H)
10474 #include <rpc/rpc.h>
10475 #endif
10476 int main() {
10477 uint32 testvar;
10478 ; return 0; }
10480 if { (eval echo configure:10481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10481 rm -rf conftest*
10482 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10483 else
10484 echo "configure: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10486 rm -rf conftest*
10487 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10489 rm -f conftest*
10492 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10493 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10494 cat >> confdefs.h <<\EOF
10495 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10501 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10502 echo "configure:10503: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10503 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10504 echo $ac_n "(cached) $ac_c" 1>&6
10505 else
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10510 #include <sys/types.h>
10511 #ifdef HAVE_SYS_SECURITY_H
10512 #include <sys/security.h>
10513 #include <prot.h>
10514 #endif /* HAVE_SYS_SECURITY_H */
10515 #if defined(HAVE_RPC_RPC_H)
10516 #include <rpc/rpc.h>
10517 #endif
10518 int main() {
10519 int testvar;
10520 ; return 0; }
10522 if { (eval echo configure:10523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10523 rm -rf conftest*
10524 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10525 else
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10528 rm -rf conftest*
10529 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10531 rm -f conftest*
10534 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10535 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10536 cat >> confdefs.h <<\EOF
10537 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10542 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10543 echo "configure:10544: checking for test routines" >&5
10544 if test "$cross_compiling" = yes; then
10545 echo "configure: warning: cannot run when cross-compiling" 1>&2
10546 else
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10550 #include "${srcdir-.}/tests/trivial.c"
10552 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10553 then
10554 echo "$ac_t""yes" 1>&6
10555 else
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 rm -fr conftest*
10559 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10561 rm -fr conftest*
10565 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10566 echo "configure:10567: checking for ftruncate extend" >&5
10567 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10569 else
10571 if test "$cross_compiling" = yes; then
10572 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10573 else
10574 cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10577 #include "${srcdir-.}/tests/ftruncate.c"
10579 if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10580 then
10581 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10582 else
10583 echo "configure: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 rm -fr conftest*
10586 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10588 rm -fr conftest*
10593 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10594 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10595 cat >> confdefs.h <<\EOF
10596 #define HAVE_FTRUNCATE_EXTEND 1
10601 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10602 echo "configure:10603: checking for AF_LOCAL socket support" >&5
10603 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10607 if test "$cross_compiling" = yes; then
10608 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10609 else
10610 cat > conftest.$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10613 #include "${srcdir-.}/tests/unixsock.c"
10615 if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10616 then
10617 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10618 else
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 rm -fr conftest*
10622 samba_cv_HAVE_WORKING_AF_LOCAL=no
10624 rm -fr conftest*
10629 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10630 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10631 then
10632 cat >> confdefs.h <<\EOF
10633 #define HAVE_WORKING_AF_LOCAL 1
10638 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10639 echo "configure:10640: checking for broken getgroups" >&5
10640 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10642 else
10644 if test "$cross_compiling" = yes; then
10645 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10646 else
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 #include "${srcdir-.}/tests/getgroups.c"
10652 if { (eval echo configure:10653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10653 then
10654 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10655 else
10656 echo "configure: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10658 rm -fr conftest*
10659 samba_cv_HAVE_BROKEN_GETGROUPS=no
10661 rm -fr conftest*
10666 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10667 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10668 cat >> confdefs.h <<\EOF
10669 #define HAVE_BROKEN_GETGROUPS 1
10674 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10675 echo "configure:10676: checking whether getpass should be replaced" >&5
10676 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10678 else
10680 SAVE_CPPFLAGS="$CPPFLAGS"
10681 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10686 #define REPLACE_GETPASS 1
10687 #define NO_CONFIG_H 1
10688 #define main dont_declare_main
10689 #include "${srcdir-.}/lib/getsmbpass.c"
10690 #undef main
10692 int main() {
10694 ; return 0; }
10696 if { (eval echo configure:10697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10697 rm -rf conftest*
10698 samba_cv_REPLACE_GETPASS=yes
10699 else
10700 echo "configure: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10702 rm -rf conftest*
10703 samba_cv_REPLACE_GETPASS=no
10705 rm -f conftest*
10706 CPPFLAGS="$SAVE_CPPFLAGS"
10710 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10711 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10712 cat >> confdefs.h <<\EOF
10713 #define REPLACE_GETPASS 1
10718 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10719 echo "configure:10720: checking for broken inet_ntoa" >&5
10720 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10722 else
10724 if test "$cross_compiling" = yes; then
10725 samba_cv_REPLACE_INET_NTOA=cross
10726 else
10727 cat > conftest.$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10731 #include <stdio.h>
10732 #include <sys/types.h>
10733 #include <netinet/in.h>
10734 #ifdef HAVE_ARPA_INET_H
10735 #include <arpa/inet.h>
10736 #endif
10737 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10738 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10739 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10740 exit(1);}
10742 if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10743 then
10744 samba_cv_REPLACE_INET_NTOA=yes
10745 else
10746 echo "configure: failed program was:" >&5
10747 cat conftest.$ac_ext >&5
10748 rm -fr conftest*
10749 samba_cv_REPLACE_INET_NTOA=no
10751 rm -fr conftest*
10756 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10757 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10758 cat >> confdefs.h <<\EOF
10759 #define REPLACE_INET_NTOA 1
10764 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10765 echo "configure:10766: checking for secure mkstemp" >&5
10766 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10768 else
10770 if test "$cross_compiling" = yes; then
10771 samba_cv_HAVE_SECURE_MKSTEMP=cross
10772 else
10773 cat > conftest.$ac_ext <<EOF
10774 #line 10775 "configure"
10775 #include "confdefs.h"
10776 #include <stdlib.h>
10777 #include <sys/types.h>
10778 #include <sys/stat.h>
10779 #include <unistd.h>
10780 main() {
10781 struct stat st;
10782 char tpl[20]="/tmp/test.XXXXXX";
10783 int fd = mkstemp(tpl);
10784 if (fd == -1) exit(1);
10785 unlink(tpl);
10786 if (fstat(fd, &st) != 0) exit(1);
10787 if ((st.st_mode & 0777) != 0600) exit(1);
10788 exit(0);
10791 if { (eval echo configure:10792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10792 then
10793 samba_cv_HAVE_SECURE_MKSTEMP=yes
10794 else
10795 echo "configure: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10797 rm -fr conftest*
10798 samba_cv_HAVE_SECURE_MKSTEMP=no
10800 rm -fr conftest*
10805 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10806 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10807 cat >> confdefs.h <<\EOF
10808 #define HAVE_SECURE_MKSTEMP 1
10813 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10814 echo "configure:10815: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10815 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10817 else
10819 if test "$cross_compiling" = yes; then
10820 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10821 else
10822 cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10825 #include <unistd.h>
10826 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10828 if { (eval echo configure:10829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10829 then
10830 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10831 else
10832 echo "configure: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10834 rm -fr conftest*
10835 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10837 rm -fr conftest*
10842 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10843 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10844 cat >> confdefs.h <<\EOF
10845 #define SYSCONF_SC_NGROUPS_MAX 1
10850 echo $ac_n "checking for root""... $ac_c" 1>&6
10851 echo "configure:10852: checking for root" >&5
10852 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10854 else
10856 if test "$cross_compiling" = yes; then
10857 samba_cv_HAVE_ROOT=cross
10858 else
10859 cat > conftest.$ac_ext <<EOF
10860 #line 10861 "configure"
10861 #include "confdefs.h"
10862 main() { exit(getuid() != 0); }
10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10865 then
10866 samba_cv_HAVE_ROOT=yes
10867 else
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 rm -fr conftest*
10871 samba_cv_HAVE_ROOT=no
10873 rm -fr conftest*
10878 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10879 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10880 cat >> confdefs.h <<\EOF
10881 #define HAVE_ROOT 1
10884 else
10885 echo "configure: warning: running as non-root will disable some tests" 1>&2
10888 ##################
10889 # look for a method of finding the list of network interfaces
10890 iface=no;
10891 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10892 echo "configure:10893: checking for iface AIX" >&5
10893 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10894 echo $ac_n "(cached) $ac_c" 1>&6
10895 else
10897 if test "$cross_compiling" = yes; then
10898 samba_cv_HAVE_IFACE_AIX=cross
10899 else
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10904 #define HAVE_IFACE_AIX 1
10905 #define AUTOCONF_TEST 1
10906 #include "confdefs.h"
10907 #include "${srcdir-.}/lib/interfaces.c"
10909 if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10910 then
10911 samba_cv_HAVE_IFACE_AIX=yes
10912 else
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10915 rm -fr conftest*
10916 samba_cv_HAVE_IFACE_AIX=no
10918 rm -fr conftest*
10923 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10924 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10925 iface=yes;cat >> confdefs.h <<\EOF
10926 #define HAVE_IFACE_AIX 1
10931 if test $iface = no; then
10932 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10933 echo "configure:10934: checking for iface ifconf" >&5
10934 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10936 else
10938 if test "$cross_compiling" = yes; then
10939 samba_cv_HAVE_IFACE_IFCONF=cross
10940 else
10941 cat > conftest.$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10945 #define HAVE_IFACE_IFCONF 1
10946 #define AUTOCONF_TEST 1
10947 #include "confdefs.h"
10948 #include "${srcdir-.}/lib/interfaces.c"
10950 if { (eval echo configure:10951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10951 then
10952 samba_cv_HAVE_IFACE_IFCONF=yes
10953 else
10954 echo "configure: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10956 rm -fr conftest*
10957 samba_cv_HAVE_IFACE_IFCONF=no
10959 rm -fr conftest*
10964 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10965 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10966 iface=yes;cat >> confdefs.h <<\EOF
10967 #define HAVE_IFACE_IFCONF 1
10973 if test $iface = no; then
10974 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10975 echo "configure:10976: checking for iface ifreq" >&5
10976 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10978 else
10980 if test "$cross_compiling" = yes; then
10981 samba_cv_HAVE_IFACE_IFREQ=cross
10982 else
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10987 #define HAVE_IFACE_IFREQ 1
10988 #define AUTOCONF_TEST 1
10989 #include "confdefs.h"
10990 #include "${srcdir-.}/lib/interfaces.c"
10992 if { (eval echo configure:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10993 then
10994 samba_cv_HAVE_IFACE_IFREQ=yes
10995 else
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10998 rm -fr conftest*
10999 samba_cv_HAVE_IFACE_IFREQ=no
11001 rm -fr conftest*
11006 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11007 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11008 iface=yes;cat >> confdefs.h <<\EOF
11009 #define HAVE_IFACE_IFREQ 1
11016 ################################################
11017 # look for a method of setting the effective uid
11018 seteuid=no;
11019 if test $seteuid = no; then
11020 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11021 echo "configure:11022: checking for setresuid" >&5
11022 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11023 echo $ac_n "(cached) $ac_c" 1>&6
11024 else
11026 if test "$cross_compiling" = yes; then
11027 samba_cv_USE_SETRESUID=cross
11028 else
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11033 #define AUTOCONF_TEST 1
11034 #define USE_SETRESUID 1
11035 #include "confdefs.h"
11036 #include "${srcdir-.}/lib/util_sec.c"
11038 if { (eval echo configure:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11039 then
11040 samba_cv_USE_SETRESUID=yes
11041 else
11042 echo "configure: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11044 rm -fr conftest*
11045 samba_cv_USE_SETRESUID=no
11047 rm -fr conftest*
11052 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11053 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11054 seteuid=yes;cat >> confdefs.h <<\EOF
11055 #define USE_SETRESUID 1
11062 if test $seteuid = no; then
11063 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11064 echo "configure:11065: checking for setreuid" >&5
11065 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11067 else
11069 if test "$cross_compiling" = yes; then
11070 samba_cv_USE_SETREUID=cross
11071 else
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11074 "configure"
11074 #include "confdefs.h"
11076 #define AUTOCONF_TEST 1
11077 #define USE_SETREUID 1
11078 #include "confdefs.h"
11079 #include "${srcdir-.}/lib/util_sec.c"
11081 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11082 then
11083 samba_cv_USE_SETREUID=yes
11084 else
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 rm -fr conftest*
11088 samba_cv_USE_SETREUID=no
11090 rm -fr conftest*
11095 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11096 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11097 seteuid=yes;cat >> confdefs.h <<\EOF
11098 #define USE_SETREUID 1
11104 if test $seteuid = no; then
11105 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11106 echo "configure:11107: checking for seteuid" >&5
11107 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11108 echo $ac_n "(cached) $ac_c" 1>&6
11109 else
11111 if test "$cross_compiling" = yes; then
11112 samba_cv_USE_SETEUID=cross
11113 else
11114 cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11118 #define AUTOCONF_TEST 1
11119 #define USE_SETEUID 1
11120 #include "confdefs.h"
11121 #include "${srcdir-.}/lib/util_sec.c"
11123 if { (eval echo configure:11124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11124 then
11125 samba_cv_USE_SETEUID=yes
11126 else
11127 echo "configure: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 rm -fr conftest*
11130 samba_cv_USE_SETEUID=no
11132 rm -fr conftest*
11137 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11138 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11139 seteuid=yes;cat >> confdefs.h <<\EOF
11140 #define USE_SETEUID 1
11146 if test $seteuid = no; then
11147 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11148 echo "configure:11149: checking for setuidx" >&5
11149 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11151 else
11153 if test "$cross_compiling" = yes; then
11154 samba_cv_USE_SETUIDX=cross
11155 else
11156 cat > conftest.$ac_ext <<EOF
11157 #line 11158 "configure"
11158 #include "confdefs.h"
11160 #define AUTOCONF_TEST 1
11161 #define USE_SETUIDX 1
11162 #include "confdefs.h"
11163 #include "${srcdir-.}/lib/util_sec.c"
11165 if { (eval echo configure:11166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11166 then
11167 samba_cv_USE_SETUIDX=yes
11168 else
11169 echo "configure: failed program was:" >&5
11170 cat conftest.$ac_ext >&5
11171 rm -fr conftest*
11172 samba_cv_USE_SETUIDX=no
11174 rm -fr conftest*
11179 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11180 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11181 seteuid=yes;cat >> confdefs.h <<\EOF
11182 #define USE_SETUIDX 1
11189 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11190 echo "configure:11191: checking for working mmap" >&5
11191 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11192 echo $ac_n "(cached) $ac_c" 1>&6
11193 else
11195 if test "$cross_compiling" = yes; then
11196 samba_cv_HAVE_MMAP=cross
11197 else
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 #include "${srcdir-.}/tests/shared_mmap.c"
11203 if { (eval echo configure:11204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11204 then
11205 samba_cv_HAVE_MMAP=yes
11206 else
11207 echo "configure: failed program was:" >&5
11208 cat conftest.$ac_ext >&5
11209 rm -fr conftest*
11210 samba_cv_HAVE_MMAP=no
11212 rm -fr conftest*
11217 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11218 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11219 cat >> confdefs.h <<\EOF
11220 #define HAVE_MMAP 1
11225 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11226 echo "configure:11227: checking for ftruncate needs root" >&5
11227 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11229 else
11231 if test "$cross_compiling" = yes; then
11232 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11233 else
11234 cat > conftest.$ac_ext <<EOF
11235 #line 11236 "configure"
11236 #include "confdefs.h"
11237 #include "${srcdir-.}/tests/ftruncroot.c"
11239 if { (eval echo configure:11240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11240 then
11241 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11242 else
11243 echo "configure: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11245 rm -fr conftest*
11246 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11248 rm -fr conftest*
11253 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11254 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11255 cat >> confdefs.h <<\EOF
11256 #define FTRUNCATE_NEEDS_ROOT 1
11261 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11262 echo "configure:11263: checking for fcntl locking" >&5
11263 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11265 else
11267 if test "$cross_compiling" = yes; then
11268 samba_cv_HAVE_FCNTL_LOCK=cross
11269 else
11270 cat > conftest.$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11273 #include "${srcdir-.}/tests/fcntl_lock.c"
11275 if { (eval echo configure:11276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11276 then
11277 samba_cv_HAVE_FCNTL_LOCK=yes
11278 else
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 rm -fr conftest*
11282 samba_cv_HAVE_FCNTL_LOCK=no
11284 rm -fr conftest*
11289 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11290 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11291 cat >> confdefs.h <<\EOF
11292 #define HAVE_FCNTL_LOCK 1
11297 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11298 echo "configure:11299: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11299 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11300 echo $ac_n "(cached) $ac_c" 1>&6
11301 else
11303 if test "$cross_compiling" = yes; then
11304 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11305 else
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 #include "${srcdir-.}/tests/fcntl_lock64.c"
11311 if { (eval echo configure:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11312 then
11313 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11314 else
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11317 rm -fr conftest*
11318 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11320 rm -fr conftest*
11325 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11326 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11327 cat >> confdefs.h <<\EOF
11328 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11332 else
11335 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11336 echo "configure:11337: checking for 64 bit fcntl locking" >&5
11337 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11338 echo $ac_n "(cached) $ac_c" 1>&6
11339 else
11341 if test "$cross_compiling" = yes; then
11342 samba_cv_HAVE_STRUCT_FLOCK64=cross
11343 else
11344 cat > conftest.$ac_ext <<EOF
11345 #line 11346 "configure"
11346 #include "confdefs.h"
11348 #if defined(HAVE_UNISTD_H)
11349 #include <unistd.h>
11350 #endif
11351 #include <stdio.h>
11352 #include <stdlib.h>
11354 #ifdef HAVE_FCNTL_H
11355 #include <fcntl.h>
11356 #endif
11358 #ifdef HAVE_SYS_FCNTL_H
11359 #include <sys/fcntl.h>
11360 #endif
11361 main() { struct flock64 fl64;
11362 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11363 exit(0);
11364 #else
11365 exit(1);
11366 #endif
11369 if { (eval echo configure:11370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11370 then
11371 samba_cv_HAVE_STRUCT_FLOCK64=yes
11372 else
11373 echo "configure: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11375 rm -fr conftest*
11376 samba_cv_HAVE_STRUCT_FLOCK64=no
11378 rm -fr conftest*
11383 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11385 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11386 cat >> confdefs.h <<\EOF
11387 #define HAVE_STRUCT_FLOCK64 1
11393 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11394 echo "configure:11395: checking for st_blocks in struct stat" >&5
11395 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11397 else
11399 cat > conftest.$ac_ext <<EOF
11400 #line 11401 "configure"
11401 #include "confdefs.h"
11402 #include <sys/types.h>
11403 #include <sys/stat.h>
11404 #include <unistd.h>
11405 int main() {
11406 struct stat st; st.st_blocks = 0;
11407 ; return 0; }
11409 if { (eval echo configure:11410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11410 rm -rf conftest*
11411 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11412 else
11413 echo "configure: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 rm -rf conftest*
11416 samba_cv_HAVE_STAT_ST_BLOCKS=no
11418 rm -f conftest*
11421 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11422 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11423 cat >> confdefs.h <<\EOF
11424 #define HAVE_STAT_ST_BLOCKS 1
11429 case "$host_os" in
11430 *linux*)
11431 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11432 echo "configure:11433: checking for broken RedHat 7.2 system header files" >&5
11433 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11434 echo $ac_n "(cached) $ac_c" 1>&6
11435 else
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11441 #ifdef HAVE_SYS_VFS_H
11442 #include <sys/vfs.h>
11443 #endif
11444 #ifdef HAVE_SYS_CAPABILITY_H
11445 #include <sys/capability.h>
11446 #endif
11448 int main() {
11449 int i;
11450 ; return 0; }
11452 if { (eval echo configure:11453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11453 rm -rf conftest*
11454 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11455 else
11456 echo "configure: failed program was:" >&5
11457 cat conftest.$ac_ext >&5
11458 rm -rf conftest*
11459 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11461 rm -f conftest*
11464 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11465 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11466 cat >> confdefs.h <<\EOF
11467 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11472 esac
11474 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11475 echo "configure:11476: checking for broken nisplus include files" >&5
11476 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11477 echo $ac_n "(cached) $ac_c" 1>&6
11478 else
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <sys/acl.h>
11484 #if defined(HAVE_RPCSVC_NIS_H)
11485 #include <rpcsvc/nis.h>
11486 #endif
11487 int main() {
11488 int i;
11489 ; return 0; }
11491 if { (eval echo configure:11492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11492 rm -rf conftest*
11493 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11494 else
11495 echo "configure: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11497 rm -rf conftest*
11498 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11500 rm -f conftest*
11503 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11504 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11505 cat >> confdefs.h <<\EOF
11506 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11512 #################################################
11513 # check for smbwrapper support
11514 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11515 echo "configure:11516: checking whether to use smbwrapper" >&5
11516 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11517 if test "${with_smbwrapper+set}" = set; then
11518 withval="$with_smbwrapper"
11519 case "$withval" in
11520 yes)
11521 echo "$ac_t""yes" 1>&6
11522 cat >> confdefs.h <<\EOF
11523 #define WITH_SMBWRAPPER 1
11526 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11528 if test x$ATTEMPT_WRAP32_BUILD = x; then
11529 WRAP32=""
11530 else
11531 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11534 # Conditions under which smbwrapper should not be built.
11536 if test x$PICFLAG = x; then
11537 echo No support for PIC code - disabling smbwrapper and smbsh
11538 WRAP=""
11539 WRAP32=""
11540 elif test x$ac_cv_func_syscall = xno; then
11541 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11542 WRAP=""
11543 WRAP32=""
11547 echo "$ac_t""no" 1>&6
11549 esac
11550 else
11551 echo "$ac_t""no" 1>&6
11556 #################################################
11557 # check for AFS clear-text auth support
11558 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11559 echo "configure:11560: checking whether to use AFS clear-text auth" >&5
11560 # Check whether --with-afs or --without-afs was given.
11561 if test "${with_afs+set}" = set; then
11562 withval="$with_afs"
11563 case "$withval" in
11564 yes)
11565 echo "$ac_t""yes" 1>&6
11566 cat >> confdefs.h <<\EOF
11567 #define WITH_AFS 1
11572 echo "$ac_t""no" 1>&6
11574 esac
11575 else
11576 echo "$ac_t""no" 1>&6
11582 #################################################
11583 # check for the DFS clear-text auth system
11584 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11585 echo "configure:11586: checking whether to use DFS clear-text auth" >&5
11586 # Check whether --with-dfs or --without-dfs was given.
11587 if test "${with_dfs+set}" = set; then
11588 withval="$with_dfs"
11589 case "$withval" in
11590 yes)
11591 echo "$ac_t""yes" 1>&6
11592 cat >> confdefs.h <<\EOF
11593 #define WITH_DFS 1
11598 echo "$ac_t""no" 1>&6
11600 esac
11601 else
11602 echo "$ac_t""no" 1>&6
11608 #################################################
11609 # see if this box has the RedHat location for kerberos
11610 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11611 echo "configure:11612: checking for /usr/kerberos" >&5
11612 if test -d /usr/kerberos; then
11613 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11614 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11615 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11616 echo "$ac_t""yes" 1>&6
11617 else
11618 echo "$ac_t""no" 1>&6
11621 #################################################
11622 # check for location of Kerberos 5 install
11623 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11624 echo "configure:11625: checking for kerberos 5 install path" >&5
11625 # Check whether --with-krb5 or --without-krb5 was given.
11626 if test "${with_krb5+set}" = set; then
11627 withval="$with_krb5"
11628 case "$withval" in
11630 echo "$ac_t""no" 1>&6
11633 echo "$ac_t""yes" 1>&6
11634 LIBS="$LIBS -lkrb5"
11635 CFLAGS="$CFLAGS -I$withval/include"
11636 CPPFLAGS="$CPPFLAGS -I$withval/include"
11637 LDFLAGS="$LDFLAGS -L$withval/lib"
11639 esac
11640 else
11641 echo "$ac_t""no" 1>&6
11646 # now check for krb5.h. Some systems have the libraries without the headers!
11647 # note that this check is done here to allow for different kerberos
11648 # include paths
11649 for ac_hdr in krb5.h
11651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11653 echo "configure:11654: checking for $ac_hdr" >&5
11654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11655 echo $ac_n "(cached) $ac_c" 1>&6
11656 else
11657 cat > conftest.$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11660 #include <$ac_hdr>
11662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11663 { (eval echo configure:11664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11665 if test -z "$ac_err"; then
11666 rm -rf conftest*
11667 eval "ac_cv_header_$ac_safe=yes"
11668 else
11669 echo "$ac_err" >&5
11670 echo "configure: failed program was:" >&5
11671 cat conftest.$ac_ext >&5
11672 rm -rf conftest*
11673 eval "ac_cv_header_$ac_safe=no"
11675 rm -f conftest*
11677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11678 echo "$ac_t""yes" 1>&6
11679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11680 cat >> confdefs.h <<EOF
11681 #define $ac_tr_hdr 1
11684 else
11685 echo "$ac_t""no" 1>&6
11687 done
11690 # now check for gssapi headers. This is also done here to allow for
11691 # different kerberos include paths
11692 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
11694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11696 echo "configure:11697: checking for $ac_hdr" >&5
11697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11698 echo $ac_n "(cached) $ac_c" 1>&6
11699 else
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11703 #include <$ac_hdr>
11705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11706 { (eval echo configure:11707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11708 if test -z "$ac_err"; then
11709 rm -rf conftest*
11710 eval "ac_cv_header_$ac_safe=yes"
11711 else
11712 echo "$ac_err" >&5
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 rm -rf conftest*
11716 eval "ac_cv_header_$ac_safe=no"
11718 rm -f conftest*
11720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11721 echo "$ac_t""yes" 1>&6
11722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11723 cat >> confdefs.h <<EOF
11724 #define $ac_tr_hdr 1
11727 else
11728 echo "$ac_t""no" 1>&6
11730 done
11733 ##################################################################
11734 # we might need the k5crypto and com_err libraries on some systems
11735 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11736 echo "configure:11737: checking for _et_list in -lcom_err" >&5
11737 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11739 echo $ac_n "(cached) $ac_c" 1>&6
11740 else
11741 ac_save_LIBS="$LIBS"
11742 LIBS="-lcom_err $LIBS"
11743 cat > conftest.$ac_ext <<EOF
11744 #line 11745 "configure"
11745 #include "confdefs.h"
11746 /* Override any gcc2 internal prototype to avoid an error. */
11747 /* We use char because int might match the return type of a gcc2
11748 builtin and then its argument prototype would still apply. */
11749 char _et_list();
11751 int main() {
11752 _et_list()
11753 ; return 0; }
11755 if { (eval echo configure:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11756 rm -rf conftest*
11757 eval "ac_cv_lib_$ac_lib_var=yes"
11758 else
11759 echo "configure: failed program was:" >&5
11760 cat conftest.$ac_ext >&5
11761 rm -rf conftest*
11762 eval "ac_cv_lib_$ac_lib_var=no"
11764 rm -f conftest*
11765 LIBS="$ac_save_LIBS"
11768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11769 echo "$ac_t""yes" 1>&6
11770 LIBS="$LIBS -lcom_err"
11771 else
11772 echo "$ac_t""no" 1>&6
11775 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11776 echo "configure:11777: checking for krb5_encrypt_data in -lk5crypto" >&5
11777 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11780 else
11781 ac_save_LIBS="$LIBS"
11782 LIBS="-lk5crypto $LIBS"
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11786 /* Override any gcc2 internal prototype to avoid an error. */
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11789 char krb5_encrypt_data();
11791 int main() {
11792 krb5_encrypt_data()
11793 ; return 0; }
11795 if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11796 rm -rf conftest*
11797 eval "ac_cv_lib_$ac_lib_var=yes"
11798 else
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11801 rm -rf conftest*
11802 eval "ac_cv_lib_$ac_lib_var=no"
11804 rm -f conftest*
11805 LIBS="$ac_save_LIBS"
11808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11809 echo "$ac_t""yes" 1>&6
11810 LIBS="$LIBS -lk5crypto"
11811 else
11812 echo "$ac_t""no" 1>&6
11815 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11816 echo "configure:11817: checking for gss_display_status in -lgssapi_krb5" >&5
11817 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11819 echo $ac_n "(cached) $ac_c" 1>&6
11820 else
11821 ac_save_LIBS="$LIBS"
11822 LIBS="-lgssapi_krb5 $LIBS"
11823 cat > conftest.$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11826 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829 char gss_display_status();
11831 int main() {
11832 gss_display_status()
11833 ; return 0; }
11835 if { (eval echo configure:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11836 rm -rf conftest*
11837 eval "ac_cv_lib_$ac_lib_var=yes"
11838 else
11839 echo "configure: failed program was:" >&5
11840 cat conftest.$ac_ext >&5
11841 rm -rf conftest*
11842 eval "ac_cv_lib_$ac_lib_var=no"
11844 rm -f conftest*
11845 LIBS="$ac_save_LIBS"
11848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11849 echo "$ac_t""yes" 1>&6
11850 LIBS="$LIBS -lgssapi_krb5"
11851 else
11852 echo "$ac_t""no" 1>&6
11857 ########################################################
11858 # now see if we can find the krb5 libs in standard paths
11859 # or as specified above
11860 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11861 echo "configure:11862: checking for krb5_mk_req_extended in -lkrb5" >&5
11862 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
11865 else
11866 ac_save_LIBS="$LIBS"
11867 LIBS="-lkrb5 $LIBS"
11868 cat > conftest.$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11871 /* Override any gcc2 internal prototype to avoid an error. */
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874 char krb5_mk_req_extended();
11876 int main() {
11877 krb5_mk_req_extended()
11878 ; return 0; }
11880 if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11881 rm -rf conftest*
11882 eval "ac_cv_lib_$ac_lib_var=yes"
11883 else
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11886 rm -rf conftest*
11887 eval "ac_cv_lib_$ac_lib_var=no"
11889 rm -f conftest*
11890 LIBS="$ac_save_LIBS"
11893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11894 echo "$ac_t""yes" 1>&6
11895 LIBS="$LIBS -lkrb5";
11896 cat >> confdefs.h <<\EOF
11897 #define HAVE_KRB5 1
11900 else
11901 echo "$ac_t""no" 1>&6
11905 ########################################################
11906 # now see if we can find the gssapi libs in standard paths
11907 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11908 echo "configure:11909: checking for gss_display_status in -lgssapi_krb5" >&5
11909 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11911 echo $ac_n "(cached) $ac_c" 1>&6
11912 else
11913 ac_save_LIBS="$LIBS"
11914 LIBS="-lgssapi_krb5 $LIBS"
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 /* Override any gcc2 internal prototype to avoid an error. */
11919 /* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11921 char gss_display_status();
11923 int main() {
11924 gss_display_status()
11925 ; return 0; }
11927 if { (eval echo configure:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11928 rm -rf conftest*
11929 eval "ac_cv_lib_$ac_lib_var=yes"
11930 else
11931 echo "configure: failed program was:" >&5
11932 cat conftest.$ac_ext >&5
11933 rm -rf conftest*
11934 eval "ac_cv_lib_$ac_lib_var=no"
11936 rm -f conftest*
11937 LIBS="$ac_save_LIBS"
11940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11941 echo "$ac_t""yes" 1>&6
11942 cat >> confdefs.h <<\EOF
11943 #define HAVE_GSSAPI 1
11946 else
11947 echo "$ac_t""no" 1>&6
11952 ##################################################################
11953 # we might need the lber lib on some systems. To avoid link errors
11954 # this test must be before the libldap test
11955 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11956 echo "configure:11957: checking for ber_scanf in -llber" >&5
11957 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11959 echo $ac_n "(cached) $ac_c" 1>&6
11960 else
11961 ac_save_LIBS="$LIBS"
11962 LIBS="-llber $LIBS"
11963 cat > conftest.$ac_ext <<EOF
11964 #line 11965 "configure"
11965 #include "confdefs.h"
11966 /* Override any gcc2 internal prototype to avoid an error. */
11967 /* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969 char ber_scanf();
11971 int main() {
11972 ber_scanf()
11973 ; return 0; }
11975 if { (eval echo configure:11976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11976 rm -rf conftest*
11977 eval "ac_cv_lib_$ac_lib_var=yes"
11978 else
11979 echo "configure: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11981 rm -rf conftest*
11982 eval "ac_cv_lib_$ac_lib_var=no"
11984 rm -f conftest*
11985 LIBS="$ac_save_LIBS"
11988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11989 echo "$ac_t""yes" 1>&6
11990 LIBS="$LIBS -llber"
11991 else
11992 echo "$ac_t""no" 1>&6
11996 ########################################################
11997 # now see if we can find the ldap libs in standard paths
11998 if test x$have_ldap != xyes; then
11999 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12000 echo "configure:12001: checking for ldap_domain2hostlist in -lldap" >&5
12001 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12003 echo $ac_n "(cached) $ac_c" 1>&6
12004 else
12005 ac_save_LIBS="$LIBS"
12006 LIBS="-lldap $LIBS"
12007 cat > conftest.$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12010 /* Override any gcc2 internal prototype to avoid an error. */
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12013 char ldap_domain2hostlist();
12015 int main() {
12016 ldap_domain2hostlist()
12017 ; return 0; }
12019 if { (eval echo configure:12020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12020 rm -rf conftest*
12021 eval "ac_cv_lib_$ac_lib_var=yes"
12022 else
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 rm -rf conftest*
12026 eval "ac_cv_lib_$ac_lib_var=no"
12028 rm -f conftest*
12029 LIBS="$ac_save_LIBS"
12032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12033 echo "$ac_t""yes" 1>&6
12034 LIBS="$LIBS -lldap";
12035 cat >> confdefs.h <<\EOF
12036 #define HAVE_LDAP 1
12039 else
12040 echo "$ac_t""no" 1>&6
12045 #################################################
12046 # check for automount support
12047 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12048 echo "configure:12049: checking whether to use AUTOMOUNT" >&5
12049 # Check whether --with-automount or --without-automount was given.
12050 if test "${with_automount+set}" = set; then
12051 withval="$with_automount"
12052 case "$withval" in
12053 yes)
12054 echo "$ac_t""yes" 1>&6
12055 cat >> confdefs.h <<\EOF
12056 #define WITH_AUTOMOUNT 1
12061 echo "$ac_t""no" 1>&6
12063 esac
12064 else
12065 echo "$ac_t""no" 1>&6
12070 #################################################
12071 # check for smbmount support
12072 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12073 echo "configure:12074: checking whether to use SMBMOUNT" >&5
12074 # Check whether --with-smbmount or --without-smbmount was given.
12075 if test "${with_smbmount+set}" = set; then
12076 withval="$with_smbmount"
12077 case "$withval" in
12078 yes)
12079 case "$host_os" in
12080 *linux*)
12081 echo "$ac_t""yes" 1>&6
12082 cat >> confdefs.h <<\EOF
12083 #define WITH_SMBMOUNT 1
12086 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12089 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12091 esac
12094 echo "$ac_t""no" 1>&6
12095 MPROGS=
12097 esac
12098 else
12099 echo "$ac_t""no" 1>&6
12100 MPROGS=
12106 #################################################
12107 # check for a PAM clear-text auth, accounts, password and session support
12108 with_pam_for_crypt=no
12109 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12110 echo "configure:12111: checking whether to use PAM" >&5
12111 # Check whether --with-pam or --without-pam was given.
12112 if test "${with_pam+set}" = set; then
12113 withval="$with_pam"
12114 case "$withval" in
12115 yes)
12116 echo "$ac_t""yes" 1>&6
12117 cat >> confdefs.h <<\EOF
12118 #define WITH_PAM 1
12121 LIBS="$LIBS -lpam"
12122 with_pam_for_crypt=yes
12125 echo "$ac_t""no" 1>&6
12127 esac
12128 else
12129 echo "$ac_t""no" 1>&6
12134 # we can't build a pam module if we don't have pam.
12135 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12136 echo "configure:12137: checking for pam_get_data in -lpam" >&5
12137 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12140 else
12141 ac_save_LIBS="$LIBS"
12142 LIBS="-lpam $LIBS"
12143 cat > conftest.$ac_ext <<EOF
12144 #line 12145 "configure"
12145 #include "confdefs.h"
12146 /* Override any gcc2 internal prototype to avoid an error. */
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149 char pam_get_data();
12151 int main() {
12152 pam_get_data()
12153 ; return 0; }
12155 if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12156 rm -rf conftest*
12157 eval "ac_cv_lib_$ac_lib_var=yes"
12158 else
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12161 rm -rf conftest*
12162 eval "ac_cv_lib_$ac_lib_var=no"
12164 rm -f conftest*
12165 LIBS="$ac_save_LIBS"
12168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12169 echo "$ac_t""yes" 1>&6
12170 cat >> confdefs.h <<\EOF
12171 #define HAVE_LIBPAM 1
12174 else
12175 echo "$ac_t""no" 1>&6
12179 #################################################
12180 # check for pam_smbpass support
12181 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12182 echo "configure:12183: checking whether to use pam_smbpass" >&5
12183 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12184 if test "${with_pam_smbpass+set}" = set; then
12185 withval="$with_pam_smbpass"
12186 case "$withval" in
12187 yes)
12188 echo "$ac_t""yes" 1>&6
12190 # Conditions under which pam_smbpass should not be built.
12192 if test x$PICFLAG = x; then
12193 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12194 PAM_MOD=""
12195 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12196 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12197 PAM_MOD=""
12198 else
12199 PAM_MOD="bin/pam_smbpass.so"
12203 echo "$ac_t""no" 1>&6
12205 esac
12206 else
12207 echo "$ac_t""no" 1>&6
12213 ###############################################
12214 # test for where we get crypt() from, but only
12215 # if not using PAM
12216 if test $with_pam_for_crypt = no; then
12217 for ac_func in crypt
12219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12220 echo "configure:12221: checking for $ac_func" >&5
12221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12222 echo $ac_n "(cached) $ac_c" 1>&6
12223 else
12224 cat > conftest.$ac_ext <<EOF
12225 #line 12226 "configure"
12226 #include "confdefs.h"
12227 /* System header to define __stub macros and hopefully few prototypes,
12228 which can conflict with char $ac_func(); below. */
12229 #include <assert.h>
12230 /* Override any gcc2 internal prototype to avoid an error. */
12231 /* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12233 char $ac_func();
12235 int main() {
12237 /* The GNU C library defines this for functions which it implements
12238 to always fail with ENOSYS. Some functions are actually named
12239 something starting with __ and the normal name is an alias. */
12240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12241 choke me
12242 #else
12243 $ac_func();
12244 #endif
12246 ; return 0; }
12248 if { (eval echo configure:12249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12249 rm -rf conftest*
12250 eval "ac_cv_func_$ac_func=yes"
12251 else
12252 echo "configure: failed program was:" >&5
12253 cat conftest.$ac_ext >&5
12254 rm -rf conftest*
12255 eval "ac_cv_func_$ac_func=no"
12257 rm -f conftest*
12260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12261 echo "$ac_t""yes" 1>&6
12262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12263 cat >> confdefs.h <<EOF
12264 #define $ac_tr_func 1
12267 else
12268 echo "$ac_t""no" 1>&6
12270 done
12272 if test x"$ac_cv_func_crypt" = x"no"; then
12273 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12274 echo "configure:12275: checking for crypt in -lcrypt" >&5
12275 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12277 echo $ac_n "(cached) $ac_c" 1>&6
12278 else
12279 ac_save_LIBS="$LIBS"
12280 LIBS="-lcrypt $LIBS"
12281 cat > conftest.$ac_ext <<EOF
12282 #line 12283 "configure"
12283 #include "confdefs.h"
12284 /* Override any gcc2 internal prototype to avoid an error. */
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12287 char crypt();
12289 int main() {
12290 crypt()
12291 ; return 0; }
12293 if { (eval echo configure:12294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12294 rm -rf conftest*
12295 eval "ac_cv_lib_$ac_lib_var=yes"
12296 else
12297 echo "configure: failed program was:" >&5
12298 cat conftest.$ac_ext >&5
12299 rm -rf conftest*
12300 eval "ac_cv_lib_$ac_lib_var=no"
12302 rm -f conftest*
12303 LIBS="$ac_save_LIBS"
12306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12307 echo "$ac_t""yes" 1>&6
12308 LIBS="$LIBS -lcrypt";
12309 cat >> confdefs.h <<\EOF
12310 #define HAVE_CRYPT 1
12313 else
12314 echo "$ac_t""no" 1>&6
12321 ## moved after the check for -lcrypt in order to
12322 ## ensure that the necessary libraries are included
12323 ## check checking for truncated salt. Wrapped by the
12324 ## $with_pam_for_crypt variable as above --jerry
12326 if test $with_pam_for_crypt = no; then
12327 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12328 echo "configure:12329: checking for a crypt that needs truncated salt" >&5
12329 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12330 echo $ac_n "(cached) $ac_c" 1>&6
12331 else
12333 if test "$cross_compiling" = yes; then
12334 samba_cv_HAVE_TRUNCATED_SALT=cross
12335 else
12336 cat > conftest.$ac_ext <<EOF
12337 #line 12338 "configure"
12338 #include "confdefs.h"
12339 #include "${srcdir-.}/tests/crypttest.c"
12341 if { (eval echo configure:12342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12342 then
12343 samba_cv_HAVE_TRUNCATED_SALT=no
12344 else
12345 echo "configure: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 rm -fr conftest*
12348 samba_cv_HAVE_TRUNCATED_SALT=yes
12350 rm -fr conftest*
12355 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12356 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12357 cat >> confdefs.h <<\EOF
12358 #define HAVE_TRUNCATED_SALT 1
12366 ########################################################################################
12368 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12370 ########################################################################################
12372 #################################################
12373 # check for a TDB password database
12374 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12375 echo "configure:12376: checking whether to use TDB SAM database" >&5
12376 # Check whether --with-tdbsam or --without-tdbsam was given.
12377 if test "${with_tdbsam+set}" = set; then
12378 withval="$with_tdbsam"
12379 case "$withval" in
12380 yes)
12381 echo "$ac_t""yes" 1>&6
12382 cat >> confdefs.h <<\EOF
12383 #define WITH_TDB_SAM 1
12388 echo "$ac_t""no" 1>&6
12390 esac
12391 else
12392 echo "$ac_t""no" 1>&6
12397 #################################################
12398 # check for a LDAP password database
12399 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12400 echo "configure:12401: checking whether to use LDAP SAM database" >&5
12401 # Check whether --with-ldapsam or --without-ldapsam was given.
12402 if test "${with_ldapsam+set}" = set; then
12403 withval="$with_ldapsam"
12404 case "$withval" in
12405 yes)
12406 echo "$ac_t""yes" 1>&6
12407 cat >> confdefs.h <<\EOF
12408 #define WITH_LDAP_SAM 1
12411 LIBS="-lldap -llber $LIBS"
12414 echo "$ac_t""no" 1>&6
12416 esac
12417 else
12418 echo "$ac_t""no" 1>&6
12423 #################################################
12424 # check for a NISPLUS password database
12425 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12426 echo "configure:12427: checking whether to use NISPLUS SAM database" >&5
12427 # Check whether --with-nisplussam or --without-nisplussam was given.
12428 if test "${with_nisplussam+set}" = set; then
12429 withval="$with_nisplussam"
12430 case "$withval" in
12431 yes)
12432 echo "$ac_t""yes" 1>&6
12433 cat >> confdefs.h <<\EOF
12434 #define WITH_NISPLUS_SAM 1
12439 echo "$ac_t""no" 1>&6
12441 esac
12442 else
12443 echo "$ac_t""no" 1>&6
12448 ########################################################################################
12450 ## END OF TESTS FOR SAM BACKENDS.
12452 ########################################################################################
12454 #################################################
12455 # check for a NISPLUS_HOME support
12456 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12457 echo "configure:12458: checking whether to use NISPLUS_HOME" >&5
12458 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12459 if test "${with_nisplus_home+set}" = set; then
12460 withval="$with_nisplus_home"
12461 case "$withval" in
12462 yes)
12463 echo "$ac_t""yes" 1>&6
12464 cat >> confdefs.h <<\EOF
12465 #define WITH_NISPLUS_HOME 1
12470 echo "$ac_t""no" 1>&6
12472 esac
12473 else
12474 echo "$ac_t""no" 1>&6
12479 #################################################
12480 # check for the secure socket layer
12481 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12482 echo "configure:12483: checking whether to use SSL" >&5
12483 # Check whether --with-ssl or --without-ssl was given.
12484 if test "${with_ssl+set}" = set; then
12485 withval="$with_ssl"
12486 case "$withval" in
12487 yes)
12488 echo "$ac_t""yes" 1>&6
12489 cat >> confdefs.h <<\EOF
12490 #define WITH_SSL 1
12493 withval="/usr/local/ssl" # default
12495 if test "${with_sslinc+set}" = set; then
12497 withval="$with_sslinc"
12498 case "$withval" in
12499 yes|no)
12500 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12501 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12504 CFLAGS="-I${withval} $CFLAGS"
12506 esac
12508 else
12510 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12514 if test "${with_ssllib+set}" = set; then
12516 withval="$with_ssllib"
12517 case "$withval" in
12518 yes|no)
12519 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12520 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12523 LDFLAGS="-L${withval}/lib $LDFLAGS"
12525 esac
12527 else
12529 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12533 LIBS="-lssl -lcrypto $LIBS"
12535 # if test ! -d ${withval}; then
12536 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12537 # exit 1
12538 # fi
12540 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12544 echo "$ac_t""no" 1>&6
12546 esac
12547 else
12548 echo "$ac_t""no" 1>&6
12553 #################################################
12554 # check for syslog logging
12555 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12556 echo "configure:12557: checking whether to use syslog logging" >&5
12557 # Check whether --with-syslog or --without-syslog was given.
12558 if test "${with_syslog+set}" = set; then
12559 withval="$with_syslog"
12560 case "$withval" in
12561 yes)
12562 echo "$ac_t""yes" 1>&6
12563 cat >> confdefs.h <<\EOF
12564 #define WITH_SYSLOG 1
12569 echo "$ac_t""no" 1>&6
12571 esac
12572 else
12573 echo "$ac_t""no" 1>&6
12578 #################################################
12579 # check for a shared memory profiling support
12580 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12581 echo "configure:12582: checking whether to use profiling" >&5
12582 # Check whether --with-profiling-data or --without-profiling-data was given.
12583 if test "${with_profiling_data+set}" = set; then
12584 withval="$with_profiling_data"
12585 case "$withval" in
12586 yes)
12587 echo "$ac_t""yes" 1>&6
12588 cat >> confdefs.h <<\EOF
12589 #define WITH_PROFILE 1
12594 echo "$ac_t""no" 1>&6
12596 esac
12597 else
12598 echo "$ac_t""no" 1>&6
12604 #################################################
12605 # check for experimental disk-quotas support
12606 QUOTAOBJS=smbd/noquotas.o
12608 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12609 echo "configure:12610: checking whether to support disk-quotas" >&5
12610 # Check whether --with-quotas or --without-quotas was given.
12611 if test "${with_quotas+set}" = set; then
12612 withval="$with_quotas"
12613 case "$withval" in
12614 yes)
12615 echo "$ac_t""yes" 1>&6
12616 case "$host_os" in
12617 *linux*)
12618 # Check for kernel 2.4.x quota braindamage...
12619 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12620 echo "configure:12621: checking for linux 2.4.x quota braindamage.." >&5
12621 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12622 echo $ac_n "(cached) $ac_c" 1>&6
12623 else
12625 cat > conftest.$ac_ext <<EOF
12626 #line 12627 "configure"
12627 #include "confdefs.h"
12628 #include <stdio.h>
12629 #include <sys/types.h>
12630 #include <asm/types.h>
12631 #include <linux/quota.h>
12632 #include <mntent.h>
12633 #include <linux/unistd.h>
12634 int main() {
12635 struct mem_dqblk D;
12636 ; return 0; }
12638 if { (eval echo configure:12639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12639 rm -rf conftest*
12640 samba_cv_linux_2_4_quota_braindamage=yes
12641 else
12642 echo "configure: failed program was:" >&5
12643 cat conftest.$ac_ext >&5
12644 rm -rf conftest*
12645 samba_cv_linux_2_4_quota_braindamage=no
12647 rm -f conftest*
12650 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12651 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12652 cat >> confdefs.h <<\EOF
12653 #define LINUX_QUOTAS_2 1
12656 else
12657 cat >> confdefs.h <<\EOF
12658 #define LINUX_QUOTAS_1 1
12665 esac
12666 QUOTAOBJS=smbd/quotas.o
12667 cat >> confdefs.h <<\EOF
12668 #define WITH_QUOTAS 1
12673 echo "$ac_t""no" 1>&6
12675 esac
12676 else
12677 echo "$ac_t""no" 1>&6
12683 #################################################
12684 # check for experimental utmp accounting
12686 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12687 echo "configure:12688: checking whether to support utmp accounting" >&5
12688 # Check whether --with-utmp or --without-utmp was given.
12689 if test "${with_utmp+set}" = set; then
12690 withval="$with_utmp"
12691 case "$withval" in
12692 yes)
12693 echo "$ac_t""yes" 1>&6
12694 cat >> confdefs.h <<\EOF
12695 #define WITH_UTMP 1
12700 echo "$ac_t""no" 1>&6
12702 esac
12703 else
12704 echo "$ac_t""no" 1>&6
12709 #################################################
12710 # set private directory location
12711 # Check whether --with-privatedir or --without-privatedir was given.
12712 if test "${with_privatedir+set}" = set; then
12713 withval="$with_privatedir"
12714 case "$withval" in
12715 yes|no)
12717 # Just in case anybody calls it without argument
12719 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12720 privatedir='${prefix}/private'
12723 privatedir="$withval"
12725 esac
12727 else
12728 privatedir='${prefix}/private'
12734 #################################################
12735 # set lock directory location
12736 # Check whether --with-lockdir or --without-lockdir was given.
12737 if test "${with_lockdir+set}" = set; then
12738 withval="$with_lockdir"
12739 case "$withval" in
12740 yes|no)
12742 # Just in case anybody calls it without argument
12744 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12745 lockdir='$(VARDIR)/locks'
12748 lockdir="$withval"
12750 esac
12752 else
12753 lockdir='$(VARDIR)/locks'
12759 #################################################
12760 # set SWAT directory location
12761 # Check whether --with-swatdir or --without-swatdir was given.
12762 if test "${with_swatdir+set}" = set; then
12763 withval="$with_swatdir"
12764 case "$withval" in
12765 yes|no)
12767 # Just in case anybody does it
12769 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12770 swatdir='${prefix}/swat'
12773 swatdir="$withval"
12775 esac
12777 else
12778 swatdir='${prefix}/swat'
12784 #################################################
12785 # choose native language(s) of man pages
12786 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12787 echo "configure:12788: checking chosen man pages' language(s)" >&5
12788 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12789 if test "${with_manpages_langs+set}" = set; then
12790 withval="$with_manpages_langs"
12791 case "$withval" in
12792 yes|no)
12793 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12794 manlangs="en"
12797 manlangs="$withval"
12799 esac
12801 echo "$ac_t""$manlangs" 1>&6
12802 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12804 else
12805 manlangs="en"
12806 echo "$ac_t""$manlangs" 1>&6
12812 #################################################
12813 # these tests are taken from the GNU fileutils package
12814 echo "checking how to get filesystem space usage" 1>&6
12815 echo "configure:12816: checking how to get filesystem space usage" >&5
12816 space=no
12818 # Test for statvfs64.
12819 if test $space = no; then
12820 # SVR4
12821 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12822 echo "configure:12823: checking statvfs64 function (SVR4)" >&5
12823 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12824 echo $ac_n "(cached) $ac_c" 1>&6
12825 else
12826 if test "$cross_compiling" = yes; then
12827 fu_cv_sys_stat_statvfs64=cross
12828 else
12829 cat > conftest.$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12833 #if defined(HAVE_UNISTD_H)
12834 #include <unistd.h>
12835 #endif
12836 #include <sys/types.h>
12837 #include <sys/statvfs.h>
12838 main ()
12840 struct statvfs64 fsd;
12841 exit (statvfs64 (".", &fsd));
12844 if { (eval echo configure:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12845 then
12846 fu_cv_sys_stat_statvfs64=yes
12847 else
12848 echo "configure: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12850 rm -fr conftest*
12851 fu_cv_sys_stat_statvfs64=no
12853 rm -fr conftest*
12858 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12859 if test $fu_cv_sys_stat_statvfs64 = yes; then
12860 space=yes
12861 cat >> confdefs.h <<\EOF
12862 #define STAT_STATVFS64 1
12868 # Perform only the link test since it seems there are no variants of the
12869 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12870 # because that got a false positive on SCO OSR5. Adding the declaration
12871 # of a `struct statvfs' causes this test to fail (as it should) on such
12872 # systems. That system is reported to work fine with STAT_STATFS4 which
12873 # is what it gets when this test fails.
12874 if test $space = no; then
12875 # SVR4
12876 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12877 echo "configure:12878: checking statvfs function (SVR4)" >&5
12878 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12880 else
12881 cat > conftest.$ac_ext <<EOF
12882 #line 12883 "configure"
12883 #include "confdefs.h"
12884 #include <sys/types.h>
12885 #include <sys/statvfs.h>
12886 int main() {
12887 struct statvfs fsd; statvfs (0, &fsd);
12888 ; return 0; }
12890 if { (eval echo configure:12891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12891 rm -rf conftest*
12892 fu_cv_sys_stat_statvfs=yes
12893 else
12894 echo "configure: failed program was:" >&5
12895 cat conftest.$ac_ext >&5
12896 rm -rf conftest*
12897 fu_cv_sys_stat_statvfs=no
12899 rm -f conftest*
12902 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12903 if test $fu_cv_sys_stat_statvfs = yes; then
12904 space=yes
12905 cat >> confdefs.h <<\EOF
12906 #define STAT_STATVFS 1
12912 if test $space = no; then
12913 # DEC Alpha running OSF/1
12914 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12915 echo "configure:12916: checking for 3-argument statfs function (DEC OSF/1)" >&5
12916 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
12918 else
12919 if test "$cross_compiling" = yes; then
12920 fu_cv_sys_stat_statfs3_osf1=no
12921 else
12922 cat > conftest.$ac_ext <<EOF
12923 #line 12924 "configure"
12924 #include "confdefs.h"
12926 #include <sys/param.h>
12927 #include <sys/types.h>
12928 #include <sys/mount.h>
12929 main ()
12931 struct statfs fsd;
12932 fsd.f_fsize = 0;
12933 exit (statfs (".", &fsd, sizeof (struct statfs)));
12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12937 then
12938 fu_cv_sys_stat_statfs3_osf1=yes
12939 else
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12942 rm -fr conftest*
12943 fu_cv_sys_stat_statfs3_osf1=no
12945 rm -fr conftest*
12950 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12951 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12952 space=yes
12953 cat >> confdefs.h <<\EOF
12954 #define STAT_STATFS3_OSF1 1
12960 if test $space = no; then
12961 # AIX
12962 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12963 echo "configure:12964: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12964 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12965 echo $ac_n "(cached) $ac_c" 1>&6
12966 else
12967 if test "$cross_compiling" = yes; then
12968 fu_cv_sys_stat_statfs2_bsize=no
12969 else
12970 cat > conftest.$ac_ext <<EOF
12971 #line 12972 "configure"
12972 #include "confdefs.h"
12974 #ifdef HAVE_SYS_PARAM_H
12975 #include <sys/param.h>
12976 #endif
12977 #ifdef HAVE_SYS_MOUNT_H
12978 #include <sys/mount.h>
12979 #endif
12980 #ifdef HAVE_SYS_VFS_H
12981 #include <sys/vfs.h>
12982 #endif
12983 main ()
12985 struct statfs fsd;
12986 fsd.f_bsize = 0;
12987 exit (statfs (".", &fsd));
12990 if { (eval echo configure:12991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12991 then
12992 fu_cv_sys_stat_statfs2_bsize=yes
12993 else
12994 echo "configure: failed program was:" >&5
12995 cat conftest.$ac_ext >&5
12996 rm -fr conftest*
12997 fu_cv_sys_stat_statfs2_bsize=no
12999 rm -fr conftest*
13004 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13005 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13006 space=yes
13007 cat >> confdefs.h <<\EOF
13008 #define STAT_STATFS2_BSIZE 1
13014 if test $space = no; then
13015 # SVR3
13016 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13017 echo "configure:13018: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13018 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13019 echo $ac_n "(cached) $ac_c" 1>&6
13020 else
13021 if test "$cross_compiling" = yes; then
13022 fu_cv_sys_stat_statfs4=no
13023 else
13024 cat > conftest.$ac_ext <<EOF
13025 #line 13026 "configure"
13026 #include "confdefs.h"
13027 #include <sys/types.h>
13028 #include <sys/statfs.h>
13029 main ()
13031 struct statfs fsd;
13032 exit (statfs (".", &fsd, sizeof fsd, 0));
13035 if { (eval echo configure:13036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13036 then
13037 fu_cv_sys_stat_statfs4=yes
13038 else
13039 echo "configure: failed program was:" >&5
13040 cat conftest.$ac_ext >&5
13041 rm -fr conftest*
13042 fu_cv_sys_stat_statfs4=no
13044 rm -fr conftest*
13049 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13050 if test $fu_cv_sys_stat_statfs4 = yes; then
13051 space=yes
13052 cat >> confdefs.h <<\EOF
13053 #define STAT_STATFS4 1
13059 if test $space = no; then
13060 # 4.4BSD and NetBSD
13061 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13062 echo "configure:13063: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13063 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13064 echo $ac_n "(cached) $ac_c" 1>&6
13065 else
13066 if test "$cross_compiling" = yes; then
13067 fu_cv_sys_stat_statfs2_fsize=no
13068 else
13069 cat > conftest.$ac_ext <<EOF
13070 #line 13071 "configure"
13071 #include "confdefs.h"
13072 #include <sys/types.h>
13073 #ifdef HAVE_SYS_PARAM_H
13074 #include <sys/param.h>
13075 #endif
13076 #ifdef HAVE_SYS_MOUNT_H
13077 #include <sys/mount.h>
13078 #endif
13079 main ()
13081 struct statfs fsd;
13082 fsd.f_fsize = 0;
13083 exit (statfs (".", &fsd));
13086 if { (eval echo configure:13087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13087 then
13088 fu_cv_sys_stat_statfs2_fsize=yes
13089 else
13090 echo "configure: failed program was:" >&5
13091 cat conftest.$ac_ext >&5
13092 rm -fr conftest*
13093 fu_cv_sys_stat_statfs2_fsize=no
13095 rm -fr conftest*
13100 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13101 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13102 space=yes
13103 cat >> confdefs.h <<\EOF
13104 #define STAT_STATFS2_FSIZE 1
13110 if test $space = no; then
13111 # Ultrix
13112 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13113 echo "configure:13114: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13114 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13116 else
13117 if test "$cross_compiling" = yes; then
13118 fu_cv_sys_stat_fs_data=no
13119 else
13120 cat > conftest.$ac_ext <<EOF
13121 #line 13122 "configure"
13122 #include "confdefs.h"
13123 #include <sys/types.h>
13124 #ifdef HAVE_SYS_PARAM_H
13125 #include <sys/param.h>
13126 #endif
13127 #ifdef HAVE_SYS_MOUNT_H
13128 #include <sys/mount.h>
13129 #endif
13130 #ifdef HAVE_SYS_FS_TYPES_H
13131 #include <sys/fs_types.h>
13132 #endif
13133 main ()
13135 struct fs_data fsd;
13136 /* Ultrix's statfs returns 1 for success,
13137 0 for not mounted, -1 for failure. */
13138 exit (statfs (".", &fsd) != 1);
13141 if { (eval echo configure:13142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13142 then
13143 fu_cv_sys_stat_fs_data=yes
13144 else
13145 echo "configure: failed program was:" >&5
13146 cat conftest.$ac_ext >&5
13147 rm -fr conftest*
13148 fu_cv_sys_stat_fs_data=no
13150 rm -fr conftest*
13155 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13156 if test $fu_cv_sys_stat_fs_data = yes; then
13157 space=yes
13158 cat >> confdefs.h <<\EOF
13159 #define STAT_STATFS2_FS_DATA 1
13166 # As a gating factor for large file support, in order to
13167 # use <4GB files we must have the following minimal support
13168 # available.
13169 # long long, and a 64 bit off_t or off64_t.
13170 # If we don't have all of these then disable large
13171 # file support.
13173 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13174 echo "configure:13175: checking if large file support can be enabled" >&5
13175 cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13179 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13180 #include <sys/types.h>
13181 #else
13182 __COMPILE_ERROR_
13183 #endif
13185 int main() {
13186 int i
13187 ; return 0; }
13189 if { (eval echo configure:13190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13190 rm -rf conftest*
13191 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13192 else
13193 echo "configure: failed program was:" >&5
13194 cat conftest.$ac_ext >&5
13195 rm -rf conftest*
13196 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13198 rm -f conftest*
13199 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13200 cat >> confdefs.h <<\EOF
13201 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13205 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13207 # Check whether --with-spinlocks or --without-spinlocks was given.
13208 if test "${with_spinlocks+set}" = set; then
13209 withval="$with_spinlocks"
13213 if test "x$with_spinlocks" = "xyes"; then
13214 cat >> confdefs.h <<\EOF
13215 #define USE_SPINLOCKS 1
13219 case "$host_cpu" in
13220 sparc)
13221 cat >> confdefs.h <<\EOF
13222 #define SPARC_SPINLOCKS 1
13227 i386|i486|i586|i686)
13228 cat >> confdefs.h <<\EOF
13229 #define INTEL_SPINLOCKS 1
13234 mips)
13235 cat >> confdefs.h <<\EOF
13236 #define MIPS_SPINLOCKS 1
13241 powerpc)
13242 cat >> confdefs.h <<\EOF
13243 #define POWERPC_SPINLOCKS 1
13247 esac
13250 #################################################
13251 # check for ACL support
13253 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13254 echo "configure:13255: checking whether to support ACLs" >&5
13255 # Check whether --with-acl-support or --without-acl-support was given.
13256 if test "${with_acl_support+set}" = set; then
13257 withval="$with_acl_support"
13258 case "$withval" in
13259 yes)
13261 case "$host_os" in
13262 *sysv5*)
13263 echo "$ac_t""Using UnixWare ACLs" 1>&6
13264 cat >> confdefs.h <<\EOF
13265 #define HAVE_UNIXWARE_ACLS 1
13269 *solaris*)
13270 echo "$ac_t""Using solaris ACLs" 1>&6
13271 cat >> confdefs.h <<\EOF
13272 #define HAVE_SOLARIS_ACLS 1
13276 *hpux*)
13277 echo "$ac_t""Using HPUX ACLs" 1>&6
13278 cat >> confdefs.h <<\EOF
13279 #define HAVE_HPUX_ACLS 1
13283 *irix*)
13284 echo "$ac_t""Using IRIX ACLs" 1>&6
13285 cat >> confdefs.h <<\EOF
13286 #define HAVE_IRIX_ACLS 1
13290 *aix*)
13291 echo "$ac_t""Using AIX ACLs" 1>&6
13292 cat >> confdefs.h <<\EOF
13293 #define HAVE_AIX_ACLS 1
13297 *osf*)
13298 echo "$ac_t""Using Tru64 ACLs" 1>&6
13299 cat >> confdefs.h <<\EOF
13300 #define HAVE_TRU64_ACLS 1
13303 LIBS="$LIBS -lpacl"
13306 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13307 echo "configure:13308: checking for acl_get_file in -lacl" >&5
13308 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13310 echo $ac_n "(cached) $ac_c" 1>&6
13311 else
13312 ac_save_LIBS="$LIBS"
13313 LIBS="-lacl $LIBS"
13314 cat > conftest.$ac_ext <<EOF
13315 #line 13316 "configure"
13316 #include "confdefs.h"
13317 /* Override any gcc2 internal prototype to avoid an error. */
13318 /* We use char because int might match the return type of a gcc2
13319 builtin and then its argument prototype would still apply. */
13320 char acl_get_file();
13322 int main() {
13323 acl_get_file()
13324 ; return 0; }
13326 if { (eval echo configure:13327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13327 rm -rf conftest*
13328 eval "ac_cv_lib_$ac_lib_var=yes"
13329 else
13330 echo "configure: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 rm -rf conftest*
13333 eval "ac_cv_lib_$ac_lib_var=no"
13335 rm -f conftest*
13336 LIBS="$ac_save_LIBS"
13339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13340 echo "$ac_t""yes" 1>&6
13341 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13342 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13343 cat >> confdefs.h <<EOF
13344 #define $ac_tr_lib 1
13347 LIBS="-lacl $LIBS"
13349 else
13350 echo "$ac_t""no" 1>&6
13353 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13354 echo "configure:13355: checking for ACL support" >&5
13355 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357 else
13359 cat > conftest.$ac_ext <<EOF
13360 #line 13361 "configure"
13361 #include "confdefs.h"
13362 #include <sys/types.h>
13363 #include <sys/acl.h>
13364 int main() {
13365 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13366 ; return 0; }
13368 if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13369 rm -rf conftest*
13370 samba_cv_HAVE_POSIX_ACLS=yes
13371 else
13372 echo "configure: failed program was:" >&5
13373 cat conftest.$ac_ext >&5
13374 rm -rf conftest*
13375 samba_cv_HAVE_POSIX_ACLS=no
13377 rm -f conftest*
13380 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13381 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13382 echo "$ac_t""Using posix ACLs" 1>&6
13383 cat >> confdefs.h <<\EOF
13384 #define HAVE_POSIX_ACLS 1
13387 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13388 echo "configure:13389: checking for acl_get_perm_np" >&5
13389 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13390 echo $ac_n "(cached) $ac_c" 1>&6
13391 else
13393 cat > conftest.$ac_ext <<EOF
13394 #line 13395 "configure"
13395 #include "confdefs.h"
13396 #include <sys/types.h>
13397 #include <sys/acl.h>
13398 int main() {
13399 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13400 ; return 0; }
13402 if { (eval echo configure:13403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13403 rm -rf conftest*
13404 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13405 else
13406 echo "configure: failed program was:" >&5
13407 cat conftest.$ac_ext >&5
13408 rm -rf conftest*
13409 samba_cv_HAVE_ACL_GET_PERM_NP=no
13411 rm -f conftest*
13414 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13415 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13416 cat >> confdefs.h <<\EOF
13417 #define HAVE_ACL_GET_PERM_NP 1
13423 esac
13426 echo "$ac_t""no" 1>&6
13427 cat >> confdefs.h <<\EOF
13428 #define HAVE_NO_ACLS 1
13432 esac
13433 else
13434 cat >> confdefs.h <<\EOF
13435 #define HAVE_NO_ACLS 1
13438 echo "$ac_t""no" 1>&6
13443 #################################################
13444 # Check whether winbind is supported on this platform. If so we need to
13445 # build and install client programs (WINBIND_TARGETS), sbin programs
13446 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13448 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13449 echo "configure:13450: checking whether to build winbind" >&5
13451 # Initially, the value of $host_os decides whether winbind is supported
13453 case "$host_os" in
13454 *linux*|*solaris*|*irix*)
13455 HAVE_WINBIND=yes
13458 HAVE_WINBIND=no
13459 winbind_no_reason=", unsupported on $host_os"
13461 esac
13463 # Check the setting of --with-winbindd
13465 # Check whether --with-winbind or --without-winbind was given.
13466 if test "${with_winbind+set}" = set; then
13467 withval="$with_winbind"
13469 case "$withval" in
13470 yes)
13471 HAVE_WINBIND=yes
13474 HAVE_WINBIND=no
13475 winbind_reason=""
13477 esac
13481 # We need unix domain sockets for winbind
13483 if test x"$HAVE_WINBIND" = x"yes"; then
13484 if test x"$samba_cv_unixsocket" = x"no"; then
13485 winbind_no_reason=", no unix domain socket support on $host_os"
13486 HAVE_WINBIND=no
13490 # Display test results
13492 WINBIND_TARGETS=""
13493 WINBIND_STARGETS=""
13494 WINBIND_LTARGETS=""
13495 WINBIND_PAM_PROGS=""
13497 if test x"$HAVE_WINBIND" = x"yes"; then
13498 echo "$ac_t""yes" 1>&6
13500 WINBIND_TARGETS="bin/wbinfo"
13501 WINBIND_STARGETS="bin/winbindd"
13502 if test x"$BLDSHARED" = x"true"; then
13503 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13504 if test x"$with_pam" = x"yes"; then
13505 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13508 else
13509 echo "$ac_t""no$winbind_no_reason" 1>&6
13512 # Substitution time!
13519 #################################################
13520 # Check to see if we should use the included popt
13522 # Check whether --with-included-popt or --without-included-popt was given.
13523 if test "${with_included_popt+set}" = set; then
13524 withval="$with_included_popt"
13526 case "$withval" in
13527 yes)
13528 INCLUDED_POPT=yes
13531 INCLUDED_POPT=no
13533 esac
13536 if test x"$INCLUDED_POPT" != x"yes"; then
13537 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13538 echo "configure:13539: checking for poptGetContext in -lpopt" >&5
13539 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13541 echo $ac_n "(cached) $ac_c" 1>&6
13542 else
13543 ac_save_LIBS="$LIBS"
13544 LIBS="-lpopt $LIBS"
13545 cat > conftest.$ac_ext <<EOF
13546 #line 13547 "configure"
13547 #include "confdefs.h"
13548 /* Override any gcc2 internal prototype to avoid an error. */
13549 /* We use char because int might match the return type of a gcc2
13550 builtin and then its argument prototype would still apply. */
13551 char poptGetContext();
13553 int main() {
13554 poptGetContext()
13555 ; return 0; }
13557 if { (eval echo configure:13558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13558 rm -rf conftest*
13559 eval "ac_cv_lib_$ac_lib_var=yes"
13560 else
13561 echo "configure: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 rm -rf conftest*
13564 eval "ac_cv_lib_$ac_lib_var=no"
13566 rm -f conftest*
13567 LIBS="$ac_save_LIBS"
13570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13571 echo "$ac_t""yes" 1>&6
13572 INCLUDED_POPT=no
13573 else
13574 echo "$ac_t""no" 1>&6
13575 INCLUDED_POPT=yes
13580 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13581 echo "configure:13582: checking whether to use included popt" >&5
13582 if test x"$INCLUDED_POPT" = x"yes"; then
13583 echo "$ac_t""$srcdir/popt" 1>&6
13584 BUILD_POPT='$(POPT_OBJS)'
13585 FLAGS1="-I$srcdir/popt"
13586 else
13587 echo "$ac_t""no" 1>&6
13588 LIBS="$LIBS -lpopt"
13593 #################################################
13594 # final configure stuff
13596 echo "checking configure summary"
13597 if test "$cross_compiling" = yes; then
13599 else
13600 cat > conftest.$ac_ext <<EOF
13601 #line 13602 "configure"
13602 #include "confdefs.h"
13603 #include "${srcdir-.}/tests/summary.c"
13605 if { (eval echo configure:13606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13606 then
13607 echo "configure OK";
13608 else
13609 echo "configure: failed program was:" >&5
13610 cat conftest.$ac_ext >&5
13611 rm -fr conftest*
13612 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13614 rm -fr conftest*
13618 builddir=`pwd`
13621 trap '' 1 2 15
13622 cat > confcache <<\EOF
13623 # This file is a shell script that caches the results of configure
13624 # tests run on this system so they can be shared between configure
13625 # scripts and configure runs. It is not useful on other systems.
13626 # If it contains results you don't want to keep, you may remove or edit it.
13628 # By default, configure uses ./config.cache as the cache file,
13629 # creating it if it does not exist already. You can give configure
13630 # the --cache-file=FILE option to use a different cache file; that is
13631 # what configure does when it calls configure scripts in
13632 # subdirectories, so they share the cache.
13633 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13634 # config.status only pays attention to the cache file if you give it the
13635 # --recheck option to rerun configure.
13638 # The following way of writing the cache mishandles newlines in values,
13639 # but we know of no workaround that is simple, portable, and efficient.
13640 # So, don't put newlines in cache variables' values.
13641 # Ultrix sh set writes to stderr and can't be redirected directly,
13642 # and sets the high bit in the cache file unless we assign to the vars.
13643 (set) 2>&1 |
13644 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13645 *ac_space=\ *)
13646 # `set' does not quote correctly, so add quotes (double-quote substitution
13647 # turns \\\\ into \\, and sed turns \\ into \).
13648 sed -n \
13649 -e "s/'/'\\\\''/g" \
13650 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13653 # `set' quotes correctly as required by POSIX, so do not add quotes.
13654 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13656 esac >> confcache
13657 if cmp -s $cache_file confcache; then
13659 else
13660 if test -w $cache_file; then
13661 echo "updating cache $cache_file"
13662 cat confcache > $cache_file
13663 else
13664 echo "not updating unwritable cache $cache_file"
13667 rm -f confcache
13669 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13672 # Let make expand exec_prefix.
13673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13675 # Any assignment to VPATH causes Sun make to only execute
13676 # the first set of double-colon rules, so remove it if not needed.
13677 # If there is a colon in the path, we need to keep it.
13678 if test "x$srcdir" = x.; then
13679 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13682 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13684 DEFS=-DHAVE_CONFIG_H
13686 # Without the "./", some shells look in PATH for config.status.
13687 : ${CONFIG_STATUS=./config.status}
13689 echo creating $CONFIG_STATUS
13690 rm -f $CONFIG_STATUS
13691 cat > $CONFIG_STATUS <<EOF
13692 #! /bin/sh
13693 # Generated automatically by configure.
13694 # Run this file to recreate the current configuration.
13695 # This directory was configured as follows,
13696 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13698 # $0 $ac_configure_args
13700 # Compiler output produced by configure, useful for debugging
13701 # configure, is in ./config.log if it exists.
13703 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13704 for ac_option
13706 case "\$ac_option" in
13707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13708 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13709 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13710 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13711 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13712 exit 0 ;;
13713 -help | --help | --hel | --he | --h)
13714 echo "\$ac_cs_usage"; exit 0 ;;
13715 *) echo "\$ac_cs_usage"; exit 1 ;;
13716 esac
13717 done
13719 ac_given_srcdir=$srcdir
13720 ac_given_INSTALL="$INSTALL"
13722 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13724 cat >> $CONFIG_STATUS <<EOF
13726 # Protect against being on the right side of a sed subst in config.status.
13727 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13728 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13729 $ac_vpsub
13730 $extrasub
13731 s%@SHELL@%$SHELL%g
13732 s%@CFLAGS@%$CFLAGS%g
13733 s%@CPPFLAGS@%$CPPFLAGS%g
13734 s%@CXXFLAGS@%$CXXFLAGS%g
13735 s%@FFLAGS@%$FFLAGS%g
13736 s%@DEFS@%$DEFS%g
13737 s%@LDFLAGS@%$LDFLAGS%g
13738 s%@LIBS@%$LIBS%g
13739 s%@exec_prefix@%$exec_prefix%g
13740 s%@prefix@%$prefix%g
13741 s%@program_transform_name@%$program_transform_name%g
13742 s%@bindir@%$bindir%g
13743 s%@sbindir@%$sbindir%g
13744 s%@libexecdir@%$libexecdir%g
13745 s%@datadir@%$datadir%g
13746 s%@sysconfdir@%$sysconfdir%g
13747 s%@sharedstatedir@%$sharedstatedir%g
13748 s%@localstatedir@%$localstatedir%g
13749 s%@libdir@%$libdir%g
13750 s%@includedir@%$includedir%g
13751 s%@oldincludedir@%$oldincludedir%g
13752 s%@infodir@%$infodir%g
13753 s%@mandir@%$mandir%g
13754 s%@RUNPROG@%$RUNPROG%g
13755 s%@MPROGS@%$MPROGS%g
13756 s%@LDSHFLAGS@%$LDSHFLAGS%g
13757 s%@SHLD@%$SHLD%g
13758 s%@HOST_OS@%$HOST_OS%g
13759 s%@PAM_MOD@%$PAM_MOD%g
13760 s%@WRAP@%$WRAP%g
13761 s%@WRAP32@%$WRAP32%g
13762 s%@PICFLAG@%$PICFLAG%g
13763 s%@PICSUFFIX@%$PICSUFFIX%g
13764 s%@POBAD_CC@%$POBAD_CC%g
13765 s%@SHLIBEXT@%$SHLIBEXT%g
13766 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13767 s%@CC@%$CC%g
13768 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13769 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13770 s%@INSTALL_DATA@%$INSTALL_DATA%g
13771 s%@AWK@%$AWK%g
13772 s%@BROKEN_CC@%$BROKEN_CC%g
13773 s%@host@%$host%g
13774 s%@host_alias@%$host_alias%g
13775 s%@host_cpu@%$host_cpu%g
13776 s%@host_vendor@%$host_vendor%g
13777 s%@host_os@%$host_os%g
13778 s%@target@%$target%g
13779 s%@target_alias@%$target_alias%g
13780 s%@target_cpu@%$target_cpu%g
13781 s%@target_vendor@%$target_vendor%g
13782 s%@target_os@%$target_os%g
13783 s%@build@%$build%g
13784 s%@build_alias@%$build_alias%g
13785 s%@build_cpu@%$build_cpu%g
13786 s%@build_vendor@%$build_vendor%g
13787 s%@build_os@%$build_os%g
13788 s%@CPP@%$CPP%g
13789 s%@LIBOBJS@%$LIBOBJS%g
13790 s%@TERMLIBS@%$TERMLIBS%g
13791 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13792 s%@ROFF@%$ROFF%g
13793 s%@QUOTAOBJS@%$QUOTAOBJS%g
13794 s%@privatedir@%$privatedir%g
13795 s%@lockdir@%$lockdir%g
13796 s%@swatdir@%$swatdir%g
13797 s%@manlangs@%$manlangs%g
13798 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13799 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13800 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13801 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13802 s%@BUILD_POPT@%$BUILD_POPT%g
13803 s%@FLAGS1@%$FLAGS1%g
13804 s%@builddir@%$builddir%g
13806 CEOF
13809 cat >> $CONFIG_STATUS <<\EOF
13811 # Split the substitutions into bite-sized pieces for seds with
13812 # small command number limits, like on Digital OSF/1 and HP-UX.
13813 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13814 ac_file=1 # Number of current file.
13815 ac_beg=1 # First line for current file.
13816 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13817 ac_more_lines=:
13818 ac_sed_cmds=""
13819 while $ac_more_lines; do
13820 if test $ac_beg -gt 1; then
13821 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13822 else
13823 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13825 if test ! -s conftest.s$ac_file; then
13826 ac_more_lines=false
13827 rm -f conftest.s$ac_file
13828 else
13829 if test -z "$ac_sed_cmds"; then
13830 ac_sed_cmds="sed -f conftest.s$ac_file"
13831 else
13832 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13834 ac_file=`expr $ac_file + 1`
13835 ac_beg=$ac_end
13836 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13838 done
13839 if test -z "$ac_sed_cmds"; then
13840 ac_sed_cmds=cat
13844 cat >> $CONFIG_STATUS <<EOF
13846 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13848 cat >> $CONFIG_STATUS <<\EOF
13849 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13851 case "$ac_file" in
13852 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13853 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13854 *) ac_file_in="${ac_file}.in" ;;
13855 esac
13857 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13859 # Remove last slash and all that follows it. Not all systems have dirname.
13860 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13862 # The file is in a subdirectory.
13863 test ! -d "$ac_dir" && mkdir "$ac_dir"
13864 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13865 # A "../" for each directory in $ac_dir_suffix.
13866 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13867 else
13868 ac_dir_suffix= ac_dots=
13871 case "$ac_given_srcdir" in
13872 .) srcdir=.
13873 if test -z "$ac_dots"; then top_srcdir=.
13874 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13875 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13876 *) # Relative path.
13877 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13878 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13879 esac
13881 case "$ac_given_INSTALL" in
13882 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13883 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13884 esac
13886 echo creating "$ac_file"
13887 rm -f "$ac_file"
13888 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13889 case "$ac_file" in
13890 *Makefile*) ac_comsub="1i\\
13891 # $configure_input" ;;
13892 *) ac_comsub= ;;
13893 esac
13895 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13896 sed -e "$ac_comsub
13897 s%@configure_input@%$configure_input%g
13898 s%@srcdir@%$srcdir%g
13899 s%@top_srcdir@%$top_srcdir%g
13900 s%@INSTALL@%$INSTALL%g
13901 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13902 fi; done
13903 rm -f conftest.s*
13905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13908 # ac_d sets the value in "#define NAME VALUE" lines.
13909 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13910 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13911 ac_dC='\3'
13912 ac_dD='%g'
13913 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13914 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13915 ac_uB='\([ ]\)%\1#\2define\3'
13916 ac_uC=' '
13917 ac_uD='\4%g'
13918 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13919 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13920 ac_eB='$%\1#\2define\3'
13921 ac_eC=' '
13922 ac_eD='%g'
13924 if test "${CONFIG_HEADERS+set}" != set; then
13926 cat >> $CONFIG_STATUS <<EOF
13927 CONFIG_HEADERS="include/config.h"
13929 cat >> $CONFIG_STATUS <<\EOF
13931 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13933 case "$ac_file" in
13934 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13935 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13936 *) ac_file_in="${ac_file}.in" ;;
13937 esac
13939 echo creating $ac_file
13941 rm -f conftest.frag conftest.in conftest.out
13942 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13943 cat $ac_file_inputs > conftest.in
13947 # Transform confdefs.h into a sed script conftest.vals that substitutes
13948 # the proper values into config.h.in to produce config.h. And first:
13949 # Protect against being on the right side of a sed subst in config.status.
13950 # Protect against being in an unquoted here document in config.status.
13951 rm -f conftest.vals
13952 cat > conftest.hdr <<\EOF
13953 s/[\\&%]/\\&/g
13954 s%[\\$`]%\\&%g
13955 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13956 s%ac_d%ac_u%gp
13957 s%ac_u%ac_e%gp
13959 sed -n -f conftest.hdr confdefs.h > conftest.vals
13960 rm -f conftest.hdr
13962 # This sed command replaces #undef with comments. This is necessary, for
13963 # example, in the case of _POSIX_SOURCE, which is predefined and required
13964 # on some systems where configure will not decide to define it.
13965 cat >> conftest.vals <<\EOF
13966 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13969 # Break up conftest.vals because some shells have a limit on
13970 # the size of here documents, and old seds have small limits too.
13972 rm -f conftest.tail
13973 while :
13975 ac_lines=`grep -c . conftest.vals`
13976 # grep -c gives empty output for an empty file on some AIX systems.
13977 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13978 # Write a limited-size here document to conftest.frag.
13979 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13980 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13981 echo 'CEOF
13982 sed -f conftest.frag conftest.in > conftest.out
13983 rm -f conftest.in
13984 mv conftest.out conftest.in
13985 ' >> $CONFIG_STATUS
13986 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13987 rm -f conftest.vals
13988 mv conftest.tail conftest.vals
13989 done
13990 rm -f conftest.vals
13992 cat >> $CONFIG_STATUS <<\EOF
13993 rm -f conftest.frag conftest.h
13994 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13995 cat conftest.in >> conftest.h
13996 rm -f conftest.in
13997 if cmp -s $ac_file conftest.h 2>/dev/null; then
13998 echo "$ac_file is unchanged"
13999 rm -f conftest.h
14000 else
14001 # Remove last slash and all that follows it. Not all systems have dirname.
14002 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14004 # The file is in a subdirectory.
14005 test ! -d "$ac_dir" && mkdir "$ac_dir"
14007 rm -f $ac_file
14008 mv conftest.h $ac_file
14010 fi; done
14013 cat >> $CONFIG_STATUS <<EOF
14016 cat >> $CONFIG_STATUS <<\EOF
14018 exit 0
14020 chmod +x $CONFIG_STATUS
14021 rm -fr confdefs* $ac_clean_files
14022 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14025 #################################################
14026 # Print very concise instructions on building/use
14027 if test "x$enable_dmalloc" = xyes
14028 then
14029 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14030 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6