updating OID to new sambaAccount
[Samba.git] / source / configure
blobe21ccc63f7c66be4c4cda4d3eed4b574e7d39f27
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --with-fhs Use FHS-compliant paths (default=no)"
17 ac_help="$ac_help
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
21 ac_help="$ac_help
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
23 ac_help="$ac_help
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
25 ac_help="$ac_help
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
27 ac_help="$ac_help
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
29 ac_help="$ac_help
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
31 ac_help="$ac_help
32 --enable-debug Turn on compiler debugging information (default=no)"
33 ac_help="$ac_help
34 --enable-cups Turn on CUPS support (default=auto)"
35 ac_help="$ac_help
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
37 ac_help="$ac_help
38 --with-smbwrapper Include SMB wrapper support (default=no)"
39 ac_help="$ac_help
40 --with-afs Include AFS support (default=no)"
41 ac_help="$ac_help
42 --with-dce-dfs Include DCE/DFS support (default=no)"
43 ac_help="$ac_help
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
45 ac_help="$ac_help
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
47 ac_help="$ac_help
48 --with-automount Include AUTOMOUNT support (default=no)"
49 ac_help="$ac_help
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
51 ac_help="$ac_help
52 --with-pam Include PAM password database support (default=no)"
53 ac_help="$ac_help
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
55 ac_help="$ac_help
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
57 ac_help="$ac_help
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
59 ac_help="$ac_help
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
61 ac_help="$ac_help
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
63 ac_help="$ac_help
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
67 ac_help="$ac_help
68 --with-syslog Include experimental SYSLOG support (default=no)"
69 ac_help="$ac_help
70 --with-profiling-data Include gathering source code profile information (default=no)"
71 ac_help="$ac_help
72 --with-quotas Include experimental disk-quota support (default=no)"
73 ac_help="$ac_help
74 --with-utmp Include experimental utmp accounting (default=no)"
75 ac_help="$ac_help
76 --with-msdfs Include MS Dfs support (default=no)"
77 ac_help="$ac_help
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
79 ac_help="$ac_help
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
81 ac_help="$ac_help
82 --with-acl-support Include ACL support (default=no)"
83 ac_help="$ac_help
84 --with-winbind Build winbind (default, if supported by OS)"
85 ac_help="$ac_help
86 --with-included-popt use bundled popt library, not from system"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
91 build=NONE
92 cache_file=./config.cache
93 exec_prefix=NONE
94 host=NONE
95 no_create=
96 nonopt=NONE
97 no_recursion=
98 prefix=NONE
99 program_prefix=NONE
100 program_suffix=NONE
101 program_transform_name=s,x,x,
102 silent=
103 site=
104 srcdir=
105 target=NONE
106 verbose=
107 x_includes=NONE
108 x_libraries=NONE
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
123 subdirs=
124 MFLAGS= MAKEFLAGS=
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
127 ac_max_here_lines=12
129 ac_prev=
130 for ac_option
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
136 ac_prev=
137 continue
140 case "$ac_option" in
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 *) ac_optarg= ;;
143 esac
145 # Accept the important Cygnus configure options, so we can diagnose typos.
147 case "$ac_option" in
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 ac_prev=bindir ;;
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
155 ac_prev=build ;;
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 ac_prev=datadir ;;
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 | --da=*)
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 case "$ac_option" in
189 *=*) ;;
190 *) ac_optarg=yes ;;
191 esac
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
205 with_gas=yes ;;
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
210 cat << EOF
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
213 Configuration:
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
221 [$ac_default_prefix]
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 [same as prefix]
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
228 [PREFIX/share]
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 [PREFIX/com]
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
244 cat << EOF
245 Host type:
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
260 exit 0 ;;
262 -host | --host | --hos | --ho)
263 ac_prev=host ;;
264 -host=* | --host=* | --hos=* | --ho=*)
265 host="$ac_optarg" ;;
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 ac_prev=infodir ;;
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
280 ac_prev=libdir ;;
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 ac_prev=mandir ;;
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
305 -nfp | --nfp | --nf)
306 # Obsolete; use --without-fp.
307 with_fp=no ;;
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 | --no-cr | --no-c)
311 no_create=yes ;;
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 no_recursion=yes ;;
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 ac_prev=prefix ;;
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
364 silent=yes ;;
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 ac_prev=sbindir ;;
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 | --sbi=* | --sb=*)
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
375 | --sha | --sh)
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 | --sha=* | --sh=*)
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
384 ac_prev=site ;;
385 -site=* | --site=* | --sit=*)
386 site="$ac_optarg" ;;
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 ac_prev=srcdir ;;
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
401 ac_prev=target ;;
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 verbose=yes ;;
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
410 exit 0 ;;
412 -with-* | --with-*)
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 case "$ac_option" in
420 *=*) ;;
421 *) ac_optarg=yes ;;
422 esac
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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 eval "with_${ac_package}=no" ;;
434 --x)
435 # Obsolete; use --with-x.
436 with_x=yes ;;
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 nonopt="$ac_option"
465 esac
466 done
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
475 # 0 standard input
476 # 1 file creation
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
483 exec 6>/dev/null
484 else
485 exec 6>&1
487 exec 5>./config.log
489 echo "\
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
492 " 1>&5
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
496 ac_configure_args=
497 for ac_arg
499 case "$ac_arg" in
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 esac
508 done
510 # NLS nuisances.
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 echo > confdefs.h
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=include/includes.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
533 ac_prog=$0
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 srcdir=$ac_confdir
537 if test ! -r $srcdir/$ac_unique_file; then
538 srcdir=..
540 else
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 else
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 else
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
563 . "$ac_site_file"
565 done
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 . $cache_file
570 else
571 echo "creating cache $cache_file"
572 > $cache_file
575 ac_ext=c
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
582 ac_exeext=
583 ac_objext=o
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='
588 ' ac_t=' '
589 else
590 ac_n=-n ac_c= ac_t=
592 else
593 ac_n= ac_c='\c' ac_t=
599 #################################################
600 # Directory handling stuff to support both the
601 # legacy SAMBA directories and FHS compliant
602 # ones...
605 # Check whether --with-fhs or --without-fhs was given.
606 if test "${with_fhs+set}" = set; then
607 withval="$with_fhs"
608 codepagedir="\$(DATADIR)/samba/codepages"
609 configdir="${sysconfdir}/samba"
610 lockdir="\${VARDIR}/cache/samba"
611 piddir="\$(VARDIR)/run/samba"
612 logfilebase="\${VARDIR}/log/samba"
613 privatedir="\${CONFIGDIR}/private"
614 swatdir="\${DATADIR}/samba/swat"
615 else
616 codepagedir="\$(LIBDIR)/codepages"
617 configdir="\$(LIBDIR)"
618 logfilebase="\$(VARDIR)"
619 lockdir="\${VARDIR}/locks"
620 piddir="\$(VARDIR)/locks"
621 privatedir="\${prefix}/private"
622 swatdir="\${prefix}/swat"
626 #################################################
627 # set private directory location
628 # Check whether --with-privatedir or --without-privatedir was given.
629 if test "${with_privatedir+set}" = set; then
630 withval="$with_privatedir"
631 case "$withval" in
632 yes|no)
634 # Just in case anybody calls it without argument
636 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
639 privatedir="$withval"
641 esac
645 #################################################
646 # set lock directory location
647 # Check whether --with-lockdir or --without-lockdir was given.
648 if test "${with_lockdir+set}" = set; then
649 withval="$with_lockdir"
650 case "$withval" in
651 yes|no)
653 # Just in case anybody calls it without argument
655 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
658 lockdir="$withval"
660 esac
664 #################################################
665 # set pid directory location
666 # Check whether --with-piddir or --without-piddir was given.
667 if test "${with_piddir+set}" = set; then
668 withval="$with_piddir"
669 case "$withval" in
670 yes|no)
672 # Just in case anybody calls it without argument
674 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
677 piddir="$withval"
679 esac
683 #################################################
684 # set SWAT directory location
685 # Check whether --with-swatdir or --without-swatdir was given.
686 if test "${with_swatdir+set}" = set; then
687 withval="$with_swatdir"
688 case "$withval" in
689 yes|no)
691 # Just in case anybody does it
693 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
696 swatdir="$withval"
698 esac
702 #################################################
703 # set configuration directory location
704 # Check whether --with-configdir or --without-configdir was given.
705 if test "${with_configdir+set}" = set; then
706 withval="$with_configdir"
707 case "$withval" in
708 yes|no)
710 # Just in case anybody does it
712 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
715 configdir="$withval"
717 esac
721 #################################################
722 # set codepage directory location
723 # Check whether --with-codepagedir or --without-codepagedir was given.
724 if test "${with_codepagedir+set}" = set; then
725 withval="$with_codepagedir"
726 case "$withval" in
727 yes|no)
729 # Just in case anybody does it
731 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
734 codepagedir="$withval"
736 esac
740 #################################################
741 # set log directory location
742 # Check whether --with-logfilebase or --without-logfilebase was given.
743 if test "${with_logfilebase+set}" = set; then
744 withval="$with_logfilebase"
745 case "$withval" in
746 yes|no)
748 # Just in case anybody does it
750 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
753 logfilebase="$withval"
755 esac
788 # compile with optimization and without debugging by default
789 CFLAGS="-O ${CFLAGS}"
791 # Check whether --enable-debug or --disable-debug was given.
792 if test "${enable_debug+set}" = set; then
793 enableval="$enable_debug"
794 if eval "test x$enable_debug = xyes"; then
795 CFLAGS="${CFLAGS} -g"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 if test -n "$CC"; then
810 ac_cv_prog_CC="$CC" # Let the user override the test.
811 else
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
813 ac_dummy="$PATH"
814 for ac_dir in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir=.
816 if test -f $ac_dir/$ac_word; then
817 ac_cv_prog_CC="gcc"
818 break
820 done
821 IFS="$ac_save_ifs"
824 CC="$ac_cv_prog_CC"
825 if test -n "$CC"; then
826 echo "$ac_t""$CC" 1>&6
827 else
828 echo "$ac_t""no" 1>&6
831 if test -z "$CC"; then
832 # Extract the first word of "cc", so it can be a program name with args.
833 set dummy cc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
838 else
839 if test -n "$CC"; then
840 ac_cv_prog_CC="$CC" # Let the user override the test.
841 else
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
843 ac_prog_rejected=no
844 ac_dummy="$PATH"
845 for ac_dir in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir=.
847 if test -f $ac_dir/$ac_word; then
848 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
849 ac_prog_rejected=yes
850 continue
852 ac_cv_prog_CC="cc"
853 break
855 done
856 IFS="$ac_save_ifs"
857 if test $ac_prog_rejected = yes; then
858 # We found a bogon in the path, so make sure we never use it.
859 set dummy $ac_cv_prog_CC
860 shift
861 if test $# -gt 0; then
862 # We chose a different compiler from the bogus one.
863 # However, it has the same basename, so the bogon will be chosen
864 # first if we set CC to just the basename; use the full file name.
865 shift
866 set dummy "$ac_dir/$ac_word" "$@"
867 shift
868 ac_cv_prog_CC="$@"
873 CC="$ac_cv_prog_CC"
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
876 else
877 echo "$ac_t""no" 1>&6
880 if test -z "$CC"; then
881 case "`uname -s`" in
882 *win32* | *WIN32*)
883 # Extract the first word of "cl", so it can be a program name with args.
884 set dummy cl; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889 else
890 if test -n "$CC"; then
891 ac_cv_prog_CC="$CC" # Let the user override the test.
892 else
893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
894 ac_dummy="$PATH"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
898 ac_cv_prog_CC="cl"
899 break
901 done
902 IFS="$ac_save_ifs"
905 CC="$ac_cv_prog_CC"
906 if test -n "$CC"; then
907 echo "$ac_t""$CC" 1>&6
908 else
909 echo "$ac_t""no" 1>&6
912 esac
914 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918 echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
920 ac_ext=c
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp='$CPP $CPPFLAGS'
923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling=$ac_cv_prog_cc_cross
927 cat > conftest.$ac_ext << EOF
929 #line 930 "configure"
930 #include "confdefs.h"
932 main(){return(0);}
934 if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
935 ac_cv_prog_cc_works=yes
936 # If we can't run a trivial program, we are probably using a cross compiler.
937 if (./conftest; exit) 2>/dev/null; then
938 ac_cv_prog_cc_cross=no
939 else
940 ac_cv_prog_cc_cross=yes
942 else
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 ac_cv_prog_cc_works=no
947 rm -fr conftest*
948 ac_ext=c
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling=$ac_cv_prog_cc_cross
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
968 else
969 cat > conftest.c <<EOF
970 #ifdef __GNUC__
971 yes;
972 #endif
974 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
975 ac_cv_prog_gcc=yes
976 else
977 ac_cv_prog_gcc=no
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
984 GCC=yes
985 else
986 GCC=
989 ac_test_CFLAGS="${CFLAGS+set}"
990 ac_save_CFLAGS="$CFLAGS"
991 CFLAGS=
992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
996 else
997 echo 'void f(){}' > conftest.c
998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
999 ac_cv_prog_cc_g=yes
1000 else
1001 ac_cv_prog_cc_g=no
1003 rm -f conftest*
1007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008 if test "$ac_test_CFLAGS" = set; then
1009 CFLAGS="$ac_save_CFLAGS"
1010 elif test $ac_cv_prog_cc_g = yes; then
1011 if test "$GCC" = yes; then
1012 CFLAGS="-g -O2"
1013 else
1014 CFLAGS="-g"
1016 else
1017 if test "$GCC" = yes; then
1018 CFLAGS="-O2"
1019 else
1020 CFLAGS=
1024 ac_aux_dir=
1025 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1026 if test -f $ac_dir/install-sh; then
1027 ac_aux_dir=$ac_dir
1028 ac_install_sh="$ac_aux_dir/install-sh -c"
1029 break
1030 elif test -f $ac_dir/install.sh; then
1031 ac_aux_dir=$ac_dir
1032 ac_install_sh="$ac_aux_dir/install.sh -c"
1033 break
1035 done
1036 if test -z "$ac_aux_dir"; then
1037 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1039 ac_config_guess=$ac_aux_dir/config.guess
1040 ac_config_sub=$ac_aux_dir/config.sub
1041 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1043 # Find a good install program. We prefer a C program (faster),
1044 # so one script is as good as another. But avoid the broken or
1045 # incompatible versions:
1046 # SysV /etc/install, /usr/sbin/install
1047 # SunOS /usr/etc/install
1048 # IRIX /sbin/install
1049 # AIX /bin/install
1050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1053 # ./install, which can be erroneously created by make from ./install.sh.
1054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1055 echo "configure:1056: checking for a BSD compatible install" >&5
1056 if test -z "$INSTALL"; then
1057 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1059 else
1060 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1061 for ac_dir in $PATH; do
1062 # Account for people who put trailing slashes in PATH elements.
1063 case "$ac_dir/" in
1064 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1066 # OSF1 and SCO ODT 3.0 have their own names for install.
1067 # Don't use installbsd from OSF since it installs stuff as root
1068 # by default.
1069 for ac_prog in ginstall scoinst install; do
1070 if test -f $ac_dir/$ac_prog; then
1071 if test $ac_prog = install &&
1072 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1073 # AIX install. It has an incompatible calling convention.
1075 else
1076 ac_cv_path_install="$ac_dir/$ac_prog -c"
1077 break 2
1080 done
1082 esac
1083 done
1084 IFS="$ac_save_IFS"
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL="$ac_cv_path_install"
1089 else
1090 # As a last resort, use the slow shell script. We don't cache a
1091 # path for INSTALL within a source directory, because that will
1092 # break other packages using the cache if that directory is
1093 # removed, or if the path is relative.
1094 INSTALL="$ac_install_sh"
1097 echo "$ac_t""$INSTALL" 1>&6
1099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1100 # It thinks the first close brace ends the variable substitution.
1101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1107 for ac_prog in gawk mawk nawk awk
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy $ac_prog; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 if test -n "$AWK"; then
1117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1118 else
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1120 ac_dummy="$PATH"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_AWK="$ac_prog"
1125 break
1127 done
1128 IFS="$ac_save_ifs"
1131 AWK="$ac_cv_prog_AWK"
1132 if test -n "$AWK"; then
1133 echo "$ac_t""$AWK" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1138 test -n "$AWK" && break
1139 done
1141 LD=ld
1142 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1143 echo "configure:1144: checking if the linker ($LD) is GNU ld" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146 else
1147 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1148 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1149 ac_cv_prog_gnu_ld=yes
1150 else
1151 ac_cv_prog_gnu_ld=no
1155 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1157 # Extract the first word of "passwd", so it can be a program name with args.
1158 set dummy passwd; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164 case "$passwd_program" in
1166 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1168 ?:/*)
1169 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1173 ac_dummy="$PATH"
1174 for ac_dir in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir=.
1176 if test -f $ac_dir/$ac_word; then
1177 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1178 break
1180 done
1181 IFS="$ac_save_ifs"
1182 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1184 esac
1186 passwd_program="$ac_cv_path_passwd_program"
1187 if test -n "$passwd_program"; then
1188 echo "$ac_t""$passwd_program" 1>&6
1189 else
1190 echo "$ac_t""no" 1>&6
1195 if test "x$CC" != xcc; then
1196 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether $CC and cc understand -c and -o together" >&5
1198 else
1199 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether cc understands -c and -o together" >&5
1202 set dummy $CC; ac_cc="`echo $2 |
1203 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1204 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206 else
1207 echo 'foo(){}' > conftest.c
1208 # Make sure it works both with $CC and with simple cc.
1209 # We do the test twice because some compilers refuse to overwrite an
1210 # existing .o file with -o, though they will create one.
1211 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1212 if { (eval echo configure:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1213 test -f conftest.o && { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1214 then
1215 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1216 if test "x$CC" != xcc; then
1217 # Test first that cc exists at all.
1218 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1219 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1220 if { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1221 test -f conftest.o && { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1222 then
1223 # cc works too.
1225 else
1226 # cc exists but doesn't like -o.
1227 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1231 else
1232 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1234 rm -f conftest*
1237 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1238 echo "$ac_t""yes" 1>&6
1239 else
1240 echo "$ac_t""no" 1>&6
1241 cat >> confdefs.h <<\EOF
1242 #define NO_MINUS_C_MINUS_O 1
1247 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1248 BROKEN_CC=
1249 else
1250 BROKEN_CC=#
1254 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1255 echo "configure:1256: checking that the C compiler understands volatile" >&5
1256 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 #include <sys/types.h>
1264 int main() {
1265 volatile int i = 0
1266 ; return 0; }
1268 if { (eval echo configure:1269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1269 rm -rf conftest*
1270 samba_cv_volatile=yes
1271 else
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1274 rm -rf conftest*
1275 samba_cv_volatile=no
1277 rm -f conftest*
1280 echo "$ac_t""$samba_cv_volatile" 1>&6
1281 if test x"$samba_cv_volatile" = x"yes"; then
1282 cat >> confdefs.h <<\EOF
1283 #define HAVE_VOLATILE 1
1291 # Do some error checking and defaulting for the host and target type.
1292 # The inputs are:
1293 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1295 # The rules are:
1296 # 1. You are not allowed to specify --host, --target, and nonopt at the
1297 # same time.
1298 # 2. Host defaults to nonopt.
1299 # 3. If nonopt is not specified, then host defaults to the current host,
1300 # as determined by config.guess.
1301 # 4. Target and build default to nonopt.
1302 # 5. If nonopt is not specified, then target and build default to host.
1304 # The aliases save the names the user supplied, while $host etc.
1305 # will get canonicalized.
1306 case $host---$target---$nonopt in
1307 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1308 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1309 esac
1312 # Make sure we can run config.sub.
1313 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1314 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1317 echo $ac_n "checking host system type""... $ac_c" 1>&6
1318 echo "configure:1319: checking host system type" >&5
1320 host_alias=$host
1321 case "$host_alias" in
1322 NONE)
1323 case $nonopt in
1324 NONE)
1325 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1326 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1327 fi ;;
1328 *) host_alias=$nonopt ;;
1329 esac ;;
1330 esac
1332 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1333 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1334 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1335 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1336 echo "$ac_t""$host" 1>&6
1338 echo $ac_n "checking target system type""... $ac_c" 1>&6
1339 echo "configure:1340: checking target system type" >&5
1341 target_alias=$target
1342 case "$target_alias" in
1343 NONE)
1344 case $nonopt in
1345 NONE) target_alias=$host_alias ;;
1346 *) target_alias=$nonopt ;;
1347 esac ;;
1348 esac
1350 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1351 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354 echo "$ac_t""$target" 1>&6
1356 echo $ac_n "checking build system type""... $ac_c" 1>&6
1357 echo "configure:1358: checking build system type" >&5
1359 build_alias=$build
1360 case "$build_alias" in
1361 NONE)
1362 case $nonopt in
1363 NONE) build_alias=$host_alias ;;
1364 *) build_alias=$nonopt ;;
1365 esac ;;
1366 esac
1368 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1369 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1370 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1371 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1372 echo "$ac_t""$build" 1>&6
1374 test "$host_alias" != "$target_alias" &&
1375 test "$program_prefix$program_suffix$program_transform_name" = \
1376 NONENONEs,x,x, &&
1377 program_prefix=${target_alias}-
1380 case "$host_os" in
1381 *irix6*) cat >> confdefs.h <<\EOF
1382 #include <standards.h>
1386 esac
1390 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1391 echo "configure:1392: checking config.cache system type" >&5
1392 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1393 test x"$ac_cv_host_system_type" != x"$host"; } ||
1394 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1395 test x"$ac_cv_build_system_type" != x"$build"; } ||
1396 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1397 test x"$ac_cv_target_system_type" != x"$target"; }; then
1398 echo "$ac_t""different" 1>&6
1399 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1400 else
1401 echo "$ac_t""same" 1>&6
1403 ac_cv_host_system_type="$host"
1404 ac_cv_build_system_type="$build"
1405 ac_cv_target_system_type="$target"
1408 DYNEXP=
1411 # Config CPPFLAG settings for strange OS's that must be set
1412 # before other tests.
1414 case "$host_os" in
1415 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1416 *hpux*)
1417 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether ${CC-cc} accepts -Ae" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422 echo 'void f(){}' > conftest.c
1423 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1424 ac_cv_prog_cc_Ae=yes
1425 else
1426 ac_cv_prog_cc_Ae=no
1428 rm -f conftest*
1432 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1433 # mmap on HPUX is completely broken...
1434 cat >> confdefs.h <<\EOF
1435 #define MMAP_BLACKLIST 1
1438 if test $ac_cv_prog_cc_Ae = yes; then
1439 CPPFLAGS="$CPPFLAGS -Ae"
1442 # Defines needed for HPUX support.
1443 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1444 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1446 case `uname -r` in
1447 *9*|*10*)
1448 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1449 cat >> confdefs.h <<\EOF
1450 #define USE_BOTH_CRYPT_CALLS 1
1453 cat >> confdefs.h <<\EOF
1454 #define _HPUX_SOURCE 1
1457 cat >> confdefs.h <<\EOF
1458 #define _POSIX_SOURCE 1
1461 cat >> confdefs.h <<\EOF
1462 #define _ALIGNMENT_REQUIRED 1
1465 cat >> confdefs.h <<\EOF
1466 #define _MAX_ALIGNMENT 4
1470 *11*)
1471 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1472 cat >> confdefs.h <<\EOF
1473 #define _HPUX_SOURCE 1
1476 cat >> confdefs.h <<\EOF
1477 #define _POSIX_SOURCE 1
1480 cat >> confdefs.h <<\EOF
1481 #define _LARGEFILE64_SOURCE 1
1484 cat >> confdefs.h <<\EOF
1485 #define _ALIGNMENT_REQUIRED 1
1488 cat >> confdefs.h <<\EOF
1489 #define _MAX_ALIGNMENT 4
1492 cat >> confdefs.h <<\EOF
1493 #define USE_BOTH_CRYPT_CALLS 1
1497 esac
1498 DYNEXP="-Wl,-E"
1503 # CRAY Unicos has broken const handling
1504 *unicos*)
1505 echo "$ac_t""disabling const" 1>&6
1506 CPPFLAGS="$CPPFLAGS -Dconst="
1510 # AIX4.x doesn't even admit to having large
1511 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1513 *aix4*)
1514 echo "$ac_t""enabling large file support" 1>&6
1515 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1516 cat >> confdefs.h <<\EOF
1517 #define _LARGE_FILES 1
1522 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1523 # to the existance of large files..
1524 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1525 # recommendations on large file support, however it makes the
1526 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1527 # recommendation makes the compile fail on gcc2.7. JRA.
1529 *solaris*)
1530 case `uname -r` in
1531 5.0*|5.1*|5.2*|5.3*|5.5*)
1532 echo "$ac_t""no large file support" 1>&6
1534 5.*)
1535 echo "$ac_t""enabling large file support" 1>&6
1536 if test "$ac_cv_prog_gcc" = yes; then
1537 ${CC-cc} -v >conftest.c 2>&1
1538 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1539 rm -fr conftest.c
1540 case "$ac_cv_gcc_compiler_version_number" in
1541 *"gcc version 2.6"*|*"gcc version 2.7"*)
1542 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1543 cat >> confdefs.h <<\EOF
1544 #define _LARGEFILE64_SOURCE 1
1549 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1550 cat >> confdefs.h <<\EOF
1551 #define _LARGEFILE64_SOURCE 1
1554 cat >> confdefs.h <<\EOF
1555 #define _FILE_OFFSET_BITS 64
1559 esac
1560 else
1561 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1562 cat >> confdefs.h <<\EOF
1563 #define _LARGEFILE64_SOURCE 1
1566 cat >> confdefs.h <<\EOF
1567 #define _FILE_OFFSET_BITS 64
1572 esac
1575 # Tests needed for SINIX large file support.
1577 *sysv4*)
1578 if test $host = mips-sni-sysv4 ; then
1579 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1580 echo "configure:1581: checking for LFS support" >&5
1581 old_CPPFLAGS="$CPPFLAGS"
1582 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1583 if test "$cross_compiling" = yes; then
1584 SINIX_LFS_SUPPORT=cross
1585 else
1586 cat > conftest.$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1590 #include <unistd.h>
1591 main () {
1592 #if _LFS64_LARGEFILE == 1
1593 exit(0);
1594 #else
1595 exit(1);
1596 #endif
1599 if { (eval echo configure:1600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1600 then
1601 SINIX_LFS_SUPPORT=yes
1602 else
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1605 rm -fr conftest*
1606 SINIX_LFS_SUPPORT=no
1608 rm -fr conftest*
1611 CPPFLAGS="$old_CPPFLAGS"
1612 if test x$SINIX_LFS_SUPPORT = xyes ; then
1613 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1614 cat >> confdefs.h <<\EOF
1615 #define _LARGEFILE64_SOURCE 1
1618 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1619 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1620 LIBS="`getconf LFS64_LIBS` $LIBS"
1622 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1626 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1628 *linux*)
1629 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1630 echo "configure:1631: checking for LFS support" >&5
1631 old_CPPFLAGS="$CPPFLAGS"
1632 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1633 if test "$cross_compiling" = yes; then
1634 LINUX_LFS_SUPPORT=cross
1635 else
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1640 #include <unistd.h>
1641 #include <sys/utsname.h>
1642 main() {
1643 #if _LFS64_LARGEFILE == 1
1644 struct utsname uts;
1645 char *release;
1646 int major, minor;
1648 /* Ensure this is glibc 2.2 or higher */
1649 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1650 int libc_major = __GLIBC__;
1651 int libc_minor = __GLIBC_MINOR__;
1653 if (libc_major < 2)
1654 exit(1);
1655 if (libc_minor < 2)
1656 exit(1);
1657 #endif
1659 /* Ensure this is kernel 2.4 or higher */
1661 uname(&uts);
1662 release = uts.release;
1663 major = atoi(strsep(&release, "."));
1664 minor = atoi(strsep(&release, "."));
1666 if (major > 2 || (major == 2 && minor > 3))
1667 exit(0);
1668 exit(1);
1669 #else
1670 exit(1);
1671 #endif
1675 if { (eval echo configure:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1676 then
1677 LINUX_LFS_SUPPORT=yes
1678 else
1679 echo "configure: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1681 rm -fr conftest*
1682 LINUX_LFS_SUPPORT=no
1684 rm -fr conftest*
1687 CPPFLAGS="$old_CPPFLAGS"
1688 if test x$LINUX_LFS_SUPPORT = xyes ; then
1689 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1690 cat >> confdefs.h <<\EOF
1691 #define _LARGEFILE64_SOURCE 1
1694 cat >> confdefs.h <<\EOF
1695 #define _FILE_OFFSET_BITS 64
1698 cat >> confdefs.h <<\EOF
1699 #define _GNU_SOURCE 1
1703 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1706 *hurd*)
1707 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1708 echo "configure:1709: checking for LFS support" >&5
1709 old_CPPFLAGS="$CPPFLAGS"
1710 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1711 if test "$cross_compiling" = yes; then
1712 GLIBC_LFS_SUPPORT=cross
1713 else
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1718 #include <unistd.h>
1719 main () {
1720 #if _LFS64_LARGEFILE == 1
1721 exit(0);
1722 #else
1723 exit(1);
1724 #endif
1727 if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1728 then
1729 GLIBC_LFS_SUPPORT=yes
1730 else
1731 echo "configure: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 rm -fr conftest*
1734 GLIBC_LFS_SUPPORT=no
1736 rm -fr conftest*
1739 CPPFLAGS="$old_CPPFLAGS"
1740 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1741 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1742 cat >> confdefs.h <<\EOF
1743 #define _LARGEFILE64_SOURCE 1
1746 cat >> confdefs.h <<\EOF
1747 #define _GNU_SOURCE 1
1751 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1754 esac
1756 echo $ac_n "checking for inline""... $ac_c" 1>&6
1757 echo "configure:1758: checking for inline" >&5
1758 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1760 else
1761 ac_cv_c_inline=no
1762 for ac_kw in inline __inline__ __inline; do
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1767 int main() {
1768 } $ac_kw foo() {
1769 ; return 0; }
1771 if { (eval echo configure:1772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1772 rm -rf conftest*
1773 ac_cv_c_inline=$ac_kw; break
1774 else
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 rm -f conftest*
1779 done
1783 echo "$ac_t""$ac_cv_c_inline" 1>&6
1784 case "$ac_cv_c_inline" in
1785 inline | yes) ;;
1786 no) cat >> confdefs.h <<\EOF
1787 #define inline
1790 *) cat >> confdefs.h <<EOF
1791 #define inline $ac_cv_c_inline
1794 esac
1796 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1797 echo "configure:1798: checking how to run the C preprocessor" >&5
1798 # On Suns, sometimes $CPP names a directory.
1799 if test -n "$CPP" && test -d "$CPP"; then
1800 CPP=
1802 if test -z "$CPP"; then
1803 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1805 else
1806 # This must be in double quotes, not single quotes, because CPP may get
1807 # substituted into the Makefile and "${CC-cc}" will confuse make.
1808 CPP="${CC-cc} -E"
1809 # On the NeXT, cc -E runs the code through the compiler's parser,
1810 # not just through cpp.
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 #include <assert.h>
1815 Syntax Error
1817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1818 { (eval echo configure:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1820 if test -z "$ac_err"; then
1822 else
1823 echo "$ac_err" >&5
1824 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1826 rm -rf conftest*
1827 CPP="${CC-cc} -E -traditional-cpp"
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 #include <assert.h>
1832 Syntax Error
1834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1839 else
1840 echo "$ac_err" >&5
1841 echo "configure: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1843 rm -rf conftest*
1844 CPP="${CC-cc} -nologo -E"
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <assert.h>
1849 Syntax Error
1851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1856 else
1857 echo "$ac_err" >&5
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 rm -rf conftest*
1861 CPP=/lib/cpp
1863 rm -f conftest*
1865 rm -f conftest*
1867 rm -f conftest*
1868 ac_cv_prog_CPP="$CPP"
1870 CPP="$ac_cv_prog_CPP"
1871 else
1872 ac_cv_prog_CPP="$CPP"
1874 echo "$ac_t""$CPP" 1>&6
1876 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1877 echo "configure:1878: checking for ANSI C header files" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880 else
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <stdlib.h>
1885 #include <stdarg.h>
1886 #include <string.h>
1887 #include <float.h>
1889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1892 if test -z "$ac_err"; then
1893 rm -rf conftest*
1894 ac_cv_header_stdc=yes
1895 else
1896 echo "$ac_err" >&5
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -rf conftest*
1900 ac_cv_header_stdc=no
1902 rm -f conftest*
1904 if test $ac_cv_header_stdc = yes; then
1905 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 #include <string.h>
1911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1912 egrep "memchr" >/dev/null 2>&1; then
1914 else
1915 rm -rf conftest*
1916 ac_cv_header_stdc=no
1918 rm -f conftest*
1922 if test $ac_cv_header_stdc = yes; then
1923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1927 #include <stdlib.h>
1929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1930 egrep "free" >/dev/null 2>&1; then
1932 else
1933 rm -rf conftest*
1934 ac_cv_header_stdc=no
1936 rm -f conftest*
1940 if test $ac_cv_header_stdc = yes; then
1941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1942 if test "$cross_compiling" = yes; then
1944 else
1945 cat > conftest.$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1948 #include <ctype.h>
1949 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1950 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1952 int main () { int i; for (i = 0; i < 256; i++)
1953 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1954 exit (0); }
1957 if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1958 then
1960 else
1961 echo "configure: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1963 rm -fr conftest*
1964 ac_cv_header_stdc=no
1966 rm -fr conftest*
1972 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1973 if test $ac_cv_header_stdc = yes; then
1974 cat >> confdefs.h <<\EOF
1975 #define STDC_HEADERS 1
1980 ac_header_dirent=no
1981 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1984 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_hdr that defines DIR" >&5
1986 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1988 else
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992 #include <sys/types.h>
1993 #include <$ac_hdr>
1994 int main() {
1995 DIR *dirp = 0;
1996 ; return 0; }
1998 if { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999 rm -rf conftest*
2000 eval "ac_cv_header_dirent_$ac_safe=yes"
2001 else
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2004 rm -rf conftest*
2005 eval "ac_cv_header_dirent_$ac_safe=no"
2007 rm -f conftest*
2009 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2010 echo "$ac_t""yes" 1>&6
2011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2012 cat >> confdefs.h <<EOF
2013 #define $ac_tr_hdr 1
2015 ac_header_dirent=$ac_hdr; break
2016 else
2017 echo "$ac_t""no" 1>&6
2019 done
2020 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2021 if test $ac_header_dirent = dirent.h; then
2022 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2023 echo "configure:2024: checking for opendir in -ldir" >&5
2024 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2027 else
2028 ac_save_LIBS="$LIBS"
2029 LIBS="-ldir $LIBS"
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2036 char opendir();
2038 int main() {
2039 opendir()
2040 ; return 0; }
2042 if { (eval echo configure:2043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2043 rm -rf conftest*
2044 eval "ac_cv_lib_$ac_lib_var=yes"
2045 else
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2048 rm -rf conftest*
2049 eval "ac_cv_lib_$ac_lib_var=no"
2051 rm -f conftest*
2052 LIBS="$ac_save_LIBS"
2055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 LIBS="$LIBS -ldir"
2058 else
2059 echo "$ac_t""no" 1>&6
2062 else
2063 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2064 echo "configure:2065: checking for opendir in -lx" >&5
2065 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2068 else
2069 ac_save_LIBS="$LIBS"
2070 LIBS="-lx $LIBS"
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 /* Override any gcc2 internal prototype to avoid an error. */
2075 /* We use char because int might match the return type of a gcc2
2076 builtin and then its argument prototype would still apply. */
2077 char opendir();
2079 int main() {
2080 opendir()
2081 ; return 0; }
2083 if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2084 rm -rf conftest*
2085 eval "ac_cv_lib_$ac_lib_var=yes"
2086 else
2087 echo "configure: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 rm -rf conftest*
2090 eval "ac_cv_lib_$ac_lib_var=no"
2092 rm -f conftest*
2093 LIBS="$ac_save_LIBS"
2096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2097 echo "$ac_t""yes" 1>&6
2098 LIBS="$LIBS -lx"
2099 else
2100 echo "$ac_t""no" 1>&6
2105 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2106 echo "configure:2107: checking whether time.h and sys/time.h may both be included" >&5
2107 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2109 else
2110 cat > conftest.$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 #include <sys/types.h>
2114 #include <sys/time.h>
2115 #include <time.h>
2116 int main() {
2117 struct tm *tp;
2118 ; return 0; }
2120 if { (eval echo configure:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2121 rm -rf conftest*
2122 ac_cv_header_time=yes
2123 else
2124 echo "configure: failed program was:" >&5
2125 cat conftest.$ac_ext >&5
2126 rm -rf conftest*
2127 ac_cv_header_time=no
2129 rm -f conftest*
2132 echo "$ac_t""$ac_cv_header_time" 1>&6
2133 if test $ac_cv_header_time = yes; then
2134 cat >> confdefs.h <<\EOF
2135 #define TIME_WITH_SYS_TIME 1
2140 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2141 echo "configure:2142: checking for sys/wait.h that is POSIX.1 compatible" >&5
2142 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2144 else
2145 cat > conftest.$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 #include <sys/types.h>
2149 #include <sys/wait.h>
2150 #ifndef WEXITSTATUS
2151 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2152 #endif
2153 #ifndef WIFEXITED
2154 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2155 #endif
2156 int main() {
2157 int s;
2158 wait (&s);
2159 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2160 ; return 0; }
2162 if { (eval echo configure:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2163 rm -rf conftest*
2164 ac_cv_header_sys_wait_h=yes
2165 else
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 rm -rf conftest*
2169 ac_cv_header_sys_wait_h=no
2171 rm -f conftest*
2174 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2175 if test $ac_cv_header_sys_wait_h = yes; then
2176 cat >> confdefs.h <<\EOF
2177 #define HAVE_SYS_WAIT_H 1
2182 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_hdr" >&5
2187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2189 else
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 #include <$ac_hdr>
2195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2196 { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2198 if test -z "$ac_err"; then
2199 rm -rf conftest*
2200 eval "ac_cv_header_$ac_safe=yes"
2201 else
2202 echo "$ac_err" >&5
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 eval "ac_cv_header_$ac_safe=no"
2208 rm -f conftest*
2210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2213 cat >> confdefs.h <<EOF
2214 #define $ac_tr_hdr 1
2217 else
2218 echo "$ac_t""no" 1>&6
2220 done
2222 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_hdr" >&5
2227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2229 else
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <$ac_hdr>
2235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2236 { (eval echo configure:2237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2238 if test -z "$ac_err"; then
2239 rm -rf conftest*
2240 eval "ac_cv_header_$ac_safe=yes"
2241 else
2242 echo "$ac_err" >&5
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2245 rm -rf conftest*
2246 eval "ac_cv_header_$ac_safe=no"
2248 rm -f conftest*
2250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2253 cat >> confdefs.h <<EOF
2254 #define $ac_tr_hdr 1
2257 else
2258 echo "$ac_t""no" 1>&6
2260 done
2262 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2266 echo "configure:2267: checking for $ac_hdr" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2269 else
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <$ac_hdr>
2275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2276 { (eval echo configure:2277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2278 if test -z "$ac_err"; then
2279 rm -rf conftest*
2280 eval "ac_cv_header_$ac_safe=yes"
2281 else
2282 echo "$ac_err" >&5
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 rm -rf conftest*
2286 eval "ac_cv_header_$ac_safe=no"
2288 rm -f conftest*
2290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2291 echo "$ac_t""yes" 1>&6
2292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2293 cat >> confdefs.h <<EOF
2294 #define $ac_tr_hdr 1
2297 else
2298 echo "$ac_t""no" 1>&6
2300 done
2302 for ac_hdr in stdlib.h string.h strings.h syslog.h sys/file.h
2304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2306 echo "configure:2307: checking for $ac_hdr" >&5
2307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2309 else
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 #include <$ac_hdr>
2315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2316 { (eval echo configure:2317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2318 if test -z "$ac_err"; then
2319 rm -rf conftest*
2320 eval "ac_cv_header_$ac_safe=yes"
2321 else
2322 echo "$ac_err" >&5
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2325 rm -rf conftest*
2326 eval "ac_cv_header_$ac_safe=no"
2328 rm -f conftest*
2330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2331 echo "$ac_t""yes" 1>&6
2332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2333 cat >> confdefs.h <<EOF
2334 #define $ac_tr_hdr 1
2337 else
2338 echo "$ac_t""no" 1>&6
2340 done
2342 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_hdr" >&5
2347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349 else
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2353 #include <$ac_hdr>
2355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2356 { (eval echo configure:2357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2358 if test -z "$ac_err"; then
2359 rm -rf conftest*
2360 eval "ac_cv_header_$ac_safe=yes"
2361 else
2362 echo "$ac_err" >&5
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2365 rm -rf conftest*
2366 eval "ac_cv_header_$ac_safe=no"
2368 rm -f conftest*
2370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2373 cat >> confdefs.h <<EOF
2374 #define $ac_tr_hdr 1
2377 else
2378 echo "$ac_t""no" 1>&6
2380 done
2382 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.h
2384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_hdr" >&5
2387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2389 else
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include <$ac_hdr>
2395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2396 { (eval echo configure:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2398 if test -z "$ac_err"; then
2399 rm -rf conftest*
2400 eval "ac_cv_header_$ac_safe=yes"
2401 else
2402 echo "$ac_err" >&5
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2405 rm -rf conftest*
2406 eval "ac_cv_header_$ac_safe=no"
2408 rm -f conftest*
2410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2413 cat >> confdefs.h <<EOF
2414 #define $ac_tr_hdr 1
2417 else
2418 echo "$ac_t""no" 1>&6
2420 done
2422 for ac_hdr in syslog.h sys/syslog.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_hdr" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <$ac_hdr>
2435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2436 { (eval echo configure:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2438 if test -z "$ac_err"; then
2439 rm -rf conftest*
2440 eval "ac_cv_header_$ac_safe=yes"
2441 else
2442 echo "$ac_err" >&5
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 rm -rf conftest*
2446 eval "ac_cv_header_$ac_safe=no"
2448 rm -f conftest*
2450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2453 cat >> confdefs.h <<EOF
2454 #define $ac_tr_hdr 1
2457 else
2458 echo "$ac_t""no" 1>&6
2460 done
2462 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_hdr" >&5
2467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <$ac_hdr>
2475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2479 rm -rf conftest*
2480 eval "ac_cv_header_$ac_safe=yes"
2481 else
2482 echo "$ac_err" >&5
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 rm -rf conftest*
2486 eval "ac_cv_header_$ac_safe=no"
2488 rm -f conftest*
2490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2493 cat >> confdefs.h <<EOF
2494 #define $ac_tr_hdr 1
2497 else
2498 echo "$ac_t""no" 1>&6
2500 done
2502 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_hdr" >&5
2507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2509 else
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 #include <$ac_hdr>
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2519 rm -rf conftest*
2520 eval "ac_cv_header_$ac_safe=yes"
2521 else
2522 echo "$ac_err" >&5
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 rm -rf conftest*
2526 eval "ac_cv_header_$ac_safe=no"
2528 rm -f conftest*
2530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2533 cat >> confdefs.h <<EOF
2534 #define $ac_tr_hdr 1
2537 else
2538 echo "$ac_t""no" 1>&6
2540 done
2544 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2545 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2547 case "$host_os" in
2548 *hpux*)
2549 cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 #include <shadow.h>
2553 int main() {
2554 struct spwd testme
2555 ; return 0; }
2557 if { (eval echo configure:2558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2558 rm -rf conftest*
2559 ac_cv_header_shadow_h=yes
2560 else
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -rf conftest*
2564 ac_cv_header_shadow_h=no
2566 rm -f conftest*
2567 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2568 cat >> confdefs.h <<\EOF
2569 #define HAVE_SHADOW_H 1
2574 esac
2575 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_hdr" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2582 else
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <$ac_hdr>
2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2592 rm -rf conftest*
2593 eval "ac_cv_header_$ac_safe=yes"
2594 else
2595 echo "$ac_err" >&5
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -rf conftest*
2599 eval "ac_cv_header_$ac_safe=no"
2601 rm -f conftest*
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2606 cat >> confdefs.h <<EOF
2607 #define $ac_tr_hdr 1
2610 else
2611 echo "$ac_t""no" 1>&6
2613 done
2615 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_hdr" >&5
2620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2622 else
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 #include <$ac_hdr>
2628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2629 { (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2631 if test -z "$ac_err"; then
2632 rm -rf conftest*
2633 eval "ac_cv_header_$ac_safe=yes"
2634 else
2635 echo "$ac_err" >&5
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 rm -rf conftest*
2639 eval "ac_cv_header_$ac_safe=no"
2641 rm -f conftest*
2643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2646 cat >> confdefs.h <<EOF
2647 #define $ac_tr_hdr 1
2650 else
2651 echo "$ac_t""no" 1>&6
2653 done
2655 for ac_hdr in stropts.h poll.h
2657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_hdr" >&5
2660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2662 else
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 #include <$ac_hdr>
2668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2669 { (eval echo configure:2670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2671 if test -z "$ac_err"; then
2672 rm -rf conftest*
2673 eval "ac_cv_header_$ac_safe=yes"
2674 else
2675 echo "$ac_err" >&5
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 rm -rf conftest*
2679 eval "ac_cv_header_$ac_safe=no"
2681 rm -f conftest*
2683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2684 echo "$ac_t""yes" 1>&6
2685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2686 cat >> confdefs.h <<EOF
2687 #define $ac_tr_hdr 1
2690 else
2691 echo "$ac_t""no" 1>&6
2693 done
2695 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_hdr" >&5
2700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2702 else
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 #include <$ac_hdr>
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2712 rm -rf conftest*
2713 eval "ac_cv_header_$ac_safe=yes"
2714 else
2715 echo "$ac_err" >&5
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 rm -rf conftest*
2719 eval "ac_cv_header_$ac_safe=no"
2721 rm -f conftest*
2723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2726 cat >> confdefs.h <<EOF
2727 #define $ac_tr_hdr 1
2730 else
2731 echo "$ac_t""no" 1>&6
2733 done
2735 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_hdr" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <$ac_hdr>
2748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2751 if test -z "$ac_err"; then
2752 rm -rf conftest*
2753 eval "ac_cv_header_$ac_safe=yes"
2754 else
2755 echo "$ac_err" >&5
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2758 rm -rf conftest*
2759 eval "ac_cv_header_$ac_safe=no"
2761 rm -f conftest*
2763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2766 cat >> confdefs.h <<EOF
2767 #define $ac_tr_hdr 1
2770 else
2771 echo "$ac_t""no" 1>&6
2773 done
2776 # For experimental utmp support (lastlog on some BSD-like systems)
2777 for ac_hdr in utmp.h utmpx.h lastlog.h
2779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_hdr" >&5
2782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2784 else
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 #include <$ac_hdr>
2790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2793 if test -z "$ac_err"; then
2794 rm -rf conftest*
2795 eval "ac_cv_header_$ac_safe=yes"
2796 else
2797 echo "$ac_err" >&5
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2800 rm -rf conftest*
2801 eval "ac_cv_header_$ac_safe=no"
2803 rm -f conftest*
2805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2806 echo "$ac_t""yes" 1>&6
2807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2808 cat >> confdefs.h <<EOF
2809 #define $ac_tr_hdr 1
2812 else
2813 echo "$ac_t""no" 1>&6
2815 done
2818 # For quotas on Veritas VxFS filesystems
2819 for ac_hdr in sys/fs/vx_quota.h
2821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2823 echo "configure:2824: checking for $ac_hdr" >&5
2824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2826 else
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 #include <$ac_hdr>
2832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2833 { (eval echo configure:2834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2835 if test -z "$ac_err"; then
2836 rm -rf conftest*
2837 eval "ac_cv_header_$ac_safe=yes"
2838 else
2839 echo "$ac_err" >&5
2840 echo "configure: failed program was:" >&5
2841 cat conftest.$ac_ext >&5
2842 rm -rf conftest*
2843 eval "ac_cv_header_$ac_safe=no"
2845 rm -f conftest*
2847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2848 echo "$ac_t""yes" 1>&6
2849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2850 cat >> confdefs.h <<EOF
2851 #define $ac_tr_hdr 1
2854 else
2855 echo "$ac_t""no" 1>&6
2857 done
2860 # For quotas on Linux XFS filesystems
2861 for ac_hdr in linux/xqm.h
2863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_hdr" >&5
2866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868 else
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 #include <$ac_hdr>
2874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2875 { (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2877 if test -z "$ac_err"; then
2878 rm -rf conftest*
2879 eval "ac_cv_header_$ac_safe=yes"
2880 else
2881 echo "$ac_err" >&5
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2884 rm -rf conftest*
2885 eval "ac_cv_header_$ac_safe=no"
2887 rm -f conftest*
2889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2892 cat >> confdefs.h <<EOF
2893 #define $ac_tr_hdr 1
2896 else
2897 echo "$ac_t""no" 1>&6
2899 done
2902 echo $ac_n "checking size of int""... $ac_c" 1>&6
2903 echo "configure:2904: checking size of int" >&5
2904 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907 if test "$cross_compiling" = yes; then
2908 ac_cv_sizeof_int=cross
2909 else
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 #include <stdio.h>
2914 main()
2916 FILE *f=fopen("conftestval", "w");
2917 if (!f) exit(1);
2918 fprintf(f, "%d\n", sizeof(int));
2919 exit(0);
2922 if { (eval echo configure:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2923 then
2924 ac_cv_sizeof_int=`cat conftestval`
2925 else
2926 echo "configure: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2928 rm -fr conftest*
2929 ac_cv_sizeof_int=0
2931 rm -fr conftest*
2935 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2936 cat >> confdefs.h <<EOF
2937 #define SIZEOF_INT $ac_cv_sizeof_int
2941 echo $ac_n "checking size of long""... $ac_c" 1>&6
2942 echo "configure:2943: checking size of long" >&5
2943 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2945 else
2946 if test "$cross_compiling" = yes; then
2947 ac_cv_sizeof_long=cross
2948 else
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 #include <stdio.h>
2953 main()
2955 FILE *f=fopen("conftestval", "w");
2956 if (!f) exit(1);
2957 fprintf(f, "%d\n", sizeof(long));
2958 exit(0);
2961 if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2962 then
2963 ac_cv_sizeof_long=`cat conftestval`
2964 else
2965 echo "configure: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2967 rm -fr conftest*
2968 ac_cv_sizeof_long=0
2970 rm -fr conftest*
2974 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2975 cat >> confdefs.h <<EOF
2976 #define SIZEOF_LONG $ac_cv_sizeof_long
2980 echo $ac_n "checking size of short""... $ac_c" 1>&6
2981 echo "configure:2982: checking size of short" >&5
2982 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2984 else
2985 if test "$cross_compiling" = yes; then
2986 ac_cv_sizeof_short=cross
2987 else
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 #include <stdio.h>
2992 main()
2994 FILE *f=fopen("conftestval", "w");
2995 if (!f) exit(1);
2996 fprintf(f, "%d\n", sizeof(short));
2997 exit(0);
3000 if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3001 then
3002 ac_cv_sizeof_short=`cat conftestval`
3003 else
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 rm -fr conftest*
3007 ac_cv_sizeof_short=0
3009 rm -fr conftest*
3013 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3014 cat >> confdefs.h <<EOF
3015 #define SIZEOF_SHORT $ac_cv_sizeof_short
3020 echo $ac_n "checking for working const""... $ac_c" 1>&6
3021 echo "configure:3022: checking for working const" >&5
3022 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3029 int main() {
3031 /* Ultrix mips cc rejects this. */
3032 typedef int charset[2]; const charset x;
3033 /* SunOS 4.1.1 cc rejects this. */
3034 char const *const *ccp;
3035 char **p;
3036 /* NEC SVR4.0.2 mips cc rejects this. */
3037 struct point {int x, y;};
3038 static struct point const zero = {0,0};
3039 /* AIX XL C 1.02.0.0 rejects this.
3040 It does not let you subtract one const X* pointer from another in an arm
3041 of an if-expression whose if-part is not a constant expression */
3042 const char *g = "string";
3043 ccp = &g + (g ? g-g : 0);
3044 /* HPUX 7.0 cc rejects these. */
3045 ++ccp;
3046 p = (char**) ccp;
3047 ccp = (char const *const *) p;
3048 { /* SCO 3.2v4 cc rejects this. */
3049 char *t;
3050 char const *s = 0 ? (char *) 0 : (char const *) 0;
3052 *t++ = 0;
3054 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3055 int x[] = {25, 17};
3056 const int *foo = &x[0];
3057 ++foo;
3059 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3060 typedef const int *iptr;
3061 iptr p = 0;
3062 ++p;
3064 { /* AIX XL C 1.02.0.0 rejects this saying
3065 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3066 struct s { int j; const int *ap[3]; };
3067 struct s *b; b->j = 5;
3069 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3070 const int foo = 10;
3073 ; return 0; }
3075 if { (eval echo configure:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3076 rm -rf conftest*
3077 ac_cv_c_const=yes
3078 else
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3081 rm -rf conftest*
3082 ac_cv_c_const=no
3084 rm -f conftest*
3087 echo "$ac_t""$ac_cv_c_const" 1>&6
3088 if test $ac_cv_c_const = no; then
3089 cat >> confdefs.h <<\EOF
3090 #define const
3095 echo $ac_n "checking for inline""... $ac_c" 1>&6
3096 echo "configure:3097: checking for inline" >&5
3097 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099 else
3100 ac_cv_c_inline=no
3101 for ac_kw in inline __inline__ __inline; do
3102 cat > conftest.$ac_ext <<EOF
3103 #line 3104 "configure"
3104 #include "confdefs.h"
3106 int main() {
3107 } $ac_kw foo() {
3108 ; return 0; }
3110 if { (eval echo configure:3111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3111 rm -rf conftest*
3112 ac_cv_c_inline=$ac_kw; break
3113 else
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3117 rm -f conftest*
3118 done
3122 echo "$ac_t""$ac_cv_c_inline" 1>&6
3123 case "$ac_cv_c_inline" in
3124 inline | yes) ;;
3125 no) cat >> confdefs.h <<\EOF
3126 #define inline
3129 *) cat >> confdefs.h <<EOF
3130 #define inline $ac_cv_c_inline
3133 esac
3135 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3136 echo "configure:3137: checking whether byte ordering is bigendian" >&5
3137 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3139 else
3140 ac_cv_c_bigendian=unknown
3141 # See if sys/param.h defines the BYTE_ORDER macro.
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 #include <sys/types.h>
3146 #include <sys/param.h>
3147 int main() {
3149 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3150 bogus endian macros
3151 #endif
3152 ; return 0; }
3154 if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 rm -rf conftest*
3156 # It does; now see whether it defined to BIG_ENDIAN or not.
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 #include <sys/types.h>
3161 #include <sys/param.h>
3162 int main() {
3164 #if BYTE_ORDER != BIG_ENDIAN
3165 not big endian
3166 #endif
3167 ; return 0; }
3169 if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 rm -rf conftest*
3171 ac_cv_c_bigendian=yes
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 ac_cv_c_bigendian=no
3178 rm -f conftest*
3179 else
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3183 rm -f conftest*
3184 if test $ac_cv_c_bigendian = unknown; then
3185 if test "$cross_compiling" = yes; then
3186 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3187 else
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 main () {
3192 /* Are we little or big endian? From Harbison&Steele. */
3193 union
3195 long l;
3196 char c[sizeof (long)];
3197 } u;
3198 u.l = 1;
3199 exit (u.c[sizeof (long) - 1] == 1);
3202 if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3203 then
3204 ac_cv_c_bigendian=no
3205 else
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3208 rm -fr conftest*
3209 ac_cv_c_bigendian=yes
3211 rm -fr conftest*
3217 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3218 if test $ac_cv_c_bigendian = yes; then
3219 cat >> confdefs.h <<\EOF
3220 #define WORDS_BIGENDIAN 1
3225 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3226 echo "configure:3227: checking whether char is unsigned" >&5
3227 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3229 else
3230 if test "$GCC" = yes; then
3231 # GCC predefines this symbol on systems where it applies.
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #ifdef __CHAR_UNSIGNED__
3237 #endif
3240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3241 egrep "yes" >/dev/null 2>&1; then
3242 rm -rf conftest*
3243 ac_cv_c_char_unsigned=yes
3244 else
3245 rm -rf conftest*
3246 ac_cv_c_char_unsigned=no
3248 rm -f conftest*
3250 else
3251 if test "$cross_compiling" = yes; then
3252 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3253 else
3254 cat > conftest.$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3258 #if !defined(__STDC__) || __STDC__ != 1
3259 #define volatile
3260 #endif
3261 main() {
3262 volatile char c = 255; exit(c < 0);
3265 if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3266 then
3267 ac_cv_c_char_unsigned=yes
3268 else
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3271 rm -fr conftest*
3272 ac_cv_c_char_unsigned=no
3274 rm -fr conftest*
3280 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3281 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3282 cat >> confdefs.h <<\EOF
3283 #define __CHAR_UNSIGNED__ 1
3289 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3290 echo "configure:3291: checking return type of signal handlers" >&5
3291 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3293 else
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 #include <sys/types.h>
3298 #include <signal.h>
3299 #ifdef signal
3300 #undef signal
3301 #endif
3302 #ifdef __cplusplus
3303 extern "C" void (*signal (int, void (*)(int)))(int);
3304 #else
3305 void (*signal ()) ();
3306 #endif
3308 int main() {
3309 int i;
3310 ; return 0; }
3312 if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3313 rm -rf conftest*
3314 ac_cv_type_signal=void
3315 else
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3318 rm -rf conftest*
3319 ac_cv_type_signal=int
3321 rm -f conftest*
3324 echo "$ac_t""$ac_cv_type_signal" 1>&6
3325 cat >> confdefs.h <<EOF
3326 #define RETSIGTYPE $ac_cv_type_signal
3330 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3331 echo "configure:3332: checking for uid_t in sys/types.h" >&5
3332 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3334 else
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 #include <sys/types.h>
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "uid_t" >/dev/null 2>&1; then
3342 rm -rf conftest*
3343 ac_cv_type_uid_t=yes
3344 else
3345 rm -rf conftest*
3346 ac_cv_type_uid_t=no
3348 rm -f conftest*
3352 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3353 if test $ac_cv_type_uid_t = no; then
3354 cat >> confdefs.h <<\EOF
3355 #define uid_t int
3358 cat >> confdefs.h <<\EOF
3359 #define gid_t int
3364 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3365 echo "configure:3366: checking for mode_t" >&5
3366 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3368 else
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <sys/types.h>
3373 #if STDC_HEADERS
3374 #include <stdlib.h>
3375 #include <stddef.h>
3376 #endif
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3380 rm -rf conftest*
3381 ac_cv_type_mode_t=yes
3382 else
3383 rm -rf conftest*
3384 ac_cv_type_mode_t=no
3386 rm -f conftest*
3389 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3390 if test $ac_cv_type_mode_t = no; then
3391 cat >> confdefs.h <<\EOF
3392 #define mode_t int
3397 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3398 echo "configure:3399: checking for off_t" >&5
3399 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3401 else
3402 cat > conftest.$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3405 #include <sys/types.h>
3406 #if STDC_HEADERS
3407 #include <stdlib.h>
3408 #include <stddef.h>
3409 #endif
3411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3412 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3413 rm -rf conftest*
3414 ac_cv_type_off_t=yes
3415 else
3416 rm -rf conftest*
3417 ac_cv_type_off_t=no
3419 rm -f conftest*
3422 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3423 if test $ac_cv_type_off_t = no; then
3424 cat >> confdefs.h <<\EOF
3425 #define off_t long
3430 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3431 echo "configure:3432: checking for size_t" >&5
3432 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3434 else
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include <sys/types.h>
3439 #if STDC_HEADERS
3440 #include <stdlib.h>
3441 #include <stddef.h>
3442 #endif
3444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3446 rm -rf conftest*
3447 ac_cv_type_size_t=yes
3448 else
3449 rm -rf conftest*
3450 ac_cv_type_size_t=no
3452 rm -f conftest*
3455 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3456 if test $ac_cv_type_size_t = no; then
3457 cat >> confdefs.h <<\EOF
3458 #define size_t unsigned
3463 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3464 echo "configure:3465: checking for pid_t" >&5
3465 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3467 else
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 #include <sys/types.h>
3472 #if STDC_HEADERS
3473 #include <stdlib.h>
3474 #include <stddef.h>
3475 #endif
3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3479 rm -rf conftest*
3480 ac_cv_type_pid_t=yes
3481 else
3482 rm -rf conftest*
3483 ac_cv_type_pid_t=no
3485 rm -f conftest*
3488 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3489 if test $ac_cv_type_pid_t = no; then
3490 cat >> confdefs.h <<\EOF
3491 #define pid_t int
3496 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3497 echo "configure:3498: checking for st_rdev in struct stat" >&5
3498 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3500 else
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 #include <sys/types.h>
3505 #include <sys/stat.h>
3506 int main() {
3507 struct stat s; s.st_rdev;
3508 ; return 0; }
3510 if { (eval echo configure:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3511 rm -rf conftest*
3512 ac_cv_struct_st_rdev=yes
3513 else
3514 echo "configure: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3516 rm -rf conftest*
3517 ac_cv_struct_st_rdev=no
3519 rm -f conftest*
3522 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3523 if test $ac_cv_struct_st_rdev = yes; then
3524 cat >> confdefs.h <<\EOF
3525 #define HAVE_ST_RDEV 1
3530 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3531 echo "configure:3532: checking for d_off in dirent" >&5
3532 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3534 else
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3539 #include <unistd.h>
3540 #include <sys/types.h>
3541 #include <dirent.h>
3542 int main() {
3543 struct dirent d; d.d_off;
3544 ; return 0; }
3546 if { (eval echo configure:3547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3547 rm -rf conftest*
3548 ac_cv_dirent_d_off=yes
3549 else
3550 echo "configure: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3552 rm -rf conftest*
3553 ac_cv_dirent_d_off=no
3555 rm -f conftest*
3558 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3559 if test $ac_cv_dirent_d_off = yes; then
3560 cat >> confdefs.h <<\EOF
3561 #define HAVE_DIRENT_D_OFF 1
3566 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3567 echo "configure:3568: checking for ino_t" >&5
3568 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3570 else
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3574 #include <sys/types.h>
3575 #if STDC_HEADERS
3576 #include <stdlib.h>
3577 #include <stddef.h>
3578 #endif
3580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3581 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3582 rm -rf conftest*
3583 ac_cv_type_ino_t=yes
3584 else
3585 rm -rf conftest*
3586 ac_cv_type_ino_t=no
3588 rm -f conftest*
3591 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3592 if test $ac_cv_type_ino_t = no; then
3593 cat >> confdefs.h <<\EOF
3594 #define ino_t unsigned
3599 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3600 echo "configure:3601: checking for loff_t" >&5
3601 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3603 else
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 #include <sys/types.h>
3608 #if STDC_HEADERS
3609 #include <stdlib.h>
3610 #include <stddef.h>
3611 #endif
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3615 rm -rf conftest*
3616 ac_cv_type_loff_t=yes
3617 else
3618 rm -rf conftest*
3619 ac_cv_type_loff_t=no
3621 rm -f conftest*
3624 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3625 if test $ac_cv_type_loff_t = no; then
3626 cat >> confdefs.h <<\EOF
3627 #define loff_t off_t
3632 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3633 echo "configure:3634: checking for offset_t" >&5
3634 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3636 else
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <sys/types.h>
3641 #if STDC_HEADERS
3642 #include <stdlib.h>
3643 #include <stddef.h>
3644 #endif
3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3648 rm -rf conftest*
3649 ac_cv_type_offset_t=yes
3650 else
3651 rm -rf conftest*
3652 ac_cv_type_offset_t=no
3654 rm -f conftest*
3657 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3658 if test $ac_cv_type_offset_t = no; then
3659 cat >> confdefs.h <<\EOF
3660 #define offset_t loff_t
3665 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3666 echo "configure:3667: checking for ssize_t" >&5
3667 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3669 else
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <sys/types.h>
3674 #if STDC_HEADERS
3675 #include <stdlib.h>
3676 #include <stddef.h>
3677 #endif
3679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3680 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3681 rm -rf conftest*
3682 ac_cv_type_ssize_t=yes
3683 else
3684 rm -rf conftest*
3685 ac_cv_type_ssize_t=no
3687 rm -f conftest*
3690 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3691 if test $ac_cv_type_ssize_t = no; then
3692 cat >> confdefs.h <<\EOF
3693 #define ssize_t int
3698 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3699 echo "configure:3700: checking for wchar_t" >&5
3700 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3702 else
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 #include <sys/types.h>
3707 #if STDC_HEADERS
3708 #include <stdlib.h>
3709 #include <stddef.h>
3710 #endif
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3714 rm -rf conftest*
3715 ac_cv_type_wchar_t=yes
3716 else
3717 rm -rf conftest*
3718 ac_cv_type_wchar_t=no
3720 rm -f conftest*
3723 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3724 if test $ac_cv_type_wchar_t = no; then
3725 cat >> confdefs.h <<\EOF
3726 #define wchar_t unsigned short
3732 ############################################
3733 # for cups support we need libcups, and a handful of header files
3735 # Check whether --enable-cups or --disable-cups was given.
3736 if test "${enable_cups+set}" = set; then
3737 enableval="$enable_cups"
3742 if test x$enable_cups != xno; then
3743 # Extract the first word of "cups-config", so it can be a program name with args.
3744 set dummy cups-config; ac_word=$2
3745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3746 echo "configure:3747: checking for $ac_word" >&5
3747 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3749 else
3750 case "$CUPS_CONFIG" in
3752 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3754 ?:/*)
3755 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3759 ac_dummy="$PATH"
3760 for ac_dir in $ac_dummy; do
3761 test -z "$ac_dir" && ac_dir=.
3762 if test -f $ac_dir/$ac_word; then
3763 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3764 break
3766 done
3767 IFS="$ac_save_ifs"
3769 esac
3771 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3772 if test -n "$CUPS_CONFIG"; then
3773 echo "$ac_t""$CUPS_CONFIG" 1>&6
3774 else
3775 echo "$ac_t""no" 1>&6
3779 if test "x$CUPS_CONFIG" != x; then
3780 cat >> confdefs.h <<\EOF
3781 #define HAVE_CUPS 1
3784 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3785 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3786 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3790 ############################################
3791 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3792 for ac_func in dlopen
3794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3795 echo "configure:3796: checking for $ac_func" >&5
3796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3798 else
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 /* System header to define __stub macros and hopefully few prototypes,
3803 which can conflict with char $ac_func(); below. */
3804 #include <assert.h>
3805 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3808 char $ac_func();
3810 int main() {
3812 /* The GNU C library defines this for functions which it implements
3813 to always fail with ENOSYS. Some functions are actually named
3814 something starting with __ and the normal name is an alias. */
3815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3816 choke me
3817 #else
3818 $ac_func();
3819 #endif
3821 ; return 0; }
3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3824 rm -rf conftest*
3825 eval "ac_cv_func_$ac_func=yes"
3826 else
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3829 rm -rf conftest*
3830 eval "ac_cv_func_$ac_func=no"
3832 rm -f conftest*
3835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3836 echo "$ac_t""yes" 1>&6
3837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3838 cat >> confdefs.h <<EOF
3839 #define $ac_tr_func 1
3842 else
3843 echo "$ac_t""no" 1>&6
3845 done
3847 if test x"$ac_cv_func_dlopen" = x"no"; then
3848 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3849 echo "configure:3850: checking for dlopen in -ldl" >&5
3850 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3853 else
3854 ac_save_LIBS="$LIBS"
3855 LIBS="-ldl $LIBS"
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3859 /* Override any gcc2 internal prototype to avoid an error. */
3860 /* We use char because int might match the return type of a gcc2
3861 builtin and then its argument prototype would still apply. */
3862 char dlopen();
3864 int main() {
3865 dlopen()
3866 ; return 0; }
3868 if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3869 rm -rf conftest*
3870 eval "ac_cv_lib_$ac_lib_var=yes"
3871 else
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3874 rm -rf conftest*
3875 eval "ac_cv_lib_$ac_lib_var=no"
3877 rm -f conftest*
3878 LIBS="$ac_save_LIBS"
3881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3882 echo "$ac_t""yes" 1>&6
3883 LIBS="$LIBS -ldl";
3884 cat >> confdefs.h <<\EOF
3885 #define HAVE_DLOPEN 1
3888 else
3889 echo "$ac_t""no" 1>&6
3893 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3895 ############################################
3896 # check if the compiler can do immediate structures
3897 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3898 echo "configure:3899: checking for immediate structures" >&5
3899 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3901 else
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3907 #include <stdio.h>
3908 int main() {
3910 typedef struct {unsigned x;} FOOBAR;
3911 #define X_FOOBAR(x) ((FOOBAR) { x })
3912 #define FOO_ONE X_FOOBAR(1)
3913 FOOBAR f = FOO_ONE;
3914 static struct {
3915 FOOBAR y;
3916 } f2[] = {
3917 {FOO_ONE}
3920 ; return 0; }
3922 if { (eval echo configure:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923 rm -rf conftest*
3924 samba_cv_immediate_structures=yes
3925 else
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 rm -rf conftest*
3929 samba_cv_immediate_structures=no
3931 rm -f conftest*
3934 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3935 if test x"$samba_cv_immediate_structures" = x"yes"; then
3936 cat >> confdefs.h <<\EOF
3937 #define HAVE_IMMEDIATE_STRUCTURES 1
3942 ############################################
3943 # check for unix domain sockets
3944 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3945 echo "configure:3946: checking for unix domain sockets" >&5
3946 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3948 else
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3954 #include <sys/types.h>
3955 #include <stdlib.h>
3956 #include <stddef.h>
3957 #include <sys/socket.h>
3958 #include <sys/un.h>
3959 int main() {
3961 struct sockaddr_un sunaddr;
3962 sunaddr.sun_family = AF_UNIX;
3964 ; return 0; }
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3967 rm -rf conftest*
3968 samba_cv_unixsocket=yes
3969 else
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 rm -rf conftest*
3973 samba_cv_unixsocket=no
3975 rm -f conftest*
3978 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3979 if test x"$samba_cv_unixsocket" = x"yes"; then
3980 cat >> confdefs.h <<\EOF
3981 #define HAVE_UNIXSOCKET 1
3986 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3987 echo "configure:3988: checking for socklen_t type" >&5
3988 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3990 else
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3996 #include <sys/types.h>
3997 #if STDC_HEADERS
3998 #include <stdlib.h>
3999 #include <stddef.h>
4000 #endif
4001 #include <sys/socket.h>
4002 int main() {
4003 socklen_t i = 0
4004 ; return 0; }
4006 if { (eval echo configure:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4007 rm -rf conftest*
4008 samba_cv_socklen_t=yes
4009 else
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4012 rm -rf conftest*
4013 samba_cv_socklen_t=no
4015 rm -f conftest*
4018 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4019 if test x"$samba_cv_socklen_t" = x"yes"; then
4020 cat >> confdefs.h <<\EOF
4021 #define HAVE_SOCKLEN_T_TYPE 1
4026 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4027 echo "configure:4028: checking for sig_atomic_t type" >&5
4028 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4036 #include <sys/types.h>
4037 #if STDC_HEADERS
4038 #include <stdlib.h>
4039 #include <stddef.h>
4040 #endif
4041 #include <signal.h>
4042 int main() {
4043 sig_atomic_t i = 0
4044 ; return 0; }
4046 if { (eval echo configure:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4047 rm -rf conftest*
4048 samba_cv_sig_atomic_t=yes
4049 else
4050 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4052 rm -rf conftest*
4053 samba_cv_sig_atomic_t=no
4055 rm -f conftest*
4058 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4059 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4060 cat >> confdefs.h <<\EOF
4061 #define HAVE_SIG_ATOMIC_T_TYPE 1
4066 # stupid headers have the functions but no declaration. grrrr.
4068 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4069 echo "configure:4070: checking for errno declaration" >&5
4070 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4072 else
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 #include <errno.h>
4078 int main() {
4079 int i = (int)errno
4080 ; return 0; }
4082 if { (eval echo configure:4083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4083 rm -rf conftest*
4084 ac_cv_have_errno_decl=yes
4085 else
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4088 rm -rf conftest*
4089 ac_cv_have_errno_decl=no
4091 rm -f conftest*
4094 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4095 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4096 cat >> confdefs.h <<\EOF
4097 #define HAVE_ERRNO_DECL 1
4103 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4104 echo "configure:4105: checking for setresuid declaration" >&5
4105 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4107 else
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4112 #include <unistd.h>
4113 int main() {
4114 int i = (int)setresuid
4115 ; return 0; }
4117 if { (eval echo configure:4118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4118 rm -rf conftest*
4119 ac_cv_have_setresuid_decl=yes
4120 else
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4123 rm -rf conftest*
4124 ac_cv_have_setresuid_decl=no
4126 rm -f conftest*
4129 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4130 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4131 cat >> confdefs.h <<\EOF
4132 #define HAVE_SETRESUID_DECL 1
4138 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4139 echo "configure:4140: checking for setresgid declaration" >&5
4140 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4142 else
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4147 #include <unistd.h>
4148 int main() {
4149 int i = (int)setresgid
4150 ; return 0; }
4152 if { (eval echo configure:4153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4153 rm -rf conftest*
4154 ac_cv_have_setresgid_decl=yes
4155 else
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4158 rm -rf conftest*
4159 ac_cv_have_setresgid_decl=no
4161 rm -f conftest*
4164 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4165 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4166 cat >> confdefs.h <<\EOF
4167 #define HAVE_SETRESGID_DECL 1
4173 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4174 echo "configure:4175: checking for asprintf declaration" >&5
4175 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4177 else
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 #include <stdio.h>
4183 int main() {
4184 int i = (int)asprintf
4185 ; return 0; }
4187 if { (eval echo configure:4188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4188 rm -rf conftest*
4189 ac_cv_have_asprintf_decl=yes
4190 else
4191 echo "configure: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4193 rm -rf conftest*
4194 ac_cv_have_asprintf_decl=no
4196 rm -f conftest*
4199 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4200 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4201 cat >> confdefs.h <<\EOF
4202 #define HAVE_ASPRINTF_DECL 1
4208 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4209 echo "configure:4210: checking for vasprintf declaration" >&5
4210 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4212 else
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 #include <stdio.h>
4218 int main() {
4219 int i = (int)vasprintf
4220 ; return 0; }
4222 if { (eval echo configure:4223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4223 rm -rf conftest*
4224 ac_cv_have_vasprintf_decl=yes
4225 else
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 rm -rf conftest*
4229 ac_cv_have_vasprintf_decl=no
4231 rm -f conftest*
4234 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4235 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4236 cat >> confdefs.h <<\EOF
4237 #define HAVE_VASPRINTF_DECL 1
4243 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4244 echo "configure:4245: checking for vsnprintf declaration" >&5
4245 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4247 else
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 #include <stdio.h>
4253 int main() {
4254 int i = (int)vsnprintf
4255 ; return 0; }
4257 if { (eval echo configure:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4258 rm -rf conftest*
4259 ac_cv_have_vsnprintf_decl=yes
4260 else
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4263 rm -rf conftest*
4264 ac_cv_have_vsnprintf_decl=no
4266 rm -f conftest*
4269 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4270 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4271 cat >> confdefs.h <<\EOF
4272 #define HAVE_VSNPRINTF_DECL 1
4278 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4279 echo "configure:4280: checking for snprintf declaration" >&5
4280 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4282 else
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 #include <stdio.h>
4288 int main() {
4289 int i = (int)snprintf
4290 ; return 0; }
4292 if { (eval echo configure:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4293 rm -rf conftest*
4294 ac_cv_have_snprintf_decl=yes
4295 else
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4298 rm -rf conftest*
4299 ac_cv_have_snprintf_decl=no
4301 rm -f conftest*
4304 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4305 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_SNPRINTF_DECL 1
4313 # and glibc has setresuid under linux but the function does
4314 # nothing until kernel 2.1.44! very dumb.
4315 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4316 echo "configure:4317: checking for real setresuid" >&5
4317 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4319 else
4321 if test "$cross_compiling" = yes; then
4322 samba_cv_have_setresuid=cross
4323 else
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 #include <errno.h>
4328 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4331 then
4332 samba_cv_have_setresuid=yes
4333 else
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 rm -fr conftest*
4337 samba_cv_have_setresuid=no
4339 rm -fr conftest*
4344 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4345 if test x"$samba_cv_have_setresuid" = x"yes"; then
4346 cat >> confdefs.h <<\EOF
4347 #define HAVE_SETRESUID 1
4352 # Do the same check for setresguid...
4354 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4355 echo "configure:4356: checking for real setresgid" >&5
4356 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4358 else
4360 if test "$cross_compiling" = yes; then
4361 samba_cv_have_setresgid=cross
4362 else
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 #include <unistd.h>
4367 #include <errno.h>
4368 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4371 then
4372 samba_cv_have_setresgid=yes
4373 else
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4376 rm -fr conftest*
4377 samba_cv_have_setresgid=no
4379 rm -fr conftest*
4384 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4385 if test x"$samba_cv_have_setresgid" = x"yes"; then
4386 cat >> confdefs.h <<\EOF
4387 #define HAVE_SETRESGID 1
4392 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4393 echo "configure:4394: checking for 8-bit clean memcmp" >&5
4394 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4396 else
4397 if test "$cross_compiling" = yes; then
4398 ac_cv_func_memcmp_clean=no
4399 else
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4404 main()
4406 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4407 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4412 then
4413 ac_cv_func_memcmp_clean=yes
4414 else
4415 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 rm -fr conftest*
4418 ac_cv_func_memcmp_clean=no
4420 rm -fr conftest*
4425 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4426 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4429 ###############################################
4430 # Readline included by default unless explicitly asked not to
4431 test "${with_readline+set}" != "set" && with_readline=yes
4433 # test for where we get readline() from
4434 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4435 echo "configure:4436: checking whether to use readline" >&5
4436 # Check whether --with-readline or --without-readline was given.
4437 if test "${with_readline+set}" = set; then
4438 withval="$with_readline"
4439 case "$with_readline" in
4440 yes)
4441 echo "$ac_t""yes" 1>&6
4443 for ac_hdr in readline.h history.h readline/readline.h
4445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_hdr" >&5
4448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4450 else
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 #include <$ac_hdr>
4456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4457 { (eval echo configure:4458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4459 if test -z "$ac_err"; then
4460 rm -rf conftest*
4461 eval "ac_cv_header_$ac_safe=yes"
4462 else
4463 echo "$ac_err" >&5
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4466 rm -rf conftest*
4467 eval "ac_cv_header_$ac_safe=no"
4469 rm -f conftest*
4471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4474 cat >> confdefs.h <<EOF
4475 #define $ac_tr_hdr 1
4478 else
4479 echo "$ac_t""no" 1>&6
4481 done
4483 for ac_hdr in readline/history.h
4485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4490 else
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 #include <$ac_hdr>
4496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4500 rm -rf conftest*
4501 eval "ac_cv_header_$ac_safe=yes"
4502 else
4503 echo "$ac_err" >&5
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 rm -rf conftest*
4507 eval "ac_cv_header_$ac_safe=no"
4509 rm -f conftest*
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_hdr 1
4518 else
4519 echo "$ac_t""no" 1>&6
4521 done
4524 for ac_hdr in readline.h readline/readline.h
4526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_hdr" >&5
4529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4531 else
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 #include <$ac_hdr>
4537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4538 { (eval echo configure:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4540 if test -z "$ac_err"; then
4541 rm -rf conftest*
4542 eval "ac_cv_header_$ac_safe=yes"
4543 else
4544 echo "$ac_err" >&5
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4547 rm -rf conftest*
4548 eval "ac_cv_header_$ac_safe=no"
4550 rm -f conftest*
4552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4553 echo "$ac_t""yes" 1>&6
4554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4555 cat >> confdefs.h <<EOF
4556 #define $ac_tr_hdr 1
4559 for termlib in ncurses curses termcap terminfo termlib; do
4560 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4561 echo "configure:4562: checking for tgetent in -l${termlib}" >&5
4562 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4565 else
4566 ac_save_LIBS="$LIBS"
4567 LIBS="-l${termlib} $LIBS"
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 /* Override any gcc2 internal prototype to avoid an error. */
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4574 char tgetent();
4576 int main() {
4577 tgetent()
4578 ; return 0; }
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581 rm -rf conftest*
4582 eval "ac_cv_lib_$ac_lib_var=yes"
4583 else
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586 rm -rf conftest*
4587 eval "ac_cv_lib_$ac_lib_var=no"
4589 rm -f conftest*
4590 LIBS="$ac_save_LIBS"
4593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4595 TERMLIBS="-l${termlib}"; break
4596 else
4597 echo "$ac_t""no" 1>&6
4600 done
4601 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4602 echo "configure:4603: checking for rl_callback_handler_install in -lreadline" >&5
4603 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4606 else
4607 ac_save_LIBS="$LIBS"
4608 LIBS="-lreadline $TERMLIBS $LIBS"
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4615 char rl_callback_handler_install();
4617 int main() {
4618 rl_callback_handler_install()
4619 ; return 0; }
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4622 rm -rf conftest*
4623 eval "ac_cv_lib_$ac_lib_var=yes"
4624 else
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4627 rm -rf conftest*
4628 eval "ac_cv_lib_$ac_lib_var=no"
4630 rm -f conftest*
4631 LIBS="$ac_save_LIBS"
4634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 TERMLIBS="-lreadline $TERMLIBS"
4637 cat >> confdefs.h <<\EOF
4638 #define HAVE_LIBREADLINE 1
4641 break
4642 else
4643 echo "$ac_t""no" 1>&6
4644 TERMLIBS=
4647 else
4648 echo "$ac_t""no" 1>&6
4650 done
4654 echo "$ac_t""no" 1>&6
4657 echo "$ac_t""yes" 1>&6
4659 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4660 # alternate readline path
4661 _ldflags=${LDFLAGS}
4662 _cppflags=${CPPFLAGS}
4664 # Add additional search path
4665 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4666 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4668 for ac_hdr in readline.h history.h readline/readline.h
4670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4672 echo "configure:4673: checking for $ac_hdr" >&5
4673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4675 else
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <$ac_hdr>
4681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4682 { (eval echo configure:4683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4684 if test -z "$ac_err"; then
4685 rm -rf conftest*
4686 eval "ac_cv_header_$ac_safe=yes"
4687 else
4688 echo "$ac_err" >&5
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 rm -rf conftest*
4692 eval "ac_cv_header_$ac_safe=no"
4694 rm -f conftest*
4696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4699 cat >> confdefs.h <<EOF
4700 #define $ac_tr_hdr 1
4703 else
4704 echo "$ac_t""no" 1>&6
4706 done
4708 for ac_hdr in readline/history.h
4710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4712 echo "configure:4713: checking for $ac_hdr" >&5
4713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4715 else
4716 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4719 #include <$ac_hdr>
4721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4722 { (eval echo configure:4723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4724 if test -z "$ac_err"; then
4725 rm -rf conftest*
4726 eval "ac_cv_header_$ac_safe=yes"
4727 else
4728 echo "$ac_err" >&5
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4731 rm -rf conftest*
4732 eval "ac_cv_header_$ac_safe=no"
4734 rm -f conftest*
4736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4739 cat >> confdefs.h <<EOF
4740 #define $ac_tr_hdr 1
4743 else
4744 echo "$ac_t""no" 1>&6
4746 done
4749 for ac_hdr in readline.h readline/readline.h
4751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_hdr" >&5
4754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4756 else
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 #include <$ac_hdr>
4762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4763 { (eval echo configure:4764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4765 if test -z "$ac_err"; then
4766 rm -rf conftest*
4767 eval "ac_cv_header_$ac_safe=yes"
4768 else
4769 echo "$ac_err" >&5
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4772 rm -rf conftest*
4773 eval "ac_cv_header_$ac_safe=no"
4775 rm -f conftest*
4777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4780 cat >> confdefs.h <<EOF
4781 #define $ac_tr_hdr 1
4784 for termlib in ncurses curses termcap terminfo termlib; do
4785 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4786 echo "configure:4787: checking for tgetent in -l${termlib}" >&5
4787 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4790 else
4791 ac_save_LIBS="$LIBS"
4792 LIBS="-l${termlib} $LIBS"
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.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 tgetent();
4801 int main() {
4802 tgetent()
4803 ; return 0; }
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4806 rm -rf conftest*
4807 eval "ac_cv_lib_$ac_lib_var=yes"
4808 else
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4811 rm -rf conftest*
4812 eval "ac_cv_lib_$ac_lib_var=no"
4814 rm -f conftest*
4815 LIBS="$ac_save_LIBS"
4818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6
4820 TERMLIBS="-l${termlib}"; break
4821 else
4822 echo "$ac_t""no" 1>&6
4825 done
4826 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4827 echo "configure:4828: checking for rl_callback_handler_install in -lreadline" >&5
4828 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4831 else
4832 ac_save_LIBS="$LIBS"
4833 LIBS="-lreadline $TERMLIBS $LIBS"
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 /* Override any gcc2 internal prototype to avoid an error. */
4838 /* We use char because int might match the return type of a gcc2
4839 builtin and then its argument prototype would still apply. */
4840 char rl_callback_handler_install();
4842 int main() {
4843 rl_callback_handler_install()
4844 ; return 0; }
4846 if { (eval echo configure:4847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4847 rm -rf conftest*
4848 eval "ac_cv_lib_$ac_lib_var=yes"
4849 else
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4852 rm -rf conftest*
4853 eval "ac_cv_lib_$ac_lib_var=no"
4855 rm -f conftest*
4856 LIBS="$ac_save_LIBS"
4859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4860 echo "$ac_t""yes" 1>&6
4861 TERMLDFLAGS="-L$with_readline/lib"
4862 TERMCPPFLAGS="-I$with_readline/include"
4863 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4864 TERMLIBS="-lreadline $TERMLIBS"
4865 cat >> confdefs.h <<\EOF
4866 #define HAVE_LIBREADLINE 1
4869 break
4870 else
4871 echo "$ac_t""no" 1>&6
4872 TERMLIBS= CPPFLAGS=$_cppflags
4875 else
4876 echo "$ac_t""no" 1>&6
4878 done
4881 LDFLAGS=$_ldflags
4883 esac
4884 else
4885 echo "$ac_t""no" 1>&6
4892 # The following test taken from the cvs sources
4893 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4894 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4895 # libsocket.so which has a bad implementation of gethostbyname (it
4896 # only looks in /etc/hosts), so we only look for -lsocket if we need
4897 # it.
4898 for ac_func in connect
4900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4901 echo "configure:4902: checking for $ac_func" >&5
4902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4904 else
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char $ac_func(); below. */
4910 #include <assert.h>
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4914 char $ac_func();
4916 int main() {
4918 /* The GNU C library defines this for functions which it implements
4919 to always fail with ENOSYS. Some functions are actually named
4920 something starting with __ and the normal name is an alias. */
4921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4922 choke me
4923 #else
4924 $ac_func();
4925 #endif
4927 ; return 0; }
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4930 rm -rf conftest*
4931 eval "ac_cv_func_$ac_func=yes"
4932 else
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 rm -rf conftest*
4936 eval "ac_cv_func_$ac_func=no"
4938 rm -f conftest*
4941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4944 cat >> confdefs.h <<EOF
4945 #define $ac_tr_func 1
4948 else
4949 echo "$ac_t""no" 1>&6
4951 done
4953 if test x"$ac_cv_func_connect" = x"no"; then
4954 case "$LIBS" in
4955 *-lnsl*) ;;
4956 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4957 echo "configure:4958: checking for printf in -lnsl_s" >&5
4958 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4961 else
4962 ac_save_LIBS="$LIBS"
4963 LIBS="-lnsl_s $LIBS"
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4970 char printf();
4972 int main() {
4973 printf()
4974 ; return 0; }
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4977 rm -rf conftest*
4978 eval "ac_cv_lib_$ac_lib_var=yes"
4979 else
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4982 rm -rf conftest*
4983 eval "ac_cv_lib_$ac_lib_var=no"
4985 rm -f conftest*
4986 LIBS="$ac_save_LIBS"
4989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4992 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4993 cat >> confdefs.h <<EOF
4994 #define $ac_tr_lib 1
4997 LIBS="-lnsl_s $LIBS"
4999 else
5000 echo "$ac_t""no" 1>&6
5003 esac
5004 case "$LIBS" in
5005 *-lnsl*) ;;
5006 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5007 echo "configure:5008: checking for printf in -lnsl" >&5
5008 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5011 else
5012 ac_save_LIBS="$LIBS"
5013 LIBS="-lnsl $LIBS"
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5017 /* Override any gcc2 internal prototype to avoid an error. */
5018 /* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
5020 char printf();
5022 int main() {
5023 printf()
5024 ; return 0; }
5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5027 rm -rf conftest*
5028 eval "ac_cv_lib_$ac_lib_var=yes"
5029 else
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5032 rm -rf conftest*
5033 eval "ac_cv_lib_$ac_lib_var=no"
5035 rm -f conftest*
5036 LIBS="$ac_save_LIBS"
5039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5043 cat >> confdefs.h <<EOF
5044 #define $ac_tr_lib 1
5047 LIBS="-lnsl $LIBS"
5049 else
5050 echo "$ac_t""no" 1>&6
5053 esac
5054 case "$LIBS" in
5055 *-lsocket*) ;;
5056 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5057 echo "configure:5058: checking for connect in -lsocket" >&5
5058 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5061 else
5062 ac_save_LIBS="$LIBS"
5063 LIBS="-lsocket $LIBS"
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5070 char connect();
5072 int main() {
5073 connect()
5074 ; return 0; }
5076 if { (eval echo configure:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5077 rm -rf conftest*
5078 eval "ac_cv_lib_$ac_lib_var=yes"
5079 else
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5082 rm -rf conftest*
5083 eval "ac_cv_lib_$ac_lib_var=no"
5085 rm -f conftest*
5086 LIBS="$ac_save_LIBS"
5089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5090 echo "$ac_t""yes" 1>&6
5091 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5092 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5093 cat >> confdefs.h <<EOF
5094 #define $ac_tr_lib 1
5097 LIBS="-lsocket $LIBS"
5099 else
5100 echo "$ac_t""no" 1>&6
5103 esac
5104 case "$LIBS" in
5105 *-linet*) ;;
5106 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5107 echo "configure:5108: checking for connect in -linet" >&5
5108 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5111 else
5112 ac_save_LIBS="$LIBS"
5113 LIBS="-linet $LIBS"
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117 /* Override any gcc2 internal prototype to avoid an error. */
5118 /* We use char because int might match the return type of a gcc2
5119 builtin and then its argument prototype would still apply. */
5120 char connect();
5122 int main() {
5123 connect()
5124 ; return 0; }
5126 if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5127 rm -rf conftest*
5128 eval "ac_cv_lib_$ac_lib_var=yes"
5129 else
5130 echo "configure: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5132 rm -rf conftest*
5133 eval "ac_cv_lib_$ac_lib_var=no"
5135 rm -f conftest*
5136 LIBS="$ac_save_LIBS"
5139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5140 echo "$ac_t""yes" 1>&6
5141 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5143 cat >> confdefs.h <<EOF
5144 #define $ac_tr_lib 1
5147 LIBS="-linet $LIBS"
5149 else
5150 echo "$ac_t""no" 1>&6
5153 esac
5154 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5155 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5156 # ac_cv_func_connect=yes
5157 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5158 cat >> confdefs.h <<\EOF
5159 #define HAVE_CONNECT 1
5165 ###############################################
5166 # test for where we get get_yp_default_domain() from
5167 for ac_func in yp_get_default_domain
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 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5223 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5224 echo "configure:5225: checking for yp_get_default_domain in -lnsl" >&5
5225 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5228 else
5229 ac_save_LIBS="$LIBS"
5230 LIBS="-lnsl $LIBS"
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234 /* Override any gcc2 internal prototype to avoid an error. */
5235 /* We use char because int might match the return type of a gcc2
5236 builtin and then its argument prototype would still apply. */
5237 char yp_get_default_domain();
5239 int main() {
5240 yp_get_default_domain()
5241 ; return 0; }
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5244 rm -rf conftest*
5245 eval "ac_cv_lib_$ac_lib_var=yes"
5246 else
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5249 rm -rf conftest*
5250 eval "ac_cv_lib_$ac_lib_var=no"
5252 rm -f conftest*
5253 LIBS="$ac_save_LIBS"
5256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5257 echo "$ac_t""yes" 1>&6
5258 LIBS="$LIBS -lnsl";
5259 cat >> confdefs.h <<\EOF
5260 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5263 else
5264 echo "$ac_t""no" 1>&6
5269 # Check if we have execl, if not we need to compile smbrun.
5270 for ac_func in execl
5272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5273 echo "configure:5274: checking for $ac_func" >&5
5274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276 else
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280 /* System header to define __stub macros and hopefully few prototypes,
5281 which can conflict with char $ac_func(); below. */
5282 #include <assert.h>
5283 /* Override any gcc2 internal prototype to avoid an error. */
5284 /* We use char because int might match the return type of a gcc2
5285 builtin and then its argument prototype would still apply. */
5286 char $ac_func();
5288 int main() {
5290 /* The GNU C library defines this for functions which it implements
5291 to always fail with ENOSYS. Some functions are actually named
5292 something starting with __ and the normal name is an alias. */
5293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5294 choke me
5295 #else
5296 $ac_func();
5297 #endif
5299 ; return 0; }
5301 if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5302 rm -rf conftest*
5303 eval "ac_cv_func_$ac_func=yes"
5304 else
5305 echo "configure: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5307 rm -rf conftest*
5308 eval "ac_cv_func_$ac_func=no"
5310 rm -f conftest*
5313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5314 echo "$ac_t""yes" 1>&6
5315 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5316 cat >> confdefs.h <<EOF
5317 #define $ac_tr_func 1
5320 else
5321 echo "$ac_t""no" 1>&6
5323 done
5325 if test x"$ac_cv_func_execl" = x"no"; then
5326 RUNPROG="bin/smbrun"
5327 else
5328 RUNPROG=""
5331 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5334 echo "configure:5335: checking for $ac_func" >&5
5335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5337 else
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5341 /* System header to define __stub macros and hopefully few prototypes,
5342 which can conflict with char $ac_func(); below. */
5343 #include <assert.h>
5344 /* Override any gcc2 internal prototype to avoid an error. */
5345 /* We use char because int might match the return type of a gcc2
5346 builtin and then its argument prototype would still apply. */
5347 char $ac_func();
5349 int main() {
5351 /* The GNU C library defines this for functions which it implements
5352 to always fail with ENOSYS. Some functions are actually named
5353 something starting with __ and the normal name is an alias. */
5354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5355 choke me
5356 #else
5357 $ac_func();
5358 #endif
5360 ; return 0; }
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5363 rm -rf conftest*
5364 eval "ac_cv_func_$ac_func=yes"
5365 else
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5368 rm -rf conftest*
5369 eval "ac_cv_func_$ac_func=no"
5371 rm -f conftest*
5374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5375 echo "$ac_t""yes" 1>&6
5376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5377 cat >> confdefs.h <<EOF
5378 #define $ac_tr_func 1
5381 else
5382 echo "$ac_t""no" 1>&6
5384 done
5386 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5389 echo "configure:5390: checking for $ac_func" >&5
5390 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5392 else
5393 cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5396 /* System header to define __stub macros and hopefully few prototypes,
5397 which can conflict with char $ac_func(); below. */
5398 #include <assert.h>
5399 /* Override any gcc2 internal prototype to avoid an error. */
5400 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */
5402 char $ac_func();
5404 int main() {
5406 /* The GNU C library defines this for functions which it implements
5407 to always fail with ENOSYS. Some functions are actually named
5408 something starting with __ and the normal name is an alias. */
5409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5410 choke me
5411 #else
5412 $ac_func();
5413 #endif
5415 ; return 0; }
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5418 rm -rf conftest*
5419 eval "ac_cv_func_$ac_func=yes"
5420 else
5421 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5423 rm -rf conftest*
5424 eval "ac_cv_func_$ac_func=no"
5426 rm -f conftest*
5429 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5430 echo "$ac_t""yes" 1>&6
5431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5432 cat >> confdefs.h <<EOF
5433 #define $ac_tr_func 1
5436 else
5437 echo "$ac_t""no" 1>&6
5439 done
5441 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5444 echo "configure:5445: checking for $ac_func" >&5
5445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5447 else
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5451 /* System header to define __stub macros and hopefully few prototypes,
5452 which can conflict with char $ac_func(); below. */
5453 #include <assert.h>
5454 /* Override any gcc2 internal prototype to avoid an error. */
5455 /* We use char because int might match the return type of a gcc2
5456 builtin and then its argument prototype would still apply. */
5457 char $ac_func();
5459 int main() {
5461 /* The GNU C library defines this for functions which it implements
5462 to always fail with ENOSYS. Some functions are actually named
5463 something starting with __ and the normal name is an alias. */
5464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5465 choke me
5466 #else
5467 $ac_func();
5468 #endif
5470 ; return 0; }
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5473 rm -rf conftest*
5474 eval "ac_cv_func_$ac_func=yes"
5475 else
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 rm -rf conftest*
5479 eval "ac_cv_func_$ac_func=no"
5481 rm -f conftest*
5484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5487 cat >> confdefs.h <<EOF
5488 #define $ac_tr_func 1
5491 else
5492 echo "$ac_t""no" 1>&6
5494 done
5496 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5499 echo "configure:5500: checking for $ac_func" >&5
5500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5502 else
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5506 /* System header to define __stub macros and hopefully few prototypes,
5507 which can conflict with char $ac_func(); below. */
5508 #include <assert.h>
5509 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5512 char $ac_func();
5514 int main() {
5516 /* The GNU C library defines this for functions which it implements
5517 to always fail with ENOSYS. Some functions are actually named
5518 something starting with __ and the normal name is an alias. */
5519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5520 choke me
5521 #else
5522 $ac_func();
5523 #endif
5525 ; return 0; }
5527 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5528 rm -rf conftest*
5529 eval "ac_cv_func_$ac_func=yes"
5530 else
5531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5533 rm -rf conftest*
5534 eval "ac_cv_func_$ac_func=no"
5536 rm -f conftest*
5539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5540 echo "$ac_t""yes" 1>&6
5541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5542 cat >> confdefs.h <<EOF
5543 #define $ac_tr_func 1
5546 else
5547 echo "$ac_t""no" 1>&6
5549 done
5551 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5554 echo "configure:5555: checking for $ac_func" >&5
5555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5557 else
5558 cat > conftest.$ac_ext <<EOF
5559 #line 5560 "configure"
5560 #include "confdefs.h"
5561 /* System header to define __stub macros and hopefully few prototypes,
5562 which can conflict with char $ac_func(); below. */
5563 #include <assert.h>
5564 /* Override any gcc2 internal prototype to avoid an error. */
5565 /* We use char because int might match the return type of a gcc2
5566 builtin and then its argument prototype would still apply. */
5567 char $ac_func();
5569 int main() {
5571 /* The GNU C library defines this for functions which it implements
5572 to always fail with ENOSYS. Some functions are actually named
5573 something starting with __ and the normal name is an alias. */
5574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5575 choke me
5576 #else
5577 $ac_func();
5578 #endif
5580 ; return 0; }
5582 if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5583 rm -rf conftest*
5584 eval "ac_cv_func_$ac_func=yes"
5585 else
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5588 rm -rf conftest*
5589 eval "ac_cv_func_$ac_func=no"
5591 rm -f conftest*
5594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5595 echo "$ac_t""yes" 1>&6
5596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5597 cat >> confdefs.h <<EOF
5598 #define $ac_tr_func 1
5601 else
5602 echo "$ac_t""no" 1>&6
5604 done
5606 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5609 echo "configure:5610: checking for $ac_func" >&5
5610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5612 else
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5616 /* System header to define __stub macros and hopefully few prototypes,
5617 which can conflict with char $ac_func(); below. */
5618 #include <assert.h>
5619 /* Override any gcc2 internal prototype to avoid an error. */
5620 /* We use char because int might match the return type of a gcc2
5621 builtin and then its argument prototype would still apply. */
5622 char $ac_func();
5624 int main() {
5626 /* The GNU C library defines this for functions which it implements
5627 to always fail with ENOSYS. Some functions are actually named
5628 something starting with __ and the normal name is an alias. */
5629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5630 choke me
5631 #else
5632 $ac_func();
5633 #endif
5635 ; return 0; }
5637 if { (eval echo configure:5638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5638 rm -rf conftest*
5639 eval "ac_cv_func_$ac_func=yes"
5640 else
5641 echo "configure: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5643 rm -rf conftest*
5644 eval "ac_cv_func_$ac_func=no"
5646 rm -f conftest*
5649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5650 echo "$ac_t""yes" 1>&6
5651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5652 cat >> confdefs.h <<EOF
5653 #define $ac_tr_func 1
5656 else
5657 echo "$ac_t""no" 1>&6
5659 done
5661 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5664 echo "configure:5665: checking for $ac_func" >&5
5665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5666 echo $ac_n "(cached) $ac_c" 1>&6
5667 else
5668 cat > conftest.$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5671 /* System header to define __stub macros and hopefully few prototypes,
5672 which can conflict with char $ac_func(); below. */
5673 #include <assert.h>
5674 /* Override any gcc2 internal prototype to avoid an error. */
5675 /* We use char because int might match the return type of a gcc2
5676 builtin and then its argument prototype would still apply. */
5677 char $ac_func();
5679 int main() {
5681 /* The GNU C library defines this for functions which it implements
5682 to always fail with ENOSYS. Some functions are actually named
5683 something starting with __ and the normal name is an alias. */
5684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5685 choke me
5686 #else
5687 $ac_func();
5688 #endif
5690 ; return 0; }
5692 if { (eval echo configure:5693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5693 rm -rf conftest*
5694 eval "ac_cv_func_$ac_func=yes"
5695 else
5696 echo "configure: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5698 rm -rf conftest*
5699 eval "ac_cv_func_$ac_func=no"
5701 rm -f conftest*
5704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5705 echo "$ac_t""yes" 1>&6
5706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5707 cat >> confdefs.h <<EOF
5708 #define $ac_tr_func 1
5711 else
5712 echo "$ac_t""no" 1>&6
5714 done
5716 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5719 echo "configure:5720: checking for $ac_func" >&5
5720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5722 else
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5726 /* System header to define __stub macros and hopefully few prototypes,
5727 which can conflict with char $ac_func(); below. */
5728 #include <assert.h>
5729 /* Override any gcc2 internal prototype to avoid an error. */
5730 /* We use char because int might match the return type of a gcc2
5731 builtin and then its argument prototype would still apply. */
5732 char $ac_func();
5734 int main() {
5736 /* The GNU C library defines this for functions which it implements
5737 to always fail with ENOSYS. Some functions are actually named
5738 something starting with __ and the normal name is an alias. */
5739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5740 choke me
5741 #else
5742 $ac_func();
5743 #endif
5745 ; return 0; }
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5748 rm -rf conftest*
5749 eval "ac_cv_func_$ac_func=yes"
5750 else
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5753 rm -rf conftest*
5754 eval "ac_cv_func_$ac_func=no"
5756 rm -f conftest*
5759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5760 echo "$ac_t""yes" 1>&6
5761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5762 cat >> confdefs.h <<EOF
5763 #define $ac_tr_func 1
5766 else
5767 echo "$ac_t""no" 1>&6
5769 done
5771 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5774 echo "configure:5775: checking for $ac_func" >&5
5775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5777 else
5778 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5781 /* System header to define __stub macros and hopefully few prototypes,
5782 which can conflict with char $ac_func(); below. */
5783 #include <assert.h>
5784 /* Override any gcc2 internal prototype to avoid an error. */
5785 /* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5787 char $ac_func();
5789 int main() {
5791 /* The GNU C library defines this for functions which it implements
5792 to always fail with ENOSYS. Some functions are actually named
5793 something starting with __ and the normal name is an alias. */
5794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5795 choke me
5796 #else
5797 $ac_func();
5798 #endif
5800 ; return 0; }
5802 if { (eval echo configure:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5803 rm -rf conftest*
5804 eval "ac_cv_func_$ac_func=yes"
5805 else
5806 echo "configure: failed program was:" >&5
5807 cat conftest.$ac_ext >&5
5808 rm -rf conftest*
5809 eval "ac_cv_func_$ac_func=no"
5811 rm -f conftest*
5814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5815 echo "$ac_t""yes" 1>&6
5816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5817 cat >> confdefs.h <<EOF
5818 #define $ac_tr_func 1
5821 else
5822 echo "$ac_t""no" 1>&6
5824 done
5826 for ac_func in syslog vsyslog
5828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5829 echo "configure:5830: checking for $ac_func" >&5
5830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5832 else
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5836 /* System header to define __stub macros and hopefully few prototypes,
5837 which can conflict with char $ac_func(); below. */
5838 #include <assert.h>
5839 /* Override any gcc2 internal prototype to avoid an error. */
5840 /* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5842 char $ac_func();
5844 int main() {
5846 /* The GNU C library defines this for functions which it implements
5847 to always fail with ENOSYS. Some functions are actually named
5848 something starting with __ and the normal name is an alias. */
5849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5850 choke me
5851 #else
5852 $ac_func();
5853 #endif
5855 ; return 0; }
5857 if { (eval echo configure:5858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5858 rm -rf conftest*
5859 eval "ac_cv_func_$ac_func=yes"
5860 else
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5863 rm -rf conftest*
5864 eval "ac_cv_func_$ac_func=no"
5866 rm -f conftest*
5869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5870 echo "$ac_t""yes" 1>&6
5871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5872 cat >> confdefs.h <<EOF
5873 #define $ac_tr_func 1
5876 else
5877 echo "$ac_t""no" 1>&6
5879 done
5882 # syscall() is needed for smbwrapper.
5883 for ac_func in syscall
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5889 else
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5895 #include <assert.h>
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5899 char $ac_func();
5901 int main() {
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5907 choke me
5908 #else
5909 $ac_func();
5910 #endif
5912 ; return 0; }
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5915 rm -rf conftest*
5916 eval "ac_cv_func_$ac_func=yes"
5917 else
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 rm -rf conftest*
5921 eval "ac_cv_func_$ac_func=no"
5923 rm -f conftest*
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h <<EOF
5930 #define $ac_tr_func 1
5933 else
5934 echo "$ac_t""no" 1>&6
5936 done
5939 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5942 echo "configure:5943: checking for $ac_func" >&5
5943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5945 else
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 /* System header to define __stub macros and hopefully few prototypes,
5950 which can conflict with char $ac_func(); below. */
5951 #include <assert.h>
5952 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5955 char $ac_func();
5957 int main() {
5959 /* The GNU C library defines this for functions which it implements
5960 to always fail with ENOSYS. Some functions are actually named
5961 something starting with __ and the normal name is an alias. */
5962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5963 choke me
5964 #else
5965 $ac_func();
5966 #endif
5968 ; return 0; }
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5971 rm -rf conftest*
5972 eval "ac_cv_func_$ac_func=yes"
5973 else
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5976 rm -rf conftest*
5977 eval "ac_cv_func_$ac_func=no"
5979 rm -f conftest*
5982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5983 echo "$ac_t""yes" 1>&6
5984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5985 cat >> confdefs.h <<EOF
5986 #define $ac_tr_func 1
5989 else
5990 echo "$ac_t""no" 1>&6
5992 done
5994 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_func" >&5
5998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6000 else
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func(); below. */
6006 #include <assert.h>
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6010 char $ac_func();
6012 int main() {
6014 /* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6018 choke me
6019 #else
6020 $ac_func();
6021 #endif
6023 ; return 0; }
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 rm -rf conftest*
6027 eval "ac_cv_func_$ac_func=yes"
6028 else
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 rm -rf conftest*
6032 eval "ac_cv_func_$ac_func=no"
6034 rm -f conftest*
6037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6040 cat >> confdefs.h <<EOF
6041 #define $ac_tr_func 1
6044 else
6045 echo "$ac_t""no" 1>&6
6047 done
6049 for ac_func in __getcwd _getcwd
6051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6052 echo "configure:6053: checking for $ac_func" >&5
6053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6055 else
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 /* System header to define __stub macros and hopefully few prototypes,
6060 which can conflict with char $ac_func(); below. */
6061 #include <assert.h>
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6065 char $ac_func();
6067 int main() {
6069 /* The GNU C library defines this for functions which it implements
6070 to always fail with ENOSYS. Some functions are actually named
6071 something starting with __ and the normal name is an alias. */
6072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6073 choke me
6074 #else
6075 $ac_func();
6076 #endif
6078 ; return 0; }
6080 if { (eval echo configure:6081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6081 rm -rf conftest*
6082 eval "ac_cv_func_$ac_func=yes"
6083 else
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 rm -rf conftest*
6087 eval "ac_cv_func_$ac_func=no"
6089 rm -f conftest*
6092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6093 echo "$ac_t""yes" 1>&6
6094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6095 cat >> confdefs.h <<EOF
6096 #define $ac_tr_func 1
6099 else
6100 echo "$ac_t""no" 1>&6
6102 done
6104 for ac_func in __xstat __fxstat __lxstat
6106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6107 echo "configure:6108: checking for $ac_func" >&5
6108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6110 else
6111 cat > conftest.$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6114 /* System header to define __stub macros and hopefully few prototypes,
6115 which can conflict with char $ac_func(); below. */
6116 #include <assert.h>
6117 /* Override any gcc2 internal prototype to avoid an error. */
6118 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */
6120 char $ac_func();
6122 int main() {
6124 /* The GNU C library defines this for functions which it implements
6125 to always fail with ENOSYS. Some functions are actually named
6126 something starting with __ and the normal name is an alias. */
6127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6128 choke me
6129 #else
6130 $ac_func();
6131 #endif
6133 ; return 0; }
6135 if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6136 rm -rf conftest*
6137 eval "ac_cv_func_$ac_func=yes"
6138 else
6139 echo "configure: failed program was:" >&5
6140 cat conftest.$ac_ext >&5
6141 rm -rf conftest*
6142 eval "ac_cv_func_$ac_func=no"
6144 rm -f conftest*
6147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6148 echo "$ac_t""yes" 1>&6
6149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6150 cat >> confdefs.h <<EOF
6151 #define $ac_tr_func 1
6154 else
6155 echo "$ac_t""no" 1>&6
6157 done
6159 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6162 echo "configure:6163: checking for $ac_func" >&5
6163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6165 else
6166 cat > conftest.$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6169 /* System header to define __stub macros and hopefully few prototypes,
6170 which can conflict with char $ac_func(); below. */
6171 #include <assert.h>
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6175 char $ac_func();
6177 int main() {
6179 /* The GNU C library defines this for functions which it implements
6180 to always fail with ENOSYS. Some functions are actually named
6181 something starting with __ and the normal name is an alias. */
6182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6183 choke me
6184 #else
6185 $ac_func();
6186 #endif
6188 ; return 0; }
6190 if { (eval echo configure:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191 rm -rf conftest*
6192 eval "ac_cv_func_$ac_func=yes"
6193 else
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6196 rm -rf conftest*
6197 eval "ac_cv_func_$ac_func=no"
6199 rm -f conftest*
6202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6205 cat >> confdefs.h <<EOF
6206 #define $ac_tr_func 1
6209 else
6210 echo "$ac_t""no" 1>&6
6212 done
6214 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6217 echo "configure:6218: checking for $ac_func" >&5
6218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6220 else
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func(); below. */
6226 #include <assert.h>
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6230 char $ac_func();
6232 int main() {
6234 /* The GNU C library defines this for functions which it implements
6235 to always fail with ENOSYS. Some functions are actually named
6236 something starting with __ and the normal name is an alias. */
6237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6238 choke me
6239 #else
6240 $ac_func();
6241 #endif
6243 ; return 0; }
6245 if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246 rm -rf conftest*
6247 eval "ac_cv_func_$ac_func=yes"
6248 else
6249 echo "configure: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6251 rm -rf conftest*
6252 eval "ac_cv_func_$ac_func=no"
6254 rm -f conftest*
6257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6258 echo "$ac_t""yes" 1>&6
6259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6260 cat >> confdefs.h <<EOF
6261 #define $ac_tr_func 1
6264 else
6265 echo "$ac_t""no" 1>&6
6267 done
6269 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6272 echo "configure:6273: checking for $ac_func" >&5
6273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6275 else
6276 cat > conftest.$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 /* System header to define __stub macros and hopefully few prototypes,
6280 which can conflict with char $ac_func(); below. */
6281 #include <assert.h>
6282 /* Override any gcc2 internal prototype to avoid an error. */
6283 /* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6285 char $ac_func();
6287 int main() {
6289 /* The GNU C library defines this for functions which it implements
6290 to always fail with ENOSYS. Some functions are actually named
6291 something starting with __ and the normal name is an alias. */
6292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6293 choke me
6294 #else
6295 $ac_func();
6296 #endif
6298 ; return 0; }
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6301 rm -rf conftest*
6302 eval "ac_cv_func_$ac_func=yes"
6303 else
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 rm -rf conftest*
6307 eval "ac_cv_func_$ac_func=no"
6309 rm -f conftest*
6312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6313 echo "$ac_t""yes" 1>&6
6314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6315 cat >> confdefs.h <<EOF
6316 #define $ac_tr_func 1
6319 else
6320 echo "$ac_t""no" 1>&6
6322 done
6324 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6327 echo "configure:6328: checking for $ac_func" >&5
6328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6329 echo $ac_n "(cached) $ac_c" 1>&6
6330 else
6331 cat > conftest.$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6334 /* System header to define __stub macros and hopefully few prototypes,
6335 which can conflict with char $ac_func(); below. */
6336 #include <assert.h>
6337 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6340 char $ac_func();
6342 int main() {
6344 /* The GNU C library defines this for functions which it implements
6345 to always fail with ENOSYS. Some functions are actually named
6346 something starting with __ and the normal name is an alias. */
6347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6348 choke me
6349 #else
6350 $ac_func();
6351 #endif
6353 ; return 0; }
6355 if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6356 rm -rf conftest*
6357 eval "ac_cv_func_$ac_func=yes"
6358 else
6359 echo "configure: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6361 rm -rf conftest*
6362 eval "ac_cv_func_$ac_func=no"
6364 rm -f conftest*
6367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6368 echo "$ac_t""yes" 1>&6
6369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6370 cat >> confdefs.h <<EOF
6371 #define $ac_tr_func 1
6374 else
6375 echo "$ac_t""no" 1>&6
6377 done
6379 for ac_func in _write __write _fork __fork
6381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6382 echo "configure:6383: checking for $ac_func" >&5
6383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6385 else
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6389 /* System header to define __stub macros and hopefully few prototypes,
6390 which can conflict with char $ac_func(); below. */
6391 #include <assert.h>
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6395 char $ac_func();
6397 int main() {
6399 /* The GNU C library defines this for functions which it implements
6400 to always fail with ENOSYS. Some functions are actually named
6401 something starting with __ and the normal name is an alias. */
6402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6403 choke me
6404 #else
6405 $ac_func();
6406 #endif
6408 ; return 0; }
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411 rm -rf conftest*
6412 eval "ac_cv_func_$ac_func=yes"
6413 else
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6416 rm -rf conftest*
6417 eval "ac_cv_func_$ac_func=no"
6419 rm -f conftest*
6422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6423 echo "$ac_t""yes" 1>&6
6424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6425 cat >> confdefs.h <<EOF
6426 #define $ac_tr_func 1
6429 else
6430 echo "$ac_t""no" 1>&6
6432 done
6434 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_func" >&5
6438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6440 else
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char $ac_func(); below. */
6446 #include <assert.h>
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6450 char $ac_func();
6452 int main() {
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6458 choke me
6459 #else
6460 $ac_func();
6461 #endif
6463 ; return 0; }
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 rm -rf conftest*
6467 eval "ac_cv_func_$ac_func=yes"
6468 else
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 eval "ac_cv_func_$ac_func=no"
6474 rm -f conftest*
6477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6480 cat >> confdefs.h <<EOF
6481 #define $ac_tr_func 1
6484 else
6485 echo "$ac_t""no" 1>&6
6487 done
6489 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6492 echo "configure:6493: checking for $ac_func" >&5
6493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6495 else
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* System header to define __stub macros and hopefully few prototypes,
6500 which can conflict with char $ac_func(); below. */
6501 #include <assert.h>
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 /* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6505 char $ac_func();
6507 int main() {
6509 /* The GNU C library defines this for functions which it implements
6510 to always fail with ENOSYS. Some functions are actually named
6511 something starting with __ and the normal name is an alias. */
6512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6513 choke me
6514 #else
6515 $ac_func();
6516 #endif
6518 ; return 0; }
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6521 rm -rf conftest*
6522 eval "ac_cv_func_$ac_func=yes"
6523 else
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6526 rm -rf conftest*
6527 eval "ac_cv_func_$ac_func=no"
6529 rm -f conftest*
6532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6533 echo "$ac_t""yes" 1>&6
6534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6535 cat >> confdefs.h <<EOF
6536 #define $ac_tr_func 1
6539 else
6540 echo "$ac_t""no" 1>&6
6542 done
6544 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_func" >&5
6548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6550 else
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 /* System header to define __stub macros and hopefully few prototypes,
6555 which can conflict with char $ac_func(); below. */
6556 #include <assert.h>
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6560 char $ac_func();
6562 int main() {
6564 /* The GNU C library defines this for functions which it implements
6565 to always fail with ENOSYS. Some functions are actually named
6566 something starting with __ and the normal name is an alias. */
6567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6568 choke me
6569 #else
6570 $ac_func();
6571 #endif
6573 ; return 0; }
6575 if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6576 rm -rf conftest*
6577 eval "ac_cv_func_$ac_func=yes"
6578 else
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6581 rm -rf conftest*
6582 eval "ac_cv_func_$ac_func=no"
6584 rm -f conftest*
6587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6588 echo "$ac_t""yes" 1>&6
6589 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6590 cat >> confdefs.h <<EOF
6591 #define $ac_tr_func 1
6594 else
6595 echo "$ac_t""no" 1>&6
6597 done
6599 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_func" >&5
6603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6605 else
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 /* System header to define __stub macros and hopefully few prototypes,
6610 which can conflict with char $ac_func(); below. */
6611 #include <assert.h>
6612 /* Override any gcc2 internal prototype to avoid an error. */
6613 /* We use char because int might match the return type of a gcc2
6614 builtin and then its argument prototype would still apply. */
6615 char $ac_func();
6617 int main() {
6619 /* The GNU C library defines this for functions which it implements
6620 to always fail with ENOSYS. Some functions are actually named
6621 something starting with __ and the normal name is an alias. */
6622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6623 choke me
6624 #else
6625 $ac_func();
6626 #endif
6628 ; return 0; }
6630 if { (eval echo configure:6631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6631 rm -rf conftest*
6632 eval "ac_cv_func_$ac_func=yes"
6633 else
6634 echo "configure: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6636 rm -rf conftest*
6637 eval "ac_cv_func_$ac_func=no"
6639 rm -f conftest*
6642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6643 echo "$ac_t""yes" 1>&6
6644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6645 cat >> confdefs.h <<EOF
6646 #define $ac_tr_func 1
6649 else
6650 echo "$ac_t""no" 1>&6
6652 done
6654 for ac_func in open64 _open64 __open64 creat64
6656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6657 echo "configure:6658: checking for $ac_func" >&5
6658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6660 else
6661 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 /* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char $ac_func(); below. */
6666 #include <assert.h>
6667 /* Override any gcc2 internal prototype to avoid an error. */
6668 /* We use char because int might match the return type of a gcc2
6669 builtin and then its argument prototype would still apply. */
6670 char $ac_func();
6672 int main() {
6674 /* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
6677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6678 choke me
6679 #else
6680 $ac_func();
6681 #endif
6683 ; return 0; }
6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6686 rm -rf conftest*
6687 eval "ac_cv_func_$ac_func=yes"
6688 else
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6691 rm -rf conftest*
6692 eval "ac_cv_func_$ac_func=no"
6694 rm -f conftest*
6697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6698 echo "$ac_t""yes" 1>&6
6699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6700 cat >> confdefs.h <<EOF
6701 #define $ac_tr_func 1
6704 else
6705 echo "$ac_t""no" 1>&6
6707 done
6711 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6714 if test x$ac_cv_func_stat64 = xno ; then
6715 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6716 echo "configure:6717: checking for stat64 in <sys/stat.h>" >&5
6717 cat > conftest.$ac_ext <<EOF
6718 #line 6719 "configure"
6719 #include "confdefs.h"
6721 #if defined(HAVE_UNISTD_H)
6722 #include <unistd.h>
6723 #endif
6724 #include <sys/stat.h>
6726 int main() {
6727 struct stat64 st64; exit(stat64(".",&st64));
6728 ; return 0; }
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 rm -rf conftest*
6732 ac_cv_func_stat64=yes
6733 else
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6737 rm -f conftest*
6738 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6739 if test x$ac_cv_func_stat64 = xyes ; then
6740 cat >> confdefs.h <<\EOF
6741 #define HAVE_STAT64 1
6747 if test x$ac_cv_func_lstat64 = xno ; then
6748 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6749 echo "configure:6750: checking for lstat64 in <sys/stat.h>" >&5
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6754 #if defined(HAVE_UNISTD_H)
6755 #include <unistd.h>
6756 #endif
6757 #include <sys/stat.h>
6759 int main() {
6760 struct stat64 st64; exit(lstat64(".",&st64));
6761 ; return 0; }
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6764 rm -rf conftest*
6765 ac_cv_func_lstat64=yes
6766 else
6767 echo "configure: failed program was:" >&5
6768 cat conftest.$ac_ext >&5
6770 rm -f conftest*
6771 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6772 if test x$ac_cv_func_lstat64 = xyes ; then
6773 cat >> confdefs.h <<\EOF
6774 #define HAVE_LSTAT64 1
6780 if test x$ac_cv_func_fstat64 = xno ; then
6781 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6782 echo "configure:6783: checking for fstat64 in <sys/stat.h>" >&5
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6787 #if defined(HAVE_UNISTD_H)
6788 #include <unistd.h>
6789 #endif
6790 #include <sys/stat.h>
6792 int main() {
6793 struct stat64 st64; exit(fstat64(0,&st64));
6794 ; return 0; }
6796 if { (eval echo configure:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6797 rm -rf conftest*
6798 ac_cv_func_fstat64=yes
6799 else
6800 echo "configure: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 rm -f conftest*
6804 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6805 if test x$ac_cv_func_fstat64 = xyes ; then
6806 cat >> confdefs.h <<\EOF
6807 #define HAVE_FSTAT64 1
6814 # If no strcasecmp, check for it in some known places
6815 # It is in -lresolv on ReliantUNIX and UnixWare
6816 # -lresolve *must* follow -lnsl for name resolution to work properly
6819 if test x$ac_cv_func_strcasecmp = xno ; then
6820 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6821 echo "configure:6822: checking for strcasecmp in -lresolv" >&5
6822 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6825 else
6826 ac_save_LIBS="$LIBS"
6827 LIBS="-lresolv $LIBS"
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6834 char strcasecmp();
6836 int main() {
6837 strcasecmp()
6838 ; return 0; }
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6841 rm -rf conftest*
6842 eval "ac_cv_lib_$ac_lib_var=yes"
6843 else
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 rm -rf conftest*
6847 eval "ac_cv_lib_$ac_lib_var=no"
6849 rm -f conftest*
6850 LIBS="$ac_save_LIBS"
6853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6854 echo "$ac_t""yes" 1>&6
6855 LIBS="$LIBS -lresolv"
6856 cat >> confdefs.h <<\EOF
6857 #define HAVE_STRCASECMP 1
6860 else
6861 echo "$ac_t""no" 1>&6
6867 # Check for the functions putprpwnam, set_auth_parameters,
6868 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6869 # Needed for OSF1 and HPUX.
6872 case "$LIBS" in
6873 *-lsecurity*) for ac_func in putprpwnam
6875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6876 echo "configure:6877: checking for $ac_func" >&5
6877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6879 else
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char $ac_func(); below. */
6885 #include <assert.h>
6886 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6889 char $ac_func();
6891 int main() {
6893 /* The GNU C library defines this for functions which it implements
6894 to always fail with ENOSYS. Some functions are actually named
6895 something starting with __ and the normal name is an alias. */
6896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6897 choke me
6898 #else
6899 $ac_func();
6900 #endif
6902 ; return 0; }
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6905 rm -rf conftest*
6906 eval "ac_cv_func_$ac_func=yes"
6907 else
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6910 rm -rf conftest*
6911 eval "ac_cv_func_$ac_func=no"
6913 rm -f conftest*
6916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6917 echo "$ac_t""yes" 1>&6
6918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6919 cat >> confdefs.h <<EOF
6920 #define $ac_tr_func 1
6923 else
6924 echo "$ac_t""no" 1>&6
6926 done
6928 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6929 echo "configure:6930: checking for putprpwnam in -lsecurity" >&5
6930 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6932 echo $ac_n "(cached) $ac_c" 1>&6
6933 else
6934 ac_save_LIBS="$LIBS"
6935 LIBS="-lsecurity $LIBS"
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6942 char putprpwnam();
6944 int main() {
6945 putprpwnam()
6946 ; return 0; }
6948 if { (eval echo configure:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6949 rm -rf conftest*
6950 eval "ac_cv_lib_$ac_lib_var=yes"
6951 else
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6954 rm -rf conftest*
6955 eval "ac_cv_lib_$ac_lib_var=no"
6957 rm -f conftest*
6958 LIBS="$ac_save_LIBS"
6961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6965 cat >> confdefs.h <<EOF
6966 #define $ac_tr_lib 1
6969 LIBS="-lsecurity $LIBS"
6971 else
6972 echo "$ac_t""no" 1>&6
6975 for ac_func in putprpwnam
6977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6978 echo "configure:6979: checking for $ac_func" >&5
6979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6981 else
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6985 /* System header to define __stub macros and hopefully few prototypes,
6986 which can conflict with char $ac_func(); below. */
6987 #include <assert.h>
6988 /* Override any gcc2 internal prototype to avoid an error. */
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6991 char $ac_func();
6993 int main() {
6995 /* The GNU C library defines this for functions which it implements
6996 to always fail with ENOSYS. Some functions are actually named
6997 something starting with __ and the normal name is an alias. */
6998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6999 choke me
7000 #else
7001 $ac_func();
7002 #endif
7004 ; return 0; }
7006 if { (eval echo configure:7007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7007 rm -rf conftest*
7008 eval "ac_cv_func_$ac_func=yes"
7009 else
7010 echo "configure: failed program was:" >&5
7011 cat conftest.$ac_ext >&5
7012 rm -rf conftest*
7013 eval "ac_cv_func_$ac_func=no"
7015 rm -f conftest*
7018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7019 echo "$ac_t""yes" 1>&6
7020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7021 cat >> confdefs.h <<EOF
7022 #define $ac_tr_func 1
7025 else
7026 echo "$ac_t""no" 1>&6
7028 done
7031 esac
7033 case "$LIBS" in
7034 *-lsec*) for ac_func in putprpwnam
7036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7037 echo "configure:7038: checking for $ac_func" >&5
7038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6
7040 else
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 /* System header to define __stub macros and hopefully few prototypes,
7045 which can conflict with char $ac_func(); below. */
7046 #include <assert.h>
7047 /* Override any gcc2 internal prototype to avoid an error. */
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7050 char $ac_func();
7052 int main() {
7054 /* The GNU C library defines this for functions which it implements
7055 to always fail with ENOSYS. Some functions are actually named
7056 something starting with __ and the normal name is an alias. */
7057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7058 choke me
7059 #else
7060 $ac_func();
7061 #endif
7063 ; return 0; }
7065 if { (eval echo configure:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7066 rm -rf conftest*
7067 eval "ac_cv_func_$ac_func=yes"
7068 else
7069 echo "configure: failed program was:" >&5
7070 cat conftest.$ac_ext >&5
7071 rm -rf conftest*
7072 eval "ac_cv_func_$ac_func=no"
7074 rm -f conftest*
7077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7078 echo "$ac_t""yes" 1>&6
7079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7080 cat >> confdefs.h <<EOF
7081 #define $ac_tr_func 1
7084 else
7085 echo "$ac_t""no" 1>&6
7087 done
7089 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7090 echo "configure:7091: checking for putprpwnam in -lsec" >&5
7091 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7093 echo $ac_n "(cached) $ac_c" 1>&6
7094 else
7095 ac_save_LIBS="$LIBS"
7096 LIBS="-lsec $LIBS"
7097 cat > conftest.$ac_ext <<EOF
7098 #line 7099 "configure"
7099 #include "confdefs.h"
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7103 char putprpwnam();
7105 int main() {
7106 putprpwnam()
7107 ; return 0; }
7109 if { (eval echo configure:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7110 rm -rf conftest*
7111 eval "ac_cv_lib_$ac_lib_var=yes"
7112 else
7113 echo "configure: failed program was:" >&5
7114 cat conftest.$ac_ext >&5
7115 rm -rf conftest*
7116 eval "ac_cv_lib_$ac_lib_var=no"
7118 rm -f conftest*
7119 LIBS="$ac_save_LIBS"
7122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7123 echo "$ac_t""yes" 1>&6
7124 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7126 cat >> confdefs.h <<EOF
7127 #define $ac_tr_lib 1
7130 LIBS="-lsec $LIBS"
7132 else
7133 echo "$ac_t""no" 1>&6
7136 for ac_func in putprpwnam
7138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7139 echo "configure:7140: checking for $ac_func" >&5
7140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7142 else
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 /* System header to define __stub macros and hopefully few prototypes,
7147 which can conflict with char $ac_func(); below. */
7148 #include <assert.h>
7149 /* Override any gcc2 internal prototype to avoid an error. */
7150 /* We use char because int might match the return type of a gcc2
7151 builtin and then its argument prototype would still apply. */
7152 char $ac_func();
7154 int main() {
7156 /* The GNU C library defines this for functions which it implements
7157 to always fail with ENOSYS. Some functions are actually named
7158 something starting with __ and the normal name is an alias. */
7159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7160 choke me
7161 #else
7162 $ac_func();
7163 #endif
7165 ; return 0; }
7167 if { (eval echo configure:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7168 rm -rf conftest*
7169 eval "ac_cv_func_$ac_func=yes"
7170 else
7171 echo "configure: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 rm -rf conftest*
7174 eval "ac_cv_func_$ac_func=no"
7176 rm -f conftest*
7179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7180 echo "$ac_t""yes" 1>&6
7181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7182 cat >> confdefs.h <<EOF
7183 #define $ac_tr_func 1
7186 else
7187 echo "$ac_t""no" 1>&6
7189 done
7192 esac
7195 case "$LIBS" in
7196 *-lsecurity*) for ac_func in set_auth_parameters
7198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7199 echo "configure:7200: checking for $ac_func" >&5
7200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7202 else
7203 cat > conftest.$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* System header to define __stub macros and hopefully few prototypes,
7207 which can conflict with char $ac_func(); below. */
7208 #include <assert.h>
7209 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7212 char $ac_func();
7214 int main() {
7216 /* The GNU C library defines this for functions which it implements
7217 to always fail with ENOSYS. Some functions are actually named
7218 something starting with __ and the normal name is an alias. */
7219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7220 choke me
7221 #else
7222 $ac_func();
7223 #endif
7225 ; return 0; }
7227 if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7228 rm -rf conftest*
7229 eval "ac_cv_func_$ac_func=yes"
7230 else
7231 echo "configure: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7233 rm -rf conftest*
7234 eval "ac_cv_func_$ac_func=no"
7236 rm -f conftest*
7239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7240 echo "$ac_t""yes" 1>&6
7241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7242 cat >> confdefs.h <<EOF
7243 #define $ac_tr_func 1
7246 else
7247 echo "$ac_t""no" 1>&6
7249 done
7251 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7252 echo "configure:7253: checking for set_auth_parameters in -lsecurity" >&5
7253 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7256 else
7257 ac_save_LIBS="$LIBS"
7258 LIBS="-lsecurity $LIBS"
7259 cat > conftest.$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7262 /* Override any gcc2 internal prototype to avoid an error. */
7263 /* We use char because int might match the return type of a gcc2
7264 builtin and then its argument prototype would still apply. */
7265 char set_auth_parameters();
7267 int main() {
7268 set_auth_parameters()
7269 ; return 0; }
7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7272 rm -rf conftest*
7273 eval "ac_cv_lib_$ac_lib_var=yes"
7274 else
7275 echo "configure: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7277 rm -rf conftest*
7278 eval "ac_cv_lib_$ac_lib_var=no"
7280 rm -f conftest*
7281 LIBS="$ac_save_LIBS"
7284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7288 cat >> confdefs.h <<EOF
7289 #define $ac_tr_lib 1
7292 LIBS="-lsecurity $LIBS"
7294 else
7295 echo "$ac_t""no" 1>&6
7298 for ac_func in set_auth_parameters
7300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7301 echo "configure:7302: checking for $ac_func" >&5
7302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7303 echo $ac_n "(cached) $ac_c" 1>&6
7304 else
7305 cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 /* System header to define __stub macros and hopefully few prototypes,
7309 which can conflict with char $ac_func(); below. */
7310 #include <assert.h>
7311 /* Override any gcc2 internal prototype to avoid an error. */
7312 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */
7314 char $ac_func();
7316 int main() {
7318 /* The GNU C library defines this for functions which it implements
7319 to always fail with ENOSYS. Some functions are actually named
7320 something starting with __ and the normal name is an alias. */
7321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7322 choke me
7323 #else
7324 $ac_func();
7325 #endif
7327 ; return 0; }
7329 if { (eval echo configure:7330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7330 rm -rf conftest*
7331 eval "ac_cv_func_$ac_func=yes"
7332 else
7333 echo "configure: failed program was:" >&5
7334 cat conftest.$ac_ext >&5
7335 rm -rf conftest*
7336 eval "ac_cv_func_$ac_func=no"
7338 rm -f conftest*
7341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7342 echo "$ac_t""yes" 1>&6
7343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7344 cat >> confdefs.h <<EOF
7345 #define $ac_tr_func 1
7348 else
7349 echo "$ac_t""no" 1>&6
7351 done
7354 esac
7356 case "$LIBS" in
7357 *-lsec*) for ac_func in set_auth_parameters
7359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7360 echo "configure:7361: checking for $ac_func" >&5
7361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7363 else
7364 cat > conftest.$ac_ext <<EOF
7365 #line 7366 "configure"
7366 #include "confdefs.h"
7367 /* System header to define __stub macros and hopefully few prototypes,
7368 which can conflict with char $ac_func(); below. */
7369 #include <assert.h>
7370 /* Override any gcc2 internal prototype to avoid an error. */
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7373 char $ac_func();
7375 int main() {
7377 /* The GNU C library defines this for functions which it implements
7378 to always fail with ENOSYS. Some functions are actually named
7379 something starting with __ and the normal name is an alias. */
7380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7381 choke me
7382 #else
7383 $ac_func();
7384 #endif
7386 ; return 0; }
7388 if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7389 rm -rf conftest*
7390 eval "ac_cv_func_$ac_func=yes"
7391 else
7392 echo "configure: failed program was:" >&5
7393 cat conftest.$ac_ext >&5
7394 rm -rf conftest*
7395 eval "ac_cv_func_$ac_func=no"
7397 rm -f conftest*
7400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7401 echo "$ac_t""yes" 1>&6
7402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7403 cat >> confdefs.h <<EOF
7404 #define $ac_tr_func 1
7407 else
7408 echo "$ac_t""no" 1>&6
7410 done
7412 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7413 echo "configure:7414: checking for set_auth_parameters in -lsec" >&5
7414 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7417 else
7418 ac_save_LIBS="$LIBS"
7419 LIBS="-lsec $LIBS"
7420 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure"
7422 #include "confdefs.h"
7423 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7426 char set_auth_parameters();
7428 int main() {
7429 set_auth_parameters()
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_lib_$ac_lib_var=yes"
7435 else
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 rm -rf conftest*
7439 eval "ac_cv_lib_$ac_lib_var=no"
7441 rm -f conftest*
7442 LIBS="$ac_save_LIBS"
7445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7448 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7449 cat >> confdefs.h <<EOF
7450 #define $ac_tr_lib 1
7453 LIBS="-lsec $LIBS"
7455 else
7456 echo "$ac_t""no" 1>&6
7459 for ac_func in set_auth_parameters
7461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7462 echo "configure:7463: checking for $ac_func" >&5
7463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7465 else
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 /* System header to define __stub macros and hopefully few prototypes,
7470 which can conflict with char $ac_func(); below. */
7471 #include <assert.h>
7472 /* Override any gcc2 internal prototype to avoid an error. */
7473 /* We use char because int might match the return type of a gcc2
7474 builtin and then its argument prototype would still apply. */
7475 char $ac_func();
7477 int main() {
7479 /* The GNU C library defines this for functions which it implements
7480 to always fail with ENOSYS. Some functions are actually named
7481 something starting with __ and the normal name is an alias. */
7482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7483 choke me
7484 #else
7485 $ac_func();
7486 #endif
7488 ; return 0; }
7490 if { (eval echo configure:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7491 rm -rf conftest*
7492 eval "ac_cv_func_$ac_func=yes"
7493 else
7494 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&5
7496 rm -rf conftest*
7497 eval "ac_cv_func_$ac_func=no"
7499 rm -f conftest*
7502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7503 echo "$ac_t""yes" 1>&6
7504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7505 cat >> confdefs.h <<EOF
7506 #define $ac_tr_func 1
7509 else
7510 echo "$ac_t""no" 1>&6
7512 done
7515 esac
7518 # UnixWare 7.x has its getspnam in -lgen
7519 case "$LIBS" in
7520 *-lgen*) for ac_func in getspnam
7522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7523 echo "configure:7524: checking for $ac_func" >&5
7524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7525 echo $ac_n "(cached) $ac_c" 1>&6
7526 else
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* System header to define __stub macros and hopefully few prototypes,
7531 which can conflict with char $ac_func(); below. */
7532 #include <assert.h>
7533 /* Override any gcc2 internal prototype to avoid an error. */
7534 /* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7536 char $ac_func();
7538 int main() {
7540 /* The GNU C library defines this for functions which it implements
7541 to always fail with ENOSYS. Some functions are actually named
7542 something starting with __ and the normal name is an alias. */
7543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7544 choke me
7545 #else
7546 $ac_func();
7547 #endif
7549 ; return 0; }
7551 if { (eval echo configure:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7552 rm -rf conftest*
7553 eval "ac_cv_func_$ac_func=yes"
7554 else
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7557 rm -rf conftest*
7558 eval "ac_cv_func_$ac_func=no"
7560 rm -f conftest*
7563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7564 echo "$ac_t""yes" 1>&6
7565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7566 cat >> confdefs.h <<EOF
7567 #define $ac_tr_func 1
7570 else
7571 echo "$ac_t""no" 1>&6
7573 done
7575 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7576 echo "configure:7577: checking for getspnam in -lgen" >&5
7577 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7580 else
7581 ac_save_LIBS="$LIBS"
7582 LIBS="-lgen $LIBS"
7583 cat > conftest.$ac_ext <<EOF
7584 #line 7585 "configure"
7585 #include "confdefs.h"
7586 /* Override any gcc2 internal prototype to avoid an error. */
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7589 char getspnam();
7591 int main() {
7592 getspnam()
7593 ; return 0; }
7595 if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7596 rm -rf conftest*
7597 eval "ac_cv_lib_$ac_lib_var=yes"
7598 else
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 rm -rf conftest*
7602 eval "ac_cv_lib_$ac_lib_var=no"
7604 rm -f conftest*
7605 LIBS="$ac_save_LIBS"
7608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7611 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7612 cat >> confdefs.h <<EOF
7613 #define $ac_tr_lib 1
7616 LIBS="-lgen $LIBS"
7618 else
7619 echo "$ac_t""no" 1>&6
7622 for ac_func in getspnam
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
7678 esac
7681 case "$LIBS" in
7682 *-lsecurity*) for ac_func in getspnam
7684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7685 echo "configure:7686: checking for $ac_func" >&5
7686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7688 else
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* System header to define __stub macros and hopefully few prototypes,
7693 which can conflict with char $ac_func(); below. */
7694 #include <assert.h>
7695 /* Override any gcc2 internal prototype to avoid an error. */
7696 /* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7698 char $ac_func();
7700 int main() {
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7706 choke me
7707 #else
7708 $ac_func();
7709 #endif
7711 ; return 0; }
7713 if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7714 rm -rf conftest*
7715 eval "ac_cv_func_$ac_func=yes"
7716 else
7717 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7719 rm -rf conftest*
7720 eval "ac_cv_func_$ac_func=no"
7722 rm -f conftest*
7725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7726 echo "$ac_t""yes" 1>&6
7727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7728 cat >> confdefs.h <<EOF
7729 #define $ac_tr_func 1
7732 else
7733 echo "$ac_t""no" 1>&6
7735 done
7737 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7738 echo "configure:7739: checking for getspnam in -lsecurity" >&5
7739 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7742 else
7743 ac_save_LIBS="$LIBS"
7744 LIBS="-lsecurity $LIBS"
7745 cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751 char getspnam();
7753 int main() {
7754 getspnam()
7755 ; return 0; }
7757 if { (eval echo configure:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7758 rm -rf conftest*
7759 eval "ac_cv_lib_$ac_lib_var=yes"
7760 else
7761 echo "configure: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7763 rm -rf conftest*
7764 eval "ac_cv_lib_$ac_lib_var=no"
7766 rm -f conftest*
7767 LIBS="$ac_save_LIBS"
7770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7771 echo "$ac_t""yes" 1>&6
7772 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7774 cat >> confdefs.h <<EOF
7775 #define $ac_tr_lib 1
7778 LIBS="-lsecurity $LIBS"
7780 else
7781 echo "$ac_t""no" 1>&6
7784 for ac_func in getspnam
7786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7787 echo "configure:7788: checking for $ac_func" >&5
7788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7790 else
7791 cat > conftest.$ac_ext <<EOF
7792 #line 7793 "configure"
7793 #include "confdefs.h"
7794 /* System header to define __stub macros and hopefully few prototypes,
7795 which can conflict with char $ac_func(); below. */
7796 #include <assert.h>
7797 /* Override any gcc2 internal prototype to avoid an error. */
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7800 char $ac_func();
7802 int main() {
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7808 choke me
7809 #else
7810 $ac_func();
7811 #endif
7813 ; return 0; }
7815 if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7816 rm -rf conftest*
7817 eval "ac_cv_func_$ac_func=yes"
7818 else
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7821 rm -rf conftest*
7822 eval "ac_cv_func_$ac_func=no"
7824 rm -f conftest*
7827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7830 cat >> confdefs.h <<EOF
7831 #define $ac_tr_func 1
7834 else
7835 echo "$ac_t""no" 1>&6
7837 done
7840 esac
7842 case "$LIBS" in
7843 *-lsec*) for ac_func in getspnam
7845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7846 echo "configure:7847: checking for $ac_func" >&5
7847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7848 echo $ac_n "(cached) $ac_c" 1>&6
7849 else
7850 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 /* System header to define __stub macros and hopefully few prototypes,
7854 which can conflict with char $ac_func(); below. */
7855 #include <assert.h>
7856 /* Override any gcc2 internal prototype to avoid an error. */
7857 /* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7859 char $ac_func();
7861 int main() {
7863 /* The GNU C library defines this for functions which it implements
7864 to always fail with ENOSYS. Some functions are actually named
7865 something starting with __ and the normal name is an alias. */
7866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7867 choke me
7868 #else
7869 $ac_func();
7870 #endif
7872 ; return 0; }
7874 if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7875 rm -rf conftest*
7876 eval "ac_cv_func_$ac_func=yes"
7877 else
7878 echo "configure: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 rm -rf conftest*
7881 eval "ac_cv_func_$ac_func=no"
7883 rm -f conftest*
7886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7887 echo "$ac_t""yes" 1>&6
7888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7889 cat >> confdefs.h <<EOF
7890 #define $ac_tr_func 1
7893 else
7894 echo "$ac_t""no" 1>&6
7896 done
7898 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7899 echo "configure:7900: checking for getspnam in -lsec" >&5
7900 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7903 else
7904 ac_save_LIBS="$LIBS"
7905 LIBS="-lsec $LIBS"
7906 cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 /* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7912 char getspnam();
7914 int main() {
7915 getspnam()
7916 ; return 0; }
7918 if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7919 rm -rf conftest*
7920 eval "ac_cv_lib_$ac_lib_var=yes"
7921 else
7922 echo "configure: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7924 rm -rf conftest*
7925 eval "ac_cv_lib_$ac_lib_var=no"
7927 rm -f conftest*
7928 LIBS="$ac_save_LIBS"
7931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7932 echo "$ac_t""yes" 1>&6
7933 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7934 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7935 cat >> confdefs.h <<EOF
7936 #define $ac_tr_lib 1
7939 LIBS="-lsec $LIBS"
7941 else
7942 echo "$ac_t""no" 1>&6
7945 for ac_func in getspnam
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
8001 esac
8004 case "$LIBS" in
8005 *-lsecurity*) for ac_func in bigcrypt
8007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8008 echo "configure:8009: checking for $ac_func" >&5
8009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8011 else
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* System header to define __stub macros and hopefully few prototypes,
8016 which can conflict with char $ac_func(); below. */
8017 #include <assert.h>
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8021 char $ac_func();
8023 int main() {
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8029 choke me
8030 #else
8031 $ac_func();
8032 #endif
8034 ; return 0; }
8036 if { (eval echo configure:8037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8037 rm -rf conftest*
8038 eval "ac_cv_func_$ac_func=yes"
8039 else
8040 echo "configure: failed program was:" >&5
8041 cat conftest.$ac_ext >&5
8042 rm -rf conftest*
8043 eval "ac_cv_func_$ac_func=no"
8045 rm -f conftest*
8048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8051 cat >> confdefs.h <<EOF
8052 #define $ac_tr_func 1
8055 else
8056 echo "$ac_t""no" 1>&6
8058 done
8060 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8061 echo "configure:8062: checking for bigcrypt in -lsecurity" >&5
8062 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8065 else
8066 ac_save_LIBS="$LIBS"
8067 LIBS="-lsecurity $LIBS"
8068 cat > conftest.$ac_ext <<EOF
8069 #line 8070 "configure"
8070 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074 char bigcrypt();
8076 int main() {
8077 bigcrypt()
8078 ; return 0; }
8080 if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081 rm -rf conftest*
8082 eval "ac_cv_lib_$ac_lib_var=yes"
8083 else
8084 echo "configure: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 rm -rf conftest*
8087 eval "ac_cv_lib_$ac_lib_var=no"
8089 rm -f conftest*
8090 LIBS="$ac_save_LIBS"
8093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8097 cat >> confdefs.h <<EOF
8098 #define $ac_tr_lib 1
8101 LIBS="-lsecurity $LIBS"
8103 else
8104 echo "$ac_t""no" 1>&6
8107 for ac_func in bigcrypt
8109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110 echo "configure:8111: checking for $ac_func" >&5
8111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8113 else
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 /* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char $ac_func(); below. */
8119 #include <assert.h>
8120 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123 char $ac_func();
8125 int main() {
8127 /* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8131 choke me
8132 #else
8133 $ac_func();
8134 #endif
8136 ; return 0; }
8138 if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 rm -rf conftest*
8140 eval "ac_cv_func_$ac_func=yes"
8141 else
8142 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 rm -rf conftest*
8145 eval "ac_cv_func_$ac_func=no"
8147 rm -f conftest*
8150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8153 cat >> confdefs.h <<EOF
8154 #define $ac_tr_func 1
8157 else
8158 echo "$ac_t""no" 1>&6
8160 done
8163 esac
8165 case "$LIBS" in
8166 *-lsec*) for ac_func in bigcrypt
8168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8169 echo "configure:8170: checking for $ac_func" >&5
8170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8172 else
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 /* System header to define __stub macros and hopefully few prototypes,
8177 which can conflict with char $ac_func(); below. */
8178 #include <assert.h>
8179 /* Override any gcc2 internal prototype to avoid an error. */
8180 /* We use char because int might match the return type of a gcc2
8181 builtin and then its argument prototype would still apply. */
8182 char $ac_func();
8184 int main() {
8186 /* The GNU C library defines this for functions which it implements
8187 to always fail with ENOSYS. Some functions are actually named
8188 something starting with __ and the normal name is an alias. */
8189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8190 choke me
8191 #else
8192 $ac_func();
8193 #endif
8195 ; return 0; }
8197 if { (eval echo configure:8198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8198 rm -rf conftest*
8199 eval "ac_cv_func_$ac_func=yes"
8200 else
8201 echo "configure: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8203 rm -rf conftest*
8204 eval "ac_cv_func_$ac_func=no"
8206 rm -f conftest*
8209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8210 echo "$ac_t""yes" 1>&6
8211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8212 cat >> confdefs.h <<EOF
8213 #define $ac_tr_func 1
8216 else
8217 echo "$ac_t""no" 1>&6
8219 done
8221 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8222 echo "configure:8223: checking for bigcrypt in -lsec" >&5
8223 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8226 else
8227 ac_save_LIBS="$LIBS"
8228 LIBS="-lsec $LIBS"
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8235 char bigcrypt();
8237 int main() {
8238 bigcrypt()
8239 ; return 0; }
8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 rm -rf conftest*
8243 eval "ac_cv_lib_$ac_lib_var=yes"
8244 else
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8247 rm -rf conftest*
8248 eval "ac_cv_lib_$ac_lib_var=no"
8250 rm -f conftest*
8251 LIBS="$ac_save_LIBS"
8254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8255 echo "$ac_t""yes" 1>&6
8256 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8258 cat >> confdefs.h <<EOF
8259 #define $ac_tr_lib 1
8262 LIBS="-lsec $LIBS"
8264 else
8265 echo "$ac_t""no" 1>&6
8268 for ac_func in bigcrypt
8270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8271 echo "configure:8272: checking for $ac_func" >&5
8272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8274 else
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 /* System header to define __stub macros and hopefully few prototypes,
8279 which can conflict with char $ac_func(); below. */
8280 #include <assert.h>
8281 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284 char $ac_func();
8286 int main() {
8288 /* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
8291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8292 choke me
8293 #else
8294 $ac_func();
8295 #endif
8297 ; return 0; }
8299 if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8300 rm -rf conftest*
8301 eval "ac_cv_func_$ac_func=yes"
8302 else
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8305 rm -rf conftest*
8306 eval "ac_cv_func_$ac_func=no"
8308 rm -f conftest*
8311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8312 echo "$ac_t""yes" 1>&6
8313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8314 cat >> confdefs.h <<EOF
8315 #define $ac_tr_func 1
8318 else
8319 echo "$ac_t""no" 1>&6
8321 done
8324 esac
8327 case "$LIBS" in
8328 *-lsecurity*) for ac_func in getprpwnam
8330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8331 echo "configure:8332: checking for $ac_func" >&5
8332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8334 else
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* System header to define __stub macros and hopefully few prototypes,
8339 which can conflict with char $ac_func(); below. */
8340 #include <assert.h>
8341 /* Override any gcc2 internal prototype to avoid an error. */
8342 /* We use char because int might match the return type of a gcc2
8343 builtin and then its argument prototype would still apply. */
8344 char $ac_func();
8346 int main() {
8348 /* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8352 choke me
8353 #else
8354 $ac_func();
8355 #endif
8357 ; return 0; }
8359 if { (eval echo configure:8360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8360 rm -rf conftest*
8361 eval "ac_cv_func_$ac_func=yes"
8362 else
8363 echo "configure: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8365 rm -rf conftest*
8366 eval "ac_cv_func_$ac_func=no"
8368 rm -f conftest*
8371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8374 cat >> confdefs.h <<EOF
8375 #define $ac_tr_func 1
8378 else
8379 echo "$ac_t""no" 1>&6
8381 done
8383 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8384 echo "configure:8385: checking for getprpwnam in -lsecurity" >&5
8385 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8388 else
8389 ac_save_LIBS="$LIBS"
8390 LIBS="-lsecurity $LIBS"
8391 cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394 /* Override any gcc2 internal prototype to avoid an error. */
8395 /* We use char because int might match the return type of a gcc2
8396 builtin and then its argument prototype would still apply. */
8397 char getprpwnam();
8399 int main() {
8400 getprpwnam()
8401 ; return 0; }
8403 if { (eval echo configure:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8404 rm -rf conftest*
8405 eval "ac_cv_lib_$ac_lib_var=yes"
8406 else
8407 echo "configure: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 rm -rf conftest*
8410 eval "ac_cv_lib_$ac_lib_var=no"
8412 rm -f conftest*
8413 LIBS="$ac_save_LIBS"
8416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8420 cat >> confdefs.h <<EOF
8421 #define $ac_tr_lib 1
8424 LIBS="-lsecurity $LIBS"
8426 else
8427 echo "$ac_t""no" 1>&6
8430 for ac_func in getprpwnam
8432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8433 echo "configure:8434: checking for $ac_func" >&5
8434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8436 else
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char $ac_func(); below. */
8442 #include <assert.h>
8443 /* Override any gcc2 internal prototype to avoid an error. */
8444 /* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446 char $ac_func();
8448 int main() {
8450 /* The GNU C library defines this for functions which it implements
8451 to always fail with ENOSYS. Some functions are actually named
8452 something starting with __ and the normal name is an alias. */
8453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8454 choke me
8455 #else
8456 $ac_func();
8457 #endif
8459 ; return 0; }
8461 if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8462 rm -rf conftest*
8463 eval "ac_cv_func_$ac_func=yes"
8464 else
8465 echo "configure: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8467 rm -rf conftest*
8468 eval "ac_cv_func_$ac_func=no"
8470 rm -f conftest*
8473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8476 cat >> confdefs.h <<EOF
8477 #define $ac_tr_func 1
8480 else
8481 echo "$ac_t""no" 1>&6
8483 done
8486 esac
8488 case "$LIBS" in
8489 *-lsec*) for ac_func in getprpwnam
8491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8492 echo "configure:8493: checking for $ac_func" >&5
8493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8495 else
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 /* System header to define __stub macros and hopefully few prototypes,
8500 which can conflict with char $ac_func(); below. */
8501 #include <assert.h>
8502 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8505 char $ac_func();
8507 int main() {
8509 /* The GNU C library defines this for functions which it implements
8510 to always fail with ENOSYS. Some functions are actually named
8511 something starting with __ and the normal name is an alias. */
8512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8513 choke me
8514 #else
8515 $ac_func();
8516 #endif
8518 ; return 0; }
8520 if { (eval echo configure:8521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8521 rm -rf conftest*
8522 eval "ac_cv_func_$ac_func=yes"
8523 else
8524 echo "configure: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8526 rm -rf conftest*
8527 eval "ac_cv_func_$ac_func=no"
8529 rm -f conftest*
8532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8533 echo "$ac_t""yes" 1>&6
8534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8535 cat >> confdefs.h <<EOF
8536 #define $ac_tr_func 1
8539 else
8540 echo "$ac_t""no" 1>&6
8542 done
8544 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8545 echo "configure:8546: checking for getprpwnam in -lsec" >&5
8546 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8548 echo $ac_n "(cached) $ac_c" 1>&6
8549 else
8550 ac_save_LIBS="$LIBS"
8551 LIBS="-lsec $LIBS"
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8555 /* Override any gcc2 internal prototype to avoid an error. */
8556 /* We use char because int might match the return type of a gcc2
8557 builtin and then its argument prototype would still apply. */
8558 char getprpwnam();
8560 int main() {
8561 getprpwnam()
8562 ; return 0; }
8564 if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8565 rm -rf conftest*
8566 eval "ac_cv_lib_$ac_lib_var=yes"
8567 else
8568 echo "configure: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 rm -rf conftest*
8571 eval "ac_cv_lib_$ac_lib_var=no"
8573 rm -f conftest*
8574 LIBS="$ac_save_LIBS"
8577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8578 echo "$ac_t""yes" 1>&6
8579 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8580 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8581 cat >> confdefs.h <<EOF
8582 #define $ac_tr_lib 1
8585 LIBS="-lsec $LIBS"
8587 else
8588 echo "$ac_t""no" 1>&6
8591 for ac_func in getprpwnam
8593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8594 echo "configure:8595: checking for $ac_func" >&5
8595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8596 echo $ac_n "(cached) $ac_c" 1>&6
8597 else
8598 cat > conftest.$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8601 /* System header to define __stub macros and hopefully few prototypes,
8602 which can conflict with char $ac_func(); below. */
8603 #include <assert.h>
8604 /* Override any gcc2 internal prototype to avoid an error. */
8605 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8607 char $ac_func();
8609 int main() {
8611 /* The GNU C library defines this for functions which it implements
8612 to always fail with ENOSYS. Some functions are actually named
8613 something starting with __ and the normal name is an alias. */
8614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8615 choke me
8616 #else
8617 $ac_func();
8618 #endif
8620 ; return 0; }
8622 if { (eval echo configure:8623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8623 rm -rf conftest*
8624 eval "ac_cv_func_$ac_func=yes"
8625 else
8626 echo "configure: failed program was:" >&5
8627 cat conftest.$ac_ext >&5
8628 rm -rf conftest*
8629 eval "ac_cv_func_$ac_func=no"
8631 rm -f conftest*
8634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8635 echo "$ac_t""yes" 1>&6
8636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8637 cat >> confdefs.h <<EOF
8638 #define $ac_tr_func 1
8641 else
8642 echo "$ac_t""no" 1>&6
8644 done
8647 esac
8650 # this bit needs to be modified for each OS that is suported by
8651 # smbwrapper. You need to specify how to created a shared library and
8652 # how to compile C code to produce PIC object files
8654 # these are the defaults, good for lots of systems
8655 HOST_OS="$host_os"
8656 LDSHFLAGS="-shared"
8657 SONAMEFLAG="#"
8658 SHLD="\${CC}"
8659 PICFLAG=""
8660 PICSUFFIX="po.o"
8661 SHLIBEXT="so"
8662 # Assume non-shared by default and override below
8663 BLDSHARED="false"
8664 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8665 echo "configure:8666: checking ability to build shared libraries" >&5
8667 # and these are for particular systems
8668 case "$host_os" in
8669 *linux*) cat >> confdefs.h <<\EOF
8670 #define LINUX 1
8673 BLDSHARED="true"
8674 LDSHFLAGS="-shared"
8675 DYNEXP="-Wl,--export-dynamic"
8676 PICFLAG="-fPIC"
8677 SONAMEFLAG="-Wl,-soname="
8678 cat >> confdefs.h <<\EOF
8679 #define STAT_ST_BLOCKSIZE 512
8683 *solaris*) cat >> confdefs.h <<\EOF
8684 #define SUNOS5 1
8687 BLDSHARED="true"
8688 LDSHFLAGS="-G"
8689 SONAMEFLAG="-h "
8690 if test "${GCC}" = "yes"; then
8691 PICFLAG="-fPIC"
8692 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8693 DYNEXP="-Wl,-E"
8695 else
8696 PICFLAG="-KPIC"
8697 ## ${CFLAGS} added for building 64-bit shared
8698 ## libs using Sun's Compiler
8699 LDSHFLAGS="-G \${CFLAGS}"
8700 POBAD_CC=""
8701 PICSUFFIX="po.o"
8703 cat >> confdefs.h <<\EOF
8704 #define STAT_ST_BLOCKSIZE 512
8708 *sunos*) cat >> confdefs.h <<\EOF
8709 #define SUNOS4 1
8712 BLDSHARED="true"
8713 LDSHFLAGS="-G"
8714 SONAMEFLAG="-Wl,-h,"
8715 PICFLAG="-KPIC" # Is this correct for SunOS
8717 *bsd*) BLDSHARED="true"
8718 LDSHFLAGS="-shared"
8719 DYNEXP="-Wl,-Bdynamic"
8720 SONAMEFLAG="-Wl,-soname,"
8721 PICFLAG="-fPIC"
8722 cat >> confdefs.h <<\EOF
8723 #define STAT_ST_BLOCKSIZE 512
8727 *irix*) cat >> confdefs.h <<\EOF
8728 #define IRIX 1
8731 case "$host_os" in
8732 *irix6*) cat >> confdefs.h <<\EOF
8733 #define IRIX6 1
8737 esac
8738 ATTEMPT_WRAP32_BUILD=yes
8739 BLDSHARED="true"
8740 LDSHFLAGS="-set_version sgi1.0 -shared"
8741 SONAMEFLAG="-soname "
8742 SHLD="\${LD}"
8743 if test "${GCC}" = "yes"; then
8744 PICFLAG="-fPIC"
8745 else
8746 PICFLAG="-KPIC"
8748 cat >> confdefs.h <<\EOF
8749 #define STAT_ST_BLOCKSIZE 512
8753 *aix*) cat >> confdefs.h <<\EOF
8754 #define AIX 1
8757 BLDSHARED="true"
8758 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8759 DYNEXP="-Wl,-brtl,-bexpall"
8760 if test "${GCC}" = "yes"; then
8761 PICFLAG="-O2"
8762 else
8763 PICFLAG="-O2 -qmaxmem=6000"
8764 ## for funky AIX compiler using strncpy()
8765 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8768 cat >> confdefs.h <<\EOF
8769 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8773 *hpux*) cat >> confdefs.h <<\EOF
8774 #define HPUX 1
8777 SHLIBEXT="sl"
8778 # Use special PIC flags for the native HP-UX compiler.
8779 if test $ac_cv_prog_cc_Ae = yes; then
8780 BLDSHARED="true"
8781 SHLD="/usr/bin/ld"
8782 LDSHFLAGS="-B symbolic -b -z"
8783 SONAMEFLAG="+h "
8784 PICFLAG="+z"
8786 DYNEXP="-Wl,-E"
8787 cat >> confdefs.h <<\EOF
8788 #define STAT_ST_BLOCKSIZE 8192
8792 *qnx*) cat >> confdefs.h <<\EOF
8793 #define QNX 1
8796 *osf*) cat >> confdefs.h <<\EOF
8797 #define OSF1 1
8800 BLDSHARED="true"
8801 LDSHFLAGS="-shared"
8802 SONAMEFLAG="-Wl,-soname,"
8803 PICFLAG="-fPIC"
8805 *sco*) cat >> confdefs.h <<\EOF
8806 #define SCO 1
8809 *unixware*) cat >> confdefs.h <<\EOF
8810 #define UNIXWARE 1
8813 BLDSHARED="true"
8814 LDSHFLAGS="-shared"
8815 SONAMEFLAG="-Wl,-soname,"
8816 PICFLAG="-KPIC"
8818 *next2*) cat >> confdefs.h <<\EOF
8819 #define NEXT2 1
8822 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8823 set dummy groff; ac_word=$2
8824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8825 echo "configure:8826: checking for $ac_word" >&5
8826 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8828 else
8829 if test -n "$ROFF"; then
8830 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8831 else
8832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8833 ac_dummy="$PATH"
8834 for ac_dir in $ac_dummy; do
8835 test -z "$ac_dir" && ac_dir=.
8836 if test -f $ac_dir/$ac_word; then
8837 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8838 break
8840 done
8841 IFS="$ac_save_ifs"
8844 ROFF="$ac_cv_prog_ROFF"
8845 if test -n "$ROFF"; then
8846 echo "$ac_t""$ROFF" 1>&6
8847 else
8848 echo "$ac_t""no" 1>&6
8851 *sysv4*)
8852 case "$host" in
8853 *-univel-*) if test "$GCC" != yes ; then
8854 cat >> confdefs.h <<\EOF
8855 #define HAVE_MEMSET 1
8859 LDSHFLAGS="-G"
8860 DYNEXP="-Bexport"
8862 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8863 #define RELIANTUNIX 1
8866 esac
8868 *sysv5*)
8869 if test "$GCC" != yes ; then
8870 cat >> confdefs.h <<\EOF
8871 #define HAVE_MEMSET 1
8875 LDSHFLAGS="-G"
8877 esac
8879 echo "$ac_t""$BLDSHARED" 1>&6
8880 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8881 echo "configure:8882: checking linker flags for shared libraries" >&5
8882 echo "$ac_t""$LDSHFLAGS" 1>&6
8883 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8884 echo "configure:8885: checking compiler flags for position-independent code" >&5
8885 echo "$ac_t""$PICFLAGS" 1>&6
8887 # try to work out how to produce pic code with this compiler
8888 if test x$PICFLAG = x; then
8889 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8890 echo "configure:8891: checking whether ${CC-cc} accepts -fpic" >&5
8891 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8892 echo $ac_n "(cached) $ac_c" 1>&6
8893 else
8894 echo 'void f(){}' > conftest.c
8895 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8896 ac_cv_prog_cc_fpic=yes
8897 else
8898 ac_cv_prog_cc_fpic=no
8900 rm -f conftest*
8904 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8905 if test $ac_cv_prog_cc_fpic = yes; then
8906 PICFLAG="-fpic";
8909 if test x$PICFLAG = x; then
8910 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8911 echo "configure:8912: checking whether ${CC-cc} accepts -KPIC" >&5
8912 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8914 else
8915 echo 'void f(){}' > conftest.c
8916 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8917 ac_cv_prog_cc_KPIC=yes
8918 else
8919 ac_cv_prog_cc_KPIC=no
8921 rm -f conftest*
8925 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8926 if test $ac_cv_prog_cc_KPIC = yes; then
8927 PICFLAG="-KPIC";
8930 if test x$PICFLAG = x; then
8931 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8932 echo "configure:8933: checking whether ${CC-cc} accepts -Kpic" >&5
8933 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8935 else
8936 echo 'void f(){}' > conftest.c
8937 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8938 ac_cv_prog_cc_Kpic=yes
8939 else
8940 ac_cv_prog_cc_Kpic=no
8942 rm -f conftest*
8946 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8947 if test $ac_cv_prog_cc_Kpic = yes; then
8948 PICFLAG="-Kpic";
8952 ################
8954 echo $ac_n "checking for long long""... $ac_c" 1>&6
8955 echo "configure:8956: checking for long long" >&5
8956 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8958 else
8960 if test "$cross_compiling" = yes; then
8961 samba_cv_have_longlong=cross
8962 else
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 #include <stdio.h>
8967 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8969 if { (eval echo configure:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8970 then
8971 samba_cv_have_longlong=yes
8972 else
8973 echo "configure: failed program was:" >&5
8974 cat conftest.$ac_ext >&5
8975 rm -fr conftest*
8976 samba_cv_have_longlong=no
8978 rm -fr conftest*
8983 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8984 if test x"$samba_cv_have_longlong" = x"yes"; then
8985 cat >> confdefs.h <<\EOF
8986 #define HAVE_LONGLONG 1
8992 # Check if the compiler supports the LL prefix on long long integers.
8993 # AIX needs this.
8995 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8996 echo "configure:8997: checking for LL suffix on long long integers" >&5
8997 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8998 echo $ac_n "(cached) $ac_c" 1>&6
8999 else
9001 cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9004 #include <stdio.h>
9005 int main() {
9006 long long i = 0x8000000000LL
9007 ; return 0; }
9009 if { (eval echo configure:9010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9010 rm -rf conftest*
9011 samba_cv_compiler_supports_ll=yes
9012 else
9013 echo "configure: failed program was:" >&5
9014 cat conftest.$ac_ext >&5
9015 rm -rf conftest*
9016 samba_cv_compiler_supports_ll=no
9018 rm -f conftest*
9021 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9022 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9023 cat >> confdefs.h <<\EOF
9024 #define COMPILER_SUPPORTS_LL 1
9030 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9031 echo "configure:9032: checking for 64 bit off_t" >&5
9032 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9033 echo $ac_n "(cached) $ac_c" 1>&6
9034 else
9036 if test "$cross_compiling" = yes; then
9037 samba_cv_SIZEOF_OFF_T=cross
9038 else
9039 cat > conftest.$ac_ext <<EOF
9040 #line 9041 "configure"
9041 #include "confdefs.h"
9042 #include <stdio.h>
9043 #include <sys/stat.h>
9044 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9047 then
9048 samba_cv_SIZEOF_OFF_T=yes
9049 else
9050 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5
9052 rm -fr conftest*
9053 samba_cv_SIZEOF_OFF_T=no
9055 rm -fr conftest*
9060 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9061 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9062 cat >> confdefs.h <<\EOF
9063 #define SIZEOF_OFF_T 8
9068 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9069 echo "configure:9070: checking for off64_t" >&5
9070 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9072 else
9074 if test "$cross_compiling" = yes; then
9075 samba_cv_HAVE_OFF64_T=cross
9076 else
9077 cat > conftest.$ac_ext <<EOF
9078 #line 9079 "configure"
9079 #include "confdefs.h"
9081 #if defined(HAVE_UNISTD_H)
9082 #include <unistd.h>
9083 #endif
9084 #include <stdio.h>
9085 #include <sys/stat.h>
9086 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9088 if { (eval echo configure:9089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9089 then
9090 samba_cv_HAVE_OFF64_T=yes
9091 else
9092 echo "configure: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9094 rm -fr conftest*
9095 samba_cv_HAVE_OFF64_T=no
9097 rm -fr conftest*
9102 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9103 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9104 cat >> confdefs.h <<\EOF
9105 #define HAVE_OFF64_T 1
9110 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9111 echo "configure:9112: checking for 64 bit ino_t" >&5
9112 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9113 echo $ac_n "(cached) $ac_c" 1>&6
9114 else
9116 if test "$cross_compiling" = yes; then
9117 samba_cv_SIZEOF_INO_T=cross
9118 else
9119 cat > conftest.$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9122 #include <stdio.h>
9123 #include <sys/stat.h>
9124 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9126 if { (eval echo configure:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9127 then
9128 samba_cv_SIZEOF_INO_T=yes
9129 else
9130 echo "configure: failed program was:" >&5
9131 cat conftest.$ac_ext >&5
9132 rm -fr conftest*
9133 samba_cv_SIZEOF_INO_T=no
9135 rm -fr conftest*
9140 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9141 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9142 cat >> confdefs.h <<\EOF
9143 #define SIZEOF_INO_T 8
9148 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9149 echo "configure:9150: checking for ino64_t" >&5
9150 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9151 echo $ac_n "(cached) $ac_c" 1>&6
9152 else
9154 if test "$cross_compiling" = yes; then
9155 samba_cv_HAVE_INO64_T=cross
9156 else
9157 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure"
9159 #include "confdefs.h"
9161 #if defined(HAVE_UNISTD_H)
9162 #include <unistd.h>
9163 #endif
9164 #include <stdio.h>
9165 #include <sys/stat.h>
9166 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9168 if { (eval echo configure:9169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9169 then
9170 samba_cv_HAVE_INO64_T=yes
9171 else
9172 echo "configure: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9174 rm -fr conftest*
9175 samba_cv_HAVE_INO64_T=no
9177 rm -fr conftest*
9182 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9183 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9184 cat >> confdefs.h <<\EOF
9185 #define HAVE_INO64_T 1
9190 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9191 echo "configure:9192: checking for dev64_t" >&5
9192 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9193 echo $ac_n "(cached) $ac_c" 1>&6
9194 else
9196 if test "$cross_compiling" = yes; then
9197 samba_cv_HAVE_DEV64_T=cross
9198 else
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9203 #if defined(HAVE_UNISTD_H)
9204 #include <unistd.h>
9205 #endif
9206 #include <stdio.h>
9207 #include <sys/stat.h>
9208 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9210 if { (eval echo configure:9211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9211 then
9212 samba_cv_HAVE_DEV64_T=yes
9213 else
9214 echo "configure: failed program was:" >&5
9215 cat conftest.$ac_ext >&5
9216 rm -fr conftest*
9217 samba_cv_HAVE_DEV64_T=no
9219 rm -fr conftest*
9224 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9225 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9226 cat >> confdefs.h <<\EOF
9227 #define HAVE_DEV64_T 1
9232 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9233 echo "configure:9234: checking for struct dirent64" >&5
9234 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9236 else
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9242 #if defined(HAVE_UNISTD_H)
9243 #include <unistd.h>
9244 #endif
9245 #include <sys/types.h>
9246 #include <dirent.h>
9247 int main() {
9248 struct dirent64 de;
9249 ; return 0; }
9251 if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9252 rm -rf conftest*
9253 samba_cv_HAVE_STRUCT_DIRENT64=yes
9254 else
9255 echo "configure: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 rm -rf conftest*
9258 samba_cv_HAVE_STRUCT_DIRENT64=no
9260 rm -f conftest*
9263 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9264 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9265 cat >> confdefs.h <<\EOF
9266 #define HAVE_STRUCT_DIRENT64 1
9271 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9272 echo "configure:9273: checking for major macro" >&5
9273 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9275 else
9277 if test "$cross_compiling" = yes; then
9278 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9279 else
9280 cat > conftest.$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9284 #if defined(HAVE_UNISTD_H)
9285 #include <unistd.h>
9286 #endif
9287 #include <sys/types.h>
9288 main() { dev_t dev; int i = major(dev); return 0; }
9290 if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9291 then
9292 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9293 else
9294 echo "configure: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9296 rm -fr conftest*
9297 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9299 rm -fr conftest*
9304 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9305 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9306 cat >> confdefs.h <<\EOF
9307 #define HAVE_DEVICE_MAJOR_FN 1
9312 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9313 echo "configure:9314: checking for minor macro" >&5
9314 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9318 if test "$cross_compiling" = yes; then
9319 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9320 else
9321 cat > conftest.$ac_ext <<EOF
9322 #line 9323 "configure"
9323 #include "confdefs.h"
9325 #if defined(HAVE_UNISTD_H)
9326 #include <unistd.h>
9327 #endif
9328 #include <sys/types.h>
9329 main() { dev_t dev; int i = minor(dev); return 0; }
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9332 then
9333 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9334 else
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9337 rm -fr conftest*
9338 samba_cv_HAVE_DEVICE_MINOR_FN=no
9340 rm -fr conftest*
9345 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9346 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9347 cat >> confdefs.h <<\EOF
9348 #define HAVE_DEVICE_MINOR_FN 1
9353 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9354 echo "configure:9355: checking for makedev macro" >&5
9355 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9357 else
9359 if test "$cross_compiling" = yes; then
9360 samba_cv_HAVE_MAKEDEV_FN=cross
9361 else
9362 cat > conftest.$ac_ext <<EOF
9363 #line 9364 "configure"
9364 #include "confdefs.h"
9366 #if defined(HAVE_UNISTD_H)
9367 #include <unistd.h>
9368 #endif
9369 #include <sys/types.h>
9370 main() { dev_t dev = makedev(1,2); return 0; }
9372 if { (eval echo configure:9373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9373 then
9374 samba_cv_HAVE_MAKEDEV_FN=yes
9375 else
9376 echo "configure: failed program was:" >&5
9377 cat conftest.$ac_ext >&5
9378 rm -fr conftest*
9379 samba_cv_HAVE_MAKEDEV_FN=no
9381 rm -fr conftest*
9386 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9387 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9388 cat >> confdefs.h <<\EOF
9389 #define MAKEDEV_FN 1
9394 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9395 echo "configure:9396: checking for unsigned char" >&5
9396 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9398 else
9400 if test "$cross_compiling" = yes; then
9401 samba_cv_HAVE_UNSIGNED_CHAR=cross
9402 else
9403 cat > conftest.$ac_ext <<EOF
9404 #line 9405 "configure"
9405 #include "confdefs.h"
9406 #include <stdio.h>
9407 main() { char c; c=250; exit((c > 0)?0:1); }
9409 if { (eval echo configure:9410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9410 then
9411 samba_cv_HAVE_UNSIGNED_CHAR=yes
9412 else
9413 echo "configure: failed program was:" >&5
9414 cat conftest.$ac_ext >&5
9415 rm -fr conftest*
9416 samba_cv_HAVE_UNSIGNED_CHAR=no
9418 rm -fr conftest*
9423 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9424 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9425 cat >> confdefs.h <<\EOF
9426 #define HAVE_UNSIGNED_CHAR 1
9431 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9432 echo "configure:9433: checking for sin_len in sock" >&5
9433 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9435 else
9437 cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 #include <sys/types.h>
9441 #include <sys/socket.h>
9442 #include <netinet/in.h>
9443 int main() {
9444 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9445 ; return 0; }
9447 if { (eval echo configure:9448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9448 rm -rf conftest*
9449 samba_cv_HAVE_SOCK_SIN_LEN=yes
9450 else
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -rf conftest*
9454 samba_cv_HAVE_SOCK_SIN_LEN=no
9456 rm -f conftest*
9459 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9460 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9461 cat >> confdefs.h <<\EOF
9462 #define HAVE_SOCK_SIN_LEN 1
9467 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9468 echo "configure:9469: checking whether seekdir returns void" >&5
9469 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9470 echo $ac_n "(cached) $ac_c" 1>&6
9471 else
9473 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9476 #include <sys/types.h>
9477 #include <dirent.h>
9478 void seekdir(DIR *d, long loc) { return; }
9479 int main() {
9480 return 0;
9481 ; return 0; }
9483 if { (eval echo configure:9484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9484 rm -rf conftest*
9485 samba_cv_SEEKDIR_RETURNS_VOID=yes
9486 else
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9489 rm -rf conftest*
9490 samba_cv_SEEKDIR_RETURNS_VOID=no
9492 rm -f conftest*
9495 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9496 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9497 cat >> confdefs.h <<\EOF
9498 #define SEEKDIR_RETURNS_VOID 1
9503 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9504 echo "configure:9505: checking for __FILE__ macro" >&5
9505 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
9507 else
9509 cat > conftest.$ac_ext <<EOF
9510 #line 9511 "configure"
9511 #include "confdefs.h"
9512 #include <stdio.h>
9513 int main() {
9514 printf("%s\n", __FILE__);
9515 ; return 0; }
9517 if { (eval echo configure:9518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9518 rm -rf conftest*
9519 samba_cv_HAVE_FILE_MACRO=yes
9520 else
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9523 rm -rf conftest*
9524 samba_cv_HAVE_FILE_MACRO=no
9526 rm -f conftest*
9529 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9530 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9531 cat >> confdefs.h <<\EOF
9532 #define HAVE_FILE_MACRO 1
9537 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9538 echo "configure:9539: checking for __FUNCTION__ macro" >&5
9539 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9541 else
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 #include <stdio.h>
9547 int main() {
9548 printf("%s\n", __FUNCTION__);
9549 ; return 0; }
9551 if { (eval echo configure:9552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9552 rm -rf conftest*
9553 samba_cv_HAVE_FUNCTION_MACRO=yes
9554 else
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 rm -rf conftest*
9558 samba_cv_HAVE_FUNCTION_MACRO=no
9560 rm -f conftest*
9563 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9564 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9565 cat >> confdefs.h <<\EOF
9566 #define HAVE_FUNCTION_MACRO 1
9571 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9572 echo "configure:9573: checking if gettimeofday takes tz argument" >&5
9573 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9575 else
9577 if test "$cross_compiling" = yes; then
9578 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9579 else
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9584 #include <sys/time.h>
9585 #include <unistd.h>
9586 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9588 if { (eval echo configure:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9589 then
9590 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9591 else
9592 echo "configure: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9594 rm -fr conftest*
9595 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9597 rm -fr conftest*
9602 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9603 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9604 cat >> confdefs.h <<\EOF
9605 #define HAVE_GETTIMEOFDAY_TZ 1
9610 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9611 echo "configure:9612: checking for __va_copy" >&5
9612 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9614 else
9616 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9619 #include <stdarg.h>
9620 va_list ap1,ap2;
9621 int main() {
9622 __va_copy(ap1,ap2);
9623 ; return 0; }
9625 if { (eval echo configure:9626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9626 rm -rf conftest*
9627 samba_cv_HAVE_VA_COPY=yes
9628 else
9629 echo "configure: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9631 rm -rf conftest*
9632 samba_cv_HAVE_VA_COPY=no
9634 rm -f conftest*
9637 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9638 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9639 cat >> confdefs.h <<\EOF
9640 #define HAVE_VA_COPY 1
9645 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9646 echo "configure:9647: checking for C99 vsnprintf" >&5
9647 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9648 echo $ac_n "(cached) $ac_c" 1>&6
9649 else
9651 if test "$cross_compiling" = yes; then
9652 samba_cv_HAVE_C99_VSNPRINTF=cross
9653 else
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9658 #include <sys/types.h>
9659 #include <stdarg.h>
9660 void foo(const char *format, ...) {
9661 va_list ap;
9662 int len;
9663 char buf[5];
9665 va_start(ap, format);
9666 len = vsnprintf(buf, 0, format, ap);
9667 va_end(ap);
9668 if (len != 5) exit(1);
9670 va_start(ap, format);
9671 len = vsnprintf(0, 0, format, ap);
9672 va_end(ap);
9673 if (len != 5) exit(1);
9675 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9677 exit(0);
9679 main() { foo("hello"); }
9682 if { (eval echo configure:9683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9683 then
9684 samba_cv_HAVE_C99_VSNPRINTF=yes
9685 else
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 rm -fr conftest*
9689 samba_cv_HAVE_C99_VSNPRINTF=no
9691 rm -fr conftest*
9696 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9697 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9698 cat >> confdefs.h <<\EOF
9699 #define HAVE_C99_VSNPRINTF 1
9704 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9705 echo "configure:9706: checking for broken readdir" >&5
9706 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9707 echo $ac_n "(cached) $ac_c" 1>&6
9708 else
9710 if test "$cross_compiling" = yes; then
9711 samba_cv_HAVE_BROKEN_READDIR=cross
9712 else
9713 cat > conftest.$ac_ext <<EOF
9714 #line 9715 "configure"
9715 #include "confdefs.h"
9716 #include <sys/types.h>
9717 #include <dirent.h>
9718 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9719 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9720 di->d_name[0] == 0) exit(0); exit(1);}
9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9723 then
9724 samba_cv_HAVE_BROKEN_READDIR=yes
9725 else
9726 echo "configure: failed program was:" >&5
9727 cat conftest.$ac_ext >&5
9728 rm -fr conftest*
9729 samba_cv_HAVE_BROKEN_READDIR=no
9731 rm -fr conftest*
9736 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9737 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9738 cat >> confdefs.h <<\EOF
9739 #define HAVE_BROKEN_READDIR 1
9744 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9745 echo "configure:9746: checking for utimbuf" >&5
9746 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9748 else
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 #include <sys/types.h>
9754 #include <utime.h>
9755 int main() {
9756 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9757 ; return 0; }
9759 if { (eval echo configure:9760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9760 rm -rf conftest*
9761 samba_cv_HAVE_UTIMBUF=yes
9762 else
9763 echo "configure: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 rm -rf conftest*
9766 samba_cv_HAVE_UTIMBUF=no
9768 rm -f conftest*
9771 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9772 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9773 cat >> confdefs.h <<\EOF
9774 #define HAVE_UTIMBUF 1
9780 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9783 echo "configure:9784: checking for $ac_func" >&5
9784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9785 echo $ac_n "(cached) $ac_c" 1>&6
9786 else
9787 cat > conftest.$ac_ext <<EOF
9788 #line 9789 "configure"
9789 #include "confdefs.h"
9790 /* System header to define __stub macros and hopefully few prototypes,
9791 which can conflict with char $ac_func(); below. */
9792 #include <assert.h>
9793 /* Override any gcc2 internal prototype to avoid an error. */
9794 /* We use char because int might match the return type of a gcc2
9795 builtin and then its argument prototype would still apply. */
9796 char $ac_func();
9798 int main() {
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9804 choke me
9805 #else
9806 $ac_func();
9807 #endif
9809 ; return 0; }
9811 if { (eval echo configure:9812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9812 rm -rf conftest*
9813 eval "ac_cv_func_$ac_func=yes"
9814 else
9815 echo "configure: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9817 rm -rf conftest*
9818 eval "ac_cv_func_$ac_func=no"
9820 rm -f conftest*
9823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9824 echo "$ac_t""yes" 1>&6
9825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9826 cat >> confdefs.h <<EOF
9827 #define $ac_tr_func 1
9830 else
9831 echo "$ac_t""no" 1>&6
9833 done
9836 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9837 echo "configure:9838: checking for ut_name in utmp" >&5
9838 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9840 else
9842 cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 #include <sys/types.h>
9846 #include <utmp.h>
9847 int main() {
9848 struct utmp ut; ut.ut_name[0] = 'a';
9849 ; return 0; }
9851 if { (eval echo configure:9852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9852 rm -rf conftest*
9853 samba_cv_HAVE_UT_UT_NAME=yes
9854 else
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 rm -rf conftest*
9858 samba_cv_HAVE_UT_UT_NAME=no
9860 rm -f conftest*
9863 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9864 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9865 cat >> confdefs.h <<\EOF
9866 #define HAVE_UT_UT_NAME 1
9871 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9872 echo "configure:9873: checking for ut_user in utmp" >&5
9873 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9875 else
9877 cat > conftest.$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 #include <sys/types.h>
9881 #include <utmp.h>
9882 int main() {
9883 struct utmp ut; ut.ut_user[0] = 'a';
9884 ; return 0; }
9886 if { (eval echo configure:9887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9887 rm -rf conftest*
9888 samba_cv_HAVE_UT_UT_USER=yes
9889 else
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 rm -rf conftest*
9893 samba_cv_HAVE_UT_UT_USER=no
9895 rm -f conftest*
9898 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9899 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9900 cat >> confdefs.h <<\EOF
9901 #define HAVE_UT_UT_USER 1
9906 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9907 echo "configure:9908: checking for ut_id in utmp" >&5
9908 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9909 echo $ac_n "(cached) $ac_c" 1>&6
9910 else
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 #include <sys/types.h>
9916 #include <utmp.h>
9917 int main() {
9918 struct utmp ut; ut.ut_id[0] = 'a';
9919 ; return 0; }
9921 if { (eval echo configure:9922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9922 rm -rf conftest*
9923 samba_cv_HAVE_UT_UT_ID=yes
9924 else
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 rm -rf conftest*
9928 samba_cv_HAVE_UT_UT_ID=no
9930 rm -f conftest*
9933 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9934 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9935 cat >> confdefs.h <<\EOF
9936 #define HAVE_UT_UT_ID 1
9941 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9942 echo "configure:9943: checking for ut_host in utmp" >&5
9943 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9944 echo $ac_n "(cached) $ac_c" 1>&6
9945 else
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9950 #include <sys/types.h>
9951 #include <utmp.h>
9952 int main() {
9953 struct utmp ut; ut.ut_host[0] = 'a';
9954 ; return 0; }
9956 if { (eval echo configure:9957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9957 rm -rf conftest*
9958 samba_cv_HAVE_UT_UT_HOST=yes
9959 else
9960 echo "configure: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9962 rm -rf conftest*
9963 samba_cv_HAVE_UT_UT_HOST=no
9965 rm -f conftest*
9968 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9969 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9970 cat >> confdefs.h <<\EOF
9971 #define HAVE_UT_UT_HOST 1
9976 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9977 echo "configure:9978: checking for ut_time in utmp" >&5
9978 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9979 echo $ac_n "(cached) $ac_c" 1>&6
9980 else
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9985 #include <sys/types.h>
9986 #include <utmp.h>
9987 int main() {
9988 struct utmp ut; time_t t; ut.ut_time = t;
9989 ; return 0; }
9991 if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9992 rm -rf conftest*
9993 samba_cv_HAVE_UT_UT_TIME=yes
9994 else
9995 echo "configure: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9997 rm -rf conftest*
9998 samba_cv_HAVE_UT_UT_TIME=no
10000 rm -f conftest*
10003 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10004 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10005 cat >> confdefs.h <<\EOF
10006 #define HAVE_UT_UT_TIME 1
10011 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10012 echo "configure:10013: checking for ut_tv in utmp" >&5
10013 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10015 else
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 #include <sys/types.h>
10021 #include <utmp.h>
10022 int main() {
10023 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10024 ; return 0; }
10026 if { (eval echo configure:10027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10027 rm -rf conftest*
10028 samba_cv_HAVE_UT_UT_TV=yes
10029 else
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10032 rm -rf conftest*
10033 samba_cv_HAVE_UT_UT_TV=no
10035 rm -f conftest*
10038 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10039 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10040 cat >> confdefs.h <<\EOF
10041 #define HAVE_UT_UT_TV 1
10046 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10047 echo "configure:10048: checking for ut_type in utmp" >&5
10048 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10049 echo $ac_n "(cached) $ac_c" 1>&6
10050 else
10052 cat > conftest.$ac_ext <<EOF
10053 #line 10054 "configure"
10054 #include "confdefs.h"
10055 #include <sys/types.h>
10056 #include <utmp.h>
10057 int main() {
10058 struct utmp ut; ut.ut_type = 0;
10059 ; return 0; }
10061 if { (eval echo configure:10062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10062 rm -rf conftest*
10063 samba_cv_HAVE_UT_UT_TYPE=yes
10064 else
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 rm -rf conftest*
10068 samba_cv_HAVE_UT_UT_TYPE=no
10070 rm -f conftest*
10073 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10074 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10075 cat >> confdefs.h <<\EOF
10076 #define HAVE_UT_UT_TYPE 1
10081 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10082 echo "configure:10083: checking for ut_pid in utmp" >&5
10083 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10085 else
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10091 #include <utmp.h>
10092 int main() {
10093 struct utmp ut; ut.ut_pid = 0;
10094 ; return 0; }
10096 if { (eval echo configure:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10097 rm -rf conftest*
10098 samba_cv_HAVE_UT_UT_PID=yes
10099 else
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 rm -rf conftest*
10103 samba_cv_HAVE_UT_UT_PID=no
10105 rm -f conftest*
10108 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10109 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_UT_UT_PID 1
10116 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10117 echo "configure:10118: checking for ut_exit in utmp" >&5
10118 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10120 else
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 #include <sys/types.h>
10126 #include <utmp.h>
10127 int main() {
10128 struct utmp ut; ut.ut_exit.e_exit = 0;
10129 ; return 0; }
10131 if { (eval echo configure:10132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10132 rm -rf conftest*
10133 samba_cv_HAVE_UT_UT_EXIT=yes
10134 else
10135 echo "configure: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10137 rm -rf conftest*
10138 samba_cv_HAVE_UT_UT_EXIT=no
10140 rm -f conftest*
10143 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10144 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_UT_UT_EXIT 1
10151 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10152 echo "configure:10153: checking for ut_addr in utmp" >&5
10153 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10154 echo $ac_n "(cached) $ac_c" 1>&6
10155 else
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 #include <sys/types.h>
10161 #include <utmp.h>
10162 int main() {
10163 struct utmp ut; ut.ut_addr = 0;
10164 ; return 0; }
10166 if { (eval echo configure:10167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10167 rm -rf conftest*
10168 samba_cv_HAVE_UT_UT_ADDR=yes
10169 else
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10172 rm -rf conftest*
10173 samba_cv_HAVE_UT_UT_ADDR=no
10175 rm -f conftest*
10178 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10179 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10180 cat >> confdefs.h <<\EOF
10181 #define HAVE_UT_UT_ADDR 1
10186 if test x$ac_cv_func_pututline = xyes ; then
10187 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10188 echo "configure:10189: checking whether pututline returns pointer" >&5
10189 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10190 echo $ac_n "(cached) $ac_c" 1>&6
10191 else
10193 cat > conftest.$ac_ext <<EOF
10194 #line 10195 "configure"
10195 #include "confdefs.h"
10196 #include <sys/types.h>
10197 #include <utmp.h>
10198 int main() {
10199 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10200 ; return 0; }
10202 if { (eval echo configure:10203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10203 rm -rf conftest*
10204 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10205 else
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10208 rm -rf conftest*
10209 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10211 rm -f conftest*
10214 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10215 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10216 cat >> confdefs.h <<\EOF
10217 #define PUTUTLINE_RETURNS_UTMP 1
10223 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10224 echo "configure:10225: checking for ut_syslen in utmpx" >&5
10225 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227 else
10229 cat > conftest.$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10232 #include <sys/types.h>
10233 #include <utmpx.h>
10234 int main() {
10235 struct utmpx ux; ux.ut_syslen = 0;
10236 ; return 0; }
10238 if { (eval echo configure:10239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10239 rm -rf conftest*
10240 samba_cv_HAVE_UX_UT_SYSLEN=yes
10241 else
10242 echo "configure: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10244 rm -rf conftest*
10245 samba_cv_HAVE_UX_UT_SYSLEN=no
10247 rm -f conftest*
10250 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10251 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10252 cat >> confdefs.h <<\EOF
10253 #define HAVE_UX_UT_SYSLEN 1
10258 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10259 echo "configure:10260: checking for Linux kernel oplocks" >&5
10260 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10262 else
10264 if test "$cross_compiling" = yes; then
10265 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10266 else
10267 cat > conftest.$ac_ext <<EOF
10268 #line 10269 "configure"
10269 #include "confdefs.h"
10271 #include <sys/types.h>
10272 #include <fcntl.h>
10273 #ifndef F_GETLEASE
10274 #define F_GETLEASE 1025
10275 #endif
10276 main() {
10277 int fd = open("/dev/null", O_RDONLY);
10278 return fcntl(fd, F_GETLEASE, 0) == -1;
10282 if { (eval echo configure:10283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10283 then
10284 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10285 else
10286 echo "configure: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 rm -fr conftest*
10289 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10291 rm -fr conftest*
10296 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10297 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10298 cat >> confdefs.h <<\EOF
10299 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10304 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10305 echo "configure:10306: checking for kernel change notify support" >&5
10306 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10307 echo $ac_n "(cached) $ac_c" 1>&6
10308 else
10310 if test "$cross_compiling" = yes; then
10311 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10312 else
10313 cat > conftest.$ac_ext <<EOF
10314 #line 10315 "configure"
10315 #include "confdefs.h"
10317 #include <sys/types.h>
10318 #include <fcntl.h>
10319 #include <signal.h>
10320 #ifndef F_NOTIFY
10321 #define F_NOTIFY 1026
10322 #endif
10323 main() {
10324 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10329 then
10330 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10331 else
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 rm -fr conftest*
10335 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10337 rm -fr conftest*
10342 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10343 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10344 cat >> confdefs.h <<\EOF
10345 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10350 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10351 echo "configure:10352: checking for kernel share modes" >&5
10352 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10354 else
10356 if test "$cross_compiling" = yes; then
10357 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10358 else
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10363 #include <sys/types.h>
10364 #include <fcntl.h>
10365 #include <signal.h>
10366 #include <sys/file.h>
10367 #ifndef LOCK_MAND
10368 #define LOCK_MAND 32
10369 #define LOCK_READ 64
10370 #endif
10371 main() {
10372 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10377 then
10378 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10379 else
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10382 rm -fr conftest*
10383 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10385 rm -fr conftest*
10390 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10391 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10392 cat >> confdefs.h <<\EOF
10393 #define HAVE_KERNEL_SHARE_MODES 1
10401 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10402 echo "configure:10403: checking for IRIX kernel oplock type definitions" >&5
10403 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10405 else
10407 cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 #include <sys/types.h>
10411 #include <fcntl.h>
10412 int main() {
10413 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10414 ; return 0; }
10416 if { (eval echo configure:10417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10417 rm -rf conftest*
10418 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10419 else
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 rm -rf conftest*
10423 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10425 rm -f conftest*
10428 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10429 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10430 cat >> confdefs.h <<\EOF
10431 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10436 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10437 echo "configure:10438: checking for irix specific capabilities" >&5
10438 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10440 else
10442 if test "$cross_compiling" = yes; then
10443 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10444 else
10445 cat > conftest.$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10448 #include <sys/types.h>
10449 #include <sys/capability.h>
10450 main() {
10451 cap_t cap;
10452 if ((cap = cap_get_proc()) == NULL)
10453 exit(1);
10454 cap->cap_effective |= CAP_NETWORK_MGT;
10455 cap->cap_inheritable |= CAP_NETWORK_MGT;
10456 cap_set_proc(cap);
10457 exit(0);
10461 if { (eval echo configure:10462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10462 then
10463 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10464 else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -fr conftest*
10468 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10470 rm -fr conftest*
10475 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10476 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10477 cat >> confdefs.h <<\EOF
10478 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10484 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10485 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10488 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10489 echo "configure:10490: checking for int16 typedef included by rpc/rpc.h" >&5
10490 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10491 echo $ac_n "(cached) $ac_c" 1>&6
10492 else
10494 cat > conftest.$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497 #include <sys/types.h>
10498 #if defined(HAVE_RPC_RPC_H)
10499 #include <rpc/rpc.h>
10500 #endif
10501 int main() {
10502 int16 testvar;
10503 ; return 0; }
10505 if { (eval echo configure:10506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10506 rm -rf conftest*
10507 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10508 else
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 rm -rf conftest*
10512 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10514 rm -f conftest*
10517 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10518 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10519 cat >> confdefs.h <<\EOF
10520 #define HAVE_INT16_FROM_RPC_RPC_H 1
10525 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10526 echo "configure:10527: checking for uint16 typedef included by rpc/rpc.h" >&5
10527 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10528 echo $ac_n "(cached) $ac_c" 1>&6
10529 else
10531 cat > conftest.$ac_ext <<EOF
10532 #line 10533 "configure"
10533 #include "confdefs.h"
10534 #include <sys/types.h>
10535 #if defined(HAVE_RPC_RPC_H)
10536 #include <rpc/rpc.h>
10537 #endif
10538 int main() {
10539 uint16 testvar;
10540 ; return 0; }
10542 if { (eval echo configure:10543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10543 rm -rf conftest*
10544 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10545 else
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 rm -rf conftest*
10549 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10551 rm -f conftest*
10554 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10555 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10556 cat >> confdefs.h <<\EOF
10557 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10562 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10563 echo "configure:10564: checking for int32 typedef included by rpc/rpc.h" >&5
10564 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10566 else
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 #include <sys/types.h>
10572 #if defined(HAVE_RPC_RPC_H)
10573 #include <rpc/rpc.h>
10574 #endif
10575 int main() {
10576 int32 testvar;
10577 ; return 0; }
10579 if { (eval echo configure:10580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10580 rm -rf conftest*
10581 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10582 else
10583 echo "configure: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 rm -rf conftest*
10586 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10588 rm -f conftest*
10591 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10592 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10593 cat >> confdefs.h <<\EOF
10594 #define HAVE_INT32_FROM_RPC_RPC_H 1
10599 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10600 echo "configure:10601: checking for uint32 typedef included by rpc/rpc.h" >&5
10601 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10603 else
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 #include <sys/types.h>
10609 #if defined(HAVE_RPC_RPC_H)
10610 #include <rpc/rpc.h>
10611 #endif
10612 int main() {
10613 uint32 testvar;
10614 ; return 0; }
10616 if { (eval echo configure:10617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10617 rm -rf conftest*
10618 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10619 else
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -rf conftest*
10623 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10625 rm -f conftest*
10628 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10629 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10630 cat >> confdefs.h <<\EOF
10631 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10637 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10638 echo "configure:10639: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10639 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10640 echo $ac_n "(cached) $ac_c" 1>&6
10641 else
10643 cat > conftest.$ac_ext <<EOF
10644 #line 10645 "configure"
10645 #include "confdefs.h"
10646 #include <sys/types.h>
10647 #ifdef HAVE_SYS_SECURITY_H
10648 #include <sys/security.h>
10649 #include <prot.h>
10650 #endif /* HAVE_SYS_SECURITY_H */
10651 #if defined(HAVE_RPC_RPC_H)
10652 #include <rpc/rpc.h>
10653 #endif
10654 int main() {
10655 int testvar;
10656 ; return 0; }
10658 if { (eval echo configure:10659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10659 rm -rf conftest*
10660 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10661 else
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -rf conftest*
10665 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10667 rm -f conftest*
10670 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10671 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10672 cat >> confdefs.h <<\EOF
10673 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10678 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10679 echo "configure:10680: checking for test routines" >&5
10680 if test "$cross_compiling" = yes; then
10681 echo "configure: warning: cannot run when cross-compiling" 1>&2
10682 else
10683 cat > conftest.$ac_ext <<EOF
10684 #line 10685 "configure"
10685 #include "confdefs.h"
10686 #include "${srcdir-.}/tests/trivial.c"
10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10689 then
10690 echo "$ac_t""yes" 1>&6
10691 else
10692 echo "configure: failed program was:" >&5
10693 cat conftest.$ac_ext >&5
10694 rm -fr conftest*
10695 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10697 rm -fr conftest*
10701 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10702 echo "configure:10703: checking for ftruncate extend" >&5
10703 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10705 else
10707 if test "$cross_compiling" = yes; then
10708 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10709 else
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10713 #include "${srcdir-.}/tests/ftruncate.c"
10715 if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10716 then
10717 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10718 else
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10721 rm -fr conftest*
10722 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10724 rm -fr conftest*
10729 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10730 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10731 cat >> confdefs.h <<\EOF
10732 #define HAVE_FTRUNCATE_EXTEND 1
10737 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10738 echo "configure:10739: checking for broken getgroups" >&5
10739 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741 else
10743 if test "$cross_compiling" = yes; then
10744 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10745 else
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10749 #include "${srcdir-.}/tests/getgroups.c"
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10752 then
10753 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10754 else
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 rm -fr conftest*
10758 samba_cv_HAVE_BROKEN_GETGROUPS=no
10760 rm -fr conftest*
10765 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10766 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10767 cat >> confdefs.h <<\EOF
10768 #define HAVE_BROKEN_GETGROUPS 1
10773 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10774 echo "configure:10775: checking whether getpass should be replaced" >&5
10775 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10777 else
10779 SAVE_CPPFLAGS="$CPPFLAGS"
10780 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10785 #define REPLACE_GETPASS 1
10786 #define NO_CONFIG_H 1
10787 #define main dont_declare_main
10788 #include "${srcdir-.}/lib/getsmbpass.c"
10789 #undef main
10791 int main() {
10793 ; return 0; }
10795 if { (eval echo configure:10796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10796 rm -rf conftest*
10797 samba_cv_REPLACE_GETPASS=yes
10798 else
10799 echo "configure: failed program was:" >&5
10800 cat conftest.$ac_ext >&5
10801 rm -rf conftest*
10802 samba_cv_REPLACE_GETPASS=no
10804 rm -f conftest*
10805 CPPFLAGS="$SAVE_CPPFLAGS"
10809 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10810 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10811 cat >> confdefs.h <<\EOF
10812 #define REPLACE_GETPASS 1
10817 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10818 echo "configure:10819: checking for broken inet_ntoa" >&5
10819 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10821 else
10823 if test "$cross_compiling" = yes; then
10824 samba_cv_REPLACE_INET_NTOA=cross
10825 else
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10830 #include <stdio.h>
10831 #include <sys/types.h>
10832 #include <netinet/in.h>
10833 #ifdef HAVE_ARPA_INET_H
10834 #include <arpa/inet.h>
10835 #endif
10836 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10837 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10838 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10839 exit(1);}
10841 if { (eval echo configure:10842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10842 then
10843 samba_cv_REPLACE_INET_NTOA=yes
10844 else
10845 echo "configure: failed program was:" >&5
10846 cat conftest.$ac_ext >&5
10847 rm -fr conftest*
10848 samba_cv_REPLACE_INET_NTOA=no
10850 rm -fr conftest*
10855 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10856 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10857 cat >> confdefs.h <<\EOF
10858 #define REPLACE_INET_NTOA 1
10863 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10864 echo "configure:10865: checking for secure mkstemp" >&5
10865 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10866 echo $ac_n "(cached) $ac_c" 1>&6
10867 else
10869 if test "$cross_compiling" = yes; then
10870 samba_cv_HAVE_SECURE_MKSTEMP=cross
10871 else
10872 cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 #include <stdlib.h>
10876 #include <sys/types.h>
10877 #include <sys/stat.h>
10878 #include <unistd.h>
10879 main() {
10880 struct stat st;
10881 char tpl[20]="/tmp/test.XXXXXX";
10882 int fd = mkstemp(tpl);
10883 if (fd == -1) exit(1);
10884 unlink(tpl);
10885 if (fstat(fd, &st) != 0) exit(1);
10886 if ((st.st_mode & 0777) != 0600) exit(1);
10887 exit(0);
10890 if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10891 then
10892 samba_cv_HAVE_SECURE_MKSTEMP=yes
10893 else
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 rm -fr conftest*
10897 samba_cv_HAVE_SECURE_MKSTEMP=no
10899 rm -fr conftest*
10904 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10905 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10906 cat >> confdefs.h <<\EOF
10907 #define HAVE_SECURE_MKSTEMP 1
10912 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10913 echo "configure:10914: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10914 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10916 else
10918 if test "$cross_compiling" = yes; then
10919 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10920 else
10921 cat > conftest.$ac_ext <<EOF
10922 #line 10923 "configure"
10923 #include "confdefs.h"
10924 #include <unistd.h>
10925 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10927 if { (eval echo configure:10928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10928 then
10929 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10930 else
10931 echo "configure: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 rm -fr conftest*
10934 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10936 rm -fr conftest*
10941 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10942 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10943 cat >> confdefs.h <<\EOF
10944 #define SYSCONF_SC_NGROUPS_MAX 1
10949 echo $ac_n "checking for root""... $ac_c" 1>&6
10950 echo "configure:10951: checking for root" >&5
10951 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10952 echo $ac_n "(cached) $ac_c" 1>&6
10953 else
10955 if test "$cross_compiling" = yes; then
10956 samba_cv_HAVE_ROOT=cross
10957 else
10958 cat > conftest.$ac_ext <<EOF
10959 #line 10960 "configure"
10960 #include "confdefs.h"
10961 main() { exit(getuid() != 0); }
10963 if { (eval echo configure:10964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10964 then
10965 samba_cv_HAVE_ROOT=yes
10966 else
10967 echo "configure: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10969 rm -fr conftest*
10970 samba_cv_HAVE_ROOT=no
10972 rm -fr conftest*
10977 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10978 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10979 cat >> confdefs.h <<\EOF
10980 #define HAVE_ROOT 1
10983 else
10984 echo "configure: warning: running as non-root will disable some tests" 1>&2
10987 ##################
10988 # look for a method of finding the list of network interfaces
10989 iface=no;
10990 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10991 echo "configure:10992: checking for iface AIX" >&5
10992 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10993 echo $ac_n "(cached) $ac_c" 1>&6
10994 else
10996 if test "$cross_compiling" = yes; then
10997 samba_cv_HAVE_IFACE_AIX=cross
10998 else
10999 cat > conftest.$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11003 #define HAVE_IFACE_AIX 1
11004 #define AUTOCONF_TEST 1
11005 #include "confdefs.h"
11006 #include "${srcdir-.}/lib/interfaces.c"
11008 if { (eval echo configure:11009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11009 then
11010 samba_cv_HAVE_IFACE_AIX=yes
11011 else
11012 echo "configure: failed program was:" >&5
11013 cat conftest.$ac_ext >&5
11014 rm -fr conftest*
11015 samba_cv_HAVE_IFACE_AIX=no
11017 rm -fr conftest*
11022 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11023 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11024 iface=yes;cat >> confdefs.h <<\EOF
11025 #define HAVE_IFACE_AIX 1
11030 if test $iface = no; then
11031 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11032 echo "configure:11033: checking for iface ifconf" >&5
11033 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11035 else
11037 if test "$cross_compiling" = yes; then
11038 samba_cv_HAVE_IFACE_IFCONF=cross
11039 else
11040 cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11044 #define HAVE_IFACE_IFCONF 1
11045 #define AUTOCONF_TEST 1
11046 #include "confdefs.h"
11047 #include "${srcdir-.}/lib/interfaces.c"
11049 if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11050 then
11051 samba_cv_HAVE_IFACE_IFCONF=yes
11052 else
11053 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11055 rm -fr conftest*
11056 samba_cv_HAVE_IFACE_IFCONF=no
11058 rm -fr conftest*
11063 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11064 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11065 iface=yes;cat >> confdefs.h <<\EOF
11066 #define HAVE_IFACE_IFCONF 1
11072 if test $iface = no; then
11073 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11074 echo "configure:11075: checking for iface ifreq" >&5
11075 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11077 else
11079 if test "$cross_compiling" = yes; then
11080 samba_cv_HAVE_IFACE_IFREQ=cross
11081 else
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11086 #define HAVE_IFACE_IFREQ 1
11087 #define AUTOCONF_TEST 1
11088 #include "confdefs.h"
11089 #include "${srcdir-.}/lib/interfaces.c"
11091 if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11092 then
11093 samba_cv_HAVE_IFACE_IFREQ=yes
11094 else
11095 echo "configure: failed program was:" >&5
11096 cat conftest.$ac_ext >&5
11097 rm -fr conftest*
11098 samba_cv_HAVE_IFACE_IFREQ=no
11100 rm -fr conftest*
11105 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11106 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11107 iface=yes;cat >> confdefs.h <<\EOF
11108 #define HAVE_IFACE_IFREQ 1
11115 ################################################
11116 # look for a method of setting the effective uid
11117 seteuid=no;
11118 if test $seteuid = no; then
11119 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11120 echo "configure:11121: checking for setresuid" >&5
11121 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11122 echo $ac_n "(cached) $ac_c" 1>&6
11123 else
11125 if test "$cross_compiling" = yes; then
11126 samba_cv_USE_SETRESUID=cross
11127 else
11128 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11132 #define AUTOCONF_TEST 1
11133 #define USE_SETRESUID 1
11134 #include "confdefs.h"
11135 #include "${srcdir-.}/lib/util_sec.c"
11137 if { (eval echo configure:11138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11138 then
11139 samba_cv_USE_SETRESUID=yes
11140 else
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11143 rm -fr conftest*
11144 samba_cv_USE_SETRESUID=no
11146 rm -fr conftest*
11151 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11152 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11153 seteuid=yes;cat >> confdefs.h <<\EOF
11154 #define USE_SETRESUID 1
11161 if test $seteuid = no; then
11162 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11163 echo "configure:11164: checking for setreuid" >&5
11164 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11165 echo $ac_n "(cached) $ac_c" 1>&6
11166 else
11168 if test "$cross_compiling" = yes; then
11169 samba_cv_USE_SETREUID=cross
11170 else
11171 cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11175 #define AUTOCONF_TEST 1
11176 #define USE_SETREUID 1
11177 #include "confdefs.h"
11178 #include "${srcdir-.}/lib/util_sec.c"
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11181 then
11182 samba_cv_USE_SETREUID=yes
11183 else
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 rm -fr conftest*
11187 samba_cv_USE_SETREUID=no
11189 rm -fr conftest*
11194 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11195 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11196 seteuid=yes;cat >> confdefs.h <<\EOF
11197 #define USE_SETREUID 1
11203 if test $seteuid = no; then
11204 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11205 echo "configure:11206: checking for seteuid" >&5
11206 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11207 echo $ac_n "(cached) $ac_c" 1>&6
11208 else
11210 if test "$cross_compiling" = yes; then
11211 samba_cv_USE_SETEUID=cross
11212 else
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11217 #define AUTOCONF_TEST 1
11218 #define USE_SETEUID 1
11219 #include "confdefs.h"
11220 #include "${srcdir-.}/lib/util_sec.c"
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11223 then
11224 samba_cv_USE_SETEUID=yes
11225 else
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11228 rm -fr conftest*
11229 samba_cv_USE_SETEUID=no
11231 rm -fr conftest*
11236 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11237 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11238 seteuid=yes;cat >> confdefs.h <<\EOF
11239 #define USE_SETEUID 1
11245 if test $seteuid = no; then
11246 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11247 echo "configure:11248: checking for setuidx" >&5
11248 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
11250 else
11252 if test "$cross_compiling" = yes; then
11253 samba_cv_USE_SETUIDX=cross
11254 else
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11259 #define AUTOCONF_TEST 1
11260 #define USE_SETUIDX 1
11261 #include "confdefs.h"
11262 #include "${srcdir-.}/lib/util_sec.c"
11264 if { (eval echo configure:11265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11265 then
11266 samba_cv_USE_SETUIDX=yes
11267 else
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11270 rm -fr conftest*
11271 samba_cv_USE_SETUIDX=no
11273 rm -fr conftest*
11278 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11279 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11280 seteuid=yes;cat >> confdefs.h <<\EOF
11281 #define USE_SETUIDX 1
11288 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11289 echo "configure:11290: checking for working mmap" >&5
11290 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292 else
11294 if test "$cross_compiling" = yes; then
11295 samba_cv_HAVE_MMAP=cross
11296 else
11297 cat > conftest.$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11300 #include "${srcdir-.}/tests/shared_mmap.c"
11302 if { (eval echo configure:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11303 then
11304 samba_cv_HAVE_MMAP=yes
11305 else
11306 echo "configure: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11308 rm -fr conftest*
11309 samba_cv_HAVE_MMAP=no
11311 rm -fr conftest*
11316 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11317 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11318 cat >> confdefs.h <<\EOF
11319 #define HAVE_MMAP 1
11324 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11325 echo "configure:11326: checking for ftruncate needs root" >&5
11326 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11327 echo $ac_n "(cached) $ac_c" 1>&6
11328 else
11330 if test "$cross_compiling" = yes; then
11331 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11332 else
11333 cat > conftest.$ac_ext <<EOF
11334 #line 11335 "configure"
11335 #include "confdefs.h"
11336 #include "${srcdir-.}/tests/ftruncroot.c"
11338 if { (eval echo configure:11339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11339 then
11340 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11341 else
11342 echo "configure: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11344 rm -fr conftest*
11345 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11347 rm -fr conftest*
11352 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11353 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11354 cat >> confdefs.h <<\EOF
11355 #define FTRUNCATE_NEEDS_ROOT 1
11360 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11361 echo "configure:11362: checking for fcntl locking" >&5
11362 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11364 else
11366 if test "$cross_compiling" = yes; then
11367 samba_cv_HAVE_FCNTL_LOCK=cross
11368 else
11369 cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11372 #include "${srcdir-.}/tests/fcntl_lock.c"
11374 if { (eval echo configure:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11375 then
11376 samba_cv_HAVE_FCNTL_LOCK=yes
11377 else
11378 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11380 rm -fr conftest*
11381 samba_cv_HAVE_FCNTL_LOCK=no
11383 rm -fr conftest*
11388 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11389 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11390 cat >> confdefs.h <<\EOF
11391 #define HAVE_FCNTL_LOCK 1
11396 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11397 echo "configure:11398: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11398 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11399 echo $ac_n "(cached) $ac_c" 1>&6
11400 else
11402 if test "$cross_compiling" = yes; then
11403 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11404 else
11405 cat > conftest.$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11408 #include "${srcdir-.}/tests/fcntl_lock64.c"
11410 if { (eval echo configure:11411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11411 then
11412 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11413 else
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 rm -fr conftest*
11417 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11419 rm -fr conftest*
11424 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11425 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11426 cat >> confdefs.h <<\EOF
11427 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11431 else
11434 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11435 echo "configure:11436: checking for 64 bit fcntl locking" >&5
11436 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11437 echo $ac_n "(cached) $ac_c" 1>&6
11438 else
11440 if test "$cross_compiling" = yes; then
11441 samba_cv_HAVE_STRUCT_FLOCK64=cross
11442 else
11443 cat > conftest.$ac_ext <<EOF
11444 #line 11445 "configure"
11445 #include "confdefs.h"
11447 #if defined(HAVE_UNISTD_H)
11448 #include <unistd.h>
11449 #endif
11450 #include <stdio.h>
11451 #include <stdlib.h>
11453 #ifdef HAVE_FCNTL_H
11454 #include <fcntl.h>
11455 #endif
11457 #ifdef HAVE_SYS_FCNTL_H
11458 #include <sys/fcntl.h>
11459 #endif
11460 main() { struct flock64 fl64;
11461 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11462 exit(0);
11463 #else
11464 exit(1);
11465 #endif
11468 if { (eval echo configure:11469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11469 then
11470 samba_cv_HAVE_STRUCT_FLOCK64=yes
11471 else
11472 echo "configure: failed program was:" >&5
11473 cat conftest.$ac_ext >&5
11474 rm -fr conftest*
11475 samba_cv_HAVE_STRUCT_FLOCK64=no
11477 rm -fr conftest*
11482 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11484 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11485 cat >> confdefs.h <<\EOF
11486 #define HAVE_STRUCT_FLOCK64 1
11492 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11493 echo "configure:11494: checking for st_blocks in struct stat" >&5
11494 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496 else
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 #include <sys/types.h>
11502 #include <sys/stat.h>
11503 #include <unistd.h>
11504 int main() {
11505 struct stat st; st.st_blocks = 0;
11506 ; return 0; }
11508 if { (eval echo configure:11509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11509 rm -rf conftest*
11510 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11511 else
11512 echo "configure: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 rm -rf conftest*
11515 samba_cv_HAVE_STAT_ST_BLOCKS=no
11517 rm -f conftest*
11520 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11521 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11522 cat >> confdefs.h <<\EOF
11523 #define HAVE_STAT_ST_BLOCKS 1
11528 case "$host_os" in
11529 *linux*)
11530 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11531 echo "configure:11532: checking for broken RedHat 7.2 system header files" >&5
11532 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11533 echo $ac_n "(cached) $ac_c" 1>&6
11534 else
11536 cat > conftest.$ac_ext <<EOF
11537 #line 11538 "configure"
11538 #include "confdefs.h"
11540 #ifdef HAVE_SYS_VFS_H
11541 #include <sys/vfs.h>
11542 #endif
11543 #ifdef HAVE_SYS_CAPABILITY_H
11544 #include <sys/capability.h>
11545 #endif
11547 int main() {
11548 int i;
11549 ; return 0; }
11551 if { (eval echo configure:11552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11552 rm -rf conftest*
11553 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11554 else
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 rm -rf conftest*
11558 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11560 rm -f conftest*
11563 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11564 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11565 cat >> confdefs.h <<\EOF
11566 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11571 esac
11573 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11574 echo "configure:11575: checking for broken nisplus include files" >&5
11575 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11576 echo $ac_n "(cached) $ac_c" 1>&6
11577 else
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 #include <sys/acl.h>
11583 #if defined(HAVE_RPCSVC_NIS_H)
11584 #include <rpcsvc/nis.h>
11585 #endif
11586 int main() {
11587 int i;
11588 ; return 0; }
11590 if { (eval echo configure:11591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11591 rm -rf conftest*
11592 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11593 else
11594 echo "configure: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11596 rm -rf conftest*
11597 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11599 rm -f conftest*
11602 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11603 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11604 cat >> confdefs.h <<\EOF
11605 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11611 #################################################
11612 # check for smbwrapper support
11613 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11614 echo "configure:11615: checking whether to use smbwrapper" >&5
11615 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11616 if test "${with_smbwrapper+set}" = set; then
11617 withval="$with_smbwrapper"
11618 case "$withval" in
11619 yes)
11620 echo "$ac_t""yes" 1>&6
11621 cat >> confdefs.h <<\EOF
11622 #define WITH_SMBWRAPPER 1
11625 WRAPPROG="bin/smbsh"
11626 WRAP="bin/smbwrapper.$SHLIBEXT"
11628 if test x$ATTEMPT_WRAP32_BUILD = x; then
11629 WRAP32=""
11630 else
11631 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11634 # Conditions under which smbwrapper should not be built.
11636 if test x$PICFLAG = x; then
11637 echo No support for PIC code - disabling smbwrapper and smbsh
11638 WRAPPROG=""
11639 WRAP=""
11640 WRAP32=""
11641 elif test x$ac_cv_func_syscall = xno; then
11642 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11643 WRAPPROG=""
11644 WRAP=""
11645 WRAP32=""
11649 echo "$ac_t""no" 1>&6
11651 esac
11652 else
11653 echo "$ac_t""no" 1>&6
11658 #################################################
11659 # check for the AFS filesystem
11660 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11661 echo "configure:11662: checking whether to use AFS" >&5
11662 # Check whether --with-afs or --without-afs was given.
11663 if test "${with_afs+set}" = set; then
11664 withval="$with_afs"
11665 case "$withval" in
11666 yes)
11667 echo "$ac_t""yes" 1>&6
11668 cat >> confdefs.h <<\EOF
11669 #define WITH_AFS 1
11674 echo "$ac_t""no" 1>&6
11676 esac
11677 else
11678 echo "$ac_t""no" 1>&6
11684 #################################################
11685 # check for the DFS auth system
11686 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11687 echo "configure:11688: checking whether to use DCE/DFS auth" >&5
11688 # Check whether --with-dfs or --without-dfs was given.
11689 if test "${with_dfs+set}" = set; then
11690 withval="$with_dfs"
11691 case "$withval" in
11692 yes)
11693 echo "$ac_t""yes" 1>&6
11694 cat >> confdefs.h <<\EOF
11695 #define WITH_DFS 1
11700 echo "$ac_t""no" 1>&6
11702 esac
11703 else
11704 echo "$ac_t""no" 1>&6
11709 #################################################
11710 # check for Kerberos IV auth system
11711 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11712 echo "configure:11713: checking whether to use Kerberos IV" >&5
11713 # Check whether --with-krb4 or --without-krb4 was given.
11714 if test "${with_krb4+set}" = set; then
11715 withval="$with_krb4"
11716 case "$withval" in
11717 yes)
11718 echo "$ac_t""yes" 1>&6
11719 cat >> confdefs.h <<\EOF
11720 #define KRB4_AUTH 1
11723 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11724 echo "configure:11725: checking for dn_expand in -lresolv" >&5
11725 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11727 echo $ac_n "(cached) $ac_c" 1>&6
11728 else
11729 ac_save_LIBS="$LIBS"
11730 LIBS="-lresolv $LIBS"
11731 cat > conftest.$ac_ext <<EOF
11732 #line 11733 "configure"
11733 #include "confdefs.h"
11734 /* Override any gcc2 internal prototype to avoid an error. */
11735 /* We use char because int might match the return type of a gcc2
11736 builtin and then its argument prototype would still apply. */
11737 char dn_expand();
11739 int main() {
11740 dn_expand()
11741 ; return 0; }
11743 if { (eval echo configure:11744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11744 rm -rf conftest*
11745 eval "ac_cv_lib_$ac_lib_var=yes"
11746 else
11747 echo "configure: failed program was:" >&5
11748 cat conftest.$ac_ext >&5
11749 rm -rf conftest*
11750 eval "ac_cv_lib_$ac_lib_var=no"
11752 rm -f conftest*
11753 LIBS="$ac_save_LIBS"
11756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11757 echo "$ac_t""yes" 1>&6
11758 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11760 cat >> confdefs.h <<EOF
11761 #define $ac_tr_lib 1
11764 LIBS="-lresolv $LIBS"
11766 else
11767 echo "$ac_t""no" 1>&6
11770 LIBS="$LIBS -lkrb -ldes"
11771 CFLAGS="$CFLAGS -I$withval/include"
11772 LDFLAGS="$LDFLAGS -L$withval/lib"
11775 echo "$ac_t""no" 1>&6
11777 esac
11778 else
11779 echo "$ac_t""no" 1>&6
11784 #################################################
11785 # check for Kerberos 5 auth system
11786 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11787 echo "configure:11788: checking whether to use Kerberos 5" >&5
11788 # Check whether --with-krb5 or --without-krb5 was given.
11789 if test "${with_krb5+set}" = set; then
11790 withval="$with_krb5"
11791 case "$withval" in
11792 yes)
11793 echo "$ac_t""yes" 1>&6
11794 cat >> confdefs.h <<\EOF
11795 #define KRB5_AUTH 1
11798 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11799 CFLAGS="$CFLAGS -I$withval/include"
11800 LDFLAGS="$LDFLAGS -L$withval/lib"
11803 echo "$ac_t""no" 1>&6
11805 esac
11806 else
11807 echo "$ac_t""no" 1>&6
11812 #################################################
11813 # check for automount support
11814 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11815 echo "configure:11816: checking whether to use AUTOMOUNT" >&5
11816 # Check whether --with-automount or --without-automount was given.
11817 if test "${with_automount+set}" = set; then
11818 withval="$with_automount"
11819 case "$withval" in
11820 yes)
11821 echo "$ac_t""yes" 1>&6
11822 cat >> confdefs.h <<\EOF
11823 #define WITH_AUTOMOUNT 1
11828 echo "$ac_t""no" 1>&6
11830 esac
11831 else
11832 echo "$ac_t""no" 1>&6
11837 #################################################
11838 # check for smbmount support
11839 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11840 echo "configure:11841: checking whether to use SMBMOUNT" >&5
11841 # Check whether --with-smbmount or --without-smbmount was given.
11842 if test "${with_smbmount+set}" = set; then
11843 withval="$with_smbmount"
11844 case "$withval" in
11845 yes)
11846 case "$host_os" in
11847 *linux*)
11848 echo "$ac_t""yes" 1>&6
11849 cat >> confdefs.h <<\EOF
11850 #define WITH_SMBMOUNT 1
11853 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11856 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11858 esac
11861 echo "$ac_t""no" 1>&6
11862 MPROGS=
11864 esac
11865 else
11866 echo "$ac_t""no" 1>&6
11867 MPROGS=
11873 #################################################
11874 # check for a PAM password database
11875 with_pam_for_crypt=no
11876 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11877 echo "configure:11878: checking whether to use PAM password database" >&5
11878 # Check whether --with-pam or --without-pam was given.
11879 if test "${with_pam+set}" = set; then
11880 withval="$with_pam"
11881 case "$withval" in
11882 yes)
11883 echo "$ac_t""yes" 1>&6
11884 cat >> confdefs.h <<\EOF
11885 #define WITH_PAM 1
11888 LIBS="$LIBS -lpam"
11889 with_pam_for_crypt=yes
11892 echo "$ac_t""no" 1>&6
11894 esac
11895 else
11896 echo "$ac_t""no" 1>&6
11901 # we can't build a pam module if we don't have pam.
11902 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11903 echo "configure:11904: checking for pam_get_data in -lpam" >&5
11904 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11907 else
11908 ac_save_LIBS="$LIBS"
11909 LIBS="-lpam $LIBS"
11910 cat > conftest.$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11913 /* Override any gcc2 internal prototype to avoid an error. */
11914 /* We use char because int might match the return type of a gcc2
11915 builtin and then its argument prototype would still apply. */
11916 char pam_get_data();
11918 int main() {
11919 pam_get_data()
11920 ; return 0; }
11922 if { (eval echo configure:11923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11923 rm -rf conftest*
11924 eval "ac_cv_lib_$ac_lib_var=yes"
11925 else
11926 echo "configure: failed program was:" >&5
11927 cat conftest.$ac_ext >&5
11928 rm -rf conftest*
11929 eval "ac_cv_lib_$ac_lib_var=no"
11931 rm -f conftest*
11932 LIBS="$ac_save_LIBS"
11935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11936 echo "$ac_t""yes" 1>&6
11937 cat >> confdefs.h <<\EOF
11938 #define HAVE_LIBPAM 1
11941 else
11942 echo "$ac_t""no" 1>&6
11946 #################################################
11947 # check for pam_smbpass support
11948 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11949 echo "configure:11950: checking whether to use pam_smbpass" >&5
11950 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11951 if test "${with_pam_smbpass+set}" = set; then
11952 withval="$with_pam_smbpass"
11953 case "$withval" in
11954 yes)
11955 echo "$ac_t""yes" 1>&6
11957 # Conditions under which pam_smbpass should not be built.
11959 if test x$PICFLAG = x; then
11960 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11961 PAM_MOD=""
11962 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11963 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11964 PAM_MOD=""
11965 else
11966 cat >> confdefs.h <<\EOF
11967 #define WITH_PAM_SMBPASS 1
11970 PAM_MOD="bin/pam_smbpass.so"
11974 echo "$ac_t""no" 1>&6
11976 esac
11977 else
11978 echo "$ac_t""no" 1>&6
11984 ###############################################
11985 # test for where we get crypt() from, but only
11986 # if not using PAM
11987 if test $with_pam_for_crypt = no; then
11988 for ac_func in crypt
11990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11991 echo "configure:11992: checking for $ac_func" >&5
11992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11993 echo $ac_n "(cached) $ac_c" 1>&6
11994 else
11995 cat > conftest.$ac_ext <<EOF
11996 #line 11997 "configure"
11997 #include "confdefs.h"
11998 /* System header to define __stub macros and hopefully few prototypes,
11999 which can conflict with char $ac_func(); below. */
12000 #include <assert.h>
12001 /* Override any gcc2 internal prototype to avoid an error. */
12002 /* We use char because int might match the return type of a gcc2
12003 builtin and then its argument prototype would still apply. */
12004 char $ac_func();
12006 int main() {
12008 /* The GNU C library defines this for functions which it implements
12009 to always fail with ENOSYS. Some functions are actually named
12010 something starting with __ and the normal name is an alias. */
12011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12012 choke me
12013 #else
12014 $ac_func();
12015 #endif
12017 ; return 0; }
12019 if { (eval echo configure:12020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12020 rm -rf conftest*
12021 eval "ac_cv_func_$ac_func=yes"
12022 else
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 rm -rf conftest*
12026 eval "ac_cv_func_$ac_func=no"
12028 rm -f conftest*
12031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12032 echo "$ac_t""yes" 1>&6
12033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12034 cat >> confdefs.h <<EOF
12035 #define $ac_tr_func 1
12038 else
12039 echo "$ac_t""no" 1>&6
12041 done
12043 if test x"$ac_cv_func_crypt" = x"no"; then
12044 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12045 echo "configure:12046: checking for crypt in -lcrypt" >&5
12046 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
12049 else
12050 ac_save_LIBS="$LIBS"
12051 LIBS="-lcrypt $LIBS"
12052 cat > conftest.$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12055 /* Override any gcc2 internal prototype to avoid an error. */
12056 /* We use char because int might match the return type of a gcc2
12057 builtin and then its argument prototype would still apply. */
12058 char crypt();
12060 int main() {
12061 crypt()
12062 ; return 0; }
12064 if { (eval echo configure:12065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12065 rm -rf conftest*
12066 eval "ac_cv_lib_$ac_lib_var=yes"
12067 else
12068 echo "configure: failed program was:" >&5
12069 cat conftest.$ac_ext >&5
12070 rm -rf conftest*
12071 eval "ac_cv_lib_$ac_lib_var=no"
12073 rm -f conftest*
12074 LIBS="$ac_save_LIBS"
12077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12078 echo "$ac_t""yes" 1>&6
12079 LIBS="$LIBS -lcrypt";
12080 cat >> confdefs.h <<\EOF
12081 #define HAVE_CRYPT 1
12084 else
12085 echo "$ac_t""no" 1>&6
12092 ## moved after the check for -lcrypt in order to
12093 ## ensure that the necessary libraries are included
12094 ## check checking for truncated salt. Wrapped by the
12095 ## $with_pam_for_crypt variable as above --jerry
12097 if test $with_pam_for_crypt = no; then
12098 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12099 echo "configure:12100: checking for a crypt that needs truncated salt" >&5
12100 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12101 echo $ac_n "(cached) $ac_c" 1>&6
12102 else
12104 if test "$cross_compiling" = yes; then
12105 samba_cv_HAVE_TRUNCATED_SALT=cross
12106 else
12107 cat > conftest.$ac_ext <<EOF
12108 #line 12109 "configure"
12109 #include "confdefs.h"
12110 #include "${srcdir-.}/tests/crypttest.c"
12112 if { (eval echo configure:12113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12113 then
12114 samba_cv_HAVE_TRUNCATED_SALT=no
12115 else
12116 echo "configure: failed program was:" >&5
12117 cat conftest.$ac_ext >&5
12118 rm -fr conftest*
12119 samba_cv_HAVE_TRUNCATED_SALT=yes
12121 rm -fr conftest*
12126 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12127 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12128 cat >> confdefs.h <<\EOF
12129 #define HAVE_TRUNCATED_SALT 1
12136 ########################################################################################
12138 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12140 ########################################################################################
12142 ## set the with_smbpasswd_sam as the default
12143 with_smbpasswd_sam=yes
12147 #################################################
12148 # check for a TDB password database
12149 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12150 echo "configure:12151: checking whether to use TDB SAM database" >&5
12151 # Check whether --with-tdbsam or --without-tdbsam was given.
12152 if test "${with_tdbsam+set}" = set; then
12153 withval="$with_tdbsam"
12154 case "$withval" in
12155 yes)
12156 echo "$ac_t""yes" 1>&6
12157 cat >> confdefs.h <<\EOF
12158 #define WITH_TDB_SAM 1
12161 with_smbpasswd_sam=no
12164 echo "$ac_t""no" 1>&6
12166 esac
12167 else
12168 echo "$ac_t""no" 1>&6
12173 #################################################
12174 # check for a LDAP password database
12175 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12176 echo "configure:12177: checking whether to use LDAP SAM database" >&5
12177 # Check whether --with-ldapsam or --without-ldapsam was given.
12178 if test "${with_ldapsam+set}" = set; then
12179 withval="$with_ldapsam"
12180 case "$withval" in
12181 yes)
12182 echo "$ac_t""yes" 1>&6
12183 cat >> confdefs.h <<\EOF
12184 #define WITH_LDAP_SAM 1
12187 LIBS="-lldap $LIBS"
12188 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12189 echo "configure:12190: checking for ber_bvfree in -llber" >&5
12190 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12192 echo $ac_n "(cached) $ac_c" 1>&6
12193 else
12194 ac_save_LIBS="$LIBS"
12195 LIBS="-llber $LIBS"
12196 cat > conftest.$ac_ext <<EOF
12197 #line 12198 "configure"
12198 #include "confdefs.h"
12199 /* Override any gcc2 internal prototype to avoid an error. */
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12202 char ber_bvfree();
12204 int main() {
12205 ber_bvfree()
12206 ; return 0; }
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209 rm -rf conftest*
12210 eval "ac_cv_lib_$ac_lib_var=yes"
12211 else
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215 eval "ac_cv_lib_$ac_lib_var=no"
12217 rm -f conftest*
12218 LIBS="$ac_save_LIBS"
12221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12222 echo "$ac_t""yes" 1>&6
12223 LIBS="$LIBS -llber"
12224 else
12225 echo "$ac_t""no" 1>&6
12228 LIBS="-lresolv $LIBS"
12229 for ac_func in ldap_start_tls_s
12231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12232 echo "configure:12233: checking for $ac_func" >&5
12233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12235 else
12236 cat > conftest.$ac_ext <<EOF
12237 #line 12238 "configure"
12238 #include "confdefs.h"
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char $ac_func(); below. */
12241 #include <assert.h>
12242 /* Override any gcc2 internal prototype to avoid an error. */
12243 /* We use char because int might match the return type of a gcc2
12244 builtin and then its argument prototype would still apply. */
12245 char $ac_func();
12247 int main() {
12249 /* The GNU C library defines this for functions which it implements
12250 to always fail with ENOSYS. Some functions are actually named
12251 something starting with __ and the normal name is an alias. */
12252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12253 choke me
12254 #else
12255 $ac_func();
12256 #endif
12258 ; return 0; }
12260 if { (eval echo configure:12261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12261 rm -rf conftest*
12262 eval "ac_cv_func_$ac_func=yes"
12263 else
12264 echo "configure: failed program was:" >&5
12265 cat conftest.$ac_ext >&5
12266 rm -rf conftest*
12267 eval "ac_cv_func_$ac_func=no"
12269 rm -f conftest*
12272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12273 echo "$ac_t""yes" 1>&6
12274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12275 cat >> confdefs.h <<EOF
12276 #define $ac_tr_func 1
12279 else
12280 echo "$ac_t""no" 1>&6
12282 done
12284 with_smbpasswd_sam=no
12287 echo "$ac_t""no" 1>&6
12289 esac
12290 else
12291 echo "$ac_t""no" 1>&6
12296 #################################################
12297 # check for a NISPLUS password database
12298 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12299 echo "configure:12300: checking whether to use NISPLUS SAM database" >&5
12300 # Check whether --with-nisplussam or --without-nisplussam was given.
12301 if test "${with_nisplussam+set}" = set; then
12302 withval="$with_nisplussam"
12303 case "$withval" in
12304 yes)
12305 echo "$ac_t""yes" 1>&6
12306 cat >> confdefs.h <<\EOF
12307 #define WITH_NISPLUS_SAM 1
12310 with_smbpasswd_sam=no
12313 echo "$ac_t""no" 1>&6
12315 esac
12316 else
12317 echo "$ac_t""no" 1>&6
12322 ################################################
12323 # This test should come last because the
12324 # smbpasswd SAM is only used if another format
12325 # has not been defined
12326 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12327 echo "configure:12328: checking whether to use traditional smbpasswd file" >&5
12328 if test $with_smbpasswd_sam = yes; then
12329 echo "$ac_t""yes" 1>&6
12330 cat >> confdefs.h <<\EOF
12331 #define WITH_SMBPASSWD_SAM 1
12334 PDBEDIT=""
12335 else
12336 echo "$ac_t""no" 1>&6
12337 PDBEDIT=bin/pdbedit
12340 ########################################################################################
12342 ## END OF TESTS FOR SAM BACKENDS.
12344 ########################################################################################
12346 #################################################
12347 # check for a NISPLUS_HOME support
12348 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12349 echo "configure:12350: checking whether to use NISPLUS_HOME" >&5
12350 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12351 if test "${with_nisplus_home+set}" = set; then
12352 withval="$with_nisplus_home"
12353 case "$withval" in
12354 yes)
12355 echo "$ac_t""yes" 1>&6
12356 cat >> confdefs.h <<\EOF
12357 #define WITH_NISPLUS_HOME 1
12362 echo "$ac_t""no" 1>&6
12364 esac
12365 else
12366 echo "$ac_t""no" 1>&6
12371 #################################################
12372 # check for the secure socket layer
12373 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12374 echo "configure:12375: checking whether to use SSL" >&5
12375 # Check whether --with-ssl or --without-ssl was given.
12376 if test "${with_ssl+set}" = set; then
12377 withval="$with_ssl"
12378 case "$withval" in
12379 yes)
12380 echo "$ac_t""yes" 1>&6
12381 cat >> confdefs.h <<\EOF
12382 #define WITH_SSL 1
12385 withval="/usr/local/ssl" # default
12387 if test "${with_sslinc+set}" = set; then
12389 withval="$with_sslinc"
12390 case "$withval" in
12391 yes|no)
12392 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12393 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12396 CFLAGS="-I${withval} $CFLAGS"
12398 esac
12400 else
12402 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12406 if test "${with_ssllib+set}" = set; then
12408 withval="$with_ssllib"
12409 case "$withval" in
12410 yes|no)
12411 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12412 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12415 LDFLAGS="-L${withval}/lib $LDFLAGS"
12417 esac
12419 else
12421 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12425 LIBS="-lssl -lcrypto $LIBS"
12427 # if test ! -d ${withval}; then
12428 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12429 # exit 1
12430 # fi
12432 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12436 echo "$ac_t""no" 1>&6
12438 esac
12439 else
12440 echo "$ac_t""no" 1>&6
12445 #################################################
12446 # check for syslog logging
12447 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12448 echo "configure:12449: checking whether to use syslog logging" >&5
12449 # Check whether --with-syslog or --without-syslog was given.
12450 if test "${with_syslog+set}" = set; then
12451 withval="$with_syslog"
12452 case "$withval" in
12453 yes)
12454 echo "$ac_t""yes" 1>&6
12455 cat >> confdefs.h <<\EOF
12456 #define WITH_SYSLOG 1
12461 echo "$ac_t""no" 1>&6
12463 esac
12464 else
12465 echo "$ac_t""no" 1>&6
12470 #################################################
12471 # check for a shared memory profiling support
12472 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12473 echo "configure:12474: checking whether to use profiling" >&5
12474 # Check whether --with-profiling-data or --without-profiling-data was given.
12475 if test "${with_profiling_data+set}" = set; then
12476 withval="$with_profiling_data"
12477 case "$withval" in
12478 yes)
12479 echo "$ac_t""yes" 1>&6
12480 cat >> confdefs.h <<\EOF
12481 #define WITH_PROFILE 1
12486 echo "$ac_t""no" 1>&6
12488 esac
12489 else
12490 echo "$ac_t""no" 1>&6
12496 #################################################
12497 # check for experimental disk-quotas support
12498 QUOTAOBJS=smbd/noquotas.o
12500 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12501 echo "configure:12502: checking whether to support disk-quotas" >&5
12502 # Check whether --with-quotas or --without-quotas was given.
12503 if test "${with_quotas+set}" = set; then
12504 withval="$with_quotas"
12505 case "$withval" in
12506 yes)
12507 echo "$ac_t""yes" 1>&6
12508 QUOTAOBJS=smbd/quotas.o
12511 echo "$ac_t""no" 1>&6
12513 esac
12514 else
12515 echo "$ac_t""no" 1>&6
12521 #################################################
12522 # check for experimental utmp accounting
12524 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12525 echo "configure:12526: checking whether to support utmp accounting" >&5
12526 # Check whether --with-utmp or --without-utmp was given.
12527 if test "${with_utmp+set}" = set; then
12528 withval="$with_utmp"
12529 case "$withval" in
12530 yes)
12531 echo "$ac_t""yes" 1>&6
12532 cat >> confdefs.h <<\EOF
12533 #define WITH_UTMP 1
12538 echo "$ac_t""no" 1>&6
12540 esac
12541 else
12542 echo "$ac_t""no" 1>&6
12547 #################################################
12548 # check for MS Dfs support
12550 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12551 echo "configure:12552: checking whether to support Microsoft Dfs" >&5
12552 # Check whether --with-msdfs or --without-msdfs was given.
12553 if test "${with_msdfs+set}" = set; then
12554 withval="$with_msdfs"
12555 case "$withval" in
12556 yes)
12557 echo "$ac_t""yes" 1>&6
12558 cat >> confdefs.h <<\EOF
12559 #define WITH_MSDFS 1
12564 echo "$ac_t""no" 1>&6
12566 esac
12567 else
12568 echo "$ac_t""no" 1>&6
12573 #################################################
12574 # should we build libsmbclient?
12576 LIBSMBCLIENT_SHARED=
12577 LIBSMBCLIENT=
12578 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12579 echo "configure:12580: checking whether to build the libsmbclient shared library" >&5
12580 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12581 if test "${with_libsmbclient+set}" = set; then
12582 withval="$with_libsmbclient"
12583 case "$withval" in
12584 yes)
12585 if test $BLDSHARED = true; then
12586 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12587 LIBSMBCLIENT=libsmbclient
12588 echo "$ac_t""yes" 1>&6
12589 else
12590 echo "$ac_t""no shared library support" 1>&6
12594 echo "$ac_t""no" 1>&6
12596 esac
12597 else
12598 echo "$ac_t""no" 1>&6
12603 #################################################
12604 # these tests are taken from the GNU fileutils package
12605 echo "checking how to get filesystem space usage" 1>&6
12606 echo "configure:12607: checking how to get filesystem space usage" >&5
12607 space=no
12609 # Test for statvfs64.
12610 if test $space = no; then
12611 # SVR4
12612 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12613 echo "configure:12614: checking statvfs64 function (SVR4)" >&5
12614 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12615 echo $ac_n "(cached) $ac_c" 1>&6
12616 else
12617 if test "$cross_compiling" = yes; then
12618 fu_cv_sys_stat_statvfs64=cross
12619 else
12620 cat > conftest.$ac_ext <<EOF
12621 #line 12622 "configure"
12622 #include "confdefs.h"
12624 #if defined(HAVE_UNISTD_H)
12625 #include <unistd.h>
12626 #endif
12627 #include <sys/types.h>
12628 #include <sys/statvfs.h>
12629 main ()
12631 struct statvfs64 fsd;
12632 exit (statvfs64 (".", &fsd));
12635 if { (eval echo configure:12636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12636 then
12637 fu_cv_sys_stat_statvfs64=yes
12638 else
12639 echo "configure: failed program was:" >&5
12640 cat conftest.$ac_ext >&5
12641 rm -fr conftest*
12642 fu_cv_sys_stat_statvfs64=no
12644 rm -fr conftest*
12649 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12650 if test $fu_cv_sys_stat_statvfs64 = yes; then
12651 space=yes
12652 cat >> confdefs.h <<\EOF
12653 #define STAT_STATVFS64 1
12659 # Perform only the link test since it seems there are no variants of the
12660 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12661 # because that got a false positive on SCO OSR5. Adding the declaration
12662 # of a `struct statvfs' causes this test to fail (as it should) on such
12663 # systems. That system is reported to work fine with STAT_STATFS4 which
12664 # is what it gets when this test fails.
12665 if test $space = no; then
12666 # SVR4
12667 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12668 echo "configure:12669: checking statvfs function (SVR4)" >&5
12669 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
12671 else
12672 cat > conftest.$ac_ext <<EOF
12673 #line 12674 "configure"
12674 #include "confdefs.h"
12675 #include <sys/types.h>
12676 #include <sys/statvfs.h>
12677 int main() {
12678 struct statvfs fsd; statvfs (0, &fsd);
12679 ; return 0; }
12681 if { (eval echo configure:12682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12682 rm -rf conftest*
12683 fu_cv_sys_stat_statvfs=yes
12684 else
12685 echo "configure: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12687 rm -rf conftest*
12688 fu_cv_sys_stat_statvfs=no
12690 rm -f conftest*
12693 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12694 if test $fu_cv_sys_stat_statvfs = yes; then
12695 space=yes
12696 cat >> confdefs.h <<\EOF
12697 #define STAT_STATVFS 1
12703 if test $space = no; then
12704 # DEC Alpha running OSF/1
12705 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12706 echo "configure:12707: checking for 3-argument statfs function (DEC OSF/1)" >&5
12707 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12709 else
12710 if test "$cross_compiling" = yes; then
12711 fu_cv_sys_stat_statfs3_osf1=no
12712 else
12713 cat > conftest.$ac_ext <<EOF
12714 #line 12715 "configure"
12715 #include "confdefs.h"
12717 #include <sys/param.h>
12718 #include <sys/types.h>
12719 #include <sys/mount.h>
12720 main ()
12722 struct statfs fsd;
12723 fsd.f_fsize = 0;
12724 exit (statfs (".", &fsd, sizeof (struct statfs)));
12727 if { (eval echo configure:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12728 then
12729 fu_cv_sys_stat_statfs3_osf1=yes
12730 else
12731 echo "configure: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12733 rm -fr conftest*
12734 fu_cv_sys_stat_statfs3_osf1=no
12736 rm -fr conftest*
12741 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12742 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12743 space=yes
12744 cat >> confdefs.h <<\EOF
12745 #define STAT_STATFS3_OSF1 1
12751 if test $space = no; then
12752 # AIX
12753 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12754 echo "configure:12755: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12755 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12756 echo $ac_n "(cached) $ac_c" 1>&6
12757 else
12758 if test "$cross_compiling" = yes; then
12759 fu_cv_sys_stat_statfs2_bsize=no
12760 else
12761 cat > conftest.$ac_ext <<EOF
12762 #line 12763 "configure"
12763 #include "confdefs.h"
12765 #ifdef HAVE_SYS_PARAM_H
12766 #include <sys/param.h>
12767 #endif
12768 #ifdef HAVE_SYS_MOUNT_H
12769 #include <sys/mount.h>
12770 #endif
12771 #ifdef HAVE_SYS_VFS_H
12772 #include <sys/vfs.h>
12773 #endif
12774 main ()
12776 struct statfs fsd;
12777 fsd.f_bsize = 0;
12778 exit (statfs (".", &fsd));
12781 if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12782 then
12783 fu_cv_sys_stat_statfs2_bsize=yes
12784 else
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 rm -fr conftest*
12788 fu_cv_sys_stat_statfs2_bsize=no
12790 rm -fr conftest*
12795 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12796 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12797 space=yes
12798 cat >> confdefs.h <<\EOF
12799 #define STAT_STATFS2_BSIZE 1
12805 if test $space = no; then
12806 # SVR3
12807 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12808 echo "configure:12809: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12809 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12810 echo $ac_n "(cached) $ac_c" 1>&6
12811 else
12812 if test "$cross_compiling" = yes; then
12813 fu_cv_sys_stat_statfs4=no
12814 else
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <sys/types.h>
12819 #include <sys/statfs.h>
12820 main ()
12822 struct statfs fsd;
12823 exit (statfs (".", &fsd, sizeof fsd, 0));
12826 if { (eval echo configure:12827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12827 then
12828 fu_cv_sys_stat_statfs4=yes
12829 else
12830 echo "configure: failed program was:" >&5
12831 cat conftest.$ac_ext >&5
12832 rm -fr conftest*
12833 fu_cv_sys_stat_statfs4=no
12835 rm -fr conftest*
12840 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12841 if test $fu_cv_sys_stat_statfs4 = yes; then
12842 space=yes
12843 cat >> confdefs.h <<\EOF
12844 #define STAT_STATFS4 1
12850 if test $space = no; then
12851 # 4.4BSD and NetBSD
12852 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12853 echo "configure:12854: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12854 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12855 echo $ac_n "(cached) $ac_c" 1>&6
12856 else
12857 if test "$cross_compiling" = yes; then
12858 fu_cv_sys_stat_statfs2_fsize=no
12859 else
12860 cat > conftest.$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12863 #include <sys/types.h>
12864 #ifdef HAVE_SYS_PARAM_H
12865 #include <sys/param.h>
12866 #endif
12867 #ifdef HAVE_SYS_MOUNT_H
12868 #include <sys/mount.h>
12869 #endif
12870 main ()
12872 struct statfs fsd;
12873 fsd.f_fsize = 0;
12874 exit (statfs (".", &fsd));
12877 if { (eval echo configure:12878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12878 then
12879 fu_cv_sys_stat_statfs2_fsize=yes
12880 else
12881 echo "configure: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12883 rm -fr conftest*
12884 fu_cv_sys_stat_statfs2_fsize=no
12886 rm -fr conftest*
12891 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12892 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12893 space=yes
12894 cat >> confdefs.h <<\EOF
12895 #define STAT_STATFS2_FSIZE 1
12901 if test $space = no; then
12902 # Ultrix
12903 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12904 echo "configure:12905: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12905 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12907 else
12908 if test "$cross_compiling" = yes; then
12909 fu_cv_sys_stat_fs_data=no
12910 else
12911 cat > conftest.$ac_ext <<EOF
12912 #line 12913 "configure"
12913 #include "confdefs.h"
12914 #include <sys/types.h>
12915 #ifdef HAVE_SYS_PARAM_H
12916 #include <sys/param.h>
12917 #endif
12918 #ifdef HAVE_SYS_MOUNT_H
12919 #include <sys/mount.h>
12920 #endif
12921 #ifdef HAVE_SYS_FS_TYPES_H
12922 #include <sys/fs_types.h>
12923 #endif
12924 main ()
12926 struct fs_data fsd;
12927 /* Ultrix's statfs returns 1 for success,
12928 0 for not mounted, -1 for failure. */
12929 exit (statfs (".", &fsd) != 1);
12932 if { (eval echo configure:12933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12933 then
12934 fu_cv_sys_stat_fs_data=yes
12935 else
12936 echo "configure: failed program was:" >&5
12937 cat conftest.$ac_ext >&5
12938 rm -fr conftest*
12939 fu_cv_sys_stat_fs_data=no
12941 rm -fr conftest*
12946 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12947 if test $fu_cv_sys_stat_fs_data = yes; then
12948 space=yes
12949 cat >> confdefs.h <<\EOF
12950 #define STAT_STATFS2_FS_DATA 1
12957 # As a gating factor for large file support, in order to
12958 # use <4GB files we must have the following minimal support
12959 # available.
12960 # long long, and a 64 bit off_t or off64_t.
12961 # If we don't have all of these then disable large
12962 # file support.
12964 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12965 echo "configure:12966: checking if large file support can be enabled" >&5
12966 cat > conftest.$ac_ext <<EOF
12967 #line 12968 "configure"
12968 #include "confdefs.h"
12970 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12971 #include <sys/types.h>
12972 #else
12973 __COMPILE_ERROR_
12974 #endif
12976 int main() {
12977 int i
12978 ; return 0; }
12980 if { (eval echo configure:12981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12981 rm -rf conftest*
12982 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12983 else
12984 echo "configure: failed program was:" >&5
12985 cat conftest.$ac_ext >&5
12986 rm -rf conftest*
12987 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12989 rm -f conftest*
12990 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12991 echo "$ac_t""yes" 1>&6
12992 cat >> confdefs.h <<\EOF
12993 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12996 else
12997 echo "$ac_t""no" 1>&6
13000 # Check whether --with-spinlocks or --without-spinlocks was given.
13001 if test "${with_spinlocks+set}" = set; then
13002 withval="$with_spinlocks"
13006 if test "x$with_spinlocks" = "xyes"; then
13007 cat >> confdefs.h <<\EOF
13008 #define USE_SPINLOCKS 1
13012 case "$host_cpu" in
13013 sparc)
13014 cat >> confdefs.h <<\EOF
13015 #define SPARC_SPINLOCKS 1
13020 i386|i486|i586|i686)
13021 cat >> confdefs.h <<\EOF
13022 #define INTEL_SPINLOCKS 1
13027 mips)
13028 cat >> confdefs.h <<\EOF
13029 #define MIPS_SPINLOCKS 1
13034 powerpc)
13035 cat >> confdefs.h <<\EOF
13036 #define POWERPC_SPINLOCKS 1
13040 esac
13043 #################################################
13044 # check for ACL support
13046 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13047 echo "configure:13048: checking whether to support ACLs" >&5
13048 # Check whether --with-acl-support or --without-acl-support was given.
13049 if test "${with_acl_support+set}" = set; then
13050 withval="$with_acl_support"
13051 case "$withval" in
13052 yes)
13054 case "$host_os" in
13055 *sysv5*)
13056 echo "$ac_t""Using UnixWare ACLs" 1>&6
13057 cat >> confdefs.h <<\EOF
13058 #define HAVE_UNIXWARE_ACLS 1
13062 *solaris*)
13063 echo "$ac_t""Using solaris ACLs" 1>&6
13064 cat >> confdefs.h <<\EOF
13065 #define HAVE_SOLARIS_ACLS 1
13069 *hpux*)
13070 echo "$ac_t""Using HPUX ACLs" 1>&6
13071 cat >> confdefs.h <<\EOF
13072 #define HAVE_HPUX_ACLS 1
13076 *irix*)
13077 echo "$ac_t""Using IRIX ACLs" 1>&6
13078 cat >> confdefs.h <<\EOF
13079 #define HAVE_IRIX_ACLS 1
13083 *aix*)
13084 echo "$ac_t""Using AIX ACLs" 1>&6
13085 cat >> confdefs.h <<\EOF
13086 #define HAVE_AIX_ACLS 1
13090 *osf*)
13091 echo "$ac_t""Using Tru64 ACLs" 1>&6
13092 cat >> confdefs.h <<\EOF
13093 #define HAVE_TRU64_ACLS 1
13096 LIBS="$LIBS -lpacl"
13099 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13100 echo "configure:13101: checking for acl_get_file in -lacl" >&5
13101 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13103 echo $ac_n "(cached) $ac_c" 1>&6
13104 else
13105 ac_save_LIBS="$LIBS"
13106 LIBS="-lacl $LIBS"
13107 cat > conftest.$ac_ext <<EOF
13108 #line 13109 "configure"
13109 #include "confdefs.h"
13110 /* Override any gcc2 internal prototype to avoid an error. */
13111 /* We use char because int might match the return type of a gcc2
13112 builtin and then its argument prototype would still apply. */
13113 char acl_get_file();
13115 int main() {
13116 acl_get_file()
13117 ; return 0; }
13119 if { (eval echo configure:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13120 rm -rf conftest*
13121 eval "ac_cv_lib_$ac_lib_var=yes"
13122 else
13123 echo "configure: failed program was:" >&5
13124 cat conftest.$ac_ext >&5
13125 rm -rf conftest*
13126 eval "ac_cv_lib_$ac_lib_var=no"
13128 rm -f conftest*
13129 LIBS="$ac_save_LIBS"
13132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13133 echo "$ac_t""yes" 1>&6
13134 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13136 cat >> confdefs.h <<EOF
13137 #define $ac_tr_lib 1
13140 LIBS="-lacl $LIBS"
13142 else
13143 echo "$ac_t""no" 1>&6
13146 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13147 echo "configure:13148: checking for ACL support" >&5
13148 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 #include <sys/types.h>
13156 #include <sys/acl.h>
13157 int main() {
13158 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13159 ; return 0; }
13161 if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13162 rm -rf conftest*
13163 samba_cv_HAVE_POSIX_ACLS=yes
13164 else
13165 echo "configure: failed program was:" >&5
13166 cat conftest.$ac_ext >&5
13167 rm -rf conftest*
13168 samba_cv_HAVE_POSIX_ACLS=no
13170 rm -f conftest*
13173 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13174 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13175 echo "$ac_t""Using posix ACLs" 1>&6
13176 cat >> confdefs.h <<\EOF
13177 #define HAVE_POSIX_ACLS 1
13180 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13181 echo "configure:13182: checking for acl_get_perm_np" >&5
13182 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13183 echo $ac_n "(cached) $ac_c" 1>&6
13184 else
13186 cat > conftest.$ac_ext <<EOF
13187 #line 13188 "configure"
13188 #include "confdefs.h"
13189 #include <sys/types.h>
13190 #include <sys/acl.h>
13191 int main() {
13192 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13193 ; return 0; }
13195 if { (eval echo configure:13196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13196 rm -rf conftest*
13197 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13198 else
13199 echo "configure: failed program was:" >&5
13200 cat conftest.$ac_ext >&5
13201 rm -rf conftest*
13202 samba_cv_HAVE_ACL_GET_PERM_NP=no
13204 rm -f conftest*
13207 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13208 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13209 cat >> confdefs.h <<\EOF
13210 #define HAVE_ACL_GET_PERM_NP 1
13216 esac
13219 echo "$ac_t""no" 1>&6
13220 cat >> confdefs.h <<\EOF
13221 #define HAVE_NO_ACLS 1
13225 esac
13226 else
13227 cat >> confdefs.h <<\EOF
13228 #define HAVE_NO_ACLS 1
13231 echo "$ac_t""no" 1>&6
13236 #################################################
13237 # check for the historical SAMBA installation
13239 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13240 # Put all binaries under the /usr/local/samba/bin directory.
13241 sbindir="$bindir"
13244 #################################################
13245 # Check whether winbind is supported on this platform. If so we need to
13246 # build and install client programs (WINBIND_TARGETS), sbin programs
13247 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13249 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13250 echo "configure:13251: checking whether to build winbind" >&5
13252 # Initially, the value of $host_os decides whether winbind is supported
13254 case "$host_os" in
13255 *linux*|*irix*)
13256 HAVE_WINBIND=yes
13258 *solaris*)
13259 HAVE_WINBIND=yes
13260 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13261 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13263 *hpux11*)
13264 HAVE_WINBIND=yes
13265 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13267 *aix4*)
13268 HAVE_WINBIND=yes
13271 HAVE_WINBIND=no
13272 winbind_no_reason=", unsupported on $host_os"
13274 esac
13276 # Check the setting of --with-winbindd
13278 # Check whether --with-winbind or --without-winbind was given.
13279 if test "${with_winbind+set}" = set; then
13280 withval="$with_winbind"
13282 case "$withval" in
13283 yes)
13284 HAVE_WINBIND=yes
13287 HAVE_WINBIND=no
13288 winbind_reason=""
13290 esac
13294 # We need unix domain sockets for winbind
13296 if test x"$HAVE_WINBIND" = x"yes"; then
13297 if test x"$samba_cv_unixsocket" = x"no"; then
13298 winbind_no_reason=", no unix domain socket support on $host_os"
13299 HAVE_WINBIND=no
13303 # Display test results
13305 if test x"$HAVE_WINBIND" = x"yes"; then
13307 echo "$ac_t""yes" 1>&6
13309 WINBIND_TARGETS="bin/wbinfo"
13310 WINBIND_STARGETS="bin/winbindd"
13311 case "$host_os" in
13312 *irix*)
13313 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
13316 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13318 esac
13321 case "$with_pam" in
13322 yes)
13323 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13325 esac
13326 else
13327 echo "$ac_t""no$winbind_no_reason" 1>&6
13329 WINBIND_TARGETS=""
13330 WINBIND_STARGETS=""
13331 WINBIND_LTARGETS=""
13332 WINBIND_PAM_TARGETS=""
13335 # Check for FreeBSD problem with getgroups
13336 # It returns EGID too many times in the list of groups
13337 # and causes a security problem
13338 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13339 echo "configure:13340: checking whether or not getgroups returns EGID too many times" >&5
13340 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13341 echo $ac_n "(cached) $ac_c" 1>&6
13342 else
13343 if test "$cross_compiling" = yes; then
13344 samba_cv_have_getgroups_too_many_egids=cross
13345 else
13346 cat > conftest.$ac_ext <<EOF
13347 #line 13348 "configure"
13348 #include "confdefs.h"
13350 #include <sys/types.h>
13351 #include <stdio.h>
13353 int main(int argc, char *argv[])
13355 gid_t groups[10];
13356 int n = 10;
13358 n = getgroups(n, &groups);
13359 /* Could actually pass back the number of EGIDs there ... */
13360 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13363 if { (eval echo configure:13364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13364 then
13365 samba_cv_have_getgroups_too_many_egids=no
13366 else
13367 echo "configure: failed program was:" >&5
13368 cat conftest.$ac_ext >&5
13369 rm -fr conftest*
13370 samba_cv_have_getgroups_too_many_egids=yes
13372 rm -fr conftest*
13377 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13378 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13379 cat >> confdefs.h <<\EOF
13380 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13385 # Substitution time!
13394 # Solaris has some extra fields in struct passwd that need to be
13395 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13396 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13397 # this.
13399 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13400 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13401 # [#include <pwd.h>])
13403 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13404 echo "configure:13405: checking whether struct passwd has pw_comment" >&5
13405 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13406 echo $ac_n "(cached) $ac_c" 1>&6
13407 else
13409 cat > conftest.$ac_ext <<EOF
13410 #line 13411 "configure"
13411 #include "confdefs.h"
13412 #include <pwd.h>
13413 int main() {
13414 struct passwd p; p.pw_comment;
13415 ; return 0; }
13417 if { (eval echo configure:13418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13418 rm -rf conftest*
13419 samba_cv_passwd_pw_comment=yes
13420 else
13421 echo "configure: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13423 rm -rf conftest*
13424 samba_cv_passwd_pw_comment=no
13426 rm -f conftest*
13429 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13430 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13431 cat >> confdefs.h <<\EOF
13432 #define HAVE_PASSWD_PW_COMMENT 1
13437 #AC_CHECK_MEMBER(struct passwd.pw_age,
13438 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13439 # [#include <pwd.h>])
13441 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13442 echo "configure:13443: checking whether struct passwd has pw_age" >&5
13443 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13444 echo $ac_n "(cached) $ac_c" 1>&6
13445 else
13447 cat > conftest.$ac_ext <<EOF
13448 #line 13449 "configure"
13449 #include "confdefs.h"
13450 #include <pwd.h>
13451 int main() {
13452 struct passwd p; p.pw_age;
13453 ; return 0; }
13455 if { (eval echo configure:13456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13456 rm -rf conftest*
13457 samba_cv_passwd_pw_age=yes
13458 else
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13461 rm -rf conftest*
13462 samba_cv_passwd_pw_age=no
13464 rm -f conftest*
13467 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13468 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13469 cat >> confdefs.h <<\EOF
13470 #define HAVE_PASSWD_PW_AGE 1
13475 #################################################
13476 # Check to see if we should use the included popt
13478 # Check whether --with-included-popt or --without-included-popt was given.
13479 if test "${with_included_popt+set}" = set; then
13480 withval="$with_included_popt"
13482 case "$withval" in
13483 yes)
13484 INCLUDED_POPT=yes
13487 INCLUDED_POPT=no
13489 esac
13492 if test x"$INCLUDED_POPT" != x"yes"; then
13493 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13494 echo "configure:13495: checking for poptGetContext in -lpopt" >&5
13495 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13497 echo $ac_n "(cached) $ac_c" 1>&6
13498 else
13499 ac_save_LIBS="$LIBS"
13500 LIBS="-lpopt $LIBS"
13501 cat > conftest.$ac_ext <<EOF
13502 #line 13503 "configure"
13503 #include "confdefs.h"
13504 /* Override any gcc2 internal prototype to avoid an error. */
13505 /* We use char because int might match the return type of a gcc2
13506 builtin and then its argument prototype would still apply. */
13507 char poptGetContext();
13509 int main() {
13510 poptGetContext()
13511 ; return 0; }
13513 if { (eval echo configure:13514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13514 rm -rf conftest*
13515 eval "ac_cv_lib_$ac_lib_var=yes"
13516 else
13517 echo "configure: failed program was:" >&5
13518 cat conftest.$ac_ext >&5
13519 rm -rf conftest*
13520 eval "ac_cv_lib_$ac_lib_var=no"
13522 rm -f conftest*
13523 LIBS="$ac_save_LIBS"
13526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13527 echo "$ac_t""yes" 1>&6
13528 INCLUDED_POPT=no
13529 else
13530 echo "$ac_t""no" 1>&6
13531 INCLUDED_POPT=yes
13536 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13537 echo "configure:13538: checking whether to use included popt" >&5
13538 if test x"$INCLUDED_POPT" = x"yes"; then
13539 echo "$ac_t""$srcdir/popt" 1>&6
13540 BUILD_POPT='$(POPT_OBJS)'
13541 FLAGS1="-I$srcdir/popt"
13542 else
13543 echo "$ac_t""no" 1>&6
13544 LIBS="$LIBS -lpopt"
13549 #################################################
13550 # final configure stuff
13551 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13552 echo "configure:13553: checking configure summary" >&5
13553 if test "$cross_compiling" = yes; then
13554 echo "configure: warning: cannot run when cross-compiling" 1>&2
13555 else
13556 cat > conftest.$ac_ext <<EOF
13557 #line 13558 "configure"
13558 #include "confdefs.h"
13559 #include "${srcdir-.}/tests/summary.c"
13561 if { (eval echo configure:13562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13562 then
13563 echo "$ac_t""yes" 1>&6
13564 else
13565 echo "configure: failed program was:" >&5
13566 cat conftest.$ac_ext >&5
13567 rm -fr conftest*
13568 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13570 rm -fr conftest*
13574 builddir=`pwd`
13577 trap '' 1 2 15
13578 cat > confcache <<\EOF
13579 # This file is a shell script that caches the results of configure
13580 # tests run on this system so they can be shared between configure
13581 # scripts and configure runs. It is not useful on other systems.
13582 # If it contains results you don't want to keep, you may remove or edit it.
13584 # By default, configure uses ./config.cache as the cache file,
13585 # creating it if it does not exist already. You can give configure
13586 # the --cache-file=FILE option to use a different cache file; that is
13587 # what configure does when it calls configure scripts in
13588 # subdirectories, so they share the cache.
13589 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13590 # config.status only pays attention to the cache file if you give it the
13591 # --recheck option to rerun configure.
13594 # The following way of writing the cache mishandles newlines in values,
13595 # but we know of no workaround that is simple, portable, and efficient.
13596 # So, don't put newlines in cache variables' values.
13597 # Ultrix sh set writes to stderr and can't be redirected directly,
13598 # and sets the high bit in the cache file unless we assign to the vars.
13599 (set) 2>&1 |
13600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13601 *ac_space=\ *)
13602 # `set' does not quote correctly, so add quotes (double-quote substitution
13603 # turns \\\\ into \\, and sed turns \\ into \).
13604 sed -n \
13605 -e "s/'/'\\\\''/g" \
13606 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13609 # `set' quotes correctly as required by POSIX, so do not add quotes.
13610 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13612 esac >> confcache
13613 if cmp -s $cache_file confcache; then
13615 else
13616 if test -w $cache_file; then
13617 echo "updating cache $cache_file"
13618 cat confcache > $cache_file
13619 else
13620 echo "not updating unwritable cache $cache_file"
13623 rm -f confcache
13625 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13628 # Let make expand exec_prefix.
13629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13631 # Any assignment to VPATH causes Sun make to only execute
13632 # the first set of double-colon rules, so remove it if not needed.
13633 # If there is a colon in the path, we need to keep it.
13634 if test "x$srcdir" = x.; then
13635 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13638 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13640 DEFS=-DHAVE_CONFIG_H
13642 # Without the "./", some shells look in PATH for config.status.
13643 : ${CONFIG_STATUS=./config.status}
13645 echo creating $CONFIG_STATUS
13646 rm -f $CONFIG_STATUS
13647 cat > $CONFIG_STATUS <<EOF
13648 #! /bin/sh
13649 # Generated automatically by configure.
13650 # Run this file to recreate the current configuration.
13651 # This directory was configured as follows,
13652 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13654 # $0 $ac_configure_args
13656 # Compiler output produced by configure, useful for debugging
13657 # configure, is in ./config.log if it exists.
13659 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13660 for ac_option
13662 case "\$ac_option" in
13663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13664 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13665 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13666 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13667 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13668 exit 0 ;;
13669 -help | --help | --hel | --he | --h)
13670 echo "\$ac_cs_usage"; exit 0 ;;
13671 *) echo "\$ac_cs_usage"; exit 1 ;;
13672 esac
13673 done
13675 ac_given_srcdir=$srcdir
13676 ac_given_INSTALL="$INSTALL"
13678 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13680 cat >> $CONFIG_STATUS <<EOF
13682 # Protect against being on the right side of a sed subst in config.status.
13683 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13684 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13685 $ac_vpsub
13686 $extrasub
13687 s%@SHELL@%$SHELL%g
13688 s%@CFLAGS@%$CFLAGS%g
13689 s%@CPPFLAGS@%$CPPFLAGS%g
13690 s%@CXXFLAGS@%$CXXFLAGS%g
13691 s%@FFLAGS@%$FFLAGS%g
13692 s%@DEFS@%$DEFS%g
13693 s%@LDFLAGS@%$LDFLAGS%g
13694 s%@LIBS@%$LIBS%g
13695 s%@exec_prefix@%$exec_prefix%g
13696 s%@prefix@%$prefix%g
13697 s%@program_transform_name@%$program_transform_name%g
13698 s%@bindir@%$bindir%g
13699 s%@sbindir@%$sbindir%g
13700 s%@libexecdir@%$libexecdir%g
13701 s%@datadir@%$datadir%g
13702 s%@sysconfdir@%$sysconfdir%g
13703 s%@sharedstatedir@%$sharedstatedir%g
13704 s%@localstatedir@%$localstatedir%g
13705 s%@libdir@%$libdir%g
13706 s%@includedir@%$includedir%g
13707 s%@oldincludedir@%$oldincludedir%g
13708 s%@infodir@%$infodir%g
13709 s%@mandir@%$mandir%g
13710 s%@codepagedir@%$codepagedir%g
13711 s%@configdir@%$configdir%g
13712 s%@lockdir@%$lockdir%g
13713 s%@piddir@%$piddir%g
13714 s%@logfilebase@%$logfilebase%g
13715 s%@privatedir@%$privatedir%g
13716 s%@swatdir@%$swatdir%g
13717 s%@RUNPROG@%$RUNPROG%g
13718 s%@MPROGS@%$MPROGS%g
13719 s%@LDSHFLAGS@%$LDSHFLAGS%g
13720 s%@SONAMEFLAG@%$SONAMEFLAG%g
13721 s%@SHLD@%$SHLD%g
13722 s%@HOST_OS@%$HOST_OS%g
13723 s%@PAM_MOD@%$PAM_MOD%g
13724 s%@PDBEDIT@%$PDBEDIT%g
13725 s%@WRAP@%$WRAP%g
13726 s%@WRAP32@%$WRAP32%g
13727 s%@WRAPPROG@%$WRAPPROG%g
13728 s%@PICFLAG@%$PICFLAG%g
13729 s%@PICSUFFIX@%$PICSUFFIX%g
13730 s%@SHLIBEXT@%$SHLIBEXT%g
13731 s%@BLDSHARED@%$BLDSHARED%g
13732 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13733 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13734 s%@CC@%$CC%g
13735 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13736 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13737 s%@INSTALL_DATA@%$INSTALL_DATA%g
13738 s%@AWK@%$AWK%g
13739 s%@passwd_program@%$passwd_program%g
13740 s%@BROKEN_CC@%$BROKEN_CC%g
13741 s%@host@%$host%g
13742 s%@host_alias@%$host_alias%g
13743 s%@host_cpu@%$host_cpu%g
13744 s%@host_vendor@%$host_vendor%g
13745 s%@host_os@%$host_os%g
13746 s%@target@%$target%g
13747 s%@target_alias@%$target_alias%g
13748 s%@target_cpu@%$target_cpu%g
13749 s%@target_vendor@%$target_vendor%g
13750 s%@target_os@%$target_os%g
13751 s%@build@%$build%g
13752 s%@build_alias@%$build_alias%g
13753 s%@build_cpu@%$build_cpu%g
13754 s%@build_vendor@%$build_vendor%g
13755 s%@build_os@%$build_os%g
13756 s%@CPP@%$CPP%g
13757 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13758 s%@LIBOBJS@%$LIBOBJS%g
13759 s%@TERMLIBS@%$TERMLIBS%g
13760 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13761 s%@ROFF@%$ROFF%g
13762 s%@DYNEXP@%$DYNEXP%g
13763 s%@QUOTAOBJS@%$QUOTAOBJS%g
13764 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13765 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13766 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13767 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13768 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13769 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13770 s%@BUILD_POPT@%$BUILD_POPT%g
13771 s%@FLAGS1@%$FLAGS1%g
13772 s%@builddir@%$builddir%g
13774 CEOF
13777 cat >> $CONFIG_STATUS <<\EOF
13779 # Split the substitutions into bite-sized pieces for seds with
13780 # small command number limits, like on Digital OSF/1 and HP-UX.
13781 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13782 ac_file=1 # Number of current file.
13783 ac_beg=1 # First line for current file.
13784 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13785 ac_more_lines=:
13786 ac_sed_cmds=""
13787 while $ac_more_lines; do
13788 if test $ac_beg -gt 1; then
13789 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13790 else
13791 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13793 if test ! -s conftest.s$ac_file; then
13794 ac_more_lines=false
13795 rm -f conftest.s$ac_file
13796 else
13797 if test -z "$ac_sed_cmds"; then
13798 ac_sed_cmds="sed -f conftest.s$ac_file"
13799 else
13800 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13802 ac_file=`expr $ac_file + 1`
13803 ac_beg=$ac_end
13804 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13806 done
13807 if test -z "$ac_sed_cmds"; then
13808 ac_sed_cmds=cat
13812 cat >> $CONFIG_STATUS <<EOF
13814 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13816 cat >> $CONFIG_STATUS <<\EOF
13817 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13819 case "$ac_file" in
13820 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13821 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13822 *) ac_file_in="${ac_file}.in" ;;
13823 esac
13825 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13827 # Remove last slash and all that follows it. Not all systems have dirname.
13828 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13829 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13830 # The file is in a subdirectory.
13831 test ! -d "$ac_dir" && mkdir "$ac_dir"
13832 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13833 # A "../" for each directory in $ac_dir_suffix.
13834 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13835 else
13836 ac_dir_suffix= ac_dots=
13839 case "$ac_given_srcdir" in
13840 .) srcdir=.
13841 if test -z "$ac_dots"; then top_srcdir=.
13842 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13843 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13844 *) # Relative path.
13845 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13846 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13847 esac
13849 case "$ac_given_INSTALL" in
13850 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13851 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13852 esac
13854 echo creating "$ac_file"
13855 rm -f "$ac_file"
13856 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13857 case "$ac_file" in
13858 *Makefile*) ac_comsub="1i\\
13859 # $configure_input" ;;
13860 *) ac_comsub= ;;
13861 esac
13863 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13864 sed -e "$ac_comsub
13865 s%@configure_input@%$configure_input%g
13866 s%@srcdir@%$srcdir%g
13867 s%@top_srcdir@%$top_srcdir%g
13868 s%@INSTALL@%$INSTALL%g
13869 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13870 fi; done
13871 rm -f conftest.s*
13873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13876 # ac_d sets the value in "#define NAME VALUE" lines.
13877 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13878 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13879 ac_dC='\3'
13880 ac_dD='%g'
13881 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13882 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13883 ac_uB='\([ ]\)%\1#\2define\3'
13884 ac_uC=' '
13885 ac_uD='\4%g'
13886 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13887 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13888 ac_eB='$%\1#\2define\3'
13889 ac_eC=' '
13890 ac_eD='%g'
13892 if test "${CONFIG_HEADERS+set}" != set; then
13894 cat >> $CONFIG_STATUS <<EOF
13895 CONFIG_HEADERS="include/config.h"
13897 cat >> $CONFIG_STATUS <<\EOF
13899 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13901 case "$ac_file" in
13902 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13903 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13904 *) ac_file_in="${ac_file}.in" ;;
13905 esac
13907 echo creating $ac_file
13909 rm -f conftest.frag conftest.in conftest.out
13910 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13911 cat $ac_file_inputs > conftest.in
13915 # Transform confdefs.h into a sed script conftest.vals that substitutes
13916 # the proper values into config.h.in to produce config.h. And first:
13917 # Protect against being on the right side of a sed subst in config.status.
13918 # Protect against being in an unquoted here document in config.status.
13919 rm -f conftest.vals
13920 cat > conftest.hdr <<\EOF
13921 s/[\\&%]/\\&/g
13922 s%[\\$`]%\\&%g
13923 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13924 s%ac_d%ac_u%gp
13925 s%ac_u%ac_e%gp
13927 sed -n -f conftest.hdr confdefs.h > conftest.vals
13928 rm -f conftest.hdr
13930 # This sed command replaces #undef with comments. This is necessary, for
13931 # example, in the case of _POSIX_SOURCE, which is predefined and required
13932 # on some systems where configure will not decide to define it.
13933 cat >> conftest.vals <<\EOF
13934 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13937 # Break up conftest.vals because some shells have a limit on
13938 # the size of here documents, and old seds have small limits too.
13940 rm -f conftest.tail
13941 while :
13943 ac_lines=`grep -c . conftest.vals`
13944 # grep -c gives empty output for an empty file on some AIX systems.
13945 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13946 # Write a limited-size here document to conftest.frag.
13947 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13948 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13949 echo 'CEOF
13950 sed -f conftest.frag conftest.in > conftest.out
13951 rm -f conftest.in
13952 mv conftest.out conftest.in
13953 ' >> $CONFIG_STATUS
13954 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13955 rm -f conftest.vals
13956 mv conftest.tail conftest.vals
13957 done
13958 rm -f conftest.vals
13960 cat >> $CONFIG_STATUS <<\EOF
13961 rm -f conftest.frag conftest.h
13962 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13963 cat conftest.in >> conftest.h
13964 rm -f conftest.in
13965 if cmp -s $ac_file conftest.h 2>/dev/null; then
13966 echo "$ac_file is unchanged"
13967 rm -f conftest.h
13968 else
13969 # Remove last slash and all that follows it. Not all systems have dirname.
13970 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13972 # The file is in a subdirectory.
13973 test ! -d "$ac_dir" && mkdir "$ac_dir"
13975 rm -f $ac_file
13976 mv conftest.h $ac_file
13978 fi; done
13981 cat >> $CONFIG_STATUS <<EOF
13984 cat >> $CONFIG_STATUS <<\EOF
13986 exit 0
13988 chmod +x $CONFIG_STATUS
13989 rm -fr confdefs* $ac_clean_files
13990 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1