always compile before commit :-)
[Samba.git] / source / configure
bloba7fcbdfaf8a70a3b2b9231034500cc43f1618416
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --with-fhs Use FHS-compliant paths (default=no)"
17 ac_help="$ac_help
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
21 ac_help="$ac_help
22 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
23 ac_help="$ac_help
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
25 ac_help="$ac_help
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
27 ac_help="$ac_help
28 --enable-debug Turn on compiler debugging information (default=no)"
29 ac_help="$ac_help
30 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
31 ac_help="$ac_help
32 --with-smbwrapper Include SMB wrapper support (default=no)"
33 ac_help="$ac_help
34 --with-afs Include AFS support (default=no)"
35 ac_help="$ac_help
36 --with-dce-dfs Include DCE/DFS support (default=no)"
37 ac_help="$ac_help
38 --with-krb4=base-dir Include Kerberos IV support (default=no)"
39 ac_help="$ac_help
40 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
41 ac_help="$ac_help
42 --with-automount Include AUTOMOUNT support (default=no)"
43 ac_help="$ac_help
44 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
45 ac_help="$ac_help
46 --with-pam Include PAM password database support (default=no)"
47 ac_help="$ac_help
48 --with-pam_smbpass Include the smbpass PAM module (default=no)"
49 ac_help="$ac_help
50 --with-tdbsam Include TDB password database (default=no)"
51 ac_help="$ac_help
52 --with-ldapsam Include Experimental LDAP-Sam support (default=no)"
53 ac_help="$ac_help
54 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
55 ac_help="$ac_help
56 --with-ssl Include SSL support (default=no)
57 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
58 ac_help="$ac_help
59 --with-syslog Include experimental SYSLOG support (default=no)"
60 ac_help="$ac_help
61 --with-profiling-data Include gathering source code profile information (default=no)"
62 ac_help="$ac_help
63 --with-quotas Include experimental disk-quota support (default=no)"
64 ac_help="$ac_help
65 --with-utmp Include experimental utmp accounting (default=no)"
66 ac_help="$ac_help
67 --with-msdfs Include MS Dfs support (default=no)"
68 ac_help="$ac_help
69 --with-vfs Include Samba vfs support (default=no)"
70 ac_help="$ac_help
71 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
72 ac_help="$ac_help
73 --with-acl-support Include ACL support (default=no)"
74 ac_help="$ac_help
75 --with-winbind Build winbind (default, if supported by OS)"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
80 build=NONE
81 cache_file=./config.cache
82 exec_prefix=NONE
83 host=NONE
84 no_create=
85 nonopt=NONE
86 no_recursion=
87 prefix=NONE
88 program_prefix=NONE
89 program_suffix=NONE
90 program_transform_name=s,x,x,
91 silent=
92 site=
93 srcdir=
94 target=NONE
95 verbose=
96 x_includes=NONE
97 x_libraries=NONE
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
112 subdirs=
113 MFLAGS= MAKEFLAGS=
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
116 ac_max_here_lines=12
118 ac_prev=
119 for ac_option
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
125 ac_prev=
126 continue
129 case "$ac_option" in
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 *) ac_optarg= ;;
132 esac
134 # Accept the important Cygnus configure options, so we can diagnose typos.
136 case "$ac_option" in
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 ac_prev=bindir ;;
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
144 ac_prev=build ;;
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 ac_prev=datadir ;;
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 | --da=*)
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 case "$ac_option" in
178 *=*) ;;
179 *) ac_optarg=yes ;;
180 esac
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
194 with_gas=yes ;;
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
199 cat << EOF
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
202 Configuration:
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
210 [$ac_default_prefix]
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 [same as prefix]
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
217 [PREFIX/share]
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 [PREFIX/com]
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
233 cat << EOF
234 Host type:
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
249 exit 0 ;;
251 -host | --host | --hos | --ho)
252 ac_prev=host ;;
253 -host=* | --host=* | --hos=* | --ho=*)
254 host="$ac_optarg" ;;
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 ac_prev=infodir ;;
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
269 ac_prev=libdir ;;
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 ac_prev=mandir ;;
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
294 -nfp | --nfp | --nf)
295 # Obsolete; use --without-fp.
296 with_fp=no ;;
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299 | --no-cr | --no-c)
300 no_create=yes ;;
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 no_recursion=yes ;;
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 ac_prev=prefix ;;
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
353 silent=yes ;;
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 ac_prev=sbindir ;;
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 | --sbi=* | --sb=*)
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
364 | --sha | --sh)
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 | --sha=* | --sh=*)
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
373 ac_prev=site ;;
374 -site=* | --site=* | --sit=*)
375 site="$ac_optarg" ;;
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 ac_prev=srcdir ;;
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
390 ac_prev=target ;;
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 verbose=yes ;;
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
399 exit 0 ;;
401 -with-* | --with-*)
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 case "$ac_option" in
409 *=*) ;;
410 *) ac_optarg=yes ;;
411 esac
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
423 --x)
424 # Obsolete; use --with-x.
425 with_x=yes ;;
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 nonopt="$ac_option"
454 esac
455 done
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
464 # 0 standard input
465 # 1 file creation
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
472 exec 6>/dev/null
473 else
474 exec 6>&1
476 exec 5>./config.log
478 echo "\
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
481 " 1>&5
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
485 ac_configure_args=
486 for ac_arg
488 case "$ac_arg" in
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496 esac
497 done
499 # NLS nuisances.
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 echo > confdefs.h
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=include/includes.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
522 ac_prog=$0
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 srcdir=$ac_confdir
526 if test ! -r $srcdir/$ac_unique_file; then
527 srcdir=..
529 else
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 else
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 else
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
552 . "$ac_site_file"
554 done
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
558 . $cache_file
559 else
560 echo "creating cache $cache_file"
561 > $cache_file
564 ac_ext=c
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
571 ac_exeext=
572 ac_objext=o
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
576 ac_n= ac_c='
577 ' ac_t=' '
578 else
579 ac_n=-n ac_c= ac_t=
581 else
582 ac_n= ac_c='\c' ac_t=
588 #################################################
589 # Directory handling stuff to support both the
590 # legacy SAMBA directories and FHS compliant
591 # ones...
594 # Check whether --with-fhs or --without-fhs was given.
595 if test "${with_fhs+set}" = set; then
596 withval="$with_fhs"
597 codepagedir="\$(DATADIR)/samba/codepages"
598 configdir="${sysconfdir}/samba"
599 lockdir="\${VARDIR}/cache/samba"
600 logfilebase="\${VARDIR}/log/samba"
601 privatedir="\${CONFIGDIR}/private"
602 swatdir="\${DATADIR}/samba/swat"
603 else
604 codepagedir="\$(LIBDIR)/codepages"
605 configdir="\$(LIBDIR)"
606 lockdir="\$(VARDIR)/locks"
607 logfilebase="\$(VARDIR)"
608 privatedir="\${prefix}/private"
609 swatdir="\${prefix}/swat"
613 #################################################
614 # set private directory location
615 # Check whether --with-privatedir or --without-privatedir was given.
616 if test "${with_privatedir+set}" = set; then
617 withval="$with_privatedir"
618 case "$withval" in
619 yes|no)
621 # Just in case anybody calls it without argument
623 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
626 privatedir="$withval"
628 esac
632 #################################################
633 # set lock directory location
634 # Check whether --with-lockdir or --without-lockdir was given.
635 if test "${with_lockdir+set}" = set; then
636 withval="$with_lockdir"
637 case "$withval" in
638 yes|no)
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
645 lockdir="$withval"
647 esac
651 #################################################
652 # set SWAT directory location
653 # Check whether --with-swatdir or --without-swatdir was given.
654 if test "${with_swatdir+set}" = set; then
655 withval="$with_swatdir"
656 case "$withval" in
657 yes|no)
659 # Just in case anybody does it
661 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
664 swatdir="$withval"
666 esac
670 #################################################
671 # set configuration directory location
672 # Check whether --with-configdir or --without-configdir was given.
673 if test "${with_configdir+set}" = set; then
674 withval="$with_configdir"
675 case "$withval" in
676 yes|no)
678 # Just in case anybody does it
680 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
683 configdir="$withval"
685 esac
689 #################################################
690 # set codepage directory location
691 # Check whether --with-codepagedir or --without-codepagedir was given.
692 if test "${with_codepagedir+set}" = set; then
693 withval="$with_codepagedir"
694 case "$withval" in
695 yes|no)
697 # Just in case anybody does it
699 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
702 codepagedir="$withval"
704 esac
729 # compile with optimization and without debugging by default
730 CFLAGS="-O ${CFLAGS}"
732 # Check whether --enable-debug or --disable-debug was given.
733 if test "${enable_debug+set}" = set; then
734 enableval="$enable_debug"
735 if eval "test x$enable_debug = xyes"; then
736 CFLAGS="${CFLAGS} -g"
743 # Extract the first word of "gcc", so it can be a program name with args.
744 set dummy gcc; ac_word=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
749 else
750 if test -n "$CC"; then
751 ac_cv_prog_CC="$CC" # Let the user override the test.
752 else
753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
754 ac_dummy="$PATH"
755 for ac_dir in $ac_dummy; do
756 test -z "$ac_dir" && ac_dir=.
757 if test -f $ac_dir/$ac_word; then
758 ac_cv_prog_CC="gcc"
759 break
761 done
762 IFS="$ac_save_ifs"
765 CC="$ac_cv_prog_CC"
766 if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
768 else
769 echo "$ac_t""no" 1>&6
772 if test -z "$CC"; then
773 # Extract the first word of "cc", so it can be a program name with args.
774 set dummy cc; ac_word=$2
775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776 echo "configure:777: checking for $ac_word" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779 else
780 if test -n "$CC"; then
781 ac_cv_prog_CC="$CC" # Let the user override the test.
782 else
783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
784 ac_prog_rejected=no
785 ac_dummy="$PATH"
786 for ac_dir in $ac_dummy; do
787 test -z "$ac_dir" && ac_dir=.
788 if test -f $ac_dir/$ac_word; then
789 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
790 ac_prog_rejected=yes
791 continue
793 ac_cv_prog_CC="cc"
794 break
796 done
797 IFS="$ac_save_ifs"
798 if test $ac_prog_rejected = yes; then
799 # We found a bogon in the path, so make sure we never use it.
800 set dummy $ac_cv_prog_CC
801 shift
802 if test $# -gt 0; then
803 # We chose a different compiler from the bogus one.
804 # However, it has the same basename, so the bogon will be chosen
805 # first if we set CC to just the basename; use the full file name.
806 shift
807 set dummy "$ac_dir/$ac_word" "$@"
808 shift
809 ac_cv_prog_CC="$@"
814 CC="$ac_cv_prog_CC"
815 if test -n "$CC"; then
816 echo "$ac_t""$CC" 1>&6
817 else
818 echo "$ac_t""no" 1>&6
821 if test -z "$CC"; then
822 case "`uname -s`" in
823 *win32* | *WIN32*)
824 # Extract the first word of "cl", so it can be a program name with args.
825 set dummy cl; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
830 else
831 if test -n "$CC"; then
832 ac_cv_prog_CC="$CC" # Let the user override the test.
833 else
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
835 ac_dummy="$PATH"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
839 ac_cv_prog_CC="cl"
840 break
842 done
843 IFS="$ac_save_ifs"
846 CC="$ac_cv_prog_CC"
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
849 else
850 echo "$ac_t""no" 1>&6
853 esac
855 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
858 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
859 echo "configure:860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
861 ac_ext=c
862 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
863 ac_cpp='$CPP $CPPFLAGS'
864 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
865 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
866 cross_compiling=$ac_cv_prog_cc_cross
868 cat > conftest.$ac_ext << EOF
870 #line 871 "configure"
871 #include "confdefs.h"
873 main(){return(0);}
875 if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
876 ac_cv_prog_cc_works=yes
877 # If we can't run a trivial program, we are probably using a cross compiler.
878 if (./conftest; exit) 2>/dev/null; then
879 ac_cv_prog_cc_cross=no
880 else
881 ac_cv_prog_cc_cross=yes
883 else
884 echo "configure: failed program was:" >&5
885 cat conftest.$ac_ext >&5
886 ac_cv_prog_cc_works=no
888 rm -fr conftest*
889 ac_ext=c
890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
891 ac_cpp='$CPP $CPPFLAGS'
892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
894 cross_compiling=$ac_cv_prog_cc_cross
896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
897 if test $ac_cv_prog_cc_works = no; then
898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
903 cross_compiling=$ac_cv_prog_cc_cross
905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
906 echo "configure:907: checking whether we are using GNU C" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909 else
910 cat > conftest.c <<EOF
911 #ifdef __GNUC__
912 yes;
913 #endif
915 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
916 ac_cv_prog_gcc=yes
917 else
918 ac_cv_prog_gcc=no
922 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
924 if test $ac_cv_prog_gcc = yes; then
925 GCC=yes
926 else
927 GCC=
930 ac_test_CFLAGS="${CFLAGS+set}"
931 ac_save_CFLAGS="$CFLAGS"
932 CFLAGS=
933 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
934 echo "configure:935: checking whether ${CC-cc} accepts -g" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
937 else
938 echo 'void f(){}' > conftest.c
939 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
940 ac_cv_prog_cc_g=yes
941 else
942 ac_cv_prog_cc_g=no
944 rm -f conftest*
948 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
949 if test "$ac_test_CFLAGS" = set; then
950 CFLAGS="$ac_save_CFLAGS"
951 elif test $ac_cv_prog_cc_g = yes; then
952 if test "$GCC" = yes; then
953 CFLAGS="-g -O2"
954 else
955 CFLAGS="-g"
957 else
958 if test "$GCC" = yes; then
959 CFLAGS="-O2"
960 else
961 CFLAGS=
965 ac_aux_dir=
966 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
967 if test -f $ac_dir/install-sh; then
968 ac_aux_dir=$ac_dir
969 ac_install_sh="$ac_aux_dir/install-sh -c"
970 break
971 elif test -f $ac_dir/install.sh; then
972 ac_aux_dir=$ac_dir
973 ac_install_sh="$ac_aux_dir/install.sh -c"
974 break
976 done
977 if test -z "$ac_aux_dir"; then
978 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
980 ac_config_guess=$ac_aux_dir/config.guess
981 ac_config_sub=$ac_aux_dir/config.sub
982 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
984 # Find a good install program. We prefer a C program (faster),
985 # so one script is as good as another. But avoid the broken or
986 # incompatible versions:
987 # SysV /etc/install, /usr/sbin/install
988 # SunOS /usr/etc/install
989 # IRIX /sbin/install
990 # AIX /bin/install
991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
994 # ./install, which can be erroneously created by make from ./install.sh.
995 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
996 echo "configure:997: checking for a BSD compatible install" >&5
997 if test -z "$INSTALL"; then
998 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1002 for ac_dir in $PATH; do
1003 # Account for people who put trailing slashes in PATH elements.
1004 case "$ac_dir/" in
1005 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1007 # OSF1 and SCO ODT 3.0 have their own names for install.
1008 # Don't use installbsd from OSF since it installs stuff as root
1009 # by default.
1010 for ac_prog in ginstall scoinst install; do
1011 if test -f $ac_dir/$ac_prog; then
1012 if test $ac_prog = install &&
1013 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1014 # AIX install. It has an incompatible calling convention.
1016 else
1017 ac_cv_path_install="$ac_dir/$ac_prog -c"
1018 break 2
1021 done
1023 esac
1024 done
1025 IFS="$ac_save_IFS"
1028 if test "${ac_cv_path_install+set}" = set; then
1029 INSTALL="$ac_cv_path_install"
1030 else
1031 # As a last resort, use the slow shell script. We don't cache a
1032 # path for INSTALL within a source directory, because that will
1033 # break other packages using the cache if that directory is
1034 # removed, or if the path is relative.
1035 INSTALL="$ac_install_sh"
1038 echo "$ac_t""$INSTALL" 1>&6
1040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1041 # It thinks the first close brace ends the variable substitution.
1042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1048 for ac_prog in mawk gawk nawk awk
1050 # Extract the first word of "$ac_prog", so it can be a program name with args.
1051 set dummy $ac_prog; ac_word=$2
1052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1053 echo "configure:1054: checking for $ac_word" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1056 else
1057 if test -n "$AWK"; then
1058 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1059 else
1060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1061 ac_dummy="$PATH"
1062 for ac_dir in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir=.
1064 if test -f $ac_dir/$ac_word; then
1065 ac_cv_prog_AWK="$ac_prog"
1066 break
1068 done
1069 IFS="$ac_save_ifs"
1072 AWK="$ac_cv_prog_AWK"
1073 if test -n "$AWK"; then
1074 echo "$ac_t""$AWK" 1>&6
1075 else
1076 echo "$ac_t""no" 1>&6
1079 test -n "$AWK" && break
1080 done
1083 if test "x$CC" != xcc; then
1084 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether $CC and cc understand -c and -o together" >&5
1086 else
1087 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether cc understands -c and -o together" >&5
1090 set dummy $CC; ac_cc="`echo $2 |
1091 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1092 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095 echo 'foo(){}' > conftest.c
1096 # Make sure it works both with $CC and with simple cc.
1097 # We do the test twice because some compilers refuse to overwrite an
1098 # existing .o file with -o, though they will create one.
1099 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1100 if { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1101 test -f conftest.o && { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1102 then
1103 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1104 if test "x$CC" != xcc; then
1105 # Test first that cc exists at all.
1106 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1107 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1108 if { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1109 test -f conftest.o && { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1110 then
1111 # cc works too.
1113 else
1114 # cc exists but doesn't like -o.
1115 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1119 else
1120 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1122 rm -f conftest*
1125 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1126 echo "$ac_t""yes" 1>&6
1127 else
1128 echo "$ac_t""no" 1>&6
1129 cat >> confdefs.h <<\EOF
1130 #define NO_MINUS_C_MINUS_O 1
1135 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1136 BROKEN_CC=
1137 else
1138 BROKEN_CC=#
1142 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1143 echo "configure:1144: checking that the C compiler understands volatile" >&5
1144 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146 else
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1151 #include <sys/types.h>
1152 int main() {
1153 volatile int i = 0
1154 ; return 0; }
1156 if { (eval echo configure:1157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1157 rm -rf conftest*
1158 samba_cv_volatile=yes
1159 else
1160 echo "configure: failed program was:" >&5
1161 cat conftest.$ac_ext >&5
1162 rm -rf conftest*
1163 samba_cv_volatile=no
1165 rm -f conftest*
1168 echo "$ac_t""$samba_cv_volatile" 1>&6
1169 if test x"$samba_cv_volatile" = x"yes"; then
1170 cat >> confdefs.h <<\EOF
1171 #define HAVE_VOLATILE 1
1179 # Do some error checking and defaulting for the host and target type.
1180 # The inputs are:
1181 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1183 # The rules are:
1184 # 1. You are not allowed to specify --host, --target, and nonopt at the
1185 # same time.
1186 # 2. Host defaults to nonopt.
1187 # 3. If nonopt is not specified, then host defaults to the current host,
1188 # as determined by config.guess.
1189 # 4. Target and build default to nonopt.
1190 # 5. If nonopt is not specified, then target and build default to host.
1192 # The aliases save the names the user supplied, while $host etc.
1193 # will get canonicalized.
1194 case $host---$target---$nonopt in
1195 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1196 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1197 esac
1200 # Make sure we can run config.sub.
1201 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1202 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1205 echo $ac_n "checking host system type""... $ac_c" 1>&6
1206 echo "configure:1207: checking host system type" >&5
1208 host_alias=$host
1209 case "$host_alias" in
1210 NONE)
1211 case $nonopt in
1212 NONE)
1213 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1214 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1215 fi ;;
1216 *) host_alias=$nonopt ;;
1217 esac ;;
1218 esac
1220 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1221 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1222 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1223 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1224 echo "$ac_t""$host" 1>&6
1226 echo $ac_n "checking target system type""... $ac_c" 1>&6
1227 echo "configure:1228: checking target system type" >&5
1229 target_alias=$target
1230 case "$target_alias" in
1231 NONE)
1232 case $nonopt in
1233 NONE) target_alias=$host_alias ;;
1234 *) target_alias=$nonopt ;;
1235 esac ;;
1236 esac
1238 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1239 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1240 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1241 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1242 echo "$ac_t""$target" 1>&6
1244 echo $ac_n "checking build system type""... $ac_c" 1>&6
1245 echo "configure:1246: checking build system type" >&5
1247 build_alias=$build
1248 case "$build_alias" in
1249 NONE)
1250 case $nonopt in
1251 NONE) build_alias=$host_alias ;;
1252 *) build_alias=$nonopt ;;
1253 esac ;;
1254 esac
1256 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1257 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1258 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1259 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1260 echo "$ac_t""$build" 1>&6
1262 test "$host_alias" != "$target_alias" &&
1263 test "$program_prefix$program_suffix$program_transform_name" = \
1264 NONENONEs,x,x, &&
1265 program_prefix=${target_alias}-
1268 case "$host_os" in
1269 *irix6*) cat >> confdefs.h <<\EOF
1270 #include <standards.h>
1274 esac
1278 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1279 echo "configure:1280: checking config.cache system type" >&5
1280 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1281 test x"$ac_cv_host_system_type" != x"$host"; } ||
1282 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1283 test x"$ac_cv_build_system_type" != x"$build"; } ||
1284 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1285 test x"$ac_cv_target_system_type" != x"$target"; }; then
1286 echo "$ac_t""different" 1>&6
1287 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1288 else
1289 echo "$ac_t""same" 1>&6
1291 ac_cv_host_system_type="$host"
1292 ac_cv_build_system_type="$build"
1293 ac_cv_target_system_type="$target"
1297 # Config CPPFLAG settings for strange OS's that must be set
1298 # before other tests.
1300 case "$host_os" in
1301 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1302 *hpux*)
1303 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether ${CC-cc} accepts -Ae" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 echo 'void f(){}' > conftest.c
1309 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1310 ac_cv_prog_cc_Ae=yes
1311 else
1312 ac_cv_prog_cc_Ae=no
1314 rm -f conftest*
1318 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1319 # mmap on HPUX is completely broken...
1320 cat >> confdefs.h <<\EOF
1321 #define MMAP_BLACKLIST 1
1324 if test $ac_cv_prog_cc_Ae = yes; then
1325 CPPFLAGS="$CPPFLAGS -Ae"
1328 # Defines needed for HPUX support.
1329 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1330 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1332 case `uname -r` in
1333 *9*|*10*)
1334 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1335 cat >> confdefs.h <<\EOF
1336 #define USE_BOTH_CRYPT_CALLS 1
1340 *11*)
1341 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1342 cat >> confdefs.h <<\EOF
1343 #define USE_BOTH_CRYPT_CALLS 1
1347 esac
1350 # AIX4.x doesn't even admit to having large
1351 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1353 *aix4*)
1354 echo "$ac_t""enabling large file support" 1>&6
1355 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1358 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1359 # to the existance of large files..
1360 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1361 # recommendations on large file support, however it makes the
1362 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1363 # recommendation makes the compile fail on gcc2.7. JRA.
1365 *solaris*)
1366 case `uname -r` in
1367 5.6*|5.7*)
1368 echo "$ac_t""enabling large file support" 1>&6
1369 if test "$ac_cv_prog_gcc" = yes; then
1370 ${CC-cc} -v >conftest.c 2>&1
1371 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1372 rm -fr conftest.c
1373 case "$ac_cv_gcc_compiler_version_number" in
1374 *"gcc version 2.6"*|*"gcc version 2.7"*)
1375 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1378 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1380 esac
1381 else
1382 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1385 esac
1388 # Tests needed for SINIX large file support.
1390 *sysv4*)
1391 if test $host = mips-sni-sysv4 ; then
1392 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1393 echo "configure:1394: checking for LFS support" >&5
1394 old_CPPFLAGS="$CPPFLAGS"
1395 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1396 if test "$cross_compiling" = yes; then
1397 SINIX_LFS_SUPPORT=cross
1398 else
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1403 #include <unistd.h>
1404 main () {
1405 #if _LFS64_LARGEFILE == 1
1406 exit(0);
1407 #else
1408 exit(1);
1409 #endif
1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1413 then
1414 SINIX_LFS_SUPPORT=yes
1415 else
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1418 rm -fr conftest*
1419 SINIX_LFS_SUPPORT=no
1421 rm -fr conftest*
1424 CPPFLAGS="$old_CPPFLAGS"
1425 if test x$SINIX_LFS_SUPPORT = xyes ; then
1426 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1427 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1428 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1429 LIBS="`getconf LFS64_LIBS` $LIBS"
1431 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1435 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1437 *linux*)
1438 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1439 echo "configure:1440: checking for LFS support" >&5
1440 old_CPPFLAGS="$CPPFLAGS"
1441 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1442 if test "$cross_compiling" = yes; then
1443 LINUX_LFS_SUPPORT=cross
1444 else
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1449 #include <unistd.h>
1450 #include <sys/utsname.h>
1451 main() {
1452 #if _LFS64_LARGEFILE == 1
1453 struct utsname uts;
1454 char *release;
1455 int major, minor;
1457 /* Ensure this is glibc 2.2 or higher */
1458 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1459 int libc_major = __GLIBC__;
1460 int libc_minor = __GLIBC_MINOR__;
1462 if (libc_major < 2)
1463 exit(1);
1464 if (libc_minor < 2)
1465 exit(1);
1466 #endif
1468 /* Ensure this is kernel 2.4 or higher */
1470 uname(&uts);
1471 release = uts.release;
1472 major = atoi(strsep(&release, "."));
1473 minor = atoi(strsep(&release, "."));
1475 if (major > 2 || (major == 2 && minor > 3))
1476 exit(0);
1477 exit(1);
1478 #else
1479 exit(1);
1480 #endif
1484 if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1485 then
1486 LINUX_LFS_SUPPORT=yes
1487 else
1488 echo "configure: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1490 rm -fr conftest*
1491 LINUX_LFS_SUPPORT=no
1493 rm -fr conftest*
1496 CPPFLAGS="$old_CPPFLAGS"
1497 if test x$LINUX_LFS_SUPPORT = xyes ; then
1498 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1500 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1503 *hurd*)
1504 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1505 echo "configure:1506: checking for LFS support" >&5
1506 old_CPPFLAGS="$CPPFLAGS"
1507 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1508 if test "$cross_compiling" = yes; then
1509 GLIBC_LFS_SUPPORT=cross
1510 else
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1515 #include <unistd.h>
1516 main () {
1517 #if _LFS64_LARGEFILE == 1
1518 exit(0);
1519 #else
1520 exit(1);
1521 #endif
1524 if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1525 then
1526 GLIBC_LFS_SUPPORT=yes
1527 else
1528 echo "configure: failed program was:" >&5
1529 cat conftest.$ac_ext >&5
1530 rm -fr conftest*
1531 GLIBC_LFS_SUPPORT=no
1533 rm -fr conftest*
1536 CPPFLAGS="$old_CPPFLAGS"
1537 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1538 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1540 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1543 esac
1545 echo $ac_n "checking for inline""... $ac_c" 1>&6
1546 echo "configure:1547: checking for inline" >&5
1547 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550 ac_cv_c_inline=no
1551 for ac_kw in inline __inline__ __inline; do
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1556 int main() {
1557 } $ac_kw foo() {
1558 ; return 0; }
1560 if { (eval echo configure:1561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1561 rm -rf conftest*
1562 ac_cv_c_inline=$ac_kw; break
1563 else
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1567 rm -f conftest*
1568 done
1572 echo "$ac_t""$ac_cv_c_inline" 1>&6
1573 case "$ac_cv_c_inline" in
1574 inline | yes) ;;
1575 no) cat >> confdefs.h <<\EOF
1576 #define inline
1579 *) cat >> confdefs.h <<EOF
1580 #define inline $ac_cv_c_inline
1583 esac
1585 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1586 echo "configure:1587: checking how to run the C preprocessor" >&5
1587 # On Suns, sometimes $CPP names a directory.
1588 if test -n "$CPP" && test -d "$CPP"; then
1589 CPP=
1591 if test -z "$CPP"; then
1592 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595 # This must be in double quotes, not single quotes, because CPP may get
1596 # substituted into the Makefile and "${CC-cc}" will confuse make.
1597 CPP="${CC-cc} -E"
1598 # On the NeXT, cc -E runs the code through the compiler's parser,
1599 # not just through cpp.
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1603 #include <assert.h>
1604 Syntax Error
1606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1607 { (eval echo configure:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1609 if test -z "$ac_err"; then
1611 else
1612 echo "$ac_err" >&5
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1615 rm -rf conftest*
1616 CPP="${CC-cc} -E -traditional-cpp"
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620 #include <assert.h>
1621 Syntax Error
1623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1624 { (eval echo configure:1625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1626 if test -z "$ac_err"; then
1628 else
1629 echo "$ac_err" >&5
1630 echo "configure: failed program was:" >&5
1631 cat conftest.$ac_ext >&5
1632 rm -rf conftest*
1633 CPP="${CC-cc} -nologo -E"
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1637 #include <assert.h>
1638 Syntax Error
1640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1641 { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1643 if test -z "$ac_err"; then
1645 else
1646 echo "$ac_err" >&5
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1649 rm -rf conftest*
1650 CPP=/lib/cpp
1652 rm -f conftest*
1654 rm -f conftest*
1656 rm -f conftest*
1657 ac_cv_prog_CPP="$CPP"
1659 CPP="$ac_cv_prog_CPP"
1660 else
1661 ac_cv_prog_CPP="$CPP"
1663 echo "$ac_t""$CPP" 1>&6
1665 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1666 echo "configure:1667: checking for ANSI C header files" >&5
1667 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 #include <stdlib.h>
1674 #include <stdarg.h>
1675 #include <string.h>
1676 #include <float.h>
1678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1679 { (eval echo configure:1680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1681 if test -z "$ac_err"; then
1682 rm -rf conftest*
1683 ac_cv_header_stdc=yes
1684 else
1685 echo "$ac_err" >&5
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1688 rm -rf conftest*
1689 ac_cv_header_stdc=no
1691 rm -f conftest*
1693 if test $ac_cv_header_stdc = yes; then
1694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 #include <string.h>
1700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1701 egrep "memchr" >/dev/null 2>&1; then
1703 else
1704 rm -rf conftest*
1705 ac_cv_header_stdc=no
1707 rm -f conftest*
1711 if test $ac_cv_header_stdc = yes; then
1712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1713 cat > conftest.$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1716 #include <stdlib.h>
1718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1719 egrep "free" >/dev/null 2>&1; then
1721 else
1722 rm -rf conftest*
1723 ac_cv_header_stdc=no
1725 rm -f conftest*
1729 if test $ac_cv_header_stdc = yes; then
1730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1731 if test "$cross_compiling" = yes; then
1733 else
1734 cat > conftest.$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1737 #include <ctype.h>
1738 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1739 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1741 int main () { int i; for (i = 0; i < 256; i++)
1742 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1743 exit (0); }
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1747 then
1749 else
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1752 rm -fr conftest*
1753 ac_cv_header_stdc=no
1755 rm -fr conftest*
1761 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1762 if test $ac_cv_header_stdc = yes; then
1763 cat >> confdefs.h <<\EOF
1764 #define STDC_HEADERS 1
1769 ac_header_dirent=no
1770 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1773 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1774 echo "configure:1775: checking for $ac_hdr that defines DIR" >&5
1775 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777 else
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 #include <sys/types.h>
1782 #include <$ac_hdr>
1783 int main() {
1784 DIR *dirp = 0;
1785 ; return 0; }
1787 if { (eval echo configure:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1788 rm -rf conftest*
1789 eval "ac_cv_header_dirent_$ac_safe=yes"
1790 else
1791 echo "configure: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 rm -rf conftest*
1794 eval "ac_cv_header_dirent_$ac_safe=no"
1796 rm -f conftest*
1798 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1801 cat >> confdefs.h <<EOF
1802 #define $ac_tr_hdr 1
1804 ac_header_dirent=$ac_hdr; break
1805 else
1806 echo "$ac_t""no" 1>&6
1808 done
1809 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1810 if test $ac_header_dirent = dirent.h; then
1811 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1812 echo "configure:1813: checking for opendir in -ldir" >&5
1813 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817 ac_save_LIBS="$LIBS"
1818 LIBS="-ldir $LIBS"
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 /* Override any gcc2 internal prototype to avoid an error. */
1823 /* We use char because int might match the return type of a gcc2
1824 builtin and then its argument prototype would still apply. */
1825 char opendir();
1827 int main() {
1828 opendir()
1829 ; return 0; }
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1832 rm -rf conftest*
1833 eval "ac_cv_lib_$ac_lib_var=yes"
1834 else
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1837 rm -rf conftest*
1838 eval "ac_cv_lib_$ac_lib_var=no"
1840 rm -f conftest*
1841 LIBS="$ac_save_LIBS"
1844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1845 echo "$ac_t""yes" 1>&6
1846 LIBS="$LIBS -ldir"
1847 else
1848 echo "$ac_t""no" 1>&6
1851 else
1852 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1853 echo "configure:1854: checking for opendir in -lx" >&5
1854 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1857 else
1858 ac_save_LIBS="$LIBS"
1859 LIBS="-lx $LIBS"
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 /* Override any gcc2 internal prototype to avoid an error. */
1864 /* We use char because int might match the return type of a gcc2
1865 builtin and then its argument prototype would still apply. */
1866 char opendir();
1868 int main() {
1869 opendir()
1870 ; return 0; }
1872 if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1873 rm -rf conftest*
1874 eval "ac_cv_lib_$ac_lib_var=yes"
1875 else
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 rm -rf conftest*
1879 eval "ac_cv_lib_$ac_lib_var=no"
1881 rm -f conftest*
1882 LIBS="$ac_save_LIBS"
1885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 LIBS="$LIBS -lx"
1888 else
1889 echo "$ac_t""no" 1>&6
1894 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether time.h and sys/time.h may both be included" >&5
1896 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902 #include <sys/types.h>
1903 #include <sys/time.h>
1904 #include <time.h>
1905 int main() {
1906 struct tm *tp;
1907 ; return 0; }
1909 if { (eval echo configure:1910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1910 rm -rf conftest*
1911 ac_cv_header_time=yes
1912 else
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 rm -rf conftest*
1916 ac_cv_header_time=no
1918 rm -f conftest*
1921 echo "$ac_t""$ac_cv_header_time" 1>&6
1922 if test $ac_cv_header_time = yes; then
1923 cat >> confdefs.h <<\EOF
1924 #define TIME_WITH_SYS_TIME 1
1929 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1930 echo "configure:1931: checking for sys/wait.h that is POSIX.1 compatible" >&5
1931 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1937 #include <sys/types.h>
1938 #include <sys/wait.h>
1939 #ifndef WEXITSTATUS
1940 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1941 #endif
1942 #ifndef WIFEXITED
1943 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1944 #endif
1945 int main() {
1946 int s;
1947 wait (&s);
1948 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1949 ; return 0; }
1951 if { (eval echo configure:1952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1952 rm -rf conftest*
1953 ac_cv_header_sys_wait_h=yes
1954 else
1955 echo "configure: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1957 rm -rf conftest*
1958 ac_cv_header_sys_wait_h=no
1960 rm -f conftest*
1963 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1964 if test $ac_cv_header_sys_wait_h = yes; then
1965 cat >> confdefs.h <<\EOF
1966 #define HAVE_SYS_WAIT_H 1
1971 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_hdr" >&5
1976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978 else
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 #include <$ac_hdr>
1984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1987 if test -z "$ac_err"; then
1988 rm -rf conftest*
1989 eval "ac_cv_header_$ac_safe=yes"
1990 else
1991 echo "$ac_err" >&5
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 rm -rf conftest*
1995 eval "ac_cv_header_$ac_safe=no"
1997 rm -f conftest*
1999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2000 echo "$ac_t""yes" 1>&6
2001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2002 cat >> confdefs.h <<EOF
2003 #define $ac_tr_hdr 1
2006 else
2007 echo "$ac_t""no" 1>&6
2009 done
2011 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2015 echo "configure:2016: checking for $ac_hdr" >&5
2016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018 else
2019 cat > conftest.$ac_ext <<EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2022 #include <$ac_hdr>
2024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2025 { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2027 if test -z "$ac_err"; then
2028 rm -rf conftest*
2029 eval "ac_cv_header_$ac_safe=yes"
2030 else
2031 echo "$ac_err" >&5
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 rm -rf conftest*
2035 eval "ac_cv_header_$ac_safe=no"
2037 rm -f conftest*
2039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2042 cat >> confdefs.h <<EOF
2043 #define $ac_tr_hdr 1
2046 else
2047 echo "$ac_t""no" 1>&6
2049 done
2051 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2055 echo "configure:2056: checking for $ac_hdr" >&5
2056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2058 else
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2062 #include <$ac_hdr>
2064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2065 { (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2067 if test -z "$ac_err"; then
2068 rm -rf conftest*
2069 eval "ac_cv_header_$ac_safe=yes"
2070 else
2071 echo "$ac_err" >&5
2072 echo "configure: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2074 rm -rf conftest*
2075 eval "ac_cv_header_$ac_safe=no"
2077 rm -f conftest*
2079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2080 echo "$ac_t""yes" 1>&6
2081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2082 cat >> confdefs.h <<EOF
2083 #define $ac_tr_hdr 1
2086 else
2087 echo "$ac_t""no" 1>&6
2089 done
2091 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_hdr" >&5
2096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2098 else
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102 #include <$ac_hdr>
2104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2105 { (eval echo configure:2106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2107 if test -z "$ac_err"; then
2108 rm -rf conftest*
2109 eval "ac_cv_header_$ac_safe=yes"
2110 else
2111 echo "$ac_err" >&5
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 rm -rf conftest*
2115 eval "ac_cv_header_$ac_safe=no"
2117 rm -f conftest*
2119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2122 cat >> confdefs.h <<EOF
2123 #define $ac_tr_hdr 1
2126 else
2127 echo "$ac_t""no" 1>&6
2129 done
2131 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
2133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2135 echo "configure:2136: checking for $ac_hdr" >&5
2136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2138 else
2139 cat > conftest.$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2142 #include <$ac_hdr>
2144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2145 { (eval echo configure:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2147 if test -z "$ac_err"; then
2148 rm -rf conftest*
2149 eval "ac_cv_header_$ac_safe=yes"
2150 else
2151 echo "$ac_err" >&5
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 rm -rf conftest*
2155 eval "ac_cv_header_$ac_safe=no"
2157 rm -f conftest*
2159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2162 cat >> confdefs.h <<EOF
2163 #define $ac_tr_hdr 1
2166 else
2167 echo "$ac_t""no" 1>&6
2169 done
2171 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_hdr" >&5
2176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <$ac_hdr>
2184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2185 { (eval echo configure:2186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2187 if test -z "$ac_err"; then
2188 rm -rf conftest*
2189 eval "ac_cv_header_$ac_safe=yes"
2190 else
2191 echo "$ac_err" >&5
2192 echo "configure: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2194 rm -rf conftest*
2195 eval "ac_cv_header_$ac_safe=no"
2197 rm -f conftest*
2199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2202 cat >> confdefs.h <<EOF
2203 #define $ac_tr_hdr 1
2206 else
2207 echo "$ac_t""no" 1>&6
2209 done
2211 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2215 echo "configure:2216: checking for $ac_hdr" >&5
2216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2218 else
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 #include <$ac_hdr>
2224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2225 { (eval echo configure:2226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2227 if test -z "$ac_err"; then
2228 rm -rf conftest*
2229 eval "ac_cv_header_$ac_safe=yes"
2230 else
2231 echo "$ac_err" >&5
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 rm -rf conftest*
2235 eval "ac_cv_header_$ac_safe=no"
2237 rm -f conftest*
2239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2242 cat >> confdefs.h <<EOF
2243 #define $ac_tr_hdr 1
2246 else
2247 echo "$ac_t""no" 1>&6
2249 done
2251 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_hdr" >&5
2256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 #include <$ac_hdr>
2264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2265 { (eval echo configure:2266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2267 if test -z "$ac_err"; then
2268 rm -rf conftest*
2269 eval "ac_cv_header_$ac_safe=yes"
2270 else
2271 echo "$ac_err" >&5
2272 echo "configure: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2274 rm -rf conftest*
2275 eval "ac_cv_header_$ac_safe=no"
2277 rm -f conftest*
2279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2282 cat >> confdefs.h <<EOF
2283 #define $ac_tr_hdr 1
2286 else
2287 echo "$ac_t""no" 1>&6
2289 done
2293 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2294 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2296 case "$host_os" in
2297 *hpux*)
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 #include <shadow.h>
2302 int main() {
2303 struct spwd testme
2304 ; return 0; }
2306 if { (eval echo configure:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2307 rm -rf conftest*
2308 ac_cv_header_shadow_h=yes
2309 else
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 rm -rf conftest*
2313 ac_cv_header_shadow_h=no
2315 rm -f conftest*
2316 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2317 cat >> confdefs.h <<\EOF
2318 #define HAVE_SHADOW_H 1
2323 esac
2324 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2328 echo "configure:2329: checking for $ac_hdr" >&5
2329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2331 else
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 #include <$ac_hdr>
2337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2338 { (eval echo configure:2339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2340 if test -z "$ac_err"; then
2341 rm -rf conftest*
2342 eval "ac_cv_header_$ac_safe=yes"
2343 else
2344 echo "$ac_err" >&5
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2347 rm -rf conftest*
2348 eval "ac_cv_header_$ac_safe=no"
2350 rm -f conftest*
2352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2355 cat >> confdefs.h <<EOF
2356 #define $ac_tr_hdr 1
2359 else
2360 echo "$ac_t""no" 1>&6
2362 done
2364 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2368 echo "configure:2369: checking for $ac_hdr" >&5
2369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2371 else
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 #include <$ac_hdr>
2377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2378 { (eval echo configure:2379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2380 if test -z "$ac_err"; then
2381 rm -rf conftest*
2382 eval "ac_cv_header_$ac_safe=yes"
2383 else
2384 echo "$ac_err" >&5
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 rm -rf conftest*
2388 eval "ac_cv_header_$ac_safe=no"
2390 rm -f conftest*
2392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2393 echo "$ac_t""yes" 1>&6
2394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2395 cat >> confdefs.h <<EOF
2396 #define $ac_tr_hdr 1
2399 else
2400 echo "$ac_t""no" 1>&6
2402 done
2404 for ac_hdr in stropts.h poll.h
2406 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2407 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_hdr" >&5
2409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2411 else
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 #include <$ac_hdr>
2417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2418 { (eval echo configure:2419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2420 if test -z "$ac_err"; then
2421 rm -rf conftest*
2422 eval "ac_cv_header_$ac_safe=yes"
2423 else
2424 echo "$ac_err" >&5
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2427 rm -rf conftest*
2428 eval "ac_cv_header_$ac_safe=no"
2430 rm -f conftest*
2432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2435 cat >> confdefs.h <<EOF
2436 #define $ac_tr_hdr 1
2439 else
2440 echo "$ac_t""no" 1>&6
2442 done
2444 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2448 echo "configure:2449: checking for $ac_hdr" >&5
2449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2451 else
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 #include <$ac_hdr>
2457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2458 { (eval echo configure:2459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2460 if test -z "$ac_err"; then
2461 rm -rf conftest*
2462 eval "ac_cv_header_$ac_safe=yes"
2463 else
2464 echo "$ac_err" >&5
2465 echo "configure: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2467 rm -rf conftest*
2468 eval "ac_cv_header_$ac_safe=no"
2470 rm -f conftest*
2472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2475 cat >> confdefs.h <<EOF
2476 #define $ac_tr_hdr 1
2479 else
2480 echo "$ac_t""no" 1>&6
2482 done
2484 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2488 echo "configure:2489: checking for $ac_hdr" >&5
2489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2491 else
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2495 #include <$ac_hdr>
2497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2498 { (eval echo configure:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2500 if test -z "$ac_err"; then
2501 rm -rf conftest*
2502 eval "ac_cv_header_$ac_safe=yes"
2503 else
2504 echo "$ac_err" >&5
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 rm -rf conftest*
2508 eval "ac_cv_header_$ac_safe=no"
2510 rm -f conftest*
2512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2515 cat >> confdefs.h <<EOF
2516 #define $ac_tr_hdr 1
2519 else
2520 echo "$ac_t""no" 1>&6
2522 done
2525 # For experimental utmp support (lastlog on some BSD-like systems)
2526 for ac_hdr in utmp.h utmpx.h lastlog.h
2528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_hdr" >&5
2531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 #include <$ac_hdr>
2539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2540 { (eval echo configure:2541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2542 if test -z "$ac_err"; then
2543 rm -rf conftest*
2544 eval "ac_cv_header_$ac_safe=yes"
2545 else
2546 echo "$ac_err" >&5
2547 echo "configure: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2549 rm -rf conftest*
2550 eval "ac_cv_header_$ac_safe=no"
2552 rm -f conftest*
2554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2555 echo "$ac_t""yes" 1>&6
2556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2557 cat >> confdefs.h <<EOF
2558 #define $ac_tr_hdr 1
2561 else
2562 echo "$ac_t""no" 1>&6
2564 done
2567 # For quotas on Veritas VxFS filesystems
2568 for ac_hdr in sys/fs/vx_quota.h
2570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2572 echo "configure:2573: checking for $ac_hdr" >&5
2573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2575 else
2576 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2579 #include <$ac_hdr>
2581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2582 { (eval echo configure:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2584 if test -z "$ac_err"; then
2585 rm -rf conftest*
2586 eval "ac_cv_header_$ac_safe=yes"
2587 else
2588 echo "$ac_err" >&5
2589 echo "configure: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2591 rm -rf conftest*
2592 eval "ac_cv_header_$ac_safe=no"
2594 rm -f conftest*
2596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2597 echo "$ac_t""yes" 1>&6
2598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2599 cat >> confdefs.h <<EOF
2600 #define $ac_tr_hdr 1
2603 else
2604 echo "$ac_t""no" 1>&6
2606 done
2609 echo $ac_n "checking size of int""... $ac_c" 1>&6
2610 echo "configure:2611: checking size of int" >&5
2611 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614 if test "$cross_compiling" = yes; then
2615 ac_cv_sizeof_int=cross
2616 else
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #include <stdio.h>
2621 main()
2623 FILE *f=fopen("conftestval", "w");
2624 if (!f) exit(1);
2625 fprintf(f, "%d\n", sizeof(int));
2626 exit(0);
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2630 then
2631 ac_cv_sizeof_int=`cat conftestval`
2632 else
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 rm -fr conftest*
2636 ac_cv_sizeof_int=0
2638 rm -fr conftest*
2642 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2643 cat >> confdefs.h <<EOF
2644 #define SIZEOF_INT $ac_cv_sizeof_int
2648 echo $ac_n "checking size of long""... $ac_c" 1>&6
2649 echo "configure:2650: checking size of long" >&5
2650 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2652 else
2653 if test "$cross_compiling" = yes; then
2654 ac_cv_sizeof_long=cross
2655 else
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <stdio.h>
2660 main()
2662 FILE *f=fopen("conftestval", "w");
2663 if (!f) exit(1);
2664 fprintf(f, "%d\n", sizeof(long));
2665 exit(0);
2668 if { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2669 then
2670 ac_cv_sizeof_long=`cat conftestval`
2671 else
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 rm -fr conftest*
2675 ac_cv_sizeof_long=0
2677 rm -fr conftest*
2681 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2682 cat >> confdefs.h <<EOF
2683 #define SIZEOF_LONG $ac_cv_sizeof_long
2687 echo $ac_n "checking size of short""... $ac_c" 1>&6
2688 echo "configure:2689: checking size of short" >&5
2689 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2691 else
2692 if test "$cross_compiling" = yes; then
2693 ac_cv_sizeof_short=cross
2694 else
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <stdio.h>
2699 main()
2701 FILE *f=fopen("conftestval", "w");
2702 if (!f) exit(1);
2703 fprintf(f, "%d\n", sizeof(short));
2704 exit(0);
2707 if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2708 then
2709 ac_cv_sizeof_short=`cat conftestval`
2710 else
2711 echo "configure: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2713 rm -fr conftest*
2714 ac_cv_sizeof_short=0
2716 rm -fr conftest*
2720 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2721 cat >> confdefs.h <<EOF
2722 #define SIZEOF_SHORT $ac_cv_sizeof_short
2727 echo $ac_n "checking for working const""... $ac_c" 1>&6
2728 echo "configure:2729: checking for working const" >&5
2729 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2731 else
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2736 int main() {
2738 /* Ultrix mips cc rejects this. */
2739 typedef int charset[2]; const charset x;
2740 /* SunOS 4.1.1 cc rejects this. */
2741 char const *const *ccp;
2742 char **p;
2743 /* NEC SVR4.0.2 mips cc rejects this. */
2744 struct point {int x, y;};
2745 static struct point const zero = {0,0};
2746 /* AIX XL C 1.02.0.0 rejects this.
2747 It does not let you subtract one const X* pointer from another in an arm
2748 of an if-expression whose if-part is not a constant expression */
2749 const char *g = "string";
2750 ccp = &g + (g ? g-g : 0);
2751 /* HPUX 7.0 cc rejects these. */
2752 ++ccp;
2753 p = (char**) ccp;
2754 ccp = (char const *const *) p;
2755 { /* SCO 3.2v4 cc rejects this. */
2756 char *t;
2757 char const *s = 0 ? (char *) 0 : (char const *) 0;
2759 *t++ = 0;
2761 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2762 int x[] = {25, 17};
2763 const int *foo = &x[0];
2764 ++foo;
2766 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2767 typedef const int *iptr;
2768 iptr p = 0;
2769 ++p;
2771 { /* AIX XL C 1.02.0.0 rejects this saying
2772 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2773 struct s { int j; const int *ap[3]; };
2774 struct s *b; b->j = 5;
2776 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2777 const int foo = 10;
2780 ; return 0; }
2782 if { (eval echo configure:2783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2783 rm -rf conftest*
2784 ac_cv_c_const=yes
2785 else
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2788 rm -rf conftest*
2789 ac_cv_c_const=no
2791 rm -f conftest*
2794 echo "$ac_t""$ac_cv_c_const" 1>&6
2795 if test $ac_cv_c_const = no; then
2796 cat >> confdefs.h <<\EOF
2797 #define const
2802 echo $ac_n "checking for inline""... $ac_c" 1>&6
2803 echo "configure:2804: checking for inline" >&5
2804 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2806 else
2807 ac_cv_c_inline=no
2808 for ac_kw in inline __inline__ __inline; do
2809 cat > conftest.$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2813 int main() {
2814 } $ac_kw foo() {
2815 ; return 0; }
2817 if { (eval echo configure:2818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2818 rm -rf conftest*
2819 ac_cv_c_inline=$ac_kw; break
2820 else
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2824 rm -f conftest*
2825 done
2829 echo "$ac_t""$ac_cv_c_inline" 1>&6
2830 case "$ac_cv_c_inline" in
2831 inline | yes) ;;
2832 no) cat >> confdefs.h <<\EOF
2833 #define inline
2836 *) cat >> confdefs.h <<EOF
2837 #define inline $ac_cv_c_inline
2840 esac
2842 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2843 echo "configure:2844: checking whether byte ordering is bigendian" >&5
2844 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2846 else
2847 ac_cv_c_bigendian=unknown
2848 # See if sys/param.h defines the BYTE_ORDER macro.
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2852 #include <sys/types.h>
2853 #include <sys/param.h>
2854 int main() {
2856 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2857 bogus endian macros
2858 #endif
2859 ; return 0; }
2861 if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 rm -rf conftest*
2863 # It does; now see whether it defined to BIG_ENDIAN or not.
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 #include <sys/types.h>
2868 #include <sys/param.h>
2869 int main() {
2871 #if BYTE_ORDER != BIG_ENDIAN
2872 not big endian
2873 #endif
2874 ; return 0; }
2876 if { (eval echo configure:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2877 rm -rf conftest*
2878 ac_cv_c_bigendian=yes
2879 else
2880 echo "configure: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 rm -rf conftest*
2883 ac_cv_c_bigendian=no
2885 rm -f conftest*
2886 else
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 rm -f conftest*
2891 if test $ac_cv_c_bigendian = unknown; then
2892 if test "$cross_compiling" = yes; then
2893 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2894 else
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2898 main () {
2899 /* Are we little or big endian? From Harbison&Steele. */
2900 union
2902 long l;
2903 char c[sizeof (long)];
2904 } u;
2905 u.l = 1;
2906 exit (u.c[sizeof (long) - 1] == 1);
2909 if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2910 then
2911 ac_cv_c_bigendian=no
2912 else
2913 echo "configure: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2915 rm -fr conftest*
2916 ac_cv_c_bigendian=yes
2918 rm -fr conftest*
2924 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2925 if test $ac_cv_c_bigendian = yes; then
2926 cat >> confdefs.h <<\EOF
2927 #define WORDS_BIGENDIAN 1
2932 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2933 echo "configure:2934: checking whether char is unsigned" >&5
2934 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2936 else
2937 if test "$GCC" = yes; then
2938 # GCC predefines this symbol on systems where it applies.
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 #ifdef __CHAR_UNSIGNED__
2944 #endif
2947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2948 egrep "yes" >/dev/null 2>&1; then
2949 rm -rf conftest*
2950 ac_cv_c_char_unsigned=yes
2951 else
2952 rm -rf conftest*
2953 ac_cv_c_char_unsigned=no
2955 rm -f conftest*
2957 else
2958 if test "$cross_compiling" = yes; then
2959 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2960 else
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2965 #if !defined(__STDC__) || __STDC__ != 1
2966 #define volatile
2967 #endif
2968 main() {
2969 volatile char c = 255; exit(c < 0);
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2973 then
2974 ac_cv_c_char_unsigned=yes
2975 else
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2978 rm -fr conftest*
2979 ac_cv_c_char_unsigned=no
2981 rm -fr conftest*
2987 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2988 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2989 cat >> confdefs.h <<\EOF
2990 #define __CHAR_UNSIGNED__ 1
2996 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2997 echo "configure:2998: checking return type of signal handlers" >&5
2998 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3000 else
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3004 #include <sys/types.h>
3005 #include <signal.h>
3006 #ifdef signal
3007 #undef signal
3008 #endif
3009 #ifdef __cplusplus
3010 extern "C" void (*signal (int, void (*)(int)))(int);
3011 #else
3012 void (*signal ()) ();
3013 #endif
3015 int main() {
3016 int i;
3017 ; return 0; }
3019 if { (eval echo configure:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 rm -rf conftest*
3021 ac_cv_type_signal=void
3022 else
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 rm -rf conftest*
3026 ac_cv_type_signal=int
3028 rm -f conftest*
3031 echo "$ac_t""$ac_cv_type_signal" 1>&6
3032 cat >> confdefs.h <<EOF
3033 #define RETSIGTYPE $ac_cv_type_signal
3037 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3038 echo "configure:3039: checking for uid_t in sys/types.h" >&5
3039 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3041 else
3042 cat > conftest.$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3045 #include <sys/types.h>
3047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3048 egrep "uid_t" >/dev/null 2>&1; then
3049 rm -rf conftest*
3050 ac_cv_type_uid_t=yes
3051 else
3052 rm -rf conftest*
3053 ac_cv_type_uid_t=no
3055 rm -f conftest*
3059 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3060 if test $ac_cv_type_uid_t = no; then
3061 cat >> confdefs.h <<\EOF
3062 #define uid_t int
3065 cat >> confdefs.h <<\EOF
3066 #define gid_t int
3071 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3072 echo "configure:3073: checking for mode_t" >&5
3073 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3075 else
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 #include <sys/types.h>
3080 #if STDC_HEADERS
3081 #include <stdlib.h>
3082 #include <stddef.h>
3083 #endif
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3087 rm -rf conftest*
3088 ac_cv_type_mode_t=yes
3089 else
3090 rm -rf conftest*
3091 ac_cv_type_mode_t=no
3093 rm -f conftest*
3096 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3097 if test $ac_cv_type_mode_t = no; then
3098 cat >> confdefs.h <<\EOF
3099 #define mode_t int
3104 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3105 echo "configure:3106: checking for off_t" >&5
3106 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3108 else
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 #include <sys/types.h>
3113 #if STDC_HEADERS
3114 #include <stdlib.h>
3115 #include <stddef.h>
3116 #endif
3118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3119 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3120 rm -rf conftest*
3121 ac_cv_type_off_t=yes
3122 else
3123 rm -rf conftest*
3124 ac_cv_type_off_t=no
3126 rm -f conftest*
3129 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3130 if test $ac_cv_type_off_t = no; then
3131 cat >> confdefs.h <<\EOF
3132 #define off_t long
3137 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3138 echo "configure:3139: checking for size_t" >&5
3139 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3141 else
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <sys/types.h>
3146 #if STDC_HEADERS
3147 #include <stdlib.h>
3148 #include <stddef.h>
3149 #endif
3151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3152 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3153 rm -rf conftest*
3154 ac_cv_type_size_t=yes
3155 else
3156 rm -rf conftest*
3157 ac_cv_type_size_t=no
3159 rm -f conftest*
3162 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3163 if test $ac_cv_type_size_t = no; then
3164 cat >> confdefs.h <<\EOF
3165 #define size_t unsigned
3170 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3171 echo "configure:3172: checking for pid_t" >&5
3172 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3174 else
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <sys/types.h>
3179 #if STDC_HEADERS
3180 #include <stdlib.h>
3181 #include <stddef.h>
3182 #endif
3184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3185 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3186 rm -rf conftest*
3187 ac_cv_type_pid_t=yes
3188 else
3189 rm -rf conftest*
3190 ac_cv_type_pid_t=no
3192 rm -f conftest*
3195 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3196 if test $ac_cv_type_pid_t = no; then
3197 cat >> confdefs.h <<\EOF
3198 #define pid_t int
3203 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3204 echo "configure:3205: checking for st_rdev in struct stat" >&5
3205 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3207 else
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 #include <sys/types.h>
3212 #include <sys/stat.h>
3213 int main() {
3214 struct stat s; s.st_rdev;
3215 ; return 0; }
3217 if { (eval echo configure:3218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3218 rm -rf conftest*
3219 ac_cv_struct_st_rdev=yes
3220 else
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 rm -rf conftest*
3224 ac_cv_struct_st_rdev=no
3226 rm -f conftest*
3229 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3230 if test $ac_cv_struct_st_rdev = yes; then
3231 cat >> confdefs.h <<\EOF
3232 #define HAVE_ST_RDEV 1
3237 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3238 echo "configure:3239: checking for d_off in dirent" >&5
3239 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3241 else
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3246 #include <unistd.h>
3247 #include <sys/types.h>
3248 #include <dirent.h>
3249 int main() {
3250 struct dirent d; d.d_off;
3251 ; return 0; }
3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 rm -rf conftest*
3255 ac_cv_dirent_d_off=yes
3256 else
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 rm -rf conftest*
3260 ac_cv_dirent_d_off=no
3262 rm -f conftest*
3265 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3266 if test $ac_cv_dirent_d_off = yes; then
3267 cat >> confdefs.h <<\EOF
3268 #define HAVE_DIRENT_D_OFF 1
3273 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3274 echo "configure:3275: checking for ino_t" >&5
3275 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3277 else
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 #include <sys/types.h>
3282 #if STDC_HEADERS
3283 #include <stdlib.h>
3284 #include <stddef.h>
3285 #endif
3287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3288 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3289 rm -rf conftest*
3290 ac_cv_type_ino_t=yes
3291 else
3292 rm -rf conftest*
3293 ac_cv_type_ino_t=no
3295 rm -f conftest*
3298 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3299 if test $ac_cv_type_ino_t = no; then
3300 cat >> confdefs.h <<\EOF
3301 #define ino_t unsigned
3306 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3307 echo "configure:3308: checking for loff_t" >&5
3308 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3310 else
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3315 #if STDC_HEADERS
3316 #include <stdlib.h>
3317 #include <stddef.h>
3318 #endif
3320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3322 rm -rf conftest*
3323 ac_cv_type_loff_t=yes
3324 else
3325 rm -rf conftest*
3326 ac_cv_type_loff_t=no
3328 rm -f conftest*
3331 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3332 if test $ac_cv_type_loff_t = no; then
3333 cat >> confdefs.h <<\EOF
3334 #define loff_t off_t
3339 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3340 echo "configure:3341: checking for offset_t" >&5
3341 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <sys/types.h>
3348 #if STDC_HEADERS
3349 #include <stdlib.h>
3350 #include <stddef.h>
3351 #endif
3353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3354 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3355 rm -rf conftest*
3356 ac_cv_type_offset_t=yes
3357 else
3358 rm -rf conftest*
3359 ac_cv_type_offset_t=no
3361 rm -f conftest*
3364 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3365 if test $ac_cv_type_offset_t = no; then
3366 cat >> confdefs.h <<\EOF
3367 #define offset_t loff_t
3372 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3373 echo "configure:3374: checking for ssize_t" >&5
3374 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3376 else
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <sys/types.h>
3381 #if STDC_HEADERS
3382 #include <stdlib.h>
3383 #include <stddef.h>
3384 #endif
3386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3387 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3388 rm -rf conftest*
3389 ac_cv_type_ssize_t=yes
3390 else
3391 rm -rf conftest*
3392 ac_cv_type_ssize_t=no
3394 rm -f conftest*
3397 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3398 if test $ac_cv_type_ssize_t = no; then
3399 cat >> confdefs.h <<\EOF
3400 #define ssize_t int
3405 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3406 echo "configure:3407: checking for wchar_t" >&5
3407 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3409 else
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3414 #if STDC_HEADERS
3415 #include <stdlib.h>
3416 #include <stddef.h>
3417 #endif
3419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3421 rm -rf conftest*
3422 ac_cv_type_wchar_t=yes
3423 else
3424 rm -rf conftest*
3425 ac_cv_type_wchar_t=no
3427 rm -f conftest*
3430 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3431 if test $ac_cv_type_wchar_t = no; then
3432 cat >> confdefs.h <<\EOF
3433 #define wchar_t unsigned short
3439 ############################################
3440 # for cups support we need libcups, and a handful of header files
3442 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3443 echo "configure:3444: checking for httpConnect in -lcups" >&5
3444 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3447 else
3448 ac_save_LIBS="$LIBS"
3449 LIBS="-lcups $LIBS"
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 /* Override any gcc2 internal prototype to avoid an error. */
3454 /* We use char because int might match the return type of a gcc2
3455 builtin and then its argument prototype would still apply. */
3456 char httpConnect();
3458 int main() {
3459 httpConnect()
3460 ; return 0; }
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3463 rm -rf conftest*
3464 eval "ac_cv_lib_$ac_lib_var=yes"
3465 else
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3468 rm -rf conftest*
3469 eval "ac_cv_lib_$ac_lib_var=no"
3471 rm -f conftest*
3472 LIBS="$ac_save_LIBS"
3475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3479 cat >> confdefs.h <<EOF
3480 #define $ac_tr_lib 1
3483 LIBS="-lcups $LIBS"
3485 else
3486 echo "$ac_t""no" 1>&6
3490 # I wonder if there is a nicer way of doing this?
3492 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3493 for ac_hdr in cups/cups.h cups/language.h
3495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3497 echo "configure:3498: checking for $ac_hdr" >&5
3498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <$ac_hdr>
3506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3507 { (eval echo configure:3508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3509 if test -z "$ac_err"; then
3510 rm -rf conftest*
3511 eval "ac_cv_header_$ac_safe=yes"
3512 else
3513 echo "$ac_err" >&5
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 rm -rf conftest*
3517 eval "ac_cv_header_$ac_safe=no"
3519 rm -f conftest*
3521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3524 cat >> confdefs.h <<EOF
3525 #define $ac_tr_hdr 1
3528 else
3529 echo "$ac_t""no" 1>&6
3531 done
3533 if x"$ac_cv_header_cups_cups_h" = x"yes"; then
3534 if x"$ac_cv_header_cups_language_h" = x"yes"; then
3535 cat >> confdefs.h <<\EOF
3536 #define HAVE_CUPS 1
3543 ############################################
3544 # we need libdl for PAM and the new VFS code
3545 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3546 echo "configure:3547: checking for dlopen in -ldl" >&5
3547 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3550 else
3551 ac_save_LIBS="$LIBS"
3552 LIBS="-ldl $LIBS"
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3556 /* Override any gcc2 internal prototype to avoid an error. */
3557 /* We use char because int might match the return type of a gcc2
3558 builtin and then its argument prototype would still apply. */
3559 char dlopen();
3561 int main() {
3562 dlopen()
3563 ; return 0; }
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 rm -rf conftest*
3567 eval "ac_cv_lib_$ac_lib_var=yes"
3568 else
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3571 rm -rf conftest*
3572 eval "ac_cv_lib_$ac_lib_var=no"
3574 rm -f conftest*
3575 LIBS="$ac_save_LIBS"
3578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3580 LIBS="$LIBS -ldl";
3581 cat >> confdefs.h <<\EOF
3582 #define HAVE_LIBDL 1
3585 else
3586 echo "$ac_t""no" 1>&6
3590 ############################################
3591 # check for unix domain sockets
3592 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3593 echo "configure:3594: checking for unix domain sockets" >&5
3594 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3596 else
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3602 #include <sys/types.h>
3603 #include <stdlib.h>
3604 #include <stddef.h>
3605 #include <sys/socket.h>
3606 #include <sys/un.h>
3607 int main() {
3609 struct sockaddr_un sunaddr;
3610 sunaddr.sun_family = AF_UNIX;
3612 ; return 0; }
3614 if { (eval echo configure:3615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3615 rm -rf conftest*
3616 samba_cv_unixsocket=yes
3617 else
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3620 rm -rf conftest*
3621 samba_cv_unixsocket=no
3623 rm -f conftest*
3626 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3627 if test x"$samba_cv_unixsocket" = x"yes"; then
3628 cat >> confdefs.h <<\EOF
3629 #define HAVE_UNIXSOCKET 1
3634 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3635 echo "configure:3636: checking for socklen_t type" >&5
3636 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3638 else
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3644 #include <sys/types.h>
3645 #if STDC_HEADERS
3646 #include <stdlib.h>
3647 #include <stddef.h>
3648 #endif
3649 #include <sys/socket.h>
3650 int main() {
3651 socklen_t i = 0
3652 ; return 0; }
3654 if { (eval echo configure:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3655 rm -rf conftest*
3656 samba_cv_socklen_t=yes
3657 else
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3660 rm -rf conftest*
3661 samba_cv_socklen_t=no
3663 rm -f conftest*
3666 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3667 if test x"$samba_cv_socklen_t" = x"yes"; then
3668 cat >> confdefs.h <<\EOF
3669 #define HAVE_SOCKLEN_T_TYPE 1
3674 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3675 echo "configure:3676: checking for sig_atomic_t type" >&5
3676 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3678 else
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3684 #include <sys/types.h>
3685 #if STDC_HEADERS
3686 #include <stdlib.h>
3687 #include <stddef.h>
3688 #endif
3689 #include <signal.h>
3690 int main() {
3691 sig_atomic_t i = 0
3692 ; return 0; }
3694 if { (eval echo configure:3695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3695 rm -rf conftest*
3696 samba_cv_sig_atomic_t=yes
3697 else
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3700 rm -rf conftest*
3701 samba_cv_sig_atomic_t=no
3703 rm -f conftest*
3706 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3707 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3708 cat >> confdefs.h <<\EOF
3709 #define HAVE_SIG_ATOMIC_T_TYPE 1
3714 # stupid headers have the functions but no declaration. grrrr.
3716 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3717 echo "configure:3718: checking for errno declaration" >&5
3718 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3720 else
3722 cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3725 #include <errno.h>
3726 int main() {
3727 int i = (int)errno
3728 ; return 0; }
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3731 rm -rf conftest*
3732 ac_cv_have_errno_decl=yes
3733 else
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 rm -rf conftest*
3737 ac_cv_have_errno_decl=no
3739 rm -f conftest*
3742 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3743 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3744 cat >> confdefs.h <<\EOF
3745 #define HAVE_ERRNO_DECL 1
3751 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3752 echo "configure:3753: checking for setresuid declaration" >&5
3753 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3755 else
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 #include <unistd.h>
3761 int main() {
3762 int i = (int)setresuid
3763 ; return 0; }
3765 if { (eval echo configure:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3766 rm -rf conftest*
3767 ac_cv_have_setresuid_decl=yes
3768 else
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3771 rm -rf conftest*
3772 ac_cv_have_setresuid_decl=no
3774 rm -f conftest*
3777 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3778 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3779 cat >> confdefs.h <<\EOF
3780 #define HAVE_SETRESUID_DECL 1
3786 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3787 echo "configure:3788: checking for setresgid declaration" >&5
3788 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3790 else
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 #include <unistd.h>
3796 int main() {
3797 int i = (int)setresgid
3798 ; return 0; }
3800 if { (eval echo configure:3801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3801 rm -rf conftest*
3802 ac_cv_have_setresgid_decl=yes
3803 else
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3806 rm -rf conftest*
3807 ac_cv_have_setresgid_decl=no
3809 rm -f conftest*
3812 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3813 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3814 cat >> confdefs.h <<\EOF
3815 #define HAVE_SETRESGID_DECL 1
3821 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3822 echo "configure:3823: checking for asprintf declaration" >&5
3823 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825 else
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3830 #include <stdio.h>
3831 int main() {
3832 int i = (int)asprintf
3833 ; return 0; }
3835 if { (eval echo configure:3836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3836 rm -rf conftest*
3837 ac_cv_have_asprintf_decl=yes
3838 else
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3841 rm -rf conftest*
3842 ac_cv_have_asprintf_decl=no
3844 rm -f conftest*
3847 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3848 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3849 cat >> confdefs.h <<\EOF
3850 #define HAVE_ASPRINTF_DECL 1
3856 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3857 echo "configure:3858: checking for vasprintf declaration" >&5
3858 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3860 else
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 #include <stdio.h>
3866 int main() {
3867 int i = (int)vasprintf
3868 ; return 0; }
3870 if { (eval echo configure:3871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3871 rm -rf conftest*
3872 ac_cv_have_vasprintf_decl=yes
3873 else
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3876 rm -rf conftest*
3877 ac_cv_have_vasprintf_decl=no
3879 rm -f conftest*
3882 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3883 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3884 cat >> confdefs.h <<\EOF
3885 #define HAVE_VASPRINTF_DECL 1
3891 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3892 echo "configure:3893: checking for vsnprintf declaration" >&5
3893 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3895 else
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 #include <stdio.h>
3901 int main() {
3902 int i = (int)vsnprintf
3903 ; return 0; }
3905 if { (eval echo configure:3906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3906 rm -rf conftest*
3907 ac_cv_have_vsnprintf_decl=yes
3908 else
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 rm -rf conftest*
3912 ac_cv_have_vsnprintf_decl=no
3914 rm -f conftest*
3917 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3918 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3919 cat >> confdefs.h <<\EOF
3920 #define HAVE_VSNPRINTF_DECL 1
3926 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3927 echo "configure:3928: checking for snprintf declaration" >&5
3928 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3930 else
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 #include <stdio.h>
3936 int main() {
3937 int i = (int)snprintf
3938 ; return 0; }
3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 rm -rf conftest*
3942 ac_cv_have_snprintf_decl=yes
3943 else
3944 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3946 rm -rf conftest*
3947 ac_cv_have_snprintf_decl=no
3949 rm -f conftest*
3952 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3953 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3954 cat >> confdefs.h <<\EOF
3955 #define HAVE_SNPRINTF_DECL 1
3961 # and glibc has setresuid under linux but the function does
3962 # nothing until kernel 2.1.44! very dumb.
3963 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3964 echo "configure:3965: checking for real setresuid" >&5
3965 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3967 else
3969 if test "$cross_compiling" = yes; then
3970 samba_cv_have_setresuid=cross
3971 else
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 #include <errno.h>
3976 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3979 then
3980 samba_cv_have_setresuid=yes
3981 else
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3984 rm -fr conftest*
3985 samba_cv_have_setresuid=no
3987 rm -fr conftest*
3992 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3993 if test x"$samba_cv_have_setresuid" = x"yes"; then
3994 cat >> confdefs.h <<\EOF
3995 #define HAVE_SETRESUID 1
4000 # Do the same check for setresguid...
4002 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4003 echo "configure:4004: checking for real setresgid" >&5
4004 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4006 else
4008 if test "$cross_compiling" = yes; then
4009 samba_cv_have_setresgid=cross
4010 else
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 #include <unistd.h>
4015 #include <errno.h>
4016 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4019 then
4020 samba_cv_have_setresgid=yes
4021 else
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -fr conftest*
4025 samba_cv_have_setresgid=no
4027 rm -fr conftest*
4032 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4033 if test x"$samba_cv_have_setresgid" = x"yes"; then
4034 cat >> confdefs.h <<\EOF
4035 #define HAVE_SETRESGID 1
4040 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4041 echo "configure:4042: checking for 8-bit clean memcmp" >&5
4042 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 if test "$cross_compiling" = yes; then
4046 ac_cv_func_memcmp_clean=no
4047 else
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4052 main()
4054 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4055 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4060 then
4061 ac_cv_func_memcmp_clean=yes
4062 else
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4065 rm -fr conftest*
4066 ac_cv_func_memcmp_clean=no
4068 rm -fr conftest*
4073 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4074 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4077 ###############################################
4078 # Readline included by default unless explicitly asked not to
4079 test "${with_readline+set}" != "set" && with_readline=yes
4081 # test for where we get readline() from
4082 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4083 echo "configure:4084: checking whether to use readline" >&5
4084 # Check whether --with-readline or --without-readline was given.
4085 if test "${with_readline+set}" = set; then
4086 withval="$with_readline"
4087 case "$with_readline" in
4088 yes)
4089 echo "$ac_t""yes" 1>&6
4091 for ac_hdr in readline.h history.h readline/readline.h
4093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4095 echo "configure:4096: checking for $ac_hdr" >&5
4096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4098 else
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 #include <$ac_hdr>
4104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4105 { (eval echo configure:4106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4107 if test -z "$ac_err"; then
4108 rm -rf conftest*
4109 eval "ac_cv_header_$ac_safe=yes"
4110 else
4111 echo "$ac_err" >&5
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4114 rm -rf conftest*
4115 eval "ac_cv_header_$ac_safe=no"
4117 rm -f conftest*
4119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4120 echo "$ac_t""yes" 1>&6
4121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4122 cat >> confdefs.h <<EOF
4123 #define $ac_tr_hdr 1
4126 else
4127 echo "$ac_t""no" 1>&6
4129 done
4131 for ac_hdr in readline/history.h
4133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_hdr" >&5
4136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4138 else
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 #include <$ac_hdr>
4144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4145 { (eval echo configure:4146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4147 if test -z "$ac_err"; then
4148 rm -rf conftest*
4149 eval "ac_cv_header_$ac_safe=yes"
4150 else
4151 echo "$ac_err" >&5
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4154 rm -rf conftest*
4155 eval "ac_cv_header_$ac_safe=no"
4157 rm -f conftest*
4159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4162 cat >> confdefs.h <<EOF
4163 #define $ac_tr_hdr 1
4166 else
4167 echo "$ac_t""no" 1>&6
4169 done
4172 for ac_hdr in readline.h readline/readline.h
4174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4176 echo "configure:4177: checking for $ac_hdr" >&5
4177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4179 else
4180 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 #include <$ac_hdr>
4185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4186 { (eval echo configure:4187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4188 if test -z "$ac_err"; then
4189 rm -rf conftest*
4190 eval "ac_cv_header_$ac_safe=yes"
4191 else
4192 echo "$ac_err" >&5
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4195 rm -rf conftest*
4196 eval "ac_cv_header_$ac_safe=no"
4198 rm -f conftest*
4200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4201 echo "$ac_t""yes" 1>&6
4202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4203 cat >> confdefs.h <<EOF
4204 #define $ac_tr_hdr 1
4207 for termlib in ncurses curses termcap terminfo termlib; do
4208 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4209 echo "configure:4210: checking for tgetent in -l${termlib}" >&5
4210 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4213 else
4214 ac_save_LIBS="$LIBS"
4215 LIBS="-l${termlib} $LIBS"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char tgetent();
4224 int main() {
4225 tgetent()
4226 ; return 0; }
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229 rm -rf conftest*
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4231 else
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 rm -rf conftest*
4235 eval "ac_cv_lib_$ac_lib_var=no"
4237 rm -f conftest*
4238 LIBS="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 TERMLIBS="-l${termlib}"; break
4244 else
4245 echo "$ac_t""no" 1>&6
4248 done
4249 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4250 echo "configure:4251: checking for rl_callback_handler_install in -lreadline" >&5
4251 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4254 else
4255 ac_save_LIBS="$LIBS"
4256 LIBS="-lreadline $TERMLIBS $LIBS"
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4263 char rl_callback_handler_install();
4265 int main() {
4266 rl_callback_handler_install()
4267 ; return 0; }
4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4270 rm -rf conftest*
4271 eval "ac_cv_lib_$ac_lib_var=yes"
4272 else
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4275 rm -rf conftest*
4276 eval "ac_cv_lib_$ac_lib_var=no"
4278 rm -f conftest*
4279 LIBS="$ac_save_LIBS"
4282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 TERMLIBS="-lreadline $TERMLIBS"
4285 cat >> confdefs.h <<\EOF
4286 #define HAVE_LIBREADLINE 1
4289 break
4290 else
4291 echo "$ac_t""no" 1>&6
4292 TERMLIBS=
4295 else
4296 echo "$ac_t""no" 1>&6
4298 done
4302 echo "$ac_t""no" 1>&6
4305 echo "$ac_t""yes" 1>&6
4307 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4308 # alternate readline path
4309 _ldflags=${LDFLAGS}
4310 _cppflags=${CPPFLAGS}
4312 # Add additional search path
4313 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4314 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4316 for ac_hdr in readline.h history.h readline/readline.h
4318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4320 echo "configure:4321: checking for $ac_hdr" >&5
4321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4323 else
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 #include <$ac_hdr>
4329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4330 { (eval echo configure:4331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4332 if test -z "$ac_err"; then
4333 rm -rf conftest*
4334 eval "ac_cv_header_$ac_safe=yes"
4335 else
4336 echo "$ac_err" >&5
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4339 rm -rf conftest*
4340 eval "ac_cv_header_$ac_safe=no"
4342 rm -f conftest*
4344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4345 echo "$ac_t""yes" 1>&6
4346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4347 cat >> confdefs.h <<EOF
4348 #define $ac_tr_hdr 1
4351 else
4352 echo "$ac_t""no" 1>&6
4354 done
4356 for ac_hdr in readline/history.h
4358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4360 echo "configure:4361: checking for $ac_hdr" >&5
4361 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4363 else
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4367 #include <$ac_hdr>
4369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4370 { (eval echo configure:4371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4372 if test -z "$ac_err"; then
4373 rm -rf conftest*
4374 eval "ac_cv_header_$ac_safe=yes"
4375 else
4376 echo "$ac_err" >&5
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 rm -rf conftest*
4380 eval "ac_cv_header_$ac_safe=no"
4382 rm -f conftest*
4384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4387 cat >> confdefs.h <<EOF
4388 #define $ac_tr_hdr 1
4391 else
4392 echo "$ac_t""no" 1>&6
4394 done
4397 for ac_hdr in readline.h readline/readline.h
4399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4401 echo "configure:4402: checking for $ac_hdr" >&5
4402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4404 else
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 #include <$ac_hdr>
4410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4411 { (eval echo configure:4412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4413 if test -z "$ac_err"; then
4414 rm -rf conftest*
4415 eval "ac_cv_header_$ac_safe=yes"
4416 else
4417 echo "$ac_err" >&5
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4420 rm -rf conftest*
4421 eval "ac_cv_header_$ac_safe=no"
4423 rm -f conftest*
4425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4428 cat >> confdefs.h <<EOF
4429 #define $ac_tr_hdr 1
4432 for termlib in ncurses curses termcap terminfo termlib; do
4433 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4434 echo "configure:4435: checking for tgetent in -l${termlib}" >&5
4435 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4438 else
4439 ac_save_LIBS="$LIBS"
4440 LIBS="-l${termlib} $LIBS"
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 /* Override any gcc2 internal prototype to avoid an error. */
4445 /* We use char because int might match the return type of a gcc2
4446 builtin and then its argument prototype would still apply. */
4447 char tgetent();
4449 int main() {
4450 tgetent()
4451 ; return 0; }
4453 if { (eval echo configure:4454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4454 rm -rf conftest*
4455 eval "ac_cv_lib_$ac_lib_var=yes"
4456 else
4457 echo "configure: failed program was:" >&5
4458 cat conftest.$ac_ext >&5
4459 rm -rf conftest*
4460 eval "ac_cv_lib_$ac_lib_var=no"
4462 rm -f conftest*
4463 LIBS="$ac_save_LIBS"
4466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4467 echo "$ac_t""yes" 1>&6
4468 TERMLIBS="-l${termlib}"; break
4469 else
4470 echo "$ac_t""no" 1>&6
4473 done
4474 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4475 echo "configure:4476: checking for rl_callback_handler_install in -lreadline" >&5
4476 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4479 else
4480 ac_save_LIBS="$LIBS"
4481 LIBS="-lreadline $TERMLIBS $LIBS"
4482 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4485 /* Override any gcc2 internal prototype to avoid an error. */
4486 /* We use char because int might match the return type of a gcc2
4487 builtin and then its argument prototype would still apply. */
4488 char rl_callback_handler_install();
4490 int main() {
4491 rl_callback_handler_install()
4492 ; return 0; }
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 rm -rf conftest*
4496 eval "ac_cv_lib_$ac_lib_var=yes"
4497 else
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 rm -rf conftest*
4501 eval "ac_cv_lib_$ac_lib_var=no"
4503 rm -f conftest*
4504 LIBS="$ac_save_LIBS"
4507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4508 echo "$ac_t""yes" 1>&6
4509 TERMLDFLAGS="-L$with_readline/lib"
4510 TERMCPPFLAGS="-I$with_readline/include"
4511 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4512 TERMLIBS="-lreadline $TERMLIBS"
4513 cat >> confdefs.h <<\EOF
4514 #define HAVE_LIBREADLINE 1
4517 break
4518 else
4519 echo "$ac_t""no" 1>&6
4520 TERMLIBS= CPPFLAGS=$_cppflags
4523 else
4524 echo "$ac_t""no" 1>&6
4526 done
4529 LDFLAGS=$_ldflags
4531 esac
4532 else
4533 echo "$ac_t""no" 1>&6
4540 # The following test taken from the cvs sources
4541 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4542 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4543 # libsocket.so which has a bad implementation of gethostbyname (it
4544 # only looks in /etc/hosts), so we only look for -lsocket if we need
4545 # it.
4546 for ac_func in connect
4548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4549 echo "configure:4550: checking for $ac_func" >&5
4550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4552 else
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 /* System header to define __stub macros and hopefully few prototypes,
4557 which can conflict with char $ac_func(); below. */
4558 #include <assert.h>
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4562 char $ac_func();
4564 int main() {
4566 /* The GNU C library defines this for functions which it implements
4567 to always fail with ENOSYS. Some functions are actually named
4568 something starting with __ and the normal name is an alias. */
4569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4570 choke me
4571 #else
4572 $ac_func();
4573 #endif
4575 ; return 0; }
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4578 rm -rf conftest*
4579 eval "ac_cv_func_$ac_func=yes"
4580 else
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4583 rm -rf conftest*
4584 eval "ac_cv_func_$ac_func=no"
4586 rm -f conftest*
4589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4592 cat >> confdefs.h <<EOF
4593 #define $ac_tr_func 1
4596 else
4597 echo "$ac_t""no" 1>&6
4599 done
4601 if test x"$ac_cv_func_connect" = x"no"; then
4602 case "$LIBS" in
4603 *-lnsl*) ;;
4604 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4605 echo "configure:4606: checking for printf in -lnsl_s" >&5
4606 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4609 else
4610 ac_save_LIBS="$LIBS"
4611 LIBS="-lnsl_s $LIBS"
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4618 char printf();
4620 int main() {
4621 printf()
4622 ; return 0; }
4624 if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4625 rm -rf conftest*
4626 eval "ac_cv_lib_$ac_lib_var=yes"
4627 else
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4630 rm -rf conftest*
4631 eval "ac_cv_lib_$ac_lib_var=no"
4633 rm -f conftest*
4634 LIBS="$ac_save_LIBS"
4637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4639 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_lib 1
4645 LIBS="-lnsl_s $LIBS"
4647 else
4648 echo "$ac_t""no" 1>&6
4651 esac
4652 case "$LIBS" in
4653 *-lnsl*) ;;
4654 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4655 echo "configure:4656: checking for printf in -lnsl" >&5
4656 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4659 else
4660 ac_save_LIBS="$LIBS"
4661 LIBS="-lnsl $LIBS"
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4668 char printf();
4670 int main() {
4671 printf()
4672 ; return 0; }
4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 rm -rf conftest*
4676 eval "ac_cv_lib_$ac_lib_var=yes"
4677 else
4678 echo "configure: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 rm -rf conftest*
4681 eval "ac_cv_lib_$ac_lib_var=no"
4683 rm -f conftest*
4684 LIBS="$ac_save_LIBS"
4687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4689 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4690 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4691 cat >> confdefs.h <<EOF
4692 #define $ac_tr_lib 1
4695 LIBS="-lnsl $LIBS"
4697 else
4698 echo "$ac_t""no" 1>&6
4701 esac
4702 case "$LIBS" in
4703 *-lsocket*) ;;
4704 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4705 echo "configure:4706: checking for connect in -lsocket" >&5
4706 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4709 else
4710 ac_save_LIBS="$LIBS"
4711 LIBS="-lsocket $LIBS"
4712 cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 /* Override any gcc2 internal prototype to avoid an error. */
4716 /* We use char because int might match the return type of a gcc2
4717 builtin and then its argument prototype would still apply. */
4718 char connect();
4720 int main() {
4721 connect()
4722 ; return 0; }
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4725 rm -rf conftest*
4726 eval "ac_cv_lib_$ac_lib_var=yes"
4727 else
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
4731 eval "ac_cv_lib_$ac_lib_var=no"
4733 rm -f conftest*
4734 LIBS="$ac_save_LIBS"
4737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4738 echo "$ac_t""yes" 1>&6
4739 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4740 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4741 cat >> confdefs.h <<EOF
4742 #define $ac_tr_lib 1
4745 LIBS="-lsocket $LIBS"
4747 else
4748 echo "$ac_t""no" 1>&6
4751 esac
4752 case "$LIBS" in
4753 *-linet*) ;;
4754 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4755 echo "configure:4756: checking for connect in -linet" >&5
4756 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4759 else
4760 ac_save_LIBS="$LIBS"
4761 LIBS="-linet $LIBS"
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 /* Override any gcc2 internal prototype to avoid an error. */
4766 /* We use char because int might match the return type of a gcc2
4767 builtin and then its argument prototype would still apply. */
4768 char connect();
4770 int main() {
4771 connect()
4772 ; return 0; }
4774 if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4775 rm -rf conftest*
4776 eval "ac_cv_lib_$ac_lib_var=yes"
4777 else
4778 echo "configure: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4780 rm -rf conftest*
4781 eval "ac_cv_lib_$ac_lib_var=no"
4783 rm -f conftest*
4784 LIBS="$ac_save_LIBS"
4787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4788 echo "$ac_t""yes" 1>&6
4789 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4790 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4791 cat >> confdefs.h <<EOF
4792 #define $ac_tr_lib 1
4795 LIBS="-linet $LIBS"
4797 else
4798 echo "$ac_t""no" 1>&6
4801 esac
4802 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4803 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4804 # ac_cv_func_connect=yes
4805 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4806 cat >> confdefs.h <<\EOF
4807 #define HAVE_CONNECT 1
4813 ###############################################
4814 # test for where we get get_yp_default_domain() from
4815 for ac_func in yp_get_default_domain
4817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_func" >&5
4819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4821 else
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 /* System header to define __stub macros and hopefully few prototypes,
4826 which can conflict with char $ac_func(); below. */
4827 #include <assert.h>
4828 /* Override any gcc2 internal prototype to avoid an error. */
4829 /* We use char because int might match the return type of a gcc2
4830 builtin and then its argument prototype would still apply. */
4831 char $ac_func();
4833 int main() {
4835 /* The GNU C library defines this for functions which it implements
4836 to always fail with ENOSYS. Some functions are actually named
4837 something starting with __ and the normal name is an alias. */
4838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4839 choke me
4840 #else
4841 $ac_func();
4842 #endif
4844 ; return 0; }
4846 if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4847 rm -rf conftest*
4848 eval "ac_cv_func_$ac_func=yes"
4849 else
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4852 rm -rf conftest*
4853 eval "ac_cv_func_$ac_func=no"
4855 rm -f conftest*
4858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4861 cat >> confdefs.h <<EOF
4862 #define $ac_tr_func 1
4865 else
4866 echo "$ac_t""no" 1>&6
4868 done
4870 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4871 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4872 echo "configure:4873: checking for yp_get_default_domain in -lnsl" >&5
4873 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4876 else
4877 ac_save_LIBS="$LIBS"
4878 LIBS="-lnsl $LIBS"
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 /* Override any gcc2 internal prototype to avoid an error. */
4883 /* We use char because int might match the return type of a gcc2
4884 builtin and then its argument prototype would still apply. */
4885 char yp_get_default_domain();
4887 int main() {
4888 yp_get_default_domain()
4889 ; return 0; }
4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4892 rm -rf conftest*
4893 eval "ac_cv_lib_$ac_lib_var=yes"
4894 else
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 rm -rf conftest*
4898 eval "ac_cv_lib_$ac_lib_var=no"
4900 rm -f conftest*
4901 LIBS="$ac_save_LIBS"
4904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4905 echo "$ac_t""yes" 1>&6
4906 LIBS="$LIBS -lnsl";
4907 cat >> confdefs.h <<\EOF
4908 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4911 else
4912 echo "$ac_t""no" 1>&6
4917 # Check if we have execl, if not we need to compile smbrun.
4918 for ac_func in execl
4920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4921 echo "configure:4922: checking for $ac_func" >&5
4922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4924 else
4925 cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* System header to define __stub macros and hopefully few prototypes,
4929 which can conflict with char $ac_func(); below. */
4930 #include <assert.h>
4931 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4934 char $ac_func();
4936 int main() {
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4942 choke me
4943 #else
4944 $ac_func();
4945 #endif
4947 ; return 0; }
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4950 rm -rf conftest*
4951 eval "ac_cv_func_$ac_func=yes"
4952 else
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4955 rm -rf conftest*
4956 eval "ac_cv_func_$ac_func=no"
4958 rm -f conftest*
4961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4964 cat >> confdefs.h <<EOF
4965 #define $ac_tr_func 1
4968 else
4969 echo "$ac_t""no" 1>&6
4971 done
4973 if test x"$ac_cv_func_execl" = x"no"; then
4974 RUNPROG="bin/smbrun"
4975 else
4976 RUNPROG=""
4979 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
4981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4982 echo "configure:4983: checking for $ac_func" >&5
4983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4985 else
4986 cat > conftest.$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4989 /* System header to define __stub macros and hopefully few prototypes,
4990 which can conflict with char $ac_func(); below. */
4991 #include <assert.h>
4992 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4995 char $ac_func();
4997 int main() {
4999 /* The GNU C library defines this for functions which it implements
5000 to always fail with ENOSYS. Some functions are actually named
5001 something starting with __ and the normal name is an alias. */
5002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5003 choke me
5004 #else
5005 $ac_func();
5006 #endif
5008 ; return 0; }
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5011 rm -rf conftest*
5012 eval "ac_cv_func_$ac_func=yes"
5013 else
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5016 rm -rf conftest*
5017 eval "ac_cv_func_$ac_func=no"
5019 rm -f conftest*
5022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5025 cat >> confdefs.h <<EOF
5026 #define $ac_tr_func 1
5029 else
5030 echo "$ac_t""no" 1>&6
5032 done
5034 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5037 echo "configure:5038: checking for $ac_func" >&5
5038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5040 else
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char $ac_func(); below. */
5046 #include <assert.h>
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5050 char $ac_func();
5052 int main() {
5054 /* The GNU C library defines this for functions which it implements
5055 to always fail with ENOSYS. Some functions are actually named
5056 something starting with __ and the normal name is an alias. */
5057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5058 choke me
5059 #else
5060 $ac_func();
5061 #endif
5063 ; return 0; }
5065 if { (eval echo configure:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5066 rm -rf conftest*
5067 eval "ac_cv_func_$ac_func=yes"
5068 else
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5071 rm -rf conftest*
5072 eval "ac_cv_func_$ac_func=no"
5074 rm -f conftest*
5077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5080 cat >> confdefs.h <<EOF
5081 #define $ac_tr_func 1
5084 else
5085 echo "$ac_t""no" 1>&6
5087 done
5089 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5092 echo "configure:5093: checking for $ac_func" >&5
5093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5095 else
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* System header to define __stub macros and hopefully few prototypes,
5100 which can conflict with char $ac_func(); below. */
5101 #include <assert.h>
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105 char $ac_func();
5107 int main() {
5109 /* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
5112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5113 choke me
5114 #else
5115 $ac_func();
5116 #endif
5118 ; return 0; }
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 rm -rf conftest*
5122 eval "ac_cv_func_$ac_func=yes"
5123 else
5124 echo "configure: failed program was:" >&5
5125 cat conftest.$ac_ext >&5
5126 rm -rf conftest*
5127 eval "ac_cv_func_$ac_func=no"
5129 rm -f conftest*
5132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5133 echo "$ac_t""yes" 1>&6
5134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5135 cat >> confdefs.h <<EOF
5136 #define $ac_tr_func 1
5139 else
5140 echo "$ac_t""no" 1>&6
5142 done
5144 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_func" >&5
5148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5150 else
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char $ac_func(); below. */
5156 #include <assert.h>
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5160 char $ac_func();
5162 int main() {
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5168 choke me
5169 #else
5170 $ac_func();
5171 #endif
5173 ; return 0; }
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176 rm -rf conftest*
5177 eval "ac_cv_func_$ac_func=yes"
5178 else
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 rm -rf conftest*
5182 eval "ac_cv_func_$ac_func=no"
5184 rm -f conftest*
5187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5190 cat >> confdefs.h <<EOF
5191 #define $ac_tr_func 1
5194 else
5195 echo "$ac_t""no" 1>&6
5197 done
5199 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_func" >&5
5203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func(); below. */
5211 #include <assert.h>
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5215 char $ac_func();
5217 int main() {
5219 /* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5223 choke me
5224 #else
5225 $ac_func();
5226 #endif
5228 ; return 0; }
5230 if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5231 rm -rf conftest*
5232 eval "ac_cv_func_$ac_func=yes"
5233 else
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5236 rm -rf conftest*
5237 eval "ac_cv_func_$ac_func=no"
5239 rm -f conftest*
5242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5243 echo "$ac_t""yes" 1>&6
5244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5245 cat >> confdefs.h <<EOF
5246 #define $ac_tr_func 1
5249 else
5250 echo "$ac_t""no" 1>&6
5252 done
5254 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_func" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5260 else
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char $ac_func(); below. */
5266 #include <assert.h>
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5270 char $ac_func();
5272 int main() {
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5278 choke me
5279 #else
5280 $ac_func();
5281 #endif
5283 ; return 0; }
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286 rm -rf conftest*
5287 eval "ac_cv_func_$ac_func=yes"
5288 else
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 rm -rf conftest*
5292 eval "ac_cv_func_$ac_func=no"
5294 rm -f conftest*
5297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5300 cat >> confdefs.h <<EOF
5301 #define $ac_tr_func 1
5304 else
5305 echo "$ac_t""no" 1>&6
5307 done
5309 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5312 echo "configure:5313: checking for $ac_func" >&5
5313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5314 echo $ac_n "(cached) $ac_c" 1>&6
5315 else
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* System header to define __stub macros and hopefully few prototypes,
5320 which can conflict with char $ac_func(); below. */
5321 #include <assert.h>
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 /* We use char because int might match the return type of a gcc2
5324 builtin and then its argument prototype would still apply. */
5325 char $ac_func();
5327 int main() {
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5333 choke me
5334 #else
5335 $ac_func();
5336 #endif
5338 ; return 0; }
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5341 rm -rf conftest*
5342 eval "ac_cv_func_$ac_func=yes"
5343 else
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5346 rm -rf conftest*
5347 eval "ac_cv_func_$ac_func=no"
5349 rm -f conftest*
5352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5355 cat >> confdefs.h <<EOF
5356 #define $ac_tr_func 1
5359 else
5360 echo "$ac_t""no" 1>&6
5362 done
5364 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_func" >&5
5368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5370 else
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 /* System header to define __stub macros and hopefully few prototypes,
5375 which can conflict with char $ac_func(); below. */
5376 #include <assert.h>
5377 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5380 char $ac_func();
5382 int main() {
5384 /* The GNU C library defines this for functions which it implements
5385 to always fail with ENOSYS. Some functions are actually named
5386 something starting with __ and the normal name is an alias. */
5387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5388 choke me
5389 #else
5390 $ac_func();
5391 #endif
5393 ; return 0; }
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5396 rm -rf conftest*
5397 eval "ac_cv_func_$ac_func=yes"
5398 else
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 rm -rf conftest*
5402 eval "ac_cv_func_$ac_func=no"
5404 rm -f conftest*
5407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5408 echo "$ac_t""yes" 1>&6
5409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5410 cat >> confdefs.h <<EOF
5411 #define $ac_tr_func 1
5414 else
5415 echo "$ac_t""no" 1>&6
5417 done
5419 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5422 echo "configure:5423: checking for $ac_func" >&5
5423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5425 else
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 /* System header to define __stub macros and hopefully few prototypes,
5430 which can conflict with char $ac_func(); below. */
5431 #include <assert.h>
5432 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5435 char $ac_func();
5437 int main() {
5439 /* The GNU C library defines this for functions which it implements
5440 to always fail with ENOSYS. Some functions are actually named
5441 something starting with __ and the normal name is an alias. */
5442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5443 choke me
5444 #else
5445 $ac_func();
5446 #endif
5448 ; return 0; }
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5451 rm -rf conftest*
5452 eval "ac_cv_func_$ac_func=yes"
5453 else
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5456 rm -rf conftest*
5457 eval "ac_cv_func_$ac_func=no"
5459 rm -f conftest*
5462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5465 cat >> confdefs.h <<EOF
5466 #define $ac_tr_func 1
5469 else
5470 echo "$ac_t""no" 1>&6
5472 done
5475 # syscall() is needed for smbwrapper.
5476 for ac_func in syscall
5478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5479 echo "configure:5480: checking for $ac_func" >&5
5480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5482 else
5483 cat > conftest.$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5486 /* System header to define __stub macros and hopefully few prototypes,
5487 which can conflict with char $ac_func(); below. */
5488 #include <assert.h>
5489 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5492 char $ac_func();
5494 int main() {
5496 /* The GNU C library defines this for functions which it implements
5497 to always fail with ENOSYS. Some functions are actually named
5498 something starting with __ and the normal name is an alias. */
5499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5500 choke me
5501 #else
5502 $ac_func();
5503 #endif
5505 ; return 0; }
5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5508 rm -rf conftest*
5509 eval "ac_cv_func_$ac_func=yes"
5510 else
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5513 rm -rf conftest*
5514 eval "ac_cv_func_$ac_func=no"
5516 rm -f conftest*
5519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5522 cat >> confdefs.h <<EOF
5523 #define $ac_tr_func 1
5526 else
5527 echo "$ac_t""no" 1>&6
5529 done
5532 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_func" >&5
5536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5538 else
5539 cat > conftest.$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5542 /* System header to define __stub macros and hopefully few prototypes,
5543 which can conflict with char $ac_func(); below. */
5544 #include <assert.h>
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5548 char $ac_func();
5550 int main() {
5552 /* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5556 choke me
5557 #else
5558 $ac_func();
5559 #endif
5561 ; return 0; }
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5564 rm -rf conftest*
5565 eval "ac_cv_func_$ac_func=yes"
5566 else
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 rm -rf conftest*
5570 eval "ac_cv_func_$ac_func=no"
5572 rm -f conftest*
5575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5578 cat >> confdefs.h <<EOF
5579 #define $ac_tr_func 1
5582 else
5583 echo "$ac_t""no" 1>&6
5585 done
5587 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_func" >&5
5591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5593 else
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func(); below. */
5599 #include <assert.h>
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603 char $ac_func();
5605 int main() {
5607 /* The GNU C library defines this for functions which it implements
5608 to always fail with ENOSYS. Some functions are actually named
5609 something starting with __ and the normal name is an alias. */
5610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5611 choke me
5612 #else
5613 $ac_func();
5614 #endif
5616 ; return 0; }
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5619 rm -rf conftest*
5620 eval "ac_cv_func_$ac_func=yes"
5621 else
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 rm -rf conftest*
5625 eval "ac_cv_func_$ac_func=no"
5627 rm -f conftest*
5630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633 cat >> confdefs.h <<EOF
5634 #define $ac_tr_func 1
5637 else
5638 echo "$ac_t""no" 1>&6
5640 done
5642 for ac_func in __getcwd _getcwd
5644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5645 echo "configure:5646: checking for $ac_func" >&5
5646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5648 else
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* System header to define __stub macros and hopefully few prototypes,
5653 which can conflict with char $ac_func(); below. */
5654 #include <assert.h>
5655 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5658 char $ac_func();
5660 int main() {
5662 /* The GNU C library defines this for functions which it implements
5663 to always fail with ENOSYS. Some functions are actually named
5664 something starting with __ and the normal name is an alias. */
5665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5666 choke me
5667 #else
5668 $ac_func();
5669 #endif
5671 ; return 0; }
5673 if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5674 rm -rf conftest*
5675 eval "ac_cv_func_$ac_func=yes"
5676 else
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 rm -rf conftest*
5680 eval "ac_cv_func_$ac_func=no"
5682 rm -f conftest*
5685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5688 cat >> confdefs.h <<EOF
5689 #define $ac_tr_func 1
5692 else
5693 echo "$ac_t""no" 1>&6
5695 done
5697 for ac_func in __xstat __fxstat __lxstat
5699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5700 echo "configure:5701: checking for $ac_func" >&5
5701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5703 else
5704 cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 /* System header to define __stub macros and hopefully few prototypes,
5708 which can conflict with char $ac_func(); below. */
5709 #include <assert.h>
5710 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5713 char $ac_func();
5715 int main() {
5717 /* The GNU C library defines this for functions which it implements
5718 to always fail with ENOSYS. Some functions are actually named
5719 something starting with __ and the normal name is an alias. */
5720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5721 choke me
5722 #else
5723 $ac_func();
5724 #endif
5726 ; return 0; }
5728 if { (eval echo configure:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5729 rm -rf conftest*
5730 eval "ac_cv_func_$ac_func=yes"
5731 else
5732 echo "configure: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 rm -rf conftest*
5735 eval "ac_cv_func_$ac_func=no"
5737 rm -f conftest*
5740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5741 echo "$ac_t""yes" 1>&6
5742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5743 cat >> confdefs.h <<EOF
5744 #define $ac_tr_func 1
5747 else
5748 echo "$ac_t""no" 1>&6
5750 done
5752 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5755 echo "configure:5756: checking for $ac_func" >&5
5756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5758 else
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 /* System header to define __stub macros and hopefully few prototypes,
5763 which can conflict with char $ac_func(); below. */
5764 #include <assert.h>
5765 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5768 char $ac_func();
5770 int main() {
5772 /* The GNU C library defines this for functions which it implements
5773 to always fail with ENOSYS. Some functions are actually named
5774 something starting with __ and the normal name is an alias. */
5775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5776 choke me
5777 #else
5778 $ac_func();
5779 #endif
5781 ; return 0; }
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784 rm -rf conftest*
5785 eval "ac_cv_func_$ac_func=yes"
5786 else
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5789 rm -rf conftest*
5790 eval "ac_cv_func_$ac_func=no"
5792 rm -f conftest*
5795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5796 echo "$ac_t""yes" 1>&6
5797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5798 cat >> confdefs.h <<EOF
5799 #define $ac_tr_func 1
5802 else
5803 echo "$ac_t""no" 1>&6
5805 done
5807 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5810 echo "configure:5811: checking for $ac_func" >&5
5811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5813 else
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 /* System header to define __stub macros and hopefully few prototypes,
5818 which can conflict with char $ac_func(); below. */
5819 #include <assert.h>
5820 /* Override any gcc2 internal prototype to avoid an error. */
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5823 char $ac_func();
5825 int main() {
5827 /* The GNU C library defines this for functions which it implements
5828 to always fail with ENOSYS. Some functions are actually named
5829 something starting with __ and the normal name is an alias. */
5830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5831 choke me
5832 #else
5833 $ac_func();
5834 #endif
5836 ; return 0; }
5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5839 rm -rf conftest*
5840 eval "ac_cv_func_$ac_func=yes"
5841 else
5842 echo "configure: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5844 rm -rf conftest*
5845 eval "ac_cv_func_$ac_func=no"
5847 rm -f conftest*
5850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5851 echo "$ac_t""yes" 1>&6
5852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5853 cat >> confdefs.h <<EOF
5854 #define $ac_tr_func 1
5857 else
5858 echo "$ac_t""no" 1>&6
5860 done
5862 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5865 echo "configure:5866: checking for $ac_func" >&5
5866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6
5868 else
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5872 /* System header to define __stub macros and hopefully few prototypes,
5873 which can conflict with char $ac_func(); below. */
5874 #include <assert.h>
5875 /* Override any gcc2 internal prototype to avoid an error. */
5876 /* We use char because int might match the return type of a gcc2
5877 builtin and then its argument prototype would still apply. */
5878 char $ac_func();
5880 int main() {
5882 /* The GNU C library defines this for functions which it implements
5883 to always fail with ENOSYS. Some functions are actually named
5884 something starting with __ and the normal name is an alias. */
5885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5886 choke me
5887 #else
5888 $ac_func();
5889 #endif
5891 ; return 0; }
5893 if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5894 rm -rf conftest*
5895 eval "ac_cv_func_$ac_func=yes"
5896 else
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5899 rm -rf conftest*
5900 eval "ac_cv_func_$ac_func=no"
5902 rm -f conftest*
5905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5906 echo "$ac_t""yes" 1>&6
5907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5908 cat >> confdefs.h <<EOF
5909 #define $ac_tr_func 1
5912 else
5913 echo "$ac_t""no" 1>&6
5915 done
5917 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5920 echo "configure:5921: checking for $ac_func" >&5
5921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5923 else
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 /* System header to define __stub macros and hopefully few prototypes,
5928 which can conflict with char $ac_func(); below. */
5929 #include <assert.h>
5930 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5933 char $ac_func();
5935 int main() {
5937 /* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5941 choke me
5942 #else
5943 $ac_func();
5944 #endif
5946 ; return 0; }
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949 rm -rf conftest*
5950 eval "ac_cv_func_$ac_func=yes"
5951 else
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5954 rm -rf conftest*
5955 eval "ac_cv_func_$ac_func=no"
5957 rm -f conftest*
5960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5961 echo "$ac_t""yes" 1>&6
5962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5963 cat >> confdefs.h <<EOF
5964 #define $ac_tr_func 1
5967 else
5968 echo "$ac_t""no" 1>&6
5970 done
5972 for ac_func in _write __write _fork __fork
5974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5975 echo "configure:5976: checking for $ac_func" >&5
5976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5978 else
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5982 /* System header to define __stub macros and hopefully few prototypes,
5983 which can conflict with char $ac_func(); below. */
5984 #include <assert.h>
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5988 char $ac_func();
5990 int main() {
5992 /* The GNU C library defines this for functions which it implements
5993 to always fail with ENOSYS. Some functions are actually named
5994 something starting with __ and the normal name is an alias. */
5995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5996 choke me
5997 #else
5998 $ac_func();
5999 #endif
6001 ; return 0; }
6003 if { (eval echo configure:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004 rm -rf conftest*
6005 eval "ac_cv_func_$ac_func=yes"
6006 else
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6009 rm -rf conftest*
6010 eval "ac_cv_func_$ac_func=no"
6012 rm -f conftest*
6015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6018 cat >> confdefs.h <<EOF
6019 #define $ac_tr_func 1
6022 else
6023 echo "$ac_t""no" 1>&6
6025 done
6027 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_func" >&5
6031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6033 else
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 /* System header to define __stub macros and hopefully few prototypes,
6038 which can conflict with char $ac_func(); below. */
6039 #include <assert.h>
6040 /* Override any gcc2 internal prototype to avoid an error. */
6041 /* We use char because int might match the return type of a gcc2
6042 builtin and then its argument prototype would still apply. */
6043 char $ac_func();
6045 int main() {
6047 /* The GNU C library defines this for functions which it implements
6048 to always fail with ENOSYS. Some functions are actually named
6049 something starting with __ and the normal name is an alias. */
6050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6051 choke me
6052 #else
6053 $ac_func();
6054 #endif
6056 ; return 0; }
6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6059 rm -rf conftest*
6060 eval "ac_cv_func_$ac_func=yes"
6061 else
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6064 rm -rf conftest*
6065 eval "ac_cv_func_$ac_func=no"
6067 rm -f conftest*
6070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6071 echo "$ac_t""yes" 1>&6
6072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6073 cat >> confdefs.h <<EOF
6074 #define $ac_tr_func 1
6077 else
6078 echo "$ac_t""no" 1>&6
6080 done
6082 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6085 echo "configure:6086: checking for $ac_func" >&5
6086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6088 else
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 /* System header to define __stub macros and hopefully few prototypes,
6093 which can conflict with char $ac_func(); below. */
6094 #include <assert.h>
6095 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6098 char $ac_func();
6100 int main() {
6102 /* The GNU C library defines this for functions which it implements
6103 to always fail with ENOSYS. Some functions are actually named
6104 something starting with __ and the normal name is an alias. */
6105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6106 choke me
6107 #else
6108 $ac_func();
6109 #endif
6111 ; return 0; }
6113 if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6114 rm -rf conftest*
6115 eval "ac_cv_func_$ac_func=yes"
6116 else
6117 echo "configure: failed program was:" >&5
6118 cat conftest.$ac_ext >&5
6119 rm -rf conftest*
6120 eval "ac_cv_func_$ac_func=no"
6122 rm -f conftest*
6125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6126 echo "$ac_t""yes" 1>&6
6127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6128 cat >> confdefs.h <<EOF
6129 #define $ac_tr_func 1
6132 else
6133 echo "$ac_t""no" 1>&6
6135 done
6137 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6140 echo "configure:6141: checking for $ac_func" >&5
6141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6143 else
6144 cat > conftest.$ac_ext <<EOF
6145 #line 6146 "configure"
6146 #include "confdefs.h"
6147 /* System header to define __stub macros and hopefully few prototypes,
6148 which can conflict with char $ac_func(); below. */
6149 #include <assert.h>
6150 /* Override any gcc2 internal prototype to avoid an error. */
6151 /* We use char because int might match the return type of a gcc2
6152 builtin and then its argument prototype would still apply. */
6153 char $ac_func();
6155 int main() {
6157 /* The GNU C library defines this for functions which it implements
6158 to always fail with ENOSYS. Some functions are actually named
6159 something starting with __ and the normal name is an alias. */
6160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6161 choke me
6162 #else
6163 $ac_func();
6164 #endif
6166 ; return 0; }
6168 if { (eval echo configure:6169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6169 rm -rf conftest*
6170 eval "ac_cv_func_$ac_func=yes"
6171 else
6172 echo "configure: failed program was:" >&5
6173 cat conftest.$ac_ext >&5
6174 rm -rf conftest*
6175 eval "ac_cv_func_$ac_func=no"
6177 rm -f conftest*
6180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6183 cat >> confdefs.h <<EOF
6184 #define $ac_tr_func 1
6187 else
6188 echo "$ac_t""no" 1>&6
6190 done
6192 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6195 echo "configure:6196: checking for $ac_func" >&5
6196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6198 else
6199 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6202 /* System header to define __stub macros and hopefully few prototypes,
6203 which can conflict with char $ac_func(); below. */
6204 #include <assert.h>
6205 /* Override any gcc2 internal prototype to avoid an error. */
6206 /* We use char because int might match the return type of a gcc2
6207 builtin and then its argument prototype would still apply. */
6208 char $ac_func();
6210 int main() {
6212 /* The GNU C library defines this for functions which it implements
6213 to always fail with ENOSYS. Some functions are actually named
6214 something starting with __ and the normal name is an alias. */
6215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6216 choke me
6217 #else
6218 $ac_func();
6219 #endif
6221 ; return 0; }
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6224 rm -rf conftest*
6225 eval "ac_cv_func_$ac_func=yes"
6226 else
6227 echo "configure: failed program was:" >&5
6228 cat conftest.$ac_ext >&5
6229 rm -rf conftest*
6230 eval "ac_cv_func_$ac_func=no"
6232 rm -f conftest*
6235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6236 echo "$ac_t""yes" 1>&6
6237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6238 cat >> confdefs.h <<EOF
6239 #define $ac_tr_func 1
6242 else
6243 echo "$ac_t""no" 1>&6
6245 done
6247 for ac_func in open64 _open64 __open64 creat64
6249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6250 echo "configure:6251: checking for $ac_func" >&5
6251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6253 else
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 /* System header to define __stub macros and hopefully few prototypes,
6258 which can conflict with char $ac_func(); below. */
6259 #include <assert.h>
6260 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6263 char $ac_func();
6265 int main() {
6267 /* The GNU C library defines this for functions which it implements
6268 to always fail with ENOSYS. Some functions are actually named
6269 something starting with __ and the normal name is an alias. */
6270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6271 choke me
6272 #else
6273 $ac_func();
6274 #endif
6276 ; return 0; }
6278 if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6279 rm -rf conftest*
6280 eval "ac_cv_func_$ac_func=yes"
6281 else
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6284 rm -rf conftest*
6285 eval "ac_cv_func_$ac_func=no"
6287 rm -f conftest*
6290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6293 cat >> confdefs.h <<EOF
6294 #define $ac_tr_func 1
6297 else
6298 echo "$ac_t""no" 1>&6
6300 done
6304 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6307 if test x$ac_cv_func_stat64 = xno ; then
6308 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6309 echo "configure:6310: checking for stat64 in <sys/stat.h>" >&5
6310 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6314 #if defined(HAVE_UNISTD_H)
6315 #include <unistd.h>
6316 #endif
6317 #include <sys/stat.h>
6319 int main() {
6320 struct stat64 st64; exit(stat64(".",&st64));
6321 ; return 0; }
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6324 rm -rf conftest*
6325 ac_cv_func_stat64=yes
6326 else
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 rm -f conftest*
6331 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6332 if test x$ac_cv_func_stat64 = xyes ; then
6333 cat >> confdefs.h <<\EOF
6334 #define HAVE_STAT64 1
6340 if test x$ac_cv_func_lstat64 = xno ; then
6341 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6342 echo "configure:6343: checking for lstat64 in <sys/stat.h>" >&5
6343 cat > conftest.$ac_ext <<EOF
6344 #line 6345 "configure"
6345 #include "confdefs.h"
6347 #if defined(HAVE_UNISTD_H)
6348 #include <unistd.h>
6349 #endif
6350 #include <sys/stat.h>
6352 int main() {
6353 struct stat64 st64; exit(lstat64(".",&st64));
6354 ; return 0; }
6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 rm -rf conftest*
6358 ac_cv_func_lstat64=yes
6359 else
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6363 rm -f conftest*
6364 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6365 if test x$ac_cv_func_lstat64 = xyes ; then
6366 cat >> confdefs.h <<\EOF
6367 #define HAVE_LSTAT64 1
6373 if test x$ac_cv_func_fstat64 = xno ; then
6374 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6375 echo "configure:6376: checking for fstat64 in <sys/stat.h>" >&5
6376 cat > conftest.$ac_ext <<EOF
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6380 #if defined(HAVE_UNISTD_H)
6381 #include <unistd.h>
6382 #endif
6383 #include <sys/stat.h>
6385 int main() {
6386 struct stat64 st64; exit(fstat64(0,&st64));
6387 ; return 0; }
6389 if { (eval echo configure:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6390 rm -rf conftest*
6391 ac_cv_func_fstat64=yes
6392 else
6393 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6396 rm -f conftest*
6397 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6398 if test x$ac_cv_func_fstat64 = xyes ; then
6399 cat >> confdefs.h <<\EOF
6400 #define HAVE_FSTAT64 1
6407 # If no strcasecmp, check for it in some known places
6408 # It is in -lresolv on ReliantUNIX and UnixWare
6409 # -lresolve *must* follow -lnsl for name resolution to work properly
6412 if test x$ac_cv_func_strcasecmp = xno ; then
6413 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6414 echo "configure:6415: checking for strcasecmp in -lresolv" >&5
6415 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6418 else
6419 ac_save_LIBS="$LIBS"
6420 LIBS="-lresolv $LIBS"
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 /* Override any gcc2 internal prototype to avoid an error. */
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6427 char strcasecmp();
6429 int main() {
6430 strcasecmp()
6431 ; return 0; }
6433 if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6434 rm -rf conftest*
6435 eval "ac_cv_lib_$ac_lib_var=yes"
6436 else
6437 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 rm -rf conftest*
6440 eval "ac_cv_lib_$ac_lib_var=no"
6442 rm -f conftest*
6443 LIBS="$ac_save_LIBS"
6446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6447 echo "$ac_t""yes" 1>&6
6448 LIBS="$LIBS -lresolv"
6449 cat >> confdefs.h <<\EOF
6450 #define HAVE_STRCASECMP 1
6453 else
6454 echo "$ac_t""no" 1>&6
6460 # Check for the functions putprpwnam, set_auth_parameters,
6461 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6462 # Needed for OSF1 and HPUX.
6465 case "$LIBS" in
6466 *-lsecurity*) for ac_func in putprpwnam
6468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6469 echo "configure:6470: checking for $ac_func" >&5
6470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6472 else
6473 cat > conftest.$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6476 /* System header to define __stub macros and hopefully few prototypes,
6477 which can conflict with char $ac_func(); below. */
6478 #include <assert.h>
6479 /* Override any gcc2 internal prototype to avoid an error. */
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6482 char $ac_func();
6484 int main() {
6486 /* The GNU C library defines this for functions which it implements
6487 to always fail with ENOSYS. Some functions are actually named
6488 something starting with __ and the normal name is an alias. */
6489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6490 choke me
6491 #else
6492 $ac_func();
6493 #endif
6495 ; return 0; }
6497 if { (eval echo configure:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6498 rm -rf conftest*
6499 eval "ac_cv_func_$ac_func=yes"
6500 else
6501 echo "configure: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6503 rm -rf conftest*
6504 eval "ac_cv_func_$ac_func=no"
6506 rm -f conftest*
6509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6512 cat >> confdefs.h <<EOF
6513 #define $ac_tr_func 1
6516 else
6517 echo "$ac_t""no" 1>&6
6519 done
6521 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6522 echo "configure:6523: checking for putprpwnam in -lsecurity" >&5
6523 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6526 else
6527 ac_save_LIBS="$LIBS"
6528 LIBS="-lsecurity $LIBS"
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6535 char putprpwnam();
6537 int main() {
6538 putprpwnam()
6539 ; return 0; }
6541 if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6542 rm -rf conftest*
6543 eval "ac_cv_lib_$ac_lib_var=yes"
6544 else
6545 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6547 rm -rf conftest*
6548 eval "ac_cv_lib_$ac_lib_var=no"
6550 rm -f conftest*
6551 LIBS="$ac_save_LIBS"
6554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6556 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6557 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6558 cat >> confdefs.h <<EOF
6559 #define $ac_tr_lib 1
6562 LIBS="-lsecurity $LIBS"
6564 else
6565 echo "$ac_t""no" 1>&6
6568 for ac_func in putprpwnam
6570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6571 echo "configure:6572: checking for $ac_func" >&5
6572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6574 else
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 /* System header to define __stub macros and hopefully few prototypes,
6579 which can conflict with char $ac_func(); below. */
6580 #include <assert.h>
6581 /* Override any gcc2 internal prototype to avoid an error. */
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6584 char $ac_func();
6586 int main() {
6588 /* The GNU C library defines this for functions which it implements
6589 to always fail with ENOSYS. Some functions are actually named
6590 something starting with __ and the normal name is an alias. */
6591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6592 choke me
6593 #else
6594 $ac_func();
6595 #endif
6597 ; return 0; }
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6600 rm -rf conftest*
6601 eval "ac_cv_func_$ac_func=yes"
6602 else
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6605 rm -rf conftest*
6606 eval "ac_cv_func_$ac_func=no"
6608 rm -f conftest*
6611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6612 echo "$ac_t""yes" 1>&6
6613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6614 cat >> confdefs.h <<EOF
6615 #define $ac_tr_func 1
6618 else
6619 echo "$ac_t""no" 1>&6
6621 done
6624 esac
6626 case "$LIBS" in
6627 *-lsec*) for ac_func in putprpwnam
6629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6630 echo "configure:6631: checking for $ac_func" >&5
6631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6633 else
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 /* System header to define __stub macros and hopefully few prototypes,
6638 which can conflict with char $ac_func(); below. */
6639 #include <assert.h>
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6643 char $ac_func();
6645 int main() {
6647 /* The GNU C library defines this for functions which it implements
6648 to always fail with ENOSYS. Some functions are actually named
6649 something starting with __ and the normal name is an alias. */
6650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6651 choke me
6652 #else
6653 $ac_func();
6654 #endif
6656 ; return 0; }
6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 rm -rf conftest*
6660 eval "ac_cv_func_$ac_func=yes"
6661 else
6662 echo "configure: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 rm -rf conftest*
6665 eval "ac_cv_func_$ac_func=no"
6667 rm -f conftest*
6670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6671 echo "$ac_t""yes" 1>&6
6672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6673 cat >> confdefs.h <<EOF
6674 #define $ac_tr_func 1
6677 else
6678 echo "$ac_t""no" 1>&6
6680 done
6682 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6683 echo "configure:6684: checking for putprpwnam in -lsec" >&5
6684 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6687 else
6688 ac_save_LIBS="$LIBS"
6689 LIBS="-lsec $LIBS"
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6696 char putprpwnam();
6698 int main() {
6699 putprpwnam()
6700 ; return 0; }
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6703 rm -rf conftest*
6704 eval "ac_cv_lib_$ac_lib_var=yes"
6705 else
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6708 rm -rf conftest*
6709 eval "ac_cv_lib_$ac_lib_var=no"
6711 rm -f conftest*
6712 LIBS="$ac_save_LIBS"
6715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6717 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6718 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6719 cat >> confdefs.h <<EOF
6720 #define $ac_tr_lib 1
6723 LIBS="-lsec $LIBS"
6725 else
6726 echo "$ac_t""no" 1>&6
6729 for ac_func in putprpwnam
6731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6732 echo "configure:6733: checking for $ac_func" >&5
6733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6735 else
6736 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char $ac_func(); below. */
6741 #include <assert.h>
6742 /* Override any gcc2 internal prototype to avoid an error. */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6745 char $ac_func();
6747 int main() {
6749 /* The GNU C library defines this for functions which it implements
6750 to always fail with ENOSYS. Some functions are actually named
6751 something starting with __ and the normal name is an alias. */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6753 choke me
6754 #else
6755 $ac_func();
6756 #endif
6758 ; return 0; }
6760 if { (eval echo configure:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 rm -rf conftest*
6762 eval "ac_cv_func_$ac_func=yes"
6763 else
6764 echo "configure: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6766 rm -rf conftest*
6767 eval "ac_cv_func_$ac_func=no"
6769 rm -f conftest*
6772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6773 echo "$ac_t""yes" 1>&6
6774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6775 cat >> confdefs.h <<EOF
6776 #define $ac_tr_func 1
6779 else
6780 echo "$ac_t""no" 1>&6
6782 done
6785 esac
6788 case "$LIBS" in
6789 *-lsecurity*) for ac_func in set_auth_parameters
6791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6792 echo "configure:6793: checking for $ac_func" >&5
6793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6795 else
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 /* System header to define __stub macros and hopefully few prototypes,
6800 which can conflict with char $ac_func(); below. */
6801 #include <assert.h>
6802 /* Override any gcc2 internal prototype to avoid an error. */
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6805 char $ac_func();
6807 int main() {
6809 /* The GNU C library defines this for functions which it implements
6810 to always fail with ENOSYS. Some functions are actually named
6811 something starting with __ and the normal name is an alias. */
6812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6813 choke me
6814 #else
6815 $ac_func();
6816 #endif
6818 ; return 0; }
6820 if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6821 rm -rf conftest*
6822 eval "ac_cv_func_$ac_func=yes"
6823 else
6824 echo "configure: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6826 rm -rf conftest*
6827 eval "ac_cv_func_$ac_func=no"
6829 rm -f conftest*
6832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6833 echo "$ac_t""yes" 1>&6
6834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6835 cat >> confdefs.h <<EOF
6836 #define $ac_tr_func 1
6839 else
6840 echo "$ac_t""no" 1>&6
6842 done
6844 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6845 echo "configure:6846: checking for set_auth_parameters in -lsecurity" >&5
6846 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6849 else
6850 ac_save_LIBS="$LIBS"
6851 LIBS="-lsecurity $LIBS"
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* Override any gcc2 internal prototype to avoid an error. */
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6858 char set_auth_parameters();
6860 int main() {
6861 set_auth_parameters()
6862 ; return 0; }
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6865 rm -rf conftest*
6866 eval "ac_cv_lib_$ac_lib_var=yes"
6867 else
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6870 rm -rf conftest*
6871 eval "ac_cv_lib_$ac_lib_var=no"
6873 rm -f conftest*
6874 LIBS="$ac_save_LIBS"
6877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6878 echo "$ac_t""yes" 1>&6
6879 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6881 cat >> confdefs.h <<EOF
6882 #define $ac_tr_lib 1
6885 LIBS="-lsecurity $LIBS"
6887 else
6888 echo "$ac_t""no" 1>&6
6891 for ac_func in set_auth_parameters
6893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6894 echo "configure:6895: checking for $ac_func" >&5
6895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6897 else
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 /* System header to define __stub macros and hopefully few prototypes,
6902 which can conflict with char $ac_func(); below. */
6903 #include <assert.h>
6904 /* Override any gcc2 internal prototype to avoid an error. */
6905 /* We use char because int might match the return type of a gcc2
6906 builtin and then its argument prototype would still apply. */
6907 char $ac_func();
6909 int main() {
6911 /* The GNU C library defines this for functions which it implements
6912 to always fail with ENOSYS. Some functions are actually named
6913 something starting with __ and the normal name is an alias. */
6914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6915 choke me
6916 #else
6917 $ac_func();
6918 #endif
6920 ; return 0; }
6922 if { (eval echo configure:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6923 rm -rf conftest*
6924 eval "ac_cv_func_$ac_func=yes"
6925 else
6926 echo "configure: failed program was:" >&5
6927 cat conftest.$ac_ext >&5
6928 rm -rf conftest*
6929 eval "ac_cv_func_$ac_func=no"
6931 rm -f conftest*
6934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6935 echo "$ac_t""yes" 1>&6
6936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6937 cat >> confdefs.h <<EOF
6938 #define $ac_tr_func 1
6941 else
6942 echo "$ac_t""no" 1>&6
6944 done
6947 esac
6949 case "$LIBS" in
6950 *-lsec*) for ac_func in set_auth_parameters
6952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6953 echo "configure:6954: checking for $ac_func" >&5
6954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6955 echo $ac_n "(cached) $ac_c" 1>&6
6956 else
6957 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6960 /* System header to define __stub macros and hopefully few prototypes,
6961 which can conflict with char $ac_func(); below. */
6962 #include <assert.h>
6963 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6966 char $ac_func();
6968 int main() {
6970 /* The GNU C library defines this for functions which it implements
6971 to always fail with ENOSYS. Some functions are actually named
6972 something starting with __ and the normal name is an alias. */
6973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6974 choke me
6975 #else
6976 $ac_func();
6977 #endif
6979 ; return 0; }
6981 if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6982 rm -rf conftest*
6983 eval "ac_cv_func_$ac_func=yes"
6984 else
6985 echo "configure: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6987 rm -rf conftest*
6988 eval "ac_cv_func_$ac_func=no"
6990 rm -f conftest*
6993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6994 echo "$ac_t""yes" 1>&6
6995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6996 cat >> confdefs.h <<EOF
6997 #define $ac_tr_func 1
7000 else
7001 echo "$ac_t""no" 1>&6
7003 done
7005 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7006 echo "configure:7007: checking for set_auth_parameters in -lsec" >&5
7007 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7010 else
7011 ac_save_LIBS="$LIBS"
7012 LIBS="-lsec $LIBS"
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* Override any gcc2 internal prototype to avoid an error. */
7017 /* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */
7019 char set_auth_parameters();
7021 int main() {
7022 set_auth_parameters()
7023 ; return 0; }
7025 if { (eval echo configure:7026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7026 rm -rf conftest*
7027 eval "ac_cv_lib_$ac_lib_var=yes"
7028 else
7029 echo "configure: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7031 rm -rf conftest*
7032 eval "ac_cv_lib_$ac_lib_var=no"
7034 rm -f conftest*
7035 LIBS="$ac_save_LIBS"
7038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7040 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7042 cat >> confdefs.h <<EOF
7043 #define $ac_tr_lib 1
7046 LIBS="-lsec $LIBS"
7048 else
7049 echo "$ac_t""no" 1>&6
7052 for ac_func in set_auth_parameters
7054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7055 echo "configure:7056: checking for $ac_func" >&5
7056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7057 echo $ac_n "(cached) $ac_c" 1>&6
7058 else
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 /* System header to define __stub macros and hopefully few prototypes,
7063 which can conflict with char $ac_func(); below. */
7064 #include <assert.h>
7065 /* Override any gcc2 internal prototype to avoid an error. */
7066 /* We use char because int might match the return type of a gcc2
7067 builtin and then its argument prototype would still apply. */
7068 char $ac_func();
7070 int main() {
7072 /* The GNU C library defines this for functions which it implements
7073 to always fail with ENOSYS. Some functions are actually named
7074 something starting with __ and the normal name is an alias. */
7075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7076 choke me
7077 #else
7078 $ac_func();
7079 #endif
7081 ; return 0; }
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7084 rm -rf conftest*
7085 eval "ac_cv_func_$ac_func=yes"
7086 else
7087 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7089 rm -rf conftest*
7090 eval "ac_cv_func_$ac_func=no"
7092 rm -f conftest*
7095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7096 echo "$ac_t""yes" 1>&6
7097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7098 cat >> confdefs.h <<EOF
7099 #define $ac_tr_func 1
7102 else
7103 echo "$ac_t""no" 1>&6
7105 done
7108 esac
7111 # UnixWare 7.x has its getspnam in -lgen
7112 case "$LIBS" in
7113 *-lgen*) for ac_func in getspnam
7115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7116 echo "configure:7117: checking for $ac_func" >&5
7117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7119 else
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 /* System header to define __stub macros and hopefully few prototypes,
7124 which can conflict with char $ac_func(); below. */
7125 #include <assert.h>
7126 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7129 char $ac_func();
7131 int main() {
7133 /* The GNU C library defines this for functions which it implements
7134 to always fail with ENOSYS. Some functions are actually named
7135 something starting with __ and the normal name is an alias. */
7136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7137 choke me
7138 #else
7139 $ac_func();
7140 #endif
7142 ; return 0; }
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7145 rm -rf conftest*
7146 eval "ac_cv_func_$ac_func=yes"
7147 else
7148 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7150 rm -rf conftest*
7151 eval "ac_cv_func_$ac_func=no"
7153 rm -f conftest*
7156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7159 cat >> confdefs.h <<EOF
7160 #define $ac_tr_func 1
7163 else
7164 echo "$ac_t""no" 1>&6
7166 done
7168 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7169 echo "configure:7170: checking for getspnam in -lgen" >&5
7170 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7172 echo $ac_n "(cached) $ac_c" 1>&6
7173 else
7174 ac_save_LIBS="$LIBS"
7175 LIBS="-lgen $LIBS"
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 /* Override any gcc2 internal prototype to avoid an error. */
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182 char getspnam();
7184 int main() {
7185 getspnam()
7186 ; return 0; }
7188 if { (eval echo configure:7189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7189 rm -rf conftest*
7190 eval "ac_cv_lib_$ac_lib_var=yes"
7191 else
7192 echo "configure: failed program was:" >&5
7193 cat conftest.$ac_ext >&5
7194 rm -rf conftest*
7195 eval "ac_cv_lib_$ac_lib_var=no"
7197 rm -f conftest*
7198 LIBS="$ac_save_LIBS"
7201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7202 echo "$ac_t""yes" 1>&6
7203 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7205 cat >> confdefs.h <<EOF
7206 #define $ac_tr_lib 1
7209 LIBS="-lgen $LIBS"
7211 else
7212 echo "$ac_t""no" 1>&6
7215 for ac_func in getspnam
7217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7218 echo "configure:7219: checking for $ac_func" >&5
7219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7220 echo $ac_n "(cached) $ac_c" 1>&6
7221 else
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 /* System header to define __stub macros and hopefully few prototypes,
7226 which can conflict with char $ac_func(); below. */
7227 #include <assert.h>
7228 /* Override any gcc2 internal prototype to avoid an error. */
7229 /* We use char because int might match the return type of a gcc2
7230 builtin and then its argument prototype would still apply. */
7231 char $ac_func();
7233 int main() {
7235 /* The GNU C library defines this for functions which it implements
7236 to always fail with ENOSYS. Some functions are actually named
7237 something starting with __ and the normal name is an alias. */
7238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7239 choke me
7240 #else
7241 $ac_func();
7242 #endif
7244 ; return 0; }
7246 if { (eval echo configure:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7247 rm -rf conftest*
7248 eval "ac_cv_func_$ac_func=yes"
7249 else
7250 echo "configure: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7252 rm -rf conftest*
7253 eval "ac_cv_func_$ac_func=no"
7255 rm -f conftest*
7258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7259 echo "$ac_t""yes" 1>&6
7260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7261 cat >> confdefs.h <<EOF
7262 #define $ac_tr_func 1
7265 else
7266 echo "$ac_t""no" 1>&6
7268 done
7271 esac
7274 case "$LIBS" in
7275 *-lsecurity*) for ac_func in getspnam
7277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7278 echo "configure:7279: checking for $ac_func" >&5
7279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7281 else
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7285 /* System header to define __stub macros and hopefully few prototypes,
7286 which can conflict with char $ac_func(); below. */
7287 #include <assert.h>
7288 /* Override any gcc2 internal prototype to avoid an error. */
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7291 char $ac_func();
7293 int main() {
7295 /* The GNU C library defines this for functions which it implements
7296 to always fail with ENOSYS. Some functions are actually named
7297 something starting with __ and the normal name is an alias. */
7298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7299 choke me
7300 #else
7301 $ac_func();
7302 #endif
7304 ; return 0; }
7306 if { (eval echo configure:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7307 rm -rf conftest*
7308 eval "ac_cv_func_$ac_func=yes"
7309 else
7310 echo "configure: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7312 rm -rf conftest*
7313 eval "ac_cv_func_$ac_func=no"
7315 rm -f conftest*
7318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7319 echo "$ac_t""yes" 1>&6
7320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7321 cat >> confdefs.h <<EOF
7322 #define $ac_tr_func 1
7325 else
7326 echo "$ac_t""no" 1>&6
7328 done
7330 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7331 echo "configure:7332: checking for getspnam in -lsecurity" >&5
7332 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7334 echo $ac_n "(cached) $ac_c" 1>&6
7335 else
7336 ac_save_LIBS="$LIBS"
7337 LIBS="-lsecurity $LIBS"
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 /* Override any gcc2 internal prototype to avoid an error. */
7342 /* We use char because int might match the return type of a gcc2
7343 builtin and then its argument prototype would still apply. */
7344 char getspnam();
7346 int main() {
7347 getspnam()
7348 ; return 0; }
7350 if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7351 rm -rf conftest*
7352 eval "ac_cv_lib_$ac_lib_var=yes"
7353 else
7354 echo "configure: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7356 rm -rf conftest*
7357 eval "ac_cv_lib_$ac_lib_var=no"
7359 rm -f conftest*
7360 LIBS="$ac_save_LIBS"
7363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7364 echo "$ac_t""yes" 1>&6
7365 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7367 cat >> confdefs.h <<EOF
7368 #define $ac_tr_lib 1
7371 LIBS="-lsecurity $LIBS"
7373 else
7374 echo "$ac_t""no" 1>&6
7377 for ac_func in getspnam
7379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7380 echo "configure:7381: checking for $ac_func" >&5
7381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7383 else
7384 cat > conftest.$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7387 /* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char $ac_func(); below. */
7389 #include <assert.h>
7390 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7393 char $ac_func();
7395 int main() {
7397 /* The GNU C library defines this for functions which it implements
7398 to always fail with ENOSYS. Some functions are actually named
7399 something starting with __ and the normal name is an alias. */
7400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7401 choke me
7402 #else
7403 $ac_func();
7404 #endif
7406 ; return 0; }
7408 if { (eval echo configure:7409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7409 rm -rf conftest*
7410 eval "ac_cv_func_$ac_func=yes"
7411 else
7412 echo "configure: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7414 rm -rf conftest*
7415 eval "ac_cv_func_$ac_func=no"
7417 rm -f conftest*
7420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7421 echo "$ac_t""yes" 1>&6
7422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7423 cat >> confdefs.h <<EOF
7424 #define $ac_tr_func 1
7427 else
7428 echo "$ac_t""no" 1>&6
7430 done
7433 esac
7435 case "$LIBS" in
7436 *-lsec*) for ac_func in getspnam
7438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7439 echo "configure:7440: checking for $ac_func" >&5
7440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7441 echo $ac_n "(cached) $ac_c" 1>&6
7442 else
7443 cat > conftest.$ac_ext <<EOF
7444 #line 7445 "configure"
7445 #include "confdefs.h"
7446 /* System header to define __stub macros and hopefully few prototypes,
7447 which can conflict with char $ac_func(); below. */
7448 #include <assert.h>
7449 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7452 char $ac_func();
7454 int main() {
7456 /* The GNU C library defines this for functions which it implements
7457 to always fail with ENOSYS. Some functions are actually named
7458 something starting with __ and the normal name is an alias. */
7459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7460 choke me
7461 #else
7462 $ac_func();
7463 #endif
7465 ; return 0; }
7467 if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7468 rm -rf conftest*
7469 eval "ac_cv_func_$ac_func=yes"
7470 else
7471 echo "configure: failed program was:" >&5
7472 cat conftest.$ac_ext >&5
7473 rm -rf conftest*
7474 eval "ac_cv_func_$ac_func=no"
7476 rm -f conftest*
7479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7480 echo "$ac_t""yes" 1>&6
7481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7482 cat >> confdefs.h <<EOF
7483 #define $ac_tr_func 1
7486 else
7487 echo "$ac_t""no" 1>&6
7489 done
7491 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7492 echo "configure:7493: checking for getspnam in -lsec" >&5
7493 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7496 else
7497 ac_save_LIBS="$LIBS"
7498 LIBS="-lsec $LIBS"
7499 cat > conftest.$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7505 char getspnam();
7507 int main() {
7508 getspnam()
7509 ; return 0; }
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7512 rm -rf conftest*
7513 eval "ac_cv_lib_$ac_lib_var=yes"
7514 else
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7517 rm -rf conftest*
7518 eval "ac_cv_lib_$ac_lib_var=no"
7520 rm -f conftest*
7521 LIBS="$ac_save_LIBS"
7524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7525 echo "$ac_t""yes" 1>&6
7526 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7528 cat >> confdefs.h <<EOF
7529 #define $ac_tr_lib 1
7532 LIBS="-lsec $LIBS"
7534 else
7535 echo "$ac_t""no" 1>&6
7538 for ac_func in getspnam
7540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7541 echo "configure:7542: checking for $ac_func" >&5
7542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7544 else
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7548 /* System header to define __stub macros and hopefully few prototypes,
7549 which can conflict with char $ac_func(); below. */
7550 #include <assert.h>
7551 /* Override any gcc2 internal prototype to avoid an error. */
7552 /* We use char because int might match the return type of a gcc2
7553 builtin and then its argument prototype would still apply. */
7554 char $ac_func();
7556 int main() {
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7562 choke me
7563 #else
7564 $ac_func();
7565 #endif
7567 ; return 0; }
7569 if { (eval echo configure:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7570 rm -rf conftest*
7571 eval "ac_cv_func_$ac_func=yes"
7572 else
7573 echo "configure: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7575 rm -rf conftest*
7576 eval "ac_cv_func_$ac_func=no"
7578 rm -f conftest*
7581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7582 echo "$ac_t""yes" 1>&6
7583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7584 cat >> confdefs.h <<EOF
7585 #define $ac_tr_func 1
7588 else
7589 echo "$ac_t""no" 1>&6
7591 done
7594 esac
7597 case "$LIBS" in
7598 *-lsecurity*) for ac_func in bigcrypt
7600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7601 echo "configure:7602: checking for $ac_func" >&5
7602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7604 else
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 /* System header to define __stub macros and hopefully few prototypes,
7609 which can conflict with char $ac_func(); below. */
7610 #include <assert.h>
7611 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7614 char $ac_func();
7616 int main() {
7618 /* The GNU C library defines this for functions which it implements
7619 to always fail with ENOSYS. Some functions are actually named
7620 something starting with __ and the normal name is an alias. */
7621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7622 choke me
7623 #else
7624 $ac_func();
7625 #endif
7627 ; return 0; }
7629 if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7630 rm -rf conftest*
7631 eval "ac_cv_func_$ac_func=yes"
7632 else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 eval "ac_cv_func_$ac_func=no"
7638 rm -f conftest*
7641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7642 echo "$ac_t""yes" 1>&6
7643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7644 cat >> confdefs.h <<EOF
7645 #define $ac_tr_func 1
7648 else
7649 echo "$ac_t""no" 1>&6
7651 done
7653 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7654 echo "configure:7655: checking for bigcrypt in -lsecurity" >&5
7655 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7657 echo $ac_n "(cached) $ac_c" 1>&6
7658 else
7659 ac_save_LIBS="$LIBS"
7660 LIBS="-lsecurity $LIBS"
7661 cat > conftest.$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 /* Override any gcc2 internal prototype to avoid an error. */
7665 /* We use char because int might match the return type of a gcc2
7666 builtin and then its argument prototype would still apply. */
7667 char bigcrypt();
7669 int main() {
7670 bigcrypt()
7671 ; return 0; }
7673 if { (eval echo configure:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7674 rm -rf conftest*
7675 eval "ac_cv_lib_$ac_lib_var=yes"
7676 else
7677 echo "configure: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 rm -rf conftest*
7680 eval "ac_cv_lib_$ac_lib_var=no"
7682 rm -f conftest*
7683 LIBS="$ac_save_LIBS"
7686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7687 echo "$ac_t""yes" 1>&6
7688 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7689 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7690 cat >> confdefs.h <<EOF
7691 #define $ac_tr_lib 1
7694 LIBS="-lsecurity $LIBS"
7696 else
7697 echo "$ac_t""no" 1>&6
7700 for ac_func in bigcrypt
7702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7703 echo "configure:7704: checking for $ac_func" >&5
7704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7706 else
7707 cat > conftest.$ac_ext <<EOF
7708 #line 7709 "configure"
7709 #include "confdefs.h"
7710 /* System header to define __stub macros and hopefully few prototypes,
7711 which can conflict with char $ac_func(); below. */
7712 #include <assert.h>
7713 /* Override any gcc2 internal prototype to avoid an error. */
7714 /* We use char because int might match the return type of a gcc2
7715 builtin and then its argument prototype would still apply. */
7716 char $ac_func();
7718 int main() {
7720 /* The GNU C library defines this for functions which it implements
7721 to always fail with ENOSYS. Some functions are actually named
7722 something starting with __ and the normal name is an alias. */
7723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7724 choke me
7725 #else
7726 $ac_func();
7727 #endif
7729 ; return 0; }
7731 if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7732 rm -rf conftest*
7733 eval "ac_cv_func_$ac_func=yes"
7734 else
7735 echo "configure: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 rm -rf conftest*
7738 eval "ac_cv_func_$ac_func=no"
7740 rm -f conftest*
7743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7744 echo "$ac_t""yes" 1>&6
7745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7746 cat >> confdefs.h <<EOF
7747 #define $ac_tr_func 1
7750 else
7751 echo "$ac_t""no" 1>&6
7753 done
7756 esac
7758 case "$LIBS" in
7759 *-lsec*) for ac_func in bigcrypt
7761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7762 echo "configure:7763: checking for $ac_func" >&5
7763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7764 echo $ac_n "(cached) $ac_c" 1>&6
7765 else
7766 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7769 /* System header to define __stub macros and hopefully few prototypes,
7770 which can conflict with char $ac_func(); below. */
7771 #include <assert.h>
7772 /* Override any gcc2 internal prototype to avoid an error. */
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7775 char $ac_func();
7777 int main() {
7779 /* The GNU C library defines this for functions which it implements
7780 to always fail with ENOSYS. Some functions are actually named
7781 something starting with __ and the normal name is an alias. */
7782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7783 choke me
7784 #else
7785 $ac_func();
7786 #endif
7788 ; return 0; }
7790 if { (eval echo configure:7791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7791 rm -rf conftest*
7792 eval "ac_cv_func_$ac_func=yes"
7793 else
7794 echo "configure: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7796 rm -rf conftest*
7797 eval "ac_cv_func_$ac_func=no"
7799 rm -f conftest*
7802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7803 echo "$ac_t""yes" 1>&6
7804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7805 cat >> confdefs.h <<EOF
7806 #define $ac_tr_func 1
7809 else
7810 echo "$ac_t""no" 1>&6
7812 done
7814 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7815 echo "configure:7816: checking for bigcrypt in -lsec" >&5
7816 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7819 else
7820 ac_save_LIBS="$LIBS"
7821 LIBS="-lsec $LIBS"
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* Override any gcc2 internal prototype to avoid an error. */
7826 /* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7828 char bigcrypt();
7830 int main() {
7831 bigcrypt()
7832 ; return 0; }
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7835 rm -rf conftest*
7836 eval "ac_cv_lib_$ac_lib_var=yes"
7837 else
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7840 rm -rf conftest*
7841 eval "ac_cv_lib_$ac_lib_var=no"
7843 rm -f conftest*
7844 LIBS="$ac_save_LIBS"
7847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7848 echo "$ac_t""yes" 1>&6
7849 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7851 cat >> confdefs.h <<EOF
7852 #define $ac_tr_lib 1
7855 LIBS="-lsec $LIBS"
7857 else
7858 echo "$ac_t""no" 1>&6
7861 for ac_func in bigcrypt
7863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7864 echo "configure:7865: checking for $ac_func" >&5
7865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
7867 else
7868 cat > conftest.$ac_ext <<EOF
7869 #line 7870 "configure"
7870 #include "confdefs.h"
7871 /* System header to define __stub macros and hopefully few prototypes,
7872 which can conflict with char $ac_func(); below. */
7873 #include <assert.h>
7874 /* Override any gcc2 internal prototype to avoid an error. */
7875 /* We use char because int might match the return type of a gcc2
7876 builtin and then its argument prototype would still apply. */
7877 char $ac_func();
7879 int main() {
7881 /* The GNU C library defines this for functions which it implements
7882 to always fail with ENOSYS. Some functions are actually named
7883 something starting with __ and the normal name is an alias. */
7884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7885 choke me
7886 #else
7887 $ac_func();
7888 #endif
7890 ; return 0; }
7892 if { (eval echo configure:7893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7893 rm -rf conftest*
7894 eval "ac_cv_func_$ac_func=yes"
7895 else
7896 echo "configure: failed program was:" >&5
7897 cat conftest.$ac_ext >&5
7898 rm -rf conftest*
7899 eval "ac_cv_func_$ac_func=no"
7901 rm -f conftest*
7904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7905 echo "$ac_t""yes" 1>&6
7906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7907 cat >> confdefs.h <<EOF
7908 #define $ac_tr_func 1
7911 else
7912 echo "$ac_t""no" 1>&6
7914 done
7917 esac
7920 case "$LIBS" in
7921 *-lsecurity*) for ac_func in getprpwnam
7923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7924 echo "configure:7925: checking for $ac_func" >&5
7925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7927 else
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char $ac_func(); below. */
7933 #include <assert.h>
7934 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7937 char $ac_func();
7939 int main() {
7941 /* The GNU C library defines this for functions which it implements
7942 to always fail with ENOSYS. Some functions are actually named
7943 something starting with __ and the normal name is an alias. */
7944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7945 choke me
7946 #else
7947 $ac_func();
7948 #endif
7950 ; return 0; }
7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7953 rm -rf conftest*
7954 eval "ac_cv_func_$ac_func=yes"
7955 else
7956 echo "configure: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7958 rm -rf conftest*
7959 eval "ac_cv_func_$ac_func=no"
7961 rm -f conftest*
7964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7965 echo "$ac_t""yes" 1>&6
7966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7967 cat >> confdefs.h <<EOF
7968 #define $ac_tr_func 1
7971 else
7972 echo "$ac_t""no" 1>&6
7974 done
7976 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7977 echo "configure:7978: checking for getprpwnam in -lsecurity" >&5
7978 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7981 else
7982 ac_save_LIBS="$LIBS"
7983 LIBS="-lsecurity $LIBS"
7984 cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 /* Override any gcc2 internal prototype to avoid an error. */
7988 /* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7990 char getprpwnam();
7992 int main() {
7993 getprpwnam()
7994 ; return 0; }
7996 if { (eval echo configure:7997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7997 rm -rf conftest*
7998 eval "ac_cv_lib_$ac_lib_var=yes"
7999 else
8000 echo "configure: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8002 rm -rf conftest*
8003 eval "ac_cv_lib_$ac_lib_var=no"
8005 rm -f conftest*
8006 LIBS="$ac_save_LIBS"
8009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8010 echo "$ac_t""yes" 1>&6
8011 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8012 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8013 cat >> confdefs.h <<EOF
8014 #define $ac_tr_lib 1
8017 LIBS="-lsecurity $LIBS"
8019 else
8020 echo "$ac_t""no" 1>&6
8023 for ac_func in getprpwnam
8025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8026 echo "configure:8027: checking for $ac_func" >&5
8027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8028 echo $ac_n "(cached) $ac_c" 1>&6
8029 else
8030 cat > conftest.$ac_ext <<EOF
8031 #line 8032 "configure"
8032 #include "confdefs.h"
8033 /* System header to define __stub macros and hopefully few prototypes,
8034 which can conflict with char $ac_func(); below. */
8035 #include <assert.h>
8036 /* Override any gcc2 internal prototype to avoid an error. */
8037 /* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8039 char $ac_func();
8041 int main() {
8043 /* The GNU C library defines this for functions which it implements
8044 to always fail with ENOSYS. Some functions are actually named
8045 something starting with __ and the normal name is an alias. */
8046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8047 choke me
8048 #else
8049 $ac_func();
8050 #endif
8052 ; return 0; }
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8055 rm -rf conftest*
8056 eval "ac_cv_func_$ac_func=yes"
8057 else
8058 echo "configure: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8060 rm -rf conftest*
8061 eval "ac_cv_func_$ac_func=no"
8063 rm -f conftest*
8066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8067 echo "$ac_t""yes" 1>&6
8068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8069 cat >> confdefs.h <<EOF
8070 #define $ac_tr_func 1
8073 else
8074 echo "$ac_t""no" 1>&6
8076 done
8079 esac
8081 case "$LIBS" in
8082 *-lsec*) for ac_func in getprpwnam
8084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8085 echo "configure:8086: checking for $ac_func" >&5
8086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8087 echo $ac_n "(cached) $ac_c" 1>&6
8088 else
8089 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092 /* System header to define __stub macros and hopefully few prototypes,
8093 which can conflict with char $ac_func(); below. */
8094 #include <assert.h>
8095 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8098 char $ac_func();
8100 int main() {
8102 /* The GNU C library defines this for functions which it implements
8103 to always fail with ENOSYS. Some functions are actually named
8104 something starting with __ and the normal name is an alias. */
8105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106 choke me
8107 #else
8108 $ac_func();
8109 #endif
8111 ; return 0; }
8113 if { (eval echo configure:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8114 rm -rf conftest*
8115 eval "ac_cv_func_$ac_func=yes"
8116 else
8117 echo "configure: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8119 rm -rf conftest*
8120 eval "ac_cv_func_$ac_func=no"
8122 rm -f conftest*
8125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8126 echo "$ac_t""yes" 1>&6
8127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8128 cat >> confdefs.h <<EOF
8129 #define $ac_tr_func 1
8132 else
8133 echo "$ac_t""no" 1>&6
8135 done
8137 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8138 echo "configure:8139: checking for getprpwnam in -lsec" >&5
8139 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8142 else
8143 ac_save_LIBS="$LIBS"
8144 LIBS="-lsec $LIBS"
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* Override any gcc2 internal prototype to avoid an error. */
8149 /* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */
8151 char getprpwnam();
8153 int main() {
8154 getprpwnam()
8155 ; return 0; }
8157 if { (eval echo configure:8158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8158 rm -rf conftest*
8159 eval "ac_cv_lib_$ac_lib_var=yes"
8160 else
8161 echo "configure: failed program was:" >&5
8162 cat conftest.$ac_ext >&5
8163 rm -rf conftest*
8164 eval "ac_cv_lib_$ac_lib_var=no"
8166 rm -f conftest*
8167 LIBS="$ac_save_LIBS"
8170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8171 echo "$ac_t""yes" 1>&6
8172 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8174 cat >> confdefs.h <<EOF
8175 #define $ac_tr_lib 1
8178 LIBS="-lsec $LIBS"
8180 else
8181 echo "$ac_t""no" 1>&6
8184 for ac_func in getprpwnam
8186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8187 echo "configure:8188: checking for $ac_func" >&5
8188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8190 else
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 /* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char $ac_func(); below. */
8196 #include <assert.h>
8197 /* Override any gcc2 internal prototype to avoid an error. */
8198 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8200 char $ac_func();
8202 int main() {
8204 /* The GNU C library defines this for functions which it implements
8205 to always fail with ENOSYS. Some functions are actually named
8206 something starting with __ and the normal name is an alias. */
8207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8208 choke me
8209 #else
8210 $ac_func();
8211 #endif
8213 ; return 0; }
8215 if { (eval echo configure:8216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8216 rm -rf conftest*
8217 eval "ac_cv_func_$ac_func=yes"
8218 else
8219 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8221 rm -rf conftest*
8222 eval "ac_cv_func_$ac_func=no"
8224 rm -f conftest*
8227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8228 echo "$ac_t""yes" 1>&6
8229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8230 cat >> confdefs.h <<EOF
8231 #define $ac_tr_func 1
8234 else
8235 echo "$ac_t""no" 1>&6
8237 done
8240 esac
8243 # this bit needs to be modified for each OS that is suported by
8244 # smbwrapper. You need to specify how to created a shared library and
8245 # how to compile C code to produce PIC object files
8247 # these are the defaults, good for lots of systems
8248 HOST_OS="$host_os"
8249 LDSHFLAGS="-shared"
8250 PICFLAG=""
8251 SHLIBEXT="so"
8253 # and these are for particular systems
8254 case "$host_os" in
8255 *linux*) cat >> confdefs.h <<\EOF
8256 #define LINUX 1
8259 *solaris*) cat >> confdefs.h <<\EOF
8260 #define SUNOS5 1
8263 LDSHFLAGS="-G"
8265 *sunos*) cat >> confdefs.h <<\EOF
8266 #define SUNOS4 1
8269 LDSHFLAGS=""
8271 *bsd*) LDSHFLAGS="-shared -Bshareable"
8273 *irix*) cat >> confdefs.h <<\EOF
8274 #define IRIX 1
8277 case "$host_os" in
8278 *irix6*) cat >> confdefs.h <<\EOF
8279 #define IRIX6 1
8283 esac
8284 ATTEMPT_WRAP32_BUILD=yes
8286 *aix*) cat >> confdefs.h <<\EOF
8287 #define AIX 1
8290 *hpux*) cat >> confdefs.h <<\EOF
8291 #define HPUX 1
8294 SHLIBEXT="sl"
8295 # Use special PIC flags for the native HP-UX compiler.
8296 if test $ac_cv_prog_cc_Ae = yes; then
8297 LDSHFLAGS="-b"
8298 PICFLAG="+z"
8301 *qnx*) cat >> confdefs.h <<\EOF
8302 #define QNX 1
8305 *osf*) cat >> confdefs.h <<\EOF
8306 #define OSF1 1
8309 *sco*) cat >> confdefs.h <<\EOF
8310 #define SCO 1
8313 *next2*) cat >> confdefs.h <<\EOF
8314 #define NEXT2 1
8317 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8318 set dummy groff; ac_word=$2
8319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8320 echo "configure:8321: checking for $ac_word" >&5
8321 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8323 else
8324 if test -n "$ROFF"; then
8325 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8326 else
8327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8328 ac_dummy="$PATH"
8329 for ac_dir in $ac_dummy; do
8330 test -z "$ac_dir" && ac_dir=.
8331 if test -f $ac_dir/$ac_word; then
8332 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8333 break
8335 done
8336 IFS="$ac_save_ifs"
8339 ROFF="$ac_cv_prog_ROFF"
8340 if test -n "$ROFF"; then
8341 echo "$ac_t""$ROFF" 1>&6
8342 else
8343 echo "$ac_t""no" 1>&6
8346 *sysv4*)
8347 case "$host" in
8348 *-univel-*) if test "$GCC" != yes ; then
8349 cat >> confdefs.h <<\EOF
8350 #define HAVE_MEMSET 1
8354 LDSHFLAGS="-G"
8356 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8357 #define RELIANTUNIX 1
8360 esac
8362 *sysv5*)
8363 if test "$GCC" != yes ; then
8364 cat >> confdefs.h <<\EOF
8365 #define HAVE_MEMSET 1
8369 LDSHFLAGS="-G"
8371 esac
8373 # try to work out how to produce pic code with this compiler
8374 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8375 echo "configure:8376: checking whether ${CC-cc} accepts -fpic" >&5
8376 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8377 echo $ac_n "(cached) $ac_c" 1>&6
8378 else
8379 echo 'void f(){}' > conftest.c
8380 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8381 ac_cv_prog_cc_fpic=yes
8382 else
8383 ac_cv_prog_cc_fpic=no
8385 rm -f conftest*
8389 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8390 if test $ac_cv_prog_cc_fpic = yes; then
8391 PICFLAG="-fpic";
8393 if test x$PICFLAG = x; then
8394 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8395 echo "configure:8396: checking whether ${CC-cc} accepts -KPIC" >&5
8396 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8397 echo $ac_n "(cached) $ac_c" 1>&6
8398 else
8399 echo 'void f(){}' > conftest.c
8400 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8401 ac_cv_prog_cc_KPIC=yes
8402 else
8403 ac_cv_prog_cc_KPIC=no
8405 rm -f conftest*
8409 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8410 if test $ac_cv_prog_cc_KPIC = yes; then
8411 PICFLAG="-KPIC";
8414 if test x$PICFLAG = x; then
8415 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8416 echo "configure:8417: checking whether ${CC-cc} accepts -Kpic" >&5
8417 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8419 else
8420 echo 'void f(){}' > conftest.c
8421 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8422 ac_cv_prog_cc_Kpic=yes
8423 else
8424 ac_cv_prog_cc_Kpic=no
8426 rm -f conftest*
8430 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8431 if test $ac_cv_prog_cc_Kpic = yes; then
8432 PICFLAG="-Kpic";
8436 ################
8438 echo $ac_n "checking for long long""... $ac_c" 1>&6
8439 echo "configure:8440: checking for long long" >&5
8440 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8442 else
8444 if test "$cross_compiling" = yes; then
8445 samba_cv_have_longlong=cross
8446 else
8447 cat > conftest.$ac_ext <<EOF
8448 #line 8449 "configure"
8449 #include "confdefs.h"
8450 #include <stdio.h>
8451 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8453 if { (eval echo configure:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8454 then
8455 samba_cv_have_longlong=yes
8456 else
8457 echo "configure: failed program was:" >&5
8458 cat conftest.$ac_ext >&5
8459 rm -fr conftest*
8460 samba_cv_have_longlong=no
8462 rm -fr conftest*
8467 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8468 if test x"$samba_cv_have_longlong" = x"yes"; then
8469 cat >> confdefs.h <<\EOF
8470 #define HAVE_LONGLONG 1
8476 # Check if the compiler supports the LL prefix on long long integers.
8477 # AIX needs this.
8479 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8480 echo "configure:8481: checking for LL suffix on long long integers" >&5
8481 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8483 else
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 #include <stdio.h>
8489 int main() {
8490 long long i = 0x8000000000LL
8491 ; return 0; }
8493 if { (eval echo configure:8494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8494 rm -rf conftest*
8495 samba_cv_compiler_supports_ll=yes
8496 else
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8499 rm -rf conftest*
8500 samba_cv_compiler_supports_ll=no
8502 rm -f conftest*
8505 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8506 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8507 cat >> confdefs.h <<\EOF
8508 #define COMPILER_SUPPORTS_LL 1
8514 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8515 echo "configure:8516: checking for 64 bit off_t" >&5
8516 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8518 else
8520 if test "$cross_compiling" = yes; then
8521 samba_cv_SIZEOF_OFF_T=cross
8522 else
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8526 #include <stdio.h>
8527 #include <sys/stat.h>
8528 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8530 if { (eval echo configure:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8531 then
8532 samba_cv_SIZEOF_OFF_T=yes
8533 else
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 rm -fr conftest*
8537 samba_cv_SIZEOF_OFF_T=no
8539 rm -fr conftest*
8544 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8545 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8546 cat >> confdefs.h <<\EOF
8547 #define SIZEOF_OFF_T 8
8552 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8553 echo "configure:8554: checking for off64_t" >&5
8554 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8556 else
8558 if test "$cross_compiling" = yes; then
8559 samba_cv_HAVE_OFF64_T=cross
8560 else
8561 cat > conftest.$ac_ext <<EOF
8562 #line 8563 "configure"
8563 #include "confdefs.h"
8565 #if defined(HAVE_UNISTD_H)
8566 #include <unistd.h>
8567 #endif
8568 #include <stdio.h>
8569 #include <sys/stat.h>
8570 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8572 if { (eval echo configure:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8573 then
8574 samba_cv_HAVE_OFF64_T=yes
8575 else
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8578 rm -fr conftest*
8579 samba_cv_HAVE_OFF64_T=no
8581 rm -fr conftest*
8586 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8587 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8588 cat >> confdefs.h <<\EOF
8589 #define HAVE_OFF64_T 1
8594 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8595 echo "configure:8596: checking for 64 bit ino_t" >&5
8596 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8598 else
8600 if test "$cross_compiling" = yes; then
8601 samba_cv_SIZEOF_INO_T=cross
8602 else
8603 cat > conftest.$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8606 #include <stdio.h>
8607 #include <sys/stat.h>
8608 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8610 if { (eval echo configure:8611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8611 then
8612 samba_cv_SIZEOF_INO_T=yes
8613 else
8614 echo "configure: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8616 rm -fr conftest*
8617 samba_cv_SIZEOF_INO_T=no
8619 rm -fr conftest*
8624 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8625 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8626 cat >> confdefs.h <<\EOF
8627 #define SIZEOF_INO_T 8
8632 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8633 echo "configure:8634: checking for ino64_t" >&5
8634 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8635 echo $ac_n "(cached) $ac_c" 1>&6
8636 else
8638 if test "$cross_compiling" = yes; then
8639 samba_cv_HAVE_INO64_T=cross
8640 else
8641 cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8645 #if defined(HAVE_UNISTD_H)
8646 #include <unistd.h>
8647 #endif
8648 #include <stdio.h>
8649 #include <sys/stat.h>
8650 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8653 then
8654 samba_cv_HAVE_INO64_T=yes
8655 else
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 rm -fr conftest*
8659 samba_cv_HAVE_INO64_T=no
8661 rm -fr conftest*
8666 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8667 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8668 cat >> confdefs.h <<\EOF
8669 #define HAVE_INO64_T 1
8674 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8675 echo "configure:8676: checking for struct dirent64" >&5
8676 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8678 else
8680 cat > conftest.$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8684 #if defined(HAVE_UNISTD_H)
8685 #include <unistd.h>
8686 #endif
8687 #include <sys/types.h>
8688 #include <dirent.h>
8689 int main() {
8690 struct dirent64 de;
8691 ; return 0; }
8693 if { (eval echo configure:8694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8694 rm -rf conftest*
8695 samba_cv_HAVE_STRUCT_DIRENT64=yes
8696 else
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8699 rm -rf conftest*
8700 samba_cv_HAVE_STRUCT_DIRENT64=no
8702 rm -f conftest*
8705 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8706 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8707 cat >> confdefs.h <<\EOF
8708 #define HAVE_STRUCT_DIRENT64 1
8713 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8714 echo "configure:8715: checking for unsigned char" >&5
8715 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8717 else
8719 if test "$cross_compiling" = yes; then
8720 samba_cv_HAVE_UNSIGNED_CHAR=cross
8721 else
8722 cat > conftest.$ac_ext <<EOF
8723 #line 8724 "configure"
8724 #include "confdefs.h"
8725 #include <stdio.h>
8726 main() { char c; c=250; exit((c > 0)?0:1); }
8728 if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8729 then
8730 samba_cv_HAVE_UNSIGNED_CHAR=yes
8731 else
8732 echo "configure: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8734 rm -fr conftest*
8735 samba_cv_HAVE_UNSIGNED_CHAR=no
8737 rm -fr conftest*
8742 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8743 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8744 cat >> confdefs.h <<\EOF
8745 #define HAVE_UNSIGNED_CHAR 1
8750 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8751 echo "configure:8752: checking for sin_len in sock" >&5
8752 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8753 echo $ac_n "(cached) $ac_c" 1>&6
8754 else
8756 cat > conftest.$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8759 #include <sys/types.h>
8760 #include <sys/socket.h>
8761 #include <netinet/in.h>
8762 int main() {
8763 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8764 ; return 0; }
8766 if { (eval echo configure:8767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8767 rm -rf conftest*
8768 samba_cv_HAVE_SOCK_SIN_LEN=yes
8769 else
8770 echo "configure: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8772 rm -rf conftest*
8773 samba_cv_HAVE_SOCK_SIN_LEN=no
8775 rm -f conftest*
8778 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8779 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8780 cat >> confdefs.h <<\EOF
8781 #define HAVE_SOCK_SIN_LEN 1
8786 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8787 echo "configure:8788: checking whether seekdir returns void" >&5
8788 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8789 echo $ac_n "(cached) $ac_c" 1>&6
8790 else
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 #include <sys/types.h>
8796 #include <dirent.h>
8797 void seekdir(DIR *d, long loc) { return; }
8798 int main() {
8799 return 0;
8800 ; return 0; }
8802 if { (eval echo configure:8803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8803 rm -rf conftest*
8804 samba_cv_SEEKDIR_RETURNS_VOID=yes
8805 else
8806 echo "configure: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8808 rm -rf conftest*
8809 samba_cv_SEEKDIR_RETURNS_VOID=no
8811 rm -f conftest*
8814 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8815 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8816 cat >> confdefs.h <<\EOF
8817 #define SEEKDIR_RETURNS_VOID 1
8822 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8823 echo "configure:8824: checking for __FILE__ macro" >&5
8824 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8825 echo $ac_n "(cached) $ac_c" 1>&6
8826 else
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8831 #include <stdio.h>
8832 int main() {
8833 printf("%s\n", __FILE__);
8834 ; return 0; }
8836 if { (eval echo configure:8837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8837 rm -rf conftest*
8838 samba_cv_HAVE_FILE_MACRO=yes
8839 else
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8842 rm -rf conftest*
8843 samba_cv_HAVE_FILE_MACRO=no
8845 rm -f conftest*
8848 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8849 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8850 cat >> confdefs.h <<\EOF
8851 #define HAVE_FILE_MACRO 1
8856 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8857 echo "configure:8858: checking for __FUNCTION__ macro" >&5
8858 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8860 else
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 #include <stdio.h>
8866 int main() {
8867 printf("%s\n", __FUNCTION__);
8868 ; return 0; }
8870 if { (eval echo configure:8871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8871 rm -rf conftest*
8872 samba_cv_HAVE_FUNCTION_MACRO=yes
8873 else
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8876 rm -rf conftest*
8877 samba_cv_HAVE_FUNCTION_MACRO=no
8879 rm -f conftest*
8882 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8883 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8884 cat >> confdefs.h <<\EOF
8885 #define HAVE_FUNCTION_MACRO 1
8890 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8891 echo "configure:8892: checking if gettimeofday takes tz argument" >&5
8892 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8893 echo $ac_n "(cached) $ac_c" 1>&6
8894 else
8896 if test "$cross_compiling" = yes; then
8897 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8898 else
8899 cat > conftest.$ac_ext <<EOF
8900 #line 8901 "configure"
8901 #include "confdefs.h"
8903 #include <sys/time.h>
8904 #include <unistd.h>
8905 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8907 if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8908 then
8909 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8910 else
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 rm -fr conftest*
8914 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8916 rm -fr conftest*
8921 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8922 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8923 cat >> confdefs.h <<\EOF
8924 #define HAVE_GETTIMEOFDAY_TZ 1
8929 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8930 echo "configure:8931: checking for C99 vsnprintf" >&5
8931 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8932 echo $ac_n "(cached) $ac_c" 1>&6
8933 else
8935 if test "$cross_compiling" = yes; then
8936 samba_cv_HAVE_C99_VSNPRINTF=cross
8937 else
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8942 #include <sys/types.h>
8943 #include <stdarg.h>
8944 void foo(const char *format, ...) {
8945 va_list ap;
8946 int len;
8947 char buf[5];
8949 va_start(ap, format);
8950 len = vsnprintf(0, 0, format, ap);
8951 va_end(ap);
8952 if (len != 5) exit(1);
8954 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8956 exit(0);
8958 main() { foo("hello"); }
8961 if { (eval echo configure:8962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8962 then
8963 samba_cv_HAVE_C99_VSNPRINTF=yes
8964 else
8965 echo "configure: failed program was:" >&5
8966 cat conftest.$ac_ext >&5
8967 rm -fr conftest*
8968 samba_cv_HAVE_C99_VSNPRINTF=no
8970 rm -fr conftest*
8975 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8976 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
8977 cat >> confdefs.h <<\EOF
8978 #define HAVE_C99_VSNPRINTF 1
8983 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8984 echo "configure:8985: checking for broken readdir" >&5
8985 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8987 else
8989 if test "$cross_compiling" = yes; then
8990 samba_cv_HAVE_BROKEN_READDIR=cross
8991 else
8992 cat > conftest.$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
8995 #include <sys/types.h>
8996 #include <dirent.h>
8997 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8998 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8999 di->d_name[0] == 0) exit(0); exit(1);}
9001 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9002 then
9003 samba_cv_HAVE_BROKEN_READDIR=yes
9004 else
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9007 rm -fr conftest*
9008 samba_cv_HAVE_BROKEN_READDIR=no
9010 rm -fr conftest*
9015 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9016 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9017 cat >> confdefs.h <<\EOF
9018 #define HAVE_BROKEN_READDIR 1
9023 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9024 echo "configure:9025: checking for utimbuf" >&5
9025 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9026 echo $ac_n "(cached) $ac_c" 1>&6
9027 else
9029 cat > conftest.$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9032 #include <sys/types.h>
9033 #include <utime.h>
9034 int main() {
9035 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9036 ; return 0; }
9038 if { (eval echo configure:9039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9039 rm -rf conftest*
9040 samba_cv_HAVE_UTIMBUF=yes
9041 else
9042 echo "configure: failed program was:" >&5
9043 cat conftest.$ac_ext >&5
9044 rm -rf conftest*
9045 samba_cv_HAVE_UTIMBUF=no
9047 rm -f conftest*
9050 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9051 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9052 cat >> confdefs.h <<\EOF
9053 #define HAVE_UTIMBUF 1
9059 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9062 echo "configure:9063: checking for $ac_func" >&5
9063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9065 else
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 /* System header to define __stub macros and hopefully few prototypes,
9070 which can conflict with char $ac_func(); below. */
9071 #include <assert.h>
9072 /* Override any gcc2 internal prototype to avoid an error. */
9073 /* We use char because int might match the return type of a gcc2
9074 builtin and then its argument prototype would still apply. */
9075 char $ac_func();
9077 int main() {
9079 /* The GNU C library defines this for functions which it implements
9080 to always fail with ENOSYS. Some functions are actually named
9081 something starting with __ and the normal name is an alias. */
9082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9083 choke me
9084 #else
9085 $ac_func();
9086 #endif
9088 ; return 0; }
9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9091 rm -rf conftest*
9092 eval "ac_cv_func_$ac_func=yes"
9093 else
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 rm -rf conftest*
9097 eval "ac_cv_func_$ac_func=no"
9099 rm -f conftest*
9102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9105 cat >> confdefs.h <<EOF
9106 #define $ac_tr_func 1
9109 else
9110 echo "$ac_t""no" 1>&6
9112 done
9115 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9116 echo "configure:9117: checking for ut_name in utmp" >&5
9117 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9119 else
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 #include <sys/types.h>
9125 #include <utmp.h>
9126 int main() {
9127 struct utmp ut; ut.ut_name[0] = 'a';
9128 ; return 0; }
9130 if { (eval echo configure:9131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9131 rm -rf conftest*
9132 samba_cv_HAVE_UT_UT_NAME=yes
9133 else
9134 echo "configure: failed program was:" >&5
9135 cat conftest.$ac_ext >&5
9136 rm -rf conftest*
9137 samba_cv_HAVE_UT_UT_NAME=no
9139 rm -f conftest*
9142 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9143 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9144 cat >> confdefs.h <<\EOF
9145 #define HAVE_UT_UT_NAME 1
9150 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9151 echo "configure:9152: checking for ut_user in utmp" >&5
9152 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9153 echo $ac_n "(cached) $ac_c" 1>&6
9154 else
9156 cat > conftest.$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9159 #include <sys/types.h>
9160 #include <utmp.h>
9161 int main() {
9162 struct utmp ut; ut.ut_user[0] = 'a';
9163 ; return 0; }
9165 if { (eval echo configure:9166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9166 rm -rf conftest*
9167 samba_cv_HAVE_UT_UT_USER=yes
9168 else
9169 echo "configure: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 rm -rf conftest*
9172 samba_cv_HAVE_UT_UT_USER=no
9174 rm -f conftest*
9177 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9178 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9179 cat >> confdefs.h <<\EOF
9180 #define HAVE_UT_UT_USER 1
9185 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9186 echo "configure:9187: checking for ut_id in utmp" >&5
9187 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9189 else
9191 cat > conftest.$ac_ext <<EOF
9192 #line 9193 "configure"
9193 #include "confdefs.h"
9194 #include <sys/types.h>
9195 #include <utmp.h>
9196 int main() {
9197 struct utmp ut; ut.ut_id[0] = 'a';
9198 ; return 0; }
9200 if { (eval echo configure:9201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9201 rm -rf conftest*
9202 samba_cv_HAVE_UT_UT_ID=yes
9203 else
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 rm -rf conftest*
9207 samba_cv_HAVE_UT_UT_ID=no
9209 rm -f conftest*
9212 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9213 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9214 cat >> confdefs.h <<\EOF
9215 #define HAVE_UT_UT_ID 1
9220 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9221 echo "configure:9222: checking for ut_host in utmp" >&5
9222 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9224 else
9226 cat > conftest.$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9229 #include <sys/types.h>
9230 #include <utmp.h>
9231 int main() {
9232 struct utmp ut; ut.ut_host[0] = 'a';
9233 ; return 0; }
9235 if { (eval echo configure:9236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9236 rm -rf conftest*
9237 samba_cv_HAVE_UT_UT_HOST=yes
9238 else
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9241 rm -rf conftest*
9242 samba_cv_HAVE_UT_UT_HOST=no
9244 rm -f conftest*
9247 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9248 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9249 cat >> confdefs.h <<\EOF
9250 #define HAVE_UT_UT_HOST 1
9255 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9256 echo "configure:9257: checking for ut_time in utmp" >&5
9257 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9259 else
9261 cat > conftest.$ac_ext <<EOF
9262 #line 9263 "configure"
9263 #include "confdefs.h"
9264 #include <sys/types.h>
9265 #include <utmp.h>
9266 int main() {
9267 struct utmp ut; time_t t; ut.ut_time = t;
9268 ; return 0; }
9270 if { (eval echo configure:9271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9271 rm -rf conftest*
9272 samba_cv_HAVE_UT_UT_TIME=yes
9273 else
9274 echo "configure: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9276 rm -rf conftest*
9277 samba_cv_HAVE_UT_UT_TIME=no
9279 rm -f conftest*
9282 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9283 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9284 cat >> confdefs.h <<\EOF
9285 #define HAVE_UT_UT_TIME 1
9290 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9291 echo "configure:9292: checking for ut_tv in utmp" >&5
9292 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9294 else
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9299 #include <sys/types.h>
9300 #include <utmp.h>
9301 int main() {
9302 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9303 ; return 0; }
9305 if { (eval echo configure:9306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9306 rm -rf conftest*
9307 samba_cv_HAVE_UT_UT_TV=yes
9308 else
9309 echo "configure: failed program was:" >&5
9310 cat conftest.$ac_ext >&5
9311 rm -rf conftest*
9312 samba_cv_HAVE_UT_UT_TV=no
9314 rm -f conftest*
9317 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9318 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9319 cat >> confdefs.h <<\EOF
9320 #define HAVE_UT_UT_TV 1
9325 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9326 echo "configure:9327: checking for ut_type in utmp" >&5
9327 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9329 else
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 #include <sys/types.h>
9335 #include <utmp.h>
9336 int main() {
9337 struct utmp ut; ut.ut_type = 0;
9338 ; return 0; }
9340 if { (eval echo configure:9341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9341 rm -rf conftest*
9342 samba_cv_HAVE_UT_UT_TYPE=yes
9343 else
9344 echo "configure: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9346 rm -rf conftest*
9347 samba_cv_HAVE_UT_UT_TYPE=no
9349 rm -f conftest*
9352 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9353 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9354 cat >> confdefs.h <<\EOF
9355 #define HAVE_UT_UT_TYPE 1
9360 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9361 echo "configure:9362: checking for ut_pid in utmp" >&5
9362 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9364 else
9366 cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9369 #include <sys/types.h>
9370 #include <utmp.h>
9371 int main() {
9372 struct utmp ut; ut.ut_pid = 0;
9373 ; return 0; }
9375 if { (eval echo configure:9376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9376 rm -rf conftest*
9377 samba_cv_HAVE_UT_UT_PID=yes
9378 else
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9381 rm -rf conftest*
9382 samba_cv_HAVE_UT_UT_PID=no
9384 rm -f conftest*
9387 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9388 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9389 cat >> confdefs.h <<\EOF
9390 #define HAVE_UT_UT_PID 1
9395 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9396 echo "configure:9397: checking for ut_exit in utmp" >&5
9397 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9398 echo $ac_n "(cached) $ac_c" 1>&6
9399 else
9401 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure"
9403 #include "confdefs.h"
9404 #include <sys/types.h>
9405 #include <utmp.h>
9406 int main() {
9407 struct utmp ut; ut.ut_exit.e_exit = 0;
9408 ; return 0; }
9410 if { (eval echo configure:9411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9411 rm -rf conftest*
9412 samba_cv_HAVE_UT_UT_EXIT=yes
9413 else
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 rm -rf conftest*
9417 samba_cv_HAVE_UT_UT_EXIT=no
9419 rm -f conftest*
9422 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9423 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9424 cat >> confdefs.h <<\EOF
9425 #define HAVE_UT_UT_EXIT 1
9430 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9431 echo "configure:9432: checking for ut_addr in utmp" >&5
9432 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9434 else
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 #include <sys/types.h>
9440 #include <utmp.h>
9441 int main() {
9442 struct utmp ut; ut.ut_addr = 0;
9443 ; return 0; }
9445 if { (eval echo configure:9446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9446 rm -rf conftest*
9447 samba_cv_HAVE_UT_UT_ADDR=yes
9448 else
9449 echo "configure: failed program was:" >&5
9450 cat conftest.$ac_ext >&5
9451 rm -rf conftest*
9452 samba_cv_HAVE_UT_UT_ADDR=no
9454 rm -f conftest*
9457 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9458 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9459 cat >> confdefs.h <<\EOF
9460 #define HAVE_UT_UT_ADDR 1
9465 if test x$ac_cv_func_pututline = xyes ; then
9466 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9467 echo "configure:9468: checking whether pututline returns pointer" >&5
9468 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9472 cat > conftest.$ac_ext <<EOF
9473 #line 9474 "configure"
9474 #include "confdefs.h"
9475 #include <sys/types.h>
9476 #include <utmp.h>
9477 int main() {
9478 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9479 ; return 0; }
9481 if { (eval echo configure:9482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9482 rm -rf conftest*
9483 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9484 else
9485 echo "configure: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9487 rm -rf conftest*
9488 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9490 rm -f conftest*
9493 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9494 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9495 cat >> confdefs.h <<\EOF
9496 #define PUTUTLINE_RETURNS_UTMP 1
9502 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9503 echo "configure:9504: checking for ut_syslen in utmpx" >&5
9504 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9506 else
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511 #include <sys/types.h>
9512 #include <utmpx.h>
9513 int main() {
9514 struct utmpx ux; ux.ut_syslen = 0;
9515 ; return 0; }
9517 if { (eval echo configure:9518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9518 rm -rf conftest*
9519 samba_cv_HAVE_UX_UT_SYSLEN=yes
9520 else
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9523 rm -rf conftest*
9524 samba_cv_HAVE_UX_UT_SYSLEN=no
9526 rm -f conftest*
9529 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9530 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9531 cat >> confdefs.h <<\EOF
9532 #define HAVE_UX_UT_SYSLEN 1
9537 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9538 echo "configure:9539: checking for Linux kernel oplocks" >&5
9539 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9541 else
9543 if test "$cross_compiling" = yes; then
9544 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9545 else
9546 cat > conftest.$ac_ext <<EOF
9547 #line 9548 "configure"
9548 #include "confdefs.h"
9550 #include <sys/types.h>
9551 #include <fcntl.h>
9552 #ifndef F_GETLEASE
9553 #define F_GETLEASE 1025
9554 #endif
9555 main() {
9556 int fd = open("/dev/null", O_RDONLY);
9557 return fcntl(fd, F_GETLEASE, 0) == -1;
9561 if { (eval echo configure:9562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9562 then
9563 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9564 else
9565 echo "configure: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9567 rm -fr conftest*
9568 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9570 rm -fr conftest*
9575 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9576 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9577 cat >> confdefs.h <<\EOF
9578 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9583 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9584 echo "configure:9585: checking for kernel change notify support" >&5
9585 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9587 else
9589 if test "$cross_compiling" = yes; then
9590 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9591 else
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9596 #include <sys/types.h>
9597 #include <fcntl.h>
9598 #include <signal.h>
9599 #ifndef F_NOTIFY
9600 #define F_NOTIFY 1026
9601 #endif
9602 main() {
9603 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9608 then
9609 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9610 else
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9613 rm -fr conftest*
9614 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9616 rm -fr conftest*
9621 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9622 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9623 cat >> confdefs.h <<\EOF
9624 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9629 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9630 echo "configure:9631: checking for kernel share modes" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9633 else
9635 if test "$cross_compiling" = yes; then
9636 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9637 else
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9642 #include <sys/types.h>
9643 #include <fcntl.h>
9644 #include <signal.h>
9645 #include <sys/file.h>
9646 #ifndef LOCK_MAND
9647 #define LOCK_MAND 32
9648 #define LOCK_READ 64
9649 #endif
9650 main() {
9651 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9655 if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9656 then
9657 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9658 else
9659 echo "configure: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9661 rm -fr conftest*
9662 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9664 rm -fr conftest*
9669 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9670 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9671 cat >> confdefs.h <<\EOF
9672 #define HAVE_KERNEL_SHARE_MODES 1
9680 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9681 echo "configure:9682: checking for IRIX kernel oplock type definitions" >&5
9682 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9683 echo $ac_n "(cached) $ac_c" 1>&6
9684 else
9686 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9689 #include <sys/types.h>
9690 #include <fcntl.h>
9691 int main() {
9692 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9693 ; return 0; }
9695 if { (eval echo configure:9696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9696 rm -rf conftest*
9697 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9698 else
9699 echo "configure: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9701 rm -rf conftest*
9702 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9704 rm -f conftest*
9707 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9708 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9709 cat >> confdefs.h <<\EOF
9710 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9715 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9716 echo "configure:9717: checking for irix specific capabilities" >&5
9717 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9718 echo $ac_n "(cached) $ac_c" 1>&6
9719 else
9721 if test "$cross_compiling" = yes; then
9722 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9723 else
9724 cat > conftest.$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9728 #include <sys/capability.h>
9729 main() {
9730 cap_t cap;
9731 if ((cap = cap_get_proc()) == NULL)
9732 exit(1);
9733 cap->cap_effective |= CAP_NETWORK_MGT;
9734 cap->cap_inheritable |= CAP_NETWORK_MGT;
9735 cap_set_proc(cap);
9736 exit(0);
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9741 then
9742 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9743 else
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -fr conftest*
9747 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9749 rm -fr conftest*
9754 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9755 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9756 cat >> confdefs.h <<\EOF
9757 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9763 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9764 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9767 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9768 echo "configure:9769: checking for int16 typedef included by rpc/rpc.h" >&5
9769 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771 else
9773 cat > conftest.$ac_ext <<EOF
9774 #line 9775 "configure"
9775 #include "confdefs.h"
9776 #include <sys/types.h>
9777 #if defined(HAVE_RPC_RPC_H)
9778 #include <rpc/rpc.h>
9779 #endif
9780 int main() {
9781 int16 testvar;
9782 ; return 0; }
9784 if { (eval echo configure:9785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9785 rm -rf conftest*
9786 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9787 else
9788 echo "configure: failed program was:" >&5
9789 cat conftest.$ac_ext >&5
9790 rm -rf conftest*
9791 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9793 rm -f conftest*
9796 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9797 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9798 cat >> confdefs.h <<\EOF
9799 #define HAVE_INT16_FROM_RPC_RPC_H 1
9804 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9805 echo "configure:9806: checking for uint16 typedef included by rpc/rpc.h" >&5
9806 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9808 else
9810 cat > conftest.$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813 #include <sys/types.h>
9814 #if defined(HAVE_RPC_RPC_H)
9815 #include <rpc/rpc.h>
9816 #endif
9817 int main() {
9818 uint16 testvar;
9819 ; return 0; }
9821 if { (eval echo configure:9822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9822 rm -rf conftest*
9823 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9824 else
9825 echo "configure: failed program was:" >&5
9826 cat conftest.$ac_ext >&5
9827 rm -rf conftest*
9828 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9830 rm -f conftest*
9833 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9834 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9835 cat >> confdefs.h <<\EOF
9836 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9841 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9842 echo "configure:9843: checking for int32 typedef included by rpc/rpc.h" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9845 else
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9851 #if defined(HAVE_RPC_RPC_H)
9852 #include <rpc/rpc.h>
9853 #endif
9854 int main() {
9855 int32 testvar;
9856 ; return 0; }
9858 if { (eval echo configure:9859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9859 rm -rf conftest*
9860 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9861 else
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9864 rm -rf conftest*
9865 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9867 rm -f conftest*
9870 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9871 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9872 cat >> confdefs.h <<\EOF
9873 #define HAVE_INT32_FROM_RPC_RPC_H 1
9878 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9879 echo "configure:9880: checking for uint32 typedef included by rpc/rpc.h" >&5
9880 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
9882 else
9884 cat > conftest.$ac_ext <<EOF
9885 #line 9886 "configure"
9886 #include "confdefs.h"
9887 #include <sys/types.h>
9888 #if defined(HAVE_RPC_RPC_H)
9889 #include <rpc/rpc.h>
9890 #endif
9891 int main() {
9892 uint32 testvar;
9893 ; return 0; }
9895 if { (eval echo configure:9896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9896 rm -rf conftest*
9897 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9898 else
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -rf conftest*
9902 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9904 rm -f conftest*
9907 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9908 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9909 cat >> confdefs.h <<\EOF
9910 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9916 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9917 echo "configure:9918: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9918 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9920 else
9922 cat > conftest.$ac_ext <<EOF
9923 #line 9924 "configure"
9924 #include "confdefs.h"
9925 #include <sys/types.h>
9926 #ifdef HAVE_SYS_SECURITY_H
9927 #include <sys/security.h>
9928 #include <prot.h>
9929 #endif /* HAVE_SYS_SECURITY_H */
9930 #if defined(HAVE_RPC_RPC_H)
9931 #include <rpc/rpc.h>
9932 #endif
9933 int main() {
9934 int testvar;
9935 ; return 0; }
9937 if { (eval echo configure:9938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9938 rm -rf conftest*
9939 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9940 else
9941 echo "configure: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 rm -rf conftest*
9944 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9946 rm -f conftest*
9949 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9950 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9951 cat >> confdefs.h <<\EOF
9952 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9957 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9958 echo "configure:9959: checking for test routines" >&5
9959 if test "$cross_compiling" = yes; then
9960 echo "configure: warning: cannot run when cross-compiling" 1>&2
9961 else
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9965 #include "${srcdir-.}/tests/trivial.c"
9967 if { (eval echo configure:9968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9968 then
9969 echo "$ac_t""yes" 1>&6
9970 else
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9973 rm -fr conftest*
9974 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9976 rm -fr conftest*
9980 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9981 echo "configure:9982: checking for ftruncate extend" >&5
9982 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9984 else
9986 if test "$cross_compiling" = yes; then
9987 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9988 else
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 #include "${srcdir-.}/tests/ftruncate.c"
9994 if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9995 then
9996 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9997 else
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 rm -fr conftest*
10001 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10003 rm -fr conftest*
10008 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10009 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10010 cat >> confdefs.h <<\EOF
10011 #define HAVE_FTRUNCATE_EXTEND 1
10016 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10017 echo "configure:10018: checking for broken getgroups" >&5
10018 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10020 else
10022 if test "$cross_compiling" = yes; then
10023 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10024 else
10025 cat > conftest.$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 #include "${srcdir-.}/tests/getgroups.c"
10030 if { (eval echo configure:10031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10031 then
10032 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10033 else
10034 echo "configure: failed program was:" >&5
10035 cat conftest.$ac_ext >&5
10036 rm -fr conftest*
10037 samba_cv_HAVE_BROKEN_GETGROUPS=no
10039 rm -fr conftest*
10044 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10045 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10046 cat >> confdefs.h <<\EOF
10047 #define HAVE_BROKEN_GETGROUPS 1
10052 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10053 echo "configure:10054: checking whether getpass should be replaced" >&5
10054 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10056 else
10058 SAVE_CPPFLAGS="$CPPFLAGS"
10059 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10064 #define REPLACE_GETPASS 1
10065 #define NO_CONFIG_H 1
10066 #define main dont_declare_main
10067 #include "${srcdir-.}/lib/getsmbpass.c"
10068 #undef main
10070 int main() {
10072 ; return 0; }
10074 if { (eval echo configure:10075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10075 rm -rf conftest*
10076 samba_cv_REPLACE_GETPASS=yes
10077 else
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10080 rm -rf conftest*
10081 samba_cv_REPLACE_GETPASS=no
10083 rm -f conftest*
10084 CPPFLAGS="$SAVE_CPPFLAGS"
10088 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10089 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10090 cat >> confdefs.h <<\EOF
10091 #define REPLACE_GETPASS 1
10096 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10097 echo "configure:10098: checking for broken inet_ntoa" >&5
10098 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10100 else
10102 if test "$cross_compiling" = yes; then
10103 samba_cv_REPLACE_INET_NTOA=cross
10104 else
10105 cat > conftest.$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10109 #include <stdio.h>
10110 #include <sys/types.h>
10111 #include <netinet/in.h>
10112 #ifdef HAVE_ARPA_INET_H
10113 #include <arpa/inet.h>
10114 #endif
10115 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10116 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10117 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10118 exit(1);}
10120 if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10121 then
10122 samba_cv_REPLACE_INET_NTOA=yes
10123 else
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 rm -fr conftest*
10127 samba_cv_REPLACE_INET_NTOA=no
10129 rm -fr conftest*
10134 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10135 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10136 cat >> confdefs.h <<\EOF
10137 #define REPLACE_INET_NTOA 1
10142 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10143 echo "configure:10144: checking for secure mkstemp" >&5
10144 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10146 else
10148 if test "$cross_compiling" = yes; then
10149 samba_cv_HAVE_SECURE_MKSTEMP=cross
10150 else
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 #include <stdlib.h>
10155 #include <sys/types.h>
10156 #include <sys/stat.h>
10157 #include <unistd.h>
10158 main() {
10159 struct stat st;
10160 char tpl[20]="/tmp/test.XXXXXX";
10161 int fd = mkstemp(tpl);
10162 if (fd == -1) exit(1);
10163 unlink(tpl);
10164 if (fstat(fd, &st) != 0) exit(1);
10165 if ((st.st_mode & 0777) != 0600) exit(1);
10166 exit(0);
10169 if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10170 then
10171 samba_cv_HAVE_SECURE_MKSTEMP=yes
10172 else
10173 echo "configure: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 rm -fr conftest*
10176 samba_cv_HAVE_SECURE_MKSTEMP=no
10178 rm -fr conftest*
10183 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10184 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10185 cat >> confdefs.h <<\EOF
10186 #define HAVE_SECURE_MKSTEMP 1
10191 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10192 echo "configure:10193: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10193 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10195 else
10197 if test "$cross_compiling" = yes; then
10198 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10199 else
10200 cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <unistd.h>
10204 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10206 if { (eval echo configure:10207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10207 then
10208 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10209 else
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 rm -fr conftest*
10213 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10215 rm -fr conftest*
10220 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10221 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10222 cat >> confdefs.h <<\EOF
10223 #define SYSCONF_SC_NGROUPS_MAX 1
10228 echo $ac_n "checking for root""... $ac_c" 1>&6
10229 echo "configure:10230: checking for root" >&5
10230 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10232 else
10234 if test "$cross_compiling" = yes; then
10235 samba_cv_HAVE_ROOT=cross
10236 else
10237 cat > conftest.$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10240 main() { exit(getuid() != 0); }
10242 if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10243 then
10244 samba_cv_HAVE_ROOT=yes
10245 else
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 rm -fr conftest*
10249 samba_cv_HAVE_ROOT=no
10251 rm -fr conftest*
10256 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10257 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10258 cat >> confdefs.h <<\EOF
10259 #define HAVE_ROOT 1
10262 else
10263 echo "configure: warning: running as non-root will disable some tests" 1>&2
10266 ##################
10267 # look for a method of finding the list of network interfaces
10268 iface=no;
10269 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10270 echo "configure:10271: checking for iface AIX" >&5
10271 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10272 echo $ac_n "(cached) $ac_c" 1>&6
10273 else
10275 if test "$cross_compiling" = yes; then
10276 samba_cv_HAVE_IFACE_AIX=cross
10277 else
10278 cat > conftest.$ac_ext <<EOF
10279 #line 10280 "configure"
10280 #include "confdefs.h"
10282 #define HAVE_IFACE_AIX 1
10283 #define AUTOCONF_TEST 1
10284 #include "confdefs.h"
10285 #include "${srcdir-.}/lib/interfaces.c"
10287 if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10288 then
10289 samba_cv_HAVE_IFACE_AIX=yes
10290 else
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 rm -fr conftest*
10294 samba_cv_HAVE_IFACE_AIX=no
10296 rm -fr conftest*
10301 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10302 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10303 iface=yes;cat >> confdefs.h <<\EOF
10304 #define HAVE_IFACE_AIX 1
10309 if test $iface = no; then
10310 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10311 echo "configure:10312: checking for iface ifconf" >&5
10312 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10314 else
10316 if test "$cross_compiling" = yes; then
10317 samba_cv_HAVE_IFACE_IFCONF=cross
10318 else
10319 cat > conftest.$ac_ext <<EOF
10320 #line 10321 "configure"
10321 #include "confdefs.h"
10323 #define HAVE_IFACE_IFCONF 1
10324 #define AUTOCONF_TEST 1
10325 #include "confdefs.h"
10326 #include "${srcdir-.}/lib/interfaces.c"
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10329 then
10330 samba_cv_HAVE_IFACE_IFCONF=yes
10331 else
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 rm -fr conftest*
10335 samba_cv_HAVE_IFACE_IFCONF=no
10337 rm -fr conftest*
10342 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10343 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10344 iface=yes;cat >> confdefs.h <<\EOF
10345 #define HAVE_IFACE_IFCONF 1
10351 if test $iface = no; then
10352 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10353 echo "configure:10354: checking for iface ifreq" >&5
10354 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10356 else
10358 if test "$cross_compiling" = yes; then
10359 samba_cv_HAVE_IFACE_IFREQ=cross
10360 else
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10365 #define HAVE_IFACE_IFREQ 1
10366 #define AUTOCONF_TEST 1
10367 #include "confdefs.h"
10368 #include "${srcdir-.}/lib/interfaces.c"
10370 if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10371 then
10372 samba_cv_HAVE_IFACE_IFREQ=yes
10373 else
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -fr conftest*
10377 samba_cv_HAVE_IFACE_IFREQ=no
10379 rm -fr conftest*
10384 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10385 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10386 iface=yes;cat >> confdefs.h <<\EOF
10387 #define HAVE_IFACE_IFREQ 1
10394 ################################################
10395 # look for a method of setting the effective uid
10396 seteuid=no;
10397 if test $seteuid = no; then
10398 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10399 echo "configure:10400: checking for setresuid" >&5
10400 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10402 else
10404 if test "$cross_compiling" = yes; then
10405 samba_cv_USE_SETRESUID=cross
10406 else
10407 cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10411 #define AUTOCONF_TEST 1
10412 #define USE_SETRESUID 1
10413 #include "confdefs.h"
10414 #include "${srcdir-.}/lib/util_sec.c"
10416 if { (eval echo configure:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10417 then
10418 samba_cv_USE_SETRESUID=yes
10419 else
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 rm -fr conftest*
10423 samba_cv_USE_SETRESUID=no
10425 rm -fr conftest*
10430 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10431 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10432 seteuid=yes;cat >> confdefs.h <<\EOF
10433 #define USE_SETRESUID 1
10440 if test $seteuid = no; then
10441 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10442 echo "configure:10443: checking for setreuid" >&5
10443 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10445 else
10447 if test "$cross_compiling" = yes; then
10448 samba_cv_USE_SETREUID=cross
10449 else
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10454 #define AUTOCONF_TEST 1
10455 #define USE_SETREUID 1
10456 #include "confdefs.h"
10457 #include "${srcdir-.}/lib/util_sec.c"
10459 if { (eval echo configure:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10460 then
10461 samba_cv_USE_SETREUID=yes
10462 else
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10465 rm -fr conftest*
10466 samba_cv_USE_SETREUID=no
10468 rm -fr conftest*
10473 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10474 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10475 seteuid=yes;cat >> confdefs.h <<\EOF
10476 #define USE_SETREUID 1
10482 if test $seteuid = no; then
10483 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10484 echo "configure:10485: checking for seteuid" >&5
10485 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10487 else
10489 if test "$cross_compiling" = yes; then
10490 samba_cv_USE_SETEUID=cross
10491 else
10492 cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10496 #define AUTOCONF_TEST 1
10497 #define USE_SETEUID 1
10498 #include "confdefs.h"
10499 #include "${srcdir-.}/lib/util_sec.c"
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10502 then
10503 samba_cv_USE_SETEUID=yes
10504 else
10505 echo "configure: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10507 rm -fr conftest*
10508 samba_cv_USE_SETEUID=no
10510 rm -fr conftest*
10515 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10516 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10517 seteuid=yes;cat >> confdefs.h <<\EOF
10518 #define USE_SETEUID 1
10524 if test $seteuid = no; then
10525 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10526 echo "configure:10527: checking for setuidx" >&5
10527 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10528 echo $ac_n "(cached) $ac_c" 1>&6
10529 else
10531 if test "$cross_compiling" = yes; then
10532 samba_cv_USE_SETUIDX=cross
10533 else
10534 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10538 #define AUTOCONF_TEST 1
10539 #define USE_SETUIDX 1
10540 #include "confdefs.h"
10541 #include "${srcdir-.}/lib/util_sec.c"
10543 if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10544 then
10545 samba_cv_USE_SETUIDX=yes
10546 else
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10549 rm -fr conftest*
10550 samba_cv_USE_SETUIDX=no
10552 rm -fr conftest*
10557 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10558 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10559 seteuid=yes;cat >> confdefs.h <<\EOF
10560 #define USE_SETUIDX 1
10567 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10568 echo "configure:10569: checking for working mmap" >&5
10569 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10570 echo $ac_n "(cached) $ac_c" 1>&6
10571 else
10573 if test "$cross_compiling" = yes; then
10574 samba_cv_HAVE_MMAP=cross
10575 else
10576 cat > conftest.$ac_ext <<EOF
10577 #line 10578 "configure"
10578 #include "confdefs.h"
10579 #include "${srcdir-.}/tests/shared_mmap.c"
10581 if { (eval echo configure:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10582 then
10583 samba_cv_HAVE_MMAP=yes
10584 else
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10587 rm -fr conftest*
10588 samba_cv_HAVE_MMAP=no
10590 rm -fr conftest*
10595 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10596 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10597 cat >> confdefs.h <<\EOF
10598 #define HAVE_MMAP 1
10603 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10604 echo "configure:10605: checking for ftruncate needs root" >&5
10605 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10607 else
10609 if test "$cross_compiling" = yes; then
10610 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10611 else
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10615 #include "${srcdir-.}/tests/ftruncroot.c"
10617 if { (eval echo configure:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10618 then
10619 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10620 else
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10623 rm -fr conftest*
10624 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10626 rm -fr conftest*
10631 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10632 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10633 cat >> confdefs.h <<\EOF
10634 #define FTRUNCATE_NEEDS_ROOT 1
10639 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10640 echo "configure:10641: checking for fcntl locking" >&5
10641 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10643 else
10645 if test "$cross_compiling" = yes; then
10646 samba_cv_HAVE_FCNTL_LOCK=cross
10647 else
10648 cat > conftest.$ac_ext <<EOF
10649 #line 10650 "configure"
10650 #include "confdefs.h"
10651 #include "${srcdir-.}/tests/fcntl_lock.c"
10653 if { (eval echo configure:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10654 then
10655 samba_cv_HAVE_FCNTL_LOCK=yes
10656 else
10657 echo "configure: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10659 rm -fr conftest*
10660 samba_cv_HAVE_FCNTL_LOCK=no
10662 rm -fr conftest*
10667 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10668 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10669 cat >> confdefs.h <<\EOF
10670 #define HAVE_FCNTL_LOCK 1
10675 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10676 echo "configure:10677: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10677 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10678 echo $ac_n "(cached) $ac_c" 1>&6
10679 else
10681 if test "$cross_compiling" = yes; then
10682 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10683 else
10684 cat > conftest.$ac_ext <<EOF
10685 #line 10686 "configure"
10686 #include "confdefs.h"
10687 #include "${srcdir-.}/tests/fcntl_lock64.c"
10689 if { (eval echo configure:10690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10690 then
10691 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10692 else
10693 echo "configure: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10695 rm -fr conftest*
10696 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10698 rm -fr conftest*
10703 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10704 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10705 cat >> confdefs.h <<\EOF
10706 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10710 else
10713 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10714 echo "configure:10715: checking for 64 bit fcntl locking" >&5
10715 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10717 else
10719 if test "$cross_compiling" = yes; then
10720 samba_cv_HAVE_STRUCT_FLOCK64=cross
10721 else
10722 cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10726 #if defined(HAVE_UNISTD_H)
10727 #include <unistd.h>
10728 #endif
10729 #include <stdio.h>
10730 #include <stdlib.h>
10732 #ifdef HAVE_FCNTL_H
10733 #include <fcntl.h>
10734 #endif
10736 #ifdef HAVE_SYS_FCNTL_H
10737 #include <sys/fcntl.h>
10738 #endif
10739 main() { struct flock64 fl64;
10740 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10741 exit(0);
10742 #else
10743 exit(1);
10744 #endif
10747 if { (eval echo configure:10748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10748 then
10749 samba_cv_HAVE_STRUCT_FLOCK64=yes
10750 else
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -fr conftest*
10754 samba_cv_HAVE_STRUCT_FLOCK64=no
10756 rm -fr conftest*
10761 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10763 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10764 cat >> confdefs.h <<\EOF
10765 #define HAVE_STRUCT_FLOCK64 1
10771 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10772 echo "configure:10773: checking for broken nisplus include files" >&5
10773 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10774 echo $ac_n "(cached) $ac_c" 1>&6
10775 else
10777 cat > conftest.$ac_ext <<EOF
10778 #line 10779 "configure"
10779 #include "confdefs.h"
10780 #include <sys/acl.h>
10781 #if defined(HAVE_RPCSVC_NIS_H)
10782 #include <rpcsvc/nis.h>
10783 #endif
10784 int main() {
10785 return 0;
10786 ; return 0; }
10788 if { (eval echo configure:10789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10789 rm -rf conftest*
10790 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10791 else
10792 echo "configure: failed program was:" >&5
10793 cat conftest.$ac_ext >&5
10794 rm -rf conftest*
10795 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10797 rm -f conftest*
10800 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10801 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10802 cat >> confdefs.h <<\EOF
10803 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10809 #################################################
10810 # check for smbwrapper support
10811 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10812 echo "configure:10813: checking whether to use smbwrapper" >&5
10813 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10814 if test "${with_smbwrapper+set}" = set; then
10815 withval="$with_smbwrapper"
10816 case "$withval" in
10817 yes)
10818 echo "$ac_t""yes" 1>&6
10819 cat >> confdefs.h <<\EOF
10820 #define WITH_SMBWRAPPER 1
10823 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10825 if test x$ATTEMPT_WRAP32_BUILD = x; then
10826 WRAP32=""
10827 else
10828 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10831 # Conditions under which smbwrapper should not be built.
10833 if test x$PICFLAG = x; then
10834 echo No support for PIC code - disabling smbwrapper and smbsh
10835 WRAP=""
10836 WRAP32=""
10837 elif test x$ac_cv_func_syscall = xno; then
10838 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10839 WRAP=""
10840 WRAP32=""
10844 echo "$ac_t""no" 1>&6
10846 esac
10847 else
10848 echo "$ac_t""no" 1>&6
10853 #################################################
10854 # check for the AFS filesystem
10855 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10856 echo "configure:10857: checking whether to use AFS" >&5
10857 # Check whether --with-afs or --without-afs was given.
10858 if test "${with_afs+set}" = set; then
10859 withval="$with_afs"
10860 case "$withval" in
10861 yes)
10862 echo "$ac_t""yes" 1>&6
10863 cat >> confdefs.h <<\EOF
10864 #define WITH_AFS 1
10869 echo "$ac_t""no" 1>&6
10871 esac
10872 else
10873 echo "$ac_t""no" 1>&6
10879 #################################################
10880 # check for the DFS auth system
10881 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
10882 echo "configure:10883: checking whether to use DCE/DFS auth" >&5
10883 # Check whether --with-dfs or --without-dfs was given.
10884 if test "${with_dfs+set}" = set; then
10885 withval="$with_dfs"
10886 case "$withval" in
10887 yes)
10888 echo "$ac_t""yes" 1>&6
10889 cat >> confdefs.h <<\EOF
10890 #define WITH_DFS 1
10895 echo "$ac_t""no" 1>&6
10897 esac
10898 else
10899 echo "$ac_t""no" 1>&6
10904 #################################################
10905 # check for Kerberos IV auth system
10906 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10907 echo "configure:10908: checking whether to use Kerberos IV" >&5
10908 # Check whether --with-krb4 or --without-krb4 was given.
10909 if test "${with_krb4+set}" = set; then
10910 withval="$with_krb4"
10911 case "$withval" in
10912 yes)
10913 echo "$ac_t""yes" 1>&6
10914 cat >> confdefs.h <<\EOF
10915 #define KRB4_AUTH 1
10918 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10919 echo "configure:10920: checking for dn_expand in -lresolv" >&5
10920 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10923 else
10924 ac_save_LIBS="$LIBS"
10925 LIBS="-lresolv $LIBS"
10926 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10929 /* Override any gcc2 internal prototype to avoid an error. */
10930 /* We use char because int might match the return type of a gcc2
10931 builtin and then its argument prototype would still apply. */
10932 char dn_expand();
10934 int main() {
10935 dn_expand()
10936 ; return 0; }
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10939 rm -rf conftest*
10940 eval "ac_cv_lib_$ac_lib_var=yes"
10941 else
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 rm -rf conftest*
10945 eval "ac_cv_lib_$ac_lib_var=no"
10947 rm -f conftest*
10948 LIBS="$ac_save_LIBS"
10951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10952 echo "$ac_t""yes" 1>&6
10953 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10955 cat >> confdefs.h <<EOF
10956 #define $ac_tr_lib 1
10959 LIBS="-lresolv $LIBS"
10961 else
10962 echo "$ac_t""no" 1>&6
10965 LIBS="$LIBS -lkrb -ldes"
10966 CFLAGS="$CFLAGS -I$withval/include"
10967 LDFLAGS="$LDFLAGS -L$withval/lib"
10970 echo "$ac_t""no" 1>&6
10972 esac
10973 else
10974 echo "$ac_t""no" 1>&6
10979 #################################################
10980 # check for Kerberos 5 auth system
10981 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10982 echo "configure:10983: checking whether to use Kerberos 5" >&5
10983 # Check whether --with-krb5 or --without-krb5 was given.
10984 if test "${with_krb5+set}" = set; then
10985 withval="$with_krb5"
10986 case "$withval" in
10987 yes)
10988 echo "$ac_t""yes" 1>&6
10989 cat >> confdefs.h <<\EOF
10990 #define KRB5_AUTH 1
10993 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10994 CFLAGS="$CFLAGS -I$withval/include"
10995 LDFLAGS="$LDFLAGS -L$withval/lib"
10998 echo "$ac_t""no" 1>&6
11000 esac
11001 else
11002 echo "$ac_t""no" 1>&6
11007 #################################################
11008 # check for automount support
11009 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11010 echo "configure:11011: checking whether to use AUTOMOUNT" >&5
11011 # Check whether --with-automount or --without-automount was given.
11012 if test "${with_automount+set}" = set; then
11013 withval="$with_automount"
11014 case "$withval" in
11015 yes)
11016 echo "$ac_t""yes" 1>&6
11017 cat >> confdefs.h <<\EOF
11018 #define WITH_AUTOMOUNT 1
11023 echo "$ac_t""no" 1>&6
11025 esac
11026 else
11027 echo "$ac_t""no" 1>&6
11032 #################################################
11033 # check for smbmount support
11034 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11035 echo "configure:11036: checking whether to use SMBMOUNT" >&5
11036 # Check whether --with-smbmount or --without-smbmount was given.
11037 if test "${with_smbmount+set}" = set; then
11038 withval="$with_smbmount"
11039 case "$withval" in
11040 yes)
11041 echo "$ac_t""yes" 1>&6
11042 cat >> confdefs.h <<\EOF
11043 #define WITH_SMBMOUNT 1
11046 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11049 echo "$ac_t""no" 1>&6
11050 MPROGS=
11052 esac
11053 else
11054 echo "$ac_t""no" 1>&6
11055 MPROGS=
11061 #################################################
11062 # check for a PAM password database
11063 with_pam_for_crypt=no
11064 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11065 echo "configure:11066: checking whether to use PAM password database" >&5
11066 # Check whether --with-pam or --without-pam was given.
11067 if test "${with_pam+set}" = set; then
11068 withval="$with_pam"
11069 case "$withval" in
11070 yes)
11071 echo "$ac_t""yes" 1>&6
11072 cat >> confdefs.h <<\EOF
11073 #define WITH_PAM 1
11076 LIBS="$LIBS -lpam"
11077 with_pam_for_crypt=yes
11080 echo "$ac_t""no" 1>&6
11082 esac
11083 else
11084 echo "$ac_t""no" 1>&6
11089 # we can't build a pam module if we don't have pam.
11090 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11091 echo "configure:11092: checking for pam_get_data in -lpam" >&5
11092 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11094 echo $ac_n "(cached) $ac_c" 1>&6
11095 else
11096 ac_save_LIBS="$LIBS"
11097 LIBS="-lpam $LIBS"
11098 cat > conftest.$ac_ext <<EOF
11099 #line 11100 "configure"
11100 #include "confdefs.h"
11101 /* Override any gcc2 internal prototype to avoid an error. */
11102 /* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11104 char pam_get_data();
11106 int main() {
11107 pam_get_data()
11108 ; return 0; }
11110 if { (eval echo configure:11111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11111 rm -rf conftest*
11112 eval "ac_cv_lib_$ac_lib_var=yes"
11113 else
11114 echo "configure: failed program was:" >&5
11115 cat conftest.$ac_ext >&5
11116 rm -rf conftest*
11117 eval "ac_cv_lib_$ac_lib_var=no"
11119 rm -f conftest*
11120 LIBS="$ac_save_LIBS"
11123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11124 echo "$ac_t""yes" 1>&6
11125 cat >> confdefs.h <<\EOF
11126 #define HAVE_LIBPAM 1
11129 else
11130 echo "$ac_t""no" 1>&6
11134 #################################################
11135 # check for pam_smbpass support
11136 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11137 echo "configure:11138: checking whether to use pam_smbpass" >&5
11138 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11139 if test "${with_pam_smbpass+set}" = set; then
11140 withval="$with_pam_smbpass"
11141 case "$withval" in
11142 yes)
11143 echo "$ac_t""yes" 1>&6
11145 # Conditions under which pam_smbpass should not be built.
11147 if test x$PICFLAG = x; then
11148 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11149 PAM_MOD=""
11150 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11151 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11152 PAM_MOD=""
11153 else
11154 cat >> confdefs.h <<\EOF
11155 #define WITH_PAM_SMBPASS 1
11158 PAM_MOD="bin/pam_smbpass.so"
11162 echo "$ac_t""no" 1>&6
11164 esac
11165 else
11166 echo "$ac_t""no" 1>&6
11172 ###############################################
11173 # test for where we get crypt() from, but only
11174 # if not using PAM
11175 if test $with_pam_for_crypt = no; then
11176 for ac_func in crypt
11178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11179 echo "configure:11180: checking for $ac_func" >&5
11180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11181 echo $ac_n "(cached) $ac_c" 1>&6
11182 else
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11186 /* System header to define __stub macros and hopefully few prototypes,
11187 which can conflict with char $ac_func(); below. */
11188 #include <assert.h>
11189 /* Override any gcc2 internal prototype to avoid an error. */
11190 /* We use char because int might match the return type of a gcc2
11191 builtin and then its argument prototype would still apply. */
11192 char $ac_func();
11194 int main() {
11196 /* The GNU C library defines this for functions which it implements
11197 to always fail with ENOSYS. Some functions are actually named
11198 something starting with __ and the normal name is an alias. */
11199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11200 choke me
11201 #else
11202 $ac_func();
11203 #endif
11205 ; return 0; }
11207 if { (eval echo configure:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11208 rm -rf conftest*
11209 eval "ac_cv_func_$ac_func=yes"
11210 else
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11213 rm -rf conftest*
11214 eval "ac_cv_func_$ac_func=no"
11216 rm -f conftest*
11219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11220 echo "$ac_t""yes" 1>&6
11221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11222 cat >> confdefs.h <<EOF
11223 #define $ac_tr_func 1
11226 else
11227 echo "$ac_t""no" 1>&6
11229 done
11231 if test x"$ac_cv_func_crypt" = x"no"; then
11232 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11233 echo "configure:11234: checking for crypt in -lcrypt" >&5
11234 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11236 echo $ac_n "(cached) $ac_c" 1>&6
11237 else
11238 ac_save_LIBS="$LIBS"
11239 LIBS="-lcrypt $LIBS"
11240 cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 /* Override any gcc2 internal prototype to avoid an error. */
11244 /* We use char because int might match the return type of a gcc2
11245 builtin and then its argument prototype would still apply. */
11246 char crypt();
11248 int main() {
11249 crypt()
11250 ; return 0; }
11252 if { (eval echo configure:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11253 rm -rf conftest*
11254 eval "ac_cv_lib_$ac_lib_var=yes"
11255 else
11256 echo "configure: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11258 rm -rf conftest*
11259 eval "ac_cv_lib_$ac_lib_var=no"
11261 rm -f conftest*
11262 LIBS="$ac_save_LIBS"
11265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11266 echo "$ac_t""yes" 1>&6
11267 LIBS="$LIBS -lcrypt";
11268 cat >> confdefs.h <<\EOF
11269 #define HAVE_CRYPT 1
11272 else
11273 echo "$ac_t""no" 1>&6
11280 ## moved after the check for -lcrypt in order to
11281 ## ensure that the necessary libraries are included
11282 ## check checking for truncated salt. Wrapped by the
11283 ## $with_pam_for_crypt variable as above --jerry
11285 if test $with_pam_for_crypt = no; then
11286 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11287 echo "configure:11288: checking for a crypt that needs truncated salt" >&5
11288 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11290 else
11292 if test "$cross_compiling" = yes; then
11293 samba_cv_HAVE_TRUNCATED_SALT=cross
11294 else
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11298 #include "${srcdir-.}/tests/crypttest.c"
11300 if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11301 then
11302 samba_cv_HAVE_TRUNCATED_SALT=no
11303 else
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 rm -fr conftest*
11307 samba_cv_HAVE_TRUNCATED_SALT=yes
11309 rm -fr conftest*
11314 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11315 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11316 cat >> confdefs.h <<\EOF
11317 #define HAVE_TRUNCATED_SALT 1
11324 #################################################
11325 # check for a TDB password database
11326 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11327 echo "configure:11328: checking whether to use TDB password database" >&5
11328 # Check whether --with-tdbpwd or --without-tdbpwd was given.
11329 if test "${with_tdbpwd+set}" = set; then
11330 withval="$with_tdbpwd"
11331 case "$withval" in
11332 yes)
11333 echo "$ac_t""yes" 1>&6
11334 cat >> confdefs.h <<\EOF
11335 #define WITH_TDBPWD 1
11338 { echo "configure: error: TDB password database not supported in this version." 1>&2; exit 1; }
11341 echo "$ac_t""no" 1>&6
11343 esac
11344 else
11345 echo "$ac_t""no" 1>&6
11350 #################################################
11351 # check for a LDAP password database
11352 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11353 echo "configure:11354: checking whether to use LDAP password database" >&5
11354 # Check whether --with-ldap or --without-ldap was given.
11355 if test "${with_ldap+set}" = set; then
11356 withval="$with_ldap"
11357 case "$withval" in
11358 yes)
11359 echo "$ac_t""yes" 1>&6
11360 cat >> confdefs.h <<\EOF
11361 #define WITH_LDAP 1
11364 LIBS="-lldap -llber -lresolv $LIBS"
11367 echo "$ac_t""no" 1>&6
11369 esac
11370 else
11371 echo "$ac_t""no" 1>&6
11376 #################################################
11377 ## commented out by --jerry
11378 # check for a NISPLUS password database
11379 #AC_MSG_CHECKING(whether to use NISPLUS password database)
11380 #AC_ARG_WITH(nisplus,
11381 #[ --with-nisplus Include NISPLUS password database support (default=no)],
11382 #[ case "$withval" in
11383 # yes)
11384 # AC_MSG_RESULT(yes)
11385 # AC_DEFINE(WITH_NISPLUS)
11386 # ;;
11387 # *)
11388 # AC_MSG_RESULT(no)
11389 # ;;
11390 # esac ],
11391 # AC_MSG_RESULT(no)
11394 #################################################
11395 # check for a NISPLUS_HOME support
11396 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11397 echo "configure:11398: checking whether to use NISPLUS_HOME" >&5
11398 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11399 if test "${with_nisplus_home+set}" = set; then
11400 withval="$with_nisplus_home"
11401 case "$withval" in
11402 yes)
11403 echo "$ac_t""yes" 1>&6
11404 cat >> confdefs.h <<\EOF
11405 #define WITH_NISPLUS_HOME 1
11410 echo "$ac_t""no" 1>&6
11412 esac
11413 else
11414 echo "$ac_t""no" 1>&6
11419 #################################################
11420 # check for the secure socket layer
11421 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11422 echo "configure:11423: checking whether to use SSL" >&5
11423 # Check whether --with-ssl or --without-ssl was given.
11424 if test "${with_ssl+set}" = set; then
11425 withval="$with_ssl"
11426 case "$withval" in
11427 yes)
11428 echo "$ac_t""yes" 1>&6
11429 cat >> confdefs.h <<\EOF
11430 #define WITH_SSL 1
11433 withval="/usr/local/ssl" # default
11435 if test "${with_sslinc+set}" = set; then
11437 withval="$with_sslinc"
11438 case "$withval" in
11439 yes|no)
11440 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11441 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11442 LIBS="-lssl -lcrypto $LIBS"
11443 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11446 CFLAGS="-I${withval} $CFLAGS"
11447 LIBS="-lssl -lcrypto $LIBS"
11448 LDFLAGS="-L${withval}/lib $LDFLAGS"
11450 esac
11452 else
11454 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11455 LIBS="-lssl -lcrypto $LIBS"
11456 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11460 if test ! -d ${withval}; then
11461 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11462 exit 1
11465 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11469 echo "$ac_t""no" 1>&6
11471 esac
11472 else
11473 echo "$ac_t""no" 1>&6
11478 #################################################
11479 # check for syslog logging
11480 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11481 echo "configure:11482: checking whether to use syslog logging" >&5
11482 # Check whether --with-syslog or --without-syslog was given.
11483 if test "${with_syslog+set}" = set; then
11484 withval="$with_syslog"
11485 case "$withval" in
11486 yes)
11487 echo "$ac_t""yes" 1>&6
11488 cat >> confdefs.h <<\EOF
11489 #define WITH_SYSLOG 1
11494 echo "$ac_t""no" 1>&6
11496 esac
11497 else
11498 echo "$ac_t""no" 1>&6
11503 #################################################
11504 # check for a shared memory profiling support
11505 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11506 echo "configure:11507: checking whether to use profiling" >&5
11507 # Check whether --with-profile or --without-profile was given.
11508 if test "${with_profile+set}" = set; then
11509 withval="$with_profile"
11510 case "$withval" in
11511 yes)
11512 echo "$ac_t""yes" 1>&6
11513 cat >> confdefs.h <<\EOF
11514 #define WITH_PROFILE 1
11519 echo "$ac_t""no" 1>&6
11521 esac
11522 else
11523 echo "$ac_t""no" 1>&6
11529 #################################################
11530 # check for experimental disk-quotas support
11531 QUOTAOBJS=smbd/noquotas.o
11533 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11534 echo "configure:11535: checking whether to support disk-quotas" >&5
11535 # Check whether --with-quotas or --without-quotas was given.
11536 if test "${with_quotas+set}" = set; then
11537 withval="$with_quotas"
11538 case "$withval" in
11539 yes)
11540 echo "$ac_t""yes" 1>&6
11541 QUOTAOBJS=smbd/quotas.o
11544 echo "$ac_t""no" 1>&6
11546 esac
11547 else
11548 echo "$ac_t""no" 1>&6
11554 #################################################
11555 # check for experimental utmp accounting
11557 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11558 echo "configure:11559: checking whether to support utmp accounting" >&5
11559 # Check whether --with-utmp or --without-utmp was given.
11560 if test "${with_utmp+set}" = set; then
11561 withval="$with_utmp"
11562 case "$withval" in
11563 yes)
11564 echo "$ac_t""yes" 1>&6
11565 cat >> confdefs.h <<\EOF
11566 #define WITH_UTMP 1
11571 echo "$ac_t""no" 1>&6
11573 esac
11574 else
11575 echo "$ac_t""no" 1>&6
11580 #################################################
11581 # check for MS Dfs support
11583 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11584 echo "configure:11585: checking whether to support Microsoft Dfs" >&5
11585 # Check whether --with-msdfs or --without-msdfs was given.
11586 if test "${with_msdfs+set}" = set; then
11587 withval="$with_msdfs"
11588 case "$withval" in
11589 yes)
11590 echo "$ac_t""yes" 1>&6
11591 cat >> confdefs.h <<\EOF
11592 #define WITH_MSDFS 1
11597 echo "$ac_t""no" 1>&6
11599 esac
11600 else
11601 echo "$ac_t""no" 1>&6
11606 #################################################
11607 # check for Samba VFS support
11609 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11610 echo "configure:11611: checking whether to support the experimantal Samba vfs" >&5
11611 # Check whether --with-vfs or --without-vfs was given.
11612 if test "${with_vfs+set}" = set; then
11613 withval="$with_vfs"
11614 case "$withval" in
11615 yes)
11616 echo "$ac_t""yes" 1>&6
11617 cat >> confdefs.h <<\EOF
11618 #define WITH_VFS 1
11623 echo "$ac_t""no" 1>&6
11625 esac
11626 else
11627 echo "$ac_t""no" 1>&6
11632 #################################################
11633 # these tests are taken from the GNU fileutils package
11634 echo "checking how to get filesystem space usage" 1>&6
11635 echo "configure:11636: checking how to get filesystem space usage" >&5
11636 space=no
11638 # Test for statvfs64.
11639 if test $space = no; then
11640 # SVR4
11641 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11642 echo "configure:11643: checking statvfs64 function (SVR4)" >&5
11643 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11644 echo $ac_n "(cached) $ac_c" 1>&6
11645 else
11646 if test "$cross_compiling" = yes; then
11647 fu_cv_sys_stat_statvfs64=cross
11648 else
11649 cat > conftest.$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11653 #if defined(HAVE_UNISTD_H)
11654 #include <unistd.h>
11655 #endif
11656 #include <sys/types.h>
11657 #include <sys/statvfs.h>
11658 main ()
11660 struct statvfs64 fsd;
11661 exit (statvfs64 (".", &fsd));
11664 if { (eval echo configure:11665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11665 then
11666 fu_cv_sys_stat_statvfs64=yes
11667 else
11668 echo "configure: failed program was:" >&5
11669 cat conftest.$ac_ext >&5
11670 rm -fr conftest*
11671 fu_cv_sys_stat_statvfs64=no
11673 rm -fr conftest*
11678 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11679 if test $fu_cv_sys_stat_statvfs64 = yes; then
11680 space=yes
11681 cat >> confdefs.h <<\EOF
11682 #define STAT_STATVFS64 1
11688 # Perform only the link test since it seems there are no variants of the
11689 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11690 # because that got a false positive on SCO OSR5. Adding the declaration
11691 # of a `struct statvfs' causes this test to fail (as it should) on such
11692 # systems. That system is reported to work fine with STAT_STATFS4 which
11693 # is what it gets when this test fails.
11694 if test $space = no; then
11695 # SVR4
11696 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11697 echo "configure:11698: checking statvfs function (SVR4)" >&5
11698 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11699 echo $ac_n "(cached) $ac_c" 1>&6
11700 else
11701 cat > conftest.$ac_ext <<EOF
11702 #line 11703 "configure"
11703 #include "confdefs.h"
11704 #include <sys/types.h>
11705 #include <sys/statvfs.h>
11706 int main() {
11707 struct statvfs fsd; statvfs (0, &fsd);
11708 ; return 0; }
11710 if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11711 rm -rf conftest*
11712 fu_cv_sys_stat_statvfs=yes
11713 else
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -rf conftest*
11717 fu_cv_sys_stat_statvfs=no
11719 rm -f conftest*
11722 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11723 if test $fu_cv_sys_stat_statvfs = yes; then
11724 space=yes
11725 cat >> confdefs.h <<\EOF
11726 #define STAT_STATVFS 1
11732 if test $space = no; then
11733 # DEC Alpha running OSF/1
11734 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11735 echo "configure:11736: checking for 3-argument statfs function (DEC OSF/1)" >&5
11736 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11737 echo $ac_n "(cached) $ac_c" 1>&6
11738 else
11739 if test "$cross_compiling" = yes; then
11740 fu_cv_sys_stat_statfs3_osf1=no
11741 else
11742 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11746 #include <sys/param.h>
11747 #include <sys/types.h>
11748 #include <sys/mount.h>
11749 main ()
11751 struct statfs fsd;
11752 fsd.f_fsize = 0;
11753 exit (statfs (".", &fsd, sizeof (struct statfs)));
11756 if { (eval echo configure:11757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11757 then
11758 fu_cv_sys_stat_statfs3_osf1=yes
11759 else
11760 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5
11762 rm -fr conftest*
11763 fu_cv_sys_stat_statfs3_osf1=no
11765 rm -fr conftest*
11770 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11771 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11772 space=yes
11773 cat >> confdefs.h <<\EOF
11774 #define STAT_STATFS3_OSF1 1
11780 if test $space = no; then
11781 # AIX
11782 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11783 echo "configure:11784: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11784 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11786 else
11787 if test "$cross_compiling" = yes; then
11788 fu_cv_sys_stat_statfs2_bsize=no
11789 else
11790 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11794 #ifdef HAVE_SYS_PARAM_H
11795 #include <sys/param.h>
11796 #endif
11797 #ifdef HAVE_SYS_MOUNT_H
11798 #include <sys/mount.h>
11799 #endif
11800 #ifdef HAVE_SYS_VFS_H
11801 #include <sys/vfs.h>
11802 #endif
11803 main ()
11805 struct statfs fsd;
11806 fsd.f_bsize = 0;
11807 exit (statfs (".", &fsd));
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11811 then
11812 fu_cv_sys_stat_statfs2_bsize=yes
11813 else
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11816 rm -fr conftest*
11817 fu_cv_sys_stat_statfs2_bsize=no
11819 rm -fr conftest*
11824 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11825 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11826 space=yes
11827 cat >> confdefs.h <<\EOF
11828 #define STAT_STATFS2_BSIZE 1
11834 if test $space = no; then
11835 # SVR3
11836 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11837 echo "configure:11838: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11838 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11840 else
11841 if test "$cross_compiling" = yes; then
11842 fu_cv_sys_stat_statfs4=no
11843 else
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 #include <sys/types.h>
11848 #include <sys/statfs.h>
11849 main ()
11851 struct statfs fsd;
11852 exit (statfs (".", &fsd, sizeof fsd, 0));
11855 if { (eval echo configure:11856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11856 then
11857 fu_cv_sys_stat_statfs4=yes
11858 else
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11861 rm -fr conftest*
11862 fu_cv_sys_stat_statfs4=no
11864 rm -fr conftest*
11869 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11870 if test $fu_cv_sys_stat_statfs4 = yes; then
11871 space=yes
11872 cat >> confdefs.h <<\EOF
11873 #define STAT_STATFS4 1
11879 if test $space = no; then
11880 # 4.4BSD and NetBSD
11881 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11882 echo "configure:11883: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11883 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11884 echo $ac_n "(cached) $ac_c" 1>&6
11885 else
11886 if test "$cross_compiling" = yes; then
11887 fu_cv_sys_stat_statfs2_fsize=no
11888 else
11889 cat > conftest.$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11892 #include <sys/types.h>
11893 #ifdef HAVE_SYS_PARAM_H
11894 #include <sys/param.h>
11895 #endif
11896 #ifdef HAVE_SYS_MOUNT_H
11897 #include <sys/mount.h>
11898 #endif
11899 main ()
11901 struct statfs fsd;
11902 fsd.f_fsize = 0;
11903 exit (statfs (".", &fsd));
11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11907 then
11908 fu_cv_sys_stat_statfs2_fsize=yes
11909 else
11910 echo "configure: failed program was:" >&5
11911 cat conftest.$ac_ext >&5
11912 rm -fr conftest*
11913 fu_cv_sys_stat_statfs2_fsize=no
11915 rm -fr conftest*
11920 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11921 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11922 space=yes
11923 cat >> confdefs.h <<\EOF
11924 #define STAT_STATFS2_FSIZE 1
11930 if test $space = no; then
11931 # Ultrix
11932 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11933 echo "configure:11934: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11934 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11935 echo $ac_n "(cached) $ac_c" 1>&6
11936 else
11937 if test "$cross_compiling" = yes; then
11938 fu_cv_sys_stat_fs_data=no
11939 else
11940 cat > conftest.$ac_ext <<EOF
11941 #line 11942 "configure"
11942 #include "confdefs.h"
11943 #include <sys/types.h>
11944 #ifdef HAVE_SYS_PARAM_H
11945 #include <sys/param.h>
11946 #endif
11947 #ifdef HAVE_SYS_MOUNT_H
11948 #include <sys/mount.h>
11949 #endif
11950 #ifdef HAVE_SYS_FS_TYPES_H
11951 #include <sys/fs_types.h>
11952 #endif
11953 main ()
11955 struct fs_data fsd;
11956 /* Ultrix's statfs returns 1 for success,
11957 0 for not mounted, -1 for failure. */
11958 exit (statfs (".", &fsd) != 1);
11961 if { (eval echo configure:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11962 then
11963 fu_cv_sys_stat_fs_data=yes
11964 else
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 rm -fr conftest*
11968 fu_cv_sys_stat_fs_data=no
11970 rm -fr conftest*
11975 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11976 if test $fu_cv_sys_stat_fs_data = yes; then
11977 space=yes
11978 cat >> confdefs.h <<\EOF
11979 #define STAT_STATFS2_FS_DATA 1
11986 # As a gating factor for large file support, in order to
11987 # use <4GB files we must have the following minimal support
11988 # available.
11989 # long long, and a 64 bit off_t or off64_t.
11990 # If we don't have all of these then disable large
11991 # file support.
11993 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
11994 echo "configure:11995: checking checking if large file support can be enabled" >&5
11995 cat > conftest.$ac_ext <<EOF
11996 #line 11997 "configure"
11997 #include "confdefs.h"
11999 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12000 #include <sys/types.h>
12001 #else
12002 __COMPILE_ERROR_
12003 #endif
12005 int main() {
12006 int i
12007 ; return 0; }
12009 if { (eval echo configure:12010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12010 rm -rf conftest*
12011 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12012 else
12013 echo "configure: failed program was:" >&5
12014 cat conftest.$ac_ext >&5
12015 rm -rf conftest*
12016 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12018 rm -f conftest*
12019 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12020 echo "$ac_t""yes" 1>&6
12021 cat >> confdefs.h <<\EOF
12022 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12025 else
12026 echo "$ac_t""no" 1>&6
12029 # Check whether --with-spinlocks or --without-spinlocks was given.
12030 if test "${with_spinlocks+set}" = set; then
12031 withval="$with_spinlocks"
12035 if test "x$with_spinlocks" = "xyes"; then
12036 cat >> confdefs.h <<\EOF
12037 #define USE_SPINLOCKS 1
12041 case "$host_cpu" in
12042 sparc)
12043 cat >> confdefs.h <<\EOF
12044 #define SPARC_SPINLOCKS 1
12049 i386|i486|i586|i686)
12050 cat >> confdefs.h <<\EOF
12051 #define INTEL_SPINLOCKS 1
12056 mips)
12057 cat >> confdefs.h <<\EOF
12058 #define MIPS_SPINLOCKS 1
12063 powerpc)
12064 cat >> confdefs.h <<\EOF
12065 #define POWERPC_SPINLOCKS 1
12069 esac
12072 #################################################
12073 # check for ACL support
12075 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12076 echo "configure:12077: checking whether to support ACLs" >&5
12077 # Check whether --with-acl-support or --without-acl-support was given.
12078 if test "${with_acl_support+set}" = set; then
12079 withval="$with_acl_support"
12080 case "$withval" in
12081 yes)
12083 case "$host_os" in
12084 *sysv5*)
12085 echo "$ac_t""Using UnixWare ACLs" 1>&6
12086 cat >> confdefs.h <<\EOF
12087 #define HAVE_UNIXWARE_ACLS 1
12091 *solaris*)
12092 echo "$ac_t""Using solaris ACLs" 1>&6
12093 cat >> confdefs.h <<\EOF
12094 #define HAVE_SOLARIS_ACLS 1
12098 *irix*)
12099 echo "$ac_t""Using IRIX ACLs" 1>&6
12100 cat >> confdefs.h <<\EOF
12101 #define HAVE_IRIX_ACLS 1
12105 *aix*)
12106 echo "$ac_t""Using AIX ACLs" 1>&6
12107 cat >> confdefs.h <<\EOF
12108 #define HAVE_AIX_ACLS 1
12112 *osf*)
12113 echo "$ac_t""Using Tru64 ACLs" 1>&6
12114 cat >> confdefs.h <<\EOF
12115 #define HAVE_TRU64_ACLS 1
12118 LIBS="$LIBS -lpacl"
12121 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12122 echo "configure:12123: checking for acl_get_file in -lacl" >&5
12123 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12126 else
12127 ac_save_LIBS="$LIBS"
12128 LIBS="-lacl $LIBS"
12129 cat > conftest.$ac_ext <<EOF
12130 #line 12131 "configure"
12131 #include "confdefs.h"
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135 char acl_get_file();
12137 int main() {
12138 acl_get_file()
12139 ; return 0; }
12141 if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12142 rm -rf conftest*
12143 eval "ac_cv_lib_$ac_lib_var=yes"
12144 else
12145 echo "configure: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12147 rm -rf conftest*
12148 eval "ac_cv_lib_$ac_lib_var=no"
12150 rm -f conftest*
12151 LIBS="$ac_save_LIBS"
12154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12157 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12158 cat >> confdefs.h <<EOF
12159 #define $ac_tr_lib 1
12162 LIBS="-lacl $LIBS"
12164 else
12165 echo "$ac_t""no" 1>&6
12168 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12169 echo "configure:12170: checking for ACL support" >&5
12170 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12172 else
12174 cat > conftest.$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 #include <sys/types.h>
12178 #include <sys/acl.h>
12179 int main() {
12180 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12181 ; return 0; }
12183 if { (eval echo configure:12184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12184 rm -rf conftest*
12185 samba_cv_HAVE_POSIX_ACLS=yes
12186 else
12187 echo "configure: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 rm -rf conftest*
12190 samba_cv_HAVE_POSIX_ACLS=no
12192 rm -f conftest*
12195 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12196 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12197 echo "$ac_t""Using posix ACLs" 1>&6
12198 cat >> confdefs.h <<\EOF
12199 #define HAVE_POSIX_ACLS 1
12202 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12203 echo "configure:12204: checking for acl_get_perm_np" >&5
12204 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12205 echo $ac_n "(cached) $ac_c" 1>&6
12206 else
12208 cat > conftest.$ac_ext <<EOF
12209 #line 12210 "configure"
12210 #include "confdefs.h"
12211 #include <sys/types.h>
12212 #include <sys/acl.h>
12213 int main() {
12214 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12215 ; return 0; }
12217 if { (eval echo configure:12218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12218 rm -rf conftest*
12219 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12220 else
12221 echo "configure: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12223 rm -rf conftest*
12224 samba_cv_HAVE_ACL_GET_PERM_NP=no
12226 rm -f conftest*
12229 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12230 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12231 cat >> confdefs.h <<\EOF
12232 #define HAVE_ACL_GET_PERM_NP 1
12238 esac
12241 echo "$ac_t""no" 1>&6
12242 cat >> confdefs.h <<\EOF
12243 #define HAVE_NO_ACLS 1
12247 esac
12248 else
12249 cat >> confdefs.h <<\EOF
12250 #define HAVE_NO_ACLS 1
12253 echo "$ac_t""no" 1>&6
12258 #################################################
12259 # check for the historical SAMBA installation
12261 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
12262 # Put all binaries under the /usr/local/samba/bin directory.
12263 sbindir="$bindir"
12266 #################################################
12267 # Check whether winbind is supported on this platform. If so we need to
12268 # build and install client programs (WINBIND_TARGETS), sbin programs
12269 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12271 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12272 echo "configure:12273: checking whether to build winbind" >&5
12274 # Initially, the value of $host_os decides whether winbind is supported
12276 case "$host_os" in
12277 *linux*|*solaris*)
12278 HAVE_WINBIND=yes
12281 HAVE_WINBIND=no
12282 winbind_no_reason=", unsupported on $host_os"
12284 esac
12286 # Check the setting of --with-winbindd
12288 # Check whether --with-winbind or --without-winbind was given.
12289 if test "${with_winbind+set}" = set; then
12290 withval="$with_winbind"
12292 case "$withval" in
12293 yes)
12294 HAVE_WINBIND=yes
12297 HAVE_WINBIND=no
12298 winbind_reason=""
12300 esac
12304 # We need unix domain sockets for winbind
12306 if test x"$HAVE_WINBIND" = x"yes"; then
12307 if test x"$samba_cv_unixsocket" = x"no"; then
12308 winbind_no_reason=", no unix domain socket support on $host_os"
12309 HAVE_WINBIND=no
12313 # Display test results
12315 if test x"$HAVE_WINBIND" = x"yes"; then
12317 echo "$ac_t""yes" 1>&6
12319 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12320 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12321 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12323 case "$with_pam" in
12324 yes)
12325 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12327 esac
12328 else
12329 echo "$ac_t""no$winbind_no_reason" 1>&6
12331 WINBIND_TARGETS=""
12332 WINBIND_STARGETS=""
12333 WINBIND_LTARGETS=""
12334 WINBIND_PAM_PROGS=""
12337 # Substitution time!
12344 #################################################
12345 # final configure stuff
12346 echo "checking configure summary"
12347 if test "$cross_compiling" = yes; then
12349 else
12350 cat > conftest.$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12353 #include "${srcdir-.}/tests/summary.c"
12355 if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12356 then
12357 echo "configure OK";
12358 else
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12361 rm -fr conftest*
12362 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12364 rm -fr conftest*
12368 builddir=`pwd`
12371 trap '' 1 2 15
12372 cat > confcache <<\EOF
12373 # This file is a shell script that caches the results of configure
12374 # tests run on this system so they can be shared between configure
12375 # scripts and configure runs. It is not useful on other systems.
12376 # If it contains results you don't want to keep, you may remove or edit it.
12378 # By default, configure uses ./config.cache as the cache file,
12379 # creating it if it does not exist already. You can give configure
12380 # the --cache-file=FILE option to use a different cache file; that is
12381 # what configure does when it calls configure scripts in
12382 # subdirectories, so they share the cache.
12383 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12384 # config.status only pays attention to the cache file if you give it the
12385 # --recheck option to rerun configure.
12388 # The following way of writing the cache mishandles newlines in values,
12389 # but we know of no workaround that is simple, portable, and efficient.
12390 # So, don't put newlines in cache variables' values.
12391 # Ultrix sh set writes to stderr and can't be redirected directly,
12392 # and sets the high bit in the cache file unless we assign to the vars.
12393 (set) 2>&1 |
12394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12395 *ac_space=\ *)
12396 # `set' does not quote correctly, so add quotes (double-quote substitution
12397 # turns \\\\ into \\, and sed turns \\ into \).
12398 sed -n \
12399 -e "s/'/'\\\\''/g" \
12400 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12403 # `set' quotes correctly as required by POSIX, so do not add quotes.
12404 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12406 esac >> confcache
12407 if cmp -s $cache_file confcache; then
12409 else
12410 if test -w $cache_file; then
12411 echo "updating cache $cache_file"
12412 cat confcache > $cache_file
12413 else
12414 echo "not updating unwritable cache $cache_file"
12417 rm -f confcache
12419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12422 # Let make expand exec_prefix.
12423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12425 # Any assignment to VPATH causes Sun make to only execute
12426 # the first set of double-colon rules, so remove it if not needed.
12427 # If there is a colon in the path, we need to keep it.
12428 if test "x$srcdir" = x.; then
12429 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12432 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12434 DEFS=-DHAVE_CONFIG_H
12436 # Without the "./", some shells look in PATH for config.status.
12437 : ${CONFIG_STATUS=./config.status}
12439 echo creating $CONFIG_STATUS
12440 rm -f $CONFIG_STATUS
12441 cat > $CONFIG_STATUS <<EOF
12442 #! /bin/sh
12443 # Generated automatically by configure.
12444 # Run this file to recreate the current configuration.
12445 # This directory was configured as follows,
12446 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12448 # $0 $ac_configure_args
12450 # Compiler output produced by configure, useful for debugging
12451 # configure, is in ./config.log if it exists.
12453 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12454 for ac_option
12456 case "\$ac_option" in
12457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12458 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12459 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12460 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12461 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12462 exit 0 ;;
12463 -help | --help | --hel | --he | --h)
12464 echo "\$ac_cs_usage"; exit 0 ;;
12465 *) echo "\$ac_cs_usage"; exit 1 ;;
12466 esac
12467 done
12469 ac_given_srcdir=$srcdir
12470 ac_given_INSTALL="$INSTALL"
12472 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12474 cat >> $CONFIG_STATUS <<EOF
12476 # Protect against being on the right side of a sed subst in config.status.
12477 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12478 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12479 $ac_vpsub
12480 $extrasub
12481 s%@SHELL@%$SHELL%g
12482 s%@CFLAGS@%$CFLAGS%g
12483 s%@CPPFLAGS@%$CPPFLAGS%g
12484 s%@CXXFLAGS@%$CXXFLAGS%g
12485 s%@FFLAGS@%$FFLAGS%g
12486 s%@DEFS@%$DEFS%g
12487 s%@LDFLAGS@%$LDFLAGS%g
12488 s%@LIBS@%$LIBS%g
12489 s%@exec_prefix@%$exec_prefix%g
12490 s%@prefix@%$prefix%g
12491 s%@program_transform_name@%$program_transform_name%g
12492 s%@bindir@%$bindir%g
12493 s%@sbindir@%$sbindir%g
12494 s%@libexecdir@%$libexecdir%g
12495 s%@datadir@%$datadir%g
12496 s%@sysconfdir@%$sysconfdir%g
12497 s%@sharedstatedir@%$sharedstatedir%g
12498 s%@localstatedir@%$localstatedir%g
12499 s%@libdir@%$libdir%g
12500 s%@includedir@%$includedir%g
12501 s%@oldincludedir@%$oldincludedir%g
12502 s%@infodir@%$infodir%g
12503 s%@mandir@%$mandir%g
12504 s%@codepagedir@%$codepagedir%g
12505 s%@configdir@%$configdir%g
12506 s%@lockdir@%$lockdir%g
12507 s%@logfilebase@%$logfilebase%g
12508 s%@privatedir@%$privatedir%g
12509 s%@swatdir@%$swatdir%g
12510 s%@RUNPROG@%$RUNPROG%g
12511 s%@MPROGS@%$MPROGS%g
12512 s%@LDSHFLAGS@%$LDSHFLAGS%g
12513 s%@HOST_OS@%$HOST_OS%g
12514 s%@PAM_MOD@%$PAM_MOD%g
12515 s%@WRAP@%$WRAP%g
12516 s%@WRAP32@%$WRAP32%g
12517 s%@PICFLAG@%$PICFLAG%g
12518 s%@SHLIBEXT@%$SHLIBEXT%g
12519 s%@CC@%$CC%g
12520 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12521 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12522 s%@INSTALL_DATA@%$INSTALL_DATA%g
12523 s%@AWK@%$AWK%g
12524 s%@BROKEN_CC@%$BROKEN_CC%g
12525 s%@host@%$host%g
12526 s%@host_alias@%$host_alias%g
12527 s%@host_cpu@%$host_cpu%g
12528 s%@host_vendor@%$host_vendor%g
12529 s%@host_os@%$host_os%g
12530 s%@target@%$target%g
12531 s%@target_alias@%$target_alias%g
12532 s%@target_cpu@%$target_cpu%g
12533 s%@target_vendor@%$target_vendor%g
12534 s%@target_os@%$target_os%g
12535 s%@build@%$build%g
12536 s%@build_alias@%$build_alias%g
12537 s%@build_cpu@%$build_cpu%g
12538 s%@build_vendor@%$build_vendor%g
12539 s%@build_os@%$build_os%g
12540 s%@CPP@%$CPP%g
12541 s%@LIBOBJS@%$LIBOBJS%g
12542 s%@TERMLIBS@%$TERMLIBS%g
12543 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12544 s%@ROFF@%$ROFF%g
12545 s%@QUOTAOBJS@%$QUOTAOBJS%g
12546 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12547 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12548 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12549 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12550 s%@builddir@%$builddir%g
12552 CEOF
12555 cat >> $CONFIG_STATUS <<\EOF
12557 # Split the substitutions into bite-sized pieces for seds with
12558 # small command number limits, like on Digital OSF/1 and HP-UX.
12559 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12560 ac_file=1 # Number of current file.
12561 ac_beg=1 # First line for current file.
12562 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12563 ac_more_lines=:
12564 ac_sed_cmds=""
12565 while $ac_more_lines; do
12566 if test $ac_beg -gt 1; then
12567 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12568 else
12569 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12571 if test ! -s conftest.s$ac_file; then
12572 ac_more_lines=false
12573 rm -f conftest.s$ac_file
12574 else
12575 if test -z "$ac_sed_cmds"; then
12576 ac_sed_cmds="sed -f conftest.s$ac_file"
12577 else
12578 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12580 ac_file=`expr $ac_file + 1`
12581 ac_beg=$ac_end
12582 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12584 done
12585 if test -z "$ac_sed_cmds"; then
12586 ac_sed_cmds=cat
12590 cat >> $CONFIG_STATUS <<EOF
12592 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12594 cat >> $CONFIG_STATUS <<\EOF
12595 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12597 case "$ac_file" in
12598 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12599 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12600 *) ac_file_in="${ac_file}.in" ;;
12601 esac
12603 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12605 # Remove last slash and all that follows it. Not all systems have dirname.
12606 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12607 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12608 # The file is in a subdirectory.
12609 test ! -d "$ac_dir" && mkdir "$ac_dir"
12610 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12611 # A "../" for each directory in $ac_dir_suffix.
12612 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12613 else
12614 ac_dir_suffix= ac_dots=
12617 case "$ac_given_srcdir" in
12618 .) srcdir=.
12619 if test -z "$ac_dots"; then top_srcdir=.
12620 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12621 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12622 *) # Relative path.
12623 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12624 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12625 esac
12627 case "$ac_given_INSTALL" in
12628 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12629 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12630 esac
12632 echo creating "$ac_file"
12633 rm -f "$ac_file"
12634 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12635 case "$ac_file" in
12636 *Makefile*) ac_comsub="1i\\
12637 # $configure_input" ;;
12638 *) ac_comsub= ;;
12639 esac
12641 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12642 sed -e "$ac_comsub
12643 s%@configure_input@%$configure_input%g
12644 s%@srcdir@%$srcdir%g
12645 s%@top_srcdir@%$top_srcdir%g
12646 s%@INSTALL@%$INSTALL%g
12647 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12648 fi; done
12649 rm -f conftest.s*
12651 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12652 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12654 # ac_d sets the value in "#define NAME VALUE" lines.
12655 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12656 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12657 ac_dC='\3'
12658 ac_dD='%g'
12659 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12660 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12661 ac_uB='\([ ]\)%\1#\2define\3'
12662 ac_uC=' '
12663 ac_uD='\4%g'
12664 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12665 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12666 ac_eB='$%\1#\2define\3'
12667 ac_eC=' '
12668 ac_eD='%g'
12670 if test "${CONFIG_HEADERS+set}" != set; then
12672 cat >> $CONFIG_STATUS <<EOF
12673 CONFIG_HEADERS="include/config.h"
12675 cat >> $CONFIG_STATUS <<\EOF
12677 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12679 case "$ac_file" in
12680 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12681 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12682 *) ac_file_in="${ac_file}.in" ;;
12683 esac
12685 echo creating $ac_file
12687 rm -f conftest.frag conftest.in conftest.out
12688 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12689 cat $ac_file_inputs > conftest.in
12693 # Transform confdefs.h into a sed script conftest.vals that substitutes
12694 # the proper values into config.h.in to produce config.h. And first:
12695 # Protect against being on the right side of a sed subst in config.status.
12696 # Protect against being in an unquoted here document in config.status.
12697 rm -f conftest.vals
12698 cat > conftest.hdr <<\EOF
12699 s/[\\&%]/\\&/g
12700 s%[\\$`]%\\&%g
12701 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12702 s%ac_d%ac_u%gp
12703 s%ac_u%ac_e%gp
12705 sed -n -f conftest.hdr confdefs.h > conftest.vals
12706 rm -f conftest.hdr
12708 # This sed command replaces #undef with comments. This is necessary, for
12709 # example, in the case of _POSIX_SOURCE, which is predefined and required
12710 # on some systems where configure will not decide to define it.
12711 cat >> conftest.vals <<\EOF
12712 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12715 # Break up conftest.vals because some shells have a limit on
12716 # the size of here documents, and old seds have small limits too.
12718 rm -f conftest.tail
12719 while :
12721 ac_lines=`grep -c . conftest.vals`
12722 # grep -c gives empty output for an empty file on some AIX systems.
12723 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12724 # Write a limited-size here document to conftest.frag.
12725 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12726 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12727 echo 'CEOF
12728 sed -f conftest.frag conftest.in > conftest.out
12729 rm -f conftest.in
12730 mv conftest.out conftest.in
12731 ' >> $CONFIG_STATUS
12732 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12733 rm -f conftest.vals
12734 mv conftest.tail conftest.vals
12735 done
12736 rm -f conftest.vals
12738 cat >> $CONFIG_STATUS <<\EOF
12739 rm -f conftest.frag conftest.h
12740 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12741 cat conftest.in >> conftest.h
12742 rm -f conftest.in
12743 if cmp -s $ac_file conftest.h 2>/dev/null; then
12744 echo "$ac_file is unchanged"
12745 rm -f conftest.h
12746 else
12747 # Remove last slash and all that follows it. Not all systems have dirname.
12748 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12749 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12750 # The file is in a subdirectory.
12751 test ! -d "$ac_dir" && mkdir "$ac_dir"
12753 rm -f $ac_file
12754 mv conftest.h $ac_file
12756 fi; done
12759 cat >> $CONFIG_STATUS <<EOF
12762 cat >> $CONFIG_STATUS <<\EOF
12764 exit 0
12766 chmod +x $CONFIG_STATUS
12767 rm -fr confdefs* $ac_clean_files
12768 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1