me stupid.
[Samba.git] / source / configure
blob83b84fc36db7057270071c358f1d7e01ecc5cc72
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-debug turn on debugging [default=no]"
17 ac_help="$ac_help
18 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
19 ac_help="$ac_help
20 --with-readline[=DIR] Look for readline include/libs in DIR
21 --without-readline Don't include readline support"
22 ac_help="$ac_help
23 --with-libiconv=BASEDIR use libiconv in BASEDIR/lib and BASEDIR/include
24 --without-libiconv Don't use libiconv library"
25 ac_help="$ac_help
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
28 ac_help="$ac_help
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
31 ac_help="$ac_help
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
34 ac_help="$ac_help
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
37 ac_help="$ac_help
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
40 ac_help="$ac_help
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
43 ac_help="$ac_help
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
46 ac_help="$ac_help
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
49 ac_help="$ac_help
50 --with-pam_smbpass Include the smbpass PAM module
51 --without-pam_smbpass Don't include the smbpass PAM module (default)"
52 ac_help="$ac_help
53 --with-tdbsam Include experimental TDB password database
54 --without-tdbsam Don't include experimental TDB password database (default)"
55 ac_help="$ac_help
56 --with-ldap Include LDAP support
57 --without-ldap Don't include LDAP support (default)"
58 ac_help="$ac_help
59 --with-nisplus Include NISPLUS password database support
60 --without-nisplus Don't include NISPLUS password database support (default)"
61 ac_help="$ac_help
62 --with-nisplus-home Include NISPLUS_HOME support
63 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
64 ac_help="$ac_help
65 --with-ssl Include SSL support
66 --without-ssl Don't include SSL support (default)
67 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
68 ac_help="$ac_help
69 --with-syslog Include experimental SYSLOG support
70 --without-syslog Don't include SYSLOG support (default)"
71 ac_help="$ac_help
72 --with-profiling-data Include gathering source code profile information
73 --without-profiling-data Don't include support for gathering source code profile information (default)"
74 ac_help="$ac_help
75 --with-netatalk Include experimental Netatalk support
76 --without-netatalk Don't include experimental Netatalk support (default)"
77 ac_help="$ac_help
78 --with-quotas Include experimental disk-quota support
79 --without-quotas Don't include experimental disk-quota support (default)"
80 ac_help="$ac_help
81 --with-utmp Include experimental utmp accounting
82 --without-utmp Don't include experimental utmp accounting (default)"
83 ac_help="$ac_help
84 --with-msdfs Include MS Dfs support
85 --without-msdfs Don't include MS Dfs support (default)"
86 ac_help="$ac_help
87 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
88 ac_help="$ac_help
89 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
90 ac_help="$ac_help
91 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
92 ac_help="$ac_help
93 --with-spinlocks use spin locks instead of fcntl locks "
94 ac_help="$ac_help
95 --with-acl-support Include ACL support
96 --without-acl-support Don't include ACL support (default)"
97 ac_help="$ac_help
98 --with-winbind Build winbind (default, if supported by OS)
99 --without-winbind Don't build winbind"
101 # Initialize some variables set by options.
102 # The variables have the same names as the options, with
103 # dashes changed to underlines.
104 build=NONE
105 cache_file=./config.cache
106 exec_prefix=NONE
107 host=NONE
108 no_create=
109 nonopt=NONE
110 no_recursion=
111 prefix=NONE
112 program_prefix=NONE
113 program_suffix=NONE
114 program_transform_name=s,x,x,
115 silent=
116 site=
117 srcdir=
118 target=NONE
119 verbose=
120 x_includes=NONE
121 x_libraries=NONE
122 bindir='${exec_prefix}/bin'
123 sbindir='${exec_prefix}/sbin'
124 libexecdir='${exec_prefix}/libexec'
125 datadir='${prefix}/share'
126 sysconfdir='${prefix}/etc'
127 sharedstatedir='${prefix}/com'
128 localstatedir='${prefix}/var'
129 libdir='${exec_prefix}/lib'
130 includedir='${prefix}/include'
131 oldincludedir='/usr/include'
132 infodir='${prefix}/info'
133 mandir='${prefix}/man'
135 # Initialize some other variables.
136 subdirs=
137 MFLAGS= MAKEFLAGS=
138 SHELL=${CONFIG_SHELL-/bin/sh}
139 # Maximum number of lines to put in a shell here document.
140 ac_max_here_lines=12
142 ac_prev=
143 for ac_option
146 # If the previous option needs an argument, assign it.
147 if test -n "$ac_prev"; then
148 eval "$ac_prev=\$ac_option"
149 ac_prev=
150 continue
153 case "$ac_option" in
154 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 *) ac_optarg= ;;
156 esac
158 # Accept the important Cygnus configure options, so we can diagnose typos.
160 case "$ac_option" in
162 -bindir | --bindir | --bindi | --bind | --bin | --bi)
163 ac_prev=bindir ;;
164 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
165 bindir="$ac_optarg" ;;
167 -build | --build | --buil | --bui | --bu)
168 ac_prev=build ;;
169 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
170 build="$ac_optarg" ;;
172 -cache-file | --cache-file | --cache-fil | --cache-fi \
173 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
174 ac_prev=cache_file ;;
175 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
176 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
177 cache_file="$ac_optarg" ;;
179 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
180 ac_prev=datadir ;;
181 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
182 | --da=*)
183 datadir="$ac_optarg" ;;
185 -disable-* | --disable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}=no" ;;
194 -enable-* | --enable-*)
195 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
201 case "$ac_option" in
202 *=*) ;;
203 *) ac_optarg=yes ;;
204 esac
205 eval "enable_${ac_feature}='$ac_optarg'" ;;
207 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
208 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
209 | --exec | --exe | --ex)
210 ac_prev=exec_prefix ;;
211 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
212 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
213 | --exec=* | --exe=* | --ex=*)
214 exec_prefix="$ac_optarg" ;;
216 -gas | --gas | --ga | --g)
217 # Obsolete; use --with-gas.
218 with_gas=yes ;;
220 -help | --help | --hel | --he)
221 # Omit some internal or obsolete options to make the list less imposing.
222 # This message is too long to be a string in the A/UX 3.1 sh.
223 cat << EOF
224 Usage: configure [options] [host]
225 Options: [defaults in brackets after descriptions]
226 Configuration:
227 --cache-file=FILE cache test results in FILE
228 --help print this message
229 --no-create do not create output files
230 --quiet, --silent do not print \`checking...' messages
231 --version print the version of autoconf that created configure
232 Directory and file names:
233 --prefix=PREFIX install architecture-independent files in PREFIX
234 [$ac_default_prefix]
235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
236 [same as prefix]
237 --bindir=DIR user executables in DIR [EPREFIX/bin]
238 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
239 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
240 --datadir=DIR read-only architecture-independent data in DIR
241 [PREFIX/share]
242 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
243 --sharedstatedir=DIR modifiable architecture-independent data in DIR
244 [PREFIX/com]
245 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
246 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
247 --includedir=DIR C header files in DIR [PREFIX/include]
248 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
249 --infodir=DIR info documentation in DIR [PREFIX/info]
250 --mandir=DIR man documentation in DIR [PREFIX/man]
251 --srcdir=DIR find the sources in DIR [configure dir or ..]
252 --program-prefix=PREFIX prepend PREFIX to installed program names
253 --program-suffix=SUFFIX append SUFFIX to installed program names
254 --program-transform-name=PROGRAM
255 run sed PROGRAM on installed program names
257 cat << EOF
258 Host type:
259 --build=BUILD configure for building on BUILD [BUILD=HOST]
260 --host=HOST configure for HOST [guessed]
261 --target=TARGET configure for TARGET [TARGET=HOST]
262 Features and packages:
263 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
264 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
265 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
266 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
267 --x-includes=DIR X include files are in DIR
268 --x-libraries=DIR X library files are in DIR
270 if test -n "$ac_help"; then
271 echo "--enable and --with options recognized:$ac_help"
273 exit 0 ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host="$ac_optarg" ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir="$ac_optarg" ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir="$ac_optarg" ;;
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir="$ac_optarg" ;;
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir="$ac_optarg" ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir="$ac_optarg" ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir="$ac_optarg" ;;
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir="$ac_optarg" ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix="$ac_optarg" ;;
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix="$ac_optarg" ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix="$ac_optarg" ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name="$ac_optarg" ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir="$ac_optarg" ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir="$ac_optarg" ;;
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site="$ac_optarg" ;;
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir="$ac_optarg" ;;
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir="$ac_optarg" ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target="$ac_optarg" ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
421 -version | --version | --versio | --versi | --vers)
422 echo "configure generated by autoconf version 2.13"
423 exit 0 ;;
425 -with-* | --with-*)
426 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 case "$ac_option" in
433 *=*) ;;
434 *) ac_optarg=yes ;;
435 esac
436 eval "with_${ac_package}='$ac_optarg'" ;;
438 -without-* | --without-*)
439 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}=no" ;;
447 --x)
448 # Obsolete; use --with-x.
449 with_x=yes ;;
451 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
452 | --x-incl | --x-inc | --x-in | --x-i)
453 ac_prev=x_includes ;;
454 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
455 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
456 x_includes="$ac_optarg" ;;
458 -x-libraries | --x-libraries | --x-librarie | --x-librari \
459 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
460 ac_prev=x_libraries ;;
461 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
462 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
463 x_libraries="$ac_optarg" ;;
465 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
469 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
470 echo "configure: warning: $ac_option: invalid host type" 1>&2
472 if test "x$nonopt" != xNONE; then
473 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
475 nonopt="$ac_option"
478 esac
479 done
481 if test -n "$ac_prev"; then
482 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
485 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
487 # File descriptor usage:
488 # 0 standard input
489 # 1 file creation
490 # 2 errors and warnings
491 # 3 some systems may open it to /dev/tty
492 # 4 used on the Kubota Titan
493 # 6 checking for... messages and results
494 # 5 compiler messages saved in config.log
495 if test "$silent" = yes; then
496 exec 6>/dev/null
497 else
498 exec 6>&1
500 exec 5>./config.log
502 echo "\
503 This file contains any messages produced by compilers while
504 running configure, to aid debugging if configure makes a mistake.
505 " 1>&5
507 # Strip out --no-create and --no-recursion so they do not pile up.
508 # Also quote any args containing shell metacharacters.
509 ac_configure_args=
510 for ac_arg
512 case "$ac_arg" in
513 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
514 | --no-cr | --no-c) ;;
515 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
516 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
517 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
518 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
519 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
520 esac
521 done
523 # NLS nuisances.
524 # Only set these to C if already set. These must not be set unconditionally
525 # because not all systems understand e.g. LANG=C (notably SCO).
526 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
527 # Non-C LC_CTYPE values break the ctype check.
528 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
529 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
530 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
531 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
534 rm -rf conftest* confdefs.h
535 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
536 echo > confdefs.h
538 # A filename unique to this package, relative to the directory that
539 # configure is in, which we can look for to find out if srcdir is correct.
540 ac_unique_file=include/includes.h
542 # Find the source files, if location was not specified.
543 if test -z "$srcdir"; then
544 ac_srcdir_defaulted=yes
545 # Try the directory containing this script, then its parent.
546 ac_prog=$0
547 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
548 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 srcdir=$ac_confdir
550 if test ! -r $srcdir/$ac_unique_file; then
551 srcdir=..
553 else
554 ac_srcdir_defaulted=no
556 if test ! -r $srcdir/$ac_unique_file; then
557 if test "$ac_srcdir_defaulted" = yes; then
558 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 else
560 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
563 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
565 # Prefer explicitly selected file to automatically selected ones.
566 if test -z "$CONFIG_SITE"; then
567 if test "x$prefix" != xNONE; then
568 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
569 else
570 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
573 for ac_site_file in $CONFIG_SITE; do
574 if test -r "$ac_site_file"; then
575 echo "loading site script $ac_site_file"
576 . "$ac_site_file"
578 done
580 if test -r "$cache_file"; then
581 echo "loading cache $cache_file"
582 . $cache_file
583 else
584 echo "creating cache $cache_file"
585 > $cache_file
588 ac_ext=c
589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
590 ac_cpp='$CPP $CPPFLAGS'
591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
593 cross_compiling=$ac_cv_prog_cc_cross
595 ac_exeext=
596 ac_objext=o
597 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
598 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
599 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
600 ac_n= ac_c='
601 ' ac_t=' '
602 else
603 ac_n=-n ac_c= ac_t=
605 else
606 ac_n= ac_c='\c' ac_t=
611 # we want to be compatibe with older versions of Samba
629 # compile with optimisation and without debugging by default
630 CFLAGS="-O ${CFLAGS}"
632 # Check whether --enable-debug or --disable-debug was given.
633 if test "${enable_debug+set}" = set; then
634 enableval="$enable_debug"
635 if eval "test x$enable_debug = xyes"; then
636 CFLAGS="${CFLAGS} -g"
642 # Extract the first word of "gcc", so it can be a program name with args.
643 set dummy gcc; ac_word=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
648 else
649 if test -n "$CC"; then
650 ac_cv_prog_CC="$CC" # Let the user override the test.
651 else
652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
653 ac_dummy="$PATH"
654 for ac_dir in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir=.
656 if test -f $ac_dir/$ac_word; then
657 ac_cv_prog_CC="gcc"
658 break
660 done
661 IFS="$ac_save_ifs"
664 CC="$ac_cv_prog_CC"
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
667 else
668 echo "$ac_t""no" 1>&6
671 if test -z "$CC"; then
672 # Extract the first word of "cc", so it can be a program name with args.
673 set dummy cc; ac_word=$2
674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675 echo "configure:676: checking for $ac_word" >&5
676 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
678 else
679 if test -n "$CC"; then
680 ac_cv_prog_CC="$CC" # Let the user override the test.
681 else
682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
683 ac_prog_rejected=no
684 ac_dummy="$PATH"
685 for ac_dir in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir=.
687 if test -f $ac_dir/$ac_word; then
688 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
689 ac_prog_rejected=yes
690 continue
692 ac_cv_prog_CC="cc"
693 break
695 done
696 IFS="$ac_save_ifs"
697 if test $ac_prog_rejected = yes; then
698 # We found a bogon in the path, so make sure we never use it.
699 set dummy $ac_cv_prog_CC
700 shift
701 if test $# -gt 0; then
702 # We chose a different compiler from the bogus one.
703 # However, it has the same basename, so the bogon will be chosen
704 # first if we set CC to just the basename; use the full file name.
705 shift
706 set dummy "$ac_dir/$ac_word" "$@"
707 shift
708 ac_cv_prog_CC="$@"
713 CC="$ac_cv_prog_CC"
714 if test -n "$CC"; then
715 echo "$ac_t""$CC" 1>&6
716 else
717 echo "$ac_t""no" 1>&6
720 if test -z "$CC"; then
721 case "`uname -s`" in
722 *win32* | *WIN32*)
723 # Extract the first word of "cl", so it can be a program name with args.
724 set dummy cl; ac_word=$2
725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726 echo "configure:727: checking for $ac_word" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
729 else
730 if test -n "$CC"; then
731 ac_cv_prog_CC="$CC" # Let the user override the test.
732 else
733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
734 ac_dummy="$PATH"
735 for ac_dir in $ac_dummy; do
736 test -z "$ac_dir" && ac_dir=.
737 if test -f $ac_dir/$ac_word; then
738 ac_cv_prog_CC="cl"
739 break
741 done
742 IFS="$ac_save_ifs"
745 CC="$ac_cv_prog_CC"
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
748 else
749 echo "$ac_t""no" 1>&6
752 esac
754 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
760 ac_ext=c
761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
762 ac_cpp='$CPP $CPPFLAGS'
763 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
764 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
765 cross_compiling=$ac_cv_prog_cc_cross
767 cat > conftest.$ac_ext << EOF
769 #line 770 "configure"
770 #include "confdefs.h"
772 main(){return(0);}
774 if { (eval echo configure:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
775 ac_cv_prog_cc_works=yes
776 # If we can't run a trivial program, we are probably using a cross compiler.
777 if (./conftest; exit) 2>/dev/null; then
778 ac_cv_prog_cc_cross=no
779 else
780 ac_cv_prog_cc_cross=yes
782 else
783 echo "configure: failed program was:" >&5
784 cat conftest.$ac_ext >&5
785 ac_cv_prog_cc_works=no
787 rm -fr conftest*
788 ac_ext=c
789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790 ac_cpp='$CPP $CPPFLAGS'
791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793 cross_compiling=$ac_cv_prog_cc_cross
795 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
796 if test $ac_cv_prog_cc_works = no; then
797 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
800 echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
801 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
802 cross_compiling=$ac_cv_prog_cc_cross
804 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
805 echo "configure:806: checking whether we are using GNU C" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 cat > conftest.c <<EOF
810 #ifdef __GNUC__
811 yes;
812 #endif
814 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
815 ac_cv_prog_gcc=yes
816 else
817 ac_cv_prog_gcc=no
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
823 if test $ac_cv_prog_gcc = yes; then
824 GCC=yes
825 else
826 GCC=
829 ac_test_CFLAGS="${CFLAGS+set}"
830 ac_save_CFLAGS="$CFLAGS"
831 CFLAGS=
832 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
833 echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
836 else
837 echo 'void f(){}' > conftest.c
838 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
839 ac_cv_prog_cc_g=yes
840 else
841 ac_cv_prog_cc_g=no
843 rm -f conftest*
847 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
848 if test "$ac_test_CFLAGS" = set; then
849 CFLAGS="$ac_save_CFLAGS"
850 elif test $ac_cv_prog_cc_g = yes; then
851 if test "$GCC" = yes; then
852 CFLAGS="-g -O2"
853 else
854 CFLAGS="-g"
856 else
857 if test "$GCC" = yes; then
858 CFLAGS="-O2"
859 else
860 CFLAGS=
864 ac_aux_dir=
865 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
866 if test -f $ac_dir/install-sh; then
867 ac_aux_dir=$ac_dir
868 ac_install_sh="$ac_aux_dir/install-sh -c"
869 break
870 elif test -f $ac_dir/install.sh; then
871 ac_aux_dir=$ac_dir
872 ac_install_sh="$ac_aux_dir/install.sh -c"
873 break
875 done
876 if test -z "$ac_aux_dir"; then
877 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
879 ac_config_guess=$ac_aux_dir/config.guess
880 ac_config_sub=$ac_aux_dir/config.sub
881 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
883 # Find a good install program. We prefer a C program (faster),
884 # so one script is as good as another. But avoid the broken or
885 # incompatible versions:
886 # SysV /etc/install, /usr/sbin/install
887 # SunOS /usr/etc/install
888 # IRIX /sbin/install
889 # AIX /bin/install
890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
893 # ./install, which can be erroneously created by make from ./install.sh.
894 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
895 echo "configure:896: checking for a BSD compatible install" >&5
896 if test -z "$INSTALL"; then
897 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
899 else
900 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
901 for ac_dir in $PATH; do
902 # Account for people who put trailing slashes in PATH elements.
903 case "$ac_dir/" in
904 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
906 # OSF1 and SCO ODT 3.0 have their own names for install.
907 # Don't use installbsd from OSF since it installs stuff as root
908 # by default.
909 for ac_prog in ginstall scoinst install; do
910 if test -f $ac_dir/$ac_prog; then
911 if test $ac_prog = install &&
912 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
913 # AIX install. It has an incompatible calling convention.
915 else
916 ac_cv_path_install="$ac_dir/$ac_prog -c"
917 break 2
920 done
922 esac
923 done
924 IFS="$ac_save_IFS"
927 if test "${ac_cv_path_install+set}" = set; then
928 INSTALL="$ac_cv_path_install"
929 else
930 # As a last resort, use the slow shell script. We don't cache a
931 # path for INSTALL within a source directory, because that will
932 # break other packages using the cache if that directory is
933 # removed, or if the path is relative.
934 INSTALL="$ac_install_sh"
937 echo "$ac_t""$INSTALL" 1>&6
939 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
940 # It thinks the first close brace ends the variable substitution.
941 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
943 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
945 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
947 for ac_prog in gawk mawk nawk awk
949 # Extract the first word of "$ac_prog", so it can be a program name with args.
950 set dummy $ac_prog; ac_word=$2
951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 echo "configure:953: checking for $ac_word" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
955 else
956 if test -n "$AWK"; then
957 ac_cv_prog_AWK="$AWK" # Let the user override the test.
958 else
959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960 ac_dummy="$PATH"
961 for ac_dir in $ac_dummy; do
962 test -z "$ac_dir" && ac_dir=.
963 if test -f $ac_dir/$ac_word; then
964 ac_cv_prog_AWK="$ac_prog"
965 break
967 done
968 IFS="$ac_save_ifs"
971 AWK="$ac_cv_prog_AWK"
972 if test -n "$AWK"; then
973 echo "$ac_t""$AWK" 1>&6
974 else
975 echo "$ac_t""no" 1>&6
978 test -n "$AWK" && break
979 done
982 if test "x$CC" != xcc; then
983 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
984 echo "configure:985: checking whether $CC and cc understand -c and -o together" >&5
985 else
986 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
987 echo "configure:988: checking whether cc understands -c and -o together" >&5
989 set dummy $CC; ac_cc="`echo $2 |
990 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
991 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993 else
994 echo 'foo(){}' > conftest.c
995 # Make sure it works both with $CC and with simple cc.
996 # We do the test twice because some compilers refuse to overwrite an
997 # existing .o file with -o, though they will create one.
998 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
999 if { (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1000 test -f conftest.o && { (eval echo configure:1001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1001 then
1002 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1003 if test "x$CC" != xcc; then
1004 # Test first that cc exists at all.
1005 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1006 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1007 if { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1008 test -f conftest.o && { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1009 then
1010 # cc works too.
1012 else
1013 # cc exists but doesn't like -o.
1014 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1018 else
1019 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1021 rm -f conftest*
1024 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1025 echo "$ac_t""yes" 1>&6
1026 else
1027 echo "$ac_t""no" 1>&6
1028 cat >> confdefs.h <<\EOF
1029 #define NO_MINUS_C_MINUS_O 1
1034 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1035 BROKEN_CC=
1036 else
1037 BROKEN_CC=#
1041 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1042 echo "configure:1043: checking that the C compiler understands volatile" >&5
1043 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1050 #include <sys/types.h>
1051 int main() {
1052 volatile int i = 0
1053 ; return 0; }
1055 if { (eval echo configure:1056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1056 rm -rf conftest*
1057 samba_cv_volatile=yes
1058 else
1059 echo "configure: failed program was:" >&5
1060 cat conftest.$ac_ext >&5
1061 rm -rf conftest*
1062 samba_cv_volatile=no
1064 rm -f conftest*
1067 echo "$ac_t""$samba_cv_volatile" 1>&6
1068 if test x"$samba_cv_volatile" = x"yes"; then
1069 cat >> confdefs.h <<\EOF
1070 #define HAVE_VOLATILE 1
1076 #################################################
1077 # set codepage directory location
1078 # Check whether --with-codepagedir or --without-codepagedir was given.
1079 if test "${with_codepagedir+set}" = set; then
1080 withval="$with_codepagedir"
1081 case "$withval" in
1082 yes|no)
1084 # Just in case anybody does it
1086 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1089 codepagedir="$withval"
1091 esac
1097 # Do some error checking and defaulting for the host and target type.
1098 # The inputs are:
1099 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1101 # The rules are:
1102 # 1. You are not allowed to specify --host, --target, and nonopt at the
1103 # same time.
1104 # 2. Host defaults to nonopt.
1105 # 3. If nonopt is not specified, then host defaults to the current host,
1106 # as determined by config.guess.
1107 # 4. Target and build default to nonopt.
1108 # 5. If nonopt is not specified, then target and build default to host.
1110 # The aliases save the names the user supplied, while $host etc.
1111 # will get canonicalized.
1112 case $host---$target---$nonopt in
1113 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1114 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1115 esac
1118 # Make sure we can run config.sub.
1119 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1120 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1123 echo $ac_n "checking host system type""... $ac_c" 1>&6
1124 echo "configure:1125: checking host system type" >&5
1126 host_alias=$host
1127 case "$host_alias" in
1128 NONE)
1129 case $nonopt in
1130 NONE)
1131 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1132 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1133 fi ;;
1134 *) host_alias=$nonopt ;;
1135 esac ;;
1136 esac
1138 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1139 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1140 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1141 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1142 echo "$ac_t""$host" 1>&6
1144 echo $ac_n "checking target system type""... $ac_c" 1>&6
1145 echo "configure:1146: checking target system type" >&5
1147 target_alias=$target
1148 case "$target_alias" in
1149 NONE)
1150 case $nonopt in
1151 NONE) target_alias=$host_alias ;;
1152 *) target_alias=$nonopt ;;
1153 esac ;;
1154 esac
1156 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1157 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1158 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1159 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1160 echo "$ac_t""$target" 1>&6
1162 echo $ac_n "checking build system type""... $ac_c" 1>&6
1163 echo "configure:1164: checking build system type" >&5
1165 build_alias=$build
1166 case "$build_alias" in
1167 NONE)
1168 case $nonopt in
1169 NONE) build_alias=$host_alias ;;
1170 *) build_alias=$nonopt ;;
1171 esac ;;
1172 esac
1174 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1175 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1176 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1177 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1178 echo "$ac_t""$build" 1>&6
1180 test "$host_alias" != "$target_alias" &&
1181 test "$program_prefix$program_suffix$program_transform_name" = \
1182 NONENONEs,x,x, &&
1183 program_prefix=${target_alias}-
1186 case "$host_os" in
1187 *irix6*) cat >> confdefs.h <<\EOF
1188 #include <standards.h>
1192 esac
1196 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1197 echo "configure:1198: checking config.cache system type" >&5
1198 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1199 test x"$ac_cv_host_system_type" != x"$host"; } ||
1200 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1201 test x"$ac_cv_build_system_type" != x"$build"; } ||
1202 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1203 test x"$ac_cv_target_system_type" != x"$target"; }; then
1204 echo "$ac_t""different" 1>&6
1205 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1206 else
1207 echo "$ac_t""same" 1>&6
1209 ac_cv_host_system_type="$host"
1210 ac_cv_build_system_type="$build"
1211 ac_cv_target_system_type="$target"
1215 # Config CPPFLAG settings for strange OS's that must be set
1216 # before other tests.
1218 case "$host_os" in
1219 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1220 *hpux*)
1221 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${CC-cc} accepts -Ae" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1225 else
1226 echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1228 ac_cv_prog_cc_Ae=yes
1229 else
1230 ac_cv_prog_cc_Ae=no
1232 rm -f conftest*
1236 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1237 # mmap on HPUX is completely broken...
1238 cat >> confdefs.h <<\EOF
1239 #define MMAP_BLACKLIST 1
1242 if test $ac_cv_prog_cc_Ae = yes; then
1243 CPPFLAGS="$CPPFLAGS -Ae"
1246 # Defines needed for HPUX support.
1247 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1248 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1250 case `uname -r` in
1251 *9*|*10*)
1252 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1253 cat >> confdefs.h <<\EOF
1254 #define USE_BOTH_CRYPT_CALLS 1
1258 *11*)
1259 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1260 cat >> confdefs.h <<\EOF
1261 #define USE_BOTH_CRYPT_CALLS 1
1265 esac
1268 # AIX4.x doesn't even admit to having large
1269 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1271 *aix4*)
1272 echo "$ac_t""enabling large file support" 1>&6
1273 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1276 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1277 # to the existance of large files..
1278 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1279 # recommendations on large file support, however it makes the
1280 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1281 # recommendation makes the compile fail on gcc2.7. JRA.
1283 *solaris*)
1284 case `uname -r` in
1285 5.6*|5.7*)
1286 echo "$ac_t""enabling large file support" 1>&6
1287 if test "$ac_cv_prog_gcc" = yes; then
1288 ${CC-cc} -v >conftest.c 2>&1
1289 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1290 rm -fr conftest.c
1291 case "$ac_cv_gcc_compiler_version_number" in
1292 *"gcc version 2.6"*|*"gcc version 2.7"*)
1293 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1296 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1298 esac
1299 else
1300 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1303 esac
1306 # Tests needed for SINIX large file support.
1308 *sysv4*)
1309 if test $host = mips-sni-sysv4 ; then
1310 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1311 echo "configure:1312: checking for LFS support" >&5
1312 old_CPPFLAGS="$CPPFLAGS"
1313 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1314 if test "$cross_compiling" = yes; then
1315 SINIX_LFS_SUPPORT=cross
1316 else
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1321 #include <unistd.h>
1322 main () {
1323 #if _LFS64_LARGEFILE == 1
1324 exit(0);
1325 #else
1326 exit(1);
1327 #endif
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1331 then
1332 SINIX_LFS_SUPPORT=yes
1333 else
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336 rm -fr conftest*
1337 SINIX_LFS_SUPPORT=no
1339 rm -fr conftest*
1342 CPPFLAGS="$old_CPPFLAGS"
1343 if test x$SINIX_LFS_SUPPORT = xyes ; then
1344 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1345 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1346 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1347 LIBS="`getconf LFS64_LIBS` $LIBS"
1349 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1353 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1355 *linux*)
1356 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1357 echo "configure:1358: checking for LFS support" >&5
1358 old_CPPFLAGS="$CPPFLAGS"
1359 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1360 if test "$cross_compiling" = yes; then
1361 LINUX_LFS_SUPPORT=cross
1362 else
1363 cat > conftest.$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1367 #include <unistd.h>
1368 #include <sys/utsname.h>
1369 main() {
1370 #if _LFS64_LARGEFILE == 1
1371 struct utsname uts;
1372 char *release;
1373 int major, minor;
1375 /* Ensure this is glibc 2.2 or higher */
1376 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1377 int libc_major = __GLIBC__;
1378 int libc_minor = __GLIBC_MINOR__;
1380 if (libc_major < 2)
1381 exit(1);
1382 if (libc_minor < 2)
1383 exit(1);
1384 #endif
1386 /* Ensure this is kernel 2.4 or higher */
1388 uname(&uts);
1389 release = uts.release;
1390 major = atoi(strsep(&release, "."));
1391 minor = atoi(strsep(&release, "."));
1393 if (major > 2 || (major == 2 && minor > 3))
1394 exit(0);
1395 exit(1);
1396 #else
1397 exit(1);
1398 #endif
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1403 then
1404 LINUX_LFS_SUPPORT=yes
1405 else
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1408 rm -fr conftest*
1409 LINUX_LFS_SUPPORT=no
1411 rm -fr conftest*
1414 CPPFLAGS="$old_CPPFLAGS"
1415 if test x$LINUX_LFS_SUPPORT = xyes ; then
1416 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1418 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1421 *hurd*)
1422 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1423 echo "configure:1424: checking for LFS support" >&5
1424 old_CPPFLAGS="$CPPFLAGS"
1425 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1426 if test "$cross_compiling" = yes; then
1427 GLIBC_LFS_SUPPORT=cross
1428 else
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1433 #include <unistd.h>
1434 main () {
1435 #if _LFS64_LARGEFILE == 1
1436 exit(0);
1437 #else
1438 exit(1);
1439 #endif
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1443 then
1444 GLIBC_LFS_SUPPORT=yes
1445 else
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1448 rm -fr conftest*
1449 GLIBC_LFS_SUPPORT=no
1451 rm -fr conftest*
1454 CPPFLAGS="$old_CPPFLAGS"
1455 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1456 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1458 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1461 esac
1463 echo $ac_n "checking for inline""... $ac_c" 1>&6
1464 echo "configure:1465: checking for inline" >&5
1465 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1467 else
1468 ac_cv_c_inline=no
1469 for ac_kw in inline __inline__ __inline; do
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1474 int main() {
1475 } $ac_kw foo() {
1476 ; return 0; }
1478 if { (eval echo configure:1479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1479 rm -rf conftest*
1480 ac_cv_c_inline=$ac_kw; break
1481 else
1482 echo "configure: failed program was:" >&5
1483 cat conftest.$ac_ext >&5
1485 rm -f conftest*
1486 done
1490 echo "$ac_t""$ac_cv_c_inline" 1>&6
1491 case "$ac_cv_c_inline" in
1492 inline | yes) ;;
1493 no) cat >> confdefs.h <<\EOF
1494 #define inline
1497 *) cat >> confdefs.h <<EOF
1498 #define inline $ac_cv_c_inline
1501 esac
1503 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1504 echo "configure:1505: checking how to run the C preprocessor" >&5
1505 # On Suns, sometimes $CPP names a directory.
1506 if test -n "$CPP" && test -d "$CPP"; then
1507 CPP=
1509 if test -z "$CPP"; then
1510 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513 # This must be in double quotes, not single quotes, because CPP may get
1514 # substituted into the Makefile and "${CC-cc}" will confuse make.
1515 CPP="${CC-cc} -E"
1516 # On the NeXT, cc -E runs the code through the compiler's parser,
1517 # not just through cpp.
1518 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 #include <assert.h>
1522 Syntax Error
1524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1525 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1527 if test -z "$ac_err"; then
1529 else
1530 echo "$ac_err" >&5
1531 echo "configure: failed program was:" >&5
1532 cat conftest.$ac_ext >&5
1533 rm -rf conftest*
1534 CPP="${CC-cc} -E -traditional-cpp"
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 #include <assert.h>
1539 Syntax Error
1541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542 { (eval echo configure:1543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1544 if test -z "$ac_err"; then
1546 else
1547 echo "$ac_err" >&5
1548 echo "configure: failed program was:" >&5
1549 cat conftest.$ac_ext >&5
1550 rm -rf conftest*
1551 CPP="${CC-cc} -nologo -E"
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1555 #include <assert.h>
1556 Syntax Error
1558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1559 { (eval echo configure:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1561 if test -z "$ac_err"; then
1563 else
1564 echo "$ac_err" >&5
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1567 rm -rf conftest*
1568 CPP=/lib/cpp
1570 rm -f conftest*
1572 rm -f conftest*
1574 rm -f conftest*
1575 ac_cv_prog_CPP="$CPP"
1577 CPP="$ac_cv_prog_CPP"
1578 else
1579 ac_cv_prog_CPP="$CPP"
1581 echo "$ac_t""$CPP" 1>&6
1583 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1584 echo "configure:1585: checking for ANSI C header files" >&5
1585 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 #include <stdlib.h>
1592 #include <stdarg.h>
1593 #include <string.h>
1594 #include <float.h>
1596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1597 { (eval echo configure:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1599 if test -z "$ac_err"; then
1600 rm -rf conftest*
1601 ac_cv_header_stdc=yes
1602 else
1603 echo "$ac_err" >&5
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1606 rm -rf conftest*
1607 ac_cv_header_stdc=no
1609 rm -f conftest*
1611 if test $ac_cv_header_stdc = yes; then
1612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 #include <string.h>
1618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1619 egrep "memchr" >/dev/null 2>&1; then
1621 else
1622 rm -rf conftest*
1623 ac_cv_header_stdc=no
1625 rm -f conftest*
1629 if test $ac_cv_header_stdc = yes; then
1630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #include <stdlib.h>
1636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1637 egrep "free" >/dev/null 2>&1; then
1639 else
1640 rm -rf conftest*
1641 ac_cv_header_stdc=no
1643 rm -f conftest*
1647 if test $ac_cv_header_stdc = yes; then
1648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1649 if test "$cross_compiling" = yes; then
1651 else
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <ctype.h>
1656 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1657 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1659 int main () { int i; for (i = 0; i < 256; i++)
1660 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1661 exit (0); }
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1665 then
1667 else
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1670 rm -fr conftest*
1671 ac_cv_header_stdc=no
1673 rm -fr conftest*
1679 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1680 if test $ac_cv_header_stdc = yes; then
1681 cat >> confdefs.h <<\EOF
1682 #define STDC_HEADERS 1
1687 ac_header_dirent=no
1688 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1691 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1692 echo "configure:1693: checking for $ac_hdr that defines DIR" >&5
1693 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1695 else
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 #include <sys/types.h>
1700 #include <$ac_hdr>
1701 int main() {
1702 DIR *dirp = 0;
1703 ; return 0; }
1705 if { (eval echo configure:1706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1706 rm -rf conftest*
1707 eval "ac_cv_header_dirent_$ac_safe=yes"
1708 else
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 rm -rf conftest*
1712 eval "ac_cv_header_dirent_$ac_safe=no"
1714 rm -f conftest*
1716 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1719 cat >> confdefs.h <<EOF
1720 #define $ac_tr_hdr 1
1722 ac_header_dirent=$ac_hdr; break
1723 else
1724 echo "$ac_t""no" 1>&6
1726 done
1727 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1728 if test $ac_header_dirent = dirent.h; then
1729 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1730 echo "configure:1731: checking for opendir in -ldir" >&5
1731 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1734 else
1735 ac_save_LIBS="$LIBS"
1736 LIBS="-ldir $LIBS"
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 /* Override any gcc2 internal prototype to avoid an error. */
1741 /* We use char because int might match the return type of a gcc2
1742 builtin and then its argument prototype would still apply. */
1743 char opendir();
1745 int main() {
1746 opendir()
1747 ; return 0; }
1749 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 rm -rf conftest*
1751 eval "ac_cv_lib_$ac_lib_var=yes"
1752 else
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1755 rm -rf conftest*
1756 eval "ac_cv_lib_$ac_lib_var=no"
1758 rm -f conftest*
1759 LIBS="$ac_save_LIBS"
1762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1763 echo "$ac_t""yes" 1>&6
1764 LIBS="$LIBS -ldir"
1765 else
1766 echo "$ac_t""no" 1>&6
1769 else
1770 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1771 echo "configure:1772: checking for opendir in -lx" >&5
1772 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776 ac_save_LIBS="$LIBS"
1777 LIBS="-lx $LIBS"
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1781 /* Override any gcc2 internal prototype to avoid an error. */
1782 /* We use char because int might match the return type of a gcc2
1783 builtin and then its argument prototype would still apply. */
1784 char opendir();
1786 int main() {
1787 opendir()
1788 ; return 0; }
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1791 rm -rf conftest*
1792 eval "ac_cv_lib_$ac_lib_var=yes"
1793 else
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1796 rm -rf conftest*
1797 eval "ac_cv_lib_$ac_lib_var=no"
1799 rm -f conftest*
1800 LIBS="$ac_save_LIBS"
1803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1804 echo "$ac_t""yes" 1>&6
1805 LIBS="$LIBS -lx"
1806 else
1807 echo "$ac_t""no" 1>&6
1812 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether time.h and sys/time.h may both be included" >&5
1814 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1816 else
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1820 #include <sys/types.h>
1821 #include <sys/time.h>
1822 #include <time.h>
1823 int main() {
1824 struct tm *tp;
1825 ; return 0; }
1827 if { (eval echo configure:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1828 rm -rf conftest*
1829 ac_cv_header_time=yes
1830 else
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1833 rm -rf conftest*
1834 ac_cv_header_time=no
1836 rm -f conftest*
1839 echo "$ac_t""$ac_cv_header_time" 1>&6
1840 if test $ac_cv_header_time = yes; then
1841 cat >> confdefs.h <<\EOF
1842 #define TIME_WITH_SYS_TIME 1
1847 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1848 echo "configure:1849: checking for sys/wait.h that is POSIX.1 compatible" >&5
1849 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1855 #include <sys/types.h>
1856 #include <sys/wait.h>
1857 #ifndef WEXITSTATUS
1858 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1859 #endif
1860 #ifndef WIFEXITED
1861 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1862 #endif
1863 int main() {
1864 int s;
1865 wait (&s);
1866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1867 ; return 0; }
1869 if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1870 rm -rf conftest*
1871 ac_cv_header_sys_wait_h=yes
1872 else
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1875 rm -rf conftest*
1876 ac_cv_header_sys_wait_h=no
1878 rm -f conftest*
1881 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1882 if test $ac_cv_header_sys_wait_h = yes; then
1883 cat >> confdefs.h <<\EOF
1884 #define HAVE_SYS_WAIT_H 1
1889 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1893 echo "configure:1894: checking for $ac_hdr" >&5
1894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1896 else
1897 cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1900 #include <$ac_hdr>
1902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1903 { (eval echo configure:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1905 if test -z "$ac_err"; then
1906 rm -rf conftest*
1907 eval "ac_cv_header_$ac_safe=yes"
1908 else
1909 echo "$ac_err" >&5
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1912 rm -rf conftest*
1913 eval "ac_cv_header_$ac_safe=no"
1915 rm -f conftest*
1917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1918 echo "$ac_t""yes" 1>&6
1919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1920 cat >> confdefs.h <<EOF
1921 #define $ac_tr_hdr 1
1924 else
1925 echo "$ac_t""no" 1>&6
1927 done
1929 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1933 echo "configure:1934: checking for $ac_hdr" >&5
1934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936 else
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 #include <$ac_hdr>
1942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1943 { (eval echo configure:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1945 if test -z "$ac_err"; then
1946 rm -rf conftest*
1947 eval "ac_cv_header_$ac_safe=yes"
1948 else
1949 echo "$ac_err" >&5
1950 echo "configure: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1952 rm -rf conftest*
1953 eval "ac_cv_header_$ac_safe=no"
1955 rm -f conftest*
1957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1960 cat >> confdefs.h <<EOF
1961 #define $ac_tr_hdr 1
1964 else
1965 echo "$ac_t""no" 1>&6
1967 done
1969 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1973 echo "configure:1974: checking for $ac_hdr" >&5
1974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1976 else
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 #include <$ac_hdr>
1982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1983 { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1985 if test -z "$ac_err"; then
1986 rm -rf conftest*
1987 eval "ac_cv_header_$ac_safe=yes"
1988 else
1989 echo "$ac_err" >&5
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1992 rm -rf conftest*
1993 eval "ac_cv_header_$ac_safe=no"
1995 rm -f conftest*
1997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
1999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2000 cat >> confdefs.h <<EOF
2001 #define $ac_tr_hdr 1
2004 else
2005 echo "$ac_t""no" 1>&6
2007 done
2009 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2013 echo "configure:2014: checking for $ac_hdr" >&5
2014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2016 else
2017 cat > conftest.$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2020 #include <$ac_hdr>
2022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2023 { (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2025 if test -z "$ac_err"; then
2026 rm -rf conftest*
2027 eval "ac_cv_header_$ac_safe=yes"
2028 else
2029 echo "$ac_err" >&5
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 rm -rf conftest*
2033 eval "ac_cv_header_$ac_safe=no"
2035 rm -f conftest*
2037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2038 echo "$ac_t""yes" 1>&6
2039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2040 cat >> confdefs.h <<EOF
2041 #define $ac_tr_hdr 1
2044 else
2045 echo "$ac_t""no" 1>&6
2047 done
2049 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
2051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2053 echo "configure:2054: checking for $ac_hdr" >&5
2054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2056 else
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2060 #include <$ac_hdr>
2062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2063 { (eval echo configure:2064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2065 if test -z "$ac_err"; then
2066 rm -rf conftest*
2067 eval "ac_cv_header_$ac_safe=yes"
2068 else
2069 echo "$ac_err" >&5
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2072 rm -rf conftest*
2073 eval "ac_cv_header_$ac_safe=no"
2075 rm -f conftest*
2077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2078 echo "$ac_t""yes" 1>&6
2079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2080 cat >> confdefs.h <<EOF
2081 #define $ac_tr_hdr 1
2084 else
2085 echo "$ac_t""no" 1>&6
2087 done
2089 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2093 echo "configure:2094: checking for $ac_hdr" >&5
2094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2096 else
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2100 #include <$ac_hdr>
2102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2103 { (eval echo configure:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2105 if test -z "$ac_err"; then
2106 rm -rf conftest*
2107 eval "ac_cv_header_$ac_safe=yes"
2108 else
2109 echo "$ac_err" >&5
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2112 rm -rf conftest*
2113 eval "ac_cv_header_$ac_safe=no"
2115 rm -f conftest*
2117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2118 echo "$ac_t""yes" 1>&6
2119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2120 cat >> confdefs.h <<EOF
2121 #define $ac_tr_hdr 1
2124 else
2125 echo "$ac_t""no" 1>&6
2127 done
2129 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_hdr" >&5
2134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2136 else
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 #include <$ac_hdr>
2142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2143 { (eval echo configure:2144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2145 if test -z "$ac_err"; then
2146 rm -rf conftest*
2147 eval "ac_cv_header_$ac_safe=yes"
2148 else
2149 echo "$ac_err" >&5
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2152 rm -rf conftest*
2153 eval "ac_cv_header_$ac_safe=no"
2155 rm -f conftest*
2157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2158 echo "$ac_t""yes" 1>&6
2159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2160 cat >> confdefs.h <<EOF
2161 #define $ac_tr_hdr 1
2164 else
2165 echo "$ac_t""no" 1>&6
2167 done
2169 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2173 echo "configure:2174: checking for $ac_hdr" >&5
2174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2176 else
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2180 #include <$ac_hdr>
2182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2183 { (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2185 if test -z "$ac_err"; then
2186 rm -rf conftest*
2187 eval "ac_cv_header_$ac_safe=yes"
2188 else
2189 echo "$ac_err" >&5
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2192 rm -rf conftest*
2193 eval "ac_cv_header_$ac_safe=no"
2195 rm -f conftest*
2197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2198 echo "$ac_t""yes" 1>&6
2199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2200 cat >> confdefs.h <<EOF
2201 #define $ac_tr_hdr 1
2204 else
2205 echo "$ac_t""no" 1>&6
2207 done
2211 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2212 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2214 case "$host_os" in
2215 *hpux*)
2216 cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2219 #include <shadow.h>
2220 int main() {
2221 struct spwd testme
2222 ; return 0; }
2224 if { (eval echo configure:2225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2225 rm -rf conftest*
2226 ac_cv_header_shadow_h=yes
2227 else
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2230 rm -rf conftest*
2231 ac_cv_header_shadow_h=no
2233 rm -f conftest*
2234 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2235 cat >> confdefs.h <<\EOF
2236 #define HAVE_SHADOW_H 1
2241 esac
2242 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_hdr" >&5
2247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2253 #include <$ac_hdr>
2255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256 { (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2258 if test -z "$ac_err"; then
2259 rm -rf conftest*
2260 eval "ac_cv_header_$ac_safe=yes"
2261 else
2262 echo "$ac_err" >&5
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2265 rm -rf conftest*
2266 eval "ac_cv_header_$ac_safe=no"
2268 rm -f conftest*
2270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2273 cat >> confdefs.h <<EOF
2274 #define $ac_tr_hdr 1
2277 else
2278 echo "$ac_t""no" 1>&6
2280 done
2282 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2286 echo "configure:2287: checking for $ac_hdr" >&5
2287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2289 else
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 #include <$ac_hdr>
2295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2296 { (eval echo configure:2297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2298 if test -z "$ac_err"; then
2299 rm -rf conftest*
2300 eval "ac_cv_header_$ac_safe=yes"
2301 else
2302 echo "$ac_err" >&5
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2305 rm -rf conftest*
2306 eval "ac_cv_header_$ac_safe=no"
2308 rm -f conftest*
2310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2313 cat >> confdefs.h <<EOF
2314 #define $ac_tr_hdr 1
2317 else
2318 echo "$ac_t""no" 1>&6
2320 done
2322 for ac_hdr in stropts.h poll.h
2324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_hdr" >&5
2327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <$ac_hdr>
2335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2336 { (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2338 if test -z "$ac_err"; then
2339 rm -rf conftest*
2340 eval "ac_cv_header_$ac_safe=yes"
2341 else
2342 echo "$ac_err" >&5
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2345 rm -rf conftest*
2346 eval "ac_cv_header_$ac_safe=no"
2348 rm -f conftest*
2350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2351 echo "$ac_t""yes" 1>&6
2352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2353 cat >> confdefs.h <<EOF
2354 #define $ac_tr_hdr 1
2357 else
2358 echo "$ac_t""no" 1>&6
2360 done
2362 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_hdr" >&5
2367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2369 else
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 #include <$ac_hdr>
2375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2376 { (eval echo configure:2377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2378 if test -z "$ac_err"; then
2379 rm -rf conftest*
2380 eval "ac_cv_header_$ac_safe=yes"
2381 else
2382 echo "$ac_err" >&5
2383 echo "configure: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2385 rm -rf conftest*
2386 eval "ac_cv_header_$ac_safe=no"
2388 rm -f conftest*
2390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2391 echo "$ac_t""yes" 1>&6
2392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2393 cat >> confdefs.h <<EOF
2394 #define $ac_tr_hdr 1
2397 else
2398 echo "$ac_t""no" 1>&6
2400 done
2402 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2406 echo "configure:2407: checking for $ac_hdr" >&5
2407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2409 else
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 #include <$ac_hdr>
2415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2416 { (eval echo configure:2417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2418 if test -z "$ac_err"; then
2419 rm -rf conftest*
2420 eval "ac_cv_header_$ac_safe=yes"
2421 else
2422 echo "$ac_err" >&5
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 rm -rf conftest*
2426 eval "ac_cv_header_$ac_safe=no"
2428 rm -f conftest*
2430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2431 echo "$ac_t""yes" 1>&6
2432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2433 cat >> confdefs.h <<EOF
2434 #define $ac_tr_hdr 1
2437 else
2438 echo "$ac_t""no" 1>&6
2440 done
2443 # For experimental utmp support (lastlog on some BSD-like systems)
2444 for ac_hdr in utmp.h utmpx.h lastlog.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
2485 # For quotas on Veritas VxFS filesystems
2486 for ac_hdr in sys/fs/vx_quota.h
2488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_hdr" >&5
2491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 #include <$ac_hdr>
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2503 rm -rf conftest*
2504 eval "ac_cv_header_$ac_safe=yes"
2505 else
2506 echo "$ac_err" >&5
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2509 rm -rf conftest*
2510 eval "ac_cv_header_$ac_safe=no"
2512 rm -f conftest*
2514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2517 cat >> confdefs.h <<EOF
2518 #define $ac_tr_hdr 1
2521 else
2522 echo "$ac_t""no" 1>&6
2524 done
2527 echo $ac_n "checking size of int""... $ac_c" 1>&6
2528 echo "configure:2529: checking size of int" >&5
2529 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2531 else
2532 if test "$cross_compiling" = yes; then
2533 ac_cv_sizeof_int=cross
2534 else
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <stdio.h>
2539 main()
2541 FILE *f=fopen("conftestval", "w");
2542 if (!f) exit(1);
2543 fprintf(f, "%d\n", sizeof(int));
2544 exit(0);
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2548 then
2549 ac_cv_sizeof_int=`cat conftestval`
2550 else
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 rm -fr conftest*
2554 ac_cv_sizeof_int=0
2556 rm -fr conftest*
2560 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2561 cat >> confdefs.h <<EOF
2562 #define SIZEOF_INT $ac_cv_sizeof_int
2566 echo $ac_n "checking size of long""... $ac_c" 1>&6
2567 echo "configure:2568: checking size of long" >&5
2568 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2570 else
2571 if test "$cross_compiling" = yes; then
2572 ac_cv_sizeof_long=cross
2573 else
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <stdio.h>
2578 main()
2580 FILE *f=fopen("conftestval", "w");
2581 if (!f) exit(1);
2582 fprintf(f, "%d\n", sizeof(long));
2583 exit(0);
2586 if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2587 then
2588 ac_cv_sizeof_long=`cat conftestval`
2589 else
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 rm -fr conftest*
2593 ac_cv_sizeof_long=0
2595 rm -fr conftest*
2599 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2600 cat >> confdefs.h <<EOF
2601 #define SIZEOF_LONG $ac_cv_sizeof_long
2605 echo $ac_n "checking size of short""... $ac_c" 1>&6
2606 echo "configure:2607: checking size of short" >&5
2607 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2609 else
2610 if test "$cross_compiling" = yes; then
2611 ac_cv_sizeof_short=cross
2612 else
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 #include <stdio.h>
2617 main()
2619 FILE *f=fopen("conftestval", "w");
2620 if (!f) exit(1);
2621 fprintf(f, "%d\n", sizeof(short));
2622 exit(0);
2625 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2626 then
2627 ac_cv_sizeof_short=`cat conftestval`
2628 else
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 rm -fr conftest*
2632 ac_cv_sizeof_short=0
2634 rm -fr conftest*
2638 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2639 cat >> confdefs.h <<EOF
2640 #define SIZEOF_SHORT $ac_cv_sizeof_short
2645 echo $ac_n "checking for working const""... $ac_c" 1>&6
2646 echo "configure:2647: checking for working const" >&5
2647 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2649 else
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2654 int main() {
2656 /* Ultrix mips cc rejects this. */
2657 typedef int charset[2]; const charset x;
2658 /* SunOS 4.1.1 cc rejects this. */
2659 char const *const *ccp;
2660 char **p;
2661 /* NEC SVR4.0.2 mips cc rejects this. */
2662 struct point {int x, y;};
2663 static struct point const zero = {0,0};
2664 /* AIX XL C 1.02.0.0 rejects this.
2665 It does not let you subtract one const X* pointer from another in an arm
2666 of an if-expression whose if-part is not a constant expression */
2667 const char *g = "string";
2668 ccp = &g + (g ? g-g : 0);
2669 /* HPUX 7.0 cc rejects these. */
2670 ++ccp;
2671 p = (char**) ccp;
2672 ccp = (char const *const *) p;
2673 { /* SCO 3.2v4 cc rejects this. */
2674 char *t;
2675 char const *s = 0 ? (char *) 0 : (char const *) 0;
2677 *t++ = 0;
2679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2680 int x[] = {25, 17};
2681 const int *foo = &x[0];
2682 ++foo;
2684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2685 typedef const int *iptr;
2686 iptr p = 0;
2687 ++p;
2689 { /* AIX XL C 1.02.0.0 rejects this saying
2690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2691 struct s { int j; const int *ap[3]; };
2692 struct s *b; b->j = 5;
2694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2695 const int foo = 10;
2698 ; return 0; }
2700 if { (eval echo configure:2701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2701 rm -rf conftest*
2702 ac_cv_c_const=yes
2703 else
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 rm -rf conftest*
2707 ac_cv_c_const=no
2709 rm -f conftest*
2712 echo "$ac_t""$ac_cv_c_const" 1>&6
2713 if test $ac_cv_c_const = no; then
2714 cat >> confdefs.h <<\EOF
2715 #define const
2720 echo $ac_n "checking for inline""... $ac_c" 1>&6
2721 echo "configure:2722: checking for inline" >&5
2722 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2724 else
2725 ac_cv_c_inline=no
2726 for ac_kw in inline __inline__ __inline; do
2727 cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2731 int main() {
2732 } $ac_kw foo() {
2733 ; return 0; }
2735 if { (eval echo configure:2736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2736 rm -rf conftest*
2737 ac_cv_c_inline=$ac_kw; break
2738 else
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2742 rm -f conftest*
2743 done
2747 echo "$ac_t""$ac_cv_c_inline" 1>&6
2748 case "$ac_cv_c_inline" in
2749 inline | yes) ;;
2750 no) cat >> confdefs.h <<\EOF
2751 #define inline
2754 *) cat >> confdefs.h <<EOF
2755 #define inline $ac_cv_c_inline
2758 esac
2760 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2761 echo "configure:2762: checking whether byte ordering is bigendian" >&5
2762 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2764 else
2765 ac_cv_c_bigendian=unknown
2766 # See if sys/param.h defines the BYTE_ORDER macro.
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 #include <sys/types.h>
2771 #include <sys/param.h>
2772 int main() {
2774 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2775 bogus endian macros
2776 #endif
2777 ; return 0; }
2779 if { (eval echo configure:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2780 rm -rf conftest*
2781 # It does; now see whether it defined to BIG_ENDIAN or not.
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 #include <sys/types.h>
2786 #include <sys/param.h>
2787 int main() {
2789 #if BYTE_ORDER != BIG_ENDIAN
2790 not big endian
2791 #endif
2792 ; return 0; }
2794 if { (eval echo configure:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2795 rm -rf conftest*
2796 ac_cv_c_bigendian=yes
2797 else
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2800 rm -rf conftest*
2801 ac_cv_c_bigendian=no
2803 rm -f conftest*
2804 else
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2808 rm -f conftest*
2809 if test $ac_cv_c_bigendian = unknown; then
2810 if test "$cross_compiling" = yes; then
2811 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2812 else
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 main () {
2817 /* Are we little or big endian? From Harbison&Steele. */
2818 union
2820 long l;
2821 char c[sizeof (long)];
2822 } u;
2823 u.l = 1;
2824 exit (u.c[sizeof (long) - 1] == 1);
2827 if { (eval echo configure:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2828 then
2829 ac_cv_c_bigendian=no
2830 else
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2833 rm -fr conftest*
2834 ac_cv_c_bigendian=yes
2836 rm -fr conftest*
2842 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2843 if test $ac_cv_c_bigendian = yes; then
2844 cat >> confdefs.h <<\EOF
2845 #define WORDS_BIGENDIAN 1
2850 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2851 echo "configure:2852: checking whether char is unsigned" >&5
2852 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2854 else
2855 if test "$GCC" = yes; then
2856 # GCC predefines this symbol on systems where it applies.
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2860 #ifdef __CHAR_UNSIGNED__
2862 #endif
2865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2866 egrep "yes" >/dev/null 2>&1; then
2867 rm -rf conftest*
2868 ac_cv_c_char_unsigned=yes
2869 else
2870 rm -rf conftest*
2871 ac_cv_c_char_unsigned=no
2873 rm -f conftest*
2875 else
2876 if test "$cross_compiling" = yes; then
2877 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2878 else
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2882 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2883 #if !defined(__STDC__) || __STDC__ != 1
2884 #define volatile
2885 #endif
2886 main() {
2887 volatile char c = 255; exit(c < 0);
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2891 then
2892 ac_cv_c_char_unsigned=yes
2893 else
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 rm -fr conftest*
2897 ac_cv_c_char_unsigned=no
2899 rm -fr conftest*
2905 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2906 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2907 cat >> confdefs.h <<\EOF
2908 #define __CHAR_UNSIGNED__ 1
2914 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2915 echo "configure:2916: checking return type of signal handlers" >&5
2916 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2918 else
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 #include <sys/types.h>
2923 #include <signal.h>
2924 #ifdef signal
2925 #undef signal
2926 #endif
2927 #ifdef __cplusplus
2928 extern "C" void (*signal (int, void (*)(int)))(int);
2929 #else
2930 void (*signal ()) ();
2931 #endif
2933 int main() {
2934 int i;
2935 ; return 0; }
2937 if { (eval echo configure:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2938 rm -rf conftest*
2939 ac_cv_type_signal=void
2940 else
2941 echo "configure: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2943 rm -rf conftest*
2944 ac_cv_type_signal=int
2946 rm -f conftest*
2949 echo "$ac_t""$ac_cv_type_signal" 1>&6
2950 cat >> confdefs.h <<EOF
2951 #define RETSIGTYPE $ac_cv_type_signal
2955 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2956 echo "configure:2957: checking for uid_t in sys/types.h" >&5
2957 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <sys/types.h>
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 egrep "uid_t" >/dev/null 2>&1; then
2967 rm -rf conftest*
2968 ac_cv_type_uid_t=yes
2969 else
2970 rm -rf conftest*
2971 ac_cv_type_uid_t=no
2973 rm -f conftest*
2977 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2978 if test $ac_cv_type_uid_t = no; then
2979 cat >> confdefs.h <<\EOF
2980 #define uid_t int
2983 cat >> confdefs.h <<\EOF
2984 #define gid_t int
2989 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2990 echo "configure:2991: checking for mode_t" >&5
2991 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2993 else
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 #include <sys/types.h>
2998 #if STDC_HEADERS
2999 #include <stdlib.h>
3000 #include <stddef.h>
3001 #endif
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3005 rm -rf conftest*
3006 ac_cv_type_mode_t=yes
3007 else
3008 rm -rf conftest*
3009 ac_cv_type_mode_t=no
3011 rm -f conftest*
3014 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3015 if test $ac_cv_type_mode_t = no; then
3016 cat >> confdefs.h <<\EOF
3017 #define mode_t int
3022 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3023 echo "configure:3024: checking for off_t" >&5
3024 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3026 else
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 #include <sys/types.h>
3031 #if STDC_HEADERS
3032 #include <stdlib.h>
3033 #include <stddef.h>
3034 #endif
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3038 rm -rf conftest*
3039 ac_cv_type_off_t=yes
3040 else
3041 rm -rf conftest*
3042 ac_cv_type_off_t=no
3044 rm -f conftest*
3047 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3048 if test $ac_cv_type_off_t = no; then
3049 cat >> confdefs.h <<\EOF
3050 #define off_t long
3055 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3056 echo "configure:3057: checking for size_t" >&5
3057 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 #include <sys/types.h>
3064 #if STDC_HEADERS
3065 #include <stdlib.h>
3066 #include <stddef.h>
3067 #endif
3069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3070 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3071 rm -rf conftest*
3072 ac_cv_type_size_t=yes
3073 else
3074 rm -rf conftest*
3075 ac_cv_type_size_t=no
3077 rm -f conftest*
3080 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3081 if test $ac_cv_type_size_t = no; then
3082 cat >> confdefs.h <<\EOF
3083 #define size_t unsigned
3088 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3089 echo "configure:3090: checking for pid_t" >&5
3090 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3092 else
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 #include <sys/types.h>
3097 #if STDC_HEADERS
3098 #include <stdlib.h>
3099 #include <stddef.h>
3100 #endif
3102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3103 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3104 rm -rf conftest*
3105 ac_cv_type_pid_t=yes
3106 else
3107 rm -rf conftest*
3108 ac_cv_type_pid_t=no
3110 rm -f conftest*
3113 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3114 if test $ac_cv_type_pid_t = no; then
3115 cat >> confdefs.h <<\EOF
3116 #define pid_t int
3121 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3122 echo "configure:3123: checking for st_rdev in struct stat" >&5
3123 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3125 else
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 int main() {
3132 struct stat s; s.st_rdev;
3133 ; return 0; }
3135 if { (eval echo configure:3136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3136 rm -rf conftest*
3137 ac_cv_struct_st_rdev=yes
3138 else
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 rm -rf conftest*
3142 ac_cv_struct_st_rdev=no
3144 rm -f conftest*
3147 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3148 if test $ac_cv_struct_st_rdev = yes; then
3149 cat >> confdefs.h <<\EOF
3150 #define HAVE_ST_RDEV 1
3155 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3156 echo "configure:3157: checking for d_off in dirent" >&5
3157 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3159 else
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3164 #include <unistd.h>
3165 #include <sys/types.h>
3166 #include <dirent.h>
3167 int main() {
3168 struct dirent d; d.d_off;
3169 ; return 0; }
3171 if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172 rm -rf conftest*
3173 ac_cv_dirent_d_off=yes
3174 else
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3177 rm -rf conftest*
3178 ac_cv_dirent_d_off=no
3180 rm -f conftest*
3183 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3184 if test $ac_cv_dirent_d_off = yes; then
3185 cat >> confdefs.h <<\EOF
3186 #define HAVE_DIRENT_D_OFF 1
3191 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3192 echo "configure:3193: checking for ino_t" >&5
3193 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3195 else
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <sys/types.h>
3200 #if STDC_HEADERS
3201 #include <stdlib.h>
3202 #include <stddef.h>
3203 #endif
3205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3206 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3207 rm -rf conftest*
3208 ac_cv_type_ino_t=yes
3209 else
3210 rm -rf conftest*
3211 ac_cv_type_ino_t=no
3213 rm -f conftest*
3216 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3217 if test $ac_cv_type_ino_t = no; then
3218 cat >> confdefs.h <<\EOF
3219 #define ino_t unsigned
3224 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3225 echo "configure:3226: checking for loff_t" >&5
3226 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3228 else
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <sys/types.h>
3233 #if STDC_HEADERS
3234 #include <stdlib.h>
3235 #include <stddef.h>
3236 #endif
3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3239 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3240 rm -rf conftest*
3241 ac_cv_type_loff_t=yes
3242 else
3243 rm -rf conftest*
3244 ac_cv_type_loff_t=no
3246 rm -f conftest*
3249 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3250 if test $ac_cv_type_loff_t = no; then
3251 cat >> confdefs.h <<\EOF
3252 #define loff_t off_t
3257 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3258 echo "configure:3259: checking for offset_t" >&5
3259 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3261 else
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <sys/types.h>
3266 #if STDC_HEADERS
3267 #include <stdlib.h>
3268 #include <stddef.h>
3269 #endif
3271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3272 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3273 rm -rf conftest*
3274 ac_cv_type_offset_t=yes
3275 else
3276 rm -rf conftest*
3277 ac_cv_type_offset_t=no
3279 rm -f conftest*
3282 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3283 if test $ac_cv_type_offset_t = no; then
3284 cat >> confdefs.h <<\EOF
3285 #define offset_t loff_t
3290 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3291 echo "configure:3292: checking for ssize_t" >&5
3292 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3294 else
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 #include <sys/types.h>
3299 #if STDC_HEADERS
3300 #include <stdlib.h>
3301 #include <stddef.h>
3302 #endif
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3306 rm -rf conftest*
3307 ac_cv_type_ssize_t=yes
3308 else
3309 rm -rf conftest*
3310 ac_cv_type_ssize_t=no
3312 rm -f conftest*
3315 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3316 if test $ac_cv_type_ssize_t = no; then
3317 cat >> confdefs.h <<\EOF
3318 #define ssize_t int
3323 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3324 echo "configure:3325: checking for wchar_t" >&5
3325 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3327 else
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 #include <sys/types.h>
3332 #if STDC_HEADERS
3333 #include <stdlib.h>
3334 #include <stddef.h>
3335 #endif
3337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3338 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3339 rm -rf conftest*
3340 ac_cv_type_wchar_t=yes
3341 else
3342 rm -rf conftest*
3343 ac_cv_type_wchar_t=no
3345 rm -f conftest*
3348 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3349 if test $ac_cv_type_wchar_t = no; then
3350 cat >> confdefs.h <<\EOF
3351 #define wchar_t unsigned short
3357 # we need libcups for CUPS support...
3358 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3359 echo "configure:3360: checking for httpConnect in -lcups" >&5
3360 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 ac_save_LIBS="$LIBS"
3365 LIBS="-lcups $LIBS"
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 /* Override any gcc2 internal prototype to avoid an error. */
3370 /* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3372 char httpConnect();
3374 int main() {
3375 httpConnect()
3376 ; return 0; }
3378 if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3379 rm -rf conftest*
3380 eval "ac_cv_lib_$ac_lib_var=yes"
3381 else
3382 echo "configure: failed program was:" >&5
3383 cat conftest.$ac_ext >&5
3384 rm -rf conftest*
3385 eval "ac_cv_lib_$ac_lib_var=no"
3387 rm -f conftest*
3388 LIBS="$ac_save_LIBS"
3391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3395 cat >> confdefs.h <<EOF
3396 #define $ac_tr_lib 1
3399 LIBS="-lcups $LIBS"
3401 else
3402 echo "$ac_t""no" 1>&6
3406 # we need libdl for PAM and the new VFS code
3407 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3408 echo "configure:3409: checking for dlopen in -ldl" >&5
3409 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3412 else
3413 ac_save_LIBS="$LIBS"
3414 LIBS="-ldl $LIBS"
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 /* Override any gcc2 internal prototype to avoid an error. */
3419 /* We use char because int might match the return type of a gcc2
3420 builtin and then its argument prototype would still apply. */
3421 char dlopen();
3423 int main() {
3424 dlopen()
3425 ; return 0; }
3427 if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3428 rm -rf conftest*
3429 eval "ac_cv_lib_$ac_lib_var=yes"
3430 else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -rf conftest*
3434 eval "ac_cv_lib_$ac_lib_var=no"
3436 rm -f conftest*
3437 LIBS="$ac_save_LIBS"
3440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 LIBS="$LIBS -ldl";
3443 cat >> confdefs.h <<\EOF
3444 #define HAVE_LIBDL 1
3447 else
3448 echo "$ac_t""no" 1>&6
3452 ############################################
3453 # check for unix domain sockets
3454 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3455 echo "configure:3456: checking for unix domain sockets" >&5
3456 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3458 else
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3464 #include <sys/types.h>
3465 #include <stdlib.h>
3466 #include <stddef.h>
3467 #include <sys/socket.h>
3468 #include <sys/un.h>
3469 int main() {
3471 struct sockaddr_un sunaddr;
3472 sunaddr.sun_family = AF_UNIX;
3474 ; return 0; }
3476 if { (eval echo configure:3477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 rm -rf conftest*
3478 samba_cv_unixsocket=yes
3479 else
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3482 rm -rf conftest*
3483 samba_cv_unixsocket=no
3485 rm -f conftest*
3488 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3489 if test x"$samba_cv_unixsocket" = x"yes"; then
3490 cat >> confdefs.h <<\EOF
3491 #define HAVE_UNIXSOCKET 1
3497 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3498 echo "configure:3499: checking for socklen_t type" >&5
3499 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3501 else
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3507 #include <sys/types.h>
3508 #if STDC_HEADERS
3509 #include <stdlib.h>
3510 #include <stddef.h>
3511 #endif
3512 #include <sys/socket.h>
3513 int main() {
3514 socklen_t i = 0
3515 ; return 0; }
3517 if { (eval echo configure:3518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 rm -rf conftest*
3519 samba_cv_socklen_t=yes
3520 else
3521 echo "configure: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3523 rm -rf conftest*
3524 samba_cv_socklen_t=no
3526 rm -f conftest*
3529 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3530 if test x"$samba_cv_socklen_t" = x"yes"; then
3531 cat >> confdefs.h <<\EOF
3532 #define HAVE_SOCKLEN_T_TYPE 1
3537 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3538 echo "configure:3539: checking for sig_atomic_t type" >&5
3539 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3541 else
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3547 #include <sys/types.h>
3548 #if STDC_HEADERS
3549 #include <stdlib.h>
3550 #include <stddef.h>
3551 #endif
3552 #include <signal.h>
3553 int main() {
3554 sig_atomic_t i = 0
3555 ; return 0; }
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3558 rm -rf conftest*
3559 samba_cv_sig_atomic_t=yes
3560 else
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3563 rm -rf conftest*
3564 samba_cv_sig_atomic_t=no
3566 rm -f conftest*
3569 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3570 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3571 cat >> confdefs.h <<\EOF
3572 #define HAVE_SIG_ATOMIC_T_TYPE 1
3577 # stupid headers have the functions but no declaration. grrrr.
3579 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3580 echo "configure:3581: checking for errno declaration" >&5
3581 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3583 else
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <errno.h>
3589 int main() {
3590 int i = (int)errno
3591 ; return 0; }
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594 rm -rf conftest*
3595 ac_cv_have_errno_decl=yes
3596 else
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 rm -rf conftest*
3600 ac_cv_have_errno_decl=no
3602 rm -f conftest*
3605 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3606 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3607 cat >> confdefs.h <<\EOF
3608 #define HAVE_ERRNO_DECL 1
3614 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3615 echo "configure:3616: checking for setresuid declaration" >&5
3616 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3618 else
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 #include <unistd.h>
3624 int main() {
3625 int i = (int)setresuid
3626 ; return 0; }
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 rm -rf conftest*
3630 ac_cv_have_setresuid_decl=yes
3631 else
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3634 rm -rf conftest*
3635 ac_cv_have_setresuid_decl=no
3637 rm -f conftest*
3640 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3641 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3642 cat >> confdefs.h <<\EOF
3643 #define HAVE_SETRESUID_DECL 1
3649 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3650 echo "configure:3651: checking for setresgid declaration" >&5
3651 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3653 else
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 #include <unistd.h>
3659 int main() {
3660 int i = (int)setresgid
3661 ; return 0; }
3663 if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3664 rm -rf conftest*
3665 ac_cv_have_setresgid_decl=yes
3666 else
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 rm -rf conftest*
3670 ac_cv_have_setresgid_decl=no
3672 rm -f conftest*
3675 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3676 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3677 cat >> confdefs.h <<\EOF
3678 #define HAVE_SETRESGID_DECL 1
3684 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3685 echo "configure:3686: checking for asprintf declaration" >&5
3686 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3688 else
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 #include <stdio.h>
3694 int main() {
3695 int i = (int)asprintf
3696 ; return 0; }
3698 if { (eval echo configure:3699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3699 rm -rf conftest*
3700 ac_cv_have_asprintf_decl=yes
3701 else
3702 echo "configure: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3704 rm -rf conftest*
3705 ac_cv_have_asprintf_decl=no
3707 rm -f conftest*
3710 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3711 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3712 cat >> confdefs.h <<\EOF
3713 #define HAVE_ASPRINTF_DECL 1
3719 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3720 echo "configure:3721: checking for vasprintf declaration" >&5
3721 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3723 else
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 #include <stdio.h>
3729 int main() {
3730 int i = (int)vasprintf
3731 ; return 0; }
3733 if { (eval echo configure:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734 rm -rf conftest*
3735 ac_cv_have_vasprintf_decl=yes
3736 else
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3739 rm -rf conftest*
3740 ac_cv_have_vasprintf_decl=no
3742 rm -f conftest*
3745 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3746 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3747 cat >> confdefs.h <<\EOF
3748 #define HAVE_VASPRINTF_DECL 1
3754 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3755 echo "configure:3756: checking for vsnprintf declaration" >&5
3756 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3757 echo $ac_n "(cached) $ac_c" 1>&6
3758 else
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <stdio.h>
3764 int main() {
3765 int i = (int)vsnprintf
3766 ; return 0; }
3768 if { (eval echo configure:3769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3769 rm -rf conftest*
3770 ac_cv_have_vsnprintf_decl=yes
3771 else
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3774 rm -rf conftest*
3775 ac_cv_have_vsnprintf_decl=no
3777 rm -f conftest*
3780 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3781 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3782 cat >> confdefs.h <<\EOF
3783 #define HAVE_VSNPRINTF_DECL 1
3789 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3790 echo "configure:3791: checking for snprintf declaration" >&5
3791 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3793 else
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <stdio.h>
3799 int main() {
3800 int i = (int)snprintf
3801 ; return 0; }
3803 if { (eval echo configure:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 rm -rf conftest*
3805 ac_cv_have_snprintf_decl=yes
3806 else
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3809 rm -rf conftest*
3810 ac_cv_have_snprintf_decl=no
3812 rm -f conftest*
3815 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3816 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3817 cat >> confdefs.h <<\EOF
3818 #define HAVE_SNPRINTF_DECL 1
3824 # and glibc has setresuid under linux but the function does
3825 # nothing until kernel 2.1.44! very dumb.
3826 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3827 echo "configure:3828: checking for real setresuid" >&5
3828 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3830 else
3832 if test "$cross_compiling" = yes; then
3833 samba_cv_have_setresuid=cross
3834 else
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 #include <errno.h>
3839 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3842 then
3843 samba_cv_have_setresuid=yes
3844 else
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 rm -fr conftest*
3848 samba_cv_have_setresuid=no
3850 rm -fr conftest*
3855 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3856 if test x"$samba_cv_have_setresuid" = x"yes"; then
3857 cat >> confdefs.h <<\EOF
3858 #define HAVE_SETRESUID 1
3863 # Do the same check for setresguid...
3865 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3866 echo "configure:3867: checking for real setresgid" >&5
3867 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3869 else
3871 if test "$cross_compiling" = yes; then
3872 samba_cv_have_setresgid=cross
3873 else
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 #include <unistd.h>
3878 #include <errno.h>
3879 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3882 then
3883 samba_cv_have_setresgid=yes
3884 else
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 rm -fr conftest*
3888 samba_cv_have_setresgid=no
3890 rm -fr conftest*
3895 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3896 if test x"$samba_cv_have_setresgid" = x"yes"; then
3897 cat >> confdefs.h <<\EOF
3898 #define HAVE_SETRESGID 1
3903 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3904 echo "configure:3905: checking for 8-bit clean memcmp" >&5
3905 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907 else
3908 if test "$cross_compiling" = yes; then
3909 ac_cv_func_memcmp_clean=no
3910 else
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3915 main()
3917 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3918 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3923 then
3924 ac_cv_func_memcmp_clean=yes
3925 else
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 rm -fr conftest*
3929 ac_cv_func_memcmp_clean=no
3931 rm -fr conftest*
3936 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3937 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3940 ###############################################
3941 # test for where we get crypt() from
3942 for ac_func in crypt
3944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3945 echo "configure:3946: checking for $ac_func" >&5
3946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3948 else
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 /* System header to define __stub macros and hopefully few prototypes,
3953 which can conflict with char $ac_func(); below. */
3954 #include <assert.h>
3955 /* Override any gcc2 internal prototype to avoid an error. */
3956 /* We use char because int might match the return type of a gcc2
3957 builtin and then its argument prototype would still apply. */
3958 char $ac_func();
3960 int main() {
3962 /* The GNU C library defines this for functions which it implements
3963 to always fail with ENOSYS. Some functions are actually named
3964 something starting with __ and the normal name is an alias. */
3965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3966 choke me
3967 #else
3968 $ac_func();
3969 #endif
3971 ; return 0; }
3973 if { (eval echo configure:3974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 rm -rf conftest*
3975 eval "ac_cv_func_$ac_func=yes"
3976 else
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3979 rm -rf conftest*
3980 eval "ac_cv_func_$ac_func=no"
3982 rm -f conftest*
3985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3986 echo "$ac_t""yes" 1>&6
3987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3988 cat >> confdefs.h <<EOF
3989 #define $ac_tr_func 1
3992 else
3993 echo "$ac_t""no" 1>&6
3995 done
3997 if test x"$ac_cv_func_crypt" = x"no"; then
3998 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3999 echo "configure:4000: checking for crypt in -lcrypt" >&5
4000 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4003 else
4004 ac_save_LIBS="$LIBS"
4005 LIBS="-lcrypt $LIBS"
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4012 char crypt();
4014 int main() {
4015 crypt()
4016 ; return 0; }
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4019 rm -rf conftest*
4020 eval "ac_cv_lib_$ac_lib_var=yes"
4021 else
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -rf conftest*
4025 eval "ac_cv_lib_$ac_lib_var=no"
4027 rm -f conftest*
4028 LIBS="$ac_save_LIBS"
4031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 LIBS="$LIBS -lcrypt";
4034 cat >> confdefs.h <<\EOF
4035 #define HAVE_CRYPT 1
4038 else
4039 echo "$ac_t""no" 1>&6
4045 ###############################################
4046 # Readline included by default unless explicitly asked not to
4047 test "${with_readline+set}" != "set" && with_readline=yes
4049 # test for where we get readline() from
4050 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4051 echo "configure:4052: checking whether to use readline" >&5
4052 # Check whether --with-readline or --without-readline was given.
4053 if test "${with_readline+set}" = set; then
4054 withval="$with_readline"
4055 case "$with_readline" in
4056 yes)
4057 echo "$ac_t""yes" 1>&6
4059 for ac_hdr in readline.h history.h readline/readline.h
4061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4063 echo "configure:4064: checking for $ac_hdr" >&5
4064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4066 else
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 #include <$ac_hdr>
4072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4073 { (eval echo configure:4074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4075 if test -z "$ac_err"; then
4076 rm -rf conftest*
4077 eval "ac_cv_header_$ac_safe=yes"
4078 else
4079 echo "$ac_err" >&5
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 rm -rf conftest*
4083 eval "ac_cv_header_$ac_safe=no"
4085 rm -f conftest*
4087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4090 cat >> confdefs.h <<EOF
4091 #define $ac_tr_hdr 1
4094 else
4095 echo "$ac_t""no" 1>&6
4097 done
4099 for ac_hdr in readline/history.h
4101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4103 echo "configure:4104: checking for $ac_hdr" >&5
4104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4106 else
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 #include <$ac_hdr>
4112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4113 { (eval echo configure:4114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4115 if test -z "$ac_err"; then
4116 rm -rf conftest*
4117 eval "ac_cv_header_$ac_safe=yes"
4118 else
4119 echo "$ac_err" >&5
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4122 rm -rf conftest*
4123 eval "ac_cv_header_$ac_safe=no"
4125 rm -f conftest*
4127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4128 echo "$ac_t""yes" 1>&6
4129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4130 cat >> confdefs.h <<EOF
4131 #define $ac_tr_hdr 1
4134 else
4135 echo "$ac_t""no" 1>&6
4137 done
4140 for ac_hdr in readline.h readline/readline.h
4142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4144 echo "configure:4145: checking for $ac_hdr" >&5
4145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4147 else
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 #include <$ac_hdr>
4153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4154 { (eval echo configure:4155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4156 if test -z "$ac_err"; then
4157 rm -rf conftest*
4158 eval "ac_cv_header_$ac_safe=yes"
4159 else
4160 echo "$ac_err" >&5
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4163 rm -rf conftest*
4164 eval "ac_cv_header_$ac_safe=no"
4166 rm -f conftest*
4168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4171 cat >> confdefs.h <<EOF
4172 #define $ac_tr_hdr 1
4175 for termlib in ncurses curses termcap terminfo termlib; do
4176 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4177 echo "configure:4178: checking for tgetent in -l${termlib}" >&5
4178 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4181 else
4182 ac_save_LIBS="$LIBS"
4183 LIBS="-l${termlib} $LIBS"
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4190 char tgetent();
4192 int main() {
4193 tgetent()
4194 ; return 0; }
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4197 rm -rf conftest*
4198 eval "ac_cv_lib_$ac_lib_var=yes"
4199 else
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 rm -rf conftest*
4203 eval "ac_cv_lib_$ac_lib_var=no"
4205 rm -f conftest*
4206 LIBS="$ac_save_LIBS"
4209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 TERMLIBS="-l${termlib}"; break
4212 else
4213 echo "$ac_t""no" 1>&6
4216 done
4217 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4218 echo "configure:4219: checking for rl_callback_handler_install in -lreadline" >&5
4219 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4222 else
4223 ac_save_LIBS="$LIBS"
4224 LIBS="-lreadline $TERMLIBS $LIBS"
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* Override any gcc2 internal prototype to avoid an error. */
4229 /* We use char because int might match the return type of a gcc2
4230 builtin and then its argument prototype would still apply. */
4231 char rl_callback_handler_install();
4233 int main() {
4234 rl_callback_handler_install()
4235 ; return 0; }
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4238 rm -rf conftest*
4239 eval "ac_cv_lib_$ac_lib_var=yes"
4240 else
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 rm -rf conftest*
4244 eval "ac_cv_lib_$ac_lib_var=no"
4246 rm -f conftest*
4247 LIBS="$ac_save_LIBS"
4250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 TERMLIBS="-lreadline $TERMLIBS"
4253 cat >> confdefs.h <<\EOF
4254 #define HAVE_LIBREADLINE 1
4257 break
4258 else
4259 echo "$ac_t""no" 1>&6
4260 TERMLIBS=
4263 else
4264 echo "$ac_t""no" 1>&6
4266 done
4270 echo "$ac_t""no" 1>&6
4273 echo "$ac_t""yes" 1>&6
4275 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4276 # alternate readline path
4277 _ldflags=${LDFLAGS}
4278 _cppflags=${CPPFLAGS}
4280 # Add additional search path
4281 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4282 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4284 for ac_hdr in readline.h history.h readline/readline.h
4286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4288 echo "configure:4289: checking for $ac_hdr" >&5
4289 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4291 else
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 #include <$ac_hdr>
4297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4298 { (eval echo configure:4299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4300 if test -z "$ac_err"; then
4301 rm -rf conftest*
4302 eval "ac_cv_header_$ac_safe=yes"
4303 else
4304 echo "$ac_err" >&5
4305 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4307 rm -rf conftest*
4308 eval "ac_cv_header_$ac_safe=no"
4310 rm -f conftest*
4312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4315 cat >> confdefs.h <<EOF
4316 #define $ac_tr_hdr 1
4319 else
4320 echo "$ac_t""no" 1>&6
4322 done
4324 for ac_hdr in readline/history.h
4326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4328 echo "configure:4329: checking for $ac_hdr" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4331 else
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 #include <$ac_hdr>
4337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4338 { (eval echo configure:4339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4340 if test -z "$ac_err"; then
4341 rm -rf conftest*
4342 eval "ac_cv_header_$ac_safe=yes"
4343 else
4344 echo "$ac_err" >&5
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4347 rm -rf conftest*
4348 eval "ac_cv_header_$ac_safe=no"
4350 rm -f conftest*
4352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4355 cat >> confdefs.h <<EOF
4356 #define $ac_tr_hdr 1
4359 else
4360 echo "$ac_t""no" 1>&6
4362 done
4365 for ac_hdr in readline.h readline/readline.h
4367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4369 echo "configure:4370: checking for $ac_hdr" >&5
4370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4372 else
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <$ac_hdr>
4378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4379 { (eval echo configure:4380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4381 if test -z "$ac_err"; then
4382 rm -rf conftest*
4383 eval "ac_cv_header_$ac_safe=yes"
4384 else
4385 echo "$ac_err" >&5
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 rm -rf conftest*
4389 eval "ac_cv_header_$ac_safe=no"
4391 rm -f conftest*
4393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4396 cat >> confdefs.h <<EOF
4397 #define $ac_tr_hdr 1
4400 for termlib in ncurses curses termcap terminfo termlib; do
4401 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4402 echo "configure:4403: checking for tgetent in -l${termlib}" >&5
4403 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4406 else
4407 ac_save_LIBS="$LIBS"
4408 LIBS="-l${termlib} $LIBS"
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4415 char tgetent();
4417 int main() {
4418 tgetent()
4419 ; return 0; }
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422 rm -rf conftest*
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4424 else
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4427 rm -rf conftest*
4428 eval "ac_cv_lib_$ac_lib_var=no"
4430 rm -f conftest*
4431 LIBS="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 TERMLIBS="-l${termlib}"; break
4437 else
4438 echo "$ac_t""no" 1>&6
4441 done
4442 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4443 echo "configure:4444: checking for rl_callback_handler_install in -lreadline" >&5
4444 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4447 else
4448 ac_save_LIBS="$LIBS"
4449 LIBS="-lreadline $TERMLIBS $LIBS"
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4456 char rl_callback_handler_install();
4458 int main() {
4459 rl_callback_handler_install()
4460 ; return 0; }
4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4463 rm -rf conftest*
4464 eval "ac_cv_lib_$ac_lib_var=yes"
4465 else
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 rm -rf conftest*
4469 eval "ac_cv_lib_$ac_lib_var=no"
4471 rm -f conftest*
4472 LIBS="$ac_save_LIBS"
4475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4476 echo "$ac_t""yes" 1>&6
4477 TERMLDFLAGS="-L$with_readline/lib"
4478 TERMCPPFLAGS="-I$with_readline/include"
4479 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4480 TERMLIBS="-lreadline $TERMLIBS"
4481 cat >> confdefs.h <<\EOF
4482 #define HAVE_LIBREADLINE 1
4485 break
4486 else
4487 echo "$ac_t""no" 1>&6
4488 TERMLIBS= CPPFLAGS=$_cppflags
4491 else
4492 echo "$ac_t""no" 1>&6
4494 done
4497 LDFLAGS=$_ldflags
4499 esac
4500 else
4501 echo "$ac_t""no" 1>&6
4508 # The following test taken from the cvs sources
4509 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4510 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4511 # libsocket.so which has a bad implementation of gethostbyname (it
4512 # only looks in /etc/hosts), so we only look for -lsocket if we need
4513 # it.
4514 for ac_func in connect
4516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4517 echo "configure:4518: checking for $ac_func" >&5
4518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4520 else
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4524 /* System header to define __stub macros and hopefully few prototypes,
4525 which can conflict with char $ac_func(); below. */
4526 #include <assert.h>
4527 /* Override any gcc2 internal prototype to avoid an error. */
4528 /* We use char because int might match the return type of a gcc2
4529 builtin and then its argument prototype would still apply. */
4530 char $ac_func();
4532 int main() {
4534 /* The GNU C library defines this for functions which it implements
4535 to always fail with ENOSYS. Some functions are actually named
4536 something starting with __ and the normal name is an alias. */
4537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4538 choke me
4539 #else
4540 $ac_func();
4541 #endif
4543 ; return 0; }
4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4546 rm -rf conftest*
4547 eval "ac_cv_func_$ac_func=yes"
4548 else
4549 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4551 rm -rf conftest*
4552 eval "ac_cv_func_$ac_func=no"
4554 rm -f conftest*
4557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4558 echo "$ac_t""yes" 1>&6
4559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4560 cat >> confdefs.h <<EOF
4561 #define $ac_tr_func 1
4564 else
4565 echo "$ac_t""no" 1>&6
4567 done
4569 if test x"$ac_cv_func_connect" = x"no"; then
4570 case "$LIBS" in
4571 *-lnsl*) ;;
4572 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4573 echo "configure:4574: checking for printf in -lnsl_s" >&5
4574 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4577 else
4578 ac_save_LIBS="$LIBS"
4579 LIBS="-lnsl_s $LIBS"
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 /* Override any gcc2 internal prototype to avoid an error. */
4584 /* We use char because int might match the return type of a gcc2
4585 builtin and then its argument prototype would still apply. */
4586 char printf();
4588 int main() {
4589 printf()
4590 ; return 0; }
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4593 rm -rf conftest*
4594 eval "ac_cv_lib_$ac_lib_var=yes"
4595 else
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4598 rm -rf conftest*
4599 eval "ac_cv_lib_$ac_lib_var=no"
4601 rm -f conftest*
4602 LIBS="$ac_save_LIBS"
4605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4607 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4609 cat >> confdefs.h <<EOF
4610 #define $ac_tr_lib 1
4613 LIBS="-lnsl_s $LIBS"
4615 else
4616 echo "$ac_t""no" 1>&6
4619 esac
4620 case "$LIBS" in
4621 *-lnsl*) ;;
4622 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4623 echo "configure:4624: checking for printf in -lnsl" >&5
4624 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4627 else
4628 ac_save_LIBS="$LIBS"
4629 LIBS="-lnsl $LIBS"
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
4636 char printf();
4638 int main() {
4639 printf()
4640 ; return 0; }
4642 if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4643 rm -rf conftest*
4644 eval "ac_cv_lib_$ac_lib_var=yes"
4645 else
4646 echo "configure: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4648 rm -rf conftest*
4649 eval "ac_cv_lib_$ac_lib_var=no"
4651 rm -f conftest*
4652 LIBS="$ac_save_LIBS"
4655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4656 echo "$ac_t""yes" 1>&6
4657 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4659 cat >> confdefs.h <<EOF
4660 #define $ac_tr_lib 1
4663 LIBS="-lnsl $LIBS"
4665 else
4666 echo "$ac_t""no" 1>&6
4669 esac
4670 case "$LIBS" in
4671 *-lsocket*) ;;
4672 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4673 echo "configure:4674: checking for connect in -lsocket" >&5
4674 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4677 else
4678 ac_save_LIBS="$LIBS"
4679 LIBS="-lsocket $LIBS"
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 /* Override any gcc2 internal prototype to avoid an error. */
4684 /* We use char because int might match the return type of a gcc2
4685 builtin and then its argument prototype would still apply. */
4686 char connect();
4688 int main() {
4689 connect()
4690 ; return 0; }
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 rm -rf conftest*
4694 eval "ac_cv_lib_$ac_lib_var=yes"
4695 else
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 rm -rf conftest*
4699 eval "ac_cv_lib_$ac_lib_var=no"
4701 rm -f conftest*
4702 LIBS="$ac_save_LIBS"
4705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4706 echo "$ac_t""yes" 1>&6
4707 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4709 cat >> confdefs.h <<EOF
4710 #define $ac_tr_lib 1
4713 LIBS="-lsocket $LIBS"
4715 else
4716 echo "$ac_t""no" 1>&6
4719 esac
4720 case "$LIBS" in
4721 *-linet*) ;;
4722 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4723 echo "configure:4724: checking for connect in -linet" >&5
4724 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4727 else
4728 ac_save_LIBS="$LIBS"
4729 LIBS="-linet $LIBS"
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4733 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4736 char connect();
4738 int main() {
4739 connect()
4740 ; return 0; }
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743 rm -rf conftest*
4744 eval "ac_cv_lib_$ac_lib_var=yes"
4745 else
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 rm -rf conftest*
4749 eval "ac_cv_lib_$ac_lib_var=no"
4751 rm -f conftest*
4752 LIBS="$ac_save_LIBS"
4755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4756 echo "$ac_t""yes" 1>&6
4757 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4759 cat >> confdefs.h <<EOF
4760 #define $ac_tr_lib 1
4763 LIBS="-linet $LIBS"
4765 else
4766 echo "$ac_t""no" 1>&6
4769 esac
4770 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4771 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4772 # ac_cv_func_connect=yes
4773 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4774 cat >> confdefs.h <<\EOF
4775 #define HAVE_CONNECT 1
4781 ###############################################
4782 # test for where we get get_yp_default_domain() from
4783 for ac_func in yp_get_default_domain
4785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_func" >&5
4787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4789 else
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 /* System header to define __stub macros and hopefully few prototypes,
4794 which can conflict with char $ac_func(); below. */
4795 #include <assert.h>
4796 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4799 char $ac_func();
4801 int main() {
4803 /* The GNU C library defines this for functions which it implements
4804 to always fail with ENOSYS. Some functions are actually named
4805 something starting with __ and the normal name is an alias. */
4806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4807 choke me
4808 #else
4809 $ac_func();
4810 #endif
4812 ; return 0; }
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 rm -rf conftest*
4816 eval "ac_cv_func_$ac_func=yes"
4817 else
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 rm -rf conftest*
4821 eval "ac_cv_func_$ac_func=no"
4823 rm -f conftest*
4826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4829 cat >> confdefs.h <<EOF
4830 #define $ac_tr_func 1
4833 else
4834 echo "$ac_t""no" 1>&6
4836 done
4838 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4839 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4840 echo "configure:4841: checking for yp_get_default_domain in -lnsl" >&5
4841 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4844 else
4845 ac_save_LIBS="$LIBS"
4846 LIBS="-lnsl $LIBS"
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4853 char yp_get_default_domain();
4855 int main() {
4856 yp_get_default_domain()
4857 ; return 0; }
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4860 rm -rf conftest*
4861 eval "ac_cv_lib_$ac_lib_var=yes"
4862 else
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 rm -rf conftest*
4866 eval "ac_cv_lib_$ac_lib_var=no"
4868 rm -f conftest*
4869 LIBS="$ac_save_LIBS"
4872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 LIBS="$LIBS -lnsl";
4875 cat >> confdefs.h <<\EOF
4876 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4879 else
4880 echo "$ac_t""no" 1>&6
4885 # Check if we have execl, if not we need to compile smbrun.
4886 for ac_func in execl
4888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4889 echo "configure:4890: checking for $ac_func" >&5
4890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4892 else
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 /* System header to define __stub macros and hopefully few prototypes,
4897 which can conflict with char $ac_func(); below. */
4898 #include <assert.h>
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4902 char $ac_func();
4904 int main() {
4906 /* The GNU C library defines this for functions which it implements
4907 to always fail with ENOSYS. Some functions are actually named
4908 something starting with __ and the normal name is an alias. */
4909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4910 choke me
4911 #else
4912 $ac_func();
4913 #endif
4915 ; return 0; }
4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4918 rm -rf conftest*
4919 eval "ac_cv_func_$ac_func=yes"
4920 else
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4923 rm -rf conftest*
4924 eval "ac_cv_func_$ac_func=no"
4926 rm -f conftest*
4929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4932 cat >> confdefs.h <<EOF
4933 #define $ac_tr_func 1
4936 else
4937 echo "$ac_t""no" 1>&6
4939 done
4941 if test x"$ac_cv_func_execl" = x"no"; then
4942 RUNPROG="bin/smbrun"
4943 else
4944 RUNPROG=""
4947 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
4949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4950 echo "configure:4951: checking for $ac_func" >&5
4951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4953 else
4954 cat > conftest.$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 /* System header to define __stub macros and hopefully few prototypes,
4958 which can conflict with char $ac_func(); below. */
4959 #include <assert.h>
4960 /* Override any gcc2 internal prototype to avoid an error. */
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4963 char $ac_func();
4965 int main() {
4967 /* The GNU C library defines this for functions which it implements
4968 to always fail with ENOSYS. Some functions are actually named
4969 something starting with __ and the normal name is an alias. */
4970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4971 choke me
4972 #else
4973 $ac_func();
4974 #endif
4976 ; return 0; }
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 rm -rf conftest*
4980 eval "ac_cv_func_$ac_func=yes"
4981 else
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 rm -rf conftest*
4985 eval "ac_cv_func_$ac_func=no"
4987 rm -f conftest*
4990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4993 cat >> confdefs.h <<EOF
4994 #define $ac_tr_func 1
4997 else
4998 echo "$ac_t""no" 1>&6
5000 done
5002 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5005 echo "configure:5006: checking for $ac_func" >&5
5006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5008 else
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5012 /* System header to define __stub macros and hopefully few prototypes,
5013 which can conflict with char $ac_func(); below. */
5014 #include <assert.h>
5015 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */
5018 char $ac_func();
5020 int main() {
5022 /* The GNU C library defines this for functions which it implements
5023 to always fail with ENOSYS. Some functions are actually named
5024 something starting with __ and the normal name is an alias. */
5025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5026 choke me
5027 #else
5028 $ac_func();
5029 #endif
5031 ; return 0; }
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5034 rm -rf conftest*
5035 eval "ac_cv_func_$ac_func=yes"
5036 else
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5039 rm -rf conftest*
5040 eval "ac_cv_func_$ac_func=no"
5042 rm -f conftest*
5045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5046 echo "$ac_t""yes" 1>&6
5047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5048 cat >> confdefs.h <<EOF
5049 #define $ac_tr_func 1
5052 else
5053 echo "$ac_t""no" 1>&6
5055 done
5057 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_func" >&5
5061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5063 else
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 /* System header to define __stub macros and hopefully few prototypes,
5068 which can conflict with char $ac_func(); below. */
5069 #include <assert.h>
5070 /* Override any gcc2 internal prototype to avoid an error. */
5071 /* We use char because int might match the return type of a gcc2
5072 builtin and then its argument prototype would still apply. */
5073 char $ac_func();
5075 int main() {
5077 /* The GNU C library defines this for functions which it implements
5078 to always fail with ENOSYS. Some functions are actually named
5079 something starting with __ and the normal name is an alias. */
5080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5081 choke me
5082 #else
5083 $ac_func();
5084 #endif
5086 ; return 0; }
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5089 rm -rf conftest*
5090 eval "ac_cv_func_$ac_func=yes"
5091 else
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5094 rm -rf conftest*
5095 eval "ac_cv_func_$ac_func=no"
5097 rm -f conftest*
5100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5101 echo "$ac_t""yes" 1>&6
5102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5103 cat >> confdefs.h <<EOF
5104 #define $ac_tr_func 1
5107 else
5108 echo "$ac_t""no" 1>&6
5110 done
5112 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5115 echo "configure:5116: checking for $ac_func" >&5
5116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5118 else
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5122 /* System header to define __stub macros and hopefully few prototypes,
5123 which can conflict with char $ac_func(); below. */
5124 #include <assert.h>
5125 /* Override any gcc2 internal prototype to avoid an error. */
5126 /* We use char because int might match the return type of a gcc2
5127 builtin and then its argument prototype would still apply. */
5128 char $ac_func();
5130 int main() {
5132 /* The GNU C library defines this for functions which it implements
5133 to always fail with ENOSYS. Some functions are actually named
5134 something starting with __ and the normal name is an alias. */
5135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5136 choke me
5137 #else
5138 $ac_func();
5139 #endif
5141 ; return 0; }
5143 if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5144 rm -rf conftest*
5145 eval "ac_cv_func_$ac_func=yes"
5146 else
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5149 rm -rf conftest*
5150 eval "ac_cv_func_$ac_func=no"
5152 rm -f conftest*
5155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5156 echo "$ac_t""yes" 1>&6
5157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5158 cat >> confdefs.h <<EOF
5159 #define $ac_tr_func 1
5162 else
5163 echo "$ac_t""no" 1>&6
5165 done
5167 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5170 echo "configure:5171: checking for $ac_func" >&5
5171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5173 else
5174 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 /* System header to define __stub macros and hopefully few prototypes,
5178 which can conflict with char $ac_func(); below. */
5179 #include <assert.h>
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5183 char $ac_func();
5185 int main() {
5187 /* The GNU C library defines this for functions which it implements
5188 to always fail with ENOSYS. Some functions are actually named
5189 something starting with __ and the normal name is an alias. */
5190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5191 choke me
5192 #else
5193 $ac_func();
5194 #endif
5196 ; return 0; }
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5199 rm -rf conftest*
5200 eval "ac_cv_func_$ac_func=yes"
5201 else
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5204 rm -rf conftest*
5205 eval "ac_cv_func_$ac_func=no"
5207 rm -f conftest*
5210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5213 cat >> confdefs.h <<EOF
5214 #define $ac_tr_func 1
5217 else
5218 echo "$ac_t""no" 1>&6
5220 done
5222 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_func" >&5
5226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5228 else
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 /* System header to define __stub macros and hopefully few prototypes,
5233 which can conflict with char $ac_func(); below. */
5234 #include <assert.h>
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 /* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */
5238 char $ac_func();
5240 int main() {
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246 choke me
5247 #else
5248 $ac_func();
5249 #endif
5251 ; return 0; }
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254 rm -rf conftest*
5255 eval "ac_cv_func_$ac_func=yes"
5256 else
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5259 rm -rf conftest*
5260 eval "ac_cv_func_$ac_func=no"
5262 rm -f conftest*
5265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5268 cat >> confdefs.h <<EOF
5269 #define $ac_tr_func 1
5272 else
5273 echo "$ac_t""no" 1>&6
5275 done
5277 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5280 echo "configure:5281: checking for $ac_func" >&5
5281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5283 else
5284 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5287 /* System header to define __stub macros and hopefully few prototypes,
5288 which can conflict with char $ac_func(); below. */
5289 #include <assert.h>
5290 /* Override any gcc2 internal prototype to avoid an error. */
5291 /* We use char because int might match the return type of a gcc2
5292 builtin and then its argument prototype would still apply. */
5293 char $ac_func();
5295 int main() {
5297 /* The GNU C library defines this for functions which it implements
5298 to always fail with ENOSYS. Some functions are actually named
5299 something starting with __ and the normal name is an alias. */
5300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5301 choke me
5302 #else
5303 $ac_func();
5304 #endif
5306 ; return 0; }
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309 rm -rf conftest*
5310 eval "ac_cv_func_$ac_func=yes"
5311 else
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5314 rm -rf conftest*
5315 eval "ac_cv_func_$ac_func=no"
5317 rm -f conftest*
5320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5321 echo "$ac_t""yes" 1>&6
5322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5323 cat >> confdefs.h <<EOF
5324 #define $ac_tr_func 1
5327 else
5328 echo "$ac_t""no" 1>&6
5330 done
5332 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5335 echo "configure:5336: checking for $ac_func" >&5
5336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5338 else
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342 /* System header to define __stub macros and hopefully few prototypes,
5343 which can conflict with char $ac_func(); below. */
5344 #include <assert.h>
5345 /* Override any gcc2 internal prototype to avoid an error. */
5346 /* We use char because int might match the return type of a gcc2
5347 builtin and then its argument prototype would still apply. */
5348 char $ac_func();
5350 int main() {
5352 /* The GNU C library defines this for functions which it implements
5353 to always fail with ENOSYS. Some functions are actually named
5354 something starting with __ and the normal name is an alias. */
5355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5356 choke me
5357 #else
5358 $ac_func();
5359 #endif
5361 ; return 0; }
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 rm -rf conftest*
5365 eval "ac_cv_func_$ac_func=yes"
5366 else
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5369 rm -rf conftest*
5370 eval "ac_cv_func_$ac_func=no"
5372 rm -f conftest*
5375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5378 cat >> confdefs.h <<EOF
5379 #define $ac_tr_func 1
5382 else
5383 echo "$ac_t""no" 1>&6
5385 done
5387 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5390 echo "configure:5391: checking for $ac_func" >&5
5391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5393 else
5394 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 /* System header to define __stub macros and hopefully few prototypes,
5398 which can conflict with char $ac_func(); below. */
5399 #include <assert.h>
5400 /* Override any gcc2 internal prototype to avoid an error. */
5401 /* We use char because int might match the return type of a gcc2
5402 builtin and then its argument prototype would still apply. */
5403 char $ac_func();
5405 int main() {
5407 /* The GNU C library defines this for functions which it implements
5408 to always fail with ENOSYS. Some functions are actually named
5409 something starting with __ and the normal name is an alias. */
5410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5411 choke me
5412 #else
5413 $ac_func();
5414 #endif
5416 ; return 0; }
5418 if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5419 rm -rf conftest*
5420 eval "ac_cv_func_$ac_func=yes"
5421 else
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5424 rm -rf conftest*
5425 eval "ac_cv_func_$ac_func=no"
5427 rm -f conftest*
5430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5431 echo "$ac_t""yes" 1>&6
5432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5433 cat >> confdefs.h <<EOF
5434 #define $ac_tr_func 1
5437 else
5438 echo "$ac_t""no" 1>&6
5440 done
5442 # setbuffer is needed for smbtorture
5443 for ac_func in setbuffer
5445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5446 echo "configure:5447: checking for $ac_func" >&5
5447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5449 else
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453 /* System header to define __stub macros and hopefully few prototypes,
5454 which can conflict with char $ac_func(); below. */
5455 #include <assert.h>
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5459 char $ac_func();
5461 int main() {
5463 /* The GNU C library defines this for functions which it implements
5464 to always fail with ENOSYS. Some functions are actually named
5465 something starting with __ and the normal name is an alias. */
5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5467 choke me
5468 #else
5469 $ac_func();
5470 #endif
5472 ; return 0; }
5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475 rm -rf conftest*
5476 eval "ac_cv_func_$ac_func=yes"
5477 else
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5480 rm -rf conftest*
5481 eval "ac_cv_func_$ac_func=no"
5483 rm -f conftest*
5486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5487 echo "$ac_t""yes" 1>&6
5488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5489 cat >> confdefs.h <<EOF
5490 #define $ac_tr_func 1
5493 else
5494 echo "$ac_t""no" 1>&6
5496 done
5499 # syscall() is needed for smbwrapper.
5500 for ac_func in syscall
5502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5503 echo "configure:5504: checking for $ac_func" >&5
5504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 /* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func(); below. */
5512 #include <assert.h>
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5516 char $ac_func();
5518 int main() {
5520 /* The GNU C library defines this for functions which it implements
5521 to always fail with ENOSYS. Some functions are actually named
5522 something starting with __ and the normal name is an alias. */
5523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5524 choke me
5525 #else
5526 $ac_func();
5527 #endif
5529 ; return 0; }
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 rm -rf conftest*
5533 eval "ac_cv_func_$ac_func=yes"
5534 else
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 rm -rf conftest*
5538 eval "ac_cv_func_$ac_func=no"
5540 rm -f conftest*
5543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5546 cat >> confdefs.h <<EOF
5547 #define $ac_tr_func 1
5550 else
5551 echo "$ac_t""no" 1>&6
5553 done
5556 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5559 echo "configure:5560: checking for $ac_func" >&5
5560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5562 else
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 /* System header to define __stub macros and hopefully few prototypes,
5567 which can conflict with char $ac_func(); below. */
5568 #include <assert.h>
5569 /* Override any gcc2 internal prototype to avoid an error. */
5570 /* We use char because int might match the return type of a gcc2
5571 builtin and then its argument prototype would still apply. */
5572 char $ac_func();
5574 int main() {
5576 /* The GNU C library defines this for functions which it implements
5577 to always fail with ENOSYS. Some functions are actually named
5578 something starting with __ and the normal name is an alias. */
5579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5580 choke me
5581 #else
5582 $ac_func();
5583 #endif
5585 ; return 0; }
5587 if { (eval echo configure:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5588 rm -rf conftest*
5589 eval "ac_cv_func_$ac_func=yes"
5590 else
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5593 rm -rf conftest*
5594 eval "ac_cv_func_$ac_func=no"
5596 rm -f conftest*
5599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5600 echo "$ac_t""yes" 1>&6
5601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5602 cat >> confdefs.h <<EOF
5603 #define $ac_tr_func 1
5606 else
5607 echo "$ac_t""no" 1>&6
5609 done
5611 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5614 echo "configure:5615: checking for $ac_func" >&5
5615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5617 else
5618 cat > conftest.$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 /* System header to define __stub macros and hopefully few prototypes,
5622 which can conflict with char $ac_func(); below. */
5623 #include <assert.h>
5624 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5627 char $ac_func();
5629 int main() {
5631 /* The GNU C library defines this for functions which it implements
5632 to always fail with ENOSYS. Some functions are actually named
5633 something starting with __ and the normal name is an alias. */
5634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5635 choke me
5636 #else
5637 $ac_func();
5638 #endif
5640 ; return 0; }
5642 if { (eval echo configure:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5643 rm -rf conftest*
5644 eval "ac_cv_func_$ac_func=yes"
5645 else
5646 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5648 rm -rf conftest*
5649 eval "ac_cv_func_$ac_func=no"
5651 rm -f conftest*
5654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5655 echo "$ac_t""yes" 1>&6
5656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5657 cat >> confdefs.h <<EOF
5658 #define $ac_tr_func 1
5661 else
5662 echo "$ac_t""no" 1>&6
5664 done
5666 for ac_func in __getcwd _getcwd
5668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_func" >&5
5670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5672 else
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 /* System header to define __stub macros and hopefully few prototypes,
5677 which can conflict with char $ac_func(); below. */
5678 #include <assert.h>
5679 /* Override any gcc2 internal prototype to avoid an error. */
5680 /* We use char because int might match the return type of a gcc2
5681 builtin and then its argument prototype would still apply. */
5682 char $ac_func();
5684 int main() {
5686 /* The GNU C library defines this for functions which it implements
5687 to always fail with ENOSYS. Some functions are actually named
5688 something starting with __ and the normal name is an alias. */
5689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5690 choke me
5691 #else
5692 $ac_func();
5693 #endif
5695 ; return 0; }
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5698 rm -rf conftest*
5699 eval "ac_cv_func_$ac_func=yes"
5700 else
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5703 rm -rf conftest*
5704 eval "ac_cv_func_$ac_func=no"
5706 rm -f conftest*
5709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5712 cat >> confdefs.h <<EOF
5713 #define $ac_tr_func 1
5716 else
5717 echo "$ac_t""no" 1>&6
5719 done
5721 for ac_func in __xstat __fxstat __lxstat
5723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5724 echo "configure:5725: checking for $ac_func" >&5
5725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5727 else
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5731 /* System header to define __stub macros and hopefully few prototypes,
5732 which can conflict with char $ac_func(); below. */
5733 #include <assert.h>
5734 /* Override any gcc2 internal prototype to avoid an error. */
5735 /* We use char because int might match the return type of a gcc2
5736 builtin and then its argument prototype would still apply. */
5737 char $ac_func();
5739 int main() {
5741 /* The GNU C library defines this for functions which it implements
5742 to always fail with ENOSYS. Some functions are actually named
5743 something starting with __ and the normal name is an alias. */
5744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5745 choke me
5746 #else
5747 $ac_func();
5748 #endif
5750 ; return 0; }
5752 if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5753 rm -rf conftest*
5754 eval "ac_cv_func_$ac_func=yes"
5755 else
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5758 rm -rf conftest*
5759 eval "ac_cv_func_$ac_func=no"
5761 rm -f conftest*
5764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5765 echo "$ac_t""yes" 1>&6
5766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5767 cat >> confdefs.h <<EOF
5768 #define $ac_tr_func 1
5771 else
5772 echo "$ac_t""no" 1>&6
5774 done
5776 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5779 echo "configure:5780: checking for $ac_func" >&5
5780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5782 else
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 /* System header to define __stub macros and hopefully few prototypes,
5787 which can conflict with char $ac_func(); below. */
5788 #include <assert.h>
5789 /* Override any gcc2 internal prototype to avoid an error. */
5790 /* We use char because int might match the return type of a gcc2
5791 builtin and then its argument prototype would still apply. */
5792 char $ac_func();
5794 int main() {
5796 /* The GNU C library defines this for functions which it implements
5797 to always fail with ENOSYS. Some functions are actually named
5798 something starting with __ and the normal name is an alias. */
5799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5800 choke me
5801 #else
5802 $ac_func();
5803 #endif
5805 ; return 0; }
5807 if { (eval echo configure:5808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5808 rm -rf conftest*
5809 eval "ac_cv_func_$ac_func=yes"
5810 else
5811 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 rm -rf conftest*
5814 eval "ac_cv_func_$ac_func=no"
5816 rm -f conftest*
5819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5820 echo "$ac_t""yes" 1>&6
5821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5822 cat >> confdefs.h <<EOF
5823 #define $ac_tr_func 1
5826 else
5827 echo "$ac_t""no" 1>&6
5829 done
5831 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5833 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5834 echo "configure:5835: checking for $ac_func" >&5
5835 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5836 echo $ac_n "(cached) $ac_c" 1>&6
5837 else
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 /* System header to define __stub macros and hopefully few prototypes,
5842 which can conflict with char $ac_func(); below. */
5843 #include <assert.h>
5844 /* Override any gcc2 internal prototype to avoid an error. */
5845 /* We use char because int might match the return type of a gcc2
5846 builtin and then its argument prototype would still apply. */
5847 char $ac_func();
5849 int main() {
5851 /* The GNU C library defines this for functions which it implements
5852 to always fail with ENOSYS. Some functions are actually named
5853 something starting with __ and the normal name is an alias. */
5854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5855 choke me
5856 #else
5857 $ac_func();
5858 #endif
5860 ; return 0; }
5862 if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5863 rm -rf conftest*
5864 eval "ac_cv_func_$ac_func=yes"
5865 else
5866 echo "configure: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 rm -rf conftest*
5869 eval "ac_cv_func_$ac_func=no"
5871 rm -f conftest*
5874 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5875 echo "$ac_t""yes" 1>&6
5876 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5877 cat >> confdefs.h <<EOF
5878 #define $ac_tr_func 1
5881 else
5882 echo "$ac_t""no" 1>&6
5884 done
5886 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5889 echo "configure:5890: checking for $ac_func" >&5
5890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5892 else
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5896 /* System header to define __stub macros and hopefully few prototypes,
5897 which can conflict with char $ac_func(); below. */
5898 #include <assert.h>
5899 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5902 char $ac_func();
5904 int main() {
5906 /* The GNU C library defines this for functions which it implements
5907 to always fail with ENOSYS. Some functions are actually named
5908 something starting with __ and the normal name is an alias. */
5909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5910 choke me
5911 #else
5912 $ac_func();
5913 #endif
5915 ; return 0; }
5917 if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 rm -rf conftest*
5919 eval "ac_cv_func_$ac_func=yes"
5920 else
5921 echo "configure: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 rm -rf conftest*
5924 eval "ac_cv_func_$ac_func=no"
5926 rm -f conftest*
5929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5930 echo "$ac_t""yes" 1>&6
5931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5932 cat >> confdefs.h <<EOF
5933 #define $ac_tr_func 1
5936 else
5937 echo "$ac_t""no" 1>&6
5939 done
5941 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5944 echo "configure:5945: checking for $ac_func" >&5
5945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5947 else
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 /* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char $ac_func(); below. */
5953 #include <assert.h>
5954 /* Override any gcc2 internal prototype to avoid an error. */
5955 /* We use char because int might match the return type of a gcc2
5956 builtin and then its argument prototype would still apply. */
5957 char $ac_func();
5959 int main() {
5961 /* The GNU C library defines this for functions which it implements
5962 to always fail with ENOSYS. Some functions are actually named
5963 something starting with __ and the normal name is an alias. */
5964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5965 choke me
5966 #else
5967 $ac_func();
5968 #endif
5970 ; return 0; }
5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5973 rm -rf conftest*
5974 eval "ac_cv_func_$ac_func=yes"
5975 else
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5978 rm -rf conftest*
5979 eval "ac_cv_func_$ac_func=no"
5981 rm -f conftest*
5984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5985 echo "$ac_t""yes" 1>&6
5986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5987 cat >> confdefs.h <<EOF
5988 #define $ac_tr_func 1
5991 else
5992 echo "$ac_t""no" 1>&6
5994 done
5996 for ac_func in _write __write _fork __fork
5998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5999 echo "configure:6000: checking for $ac_func" >&5
6000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6002 else
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 /* System header to define __stub macros and hopefully few prototypes,
6007 which can conflict with char $ac_func(); below. */
6008 #include <assert.h>
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6012 char $ac_func();
6014 int main() {
6016 /* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
6019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6020 choke me
6021 #else
6022 $ac_func();
6023 #endif
6025 ; return 0; }
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 rm -rf conftest*
6029 eval "ac_cv_func_$ac_func=yes"
6030 else
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6033 rm -rf conftest*
6034 eval "ac_cv_func_$ac_func=no"
6036 rm -f conftest*
6039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6040 echo "$ac_t""yes" 1>&6
6041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6042 cat >> confdefs.h <<EOF
6043 #define $ac_tr_func 1
6046 else
6047 echo "$ac_t""no" 1>&6
6049 done
6051 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_func" >&5
6055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6057 else
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 /* System header to define __stub macros and hopefully few prototypes,
6062 which can conflict with char $ac_func(); below. */
6063 #include <assert.h>
6064 /* Override any gcc2 internal prototype to avoid an error. */
6065 /* We use char because int might match the return type of a gcc2
6066 builtin and then its argument prototype would still apply. */
6067 char $ac_func();
6069 int main() {
6071 /* The GNU C library defines this for functions which it implements
6072 to always fail with ENOSYS. Some functions are actually named
6073 something starting with __ and the normal name is an alias. */
6074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6075 choke me
6076 #else
6077 $ac_func();
6078 #endif
6080 ; return 0; }
6082 if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6083 rm -rf conftest*
6084 eval "ac_cv_func_$ac_func=yes"
6085 else
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 rm -rf conftest*
6089 eval "ac_cv_func_$ac_func=no"
6091 rm -f conftest*
6094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6095 echo "$ac_t""yes" 1>&6
6096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6097 cat >> confdefs.h <<EOF
6098 #define $ac_tr_func 1
6101 else
6102 echo "$ac_t""no" 1>&6
6104 done
6106 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_func" >&5
6110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6112 else
6113 cat > conftest.$ac_ext <<EOF
6114 #line 6115 "configure"
6115 #include "confdefs.h"
6116 /* System header to define __stub macros and hopefully few prototypes,
6117 which can conflict with char $ac_func(); below. */
6118 #include <assert.h>
6119 /* Override any gcc2 internal prototype to avoid an error. */
6120 /* We use char because int might match the return type of a gcc2
6121 builtin and then its argument prototype would still apply. */
6122 char $ac_func();
6124 int main() {
6126 /* The GNU C library defines this for functions which it implements
6127 to always fail with ENOSYS. Some functions are actually named
6128 something starting with __ and the normal name is an alias. */
6129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6130 choke me
6131 #else
6132 $ac_func();
6133 #endif
6135 ; return 0; }
6137 if { (eval echo configure:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6138 rm -rf conftest*
6139 eval "ac_cv_func_$ac_func=yes"
6140 else
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 rm -rf conftest*
6144 eval "ac_cv_func_$ac_func=no"
6146 rm -f conftest*
6149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152 cat >> confdefs.h <<EOF
6153 #define $ac_tr_func 1
6156 else
6157 echo "$ac_t""no" 1>&6
6159 done
6161 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6164 echo "configure:6165: checking for $ac_func" >&5
6165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6167 else
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 /* System header to define __stub macros and hopefully few prototypes,
6172 which can conflict with char $ac_func(); below. */
6173 #include <assert.h>
6174 /* Override any gcc2 internal prototype to avoid an error. */
6175 /* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6177 char $ac_func();
6179 int main() {
6181 /* The GNU C library defines this for functions which it implements
6182 to always fail with ENOSYS. Some functions are actually named
6183 something starting with __ and the normal name is an alias. */
6184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6185 choke me
6186 #else
6187 $ac_func();
6188 #endif
6190 ; return 0; }
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6193 rm -rf conftest*
6194 eval "ac_cv_func_$ac_func=yes"
6195 else
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6198 rm -rf conftest*
6199 eval "ac_cv_func_$ac_func=no"
6201 rm -f conftest*
6204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6207 cat >> confdefs.h <<EOF
6208 #define $ac_tr_func 1
6211 else
6212 echo "$ac_t""no" 1>&6
6214 done
6216 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6219 echo "configure:6220: checking for $ac_func" >&5
6220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6222 else
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char $ac_func(); below. */
6228 #include <assert.h>
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6232 char $ac_func();
6234 int main() {
6236 /* The GNU C library defines this for functions which it implements
6237 to always fail with ENOSYS. Some functions are actually named
6238 something starting with __ and the normal name is an alias. */
6239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6240 choke me
6241 #else
6242 $ac_func();
6243 #endif
6245 ; return 0; }
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6248 rm -rf conftest*
6249 eval "ac_cv_func_$ac_func=yes"
6250 else
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6253 rm -rf conftest*
6254 eval "ac_cv_func_$ac_func=no"
6256 rm -f conftest*
6259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6262 cat >> confdefs.h <<EOF
6263 #define $ac_tr_func 1
6266 else
6267 echo "$ac_t""no" 1>&6
6269 done
6271 for ac_func in open64 _open64 __open64 creat64
6273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6274 echo "configure:6275: checking for $ac_func" >&5
6275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6277 else
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6281 /* System header to define __stub macros and hopefully few prototypes,
6282 which can conflict with char $ac_func(); below. */
6283 #include <assert.h>
6284 /* Override any gcc2 internal prototype to avoid an error. */
6285 /* We use char because int might match the return type of a gcc2
6286 builtin and then its argument prototype would still apply. */
6287 char $ac_func();
6289 int main() {
6291 /* The GNU C library defines this for functions which it implements
6292 to always fail with ENOSYS. Some functions are actually named
6293 something starting with __ and the normal name is an alias. */
6294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6295 choke me
6296 #else
6297 $ac_func();
6298 #endif
6300 ; return 0; }
6302 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6303 rm -rf conftest*
6304 eval "ac_cv_func_$ac_func=yes"
6305 else
6306 echo "configure: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6308 rm -rf conftest*
6309 eval "ac_cv_func_$ac_func=no"
6311 rm -f conftest*
6314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6315 echo "$ac_t""yes" 1>&6
6316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6317 cat >> confdefs.h <<EOF
6318 #define $ac_tr_func 1
6321 else
6322 echo "$ac_t""no" 1>&6
6324 done
6328 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6331 if test x$ac_cv_func_stat64 = xno ; then
6332 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6333 echo "configure:6334: checking for stat64 in <sys/stat.h>" >&5
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6338 #if defined(HAVE_UNISTD_H)
6339 #include <unistd.h>
6340 #endif
6341 #include <sys/stat.h>
6343 int main() {
6344 struct stat64 st64; exit(stat64(".",&st64));
6345 ; return 0; }
6347 if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6348 rm -rf conftest*
6349 ac_cv_func_stat64=yes
6350 else
6351 echo "configure: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6354 rm -f conftest*
6355 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6356 if test x$ac_cv_func_stat64 = xyes ; then
6357 cat >> confdefs.h <<\EOF
6358 #define HAVE_STAT64 1
6364 if test x$ac_cv_func_lstat64 = xno ; then
6365 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6366 echo "configure:6367: checking for lstat64 in <sys/stat.h>" >&5
6367 cat > conftest.$ac_ext <<EOF
6368 #line 6369 "configure"
6369 #include "confdefs.h"
6371 #if defined(HAVE_UNISTD_H)
6372 #include <unistd.h>
6373 #endif
6374 #include <sys/stat.h>
6376 int main() {
6377 struct stat64 st64; exit(lstat64(".",&st64));
6378 ; return 0; }
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6381 rm -rf conftest*
6382 ac_cv_func_lstat64=yes
6383 else
6384 echo "configure: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 rm -f conftest*
6388 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6389 if test x$ac_cv_func_lstat64 = xyes ; then
6390 cat >> confdefs.h <<\EOF
6391 #define HAVE_LSTAT64 1
6397 if test x$ac_cv_func_fstat64 = xno ; then
6398 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6399 echo "configure:6400: checking for fstat64 in <sys/stat.h>" >&5
6400 cat > conftest.$ac_ext <<EOF
6401 #line 6402 "configure"
6402 #include "confdefs.h"
6404 #if defined(HAVE_UNISTD_H)
6405 #include <unistd.h>
6406 #endif
6407 #include <sys/stat.h>
6409 int main() {
6410 struct stat64 st64; exit(fstat64(0,&st64));
6411 ; return 0; }
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 rm -rf conftest*
6415 ac_cv_func_fstat64=yes
6416 else
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6420 rm -f conftest*
6421 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6422 if test x$ac_cv_func_fstat64 = xyes ; then
6423 cat >> confdefs.h <<\EOF
6424 #define HAVE_FSTAT64 1
6431 # If no strcasecmp, check for it in some known places
6432 # It is in -lresolv on ReliantUNIX and UnixWare
6433 # -lresolve *must* follow -lnsl for name resolution to work properly
6436 if test x$ac_cv_func_strcasecmp = xno ; then
6437 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6438 echo "configure:6439: checking for strcasecmp in -lresolv" >&5
6439 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6442 else
6443 ac_save_LIBS="$LIBS"
6444 LIBS="-lresolv $LIBS"
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6448 /* Override any gcc2 internal prototype to avoid an error. */
6449 /* We use char because int might match the return type of a gcc2
6450 builtin and then its argument prototype would still apply. */
6451 char strcasecmp();
6453 int main() {
6454 strcasecmp()
6455 ; return 0; }
6457 if { (eval echo configure:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6458 rm -rf conftest*
6459 eval "ac_cv_lib_$ac_lib_var=yes"
6460 else
6461 echo "configure: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6463 rm -rf conftest*
6464 eval "ac_cv_lib_$ac_lib_var=no"
6466 rm -f conftest*
6467 LIBS="$ac_save_LIBS"
6470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6471 echo "$ac_t""yes" 1>&6
6472 LIBS="$LIBS -lresolv"
6473 cat >> confdefs.h <<\EOF
6474 #define HAVE_STRCASECMP 1
6477 else
6478 echo "$ac_t""no" 1>&6
6484 # Check for the functions putprpwnam, set_auth_parameters,
6485 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6486 # Needed for OSF1 and HPUX.
6489 case "$LIBS" in
6490 *-lsecurity*) for ac_func in putprpwnam
6492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6493 echo "configure:6494: checking for $ac_func" >&5
6494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6495 echo $ac_n "(cached) $ac_c" 1>&6
6496 else
6497 cat > conftest.$ac_ext <<EOF
6498 #line 6499 "configure"
6499 #include "confdefs.h"
6500 /* System header to define __stub macros and hopefully few prototypes,
6501 which can conflict with char $ac_func(); below. */
6502 #include <assert.h>
6503 /* Override any gcc2 internal prototype to avoid an error. */
6504 /* We use char because int might match the return type of a gcc2
6505 builtin and then its argument prototype would still apply. */
6506 char $ac_func();
6508 int main() {
6510 /* The GNU C library defines this for functions which it implements
6511 to always fail with ENOSYS. Some functions are actually named
6512 something starting with __ and the normal name is an alias. */
6513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514 choke me
6515 #else
6516 $ac_func();
6517 #endif
6519 ; return 0; }
6521 if { (eval echo configure:6522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6522 rm -rf conftest*
6523 eval "ac_cv_func_$ac_func=yes"
6524 else
6525 echo "configure: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6527 rm -rf conftest*
6528 eval "ac_cv_func_$ac_func=no"
6530 rm -f conftest*
6533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6534 echo "$ac_t""yes" 1>&6
6535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6536 cat >> confdefs.h <<EOF
6537 #define $ac_tr_func 1
6540 else
6541 echo "$ac_t""no" 1>&6
6543 done
6545 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6546 echo "configure:6547: checking for putprpwnam in -lsecurity" >&5
6547 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6550 else
6551 ac_save_LIBS="$LIBS"
6552 LIBS="-lsecurity $LIBS"
6553 cat > conftest.$ac_ext <<EOF
6554 #line 6555 "configure"
6555 #include "confdefs.h"
6556 /* Override any gcc2 internal prototype to avoid an error. */
6557 /* We use char because int might match the return type of a gcc2
6558 builtin and then its argument prototype would still apply. */
6559 char putprpwnam();
6561 int main() {
6562 putprpwnam()
6563 ; return 0; }
6565 if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6566 rm -rf conftest*
6567 eval "ac_cv_lib_$ac_lib_var=yes"
6568 else
6569 echo "configure: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6571 rm -rf conftest*
6572 eval "ac_cv_lib_$ac_lib_var=no"
6574 rm -f conftest*
6575 LIBS="$ac_save_LIBS"
6578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6579 echo "$ac_t""yes" 1>&6
6580 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6582 cat >> confdefs.h <<EOF
6583 #define $ac_tr_lib 1
6586 LIBS="-lsecurity $LIBS"
6588 else
6589 echo "$ac_t""no" 1>&6
6592 for ac_func in putprpwnam
6594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6595 echo "configure:6596: checking for $ac_func" >&5
6596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6598 else
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* System header to define __stub macros and hopefully few prototypes,
6603 which can conflict with char $ac_func(); below. */
6604 #include <assert.h>
6605 /* Override any gcc2 internal prototype to avoid an error. */
6606 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */
6608 char $ac_func();
6610 int main() {
6612 /* The GNU C library defines this for functions which it implements
6613 to always fail with ENOSYS. Some functions are actually named
6614 something starting with __ and the normal name is an alias. */
6615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6616 choke me
6617 #else
6618 $ac_func();
6619 #endif
6621 ; return 0; }
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6624 rm -rf conftest*
6625 eval "ac_cv_func_$ac_func=yes"
6626 else
6627 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6629 rm -rf conftest*
6630 eval "ac_cv_func_$ac_func=no"
6632 rm -f conftest*
6635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6636 echo "$ac_t""yes" 1>&6
6637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6638 cat >> confdefs.h <<EOF
6639 #define $ac_tr_func 1
6642 else
6643 echo "$ac_t""no" 1>&6
6645 done
6648 esac
6650 case "$LIBS" in
6651 *-lsec*) for ac_func in putprpwnam
6653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6654 echo "configure:6655: checking for $ac_func" >&5
6655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6657 else
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* System header to define __stub macros and hopefully few prototypes,
6662 which can conflict with char $ac_func(); below. */
6663 #include <assert.h>
6664 /* Override any gcc2 internal prototype to avoid an error. */
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6667 char $ac_func();
6669 int main() {
6671 /* The GNU C library defines this for functions which it implements
6672 to always fail with ENOSYS. Some functions are actually named
6673 something starting with __ and the normal name is an alias. */
6674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6675 choke me
6676 #else
6677 $ac_func();
6678 #endif
6680 ; return 0; }
6682 if { (eval echo configure:6683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 rm -rf conftest*
6684 eval "ac_cv_func_$ac_func=yes"
6685 else
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6688 rm -rf conftest*
6689 eval "ac_cv_func_$ac_func=no"
6691 rm -f conftest*
6694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6697 cat >> confdefs.h <<EOF
6698 #define $ac_tr_func 1
6701 else
6702 echo "$ac_t""no" 1>&6
6704 done
6706 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6707 echo "configure:6708: checking for putprpwnam in -lsec" >&5
6708 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6710 echo $ac_n "(cached) $ac_c" 1>&6
6711 else
6712 ac_save_LIBS="$LIBS"
6713 LIBS="-lsec $LIBS"
6714 cat > conftest.$ac_ext <<EOF
6715 #line 6716 "configure"
6716 #include "confdefs.h"
6717 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */
6720 char putprpwnam();
6722 int main() {
6723 putprpwnam()
6724 ; return 0; }
6726 if { (eval echo configure:6727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6727 rm -rf conftest*
6728 eval "ac_cv_lib_$ac_lib_var=yes"
6729 else
6730 echo "configure: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6732 rm -rf conftest*
6733 eval "ac_cv_lib_$ac_lib_var=no"
6735 rm -f conftest*
6736 LIBS="$ac_save_LIBS"
6739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6740 echo "$ac_t""yes" 1>&6
6741 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6743 cat >> confdefs.h <<EOF
6744 #define $ac_tr_lib 1
6747 LIBS="-lsec $LIBS"
6749 else
6750 echo "$ac_t""no" 1>&6
6753 for ac_func in putprpwnam
6755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6756 echo "configure:6757: checking for $ac_func" >&5
6757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6758 echo $ac_n "(cached) $ac_c" 1>&6
6759 else
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 /* System header to define __stub macros and hopefully few prototypes,
6764 which can conflict with char $ac_func(); below. */
6765 #include <assert.h>
6766 /* Override any gcc2 internal prototype to avoid an error. */
6767 /* We use char because int might match the return type of a gcc2
6768 builtin and then its argument prototype would still apply. */
6769 char $ac_func();
6771 int main() {
6773 /* The GNU C library defines this for functions which it implements
6774 to always fail with ENOSYS. Some functions are actually named
6775 something starting with __ and the normal name is an alias. */
6776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6777 choke me
6778 #else
6779 $ac_func();
6780 #endif
6782 ; return 0; }
6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6785 rm -rf conftest*
6786 eval "ac_cv_func_$ac_func=yes"
6787 else
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 rm -rf conftest*
6791 eval "ac_cv_func_$ac_func=no"
6793 rm -f conftest*
6796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6797 echo "$ac_t""yes" 1>&6
6798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6799 cat >> confdefs.h <<EOF
6800 #define $ac_tr_func 1
6803 else
6804 echo "$ac_t""no" 1>&6
6806 done
6809 esac
6812 case "$LIBS" in
6813 *-lsecurity*) for ac_func in set_auth_parameters
6815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6816 echo "configure:6817: checking for $ac_func" >&5
6817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6819 else
6820 cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6823 /* System header to define __stub macros and hopefully few prototypes,
6824 which can conflict with char $ac_func(); below. */
6825 #include <assert.h>
6826 /* Override any gcc2 internal prototype to avoid an error. */
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6829 char $ac_func();
6831 int main() {
6833 /* The GNU C library defines this for functions which it implements
6834 to always fail with ENOSYS. Some functions are actually named
6835 something starting with __ and the normal name is an alias. */
6836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6837 choke me
6838 #else
6839 $ac_func();
6840 #endif
6842 ; return 0; }
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6845 rm -rf conftest*
6846 eval "ac_cv_func_$ac_func=yes"
6847 else
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 rm -rf conftest*
6851 eval "ac_cv_func_$ac_func=no"
6853 rm -f conftest*
6856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6857 echo "$ac_t""yes" 1>&6
6858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6859 cat >> confdefs.h <<EOF
6860 #define $ac_tr_func 1
6863 else
6864 echo "$ac_t""no" 1>&6
6866 done
6868 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6869 echo "configure:6870: checking for set_auth_parameters in -lsecurity" >&5
6870 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6872 echo $ac_n "(cached) $ac_c" 1>&6
6873 else
6874 ac_save_LIBS="$LIBS"
6875 LIBS="-lsecurity $LIBS"
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 /* Override any gcc2 internal prototype to avoid an error. */
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6882 char set_auth_parameters();
6884 int main() {
6885 set_auth_parameters()
6886 ; return 0; }
6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6889 rm -rf conftest*
6890 eval "ac_cv_lib_$ac_lib_var=yes"
6891 else
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6894 rm -rf conftest*
6895 eval "ac_cv_lib_$ac_lib_var=no"
6897 rm -f conftest*
6898 LIBS="$ac_save_LIBS"
6901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6902 echo "$ac_t""yes" 1>&6
6903 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6904 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6905 cat >> confdefs.h <<EOF
6906 #define $ac_tr_lib 1
6909 LIBS="-lsecurity $LIBS"
6911 else
6912 echo "$ac_t""no" 1>&6
6915 for ac_func in set_auth_parameters
6917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6918 echo "configure:6919: checking for $ac_func" >&5
6919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6921 else
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 /* System header to define __stub macros and hopefully few prototypes,
6926 which can conflict with char $ac_func(); below. */
6927 #include <assert.h>
6928 /* Override any gcc2 internal prototype to avoid an error. */
6929 /* We use char because int might match the return type of a gcc2
6930 builtin and then its argument prototype would still apply. */
6931 char $ac_func();
6933 int main() {
6935 /* The GNU C library defines this for functions which it implements
6936 to always fail with ENOSYS. Some functions are actually named
6937 something starting with __ and the normal name is an alias. */
6938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6939 choke me
6940 #else
6941 $ac_func();
6942 #endif
6944 ; return 0; }
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6947 rm -rf conftest*
6948 eval "ac_cv_func_$ac_func=yes"
6949 else
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6952 rm -rf conftest*
6953 eval "ac_cv_func_$ac_func=no"
6955 rm -f conftest*
6958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6959 echo "$ac_t""yes" 1>&6
6960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6961 cat >> confdefs.h <<EOF
6962 #define $ac_tr_func 1
6965 else
6966 echo "$ac_t""no" 1>&6
6968 done
6971 esac
6973 case "$LIBS" in
6974 *-lsec*) for ac_func in set_auth_parameters
6976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6977 echo "configure:6978: checking for $ac_func" >&5
6978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6980 else
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6984 /* System header to define __stub macros and hopefully few prototypes,
6985 which can conflict with char $ac_func(); below. */
6986 #include <assert.h>
6987 /* Override any gcc2 internal prototype to avoid an error. */
6988 /* We use char because int might match the return type of a gcc2
6989 builtin and then its argument prototype would still apply. */
6990 char $ac_func();
6992 int main() {
6994 /* The GNU C library defines this for functions which it implements
6995 to always fail with ENOSYS. Some functions are actually named
6996 something starting with __ and the normal name is an alias. */
6997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6998 choke me
6999 #else
7000 $ac_func();
7001 #endif
7003 ; return 0; }
7005 if { (eval echo configure:7006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7006 rm -rf conftest*
7007 eval "ac_cv_func_$ac_func=yes"
7008 else
7009 echo "configure: failed program was:" >&5
7010 cat conftest.$ac_ext >&5
7011 rm -rf conftest*
7012 eval "ac_cv_func_$ac_func=no"
7014 rm -f conftest*
7017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7018 echo "$ac_t""yes" 1>&6
7019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7020 cat >> confdefs.h <<EOF
7021 #define $ac_tr_func 1
7024 else
7025 echo "$ac_t""no" 1>&6
7027 done
7029 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7030 echo "configure:7031: checking for set_auth_parameters in -lsec" >&5
7031 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7033 echo $ac_n "(cached) $ac_c" 1>&6
7034 else
7035 ac_save_LIBS="$LIBS"
7036 LIBS="-lsec $LIBS"
7037 cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure"
7039 #include "confdefs.h"
7040 /* Override any gcc2 internal prototype to avoid an error. */
7041 /* We use char because int might match the return type of a gcc2
7042 builtin and then its argument prototype would still apply. */
7043 char set_auth_parameters();
7045 int main() {
7046 set_auth_parameters()
7047 ; return 0; }
7049 if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7050 rm -rf conftest*
7051 eval "ac_cv_lib_$ac_lib_var=yes"
7052 else
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 rm -rf conftest*
7056 eval "ac_cv_lib_$ac_lib_var=no"
7058 rm -f conftest*
7059 LIBS="$ac_save_LIBS"
7062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7064 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7065 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7066 cat >> confdefs.h <<EOF
7067 #define $ac_tr_lib 1
7070 LIBS="-lsec $LIBS"
7072 else
7073 echo "$ac_t""no" 1>&6
7076 for ac_func in set_auth_parameters
7078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7079 echo "configure:7080: checking for $ac_func" >&5
7080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7081 echo $ac_n "(cached) $ac_c" 1>&6
7082 else
7083 cat > conftest.$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 /* System header to define __stub macros and hopefully few prototypes,
7087 which can conflict with char $ac_func(); below. */
7088 #include <assert.h>
7089 /* Override any gcc2 internal prototype to avoid an error. */
7090 /* We use char because int might match the return type of a gcc2
7091 builtin and then its argument prototype would still apply. */
7092 char $ac_func();
7094 int main() {
7096 /* The GNU C library defines this for functions which it implements
7097 to always fail with ENOSYS. Some functions are actually named
7098 something starting with __ and the normal name is an alias. */
7099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7100 choke me
7101 #else
7102 $ac_func();
7103 #endif
7105 ; return 0; }
7107 if { (eval echo configure:7108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7108 rm -rf conftest*
7109 eval "ac_cv_func_$ac_func=yes"
7110 else
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7113 rm -rf conftest*
7114 eval "ac_cv_func_$ac_func=no"
7116 rm -f conftest*
7119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7120 echo "$ac_t""yes" 1>&6
7121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7122 cat >> confdefs.h <<EOF
7123 #define $ac_tr_func 1
7126 else
7127 echo "$ac_t""no" 1>&6
7129 done
7132 esac
7135 # UnixWare 7.x has its getspnam in -lgen
7136 case "$LIBS" in
7137 *-lgen*) for ac_func in getspnam
7139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7140 echo "configure:7141: checking for $ac_func" >&5
7141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7143 else
7144 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7147 /* System header to define __stub macros and hopefully few prototypes,
7148 which can conflict with char $ac_func(); below. */
7149 #include <assert.h>
7150 /* Override any gcc2 internal prototype to avoid an error. */
7151 /* We use char because int might match the return type of a gcc2
7152 builtin and then its argument prototype would still apply. */
7153 char $ac_func();
7155 int main() {
7157 /* The GNU C library defines this for functions which it implements
7158 to always fail with ENOSYS. Some functions are actually named
7159 something starting with __ and the normal name is an alias. */
7160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7161 choke me
7162 #else
7163 $ac_func();
7164 #endif
7166 ; return 0; }
7168 if { (eval echo configure:7169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7169 rm -rf conftest*
7170 eval "ac_cv_func_$ac_func=yes"
7171 else
7172 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7174 rm -rf conftest*
7175 eval "ac_cv_func_$ac_func=no"
7177 rm -f conftest*
7180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7181 echo "$ac_t""yes" 1>&6
7182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7183 cat >> confdefs.h <<EOF
7184 #define $ac_tr_func 1
7187 else
7188 echo "$ac_t""no" 1>&6
7190 done
7192 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7193 echo "configure:7194: checking for getspnam in -lgen" >&5
7194 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7197 else
7198 ac_save_LIBS="$LIBS"
7199 LIBS="-lgen $LIBS"
7200 cat > conftest.$ac_ext <<EOF
7201 #line 7202 "configure"
7202 #include "confdefs.h"
7203 /* Override any gcc2 internal prototype to avoid an error. */
7204 /* We use char because int might match the return type of a gcc2
7205 builtin and then its argument prototype would still apply. */
7206 char getspnam();
7208 int main() {
7209 getspnam()
7210 ; return 0; }
7212 if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7213 rm -rf conftest*
7214 eval "ac_cv_lib_$ac_lib_var=yes"
7215 else
7216 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 rm -rf conftest*
7219 eval "ac_cv_lib_$ac_lib_var=no"
7221 rm -f conftest*
7222 LIBS="$ac_save_LIBS"
7225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7226 echo "$ac_t""yes" 1>&6
7227 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7229 cat >> confdefs.h <<EOF
7230 #define $ac_tr_lib 1
7233 LIBS="-lgen $LIBS"
7235 else
7236 echo "$ac_t""no" 1>&6
7239 for ac_func in getspnam
7241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_func" >&5
7243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7245 else
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char $ac_func(); below. */
7251 #include <assert.h>
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255 char $ac_func();
7257 int main() {
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 choke me
7264 #else
7265 $ac_func();
7266 #endif
7268 ; return 0; }
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 rm -rf conftest*
7272 eval "ac_cv_func_$ac_func=yes"
7273 else
7274 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 rm -rf conftest*
7277 eval "ac_cv_func_$ac_func=no"
7279 rm -f conftest*
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283 echo "$ac_t""yes" 1>&6
7284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7285 cat >> confdefs.h <<EOF
7286 #define $ac_tr_func 1
7289 else
7290 echo "$ac_t""no" 1>&6
7292 done
7295 esac
7298 case "$LIBS" in
7299 *-lsecurity*) for ac_func in getspnam
7301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7302 echo "configure:7303: checking for $ac_func" >&5
7303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7304 echo $ac_n "(cached) $ac_c" 1>&6
7305 else
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 /* System header to define __stub macros and hopefully few prototypes,
7310 which can conflict with char $ac_func(); below. */
7311 #include <assert.h>
7312 /* Override any gcc2 internal prototype to avoid an error. */
7313 /* We use char because int might match the return type of a gcc2
7314 builtin and then its argument prototype would still apply. */
7315 char $ac_func();
7317 int main() {
7319 /* The GNU C library defines this for functions which it implements
7320 to always fail with ENOSYS. Some functions are actually named
7321 something starting with __ and the normal name is an alias. */
7322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7323 choke me
7324 #else
7325 $ac_func();
7326 #endif
7328 ; return 0; }
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7331 rm -rf conftest*
7332 eval "ac_cv_func_$ac_func=yes"
7333 else
7334 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5
7336 rm -rf conftest*
7337 eval "ac_cv_func_$ac_func=no"
7339 rm -f conftest*
7342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7343 echo "$ac_t""yes" 1>&6
7344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7345 cat >> confdefs.h <<EOF
7346 #define $ac_tr_func 1
7349 else
7350 echo "$ac_t""no" 1>&6
7352 done
7354 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7355 echo "configure:7356: checking for getspnam in -lsecurity" >&5
7356 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7358 echo $ac_n "(cached) $ac_c" 1>&6
7359 else
7360 ac_save_LIBS="$LIBS"
7361 LIBS="-lsecurity $LIBS"
7362 cat > conftest.$ac_ext <<EOF
7363 #line 7364 "configure"
7364 #include "confdefs.h"
7365 /* Override any gcc2 internal prototype to avoid an error. */
7366 /* We use char because int might match the return type of a gcc2
7367 builtin and then its argument prototype would still apply. */
7368 char getspnam();
7370 int main() {
7371 getspnam()
7372 ; return 0; }
7374 if { (eval echo configure:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7375 rm -rf conftest*
7376 eval "ac_cv_lib_$ac_lib_var=yes"
7377 else
7378 echo "configure: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 rm -rf conftest*
7381 eval "ac_cv_lib_$ac_lib_var=no"
7383 rm -f conftest*
7384 LIBS="$ac_save_LIBS"
7387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7388 echo "$ac_t""yes" 1>&6
7389 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7391 cat >> confdefs.h <<EOF
7392 #define $ac_tr_lib 1
7395 LIBS="-lsecurity $LIBS"
7397 else
7398 echo "$ac_t""no" 1>&6
7401 for ac_func in getspnam
7403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7404 echo "configure:7405: checking for $ac_func" >&5
7405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7407 else
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* System header to define __stub macros and hopefully few prototypes,
7412 which can conflict with char $ac_func(); below. */
7413 #include <assert.h>
7414 /* Override any gcc2 internal prototype to avoid an error. */
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7417 char $ac_func();
7419 int main() {
7421 /* The GNU C library defines this for functions which it implements
7422 to always fail with ENOSYS. Some functions are actually named
7423 something starting with __ and the normal name is an alias. */
7424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7425 choke me
7426 #else
7427 $ac_func();
7428 #endif
7430 ; return 0; }
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7433 rm -rf conftest*
7434 eval "ac_cv_func_$ac_func=yes"
7435 else
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 rm -rf conftest*
7439 eval "ac_cv_func_$ac_func=no"
7441 rm -f conftest*
7444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7447 cat >> confdefs.h <<EOF
7448 #define $ac_tr_func 1
7451 else
7452 echo "$ac_t""no" 1>&6
7454 done
7457 esac
7459 case "$LIBS" in
7460 *-lsec*) for ac_func in getspnam
7462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7463 echo "configure:7464: checking for $ac_func" >&5
7464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7466 else
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 /* System header to define __stub macros and hopefully few prototypes,
7471 which can conflict with char $ac_func(); below. */
7472 #include <assert.h>
7473 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7476 char $ac_func();
7478 int main() {
7480 /* The GNU C library defines this for functions which it implements
7481 to always fail with ENOSYS. Some functions are actually named
7482 something starting with __ and the normal name is an alias. */
7483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7484 choke me
7485 #else
7486 $ac_func();
7487 #endif
7489 ; return 0; }
7491 if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7492 rm -rf conftest*
7493 eval "ac_cv_func_$ac_func=yes"
7494 else
7495 echo "configure: failed program was:" >&5
7496 cat conftest.$ac_ext >&5
7497 rm -rf conftest*
7498 eval "ac_cv_func_$ac_func=no"
7500 rm -f conftest*
7503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7504 echo "$ac_t""yes" 1>&6
7505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7506 cat >> confdefs.h <<EOF
7507 #define $ac_tr_func 1
7510 else
7511 echo "$ac_t""no" 1>&6
7513 done
7515 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7516 echo "configure:7517: checking for getspnam in -lsec" >&5
7517 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7519 echo $ac_n "(cached) $ac_c" 1>&6
7520 else
7521 ac_save_LIBS="$LIBS"
7522 LIBS="-lsec $LIBS"
7523 cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7526 /* Override any gcc2 internal prototype to avoid an error. */
7527 /* We use char because int might match the return type of a gcc2
7528 builtin and then its argument prototype would still apply. */
7529 char getspnam();
7531 int main() {
7532 getspnam()
7533 ; return 0; }
7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7536 rm -rf conftest*
7537 eval "ac_cv_lib_$ac_lib_var=yes"
7538 else
7539 echo "configure: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7541 rm -rf conftest*
7542 eval "ac_cv_lib_$ac_lib_var=no"
7544 rm -f conftest*
7545 LIBS="$ac_save_LIBS"
7548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7549 echo "$ac_t""yes" 1>&6
7550 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7552 cat >> confdefs.h <<EOF
7553 #define $ac_tr_lib 1
7556 LIBS="-lsec $LIBS"
7558 else
7559 echo "$ac_t""no" 1>&6
7562 for ac_func in getspnam
7564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7565 echo "configure:7566: checking for $ac_func" >&5
7566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7568 else
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char $ac_func(); below. */
7574 #include <assert.h>
7575 /* Override any gcc2 internal prototype to avoid an error. */
7576 /* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7578 char $ac_func();
7580 int main() {
7582 /* The GNU C library defines this for functions which it implements
7583 to always fail with ENOSYS. Some functions are actually named
7584 something starting with __ and the normal name is an alias. */
7585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7586 choke me
7587 #else
7588 $ac_func();
7589 #endif
7591 ; return 0; }
7593 if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7594 rm -rf conftest*
7595 eval "ac_cv_func_$ac_func=yes"
7596 else
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 rm -rf conftest*
7600 eval "ac_cv_func_$ac_func=no"
7602 rm -f conftest*
7605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7608 cat >> confdefs.h <<EOF
7609 #define $ac_tr_func 1
7612 else
7613 echo "$ac_t""no" 1>&6
7615 done
7618 esac
7621 case "$LIBS" in
7622 *-lsecurity*) for ac_func in bigcrypt
7624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7625 echo "configure:7626: checking for $ac_func" >&5
7626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7628 else
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* System header to define __stub macros and hopefully few prototypes,
7633 which can conflict with char $ac_func(); below. */
7634 #include <assert.h>
7635 /* Override any gcc2 internal prototype to avoid an error. */
7636 /* We use char because int might match the return type of a gcc2
7637 builtin and then its argument prototype would still apply. */
7638 char $ac_func();
7640 int main() {
7642 /* The GNU C library defines this for functions which it implements
7643 to always fail with ENOSYS. Some functions are actually named
7644 something starting with __ and the normal name is an alias. */
7645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7646 choke me
7647 #else
7648 $ac_func();
7649 #endif
7651 ; return 0; }
7653 if { (eval echo configure:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7654 rm -rf conftest*
7655 eval "ac_cv_func_$ac_func=yes"
7656 else
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7659 rm -rf conftest*
7660 eval "ac_cv_func_$ac_func=no"
7662 rm -f conftest*
7665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7666 echo "$ac_t""yes" 1>&6
7667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7668 cat >> confdefs.h <<EOF
7669 #define $ac_tr_func 1
7672 else
7673 echo "$ac_t""no" 1>&6
7675 done
7677 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7678 echo "configure:7679: checking for bigcrypt in -lsecurity" >&5
7679 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7681 echo $ac_n "(cached) $ac_c" 1>&6
7682 else
7683 ac_save_LIBS="$LIBS"
7684 LIBS="-lsecurity $LIBS"
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7688 /* Override any gcc2 internal prototype to avoid an error. */
7689 /* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7691 char bigcrypt();
7693 int main() {
7694 bigcrypt()
7695 ; return 0; }
7697 if { (eval echo configure:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7698 rm -rf conftest*
7699 eval "ac_cv_lib_$ac_lib_var=yes"
7700 else
7701 echo "configure: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7703 rm -rf conftest*
7704 eval "ac_cv_lib_$ac_lib_var=no"
7706 rm -f conftest*
7707 LIBS="$ac_save_LIBS"
7710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7711 echo "$ac_t""yes" 1>&6
7712 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7714 cat >> confdefs.h <<EOF
7715 #define $ac_tr_lib 1
7718 LIBS="-lsecurity $LIBS"
7720 else
7721 echo "$ac_t""no" 1>&6
7724 for ac_func in bigcrypt
7726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7727 echo "configure:7728: checking for $ac_func" >&5
7728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7730 else
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* System header to define __stub macros and hopefully few prototypes,
7735 which can conflict with char $ac_func(); below. */
7736 #include <assert.h>
7737 /* Override any gcc2 internal prototype to avoid an error. */
7738 /* We use char because int might match the return type of a gcc2
7739 builtin and then its argument prototype would still apply. */
7740 char $ac_func();
7742 int main() {
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7748 choke me
7749 #else
7750 $ac_func();
7751 #endif
7753 ; return 0; }
7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7756 rm -rf conftest*
7757 eval "ac_cv_func_$ac_func=yes"
7758 else
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 rm -rf conftest*
7762 eval "ac_cv_func_$ac_func=no"
7764 rm -f conftest*
7767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7768 echo "$ac_t""yes" 1>&6
7769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7770 cat >> confdefs.h <<EOF
7771 #define $ac_tr_func 1
7774 else
7775 echo "$ac_t""no" 1>&6
7777 done
7780 esac
7782 case "$LIBS" in
7783 *-lsec*) for ac_func in bigcrypt
7785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7786 echo "configure:7787: checking for $ac_func" >&5
7787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7789 else
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 /* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char $ac_func(); below. */
7795 #include <assert.h>
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799 char $ac_func();
7801 int main() {
7803 /* The GNU C library defines this for functions which it implements
7804 to always fail with ENOSYS. Some functions are actually named
7805 something starting with __ and the normal name is an alias. */
7806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7807 choke me
7808 #else
7809 $ac_func();
7810 #endif
7812 ; return 0; }
7814 if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7815 rm -rf conftest*
7816 eval "ac_cv_func_$ac_func=yes"
7817 else
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7820 rm -rf conftest*
7821 eval "ac_cv_func_$ac_func=no"
7823 rm -f conftest*
7826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7827 echo "$ac_t""yes" 1>&6
7828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7829 cat >> confdefs.h <<EOF
7830 #define $ac_tr_func 1
7833 else
7834 echo "$ac_t""no" 1>&6
7836 done
7838 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7839 echo "configure:7840: checking for bigcrypt in -lsec" >&5
7840 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7842 echo $ac_n "(cached) $ac_c" 1>&6
7843 else
7844 ac_save_LIBS="$LIBS"
7845 LIBS="-lsec $LIBS"
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7852 char bigcrypt();
7854 int main() {
7855 bigcrypt()
7856 ; return 0; }
7858 if { (eval echo configure:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7859 rm -rf conftest*
7860 eval "ac_cv_lib_$ac_lib_var=yes"
7861 else
7862 echo "configure: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7864 rm -rf conftest*
7865 eval "ac_cv_lib_$ac_lib_var=no"
7867 rm -f conftest*
7868 LIBS="$ac_save_LIBS"
7871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7872 echo "$ac_t""yes" 1>&6
7873 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7875 cat >> confdefs.h <<EOF
7876 #define $ac_tr_lib 1
7879 LIBS="-lsec $LIBS"
7881 else
7882 echo "$ac_t""no" 1>&6
7885 for ac_func in bigcrypt
7887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7888 echo "configure:7889: checking for $ac_func" >&5
7889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7890 echo $ac_n "(cached) $ac_c" 1>&6
7891 else
7892 cat > conftest.$ac_ext <<EOF
7893 #line 7894 "configure"
7894 #include "confdefs.h"
7895 /* System header to define __stub macros and hopefully few prototypes,
7896 which can conflict with char $ac_func(); below. */
7897 #include <assert.h>
7898 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7901 char $ac_func();
7903 int main() {
7905 /* The GNU C library defines this for functions which it implements
7906 to always fail with ENOSYS. Some functions are actually named
7907 something starting with __ and the normal name is an alias. */
7908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7909 choke me
7910 #else
7911 $ac_func();
7912 #endif
7914 ; return 0; }
7916 if { (eval echo configure:7917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7917 rm -rf conftest*
7918 eval "ac_cv_func_$ac_func=yes"
7919 else
7920 echo "configure: failed program was:" >&5
7921 cat conftest.$ac_ext >&5
7922 rm -rf conftest*
7923 eval "ac_cv_func_$ac_func=no"
7925 rm -f conftest*
7928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7929 echo "$ac_t""yes" 1>&6
7930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7931 cat >> confdefs.h <<EOF
7932 #define $ac_tr_func 1
7935 else
7936 echo "$ac_t""no" 1>&6
7938 done
7941 esac
7944 case "$LIBS" in
7945 *-lsecurity*) for ac_func in getprpwnam
7947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7948 echo "configure:7949: checking for $ac_func" >&5
7949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7950 echo $ac_n "(cached) $ac_c" 1>&6
7951 else
7952 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* System header to define __stub macros and hopefully few prototypes,
7956 which can conflict with char $ac_func(); below. */
7957 #include <assert.h>
7958 /* Override any gcc2 internal prototype to avoid an error. */
7959 /* We use char because int might match the return type of a gcc2
7960 builtin and then its argument prototype would still apply. */
7961 char $ac_func();
7963 int main() {
7965 /* The GNU C library defines this for functions which it implements
7966 to always fail with ENOSYS. Some functions are actually named
7967 something starting with __ and the normal name is an alias. */
7968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7969 choke me
7970 #else
7971 $ac_func();
7972 #endif
7974 ; return 0; }
7976 if { (eval echo configure:7977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7977 rm -rf conftest*
7978 eval "ac_cv_func_$ac_func=yes"
7979 else
7980 echo "configure: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 rm -rf conftest*
7983 eval "ac_cv_func_$ac_func=no"
7985 rm -f conftest*
7988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7989 echo "$ac_t""yes" 1>&6
7990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7991 cat >> confdefs.h <<EOF
7992 #define $ac_tr_func 1
7995 else
7996 echo "$ac_t""no" 1>&6
7998 done
8000 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8001 echo "configure:8002: checking for getprpwnam in -lsecurity" >&5
8002 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8004 echo $ac_n "(cached) $ac_c" 1>&6
8005 else
8006 ac_save_LIBS="$LIBS"
8007 LIBS="-lsecurity $LIBS"
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char getprpwnam();
8016 int main() {
8017 getprpwnam()
8018 ; return 0; }
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8021 rm -rf conftest*
8022 eval "ac_cv_lib_$ac_lib_var=yes"
8023 else
8024 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5
8026 rm -rf conftest*
8027 eval "ac_cv_lib_$ac_lib_var=no"
8029 rm -f conftest*
8030 LIBS="$ac_save_LIBS"
8033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8034 echo "$ac_t""yes" 1>&6
8035 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8037 cat >> confdefs.h <<EOF
8038 #define $ac_tr_lib 1
8041 LIBS="-lsecurity $LIBS"
8043 else
8044 echo "$ac_t""no" 1>&6
8047 for ac_func in getprpwnam
8049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8050 echo "configure:8051: checking for $ac_func" >&5
8051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8053 else
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* System header to define __stub macros and hopefully few prototypes,
8058 which can conflict with char $ac_func(); below. */
8059 #include <assert.h>
8060 /* Override any gcc2 internal prototype to avoid an error. */
8061 /* We use char because int might match the return type of a gcc2
8062 builtin and then its argument prototype would still apply. */
8063 char $ac_func();
8065 int main() {
8067 /* The GNU C library defines this for functions which it implements
8068 to always fail with ENOSYS. Some functions are actually named
8069 something starting with __ and the normal name is an alias. */
8070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8071 choke me
8072 #else
8073 $ac_func();
8074 #endif
8076 ; return 0; }
8078 if { (eval echo configure:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8079 rm -rf conftest*
8080 eval "ac_cv_func_$ac_func=yes"
8081 else
8082 echo "configure: failed program was:" >&5
8083 cat conftest.$ac_ext >&5
8084 rm -rf conftest*
8085 eval "ac_cv_func_$ac_func=no"
8087 rm -f conftest*
8090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8093 cat >> confdefs.h <<EOF
8094 #define $ac_tr_func 1
8097 else
8098 echo "$ac_t""no" 1>&6
8100 done
8103 esac
8105 case "$LIBS" in
8106 *-lsec*) for ac_func in getprpwnam
8108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8109 echo "configure:8110: checking for $ac_func" >&5
8110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8112 else
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8116 /* System header to define __stub macros and hopefully few prototypes,
8117 which can conflict with char $ac_func(); below. */
8118 #include <assert.h>
8119 /* Override any gcc2 internal prototype to avoid an error. */
8120 /* We use char because int might match the return type of a gcc2
8121 builtin and then its argument prototype would still apply. */
8122 char $ac_func();
8124 int main() {
8126 /* The GNU C library defines this for functions which it implements
8127 to always fail with ENOSYS. Some functions are actually named
8128 something starting with __ and the normal name is an alias. */
8129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8130 choke me
8131 #else
8132 $ac_func();
8133 #endif
8135 ; return 0; }
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138 rm -rf conftest*
8139 eval "ac_cv_func_$ac_func=yes"
8140 else
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8143 rm -rf conftest*
8144 eval "ac_cv_func_$ac_func=no"
8146 rm -f conftest*
8149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8150 echo "$ac_t""yes" 1>&6
8151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8152 cat >> confdefs.h <<EOF
8153 #define $ac_tr_func 1
8156 else
8157 echo "$ac_t""no" 1>&6
8159 done
8161 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8162 echo "configure:8163: checking for getprpwnam in -lsec" >&5
8163 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8165 echo $ac_n "(cached) $ac_c" 1>&6
8166 else
8167 ac_save_LIBS="$LIBS"
8168 LIBS="-lsec $LIBS"
8169 cat > conftest.$ac_ext <<EOF
8170 #line 8171 "configure"
8171 #include "confdefs.h"
8172 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8175 char getprpwnam();
8177 int main() {
8178 getprpwnam()
8179 ; return 0; }
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8182 rm -rf conftest*
8183 eval "ac_cv_lib_$ac_lib_var=yes"
8184 else
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8187 rm -rf conftest*
8188 eval "ac_cv_lib_$ac_lib_var=no"
8190 rm -f conftest*
8191 LIBS="$ac_save_LIBS"
8194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8195 echo "$ac_t""yes" 1>&6
8196 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8198 cat >> confdefs.h <<EOF
8199 #define $ac_tr_lib 1
8202 LIBS="-lsec $LIBS"
8204 else
8205 echo "$ac_t""no" 1>&6
8208 for ac_func in getprpwnam
8210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8211 echo "configure:8212: checking for $ac_func" >&5
8212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8214 else
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* System header to define __stub macros and hopefully few prototypes,
8219 which can conflict with char $ac_func(); below. */
8220 #include <assert.h>
8221 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8224 char $ac_func();
8226 int main() {
8228 /* The GNU C library defines this for functions which it implements
8229 to always fail with ENOSYS. Some functions are actually named
8230 something starting with __ and the normal name is an alias. */
8231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8232 choke me
8233 #else
8234 $ac_func();
8235 #endif
8237 ; return 0; }
8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8240 rm -rf conftest*
8241 eval "ac_cv_func_$ac_func=yes"
8242 else
8243 echo "configure: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8245 rm -rf conftest*
8246 eval "ac_cv_func_$ac_func=no"
8248 rm -f conftest*
8251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8252 echo "$ac_t""yes" 1>&6
8253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8254 cat >> confdefs.h <<EOF
8255 #define $ac_tr_func 1
8258 else
8259 echo "$ac_t""no" 1>&6
8261 done
8264 esac
8267 # this bit needs to be modified for each OS that is suported by
8268 # smbwrapper. You need to specify how to created a shared library and
8269 # how to compile C code to produce PIC object files
8271 # these are the defaults, good for lots of systems
8272 HOST_OS="$host_os"
8273 LDSHFLAGS="-shared"
8274 SHLD="\${CC}"
8275 PICFLAG=""
8276 PICSUFFIX="po"
8277 POBAD_CC="#"
8278 SHLIBEXT="so"
8279 BLDSHARED="false"
8281 # and these are for particular systems
8282 case "$host_os" in
8283 *linux*) cat >> confdefs.h <<\EOF
8284 #define LINUX 1
8287 BLDSHARED="true"
8288 LDSHFLAGS="-shared"
8289 PICFLAG="-fPIC"
8291 *solaris*) cat >> confdefs.h <<\EOF
8292 #define SUNOS5 1
8295 BLDSHARED="true"
8296 LDSHFLAGS="-Wl,-h,\$@.so -G"
8297 if test "${ac_cv_prog_CC}" = "gcc"; then
8298 PICFLAG="-fPIC"
8299 else
8300 PICFLAG="-KPIC -xO4"
8301 POBAD_CC=""
8302 PICSUFFIX="po.o"
8305 *sunos*) cat >> confdefs.h <<\EOF
8306 #define SUNOS4 1
8309 BLDSHARED="true"
8310 LDSHFLAGS="-Wl,-h,\$@ -G"
8311 PICFLAG="-KPIC -O2" # Is this correct for SunOS
8313 *bsd*) BLDSHARED="true"
8314 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8315 PICFLAG="-fPIC -O2"
8317 *irix*) cat >> confdefs.h <<\EOF
8318 #define IRIX 1
8321 case "$host_os" in
8322 *irix6*) cat >> confdefs.h <<\EOF
8323 #define IRIX6 1
8327 esac
8328 ATTEMPT_WRAP32_BUILD=yes
8329 BLDSHARED="true"
8330 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8331 if test "${ac_cv_prog_CC}" = "gcc"; then
8332 PICFLAG="-fPIC"
8333 else
8334 PICFLAG="-KPIC"
8337 *aix*) cat >> confdefs.h <<\EOF
8338 #define AIX 1
8341 BLDSHARED="true"
8342 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8343 PICFLAG="-O2 -qmaxmem=6000"
8345 *hpux*) cat >> confdefs.h <<\EOF
8346 #define HPUX 1
8349 SHLIBEXT="sl"
8350 # Use special PIC flags for the native HP-UX compiler.
8351 if test $ac_cv_prog_cc_Ae = yes; then
8352 BLDSHARED="true"
8353 LDSHFLAGS="-b -z +h \$@"
8354 PICFLAG="+z"
8357 *qnx*) cat >> confdefs.h <<\EOF
8358 #define QNX 1
8361 *osf*) cat >> confdefs.h <<\EOF
8362 #define OSF1 1
8365 BLDSHARED="true"
8366 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8367 PICFLAG="-fPIC"
8369 *sco*) cat >> confdefs.h <<\EOF
8370 #define SCO 1
8373 *unixware*) cat >> confdefs.h <<\EOF
8374 #define UNIXWARE 1
8377 BLDSHARED="true"
8378 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8379 PICFLAG="-KPIC"
8381 *next2*) cat >> confdefs.h <<\EOF
8382 #define NEXT2 1
8385 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8386 set dummy groff; ac_word=$2
8387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8388 echo "configure:8389: checking for $ac_word" >&5
8389 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8392 if test -n "$ROFF"; then
8393 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8394 else
8395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8396 ac_dummy="$PATH"
8397 for ac_dir in $ac_dummy; do
8398 test -z "$ac_dir" && ac_dir=.
8399 if test -f $ac_dir/$ac_word; then
8400 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8401 break
8403 done
8404 IFS="$ac_save_ifs"
8407 ROFF="$ac_cv_prog_ROFF"
8408 if test -n "$ROFF"; then
8409 echo "$ac_t""$ROFF" 1>&6
8410 else
8411 echo "$ac_t""no" 1>&6
8414 *sysv4*)
8415 case "$host" in
8416 *-univel-*) if test "$GCC" != yes ; then
8417 cat >> confdefs.h <<\EOF
8418 #define HAVE_MEMSET 1
8422 LDSHFLAGS="-G"
8424 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8425 #define RELIANTUNIX 1
8428 esac
8430 *sysv5*)
8431 if test "$GCC" != yes ; then
8432 cat >> confdefs.h <<\EOF
8433 #define HAVE_MEMSET 1
8437 LDSHFLAGS="-G"
8439 esac
8441 ################
8443 echo $ac_n "checking for long long""... $ac_c" 1>&6
8444 echo "configure:8445: checking for long long" >&5
8445 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8447 else
8449 if test "$cross_compiling" = yes; then
8450 samba_cv_have_longlong=cross
8451 else
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8455 #include <stdio.h>
8456 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8458 if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8459 then
8460 samba_cv_have_longlong=yes
8461 else
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8464 rm -fr conftest*
8465 samba_cv_have_longlong=no
8467 rm -fr conftest*
8472 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8473 if test x"$samba_cv_have_longlong" = x"yes"; then
8474 cat >> confdefs.h <<\EOF
8475 #define HAVE_LONGLONG 1
8481 # Check if the compiler supports the LL prefix on long long integers.
8482 # AIX needs this.
8484 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8485 echo "configure:8486: checking for LL suffix on long long integers" >&5
8486 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
8488 else
8490 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8493 #include <stdio.h>
8494 int main() {
8495 long long i = 0x8000000000LL
8496 ; return 0; }
8498 if { (eval echo configure:8499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8499 rm -rf conftest*
8500 samba_cv_compiler_supports_ll=yes
8501 else
8502 echo "configure: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8504 rm -rf conftest*
8505 samba_cv_compiler_supports_ll=no
8507 rm -f conftest*
8510 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8511 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8512 cat >> confdefs.h <<\EOF
8513 #define COMPILER_SUPPORTS_LL 1
8519 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8520 echo "configure:8521: checking for 64 bit off_t" >&5
8521 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8523 else
8525 if test "$cross_compiling" = yes; then
8526 samba_cv_SIZEOF_OFF_T=cross
8527 else
8528 cat > conftest.$ac_ext <<EOF
8529 #line 8530 "configure"
8530 #include "confdefs.h"
8531 #include <stdio.h>
8532 #include <sys/stat.h>
8533 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8536 then
8537 samba_cv_SIZEOF_OFF_T=yes
8538 else
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8541 rm -fr conftest*
8542 samba_cv_SIZEOF_OFF_T=no
8544 rm -fr conftest*
8549 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8550 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8551 cat >> confdefs.h <<\EOF
8552 #define SIZEOF_OFF_T 8
8557 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8558 echo "configure:8559: checking for off64_t" >&5
8559 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8561 else
8563 if test "$cross_compiling" = yes; then
8564 samba_cv_HAVE_OFF64_T=cross
8565 else
8566 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8570 #if defined(HAVE_UNISTD_H)
8571 #include <unistd.h>
8572 #endif
8573 #include <stdio.h>
8574 #include <sys/stat.h>
8575 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8577 if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8578 then
8579 samba_cv_HAVE_OFF64_T=yes
8580 else
8581 echo "configure: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8583 rm -fr conftest*
8584 samba_cv_HAVE_OFF64_T=no
8586 rm -fr conftest*
8591 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8592 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8593 cat >> confdefs.h <<\EOF
8594 #define HAVE_OFF64_T 1
8599 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8600 echo "configure:8601: checking for 64 bit ino_t" >&5
8601 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8603 else
8605 if test "$cross_compiling" = yes; then
8606 samba_cv_SIZEOF_INO_T=cross
8607 else
8608 cat > conftest.$ac_ext <<EOF
8609 #line 8610 "configure"
8610 #include "confdefs.h"
8611 #include <stdio.h>
8612 #include <sys/stat.h>
8613 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8615 if { (eval echo configure:8616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8616 then
8617 samba_cv_SIZEOF_INO_T=yes
8618 else
8619 echo "configure: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 rm -fr conftest*
8622 samba_cv_SIZEOF_INO_T=no
8624 rm -fr conftest*
8629 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8630 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8631 cat >> confdefs.h <<\EOF
8632 #define SIZEOF_INO_T 8
8637 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8638 echo "configure:8639: checking for ino64_t" >&5
8639 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8640 echo $ac_n "(cached) $ac_c" 1>&6
8641 else
8643 if test "$cross_compiling" = yes; then
8644 samba_cv_HAVE_INO64_T=cross
8645 else
8646 cat > conftest.$ac_ext <<EOF
8647 #line 8648 "configure"
8648 #include "confdefs.h"
8650 #if defined(HAVE_UNISTD_H)
8651 #include <unistd.h>
8652 #endif
8653 #include <stdio.h>
8654 #include <sys/stat.h>
8655 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8657 if { (eval echo configure:8658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8658 then
8659 samba_cv_HAVE_INO64_T=yes
8660 else
8661 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8663 rm -fr conftest*
8664 samba_cv_HAVE_INO64_T=no
8666 rm -fr conftest*
8671 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8672 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8673 cat >> confdefs.h <<\EOF
8674 #define HAVE_INO64_T 1
8679 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8680 echo "configure:8681: checking for struct dirent64" >&5
8681 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8683 else
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8689 #if defined(HAVE_UNISTD_H)
8690 #include <unistd.h>
8691 #endif
8692 #include <sys/types.h>
8693 #include <dirent.h>
8694 int main() {
8695 struct dirent64 de;
8696 ; return 0; }
8698 if { (eval echo configure:8699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8699 rm -rf conftest*
8700 samba_cv_HAVE_STRUCT_DIRENT64=yes
8701 else
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8704 rm -rf conftest*
8705 samba_cv_HAVE_STRUCT_DIRENT64=no
8707 rm -f conftest*
8710 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8711 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8712 cat >> confdefs.h <<\EOF
8713 #define HAVE_STRUCT_DIRENT64 1
8718 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8719 echo "configure:8720: checking for unsigned char" >&5
8720 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8722 else
8724 if test "$cross_compiling" = yes; then
8725 samba_cv_HAVE_UNSIGNED_CHAR=cross
8726 else
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8730 #include <stdio.h>
8731 main() { char c; c=250; exit((c > 0)?0:1); }
8733 if { (eval echo configure:8734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8734 then
8735 samba_cv_HAVE_UNSIGNED_CHAR=yes
8736 else
8737 echo "configure: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8739 rm -fr conftest*
8740 samba_cv_HAVE_UNSIGNED_CHAR=no
8742 rm -fr conftest*
8747 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8748 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8749 cat >> confdefs.h <<\EOF
8750 #define HAVE_UNSIGNED_CHAR 1
8755 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8756 echo "configure:8757: checking for sin_len in sock" >&5
8757 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8758 echo $ac_n "(cached) $ac_c" 1>&6
8759 else
8761 cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 #include <sys/types.h>
8765 #include <sys/socket.h>
8766 #include <netinet/in.h>
8767 int main() {
8768 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8769 ; return 0; }
8771 if { (eval echo configure:8772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8772 rm -rf conftest*
8773 samba_cv_HAVE_SOCK_SIN_LEN=yes
8774 else
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8777 rm -rf conftest*
8778 samba_cv_HAVE_SOCK_SIN_LEN=no
8780 rm -f conftest*
8783 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8784 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8785 cat >> confdefs.h <<\EOF
8786 #define HAVE_SOCK_SIN_LEN 1
8791 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8792 echo "configure:8793: checking whether seekdir returns void" >&5
8793 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8794 echo $ac_n "(cached) $ac_c" 1>&6
8795 else
8797 cat > conftest.$ac_ext <<EOF
8798 #line 8799 "configure"
8799 #include "confdefs.h"
8800 #include <sys/types.h>
8801 #include <dirent.h>
8802 void seekdir(DIR *d, long loc) { return; }
8803 int main() {
8804 return 0;
8805 ; return 0; }
8807 if { (eval echo configure:8808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8808 rm -rf conftest*
8809 samba_cv_SEEKDIR_RETURNS_VOID=yes
8810 else
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -rf conftest*
8814 samba_cv_SEEKDIR_RETURNS_VOID=no
8816 rm -f conftest*
8819 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8820 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8821 cat >> confdefs.h <<\EOF
8822 #define SEEKDIR_RETURNS_VOID 1
8827 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8828 echo "configure:8829: checking for __FILE__ macro" >&5
8829 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8831 else
8833 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 #include <stdio.h>
8837 int main() {
8838 printf("%s\n", __FILE__);
8839 ; return 0; }
8841 if { (eval echo configure:8842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8842 rm -rf conftest*
8843 samba_cv_HAVE_FILE_MACRO=yes
8844 else
8845 echo "configure: failed program was:" >&5
8846 cat conftest.$ac_ext >&5
8847 rm -rf conftest*
8848 samba_cv_HAVE_FILE_MACRO=no
8850 rm -f conftest*
8853 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8854 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8855 cat >> confdefs.h <<\EOF
8856 #define HAVE_FILE_MACRO 1
8861 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8862 echo "configure:8863: checking for __FUNCTION__ macro" >&5
8863 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8864 echo $ac_n "(cached) $ac_c" 1>&6
8865 else
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 #include <stdio.h>
8871 int main() {
8872 printf("%s\n", __FUNCTION__);
8873 ; return 0; }
8875 if { (eval echo configure:8876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8876 rm -rf conftest*
8877 samba_cv_HAVE_FUNCTION_MACRO=yes
8878 else
8879 echo "configure: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8881 rm -rf conftest*
8882 samba_cv_HAVE_FUNCTION_MACRO=no
8884 rm -f conftest*
8887 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8888 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8889 cat >> confdefs.h <<\EOF
8890 #define HAVE_FUNCTION_MACRO 1
8895 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8896 echo "configure:8897: checking if gettimeofday takes tz argument" >&5
8897 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8899 else
8901 if test "$cross_compiling" = yes; then
8902 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8903 else
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8908 #include <sys/time.h>
8909 #include <unistd.h>
8910 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8912 if { (eval echo configure:8913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8913 then
8914 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8915 else
8916 echo "configure: failed program was:" >&5
8917 cat conftest.$ac_ext >&5
8918 rm -fr conftest*
8919 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8921 rm -fr conftest*
8926 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8927 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8928 cat >> confdefs.h <<\EOF
8929 #define HAVE_GETTIMEOFDAY_TZ 1
8934 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8935 echo "configure:8936: checking for C99 vsnprintf" >&5
8936 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8938 else
8940 if test "$cross_compiling" = yes; then
8941 samba_cv_HAVE_C99_VSNPRINTF=cross
8942 else
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8947 #include <sys/types.h>
8948 #include <stdarg.h>
8949 void foo(const char *format, ...) {
8950 va_list ap;
8951 int len;
8952 char buf[5];
8954 va_start(ap, format);
8955 len = vsnprintf(0, 0, format, ap);
8956 va_end(ap);
8957 if (len != 5) exit(1);
8959 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8961 exit(0);
8963 main() { foo("hello"); }
8966 if { (eval echo configure:8967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8967 then
8968 samba_cv_HAVE_C99_VSNPRINTF=yes
8969 else
8970 echo "configure: failed program was:" >&5
8971 cat conftest.$ac_ext >&5
8972 rm -fr conftest*
8973 samba_cv_HAVE_C99_VSNPRINTF=no
8975 rm -fr conftest*
8980 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8981 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
8982 cat >> confdefs.h <<\EOF
8983 #define HAVE_C99_VSNPRINTF 1
8988 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8989 echo "configure:8990: checking for broken readdir" >&5
8990 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8991 echo $ac_n "(cached) $ac_c" 1>&6
8992 else
8994 if test "$cross_compiling" = yes; then
8995 samba_cv_HAVE_BROKEN_READDIR=cross
8996 else
8997 cat > conftest.$ac_ext <<EOF
8998 #line 8999 "configure"
8999 #include "confdefs.h"
9000 #include <sys/types.h>
9001 #include <dirent.h>
9002 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9003 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9004 di->d_name[0] == 0) exit(0); exit(1);}
9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9007 then
9008 samba_cv_HAVE_BROKEN_READDIR=yes
9009 else
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9012 rm -fr conftest*
9013 samba_cv_HAVE_BROKEN_READDIR=no
9015 rm -fr conftest*
9020 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9021 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9022 cat >> confdefs.h <<\EOF
9023 #define HAVE_BROKEN_READDIR 1
9028 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9029 echo "configure:9030: checking for utimbuf" >&5
9030 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9031 echo $ac_n "(cached) $ac_c" 1>&6
9032 else
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9037 #include <sys/types.h>
9038 #include <utime.h>
9039 int main() {
9040 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9041 ; return 0; }
9043 if { (eval echo configure:9044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9044 rm -rf conftest*
9045 samba_cv_HAVE_UTIMBUF=yes
9046 else
9047 echo "configure: failed program was:" >&5
9048 cat conftest.$ac_ext >&5
9049 rm -rf conftest*
9050 samba_cv_HAVE_UTIMBUF=no
9052 rm -f conftest*
9055 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9056 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9057 cat >> confdefs.h <<\EOF
9058 #define HAVE_UTIMBUF 1
9064 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9067 echo "configure:9068: checking for $ac_func" >&5
9068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9069 echo $ac_n "(cached) $ac_c" 1>&6
9070 else
9071 cat > conftest.$ac_ext <<EOF
9072 #line 9073 "configure"
9073 #include "confdefs.h"
9074 /* System header to define __stub macros and hopefully few prototypes,
9075 which can conflict with char $ac_func(); below. */
9076 #include <assert.h>
9077 /* Override any gcc2 internal prototype to avoid an error. */
9078 /* We use char because int might match the return type of a gcc2
9079 builtin and then its argument prototype would still apply. */
9080 char $ac_func();
9082 int main() {
9084 /* The GNU C library defines this for functions which it implements
9085 to always fail with ENOSYS. Some functions are actually named
9086 something starting with __ and the normal name is an alias. */
9087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9088 choke me
9089 #else
9090 $ac_func();
9091 #endif
9093 ; return 0; }
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9096 rm -rf conftest*
9097 eval "ac_cv_func_$ac_func=yes"
9098 else
9099 echo "configure: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9101 rm -rf conftest*
9102 eval "ac_cv_func_$ac_func=no"
9104 rm -f conftest*
9107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9108 echo "$ac_t""yes" 1>&6
9109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9110 cat >> confdefs.h <<EOF
9111 #define $ac_tr_func 1
9114 else
9115 echo "$ac_t""no" 1>&6
9117 done
9120 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9121 echo "configure:9122: checking for ut_name in utmp" >&5
9122 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
9124 else
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9129 #include <sys/types.h>
9130 #include <utmp.h>
9131 int main() {
9132 struct utmp ut; ut.ut_name[0] = 'a';
9133 ; return 0; }
9135 if { (eval echo configure:9136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9136 rm -rf conftest*
9137 samba_cv_HAVE_UT_UT_NAME=yes
9138 else
9139 echo "configure: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9141 rm -rf conftest*
9142 samba_cv_HAVE_UT_UT_NAME=no
9144 rm -f conftest*
9147 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9148 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9149 cat >> confdefs.h <<\EOF
9150 #define HAVE_UT_UT_NAME 1
9155 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9156 echo "configure:9157: checking for ut_user in utmp" >&5
9157 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9159 else
9161 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure"
9163 #include "confdefs.h"
9164 #include <sys/types.h>
9165 #include <utmp.h>
9166 int main() {
9167 struct utmp ut; ut.ut_user[0] = 'a';
9168 ; return 0; }
9170 if { (eval echo configure:9171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9171 rm -rf conftest*
9172 samba_cv_HAVE_UT_UT_USER=yes
9173 else
9174 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 rm -rf conftest*
9177 samba_cv_HAVE_UT_UT_USER=no
9179 rm -f conftest*
9182 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9183 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9184 cat >> confdefs.h <<\EOF
9185 #define HAVE_UT_UT_USER 1
9190 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9191 echo "configure:9192: checking for ut_id in utmp" >&5
9192 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9193 echo $ac_n "(cached) $ac_c" 1>&6
9194 else
9196 cat > conftest.$ac_ext <<EOF
9197 #line 9198 "configure"
9198 #include "confdefs.h"
9199 #include <sys/types.h>
9200 #include <utmp.h>
9201 int main() {
9202 struct utmp ut; ut.ut_id[0] = 'a';
9203 ; return 0; }
9205 if { (eval echo configure:9206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9206 rm -rf conftest*
9207 samba_cv_HAVE_UT_UT_ID=yes
9208 else
9209 echo "configure: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9211 rm -rf conftest*
9212 samba_cv_HAVE_UT_UT_ID=no
9214 rm -f conftest*
9217 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9218 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9219 cat >> confdefs.h <<\EOF
9220 #define HAVE_UT_UT_ID 1
9225 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9226 echo "configure:9227: checking for ut_host in utmp" >&5
9227 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9229 else
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9234 #include <sys/types.h>
9235 #include <utmp.h>
9236 int main() {
9237 struct utmp ut; ut.ut_host[0] = 'a';
9238 ; return 0; }
9240 if { (eval echo configure:9241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9241 rm -rf conftest*
9242 samba_cv_HAVE_UT_UT_HOST=yes
9243 else
9244 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246 rm -rf conftest*
9247 samba_cv_HAVE_UT_UT_HOST=no
9249 rm -f conftest*
9252 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9253 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9254 cat >> confdefs.h <<\EOF
9255 #define HAVE_UT_UT_HOST 1
9260 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9261 echo "configure:9262: checking for ut_time in utmp" >&5
9262 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9264 else
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9269 #include <sys/types.h>
9270 #include <utmp.h>
9271 int main() {
9272 struct utmp ut; time_t t; ut.ut_time = t;
9273 ; return 0; }
9275 if { (eval echo configure:9276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9276 rm -rf conftest*
9277 samba_cv_HAVE_UT_UT_TIME=yes
9278 else
9279 echo "configure: failed program was:" >&5
9280 cat conftest.$ac_ext >&5
9281 rm -rf conftest*
9282 samba_cv_HAVE_UT_UT_TIME=no
9284 rm -f conftest*
9287 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9288 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9289 cat >> confdefs.h <<\EOF
9290 #define HAVE_UT_UT_TIME 1
9295 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9296 echo "configure:9297: checking for ut_tv in utmp" >&5
9297 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9298 echo $ac_n "(cached) $ac_c" 1>&6
9299 else
9301 cat > conftest.$ac_ext <<EOF
9302 #line 9303 "configure"
9303 #include "confdefs.h"
9304 #include <sys/types.h>
9305 #include <utmp.h>
9306 int main() {
9307 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9308 ; return 0; }
9310 if { (eval echo configure:9311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9311 rm -rf conftest*
9312 samba_cv_HAVE_UT_UT_TV=yes
9313 else
9314 echo "configure: failed program was:" >&5
9315 cat conftest.$ac_ext >&5
9316 rm -rf conftest*
9317 samba_cv_HAVE_UT_UT_TV=no
9319 rm -f conftest*
9322 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9323 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9324 cat >> confdefs.h <<\EOF
9325 #define HAVE_UT_UT_TV 1
9330 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9331 echo "configure:9332: checking for ut_type in utmp" >&5
9332 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9333 echo $ac_n "(cached) $ac_c" 1>&6
9334 else
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9339 #include <sys/types.h>
9340 #include <utmp.h>
9341 int main() {
9342 struct utmp ut; ut.ut_type = 0;
9343 ; return 0; }
9345 if { (eval echo configure:9346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9346 rm -rf conftest*
9347 samba_cv_HAVE_UT_UT_TYPE=yes
9348 else
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9351 rm -rf conftest*
9352 samba_cv_HAVE_UT_UT_TYPE=no
9354 rm -f conftest*
9357 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9358 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9359 cat >> confdefs.h <<\EOF
9360 #define HAVE_UT_UT_TYPE 1
9365 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9366 echo "configure:9367: checking for ut_pid in utmp" >&5
9367 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9371 cat > conftest.$ac_ext <<EOF
9372 #line 9373 "configure"
9373 #include "confdefs.h"
9374 #include <sys/types.h>
9375 #include <utmp.h>
9376 int main() {
9377 struct utmp ut; ut.ut_pid = 0;
9378 ; return 0; }
9380 if { (eval echo configure:9381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9381 rm -rf conftest*
9382 samba_cv_HAVE_UT_UT_PID=yes
9383 else
9384 echo "configure: failed program was:" >&5
9385 cat conftest.$ac_ext >&5
9386 rm -rf conftest*
9387 samba_cv_HAVE_UT_UT_PID=no
9389 rm -f conftest*
9392 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9393 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9394 cat >> confdefs.h <<\EOF
9395 #define HAVE_UT_UT_PID 1
9400 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9401 echo "configure:9402: checking for ut_exit in utmp" >&5
9402 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
9404 else
9406 cat > conftest.$ac_ext <<EOF
9407 #line 9408 "configure"
9408 #include "confdefs.h"
9409 #include <sys/types.h>
9410 #include <utmp.h>
9411 int main() {
9412 struct utmp ut; ut.ut_exit.e_exit = 0;
9413 ; return 0; }
9415 if { (eval echo configure:9416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9416 rm -rf conftest*
9417 samba_cv_HAVE_UT_UT_EXIT=yes
9418 else
9419 echo "configure: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 rm -rf conftest*
9422 samba_cv_HAVE_UT_UT_EXIT=no
9424 rm -f conftest*
9427 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9428 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9429 cat >> confdefs.h <<\EOF
9430 #define HAVE_UT_UT_EXIT 1
9435 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9436 echo "configure:9437: checking for ut_addr in utmp" >&5
9437 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
9439 else
9441 cat > conftest.$ac_ext <<EOF
9442 #line 9443 "configure"
9443 #include "confdefs.h"
9444 #include <sys/types.h>
9445 #include <utmp.h>
9446 int main() {
9447 struct utmp ut; ut.ut_addr = 0;
9448 ; return 0; }
9450 if { (eval echo configure:9451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9451 rm -rf conftest*
9452 samba_cv_HAVE_UT_UT_ADDR=yes
9453 else
9454 echo "configure: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9456 rm -rf conftest*
9457 samba_cv_HAVE_UT_UT_ADDR=no
9459 rm -f conftest*
9462 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9463 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9464 cat >> confdefs.h <<\EOF
9465 #define HAVE_UT_UT_ADDR 1
9470 if test x$ac_cv_func_pututline = xyes ; then
9471 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9472 echo "configure:9473: checking whether pututline returns pointer" >&5
9473 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9474 echo $ac_n "(cached) $ac_c" 1>&6
9475 else
9477 cat > conftest.$ac_ext <<EOF
9478 #line 9479 "configure"
9479 #include "confdefs.h"
9480 #include <sys/types.h>
9481 #include <utmp.h>
9482 int main() {
9483 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9484 ; return 0; }
9486 if { (eval echo configure:9487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9487 rm -rf conftest*
9488 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9489 else
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9492 rm -rf conftest*
9493 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9495 rm -f conftest*
9498 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9499 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9500 cat >> confdefs.h <<\EOF
9501 #define PUTUTLINE_RETURNS_UTMP 1
9507 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9508 echo "configure:9509: checking for ut_syslen in utmpx" >&5
9509 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9511 else
9513 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516 #include <sys/types.h>
9517 #include <utmpx.h>
9518 int main() {
9519 struct utmpx ux; ux.ut_syslen = 0;
9520 ; return 0; }
9522 if { (eval echo configure:9523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9523 rm -rf conftest*
9524 samba_cv_HAVE_UX_UT_SYSLEN=yes
9525 else
9526 echo "configure: failed program was:" >&5
9527 cat conftest.$ac_ext >&5
9528 rm -rf conftest*
9529 samba_cv_HAVE_UX_UT_SYSLEN=no
9531 rm -f conftest*
9534 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9535 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9536 cat >> confdefs.h <<\EOF
9537 #define HAVE_UX_UT_SYSLEN 1
9543 #################################################
9544 # check for libiconv support
9545 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9546 echo "configure:9547: checking whether to use libiconv" >&5
9547 # Check whether --with-libiconv or --without-libiconv was given.
9548 if test "${with_libiconv+set}" = set; then
9549 withval="$with_libiconv"
9550 case "$withval" in
9552 echo "$ac_t""no" 1>&6
9555 echo "$ac_t""yes" 1>&6
9556 CFLAGS="$CFLAGS -I$withval/include"
9557 LDFLAGS="$LDFLAGS -L$withval/lib"
9558 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9559 echo "configure:9560: checking for iconv_open in -liconv" >&5
9560 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9563 else
9564 ac_save_LIBS="$LIBS"
9565 LIBS="-liconv $LIBS"
9566 cat > conftest.$ac_ext <<EOF
9567 #line 9568 "configure"
9568 #include "confdefs.h"
9569 /* Override any gcc2 internal prototype to avoid an error. */
9570 /* We use char because int might match the return type of a gcc2
9571 builtin and then its argument prototype would still apply. */
9572 char iconv_open();
9574 int main() {
9575 iconv_open()
9576 ; return 0; }
9578 if { (eval echo configure:9579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9579 rm -rf conftest*
9580 eval "ac_cv_lib_$ac_lib_var=yes"
9581 else
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9584 rm -rf conftest*
9585 eval "ac_cv_lib_$ac_lib_var=no"
9587 rm -f conftest*
9588 LIBS="$ac_save_LIBS"
9591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9592 echo "$ac_t""yes" 1>&6
9593 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9594 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9595 cat >> confdefs.h <<EOF
9596 #define $ac_tr_lib 1
9599 LIBS="-liconv $LIBS"
9601 else
9602 echo "$ac_t""no" 1>&6
9606 esac
9607 else
9608 echo "$ac_t""no" 1>&6
9614 ############
9615 # check for iconv in libc
9616 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9617 echo "configure:9618: checking for working iconv" >&5
9618 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9620 else
9622 if test "$cross_compiling" = yes; then
9623 samba_cv_HAVE_NATIVE_ICONV=cross
9624 else
9625 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9629 #include <iconv.h>
9630 main() {
9631 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9632 if (cd == 0 || cd == (iconv_t)-1) return -1;
9633 return 0;
9637 if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9638 then
9639 samba_cv_HAVE_NATIVE_ICONV=yes
9640 else
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 rm -fr conftest*
9644 samba_cv_HAVE_NATIVE_ICONV=no
9646 rm -fr conftest*
9651 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9652 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9653 cat >> confdefs.h <<\EOF
9654 #define HAVE_NATIVE_ICONV 1
9660 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9661 echo "configure:9662: checking for Linux kernel oplocks" >&5
9662 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9664 else
9666 if test "$cross_compiling" = yes; then
9667 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9668 else
9669 cat > conftest.$ac_ext <<EOF
9670 #line 9671 "configure"
9671 #include "confdefs.h"
9673 #include <sys/types.h>
9674 #include <fcntl.h>
9675 #ifndef F_GETLEASE
9676 #define F_GETLEASE 1025
9677 #endif
9678 main() {
9679 int fd = open("/dev/null", O_RDONLY);
9680 return fcntl(fd, F_GETLEASE, 0) == -1;
9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9685 then
9686 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9687 else
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 rm -fr conftest*
9691 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9693 rm -fr conftest*
9698 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9699 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9700 cat >> confdefs.h <<\EOF
9701 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9706 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9707 echo "configure:9708: checking for kernel change notify support" >&5
9708 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6
9710 else
9712 if test "$cross_compiling" = yes; then
9713 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9714 else
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9719 #include <sys/types.h>
9720 #include <fcntl.h>
9721 #include <signal.h>
9722 #ifndef F_NOTIFY
9723 #define F_NOTIFY 1026
9724 #endif
9725 main() {
9726 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9730 if { (eval echo configure:9731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9731 then
9732 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9733 else
9734 echo "configure: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9736 rm -fr conftest*
9737 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9739 rm -fr conftest*
9744 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9745 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9746 cat >> confdefs.h <<\EOF
9747 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9752 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9753 echo "configure:9754: checking for kernel share modes" >&5
9754 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9756 else
9758 if test "$cross_compiling" = yes; then
9759 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9760 else
9761 cat > conftest.$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9765 #include <sys/types.h>
9766 #include <fcntl.h>
9767 #include <signal.h>
9768 #include <sys/file.h>
9769 #ifndef LOCK_MAND
9770 #define LOCK_MAND 32
9771 #define LOCK_READ 64
9772 #endif
9773 main() {
9774 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9779 then
9780 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9781 else
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 rm -fr conftest*
9785 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9787 rm -fr conftest*
9792 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9793 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9794 cat >> confdefs.h <<\EOF
9795 #define HAVE_KERNEL_SHARE_MODES 1
9803 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9804 echo "configure:9805: checking for IRIX kernel oplock type definitions" >&5
9805 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9807 else
9809 cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 #include <sys/types.h>
9813 #include <fcntl.h>
9814 int main() {
9815 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9816 ; return 0; }
9818 if { (eval echo configure:9819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9819 rm -rf conftest*
9820 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9821 else
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 rm -rf conftest*
9825 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9827 rm -f conftest*
9830 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9831 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9832 cat >> confdefs.h <<\EOF
9833 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9838 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9839 echo "configure:9840: checking for irix specific capabilities" >&5
9840 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9842 else
9844 if test "$cross_compiling" = yes; then
9845 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9846 else
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9851 #include <sys/capability.h>
9852 main() {
9853 cap_t cap;
9854 if ((cap = cap_get_proc()) == NULL)
9855 exit(1);
9856 cap->cap_effective |= CAP_NETWORK_MGT;
9857 cap->cap_inheritable |= CAP_NETWORK_MGT;
9858 cap_set_proc(cap);
9859 exit(0);
9863 if { (eval echo configure:9864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9864 then
9865 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9866 else
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -fr conftest*
9870 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9872 rm -fr conftest*
9877 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9878 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9879 cat >> confdefs.h <<\EOF
9880 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9886 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9887 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9890 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9891 echo "configure:9892: checking for int16 typedef included by rpc/rpc.h" >&5
9892 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9894 else
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 #include <sys/types.h>
9900 #if defined(HAVE_RPC_RPC_H)
9901 #include <rpc/rpc.h>
9902 #endif
9903 int main() {
9904 int16 testvar;
9905 ; return 0; }
9907 if { (eval echo configure:9908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9908 rm -rf conftest*
9909 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9910 else
9911 echo "configure: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9913 rm -rf conftest*
9914 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9916 rm -f conftest*
9919 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9920 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9921 cat >> confdefs.h <<\EOF
9922 #define HAVE_INT16_FROM_RPC_RPC_H 1
9927 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9928 echo "configure:9929: checking for uint16 typedef included by rpc/rpc.h" >&5
9929 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9930 echo $ac_n "(cached) $ac_c" 1>&6
9931 else
9933 cat > conftest.$ac_ext <<EOF
9934 #line 9935 "configure"
9935 #include "confdefs.h"
9936 #include <sys/types.h>
9937 #if defined(HAVE_RPC_RPC_H)
9938 #include <rpc/rpc.h>
9939 #endif
9940 int main() {
9941 uint16 testvar;
9942 ; return 0; }
9944 if { (eval echo configure:9945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9945 rm -rf conftest*
9946 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9947 else
9948 echo "configure: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9950 rm -rf conftest*
9951 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9953 rm -f conftest*
9956 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9957 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9958 cat >> confdefs.h <<\EOF
9959 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9964 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9965 echo "configure:9966: checking for int32 typedef included by rpc/rpc.h" >&5
9966 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9967 echo $ac_n "(cached) $ac_c" 1>&6
9968 else
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 #include <sys/types.h>
9974 #if defined(HAVE_RPC_RPC_H)
9975 #include <rpc/rpc.h>
9976 #endif
9977 int main() {
9978 int32 testvar;
9979 ; return 0; }
9981 if { (eval echo configure:9982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9982 rm -rf conftest*
9983 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9984 else
9985 echo "configure: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 rm -rf conftest*
9988 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9990 rm -f conftest*
9993 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9994 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9995 cat >> confdefs.h <<\EOF
9996 #define HAVE_INT32_FROM_RPC_RPC_H 1
10001 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10002 echo "configure:10003: checking for uint32 typedef included by rpc/rpc.h" >&5
10003 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10005 else
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 #include <sys/types.h>
10011 #if defined(HAVE_RPC_RPC_H)
10012 #include <rpc/rpc.h>
10013 #endif
10014 int main() {
10015 uint32 testvar;
10016 ; return 0; }
10018 if { (eval echo configure:10019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10019 rm -rf conftest*
10020 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10021 else
10022 echo "configure: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 rm -rf conftest*
10025 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10027 rm -f conftest*
10030 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10031 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10032 cat >> confdefs.h <<\EOF
10033 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10039 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10040 echo "configure:10041: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10041 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10042 echo $ac_n "(cached) $ac_c" 1>&6
10043 else
10045 cat > conftest.$ac_ext <<EOF
10046 #line 10047 "configure"
10047 #include "confdefs.h"
10048 #include <sys/types.h>
10049 #ifdef HAVE_SYS_SECURITY_H
10050 #include <sys/security.h>
10051 #include <prot.h>
10052 #endif /* HAVE_SYS_SECURITY_H */
10053 #if defined(HAVE_RPC_RPC_H)
10054 #include <rpc/rpc.h>
10055 #endif
10056 int main() {
10057 int testvar;
10058 ; return 0; }
10060 if { (eval echo configure:10061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10061 rm -rf conftest*
10062 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10063 else
10064 echo "configure: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10066 rm -rf conftest*
10067 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10069 rm -f conftest*
10072 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10073 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10074 cat >> confdefs.h <<\EOF
10075 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10080 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10081 echo "configure:10082: checking for test routines" >&5
10082 if test "$cross_compiling" = yes; then
10083 echo "configure: warning: cannot run when cross-compiling" 1>&2
10084 else
10085 cat > conftest.$ac_ext <<EOF
10086 #line 10087 "configure"
10087 #include "confdefs.h"
10088 #include "${srcdir-.}/tests/trivial.c"
10090 if { (eval echo configure:10091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10091 then
10092 echo "$ac_t""yes" 1>&6
10093 else
10094 echo "configure: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10096 rm -fr conftest*
10097 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10099 rm -fr conftest*
10103 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10104 echo "configure:10105: checking for ftruncate extend" >&5
10105 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10107 else
10109 if test "$cross_compiling" = yes; then
10110 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10111 else
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include "${srcdir-.}/tests/ftruncate.c"
10117 if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10118 then
10119 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10120 else
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 rm -fr conftest*
10124 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10126 rm -fr conftest*
10131 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10132 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10133 cat >> confdefs.h <<\EOF
10134 #define HAVE_FTRUNCATE_EXTEND 1
10139 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10140 echo "configure:10141: checking for AF_LOCAL socket support" >&5
10141 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10142 echo $ac_n "(cached) $ac_c" 1>&6
10143 else
10145 if test "$cross_compiling" = yes; then
10146 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10147 else
10148 cat > conftest.$ac_ext <<EOF
10149 #line 10150 "configure"
10150 #include "confdefs.h"
10151 #include "${srcdir-.}/tests/unixsock.c"
10153 if { (eval echo configure:10154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10154 then
10155 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10156 else
10157 echo "configure: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10159 rm -fr conftest*
10160 samba_cv_HAVE_WORKING_AF_LOCAL=no
10162 rm -fr conftest*
10167 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10168 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10169 then
10170 cat >> confdefs.h <<\EOF
10171 #define HAVE_WORKING_AF_LOCAL 1
10176 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10177 echo "configure:10178: checking for broken getgroups" >&5
10178 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10179 echo $ac_n "(cached) $ac_c" 1>&6
10180 else
10182 if test "$cross_compiling" = yes; then
10183 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10184 else
10185 cat > conftest.$ac_ext <<EOF
10186 #line 10187 "configure"
10187 #include "confdefs.h"
10188 #include "${srcdir-.}/tests/getgroups.c"
10190 if { (eval echo configure:10191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10191 then
10192 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10193 else
10194 echo "configure: failed program was:" >&5
10195 cat conftest.$ac_ext >&5
10196 rm -fr conftest*
10197 samba_cv_HAVE_BROKEN_GETGROUPS=no
10199 rm -fr conftest*
10204 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10205 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10206 cat >> confdefs.h <<\EOF
10207 #define HAVE_BROKEN_GETGROUPS 1
10212 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10213 echo "configure:10214: checking whether getpass should be replaced" >&5
10214 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10215 echo $ac_n "(cached) $ac_c" 1>&6
10216 else
10218 SAVE_CPPFLAGS="$CPPFLAGS"
10219 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10220 cat > conftest.$ac_ext <<EOF
10221 #line 10222 "configure"
10222 #include "confdefs.h"
10224 #define REPLACE_GETPASS 1
10225 #define NO_CONFIG_H 1
10226 #define main dont_declare_main
10227 #include "${srcdir-.}/lib/getsmbpass.c"
10228 #undef main
10230 int main() {
10232 ; return 0; }
10234 if { (eval echo configure:10235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10235 rm -rf conftest*
10236 samba_cv_REPLACE_GETPASS=yes
10237 else
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 rm -rf conftest*
10241 samba_cv_REPLACE_GETPASS=no
10243 rm -f conftest*
10244 CPPFLAGS="$SAVE_CPPFLAGS"
10248 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10249 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10250 cat >> confdefs.h <<\EOF
10251 #define REPLACE_GETPASS 1
10256 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10257 echo "configure:10258: checking for broken inet_ntoa" >&5
10258 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10260 else
10262 if test "$cross_compiling" = yes; then
10263 samba_cv_REPLACE_INET_NTOA=cross
10264 else
10265 cat > conftest.$ac_ext <<EOF
10266 #line 10267 "configure"
10267 #include "confdefs.h"
10269 #include <stdio.h>
10270 #include <sys/types.h>
10271 #include <netinet/in.h>
10272 #ifdef HAVE_ARPA_INET_H
10273 #include <arpa/inet.h>
10274 #endif
10275 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10276 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10277 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10278 exit(1);}
10280 if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10281 then
10282 samba_cv_REPLACE_INET_NTOA=yes
10283 else
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 rm -fr conftest*
10287 samba_cv_REPLACE_INET_NTOA=no
10289 rm -fr conftest*
10294 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10295 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10296 cat >> confdefs.h <<\EOF
10297 #define REPLACE_INET_NTOA 1
10302 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10303 echo "configure:10304: checking for secure mkstemp" >&5
10304 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10306 else
10308 if test "$cross_compiling" = yes; then
10309 samba_cv_HAVE_SECURE_MKSTEMP=cross
10310 else
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10314 #include <stdlib.h>
10315 #include <sys/types.h>
10316 #include <sys/stat.h>
10317 #include <unistd.h>
10318 main() {
10319 struct stat st;
10320 char tpl[20]="/tmp/test.XXXXXX";
10321 int fd = mkstemp(tpl);
10322 if (fd == -1) exit(1);
10323 unlink(tpl);
10324 if (fstat(fd, &st) != 0) exit(1);
10325 if ((st.st_mode & 0777) != 0600) exit(1);
10326 exit(0);
10329 if { (eval echo configure:10330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10330 then
10331 samba_cv_HAVE_SECURE_MKSTEMP=yes
10332 else
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 rm -fr conftest*
10336 samba_cv_HAVE_SECURE_MKSTEMP=no
10338 rm -fr conftest*
10343 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10344 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10345 cat >> confdefs.h <<\EOF
10346 #define HAVE_SECURE_MKSTEMP 1
10351 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10352 echo "configure:10353: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10353 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10355 else
10357 if test "$cross_compiling" = yes; then
10358 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10359 else
10360 cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure"
10362 #include "confdefs.h"
10363 #include <unistd.h>
10364 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10366 if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10367 then
10368 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10369 else
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 rm -fr conftest*
10373 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10375 rm -fr conftest*
10380 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10381 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10382 cat >> confdefs.h <<\EOF
10383 #define SYSCONF_SC_NGROUPS_MAX 1
10388 echo $ac_n "checking for root""... $ac_c" 1>&6
10389 echo "configure:10390: checking for root" >&5
10390 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10391 echo $ac_n "(cached) $ac_c" 1>&6
10392 else
10394 if test "$cross_compiling" = yes; then
10395 samba_cv_HAVE_ROOT=cross
10396 else
10397 cat > conftest.$ac_ext <<EOF
10398 #line 10399 "configure"
10399 #include "confdefs.h"
10400 main() { exit(getuid() != 0); }
10402 if { (eval echo configure:10403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10403 then
10404 samba_cv_HAVE_ROOT=yes
10405 else
10406 echo "configure: failed program was:" >&5
10407 cat conftest.$ac_ext >&5
10408 rm -fr conftest*
10409 samba_cv_HAVE_ROOT=no
10411 rm -fr conftest*
10416 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10417 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10418 cat >> confdefs.h <<\EOF
10419 #define HAVE_ROOT 1
10422 else
10423 echo "configure: warning: running as non-root will disable some tests" 1>&2
10426 ##################
10427 # look for a method of finding the list of network interfaces
10428 iface=no;
10429 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10430 echo "configure:10431: checking for iface AIX" >&5
10431 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10433 else
10435 if test "$cross_compiling" = yes; then
10436 samba_cv_HAVE_IFACE_AIX=cross
10437 else
10438 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10442 #define HAVE_IFACE_AIX 1
10443 #define AUTOCONF_TEST 1
10444 #include "confdefs.h"
10445 #include "${srcdir-.}/lib/interfaces.c"
10447 if { (eval echo configure:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10448 then
10449 samba_cv_HAVE_IFACE_AIX=yes
10450 else
10451 echo "configure: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10453 rm -fr conftest*
10454 samba_cv_HAVE_IFACE_AIX=no
10456 rm -fr conftest*
10461 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10462 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10463 iface=yes;cat >> confdefs.h <<\EOF
10464 #define HAVE_IFACE_AIX 1
10469 if test $iface = no; then
10470 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10471 echo "configure:10472: checking for iface ifconf" >&5
10472 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10474 else
10476 if test "$cross_compiling" = yes; then
10477 samba_cv_HAVE_IFACE_IFCONF=cross
10478 else
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10483 #define HAVE_IFACE_IFCONF 1
10484 #define AUTOCONF_TEST 1
10485 #include "confdefs.h"
10486 #include "${srcdir-.}/lib/interfaces.c"
10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10489 then
10490 samba_cv_HAVE_IFACE_IFCONF=yes
10491 else
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 rm -fr conftest*
10495 samba_cv_HAVE_IFACE_IFCONF=no
10497 rm -fr conftest*
10502 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10503 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10504 iface=yes;cat >> confdefs.h <<\EOF
10505 #define HAVE_IFACE_IFCONF 1
10511 if test $iface = no; then
10512 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10513 echo "configure:10514: checking for iface ifreq" >&5
10514 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10516 else
10518 if test "$cross_compiling" = yes; then
10519 samba_cv_HAVE_IFACE_IFREQ=cross
10520 else
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10523 "configure"
10523 #include "confdefs.h"
10525 #define HAVE_IFACE_IFREQ 1
10526 #define AUTOCONF_TEST 1
10527 #include "confdefs.h"
10528 #include "${srcdir-.}/lib/interfaces.c"
10530 if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10531 then
10532 samba_cv_HAVE_IFACE_IFREQ=yes
10533 else
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -fr conftest*
10537 samba_cv_HAVE_IFACE_IFREQ=no
10539 rm -fr conftest*
10544 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10545 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10546 iface=yes;cat >> confdefs.h <<\EOF
10547 #define HAVE_IFACE_IFREQ 1
10554 ################################################
10555 # look for a method of setting the effective uid
10556 seteuid=no;
10557 if test $seteuid = no; then
10558 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10559 echo "configure:10560: checking for setresuid" >&5
10560 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
10562 else
10564 if test "$cross_compiling" = yes; then
10565 samba_cv_USE_SETRESUID=cross
10566 else
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10571 #define AUTOCONF_TEST 1
10572 #define USE_SETRESUID 1
10573 #include "confdefs.h"
10574 #include "${srcdir-.}/lib/util_sec.c"
10576 if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10577 then
10578 samba_cv_USE_SETRESUID=yes
10579 else
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 rm -fr conftest*
10583 samba_cv_USE_SETRESUID=no
10585 rm -fr conftest*
10590 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10591 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10592 seteuid=yes;cat >> confdefs.h <<\EOF
10593 #define USE_SETRESUID 1
10600 if test $seteuid = no; then
10601 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10602 echo "configure:10603: checking for setreuid" >&5
10603 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10607 if test "$cross_compiling" = yes; then
10608 samba_cv_USE_SETREUID=cross
10609 else
10610 cat > conftest.$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10614 #define AUTOCONF_TEST 1
10615 #define USE_SETREUID 1
10616 #include "confdefs.h"
10617 #include "${srcdir-.}/lib/util_sec.c"
10619 if { (eval echo configure:10620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10620 then
10621 samba_cv_USE_SETREUID=yes
10622 else
10623 echo "configure: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 rm -fr conftest*
10626 samba_cv_USE_SETREUID=no
10628 rm -fr conftest*
10633 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10634 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10635 seteuid=yes;cat >> confdefs.h <<\EOF
10636 #define USE_SETREUID 1
10642 if test $seteuid = no; then
10643 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10644 echo "configure:10645: checking for seteuid" >&5
10645 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10646 echo $ac_n "(cached) $ac_c" 1>&6
10647 else
10649 if test "$cross_compiling" = yes; then
10650 samba_cv_USE_SETEUID=cross
10651 else
10652 cat > conftest.$ac_ext <<EOF
10653 #line 10654 "configure"
10654 #include "confdefs.h"
10656 #define AUTOCONF_TEST 1
10657 #define USE_SETEUID 1
10658 #include "confdefs.h"
10659 #include "${srcdir-.}/lib/util_sec.c"
10661 if { (eval echo configure:10662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10662 then
10663 samba_cv_USE_SETEUID=yes
10664 else
10665 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10667 rm -fr conftest*
10668 samba_cv_USE_SETEUID=no
10670 rm -fr conftest*
10675 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10676 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10677 seteuid=yes;cat >> confdefs.h <<\EOF
10678 #define USE_SETEUID 1
10684 if test $seteuid = no; then
10685 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10686 echo "configure:10687: checking for setuidx" >&5
10687 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10689 else
10691 if test "$cross_compiling" = yes; then
10692 samba_cv_USE_SETUIDX=cross
10693 else
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10698 #define AUTOCONF_TEST 1
10699 #define USE_SETUIDX 1
10700 #include "confdefs.h"
10701 #include "${srcdir-.}/lib/util_sec.c"
10703 if { (eval echo configure:10704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10704 then
10705 samba_cv_USE_SETUIDX=yes
10706 else
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 rm -fr conftest*
10710 samba_cv_USE_SETUIDX=no
10712 rm -fr conftest*
10717 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10718 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10719 seteuid=yes;cat >> confdefs.h <<\EOF
10720 #define USE_SETUIDX 1
10727 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10728 echo "configure:10729: checking for working mmap" >&5
10729 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10730 echo $ac_n "(cached) $ac_c" 1>&6
10731 else
10733 if test "$cross_compiling" = yes; then
10734 samba_cv_HAVE_MMAP=cross
10735 else
10736 cat > conftest.$ac_ext <<EOF
10737 #line 10738 "configure"
10738 #include "confdefs.h"
10739 #include "${srcdir-.}/tests/shared_mmap.c"
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10742 then
10743 samba_cv_HAVE_MMAP=yes
10744 else
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 rm -fr conftest*
10748 samba_cv_HAVE_MMAP=no
10750 rm -fr conftest*
10755 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10756 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10757 cat >> confdefs.h <<\EOF
10758 #define HAVE_MMAP 1
10763 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10764 echo "configure:10765: checking for ftruncate needs root" >&5
10765 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10766 echo $ac_n "(cached) $ac_c" 1>&6
10767 else
10769 if test "$cross_compiling" = yes; then
10770 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10771 else
10772 cat > conftest.$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10775 #include "${srcdir-.}/tests/ftruncroot.c"
10777 if { (eval echo configure:10778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10778 then
10779 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10780 else
10781 echo "configure: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10783 rm -fr conftest*
10784 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10786 rm -fr conftest*
10791 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10792 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10793 cat >> confdefs.h <<\EOF
10794 #define FTRUNCATE_NEEDS_ROOT 1
10799 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10800 echo "configure:10801: checking for fcntl locking" >&5
10801 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10802 echo $ac_n "(cached) $ac_c" 1>&6
10803 else
10805 if test "$cross_compiling" = yes; then
10806 samba_cv_HAVE_FCNTL_LOCK=cross
10807 else
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10811 #include "${srcdir-.}/tests/fcntl_lock.c"
10813 if { (eval echo configure:10814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10814 then
10815 samba_cv_HAVE_FCNTL_LOCK=yes
10816 else
10817 echo "configure: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10819 rm -fr conftest*
10820 samba_cv_HAVE_FCNTL_LOCK=no
10822 rm -fr conftest*
10827 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10828 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10829 cat >> confdefs.h <<\EOF
10830 #define HAVE_FCNTL_LOCK 1
10835 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10836 echo "configure:10837: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10837 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10838 echo $ac_n "(cached) $ac_c" 1>&6
10839 else
10841 if test "$cross_compiling" = yes; then
10842 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10843 else
10844 cat > conftest.$ac_ext <<EOF
10845 #line 10846 "configure"
10846 #include "confdefs.h"
10847 #include "${srcdir-.}/tests/fcntl_lock64.c"
10849 if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10850 then
10851 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10852 else
10853 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 rm -fr conftest*
10856 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10858 rm -fr conftest*
10863 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10864 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10865 cat >> confdefs.h <<\EOF
10866 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10870 else
10873 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10874 echo "configure:10875: checking for 64 bit fcntl locking" >&5
10875 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10876 echo $ac_n "(cached) $ac_c" 1>&6
10877 else
10879 if test "$cross_compiling" = yes; then
10880 samba_cv_HAVE_STRUCT_FLOCK64=cross
10881 else
10882 cat > conftest.$ac_ext <<EOF
10883 #line 10884 "configure"
10884 #include "confdefs.h"
10886 #if defined(HAVE_UNISTD_H)
10887 #include <unistd.h>
10888 #endif
10889 #include <stdio.h>
10890 #include <stdlib.h>
10892 #ifdef HAVE_FCNTL_H
10893 #include <fcntl.h>
10894 #endif
10896 #ifdef HAVE_SYS_FCNTL_H
10897 #include <sys/fcntl.h>
10898 #endif
10899 main() { struct flock64 fl64;
10900 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10901 exit(0);
10902 #else
10903 exit(1);
10904 #endif
10907 if { (eval echo configure:10908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10908 then
10909 samba_cv_HAVE_STRUCT_FLOCK64=yes
10910 else
10911 echo "configure: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10913 rm -fr conftest*
10914 samba_cv_HAVE_STRUCT_FLOCK64=no
10916 rm -fr conftest*
10921 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10923 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10924 cat >> confdefs.h <<\EOF
10925 #define HAVE_STRUCT_FLOCK64 1
10931 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10932 echo "configure:10933: checking for a crypt that needs truncated salt" >&5
10933 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10937 if test "$cross_compiling" = yes; then
10938 samba_cv_HAVE_TRUNCATED_SALT=cross
10939 else
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10943 #include "${srcdir-.}/tests/crypttest.c"
10945 if { (eval echo configure:10946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10946 then
10947 samba_cv_HAVE_TRUNCATED_SALT=no
10948 else
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10951 rm -fr conftest*
10952 samba_cv_HAVE_TRUNCATED_SALT=yes
10954 rm -fr conftest*
10959 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10960 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10961 cat >> confdefs.h <<\EOF
10962 #define HAVE_TRUNCATED_SALT 1
10967 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10968 echo "configure:10969: checking for broken nisplus include files" >&5
10969 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
10971 else
10973 cat > conftest.$ac_ext <<EOF
10974 #line 10975 "configure"
10975 #include "confdefs.h"
10976 #include <sys/acl.h>
10977 #if defined(HAVE_RPCSVC_NIS_H)
10978 #include <rpcsvc/nis.h>
10979 #endif
10980 int main() {
10981 return 0;
10982 ; return 0; }
10984 if { (eval echo configure:10985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10985 rm -rf conftest*
10986 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10987 else
10988 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10990 rm -rf conftest*
10991 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10993 rm -f conftest*
10996 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10997 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10998 cat >> confdefs.h <<\EOF
10999 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11005 #################################################
11006 # check for smbwrapper support
11007 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11008 echo "configure:11009: checking whether to use smbwrapper" >&5
11009 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11010 if test "${with_smbwrapper+set}" = set; then
11011 withval="$with_smbwrapper"
11012 case "$withval" in
11013 yes)
11014 echo "$ac_t""yes" 1>&6
11015 cat >> confdefs.h <<\EOF
11016 #define WITH_SMBWRAPPER 1
11019 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11021 if test x$ATTEMPT_WRAP32_BUILD = x; then
11022 WRAP32=""
11023 else
11024 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11027 # Conditions under which smbwrapper should not be built.
11029 if test x$PICFLAG = x; then
11030 echo No support for PIC code - disabling smbwrapper and smbsh
11031 WRAP=""
11032 WRAP32=""
11033 elif test x$ac_cv_func_syscall = xno; then
11034 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11035 WRAP=""
11036 WRAP32=""
11040 echo "$ac_t""no" 1>&6
11042 esac
11043 else
11044 echo "$ac_t""no" 1>&6
11049 #################################################
11050 # check for the AFS filesystem
11051 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11052 echo "configure:11053: checking whether to use AFS" >&5
11053 # Check whether --with-afs or --without-afs was given.
11054 if test "${with_afs+set}" = set; then
11055 withval="$with_afs"
11056 case "$withval" in
11057 yes)
11058 echo "$ac_t""yes" 1>&6
11059 cat >> confdefs.h <<\EOF
11060 #define WITH_AFS 1
11065 echo "$ac_t""no" 1>&6
11067 esac
11068 else
11069 echo "$ac_t""no" 1>&6
11075 #################################################
11076 # check for the DFS auth system
11077 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11078 echo "configure:11079: checking whether to use DFS auth" >&5
11079 # Check whether --with-dfs or --without-dfs was given.
11080 if test "${with_dfs+set}" = set; then
11081 withval="$with_dfs"
11082 case "$withval" in
11083 yes)
11084 echo "$ac_t""yes" 1>&6
11085 cat >> confdefs.h <<\EOF
11086 #define WITH_DFS 1
11091 echo "$ac_t""no" 1>&6
11093 esac
11094 else
11095 echo "$ac_t""no" 1>&6
11100 #################################################
11101 # check for Kerberos IV auth system
11102 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11103 echo "configure:11104: checking whether to use Kerberos IV" >&5
11104 # Check whether --with-krb4 or --without-krb4 was given.
11105 if test "${with_krb4+set}" = set; then
11106 withval="$with_krb4"
11107 case "$withval" in
11108 yes)
11109 echo "$ac_t""yes" 1>&6
11110 cat >> confdefs.h <<\EOF
11111 #define KRB4_AUTH 1
11114 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11115 echo "configure:11116: checking for dn_expand in -lresolv" >&5
11116 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11118 echo $ac_n "(cached) $ac_c" 1>&6
11119 else
11120 ac_save_LIBS="$LIBS"
11121 LIBS="-lresolv $LIBS"
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11125 /* Override any gcc2 internal prototype to avoid an error. */
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11128 char dn_expand();
11130 int main() {
11131 dn_expand()
11132 ; return 0; }
11134 if { (eval echo configure:11135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11135 rm -rf conftest*
11136 eval "ac_cv_lib_$ac_lib_var=yes"
11137 else
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 rm -rf conftest*
11141 eval "ac_cv_lib_$ac_lib_var=no"
11143 rm -f conftest*
11144 LIBS="$ac_save_LIBS"
11147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11148 echo "$ac_t""yes" 1>&6
11149 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11150 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11151 cat >> confdefs.h <<EOF
11152 #define $ac_tr_lib 1
11155 LIBS="-lresolv $LIBS"
11157 else
11158 echo "$ac_t""no" 1>&6
11161 LIBS="$LIBS -lkrb -ldes"
11162 CFLAGS="$CFLAGS -I$withval/include"
11163 LDFLAGS="$LDFLAGS -L$withval/lib"
11166 echo "$ac_t""no" 1>&6
11168 esac
11169 else
11170 echo "$ac_t""no" 1>&6
11175 #################################################
11176 # check for Kerberos 5 auth system
11177 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11178 echo "configure:11179: checking whether to use Kerberos 5" >&5
11179 # Check whether --with-krb5 or --without-krb5 was given.
11180 if test "${with_krb5+set}" = set; then
11181 withval="$with_krb5"
11182 case "$withval" in
11183 yes)
11184 echo "$ac_t""yes" 1>&6
11185 cat >> confdefs.h <<\EOF
11186 #define KRB5_AUTH 1
11189 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11190 CFLAGS="$CFLAGS -I$withval/include"
11191 LDFLAGS="$LDFLAGS -L$withval/lib"
11194 echo "$ac_t""no" 1>&6
11196 esac
11197 else
11198 echo "$ac_t""no" 1>&6
11203 #################################################
11204 # check for automount support
11205 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11206 echo "configure:11207: checking whether to use AUTOMOUNT" >&5
11207 # Check whether --with-automount or --without-automount was given.
11208 if test "${with_automount+set}" = set; then
11209 withval="$with_automount"
11210 case "$withval" in
11211 yes)
11212 echo "$ac_t""yes" 1>&6
11213 cat >> confdefs.h <<\EOF
11214 #define WITH_AUTOMOUNT 1
11219 echo "$ac_t""no" 1>&6
11221 esac
11222 else
11223 echo "$ac_t""no" 1>&6
11228 #################################################
11229 # check for smbmount support
11230 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11231 echo "configure:11232: checking whether to use SMBMOUNT" >&5
11232 # Check whether --with-smbmount or --without-smbmount was given.
11233 if test "${with_smbmount+set}" = set; then
11234 withval="$with_smbmount"
11235 case "$withval" in
11236 yes)
11237 echo "$ac_t""yes" 1>&6
11238 cat >> confdefs.h <<\EOF
11239 #define WITH_SMBMOUNT 1
11242 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11245 echo "$ac_t""no" 1>&6
11246 MPROGS=
11248 esac
11249 else
11250 echo "$ac_t""no" 1>&6
11251 MPROGS=
11257 #################################################
11258 # check for a PAM password database
11260 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11261 echo "configure:11262: checking whether to use PAM password database" >&5
11262 # Check whether --with-pam or --without-pam was given.
11263 if test "${with_pam+set}" = set; then
11264 withval="$with_pam"
11265 case "$withval" in
11266 yes)
11267 echo "$ac_t""yes" 1>&6
11268 cat >> confdefs.h <<\EOF
11269 #define WITH_PAM 1
11272 LIBS="$LIBS -lpam"
11275 echo "$ac_t""no" 1>&6
11277 esac
11278 else
11279 echo "$ac_t""no" 1>&6
11284 # we can't build a pam module if we don't have pam.
11285 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11286 echo "configure:11287: checking for pam_get_data in -lpam" >&5
11287 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11290 else
11291 ac_save_LIBS="$LIBS"
11292 LIBS="-lpam $LIBS"
11293 cat > conftest.$ac_ext <<EOF
11294 #line 11295 "configure"
11295 #include "confdefs.h"
11296 /* Override any gcc2 internal prototype to avoid an error. */
11297 /* We use char because int might match the return type of a gcc2
11298 builtin and then its argument prototype would still apply. */
11299 char pam_get_data();
11301 int main() {
11302 pam_get_data()
11303 ; return 0; }
11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11306 rm -rf conftest*
11307 eval "ac_cv_lib_$ac_lib_var=yes"
11308 else
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11311 rm -rf conftest*
11312 eval "ac_cv_lib_$ac_lib_var=no"
11314 rm -f conftest*
11315 LIBS="$ac_save_LIBS"
11318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11319 echo "$ac_t""yes" 1>&6
11320 cat >> confdefs.h <<\EOF
11321 #define HAVE_LIBPAM 1
11324 else
11325 echo "$ac_t""no" 1>&6
11329 #################################################
11330 # check for pam_smbpass support
11331 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11332 echo "configure:11333: checking whether to use pam_smbpass" >&5
11333 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11334 if test "${with_pam_smbpass+set}" = set; then
11335 withval="$with_pam_smbpass"
11336 case "$withval" in
11337 yes)
11338 echo "$ac_t""yes" 1>&6
11340 # Conditions under which pam_smbpass should not be built.
11342 if test x$PICFLAG = x; then
11343 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11344 PAM_MOD=""
11345 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11346 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11347 PAM_MOD=""
11348 else
11349 cat >> confdefs.h <<\EOF
11350 #define WITH_PAM_SMBPASS 1
11353 PAM_MOD="bin/pam_smbpass.so"
11357 echo "$ac_t""no" 1>&6
11359 esac
11360 else
11361 echo "$ac_t""no" 1>&6
11367 ###############################################
11368 # test for where we get crypt() from, but only
11369 # if not using PAM
11370 if test "$with_pam" != yes; then
11371 for ac_func in crypt
11373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11374 echo "configure:11375: checking for $ac_func" >&5
11375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11376 echo $ac_n "(cached) $ac_c" 1>&6
11377 else
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11381 /* System header to define __stub macros and hopefully few prototypes,
11382 which can conflict with char $ac_func(); below. */
11383 #include <assert.h>
11384 /* Override any gcc2 internal prototype to avoid an error. */
11385 /* We use char because int might match the return type of a gcc2
11386 builtin and then its argument prototype would still apply. */
11387 char $ac_func();
11389 int main() {
11391 /* The GNU C library defines this for functions which it implements
11392 to always fail with ENOSYS. Some functions are actually named
11393 something starting with __ and the normal name is an alias. */
11394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11395 choke me
11396 #else
11397 $ac_func();
11398 #endif
11400 ; return 0; }
11402 if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11403 rm -rf conftest*
11404 eval "ac_cv_func_$ac_func=yes"
11405 else
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11408 rm -rf conftest*
11409 eval "ac_cv_func_$ac_func=no"
11411 rm -f conftest*
11414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11415 echo "$ac_t""yes" 1>&6
11416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11417 cat >> confdefs.h <<EOF
11418 #define $ac_tr_func 1
11421 else
11422 echo "$ac_t""no" 1>&6
11424 done
11426 if test x"$ac_cv_func_crypt" = x"no"; then
11427 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11428 echo "configure:11429: checking for crypt in -lcrypt" >&5
11429 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11432 else
11433 ac_save_LIBS="$LIBS"
11434 LIBS="-lcrypt $LIBS"
11435 cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 /* Override any gcc2 internal prototype to avoid an error. */
11439 /* We use char because int might match the return type of a gcc2
11440 builtin and then its argument prototype would still apply. */
11441 char crypt();
11443 int main() {
11444 crypt()
11445 ; return 0; }
11447 if { (eval echo configure:11448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448 rm -rf conftest*
11449 eval "ac_cv_lib_$ac_lib_var=yes"
11450 else
11451 echo "configure: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11453 rm -rf conftest*
11454 eval "ac_cv_lib_$ac_lib_var=no"
11456 rm -f conftest*
11457 LIBS="$ac_save_LIBS"
11460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11461 echo "$ac_t""yes" 1>&6
11462 LIBS="$LIBS -lcrypt";
11463 cat >> confdefs.h <<\EOF
11464 #define HAVE_CRYPT 1
11467 else
11468 echo "$ac_t""no" 1>&6
11475 #################################################
11476 # check for a TDB password database
11477 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11478 echo "configure:11479: checking whether to use TDB password database" >&5
11479 # Check whether --with-tdbsam or --without-tdbsam was given.
11480 if test "${with_tdbsam+set}" = set; then
11481 withval="$with_tdbsam"
11482 case "$withval" in
11483 yes)
11484 echo "$ac_t""yes" 1>&6
11485 cat >> confdefs.h <<\EOF
11486 #define WITH_TDBPWD 1
11489 # AC_MSG_ERROR([TDB password database not supported in this version.])
11492 echo "$ac_t""no" 1>&6
11494 esac
11495 else
11496 echo "$ac_t""no" 1>&6
11501 #################################################
11502 # check for a LDAP password database
11503 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11504 echo "configure:11505: checking whether to use LDAP password database" >&5
11505 # Check whether --with-ldap or --without-ldap was given.
11506 if test "${with_ldap+set}" = set; then
11507 withval="$with_ldap"
11508 case "$withval" in
11509 yes)
11510 echo "$ac_t""yes" 1>&6
11511 cat >> confdefs.h <<\EOF
11512 #define WITH_LDAP 1
11515 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11518 echo "$ac_t""no" 1>&6
11520 esac
11521 else
11522 echo "$ac_t""no" 1>&6
11527 #################################################
11528 # check for a NISPLUS password database
11529 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11530 echo "configure:11531: checking whether to use NISPLUS password database" >&5
11531 # Check whether --with-nisplus or --without-nisplus was given.
11532 if test "${with_nisplus+set}" = set; then
11533 withval="$with_nisplus"
11534 case "$withval" in
11535 yes)
11536 echo "$ac_t""yes" 1>&6
11537 cat >> confdefs.h <<\EOF
11538 #define WITH_NISPLUS 1
11543 echo "$ac_t""no" 1>&6
11545 esac
11546 else
11547 echo "$ac_t""no" 1>&6
11552 #################################################
11553 # check for a NISPLUS_HOME support
11554 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11555 echo "configure:11556: checking whether to use NISPLUS_HOME" >&5
11556 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11557 if test "${with_nisplus_home+set}" = set; then
11558 withval="$with_nisplus_home"
11559 case "$withval" in
11560 yes)
11561 echo "$ac_t""yes" 1>&6
11562 cat >> confdefs.h <<\EOF
11563 #define WITH_NISPLUS_HOME 1
11568 echo "$ac_t""no" 1>&6
11570 esac
11571 else
11572 echo "$ac_t""no" 1>&6
11577 #################################################
11578 # check for the secure socket layer
11579 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11580 echo "configure:11581: checking whether to use SSL" >&5
11581 # Check whether --with-ssl or --without-ssl was given.
11582 if test "${with_ssl+set}" = set; then
11583 withval="$with_ssl"
11584 case "$withval" in
11585 yes)
11586 echo "$ac_t""yes" 1>&6
11587 cat >> confdefs.h <<\EOF
11588 #define WITH_SSL 1
11591 withval="/usr/local/ssl" # default
11593 if test "${with_sslinc+set}" = set; then
11595 withval="$with_sslinc"
11596 case "$withval" in
11597 yes|no)
11598 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11599 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11600 LIBS="-lssl -lcrypto $LIBS"
11601 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11604 CFLAGS="-I${withval} $CFLAGS"
11605 LIBS="-lssl -lcrypto $LIBS"
11606 LDFLAGS="-L${withval}/lib $LDFLAGS"
11608 esac
11610 else
11612 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11613 LIBS="-lssl -lcrypto $LIBS"
11614 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11618 if test ! -d ${withval}; then
11619 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11620 exit 1
11623 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11627 echo "$ac_t""no" 1>&6
11629 esac
11630 else
11631 echo "$ac_t""no" 1>&6
11636 #################################################
11637 # check for syslog logging
11638 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11639 echo "configure:11640: checking whether to use syslog logging" >&5
11640 # Check whether --with-syslog or --without-syslog was given.
11641 if test "${with_syslog+set}" = set; then
11642 withval="$with_syslog"
11643 case "$withval" in
11644 yes)
11645 echo "$ac_t""yes" 1>&6
11646 cat >> confdefs.h <<\EOF
11647 #define WITH_SYSLOG 1
11652 echo "$ac_t""no" 1>&6
11654 esac
11655 else
11656 echo "$ac_t""no" 1>&6
11661 #################################################
11662 # check for a shared memory profiling support
11663 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11664 echo "configure:11665: checking whether to use profiling" >&5
11665 # Check whether --with-profile or --without-profile was given.
11666 if test "${with_profile+set}" = set; then
11667 withval="$with_profile"
11668 case "$withval" in
11669 yes)
11670 echo "$ac_t""yes" 1>&6
11671 cat >> confdefs.h <<\EOF
11672 #define WITH_PROFILE 1
11677 echo "$ac_t""no" 1>&6
11679 esac
11680 else
11681 echo "$ac_t""no" 1>&6
11687 #################################################
11688 # check for experimental netatalk resource fork support
11689 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11690 echo "configure:11691: checking whether to support netatalk" >&5
11691 # Check whether --with-netatalk or --without-netatalk was given.
11692 if test "${with_netatalk+set}" = set; then
11693 withval="$with_netatalk"
11694 case "$withval" in
11695 yes)
11696 echo "$ac_t""yes" 1>&6
11697 cat >> confdefs.h <<\EOF
11698 #define WITH_NETATALK 1
11703 echo "$ac_t""no" 1>&6
11705 esac
11706 else
11707 echo "$ac_t""no" 1>&6
11712 #################################################
11713 # check for experimental disk-quotas support
11714 QUOTAOBJS=smbd/noquotas.o
11716 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11717 echo "configure:11718: checking whether to support disk-quotas" >&5
11718 # Check whether --with-quotas or --without-quotas was given.
11719 if test "${with_quotas+set}" = set; then
11720 withval="$with_quotas"
11721 case "$withval" in
11722 yes)
11723 echo "$ac_t""yes" 1>&6
11724 QUOTAOBJS=smbd/quotas.o
11727 echo "$ac_t""no" 1>&6
11729 esac
11730 else
11731 echo "$ac_t""no" 1>&6
11737 #################################################
11738 # check for experimental utmp accounting
11740 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11741 echo "configure:11742: checking whether to support utmp accounting" >&5
11742 # Check whether --with-utmp or --without-utmp was given.
11743 if test "${with_utmp+set}" = set; then
11744 withval="$with_utmp"
11745 case "$withval" in
11746 yes)
11747 echo "$ac_t""yes" 1>&6
11748 cat >> confdefs.h <<\EOF
11749 #define WITH_UTMP 1
11754 echo "$ac_t""no" 1>&6
11756 esac
11757 else
11758 echo "$ac_t""no" 1>&6
11763 #################################################
11764 # check for MS Dfs support
11766 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11767 echo "configure:11768: checking whether to support Microsoft Dfs" >&5
11768 # Check whether --with-msdfs or --without-msdfs was given.
11769 if test "${with_msdfs+set}" = set; then
11770 withval="$with_msdfs"
11771 case "$withval" in
11772 yes)
11773 echo "$ac_t""yes" 1>&6
11774 cat >> confdefs.h <<\EOF
11775 #define WITH_MSDFS 1
11780 echo "$ac_t""no" 1>&6
11782 esac
11783 else
11784 echo "$ac_t""no" 1>&6
11789 #################################################
11790 # set private directory location
11791 # Check whether --with-privatedir or --without-privatedir was given.
11792 if test "${with_privatedir+set}" = set; then
11793 withval="$with_privatedir"
11794 case "$withval" in
11795 yes|no)
11797 # Just in case anybody calls it without argument
11799 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11800 privatedir='${prefix}/private'
11803 privatedir="$withval"
11805 esac
11807 else
11808 privatedir='${prefix}/private'
11814 #################################################
11815 # set lock directory location
11816 # Check whether --with-lockdir or --without-lockdir was given.
11817 if test "${with_lockdir+set}" = set; then
11818 withval="$with_lockdir"
11819 case "$withval" in
11820 yes|no)
11822 # Just in case anybody calls it without argument
11824 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11825 lockdir='$(VARDIR)/locks'
11828 lockdir="$withval"
11830 esac
11832 else
11833 lockdir='$(VARDIR)/locks'
11839 #################################################
11840 # set SWAT directory location
11841 # Check whether --with-swatdir or --without-swatdir was given.
11842 if test "${with_swatdir+set}" = set; then
11843 withval="$with_swatdir"
11844 case "$withval" in
11845 yes|no)
11847 # Just in case anybody does it
11849 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11850 swatdir='${prefix}/swat'
11853 swatdir="$withval"
11855 esac
11857 else
11858 swatdir='${prefix}/swat'
11864 #################################################
11865 # these tests are taken from the GNU fileutils package
11866 echo "checking how to get filesystem space usage" 1>&6
11867 echo "configure:11868: checking how to get filesystem space usage" >&5
11868 space=no
11870 # Test for statvfs64.
11871 if test $space = no; then
11872 # SVR4
11873 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11874 echo "configure:11875: checking statvfs64 function (SVR4)" >&5
11875 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11876 echo $ac_n "(cached) $ac_c" 1>&6
11877 else
11878 if test "$cross_compiling" = yes; then
11879 fu_cv_sys_stat_statvfs64=cross
11880 else
11881 cat > conftest.$ac_ext <<EOF
11882 #line 11883 "configure"
11883 #include "confdefs.h"
11885 #if defined(HAVE_UNISTD_H)
11886 #include <unistd.h>
11887 #endif
11888 #include <sys/types.h>
11889 #include <sys/statvfs.h>
11890 main ()
11892 struct statvfs64 fsd;
11893 exit (statvfs64 (".", &fsd));
11896 if { (eval echo configure:11897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11897 then
11898 fu_cv_sys_stat_statvfs64=yes
11899 else
11900 echo "configure: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11902 rm -fr conftest*
11903 fu_cv_sys_stat_statvfs64=no
11905 rm -fr conftest*
11910 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11911 if test $fu_cv_sys_stat_statvfs64 = yes; then
11912 space=yes
11913 cat >> confdefs.h <<\EOF
11914 #define STAT_STATVFS64 1
11920 # Perform only the link test since it seems there are no variants of the
11921 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11922 # because that got a false positive on SCO OSR5. Adding the declaration
11923 # of a `struct statvfs' causes this test to fail (as it should) on such
11924 # systems. That system is reported to work fine with STAT_STATFS4 which
11925 # is what it gets when this test fails.
11926 if test $space = no; then
11927 # SVR4
11928 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11929 echo "configure:11930: checking statvfs function (SVR4)" >&5
11930 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11931 echo $ac_n "(cached) $ac_c" 1>&6
11932 else
11933 cat > conftest.$ac_ext <<EOF
11934 #line 11935 "configure"
11935 #include "confdefs.h"
11936 #include <sys/types.h>
11937 #include <sys/statvfs.h>
11938 int main() {
11939 struct statvfs fsd; statvfs (0, &fsd);
11940 ; return 0; }
11942 if { (eval echo configure:11943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11943 rm -rf conftest*
11944 fu_cv_sys_stat_statvfs=yes
11945 else
11946 echo "configure: failed program was:" >&5
11947 cat conftest.$ac_ext >&5
11948 rm -rf conftest*
11949 fu_cv_sys_stat_statvfs=no
11951 rm -f conftest*
11954 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11955 if test $fu_cv_sys_stat_statvfs = yes; then
11956 space=yes
11957 cat >> confdefs.h <<\EOF
11958 #define STAT_STATVFS 1
11964 if test $space = no; then
11965 # DEC Alpha running OSF/1
11966 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11967 echo "configure:11968: checking for 3-argument statfs function (DEC OSF/1)" >&5
11968 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11969 echo $ac_n "(cached) $ac_c" 1>&6
11970 else
11971 if test "$cross_compiling" = yes; then
11972 fu_cv_sys_stat_statfs3_osf1=no
11973 else
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11978 #include <sys/param.h>
11979 #include <sys/types.h>
11980 #include <sys/mount.h>
11981 main ()
11983 struct statfs fsd;
11984 fsd.f_fsize = 0;
11985 exit (statfs (".", &fsd, sizeof (struct statfs)));
11988 if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11989 then
11990 fu_cv_sys_stat_statfs3_osf1=yes
11991 else
11992 echo "configure: failed program was:" >&5
11993 cat conftest.$ac_ext >&5
11994 rm -fr conftest*
11995 fu_cv_sys_stat_statfs3_osf1=no
11997 rm -fr conftest*
12002 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12003 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12004 space=yes
12005 cat >> confdefs.h <<\EOF
12006 #define STAT_STATFS3_OSF1 1
12012 if test $space = no; then
12013 # AIX
12014 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12015 echo "configure:12016: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12016 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12018 else
12019 if test "$cross_compiling" = yes; then
12020 fu_cv_sys_stat_statfs2_bsize=no
12021 else
12022 cat > conftest.$ac_ext <<EOF
12023 #line 12024 "configure"
12024 #include "confdefs.h"
12026 #ifdef HAVE_SYS_PARAM_H
12027 #include <sys/param.h>
12028 #endif
12029 #ifdef HAVE_SYS_MOUNT_H
12030 #include <sys/mount.h>
12031 #endif
12032 #ifdef HAVE_SYS_VFS_H
12033 #include <sys/vfs.h>
12034 #endif
12035 main ()
12037 struct statfs fsd;
12038 fsd.f_bsize = 0;
12039 exit (statfs (".", &fsd));
12042 if { (eval echo configure:12043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12043 then
12044 fu_cv_sys_stat_statfs2_bsize=yes
12045 else
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12048 rm -fr conftest*
12049 fu_cv_sys_stat_statfs2_bsize=no
12051 rm -fr conftest*
12056 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12057 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12058 space=yes
12059 cat >> confdefs.h <<\EOF
12060 #define STAT_STATFS2_BSIZE 1
12066 if test $space = no; then
12067 # SVR3
12068 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12069 echo "configure:12070: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12070 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12071 echo $ac_n "(cached) $ac_c" 1>&6
12072 else
12073 if test "$cross_compiling" = yes; then
12074 fu_cv_sys_stat_statfs4=no
12075 else
12076 cat > conftest.$ac_ext <<EOF
12077 #line 12078 "configure"
12078 #include "confdefs.h"
12079 #include <sys/types.h>
12080 #include <sys/statfs.h>
12081 main ()
12083 struct statfs fsd;
12084 exit (statfs (".", &fsd, sizeof fsd, 0));
12087 if { (eval echo configure:12088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12088 then
12089 fu_cv_sys_stat_statfs4=yes
12090 else
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12093 rm -fr conftest*
12094 fu_cv_sys_stat_statfs4=no
12096 rm -fr conftest*
12101 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12102 if test $fu_cv_sys_stat_statfs4 = yes; then
12103 space=yes
12104 cat >> confdefs.h <<\EOF
12105 #define STAT_STATFS4 1
12111 if test $space = no; then
12112 # 4.4BSD and NetBSD
12113 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12114 echo "configure:12115: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12115 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12116 echo $ac_n "(cached) $ac_c" 1>&6
12117 else
12118 if test "$cross_compiling" = yes; then
12119 fu_cv_sys_stat_statfs2_fsize=no
12120 else
12121 cat > conftest.$ac_ext <<EOF
12122 #line 12123 "configure"
12123 #include "confdefs.h"
12124 #include <sys/types.h>
12125 #ifdef HAVE_SYS_PARAM_H
12126 #include <sys/param.h>
12127 #endif
12128 #ifdef HAVE_SYS_MOUNT_H
12129 #include <sys/mount.h>
12130 #endif
12131 main ()
12133 struct statfs fsd;
12134 fsd.f_fsize = 0;
12135 exit (statfs (".", &fsd));
12138 if { (eval echo configure:12139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12139 then
12140 fu_cv_sys_stat_statfs2_fsize=yes
12141 else
12142 echo "configure: failed program was:" >&5
12143 cat conftest.$ac_ext >&5
12144 rm -fr conftest*
12145 fu_cv_sys_stat_statfs2_fsize=no
12147 rm -fr conftest*
12152 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12153 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12154 space=yes
12155 cat >> confdefs.h <<\EOF
12156 #define STAT_STATFS2_FSIZE 1
12162 if test $space = no; then
12163 # Ultrix
12164 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12165 echo "configure:12166: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12166 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12167 echo $ac_n "(cached) $ac_c" 1>&6
12168 else
12169 if test "$cross_compiling" = yes; then
12170 fu_cv_sys_stat_fs_data=no
12171 else
12172 cat > conftest.$ac_ext <<EOF
12173 #line 12174 "configure"
12174 #include "confdefs.h"
12175 #include <sys/types.h>
12176 #ifdef HAVE_SYS_PARAM_H
12177 #include <sys/param.h>
12178 #endif
12179 #ifdef HAVE_SYS_MOUNT_H
12180 #include <sys/mount.h>
12181 #endif
12182 #ifdef HAVE_SYS_FS_TYPES_H
12183 #include <sys/fs_types.h>
12184 #endif
12185 main ()
12187 struct fs_data fsd;
12188 /* Ultrix's statfs returns 1 for success,
12189 0 for not mounted, -1 for failure. */
12190 exit (statfs (".", &fsd) != 1);
12193 if { (eval echo configure:12194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12194 then
12195 fu_cv_sys_stat_fs_data=yes
12196 else
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12199 rm -fr conftest*
12200 fu_cv_sys_stat_fs_data=no
12202 rm -fr conftest*
12207 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12208 if test $fu_cv_sys_stat_fs_data = yes; then
12209 space=yes
12210 cat >> confdefs.h <<\EOF
12211 #define STAT_STATFS2_FS_DATA 1
12218 # As a gating factor for large file support, in order to
12219 # use <4GB files we must have the following minimal support
12220 # available.
12221 # long long, and a 64 bit off_t or off64_t.
12222 # If we don't have all of these then disable large
12223 # file support.
12225 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12226 echo "configure:12227: checking if large file support can be enabled" >&5
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12231 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12232 #include <sys/types.h>
12233 #else
12234 __COMPILE_ERROR_
12235 #endif
12237 int main() {
12238 int i
12239 ; return 0; }
12241 if { (eval echo configure:12242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12242 rm -rf conftest*
12243 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12244 else
12245 echo "configure: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12247 rm -rf conftest*
12248 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12250 rm -f conftest*
12251 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12252 cat >> confdefs.h <<\EOF
12253 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12257 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12259 # Check whether --with-spinlocks or --without-spinlocks was given.
12260 if test "${with_spinlocks+set}" = set; then
12261 withval="$with_spinlocks"
12265 if test "x$with_spinlocks" = "xyes"; then
12266 cat >> confdefs.h <<\EOF
12267 #define USE_SPINLOCKS 1
12271 case "$host_cpu" in
12272 sparc)
12273 cat >> confdefs.h <<\EOF
12274 #define SPARC_SPINLOCKS 1
12279 i386|i486|i586|i686)
12280 cat >> confdefs.h <<\EOF
12281 #define INTEL_SPINLOCKS 1
12286 mips)
12287 cat >> confdefs.h <<\EOF
12288 #define MIPS_SPINLOCKS 1
12293 powerpc)
12294 cat >> confdefs.h <<\EOF
12295 #define POWERPC_SPINLOCKS 1
12299 esac
12302 #################################################
12303 # check for ACL support
12305 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12306 echo "configure:12307: checking whether to support ACLs" >&5
12307 # Check whether --with-acl-support or --without-acl-support was given.
12308 if test "${with_acl_support+set}" = set; then
12309 withval="$with_acl_support"
12310 case "$withval" in
12311 yes)
12313 case "$host_os" in
12314 *sysv5*)
12315 echo "$ac_t""Using UnixWare ACLs" 1>&6
12316 cat >> confdefs.h <<\EOF
12317 #define HAVE_UNIXWARE_ACLS 1
12321 *solaris*)
12322 echo "$ac_t""Using solaris ACLs" 1>&6
12323 cat >> confdefs.h <<\EOF
12324 #define HAVE_SOLARIS_ACLS 1
12328 *irix*)
12329 echo "$ac_t""Using IRIX ACLs" 1>&6
12330 cat >> confdefs.h <<\EOF
12331 #define HAVE_IRIX_ACLS 1
12335 *aix*)
12336 echo "$ac_t""Using AIX ACLs" 1>&6
12337 cat >> confdefs.h <<\EOF
12338 #define HAVE_AIX_ACLS 1
12342 *osf*)
12343 echo "$ac_t""Using Draft 13 Posix ACLs" 1>&6
12344 cat >> confdefs.h <<\EOF
12345 #define HAVE_DRAFT13_POSIX_ACLS 1
12348 LIBS="$LIBS -lpacl"
12351 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12352 echo "configure:12353: checking for acl_get_file in -lacl" >&5
12353 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12356 else
12357 ac_save_LIBS="$LIBS"
12358 LIBS="-lacl $LIBS"
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12362 /* Override any gcc2 internal prototype to avoid an error. */
12363 /* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12365 char acl_get_file();
12367 int main() {
12368 acl_get_file()
12369 ; return 0; }
12371 if { (eval echo configure:12372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12372 rm -rf conftest*
12373 eval "ac_cv_lib_$ac_lib_var=yes"
12374 else
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12377 rm -rf conftest*
12378 eval "ac_cv_lib_$ac_lib_var=no"
12380 rm -f conftest*
12381 LIBS="$ac_save_LIBS"
12384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12385 echo "$ac_t""yes" 1>&6
12386 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12387 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12388 cat >> confdefs.h <<EOF
12389 #define $ac_tr_lib 1
12392 LIBS="-lacl $LIBS"
12394 else
12395 echo "$ac_t""no" 1>&6
12398 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12399 echo "configure:12400: checking for ACL support" >&5
12400 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12402 else
12404 cat > conftest.$ac_ext <<EOF
12405 #line 12406 "configure"
12406 #include "confdefs.h"
12407 #include <sys/types.h>
12408 #include <sys/acl.h>
12409 int main() {
12410 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12411 ; return 0; }
12413 if { (eval echo configure:12414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12414 rm -rf conftest*
12415 samba_cv_HAVE_POSIX_ACLS=yes
12416 else
12417 echo "configure: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
12419 rm -rf conftest*
12420 samba_cv_HAVE_POSIX_ACLS=no
12422 rm -f conftest*
12425 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12426 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12427 echo "$ac_t""Using posix ACLs" 1>&6
12428 cat >> confdefs.h <<\EOF
12429 #define HAVE_POSIX_ACLS 1
12432 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12433 echo "configure:12434: checking for acl_get_perm_np" >&5
12434 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12435 echo $ac_n "(cached) $ac_c" 1>&6
12436 else
12438 cat > conftest.$ac_ext <<EOF
12439 #line 12440 "configure"
12440 #include "confdefs.h"
12441 #include <sys/types.h>
12442 #include <sys/acl.h>
12443 int main() {
12444 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12445 ; return 0; }
12447 if { (eval echo configure:12448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12448 rm -rf conftest*
12449 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12450 else
12451 echo "configure: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12453 rm -rf conftest*
12454 samba_cv_HAVE_ACL_GET_PERM_NP=no
12456 rm -f conftest*
12459 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12460 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12461 cat >> confdefs.h <<\EOF
12462 #define HAVE_ACL_GET_PERM_NP 1
12468 esac
12471 echo "$ac_t""no" 1>&6
12472 cat >> confdefs.h <<\EOF
12473 #define HAVE_NO_ACLS 1
12477 esac
12478 else
12479 cat >> confdefs.h <<\EOF
12480 #define HAVE_NO_ACLS 1
12483 echo "$ac_t""no" 1>&6
12488 #################################################
12489 # Check whether winbind is supported on this platform. If so we need to
12490 # build and install client programs (WINBIND_TARGETS), sbin programs
12491 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12493 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12494 echo "configure:12495: checking whether to build winbind" >&5
12496 # Initially, the value of $host_os decides whether winbind is supported
12498 case "$host_os" in
12499 *linux*|*solaris*)
12500 HAVE_WINBIND=yes
12503 HAVE_WINBIND=no
12504 winbind_no_reason=", unsupported on $host_os"
12506 esac
12508 # Check the setting of --with-winbindd
12510 # Check whether --with-winbind or --without-winbind was given.
12511 if test "${with_winbind+set}" = set; then
12512 withval="$with_winbind"
12514 case "$withval" in
12515 yes)
12516 HAVE_WINBIND=yes
12519 HAVE_WINBIND=no
12520 winbind_reason=""
12522 esac
12526 # We need unix domain sockets for winbind
12528 if test x"$HAVE_WINBIND" = x"yes"; then
12529 if test x"$samba_cv_unixsocket" = x"no"; then
12530 winbind_no_reason=", no unix domain socket support on $host_os"
12531 HAVE_WINBIND=no
12535 # Display test results
12537 if test x"$HAVE_WINBIND" = x"yes"; then
12539 echo "$ac_t""yes" 1>&6
12541 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12542 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12543 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12545 case "$with_pam" in
12546 yes)
12547 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12549 esac
12550 else
12551 echo "$ac_t""no$winbind_no_reason" 1>&6
12553 WINBIND_TARGETS=""
12554 WINBIND_STARGETS=""
12555 WINBIND_LTARGETS=""
12556 WINBIND_PAM_PROGS=""
12559 # Substitution time!
12566 #################################################
12567 # final configure stuff
12569 echo "checking configure summary"
12570 if test "$cross_compiling" = yes; then
12572 else
12573 cat > conftest.$ac_ext <<EOF
12574 #line 12575 "configure"
12575 #include "confdefs.h"
12576 #include "${srcdir-.}/tests/summary.c"
12578 if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12579 then
12580 echo "configure OK";
12581 else
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12584 rm -fr conftest*
12585 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12587 rm -fr conftest*
12591 builddir=`pwd`
12594 trap '' 1 2 15
12595 cat > confcache <<\EOF
12596 # This file is a shell script that caches the results of configure
12597 # tests run on this system so they can be shared between configure
12598 # scripts and configure runs. It is not useful on other systems.
12599 # If it contains results you don't want to keep, you may remove or edit it.
12601 # By default, configure uses ./config.cache as the cache file,
12602 # creating it if it does not exist already. You can give configure
12603 # the --cache-file=FILE option to use a different cache file; that is
12604 # what configure does when it calls configure scripts in
12605 # subdirectories, so they share the cache.
12606 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12607 # config.status only pays attention to the cache file if you give it the
12608 # --recheck option to rerun configure.
12611 # The following way of writing the cache mishandles newlines in values,
12612 # but we know of no workaround that is simple, portable, and efficient.
12613 # So, don't put newlines in cache variables' values.
12614 # Ultrix sh set writes to stderr and can't be redirected directly,
12615 # and sets the high bit in the cache file unless we assign to the vars.
12616 (set) 2>&1 |
12617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12618 *ac_space=\ *)
12619 # `set' does not quote correctly, so add quotes (double-quote substitution
12620 # turns \\\\ into \\, and sed turns \\ into \).
12621 sed -n \
12622 -e "s/'/'\\\\''/g" \
12623 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12626 # `set' quotes correctly as required by POSIX, so do not add quotes.
12627 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12629 esac >> confcache
12630 if cmp -s $cache_file confcache; then
12632 else
12633 if test -w $cache_file; then
12634 echo "updating cache $cache_file"
12635 cat confcache > $cache_file
12636 else
12637 echo "not updating unwritable cache $cache_file"
12640 rm -f confcache
12642 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12645 # Let make expand exec_prefix.
12646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12648 # Any assignment to VPATH causes Sun make to only execute
12649 # the first set of double-colon rules, so remove it if not needed.
12650 # If there is a colon in the path, we need to keep it.
12651 if test "x$srcdir" = x.; then
12652 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12655 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12657 DEFS=-DHAVE_CONFIG_H
12659 # Without the "./", some shells look in PATH for config.status.
12660 : ${CONFIG_STATUS=./config.status}
12662 echo creating $CONFIG_STATUS
12663 rm -f $CONFIG_STATUS
12664 cat > $CONFIG_STATUS <<EOF
12665 #! /bin/sh
12666 # Generated automatically by configure.
12667 # Run this file to recreate the current configuration.
12668 # This directory was configured as follows,
12669 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12671 # $0 $ac_configure_args
12673 # Compiler output produced by configure, useful for debugging
12674 # configure, is in ./config.log if it exists.
12676 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12677 for ac_option
12679 case "\$ac_option" in
12680 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12681 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12682 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12683 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12684 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12685 exit 0 ;;
12686 -help | --help | --hel | --he | --h)
12687 echo "\$ac_cs_usage"; exit 0 ;;
12688 *) echo "\$ac_cs_usage"; exit 1 ;;
12689 esac
12690 done
12692 ac_given_srcdir=$srcdir
12693 ac_given_INSTALL="$INSTALL"
12695 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12697 cat >> $CONFIG_STATUS <<EOF
12699 # Protect against being on the right side of a sed subst in config.status.
12700 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12701 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12702 $ac_vpsub
12703 $extrasub
12704 s%@SHELL@%$SHELL%g
12705 s%@CFLAGS@%$CFLAGS%g
12706 s%@CPPFLAGS@%$CPPFLAGS%g
12707 s%@CXXFLAGS@%$CXXFLAGS%g
12708 s%@FFLAGS@%$FFLAGS%g
12709 s%@DEFS@%$DEFS%g
12710 s%@LDFLAGS@%$LDFLAGS%g
12711 s%@LIBS@%$LIBS%g
12712 s%@exec_prefix@%$exec_prefix%g
12713 s%@prefix@%$prefix%g
12714 s%@program_transform_name@%$program_transform_name%g
12715 s%@bindir@%$bindir%g
12716 s%@sbindir@%$sbindir%g
12717 s%@libexecdir@%$libexecdir%g
12718 s%@datadir@%$datadir%g
12719 s%@sysconfdir@%$sysconfdir%g
12720 s%@sharedstatedir@%$sharedstatedir%g
12721 s%@localstatedir@%$localstatedir%g
12722 s%@libdir@%$libdir%g
12723 s%@includedir@%$includedir%g
12724 s%@oldincludedir@%$oldincludedir%g
12725 s%@infodir@%$infodir%g
12726 s%@mandir@%$mandir%g
12727 s%@RUNPROG@%$RUNPROG%g
12728 s%@MPROGS@%$MPROGS%g
12729 s%@LDSHFLAGS@%$LDSHFLAGS%g
12730 s%@SHLD@%$SHLD%g
12731 s%@HOST_OS@%$HOST_OS%g
12732 s%@PAM_MOD@%$PAM_MOD%g
12733 s%@WRAP@%$WRAP%g
12734 s%@WRAP32@%$WRAP32%g
12735 s%@PICFLAG@%$PICFLAG%g
12736 s%@PICSUFFIX@%$PICSUFFIX%g
12737 s%@POBAD_CC@%$POBAD_CC%g
12738 s%@SHLIBEXT@%$SHLIBEXT%g
12739 s%@BLDSHARED@%$BLDSHARED%g
12740 s%@CC@%$CC%g
12741 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12742 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12743 s%@INSTALL_DATA@%$INSTALL_DATA%g
12744 s%@AWK@%$AWK%g
12745 s%@BROKEN_CC@%$BROKEN_CC%g
12746 s%@host@%$host%g
12747 s%@host_alias@%$host_alias%g
12748 s%@host_cpu@%$host_cpu%g
12749 s%@host_vendor@%$host_vendor%g
12750 s%@host_os@%$host_os%g
12751 s%@target@%$target%g
12752 s%@target_alias@%$target_alias%g
12753 s%@target_cpu@%$target_cpu%g
12754 s%@target_vendor@%$target_vendor%g
12755 s%@target_os@%$target_os%g
12756 s%@build@%$build%g
12757 s%@build_alias@%$build_alias%g
12758 s%@build_cpu@%$build_cpu%g
12759 s%@build_vendor@%$build_vendor%g
12760 s%@build_os@%$build_os%g
12761 s%@CPP@%$CPP%g
12762 s%@LIBOBJS@%$LIBOBJS%g
12763 s%@TERMLIBS@%$TERMLIBS%g
12764 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12765 s%@ROFF@%$ROFF%g
12766 s%@QUOTAOBJS@%$QUOTAOBJS%g
12767 s%@privatedir@%$privatedir%g
12768 s%@lockdir@%$lockdir%g
12769 s%@swatdir@%$swatdir%g
12770 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12771 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12772 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12773 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12774 s%@builddir@%$builddir%g
12776 CEOF
12779 cat >> $CONFIG_STATUS <<\EOF
12781 # Split the substitutions into bite-sized pieces for seds with
12782 # small command number limits, like on Digital OSF/1 and HP-UX.
12783 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12784 ac_file=1 # Number of current file.
12785 ac_beg=1 # First line for current file.
12786 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12787 ac_more_lines=:
12788 ac_sed_cmds=""
12789 while $ac_more_lines; do
12790 if test $ac_beg -gt 1; then
12791 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12792 else
12793 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12795 if test ! -s conftest.s$ac_file; then
12796 ac_more_lines=false
12797 rm -f conftest.s$ac_file
12798 else
12799 if test -z "$ac_sed_cmds"; then
12800 ac_sed_cmds="sed -f conftest.s$ac_file"
12801 else
12802 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12804 ac_file=`expr $ac_file + 1`
12805 ac_beg=$ac_end
12806 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12808 done
12809 if test -z "$ac_sed_cmds"; then
12810 ac_sed_cmds=cat
12814 cat >> $CONFIG_STATUS <<EOF
12816 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12818 cat >> $CONFIG_STATUS <<\EOF
12819 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12821 case "$ac_file" in
12822 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12823 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12824 *) ac_file_in="${ac_file}.in" ;;
12825 esac
12827 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12829 # Remove last slash and all that follows it. Not all systems have dirname.
12830 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12832 # The file is in a subdirectory.
12833 test ! -d "$ac_dir" && mkdir "$ac_dir"
12834 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12835 # A "../" for each directory in $ac_dir_suffix.
12836 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12837 else
12838 ac_dir_suffix= ac_dots=
12841 case "$ac_given_srcdir" in
12842 .) srcdir=.
12843 if test -z "$ac_dots"; then top_srcdir=.
12844 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12845 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12846 *) # Relative path.
12847 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12848 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12849 esac
12851 case "$ac_given_INSTALL" in
12852 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12853 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12854 esac
12856 echo creating "$ac_file"
12857 rm -f "$ac_file"
12858 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12859 case "$ac_file" in
12860 *Makefile*) ac_comsub="1i\\
12861 # $configure_input" ;;
12862 *) ac_comsub= ;;
12863 esac
12865 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12866 sed -e "$ac_comsub
12867 s%@configure_input@%$configure_input%g
12868 s%@srcdir@%$srcdir%g
12869 s%@top_srcdir@%$top_srcdir%g
12870 s%@INSTALL@%$INSTALL%g
12871 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12872 fi; done
12873 rm -f conftest.s*
12875 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12876 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12878 # ac_d sets the value in "#define NAME VALUE" lines.
12879 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12880 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12881 ac_dC='\3'
12882 ac_dD='%g'
12883 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12884 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12885 ac_uB='\([ ]\)%\1#\2define\3'
12886 ac_uC=' '
12887 ac_uD='\4%g'
12888 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12889 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12890 ac_eB='$%\1#\2define\3'
12891 ac_eC=' '
12892 ac_eD='%g'
12894 if test "${CONFIG_HEADERS+set}" != set; then
12896 cat >> $CONFIG_STATUS <<EOF
12897 CONFIG_HEADERS="include/config.h"
12899 cat >> $CONFIG_STATUS <<\EOF
12901 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12902 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12903 case "$ac_file" in
12904 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12905 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12906 *) ac_file_in="${ac_file}.in" ;;
12907 esac
12909 echo creating $ac_file
12911 rm -f conftest.frag conftest.in conftest.out
12912 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12913 cat $ac_file_inputs > conftest.in
12917 # Transform confdefs.h into a sed script conftest.vals that substitutes
12918 # the proper values into config.h.in to produce config.h. And first:
12919 # Protect against being on the right side of a sed subst in config.status.
12920 # Protect against being in an unquoted here document in config.status.
12921 rm -f conftest.vals
12922 cat > conftest.hdr <<\EOF
12923 s/[\\&%]/\\&/g
12924 s%[\\$`]%\\&%g
12925 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12926 s%ac_d%ac_u%gp
12927 s%ac_u%ac_e%gp
12929 sed -n -f conftest.hdr confdefs.h > conftest.vals
12930 rm -f conftest.hdr
12932 # This sed command replaces #undef with comments. This is necessary, for
12933 # example, in the case of _POSIX_SOURCE, which is predefined and required
12934 # on some systems where configure will not decide to define it.
12935 cat >> conftest.vals <<\EOF
12936 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12939 # Break up conftest.vals because some shells have a limit on
12940 # the size of here documents, and old seds have small limits too.
12942 rm -f conftest.tail
12943 while :
12945 ac_lines=`grep -c . conftest.vals`
12946 # grep -c gives empty output for an empty file on some AIX systems.
12947 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12948 # Write a limited-size here document to conftest.frag.
12949 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12950 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12951 echo 'CEOF
12952 sed -f conftest.frag conftest.in > conftest.out
12953 rm -f conftest.in
12954 mv conftest.out conftest.in
12955 ' >> $CONFIG_STATUS
12956 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12957 rm -f conftest.vals
12958 mv conftest.tail conftest.vals
12959 done
12960 rm -f conftest.vals
12962 cat >> $CONFIG_STATUS <<\EOF
12963 rm -f conftest.frag conftest.h
12964 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12965 cat conftest.in >> conftest.h
12966 rm -f conftest.in
12967 if cmp -s $ac_file conftest.h 2>/dev/null; then
12968 echo "$ac_file is unchanged"
12969 rm -f conftest.h
12970 else
12971 # Remove last slash and all that follows it. Not all systems have dirname.
12972 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12973 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12974 # The file is in a subdirectory.
12975 test ! -d "$ac_dir" && mkdir "$ac_dir"
12977 rm -f $ac_file
12978 mv conftest.h $ac_file
12980 fi; done
12983 cat >> $CONFIG_STATUS <<EOF
12986 cat >> $CONFIG_STATUS <<\EOF
12988 exit 0
12990 chmod +x $CONFIG_STATUS
12991 rm -fr confdefs* $ac_clean_files
12992 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1