link in OS2-Client-HOWTO to SWAT main page
[Samba.git] / source / configure
blob5c1af0b25a192e93b7edd8d12e89ed88ae1c2713
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 ($privatedir)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($lockdir)"
21 ac_help="$ac_help
22 --with-swatdir=DIR Where to put SWAT files ($swatdir)"
23 ac_help="$ac_help
24 --with-configdir=DIR Where to put configuration files ($configdir)"
25 ac_help="$ac_help
26 --enable-debug turn on debugging [default=no]"
27 ac_help="$ac_help
28 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 ac_help="$ac_help
30 --enable-static[=PKGS] build static libraries [default=yes]"
31 ac_help="$ac_help
32 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 ac_help="$ac_help
34 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 ac_help="$ac_help
36 --disable-libtool-lock avoid locking (might break parallel builds)"
37 ac_help="$ac_help
38 --with-smbwrapper Include SMB wrapper support
39 --without-smbwrapper Don't include SMB wrapper support (default)"
40 ac_help="$ac_help
41 --with-afs Include AFS support
42 --without-afs Don't include AFS support (default)"
43 ac_help="$ac_help
44 --with-dfs Include DFS support
45 --without-dfs Don't include DFS support (default)"
46 ac_help="$ac_help
47 --with-krb4=base-dir Include Kerberos IV support
48 --without-krb4 Don't include Kerberos IV support (default)"
49 ac_help="$ac_help
50 --with-krb5=base-dir Include Kerberos 5 support
51 --without-krb5 Don't include Kerberos 5 support (default)"
52 ac_help="$ac_help
53 --with-automount Include AUTOMOUNT support
54 --without-automount Don't include AUTOMOUNT support (default)"
55 ac_help="$ac_help
56 --with-smbmount Include SMBMOUNT (Linux only) support
57 --without-smbmount Don't include SMBMOUNT support (default)"
58 ac_help="$ac_help
59 --with-pam Include PAM password database support
60 --without-pam Don't include PAM password database support (default)"
61 ac_help="$ac_help
62 --with-tdbpwd Include TDB password database
63 --without-tdbpwd Don't include TDB password database (default)"
64 ac_help="$ac_help
65 --with-nisplus Include NISPLUS password database support
66 --without-nisplus Don't include NISPLUS password database support (default)"
67 ac_help="$ac_help
68 --with-nisplus-home Include NISPLUS_HOME support
69 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
70 ac_help="$ac_help
71 --with-ssl Include SSL support
72 --without-ssl Don't include SSL support (default)
73 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
74 ac_help="$ac_help
75 --with-syslog Include experimental SYSLOG support
76 --without-syslog Don't include SYSLOG support (default)"
77 ac_help="$ac_help
78 --with-profile Include profile support
79 --without-profile Don't include profile support (default)"
80 ac_help="$ac_help
81 --with-netatalk Include experimental Netatalk support
82 --without-netatalk Don't include experimental Netatalk support (default)"
83 ac_help="$ac_help
84 --with-quotas Include experimental disk-quota support
85 --without-quotas Don't include experimental disk-quota support (default)"
86 ac_help="$ac_help
87 --with-utmp Include experimental utmp accounting
88 --without-utmp Don't include experimental utmp accounting (default)"
89 ac_help="$ac_help
90 --with-msdfs Include MS Dfs support
91 --without-msdfs Don't include MS Dfs support (default)"
92 ac_help="$ac_help
93 --with-vfs Include Samba vfs support
94 --without-vfs Don't include Samba vfs support (default)"
95 ac_help="$ac_help
96 --with-spinlocks use spin locks instead of fcntl locks "
97 ac_help="$ac_help
98 --with-acl-support Include ACL support
99 --without-acl-support Don't include ACL support (default)"
101 # Initialize some variables set by options.
102 # The variables have the same names as the options, with
103 # dashes changed to underlines.
104 build=NONE
105 cache_file=./config.cache
106 exec_prefix=NONE
107 host=NONE
108 no_create=
109 nonopt=NONE
110 no_recursion=
111 prefix=NONE
112 program_prefix=NONE
113 program_suffix=NONE
114 program_transform_name=s,x,x,
115 silent=
116 site=
117 srcdir=
118 target=NONE
119 verbose=
120 x_includes=NONE
121 x_libraries=NONE
122 bindir='${exec_prefix}/bin'
123 sbindir='${exec_prefix}/sbin'
124 libexecdir='${exec_prefix}/libexec'
125 datadir='${prefix}/share'
126 sysconfdir='${prefix}/etc'
127 sharedstatedir='${prefix}/com'
128 localstatedir='${prefix}/var'
129 libdir='${exec_prefix}/lib'
130 includedir='${prefix}/include'
131 oldincludedir='/usr/include'
132 infodir='${prefix}/info'
133 mandir='${prefix}/man'
135 # Initialize some other variables.
136 subdirs=
137 MFLAGS= MAKEFLAGS=
138 SHELL=${CONFIG_SHELL-/bin/sh}
139 # Maximum number of lines to put in a shell here document.
140 ac_max_here_lines=12
142 ac_prev=
143 for ac_option
146 # If the previous option needs an argument, assign it.
147 if test -n "$ac_prev"; then
148 eval "$ac_prev=\$ac_option"
149 ac_prev=
150 continue
153 case "$ac_option" in
154 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 *) ac_optarg= ;;
156 esac
158 # Accept the important Cygnus configure options, so we can diagnose typos.
160 case "$ac_option" in
162 -bindir | --bindir | --bindi | --bind | --bin | --bi)
163 ac_prev=bindir ;;
164 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
165 bindir="$ac_optarg" ;;
167 -build | --build | --buil | --bui | --bu)
168 ac_prev=build ;;
169 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
170 build="$ac_optarg" ;;
172 -cache-file | --cache-file | --cache-fil | --cache-fi \
173 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
174 ac_prev=cache_file ;;
175 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
176 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
177 cache_file="$ac_optarg" ;;
179 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
180 ac_prev=datadir ;;
181 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
182 | --da=*)
183 datadir="$ac_optarg" ;;
185 -disable-* | --disable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}=no" ;;
194 -enable-* | --enable-*)
195 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
201 case "$ac_option" in
202 *=*) ;;
203 *) ac_optarg=yes ;;
204 esac
205 eval "enable_${ac_feature}='$ac_optarg'" ;;
207 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
208 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
209 | --exec | --exe | --ex)
210 ac_prev=exec_prefix ;;
211 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
212 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
213 | --exec=* | --exe=* | --ex=*)
214 exec_prefix="$ac_optarg" ;;
216 -gas | --gas | --ga | --g)
217 # Obsolete; use --with-gas.
218 with_gas=yes ;;
220 -help | --help | --hel | --he)
221 # Omit some internal or obsolete options to make the list less imposing.
222 # This message is too long to be a string in the A/UX 3.1 sh.
223 cat << EOF
224 Usage: configure [options] [host]
225 Options: [defaults in brackets after descriptions]
226 Configuration:
227 --cache-file=FILE cache test results in FILE
228 --help print this message
229 --no-create do not create output files
230 --quiet, --silent do not print \`checking...' messages
231 --version print the version of autoconf that created configure
232 Directory and file names:
233 --prefix=PREFIX install architecture-independent files in PREFIX
234 [$ac_default_prefix]
235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
236 [same as prefix]
237 --bindir=DIR user executables in DIR [EPREFIX/bin]
238 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
239 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
240 --datadir=DIR read-only architecture-independent data in DIR
241 [PREFIX/share]
242 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
243 --sharedstatedir=DIR modifiable architecture-independent data in DIR
244 [PREFIX/com]
245 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
246 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
247 --includedir=DIR C header files in DIR [PREFIX/include]
248 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
249 --infodir=DIR info documentation in DIR [PREFIX/info]
250 --mandir=DIR man documentation in DIR [PREFIX/man]
251 --srcdir=DIR find the sources in DIR [configure dir or ..]
252 --program-prefix=PREFIX prepend PREFIX to installed program names
253 --program-suffix=SUFFIX append SUFFIX to installed program names
254 --program-transform-name=PROGRAM
255 run sed PROGRAM on installed program names
257 cat << EOF
258 Host type:
259 --build=BUILD configure for building on BUILD [BUILD=HOST]
260 --host=HOST configure for HOST [guessed]
261 --target=TARGET configure for TARGET [TARGET=HOST]
262 Features and packages:
263 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
264 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
265 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
266 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
267 --x-includes=DIR X include files are in DIR
268 --x-libraries=DIR X library files are in DIR
270 if test -n "$ac_help"; then
271 echo "--enable and --with options recognized:$ac_help"
273 exit 0 ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host="$ac_optarg" ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir="$ac_optarg" ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir="$ac_optarg" ;;
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir="$ac_optarg" ;;
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir="$ac_optarg" ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir="$ac_optarg" ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir="$ac_optarg" ;;
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir="$ac_optarg" ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix="$ac_optarg" ;;
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix="$ac_optarg" ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix="$ac_optarg" ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name="$ac_optarg" ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir="$ac_optarg" ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir="$ac_optarg" ;;
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site="$ac_optarg" ;;
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir="$ac_optarg" ;;
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir="$ac_optarg" ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target="$ac_optarg" ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
421 -version | --version | --versio | --versi | --vers)
422 echo "configure generated by autoconf version 2.13"
423 exit 0 ;;
425 -with-* | --with-*)
426 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 case "$ac_option" in
433 *=*) ;;
434 *) ac_optarg=yes ;;
435 esac
436 eval "with_${ac_package}='$ac_optarg'" ;;
438 -without-* | --without-*)
439 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}=no" ;;
447 --x)
448 # Obsolete; use --with-x.
449 with_x=yes ;;
451 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
452 | --x-incl | --x-inc | --x-in | --x-i)
453 ac_prev=x_includes ;;
454 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
455 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
456 x_includes="$ac_optarg" ;;
458 -x-libraries | --x-libraries | --x-librarie | --x-librari \
459 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
460 ac_prev=x_libraries ;;
461 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
462 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
463 x_libraries="$ac_optarg" ;;
465 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
469 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
470 echo "configure: warning: $ac_option: invalid host type" 1>&2
472 if test "x$nonopt" != xNONE; then
473 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
475 nonopt="$ac_option"
478 esac
479 done
481 if test -n "$ac_prev"; then
482 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
485 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
487 # File descriptor usage:
488 # 0 standard input
489 # 1 file creation
490 # 2 errors and warnings
491 # 3 some systems may open it to /dev/tty
492 # 4 used on the Kubota Titan
493 # 6 checking for... messages and results
494 # 5 compiler messages saved in config.log
495 if test "$silent" = yes; then
496 exec 6>/dev/null
497 else
498 exec 6>&1
500 exec 5>./config.log
502 echo "\
503 This file contains any messages produced by compilers while
504 running configure, to aid debugging if configure makes a mistake.
505 " 1>&5
507 # Strip out --no-create and --no-recursion so they do not pile up.
508 # Also quote any args containing shell metacharacters.
509 ac_configure_args=
510 for ac_arg
512 case "$ac_arg" in
513 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
514 | --no-cr | --no-c) ;;
515 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
516 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
517 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
518 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
519 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
520 esac
521 done
523 # NLS nuisances.
524 # Only set these to C if already set. These must not be set unconditionally
525 # because not all systems understand e.g. LANG=C (notably SCO).
526 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
527 # Non-C LC_CTYPE values break the ctype check.
528 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
529 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
530 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
531 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
534 rm -rf conftest* confdefs.h
535 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
536 echo > confdefs.h
538 # A filename unique to this package, relative to the directory that
539 # configure is in, which we can look for to find out if srcdir is correct.
540 ac_unique_file=include/includes.h
542 # Find the source files, if location was not specified.
543 if test -z "$srcdir"; then
544 ac_srcdir_defaulted=yes
545 # Try the directory containing this script, then its parent.
546 ac_prog=$0
547 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
548 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 srcdir=$ac_confdir
550 if test ! -r $srcdir/$ac_unique_file; then
551 srcdir=..
553 else
554 ac_srcdir_defaulted=no
556 if test ! -r $srcdir/$ac_unique_file; then
557 if test "$ac_srcdir_defaulted" = yes; then
558 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 else
560 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
563 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
565 # Prefer explicitly selected file to automatically selected ones.
566 if test -z "$CONFIG_SITE"; then
567 if test "x$prefix" != xNONE; then
568 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
569 else
570 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
573 for ac_site_file in $CONFIG_SITE; do
574 if test -r "$ac_site_file"; then
575 echo "loading site script $ac_site_file"
576 . "$ac_site_file"
578 done
580 if test -r "$cache_file"; then
581 echo "loading cache $cache_file"
582 . $cache_file
583 else
584 echo "creating cache $cache_file"
585 > $cache_file
588 ac_ext=c
589 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
590 ac_cpp='$CPP $CPPFLAGS'
591 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
592 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
593 cross_compiling=$ac_cv_prog_cc_cross
595 ac_exeext=
596 ac_objext=o
597 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
598 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
599 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
600 ac_n= ac_c='
601 ' ac_t=' '
602 else
603 ac_n=-n ac_c= ac_t=
605 else
606 ac_n= ac_c='\c' ac_t=
612 #################################################
613 # Directory handling stuff to support both the
614 # legacy SAMBA directories and FHS compliant
615 # ones...
618 # Check whether --with-fhs or --without-fhs was given.
619 if test "${with_fhs+set}" = set; then
620 withval="$with_fhs"
621 codepagedir="\$(DATADIR)/samba/codepages"
622 configdir="${sysconfdir}/samba"
623 lockdir="\${VARDIR}/lock/samba"
624 logfilebase="\${VARDIR}/log/samba"
625 privatedir="\${CONFIGDIR}/private"
626 swatdir="\${DATADIR}/samba/swat"
627 else
628 codepagedir="\$(LIBDIR)/codepages"
629 configdir="\$(LIBDIR)"
630 lockdir="\$(VARDIR)/locks"
631 logfilebase="\$(VARDIR)"
632 privatedir="\${prefix}/private"
633 swatdir="\${prefix}/swat"
637 #################################################
638 # set private directory location
639 # Check whether --with-privatedir or --without-privatedir was given.
640 if test "${with_privatedir+set}" = set; then
641 withval="$with_privatedir"
642 case "$withval" in
643 yes|no)
645 # Just in case anybody calls it without argument
647 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
650 privatedir="$withval"
652 esac
656 #################################################
657 # set lock directory location
658 # Check whether --with-lockdir or --without-lockdir was given.
659 if test "${with_lockdir+set}" = set; then
660 withval="$with_lockdir"
661 case "$withval" in
662 yes|no)
664 # Just in case anybody calls it without argument
666 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
669 lockdir="$withval"
671 esac
675 #################################################
676 # set SWAT directory location
677 # Check whether --with-swatdir or --without-swatdir was given.
678 if test "${with_swatdir+set}" = set; then
679 withval="$with_swatdir"
680 case "$withval" in
681 yes|no)
683 # Just in case anybody does it
685 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
688 swatdir="$withval"
690 esac
694 #################################################
695 # set configuration directory location
696 # Check whether --with-configdir or --without-configdir was given.
697 if test "${with_configdir+set}" = set; then
698 withval="$with_configdir"
699 case "$withval" in
700 yes|no)
702 # Just in case anybody does it
704 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
707 configdir="$withval"
709 esac
733 # compile with optimization and without debugging by default
734 OPTIM=${CFLAGS-"-O"}
736 # Check whether --enable-debug or --disable-debug was given.
737 if test "${enable_debug+set}" = set; then
738 enableval="$enable_debug"
739 if eval "test x$enable_debug = xyes"; then
740 OPTIM="-g"
745 CFLAGS="${CFLAGS:=} $OPTIM"
747 # Extract the first word of "gcc", so it can be a program name with args.
748 set dummy gcc; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 if test -n "$CC"; then
755 ac_cv_prog_CC="$CC" # Let the user override the test.
756 else
757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 ac_dummy="$PATH"
759 for ac_dir in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir=.
761 if test -f $ac_dir/$ac_word; then
762 ac_cv_prog_CC="gcc"
763 break
765 done
766 IFS="$ac_save_ifs"
769 CC="$ac_cv_prog_CC"
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
772 else
773 echo "$ac_t""no" 1>&6
776 if test -z "$CC"; then
777 # Extract the first word of "cc", so it can be a program name with args.
778 set dummy cc; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
783 else
784 if test -n "$CC"; then
785 ac_cv_prog_CC="$CC" # Let the user override the test.
786 else
787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
788 ac_prog_rejected=no
789 ac_dummy="$PATH"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
793 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
794 ac_prog_rejected=yes
795 continue
797 ac_cv_prog_CC="cc"
798 break
800 done
801 IFS="$ac_save_ifs"
802 if test $ac_prog_rejected = yes; then
803 # We found a bogon in the path, so make sure we never use it.
804 set dummy $ac_cv_prog_CC
805 shift
806 if test $# -gt 0; then
807 # We chose a different compiler from the bogus one.
808 # However, it has the same basename, so the bogon will be chosen
809 # first if we set CC to just the basename; use the full file name.
810 shift
811 set dummy "$ac_dir/$ac_word" "$@"
812 shift
813 ac_cv_prog_CC="$@"
818 CC="$ac_cv_prog_CC"
819 if test -n "$CC"; then
820 echo "$ac_t""$CC" 1>&6
821 else
822 echo "$ac_t""no" 1>&6
825 if test -z "$CC"; then
826 case "`uname -s`" in
827 *win32* | *WIN32*)
828 # Extract the first word of "cl", so it can be a program name with args.
829 set dummy cl; ac_word=$2
830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831 echo "configure:832: checking for $ac_word" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
834 else
835 if test -n "$CC"; then
836 ac_cv_prog_CC="$CC" # Let the user override the test.
837 else
838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
839 ac_dummy="$PATH"
840 for ac_dir in $ac_dummy; do
841 test -z "$ac_dir" && ac_dir=.
842 if test -f $ac_dir/$ac_word; then
843 ac_cv_prog_CC="cl"
844 break
846 done
847 IFS="$ac_save_ifs"
850 CC="$ac_cv_prog_CC"
851 if test -n "$CC"; then
852 echo "$ac_t""$CC" 1>&6
853 else
854 echo "$ac_t""no" 1>&6
857 esac
859 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
863 echo "configure:864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
865 ac_ext=c
866 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
867 ac_cpp='$CPP $CPPFLAGS'
868 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
869 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
870 cross_compiling=$ac_cv_prog_cc_cross
872 cat > conftest.$ac_ext << EOF
874 #line 875 "configure"
875 #include "confdefs.h"
877 main(){return(0);}
879 if { (eval echo configure:880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
880 ac_cv_prog_cc_works=yes
881 # If we can't run a trivial program, we are probably using a cross compiler.
882 if (./conftest; exit) 2>/dev/null; then
883 ac_cv_prog_cc_cross=no
884 else
885 ac_cv_prog_cc_cross=yes
887 else
888 echo "configure: failed program was:" >&5
889 cat conftest.$ac_ext >&5
890 ac_cv_prog_cc_works=no
892 rm -fr conftest*
893 ac_ext=c
894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
898 cross_compiling=$ac_cv_prog_cc_cross
900 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
901 if test $ac_cv_prog_cc_works = no; then
902 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
906 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
907 cross_compiling=$ac_cv_prog_cc_cross
909 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
910 echo "configure:911: checking whether we are using GNU C" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
913 else
914 cat > conftest.c <<EOF
915 #ifdef __GNUC__
916 yes;
917 #endif
919 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
920 ac_cv_prog_gcc=yes
921 else
922 ac_cv_prog_gcc=no
926 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
928 if test $ac_cv_prog_gcc = yes; then
929 GCC=yes
930 else
931 GCC=
934 ac_test_CFLAGS="${CFLAGS+set}"
935 ac_save_CFLAGS="$CFLAGS"
936 CFLAGS=
937 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
938 echo "configure:939: checking whether ${CC-cc} accepts -g" >&5
939 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941 else
942 echo 'void f(){}' > conftest.c
943 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
944 ac_cv_prog_cc_g=yes
945 else
946 ac_cv_prog_cc_g=no
948 rm -f conftest*
952 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
953 if test "$ac_test_CFLAGS" = set; then
954 CFLAGS="$ac_save_CFLAGS"
955 elif test $ac_cv_prog_cc_g = yes; then
956 if test "$GCC" = yes; then
957 CFLAGS="-g -O2"
958 else
959 CFLAGS="-g"
961 else
962 if test "$GCC" = yes; then
963 CFLAGS="-O2"
964 else
965 CFLAGS=
969 ac_aux_dir=
970 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
971 if test -f $ac_dir/install-sh; then
972 ac_aux_dir=$ac_dir
973 ac_install_sh="$ac_aux_dir/install-sh -c"
974 break
975 elif test -f $ac_dir/install.sh; then
976 ac_aux_dir=$ac_dir
977 ac_install_sh="$ac_aux_dir/install.sh -c"
978 break
980 done
981 if test -z "$ac_aux_dir"; then
982 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
984 ac_config_guess=$ac_aux_dir/config.guess
985 ac_config_sub=$ac_aux_dir/config.sub
986 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
988 # Find a good install program. We prefer a C program (faster),
989 # so one script is as good as another. But avoid the broken or
990 # incompatible versions:
991 # SysV /etc/install, /usr/sbin/install
992 # SunOS /usr/etc/install
993 # IRIX /sbin/install
994 # AIX /bin/install
995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
998 # ./install, which can be erroneously created by make from ./install.sh.
999 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1000 echo "configure:1001: checking for a BSD compatible install" >&5
1001 if test -z "$INSTALL"; then
1002 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1004 else
1005 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1006 for ac_dir in $PATH; do
1007 # Account for people who put trailing slashes in PATH elements.
1008 case "$ac_dir/" in
1009 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1011 # OSF1 and SCO ODT 3.0 have their own names for install.
1012 # Don't use installbsd from OSF since it installs stuff as root
1013 # by default.
1014 for ac_prog in ginstall scoinst install; do
1015 if test -f $ac_dir/$ac_prog; then
1016 if test $ac_prog = install &&
1017 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1018 # AIX install. It has an incompatible calling convention.
1020 else
1021 ac_cv_path_install="$ac_dir/$ac_prog -c"
1022 break 2
1025 done
1027 esac
1028 done
1029 IFS="$ac_save_IFS"
1032 if test "${ac_cv_path_install+set}" = set; then
1033 INSTALL="$ac_cv_path_install"
1034 else
1035 # As a last resort, use the slow shell script. We don't cache a
1036 # path for INSTALL within a source directory, because that will
1037 # break other packages using the cache if that directory is
1038 # removed, or if the path is relative.
1039 INSTALL="$ac_install_sh"
1042 echo "$ac_t""$INSTALL" 1>&6
1044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1045 # It thinks the first close brace ends the variable substitution.
1046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1052 for ac_prog in gawk mawk nawk awk
1054 # Extract the first word of "$ac_prog", so it can be a program name with args.
1055 set dummy $ac_prog; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 echo "configure:1058: checking for $ac_word" >&5
1058 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1060 else
1061 if test -n "$AWK"; then
1062 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1063 else
1064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1065 ac_dummy="$PATH"
1066 for ac_dir in $ac_dummy; do
1067 test -z "$ac_dir" && ac_dir=.
1068 if test -f $ac_dir/$ac_word; then
1069 ac_cv_prog_AWK="$ac_prog"
1070 break
1072 done
1073 IFS="$ac_save_ifs"
1076 AWK="$ac_cv_prog_AWK"
1077 if test -n "$AWK"; then
1078 echo "$ac_t""$AWK" 1>&6
1079 else
1080 echo "$ac_t""no" 1>&6
1083 test -n "$AWK" && break
1084 done
1086 # Check whether --enable-shared or --disable-shared was given.
1087 if test "${enable_shared+set}" = set; then
1088 enableval="$enable_shared"
1089 p=${PACKAGE-default}
1090 case "$enableval" in
1091 yes) enable_shared=yes ;;
1092 no) enable_shared=no ;;
1094 enable_shared=no
1095 # Look at the argument we got. We use all the common list separators.
1096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1097 for pkg in $enableval; do
1098 if test "X$pkg" = "X$p"; then
1099 enable_shared=yes
1101 done
1102 IFS="$ac_save_ifs"
1104 esac
1105 else
1106 enable_shared=yes
1109 # Check whether --enable-static or --disable-static was given.
1110 if test "${enable_static+set}" = set; then
1111 enableval="$enable_static"
1112 p=${PACKAGE-default}
1113 case "$enableval" in
1114 yes) enable_static=yes ;;
1115 no) enable_static=no ;;
1117 enable_static=no
1118 # Look at the argument we got. We use all the common list separators.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1120 for pkg in $enableval; do
1121 if test "X$pkg" = "X$p"; then
1122 enable_static=yes
1124 done
1125 IFS="$ac_save_ifs"
1127 esac
1128 else
1129 enable_static=yes
1132 # Check whether --enable-fast-install or --disable-fast-install was given.
1133 if test "${enable_fast_install+set}" = set; then
1134 enableval="$enable_fast_install"
1135 p=${PACKAGE-default}
1136 case "$enableval" in
1137 yes) enable_fast_install=yes ;;
1138 no) enable_fast_install=no ;;
1140 enable_fast_install=no
1141 # Look at the argument we got. We use all the common list separators.
1142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1143 for pkg in $enableval; do
1144 if test "X$pkg" = "X$p"; then
1145 enable_fast_install=yes
1147 done
1148 IFS="$ac_save_ifs"
1150 esac
1151 else
1152 enable_fast_install=yes
1156 # Make sure we can run config.sub.
1157 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1158 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1161 echo $ac_n "checking host system type""... $ac_c" 1>&6
1162 echo "configure:1163: checking host system type" >&5
1164 host_alias=$host
1165 case "$host_alias" in
1166 NONE)
1167 case $nonopt in
1168 NONE)
1169 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1170 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1171 fi ;;
1172 *) host_alias=$nonopt ;;
1173 esac ;;
1174 esac
1176 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1177 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1178 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1179 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1180 echo "$ac_t""$host" 1>&6
1182 echo $ac_n "checking build system type""... $ac_c" 1>&6
1183 echo "configure:1184: checking build system type" >&5
1185 build_alias=$build
1186 case "$build_alias" in
1187 NONE)
1188 case $nonopt in
1189 NONE) build_alias=$host_alias ;;
1190 *) build_alias=$nonopt ;;
1191 esac ;;
1192 esac
1194 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1195 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1196 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1197 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1198 echo "$ac_t""$build" 1>&6
1200 # Extract the first word of "ranlib", so it can be a program name with args.
1201 set dummy ranlib; ac_word=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206 else
1207 if test -n "$RANLIB"; then
1208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1209 else
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1211 ac_dummy="$PATH"
1212 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 if test -f $ac_dir/$ac_word; then
1215 ac_cv_prog_RANLIB="ranlib"
1216 break
1218 done
1219 IFS="$ac_save_ifs"
1220 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1223 RANLIB="$ac_cv_prog_RANLIB"
1224 if test -n "$RANLIB"; then
1225 echo "$ac_t""$RANLIB" 1>&6
1226 else
1227 echo "$ac_t""no" 1>&6
1230 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1231 if test "${with_gnu_ld+set}" = set; then
1232 withval="$with_gnu_ld"
1233 test "$withval" = no || with_gnu_ld=yes
1234 else
1235 with_gnu_ld=no
1238 ac_prog=ld
1239 if test "$ac_cv_prog_gcc" = yes; then
1240 # Check if gcc -print-prog-name=ld gives a path.
1241 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1242 echo "configure:1243: checking for ld used by GCC" >&5
1243 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1244 case "$ac_prog" in
1245 # Accept absolute paths.
1246 [\\/]* | [A-Za-z]:[\\/]*)
1247 re_direlt='/[^/][^/]*/\.\./'
1248 # Canonicalize the path of ld
1249 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1250 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1251 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1252 done
1253 test -z "$LD" && LD="$ac_prog"
1256 # If it fails, then pretend we aren't using GCC.
1257 ac_prog=ld
1260 # If it is relative, then search for the first ld in PATH.
1261 with_gnu_ld=unknown
1263 esac
1264 elif test "$with_gnu_ld" = yes; then
1265 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1266 echo "configure:1267: checking for GNU ld" >&5
1267 else
1268 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1269 echo "configure:1270: checking for non-GNU ld" >&5
1271 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1273 else
1274 if test -z "$LD"; then
1275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1276 for ac_dir in $PATH; do
1277 test -z "$ac_dir" && ac_dir=.
1278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1279 ac_cv_path_LD="$ac_dir/$ac_prog"
1280 # Check to see if the program is GNU ld. I'd rather use --version,
1281 # but apparently some GNU ld's only accept -v.
1282 # Break only if it was the GNU/non-GNU ld that we prefer.
1283 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1284 test "$with_gnu_ld" != no && break
1285 else
1286 test "$with_gnu_ld" != yes && break
1289 done
1290 IFS="$ac_save_ifs"
1291 else
1292 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1296 LD="$ac_cv_path_LD"
1297 if test -n "$LD"; then
1298 echo "$ac_t""$LD" 1>&6
1299 else
1300 echo "$ac_t""no" 1>&6
1302 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1303 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1304 echo "configure:1305: checking if the linker ($LD) is GNU ld" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1309 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1310 ac_cv_prog_gnu_ld=yes
1311 else
1312 ac_cv_prog_gnu_ld=no
1316 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1319 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1320 echo "configure:1321: checking for BSD-compatible nm" >&5
1321 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324 if test -n "$NM"; then
1325 # Let the user override the test.
1326 ac_cv_path_NM="$NM"
1327 else
1328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1329 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1330 test -z "$ac_dir" && ac_dir=.
1331 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1332 # Check to see if the nm accepts a BSD-compat flag.
1333 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1334 # nm: unknown option "B" ignored
1335 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1336 ac_cv_path_NM="$ac_dir/nm -B"
1337 break
1338 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1339 ac_cv_path_NM="$ac_dir/nm -p"
1340 break
1341 else
1342 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1343 continue # so that we can try to find one that supports BSD flags
1346 done
1347 IFS="$ac_save_ifs"
1348 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1352 NM="$ac_cv_path_NM"
1353 echo "$ac_t""$NM" 1>&6
1355 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether ln -s works" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1359 else
1360 rm -f conftestdata
1361 if ln -s X conftestdata 2>/dev/null
1362 then
1363 rm -f conftestdata
1364 ac_cv_prog_LN_S="ln -s"
1365 else
1366 ac_cv_prog_LN_S=ln
1369 LN_S="$ac_cv_prog_LN_S"
1370 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1371 echo "$ac_t""yes" 1>&6
1372 else
1373 echo "$ac_t""no" 1>&6
1377 case "$target" in
1378 NONE) lt_target="$host" ;;
1379 *) lt_target="$target" ;;
1380 esac
1382 # Check for any special flags to pass to ltconfig.
1383 libtool_flags="--cache-file=$cache_file"
1384 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1385 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1386 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1387 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1388 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1391 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1392 if test "${enable_libtool_lock+set}" = set; then
1393 enableval="$enable_libtool_lock"
1397 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1398 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1400 # Some flags need to be propagated to the compiler or linker for good
1401 # libtool support.
1402 case "$lt_target" in
1403 *-*-irix6*)
1404 # Find out which ABI we are using.
1405 echo '#line 1406 "configure"' > conftest.$ac_ext
1406 if { (eval echo configure:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1407 case "`/usr/bin/file conftest.o`" in
1408 *32-bit*)
1409 LD="${LD-ld} -32"
1411 *N32*)
1412 LD="${LD-ld} -n32"
1414 *64-bit*)
1415 LD="${LD-ld} -64"
1417 esac
1419 rm -rf conftest*
1422 *-*-sco3.2v5*)
1423 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1424 SAVE_CFLAGS="$CFLAGS"
1425 CFLAGS="$CFLAGS -belf"
1426 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether the C compiler needs -belf" >&5
1428 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1430 else
1431 cat > conftest.$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1435 int main() {
1437 ; return 0; }
1439 if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1440 rm -rf conftest*
1441 lt_cv_cc_needs_belf=yes
1442 else
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1445 rm -rf conftest*
1446 lt_cv_cc_needs_belf=no
1448 rm -f conftest*
1451 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1452 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1453 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1454 CFLAGS="$SAVE_CFLAGS"
1459 esac
1462 # Save cache, so that ltconfig can load it
1463 cat > confcache <<\EOF
1464 # This file is a shell script that caches the results of configure
1465 # tests run on this system so they can be shared between configure
1466 # scripts and configure runs. It is not useful on other systems.
1467 # If it contains results you don't want to keep, you may remove or edit it.
1469 # By default, configure uses ./config.cache as the cache file,
1470 # creating it if it does not exist already. You can give configure
1471 # the --cache-file=FILE option to use a different cache file; that is
1472 # what configure does when it calls configure scripts in
1473 # subdirectories, so they share the cache.
1474 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1475 # config.status only pays attention to the cache file if you give it the
1476 # --recheck option to rerun configure.
1479 # The following way of writing the cache mishandles newlines in values,
1480 # but we know of no workaround that is simple, portable, and efficient.
1481 # So, don't put newlines in cache variables' values.
1482 # Ultrix sh set writes to stderr and can't be redirected directly,
1483 # and sets the high bit in the cache file unless we assign to the vars.
1484 (set) 2>&1 |
1485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1486 *ac_space=\ *)
1487 # `set' does not quote correctly, so add quotes (double-quote substitution
1488 # turns \\\\ into \\, and sed turns \\ into \).
1489 sed -n \
1490 -e "s/'/'\\\\''/g" \
1491 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1494 # `set' quotes correctly as required by POSIX, so do not add quotes.
1495 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1497 esac >> confcache
1498 if cmp -s $cache_file confcache; then
1500 else
1501 if test -w $cache_file; then
1502 echo "updating cache $cache_file"
1503 cat confcache > $cache_file
1504 else
1505 echo "not updating unwritable cache $cache_file"
1508 rm -f confcache
1511 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1512 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1513 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1514 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1515 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1516 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1517 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1518 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1520 # Reload cache, that may have been modified by ltconfig
1521 if test -r "$cache_file"; then
1522 echo "loading cache $cache_file"
1523 . $cache_file
1524 else
1525 echo "creating cache $cache_file"
1526 > $cache_file
1530 # This can be used to rebuild libtool when needed
1531 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1533 # Always use our own libtool.
1534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1536 # Redirect the config.log output again, so that the ltconfig log is not
1537 # clobbered by the next message.
1538 exec 5>>./config.log
1542 if test "x$CC" != xcc; then
1543 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1544 echo "configure:1545: checking whether $CC and cc understand -c and -o together" >&5
1545 else
1546 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1547 echo "configure:1548: checking whether cc understands -c and -o together" >&5
1549 set dummy $CC; ac_cc="`echo $2 |
1550 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1551 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554 echo 'foo(){}' > conftest.c
1555 # Make sure it works both with $CC and with simple cc.
1556 # We do the test twice because some compilers refuse to overwrite an
1557 # existing .o file with -o, though they will create one.
1558 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1559 if { (eval echo configure:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1560 test -f conftest.o && { (eval echo configure:1561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1561 then
1562 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1563 if test "x$CC" != xcc; then
1564 # Test first that cc exists at all.
1565 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1566 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1567 if { (eval echo configure:1568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1568 test -f conftest.o && { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1569 then
1570 # cc works too.
1572 else
1573 # cc exists but doesn't like -o.
1574 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1578 else
1579 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1581 rm -f conftest*
1584 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1585 echo "$ac_t""yes" 1>&6
1586 else
1587 echo "$ac_t""no" 1>&6
1588 cat >> confdefs.h <<\EOF
1589 #define NO_MINUS_C_MINUS_O 1
1594 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1595 BROKEN_CC=
1596 else
1597 BROKEN_CC=#
1601 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1602 echo "configure:1603: checking that the C compiler understands volatile" >&5
1603 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1605 else
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 #include <sys/types.h>
1611 int main() {
1612 volatile int i = 0
1613 ; return 0; }
1615 if { (eval echo configure:1616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1616 rm -rf conftest*
1617 samba_cv_volatile=yes
1618 else
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1621 rm -rf conftest*
1622 samba_cv_volatile=no
1624 rm -f conftest*
1627 echo "$ac_t""$samba_cv_volatile" 1>&6
1628 if test x"$samba_cv_volatile" = x"yes"; then
1629 cat >> confdefs.h <<\EOF
1630 #define HAVE_VOLATILE 1
1638 # Do some error checking and defaulting for the host and target type.
1639 # The inputs are:
1640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1642 # The rules are:
1643 # 1. You are not allowed to specify --host, --target, and nonopt at the
1644 # same time.
1645 # 2. Host defaults to nonopt.
1646 # 3. If nonopt is not specified, then host defaults to the current host,
1647 # as determined by config.guess.
1648 # 4. Target and build default to nonopt.
1649 # 5. If nonopt is not specified, then target and build default to host.
1651 # The aliases save the names the user supplied, while $host etc.
1652 # will get canonicalized.
1653 case $host---$target---$nonopt in
1654 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1656 esac
1659 # Make sure we can run config.sub.
1660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1664 echo $ac_n "checking host system type""... $ac_c" 1>&6
1665 echo "configure:1666: checking host system type" >&5
1667 host_alias=$host
1668 case "$host_alias" in
1669 NONE)
1670 case $nonopt in
1671 NONE)
1672 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1674 fi ;;
1675 *) host_alias=$nonopt ;;
1676 esac ;;
1677 esac
1679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1680 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683 echo "$ac_t""$host" 1>&6
1685 echo $ac_n "checking target system type""... $ac_c" 1>&6
1686 echo "configure:1687: checking target system type" >&5
1688 target_alias=$target
1689 case "$target_alias" in
1690 NONE)
1691 case $nonopt in
1692 NONE) target_alias=$host_alias ;;
1693 *) target_alias=$nonopt ;;
1694 esac ;;
1695 esac
1697 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1698 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1701 echo "$ac_t""$target" 1>&6
1703 echo $ac_n "checking build system type""... $ac_c" 1>&6
1704 echo "configure:1705: checking build system type" >&5
1706 build_alias=$build
1707 case "$build_alias" in
1708 NONE)
1709 case $nonopt in
1710 NONE) build_alias=$host_alias ;;
1711 *) build_alias=$nonopt ;;
1712 esac ;;
1713 esac
1715 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1716 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1719 echo "$ac_t""$build" 1>&6
1721 test "$host_alias" != "$target_alias" &&
1722 test "$program_prefix$program_suffix$program_transform_name" = \
1723 NONENONEs,x,x, &&
1724 program_prefix=${target_alias}-
1727 case "$host_os" in
1728 *irix6*) cat >> confdefs.h <<\EOF
1729 #include <standards.h>
1733 esac
1737 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1738 echo "configure:1739: checking config.cache system type" >&5
1739 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1740 test x"$ac_cv_host_system_type" != x"$host"; } ||
1741 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1742 test x"$ac_cv_build_system_type" != x"$build"; } ||
1743 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1744 test x"$ac_cv_target_system_type" != x"$target"; }; then
1745 echo "$ac_t""different" 1>&6
1746 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1747 else
1748 echo "$ac_t""same" 1>&6
1750 ac_cv_host_system_type="$host"
1751 ac_cv_build_system_type="$build"
1752 ac_cv_target_system_type="$target"
1756 # Config CPPFLAG settings for strange OS's that must be set
1757 # before other tests.
1759 case "$host_os" in
1760 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1761 *hpux*)
1762 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1763 echo "configure:1764: checking whether ${CC-cc} accepts -Ae" >&5
1764 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1766 else
1767 echo 'void f(){}' > conftest.c
1768 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1769 ac_cv_prog_cc_Ae=yes
1770 else
1771 ac_cv_prog_cc_Ae=no
1773 rm -f conftest*
1777 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1778 if test $ac_cv_prog_cc_Ae = yes; then
1779 CPPFLAGS="$CPPFLAGS -Ae"
1782 # Defines needed for HPUX support.
1783 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1784 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1786 case `uname -r` in
1787 *9*|*10*)
1788 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1789 cat >> confdefs.h <<\EOF
1790 #define USE_BOTH_CRYPT_CALLS 1
1794 *11*)
1795 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1796 cat >> confdefs.h <<\EOF
1797 #define USE_BOTH_CRYPT_CALLS 1
1801 esac
1804 # AIX4.x doesn't even admit to having large
1805 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1807 *aix4*)
1808 echo "$ac_t""enabling large file support" 1>&6
1809 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1812 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1813 # to the existance of large files..
1814 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1815 # recommendations on large file support, however it makes the
1816 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1817 # recommendation makes the compile fail on gcc2.7. JRA.
1819 *solaris*)
1820 case `uname -r` in
1821 5.6*|5.7*)
1822 echo "$ac_t""enabling large file support" 1>&6
1823 if test "$ac_cv_prog_gcc" = yes; then
1824 ${CC-cc} -v >conftest.c 2>&1
1825 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1826 rm -fr conftest.c
1827 case "$ac_cv_gcc_compiler_version_number" in
1828 *"gcc version 2.6"*|*"gcc version 2.7"*)
1829 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1832 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1834 esac
1835 else
1836 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1839 esac
1842 # Tests needed for SINIX large file support.
1844 *sysv4*)
1845 if test $host = mips-sni-sysv4 ; then
1846 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1847 echo "configure:1848: checking for LFS support" >&5
1848 old_CPPFLAGS="$CPPFLAGS"
1849 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1850 if test "$cross_compiling" = yes; then
1851 SINIX_LFS_SUPPORT=cross
1852 else
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1857 #include <unistd.h>
1858 main () {
1859 #if _LFS64_LARGEFILE == 1
1860 exit(0);
1861 #else
1862 exit(1);
1863 #endif
1866 if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1867 then
1868 SINIX_LFS_SUPPORT=yes
1869 else
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1872 rm -fr conftest*
1873 SINIX_LFS_SUPPORT=no
1875 rm -fr conftest*
1878 CPPFLAGS="$old_CPPFLAGS"
1879 if test x$SINIX_LFS_SUPPORT = xyes ; then
1880 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1881 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1882 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1883 LIBS="`getconf LFS64_LIBS` $LIBS"
1885 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1889 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1891 *linux*)
1892 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1893 echo "configure:1894: checking for LFS support" >&5
1894 old_CPPFLAGS="$CPPFLAGS"
1895 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1896 if test "$cross_compiling" = yes; then
1897 LINUX_LFS_SUPPORT=cross
1898 else
1899 cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1903 #include <unistd.h>
1904 #include <sys/utsname.h>
1905 main() {
1906 #if _LFS64_LARGEFILE == 1
1907 struct utsname uts;
1908 char *release;
1909 int major, minor;
1911 /* Ensure this is glibc 2.2 or higher */
1912 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1913 int libc_major = __GLIBC__;
1914 int libc_minor = __GLIBC_MINOR__;
1916 if (libc_major < 2)
1917 exit(1);
1918 if (libc_minor < 2)
1919 exit(1);
1920 #endif
1922 /* Ensure this is kernel 2.4 or higher */
1924 uname(&uts);
1925 release = uts.release;
1926 major = atoi(strsep(&release, "."));
1927 minor = atoi(strsep(&release, "."));
1929 if (major > 2 || (major == 2 && minor > 3))
1930 exit(0);
1931 exit(1);
1932 #else
1933 exit(1);
1934 #endif
1938 if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1939 then
1940 LINUX_LFS_SUPPORT=yes
1941 else
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1944 rm -fr conftest*
1945 LINUX_LFS_SUPPORT=no
1947 rm -fr conftest*
1950 CPPFLAGS="$old_CPPFLAGS"
1951 if test x$LINUX_LFS_SUPPORT = xyes ; then
1952 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1954 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1957 *hurd*)
1958 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1959 echo "configure:1960: checking for LFS support" >&5
1960 old_CPPFLAGS="$CPPFLAGS"
1961 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1962 if test "$cross_compiling" = yes; then
1963 GLIBC_LFS_SUPPORT=cross
1964 else
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1969 #include <unistd.h>
1970 main () {
1971 #if _LFS64_LARGEFILE == 1
1972 exit(0);
1973 #else
1974 exit(1);
1975 #endif
1978 if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1979 then
1980 GLIBC_LFS_SUPPORT=yes
1981 else
1982 echo "configure: failed program was:" >&5
1983 cat conftest.$ac_ext >&5
1984 rm -fr conftest*
1985 GLIBC_LFS_SUPPORT=no
1987 rm -fr conftest*
1990 CPPFLAGS="$old_CPPFLAGS"
1991 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1992 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1994 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1997 esac
1999 echo $ac_n "checking for inline""... $ac_c" 1>&6
2000 echo "configure:2001: checking for inline" >&5
2001 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004 ac_cv_c_inline=no
2005 for ac_kw in inline __inline__ __inline; do
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2010 int main() {
2011 } $ac_kw foo() {
2012 ; return 0; }
2014 if { (eval echo configure:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2015 rm -rf conftest*
2016 ac_cv_c_inline=$ac_kw; break
2017 else
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 rm -f conftest*
2022 done
2026 echo "$ac_t""$ac_cv_c_inline" 1>&6
2027 case "$ac_cv_c_inline" in
2028 inline | yes) ;;
2029 no) cat >> confdefs.h <<\EOF
2030 #define inline
2033 *) cat >> confdefs.h <<EOF
2034 #define inline $ac_cv_c_inline
2037 esac
2039 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2040 echo "configure:2041: checking how to run the C preprocessor" >&5
2041 # On Suns, sometimes $CPP names a directory.
2042 if test -n "$CPP" && test -d "$CPP"; then
2043 CPP=
2045 if test -z "$CPP"; then
2046 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049 # This must be in double quotes, not single quotes, because CPP may get
2050 # substituted into the Makefile and "${CC-cc}" will confuse make.
2051 CPP="${CC-cc} -E"
2052 # On the NeXT, cc -E runs the code through the compiler's parser,
2053 # not just through cpp.
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2057 #include <assert.h>
2058 Syntax Error
2060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061 { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063 if test -z "$ac_err"; then
2065 else
2066 echo "$ac_err" >&5
2067 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2069 rm -rf conftest*
2070 CPP="${CC-cc} -E -traditional-cpp"
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 #include <assert.h>
2075 Syntax Error
2077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2078 { (eval echo configure:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2080 if test -z "$ac_err"; then
2082 else
2083 echo "$ac_err" >&5
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 rm -rf conftest*
2087 CPP="${CC-cc} -nologo -E"
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 #include <assert.h>
2092 Syntax Error
2094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2095 { (eval echo configure:2096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2097 if test -z "$ac_err"; then
2099 else
2100 echo "$ac_err" >&5
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2103 rm -rf conftest*
2104 CPP=/lib/cpp
2106 rm -f conftest*
2108 rm -f conftest*
2110 rm -f conftest*
2111 ac_cv_prog_CPP="$CPP"
2113 CPP="$ac_cv_prog_CPP"
2114 else
2115 ac_cv_prog_CPP="$CPP"
2117 echo "$ac_t""$CPP" 1>&6
2119 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2120 echo "configure:2121: checking for ANSI C header files" >&5
2121 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 #include <stdlib.h>
2128 #include <stdarg.h>
2129 #include <string.h>
2130 #include <float.h>
2132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2133 { (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2135 if test -z "$ac_err"; then
2136 rm -rf conftest*
2137 ac_cv_header_stdc=yes
2138 else
2139 echo "$ac_err" >&5
2140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2142 rm -rf conftest*
2143 ac_cv_header_stdc=no
2145 rm -f conftest*
2147 if test $ac_cv_header_stdc = yes; then
2148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <string.h>
2154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2155 egrep "memchr" >/dev/null 2>&1; then
2157 else
2158 rm -rf conftest*
2159 ac_cv_header_stdc=no
2161 rm -f conftest*
2165 if test $ac_cv_header_stdc = yes; then
2166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170 #include <stdlib.h>
2172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2173 egrep "free" >/dev/null 2>&1; then
2175 else
2176 rm -rf conftest*
2177 ac_cv_header_stdc=no
2179 rm -f conftest*
2183 if test $ac_cv_header_stdc = yes; then
2184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2185 if test "$cross_compiling" = yes; then
2187 else
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 #include <ctype.h>
2192 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2193 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2195 int main () { int i; for (i = 0; i < 256; i++)
2196 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2197 exit (0); }
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2201 then
2203 else
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 rm -fr conftest*
2207 ac_cv_header_stdc=no
2209 rm -fr conftest*
2215 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2216 if test $ac_cv_header_stdc = yes; then
2217 cat >> confdefs.h <<\EOF
2218 #define STDC_HEADERS 1
2223 ac_header_dirent=no
2224 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr that defines DIR" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <sys/types.h>
2236 #include <$ac_hdr>
2237 int main() {
2238 DIR *dirp = 0;
2239 ; return 0; }
2241 if { (eval echo configure:2242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2242 rm -rf conftest*
2243 eval "ac_cv_header_dirent_$ac_safe=yes"
2244 else
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 rm -rf conftest*
2248 eval "ac_cv_header_dirent_$ac_safe=no"
2250 rm -f conftest*
2252 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h <<EOF
2256 #define $ac_tr_hdr 1
2258 ac_header_dirent=$ac_hdr; break
2259 else
2260 echo "$ac_t""no" 1>&6
2262 done
2263 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2264 if test $ac_header_dirent = dirent.h; then
2265 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2266 echo "configure:2267: checking for opendir in -ldir" >&5
2267 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271 ac_save_LIBS="$LIBS"
2272 LIBS="-ldir $LIBS"
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* Override any gcc2 internal prototype to avoid an error. */
2277 /* We use char because int might match the return type of a gcc2
2278 builtin and then its argument prototype would still apply. */
2279 char opendir();
2281 int main() {
2282 opendir()
2283 ; return 0; }
2285 if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2286 rm -rf conftest*
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2288 else
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 rm -rf conftest*
2292 eval "ac_cv_lib_$ac_lib_var=no"
2294 rm -f conftest*
2295 LIBS="$ac_save_LIBS"
2298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 LIBS="$LIBS -ldir"
2301 else
2302 echo "$ac_t""no" 1>&6
2305 else
2306 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2307 echo "configure:2308: checking for opendir in -lx" >&5
2308 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2311 else
2312 ac_save_LIBS="$LIBS"
2313 LIBS="-lx $LIBS"
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 /* Override any gcc2 internal prototype to avoid an error. */
2318 /* We use char because int might match the return type of a gcc2
2319 builtin and then its argument prototype would still apply. */
2320 char opendir();
2322 int main() {
2323 opendir()
2324 ; return 0; }
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 rm -rf conftest*
2328 eval "ac_cv_lib_$ac_lib_var=yes"
2329 else
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 rm -rf conftest*
2333 eval "ac_cv_lib_$ac_lib_var=no"
2335 rm -f conftest*
2336 LIBS="$ac_save_LIBS"
2339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 LIBS="$LIBS -lx"
2342 else
2343 echo "$ac_t""no" 1>&6
2348 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2349 echo "configure:2350: checking whether time.h and sys/time.h may both be included" >&5
2350 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2356 #include <sys/types.h>
2357 #include <sys/time.h>
2358 #include <time.h>
2359 int main() {
2360 struct tm *tp;
2361 ; return 0; }
2363 if { (eval echo configure:2364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2364 rm -rf conftest*
2365 ac_cv_header_time=yes
2366 else
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 rm -rf conftest*
2370 ac_cv_header_time=no
2372 rm -f conftest*
2375 echo "$ac_t""$ac_cv_header_time" 1>&6
2376 if test $ac_cv_header_time = yes; then
2377 cat >> confdefs.h <<\EOF
2378 #define TIME_WITH_SYS_TIME 1
2383 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2384 echo "configure:2385: checking for sys/wait.h that is POSIX.1 compatible" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <sys/types.h>
2392 #include <sys/wait.h>
2393 #ifndef WEXITSTATUS
2394 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2395 #endif
2396 #ifndef WIFEXITED
2397 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2398 #endif
2399 int main() {
2400 int s;
2401 wait (&s);
2402 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2403 ; return 0; }
2405 if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2406 rm -rf conftest*
2407 ac_cv_header_sys_wait_h=yes
2408 else
2409 echo "configure: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2411 rm -rf conftest*
2412 ac_cv_header_sys_wait_h=no
2414 rm -f conftest*
2417 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2418 if test $ac_cv_header_sys_wait_h = yes; then
2419 cat >> confdefs.h <<\EOF
2420 #define HAVE_SYS_WAIT_H 1
2425 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2429 echo "configure:2430: checking for $ac_hdr" >&5
2430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2432 else
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 #include <$ac_hdr>
2438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2439 { (eval echo configure:2440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2441 if test -z "$ac_err"; then
2442 rm -rf conftest*
2443 eval "ac_cv_header_$ac_safe=yes"
2444 else
2445 echo "$ac_err" >&5
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2448 rm -rf conftest*
2449 eval "ac_cv_header_$ac_safe=no"
2451 rm -f conftest*
2453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2456 cat >> confdefs.h <<EOF
2457 #define $ac_tr_hdr 1
2460 else
2461 echo "$ac_t""no" 1>&6
2463 done
2465 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_hdr" >&5
2470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2472 else
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 #include <$ac_hdr>
2478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2479 { (eval echo configure:2480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2481 if test -z "$ac_err"; then
2482 rm -rf conftest*
2483 eval "ac_cv_header_$ac_safe=yes"
2484 else
2485 echo "$ac_err" >&5
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2488 rm -rf conftest*
2489 eval "ac_cv_header_$ac_safe=no"
2491 rm -f conftest*
2493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2496 cat >> confdefs.h <<EOF
2497 #define $ac_tr_hdr 1
2500 else
2501 echo "$ac_t""no" 1>&6
2503 done
2505 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_hdr" >&5
2510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516 #include <$ac_hdr>
2518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2519 { (eval echo configure:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521 if test -z "$ac_err"; then
2522 rm -rf conftest*
2523 eval "ac_cv_header_$ac_safe=yes"
2524 else
2525 echo "$ac_err" >&5
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2528 rm -rf conftest*
2529 eval "ac_cv_header_$ac_safe=no"
2531 rm -f conftest*
2533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2534 echo "$ac_t""yes" 1>&6
2535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2536 cat >> confdefs.h <<EOF
2537 #define $ac_tr_hdr 1
2540 else
2541 echo "$ac_t""no" 1>&6
2543 done
2545 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2549 echo "configure:2550: checking for $ac_hdr" >&5
2550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552 else
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <$ac_hdr>
2558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2561 if test -z "$ac_err"; then
2562 rm -rf conftest*
2563 eval "ac_cv_header_$ac_safe=yes"
2564 else
2565 echo "$ac_err" >&5
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2568 rm -rf conftest*
2569 eval "ac_cv_header_$ac_safe=no"
2571 rm -f conftest*
2573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2574 echo "$ac_t""yes" 1>&6
2575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2576 cat >> confdefs.h <<EOF
2577 #define $ac_tr_hdr 1
2580 else
2581 echo "$ac_t""no" 1>&6
2583 done
2585 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_hdr" >&5
2590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2592 else
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 #include <$ac_hdr>
2598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2599 { (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2601 if test -z "$ac_err"; then
2602 rm -rf conftest*
2603 eval "ac_cv_header_$ac_safe=yes"
2604 else
2605 echo "$ac_err" >&5
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 rm -rf conftest*
2609 eval "ac_cv_header_$ac_safe=no"
2611 rm -f conftest*
2613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2616 cat >> confdefs.h <<EOF
2617 #define $ac_tr_hdr 1
2620 else
2621 echo "$ac_t""no" 1>&6
2623 done
2625 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2629 echo "configure:2630: checking for $ac_hdr" >&5
2630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633 cat > conftest.$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2636 #include <$ac_hdr>
2638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2639 { (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641 if test -z "$ac_err"; then
2642 rm -rf conftest*
2643 eval "ac_cv_header_$ac_safe=yes"
2644 else
2645 echo "$ac_err" >&5
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 eval "ac_cv_header_$ac_safe=no"
2651 rm -f conftest*
2653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2656 cat >> confdefs.h <<EOF
2657 #define $ac_tr_hdr 1
2660 else
2661 echo "$ac_t""no" 1>&6
2663 done
2665 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_hdr" >&5
2670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <$ac_hdr>
2678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2679 { (eval echo configure:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2681 if test -z "$ac_err"; then
2682 rm -rf conftest*
2683 eval "ac_cv_header_$ac_safe=yes"
2684 else
2685 echo "$ac_err" >&5
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 eval "ac_cv_header_$ac_safe=no"
2691 rm -f conftest*
2693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2696 cat >> confdefs.h <<EOF
2697 #define $ac_tr_hdr 1
2700 else
2701 echo "$ac_t""no" 1>&6
2703 done
2706 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2707 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2709 case "$host_os" in
2710 *hpux*)
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 #include <shadow.h>
2715 int main() {
2716 struct spwd testme
2717 ; return 0; }
2719 if { (eval echo configure:2720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2720 rm -rf conftest*
2721 ac_cv_header_shadow_h=yes
2722 else
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2725 rm -rf conftest*
2726 ac_cv_header_shadow_h=no
2728 rm -f conftest*
2729 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2730 cat >> confdefs.h <<\EOF
2731 #define HAVE_SHADOW_H 1
2736 esac
2737 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_hdr" >&5
2742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 #include <$ac_hdr>
2750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2754 rm -rf conftest*
2755 eval "ac_cv_header_$ac_safe=yes"
2756 else
2757 echo "$ac_err" >&5
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=no"
2763 rm -f conftest*
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2768 cat >> confdefs.h <<EOF
2769 #define $ac_tr_hdr 1
2772 else
2773 echo "$ac_t""no" 1>&6
2775 done
2777 for ac_hdr in nss.h sys/security.h security/pam_appl.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
2817 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_hdr" >&5
2822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2824 else
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2828 #include <$ac_hdr>
2830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2831 { (eval echo configure:2832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2833 if test -z "$ac_err"; then
2834 rm -rf conftest*
2835 eval "ac_cv_header_$ac_safe=yes"
2836 else
2837 echo "$ac_err" >&5
2838 echo "configure: failed program was:" >&5
2839 cat conftest.$ac_ext >&5
2840 rm -rf conftest*
2841 eval "ac_cv_header_$ac_safe=no"
2843 rm -f conftest*
2845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2846 echo "$ac_t""yes" 1>&6
2847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2848 cat >> confdefs.h <<EOF
2849 #define $ac_tr_hdr 1
2852 else
2853 echo "$ac_t""no" 1>&6
2855 done
2857 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2861 echo "configure:2862: checking for $ac_hdr" >&5
2862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2864 else
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2868 #include <$ac_hdr>
2870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2871 { (eval echo configure:2872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2873 if test -z "$ac_err"; then
2874 rm -rf conftest*
2875 eval "ac_cv_header_$ac_safe=yes"
2876 else
2877 echo "$ac_err" >&5
2878 echo "configure: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2880 rm -rf conftest*
2881 eval "ac_cv_header_$ac_safe=no"
2883 rm -f conftest*
2885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2886 echo "$ac_t""yes" 1>&6
2887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2888 cat >> confdefs.h <<EOF
2889 #define $ac_tr_hdr 1
2892 else
2893 echo "$ac_t""no" 1>&6
2895 done
2897 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2904 else
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <$ac_hdr>
2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2914 rm -rf conftest*
2915 eval "ac_cv_header_$ac_safe=yes"
2916 else
2917 echo "$ac_err" >&5
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2920 rm -rf conftest*
2921 eval "ac_cv_header_$ac_safe=no"
2923 rm -f conftest*
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928 cat >> confdefs.h <<EOF
2929 #define $ac_tr_hdr 1
2932 else
2933 echo "$ac_t""no" 1>&6
2935 done
2938 # For experimental utmp support (lastlog on some BSD-like systems)
2939 for ac_hdr in utmp.h utmpx.h lastlog.h
2941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2946 else
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <$ac_hdr>
2952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2956 rm -rf conftest*
2957 eval "ac_cv_header_$ac_safe=yes"
2958 else
2959 echo "$ac_err" >&5
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2962 rm -rf conftest*
2963 eval "ac_cv_header_$ac_safe=no"
2965 rm -f conftest*
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h <<EOF
2971 #define $ac_tr_hdr 1
2974 else
2975 echo "$ac_t""no" 1>&6
2977 done
2980 # For quotas on Veritas VxFS filesystems
2981 for ac_hdr in sys/fs/vx_quota.h
2983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_hdr" >&5
2986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2988 else
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 #include <$ac_hdr>
2994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2995 { (eval echo configure:2996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2997 if test -z "$ac_err"; then
2998 rm -rf conftest*
2999 eval "ac_cv_header_$ac_safe=yes"
3000 else
3001 echo "$ac_err" >&5
3002 echo "configure: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3004 rm -rf conftest*
3005 eval "ac_cv_header_$ac_safe=no"
3007 rm -f conftest*
3009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3010 echo "$ac_t""yes" 1>&6
3011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3012 cat >> confdefs.h <<EOF
3013 #define $ac_tr_hdr 1
3016 else
3017 echo "$ac_t""no" 1>&6
3019 done
3022 echo $ac_n "checking size of int""... $ac_c" 1>&6
3023 echo "configure:3024: checking size of int" >&5
3024 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3026 else
3027 if test "$cross_compiling" = yes; then
3028 ac_cv_sizeof_int=cross
3029 else
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033 #include <stdio.h>
3034 main()
3036 FILE *f=fopen("conftestval", "w");
3037 if (!f) exit(1);
3038 fprintf(f, "%d\n", sizeof(int));
3039 exit(0);
3042 if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3043 then
3044 ac_cv_sizeof_int=`cat conftestval`
3045 else
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3048 rm -fr conftest*
3049 ac_cv_sizeof_int=0
3051 rm -fr conftest*
3055 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3056 cat >> confdefs.h <<EOF
3057 #define SIZEOF_INT $ac_cv_sizeof_int
3061 echo $ac_n "checking size of long""... $ac_c" 1>&6
3062 echo "configure:3063: checking size of long" >&5
3063 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3065 else
3066 if test "$cross_compiling" = yes; then
3067 ac_cv_sizeof_long=cross
3068 else
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 #include <stdio.h>
3073 main()
3075 FILE *f=fopen("conftestval", "w");
3076 if (!f) exit(1);
3077 fprintf(f, "%d\n", sizeof(long));
3078 exit(0);
3081 if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3082 then
3083 ac_cv_sizeof_long=`cat conftestval`
3084 else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -fr conftest*
3088 ac_cv_sizeof_long=0
3090 rm -fr conftest*
3094 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3095 cat >> confdefs.h <<EOF
3096 #define SIZEOF_LONG $ac_cv_sizeof_long
3100 echo $ac_n "checking size of short""... $ac_c" 1>&6
3101 echo "configure:3102: checking size of short" >&5
3102 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3104 else
3105 if test "$cross_compiling" = yes; then
3106 ac_cv_sizeof_short=cross
3107 else
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <stdio.h>
3112 main()
3114 FILE *f=fopen("conftestval", "w");
3115 if (!f) exit(1);
3116 fprintf(f, "%d\n", sizeof(short));
3117 exit(0);
3120 if { (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3121 then
3122 ac_cv_sizeof_short=`cat conftestval`
3123 else
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3126 rm -fr conftest*
3127 ac_cv_sizeof_short=0
3129 rm -fr conftest*
3133 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3134 cat >> confdefs.h <<EOF
3135 #define SIZEOF_SHORT $ac_cv_sizeof_short
3140 echo $ac_n "checking for working const""... $ac_c" 1>&6
3141 echo "configure:3142: checking for working const" >&5
3142 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3144 else
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3149 int main() {
3151 /* Ultrix mips cc rejects this. */
3152 typedef int charset[2]; const charset x;
3153 /* SunOS 4.1.1 cc rejects this. */
3154 char const *const *ccp;
3155 char **p;
3156 /* NEC SVR4.0.2 mips cc rejects this. */
3157 struct point {int x, y;};
3158 static struct point const zero = {0,0};
3159 /* AIX XL C 1.02.0.0 rejects this.
3160 It does not let you subtract one const X* pointer from another in an arm
3161 of an if-expression whose if-part is not a constant expression */
3162 const char *g = "string";
3163 ccp = &g + (g ? g-g : 0);
3164 /* HPUX 7.0 cc rejects these. */
3165 ++ccp;
3166 p = (char**) ccp;
3167 ccp = (char const *const *) p;
3168 { /* SCO 3.2v4 cc rejects this. */
3169 char *t;
3170 char const *s = 0 ? (char *) 0 : (char const *) 0;
3172 *t++ = 0;
3174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3175 int x[] = {25, 17};
3176 const int *foo = &x[0];
3177 ++foo;
3179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3180 typedef const int *iptr;
3181 iptr p = 0;
3182 ++p;
3184 { /* AIX XL C 1.02.0.0 rejects this saying
3185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3186 struct s { int j; const int *ap[3]; };
3187 struct s *b; b->j = 5;
3189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3190 const int foo = 10;
3193 ; return 0; }
3195 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 rm -rf conftest*
3197 ac_cv_c_const=yes
3198 else
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3201 rm -rf conftest*
3202 ac_cv_c_const=no
3204 rm -f conftest*
3207 echo "$ac_t""$ac_cv_c_const" 1>&6
3208 if test $ac_cv_c_const = no; then
3209 cat >> confdefs.h <<\EOF
3210 #define const
3215 echo $ac_n "checking for inline""... $ac_c" 1>&6
3216 echo "configure:3217: checking for inline" >&5
3217 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3219 else
3220 ac_cv_c_inline=no
3221 for ac_kw in inline __inline__ __inline; do
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3226 int main() {
3227 } $ac_kw foo() {
3228 ; return 0; }
3230 if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231 rm -rf conftest*
3232 ac_cv_c_inline=$ac_kw; break
3233 else
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 rm -f conftest*
3238 done
3242 echo "$ac_t""$ac_cv_c_inline" 1>&6
3243 case "$ac_cv_c_inline" in
3244 inline | yes) ;;
3245 no) cat >> confdefs.h <<\EOF
3246 #define inline
3249 *) cat >> confdefs.h <<EOF
3250 #define inline $ac_cv_c_inline
3253 esac
3255 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3256 echo "configure:3257: checking whether byte ordering is bigendian" >&5
3257 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3259 else
3260 ac_cv_c_bigendian=unknown
3261 # See if sys/param.h defines the BYTE_ORDER macro.
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <sys/types.h>
3266 #include <sys/param.h>
3267 int main() {
3269 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3270 bogus endian macros
3271 #endif
3272 ; return 0; }
3274 if { (eval echo configure:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275 rm -rf conftest*
3276 # It does; now see whether it defined to BIG_ENDIAN or not.
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 #include <sys/types.h>
3281 #include <sys/param.h>
3282 int main() {
3284 #if BYTE_ORDER != BIG_ENDIAN
3285 not big endian
3286 #endif
3287 ; return 0; }
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 rm -rf conftest*
3291 ac_cv_c_bigendian=yes
3292 else
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 rm -rf conftest*
3296 ac_cv_c_bigendian=no
3298 rm -f conftest*
3299 else
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 rm -f conftest*
3304 if test $ac_cv_c_bigendian = unknown; then
3305 if test "$cross_compiling" = yes; then
3306 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3307 else
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3311 main () {
3312 /* Are we little or big endian? From Harbison&Steele. */
3313 union
3315 long l;
3316 char c[sizeof (long)];
3317 } u;
3318 u.l = 1;
3319 exit (u.c[sizeof (long) - 1] == 1);
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3323 then
3324 ac_cv_c_bigendian=no
3325 else
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3328 rm -fr conftest*
3329 ac_cv_c_bigendian=yes
3331 rm -fr conftest*
3337 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3338 if test $ac_cv_c_bigendian = yes; then
3339 cat >> confdefs.h <<\EOF
3340 #define WORDS_BIGENDIAN 1
3345 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3346 echo "configure:3347: checking whether char is unsigned" >&5
3347 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3349 else
3350 if test "$GCC" = yes; then
3351 # GCC predefines this symbol on systems where it applies.
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #ifdef __CHAR_UNSIGNED__
3357 #endif
3360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3361 egrep "yes" >/dev/null 2>&1; then
3362 rm -rf conftest*
3363 ac_cv_c_char_unsigned=yes
3364 else
3365 rm -rf conftest*
3366 ac_cv_c_char_unsigned=no
3368 rm -f conftest*
3370 else
3371 if test "$cross_compiling" = yes; then
3372 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3373 else
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3378 #if !defined(__STDC__) || __STDC__ != 1
3379 #define volatile
3380 #endif
3381 main() {
3382 volatile char c = 255; exit(c < 0);
3385 if { (eval echo configure:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3386 then
3387 ac_cv_c_char_unsigned=yes
3388 else
3389 echo "configure: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3391 rm -fr conftest*
3392 ac_cv_c_char_unsigned=no
3394 rm -fr conftest*
3400 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3401 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3402 cat >> confdefs.h <<\EOF
3403 #define __CHAR_UNSIGNED__ 1
3409 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3410 echo "configure:3411: checking return type of signal handlers" >&5
3411 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3413 else
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <sys/types.h>
3418 #include <signal.h>
3419 #ifdef signal
3420 #undef signal
3421 #endif
3422 #ifdef __cplusplus
3423 extern "C" void (*signal (int, void (*)(int)))(int);
3424 #else
3425 void (*signal ()) ();
3426 #endif
3428 int main() {
3429 int i;
3430 ; return 0; }
3432 if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 rm -rf conftest*
3434 ac_cv_type_signal=void
3435 else
3436 echo "configure: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3438 rm -rf conftest*
3439 ac_cv_type_signal=int
3441 rm -f conftest*
3444 echo "$ac_t""$ac_cv_type_signal" 1>&6
3445 cat >> confdefs.h <<EOF
3446 #define RETSIGTYPE $ac_cv_type_signal
3450 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3451 echo "configure:3452: checking for uid_t in sys/types.h" >&5
3452 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3454 else
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <sys/types.h>
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 egrep "uid_t" >/dev/null 2>&1; then
3462 rm -rf conftest*
3463 ac_cv_type_uid_t=yes
3464 else
3465 rm -rf conftest*
3466 ac_cv_type_uid_t=no
3468 rm -f conftest*
3472 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3473 if test $ac_cv_type_uid_t = no; then
3474 cat >> confdefs.h <<\EOF
3475 #define uid_t int
3478 cat >> confdefs.h <<\EOF
3479 #define gid_t int
3484 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3485 echo "configure:3486: checking for mode_t" >&5
3486 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3488 else
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 #include <sys/types.h>
3493 #if STDC_HEADERS
3494 #include <stdlib.h>
3495 #include <stddef.h>
3496 #endif
3498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3500 rm -rf conftest*
3501 ac_cv_type_mode_t=yes
3502 else
3503 rm -rf conftest*
3504 ac_cv_type_mode_t=no
3506 rm -f conftest*
3509 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3510 if test $ac_cv_type_mode_t = no; then
3511 cat >> confdefs.h <<\EOF
3512 #define mode_t int
3517 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3518 echo "configure:3519: checking for off_t" >&5
3519 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3521 else
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <sys/types.h>
3526 #if STDC_HEADERS
3527 #include <stdlib.h>
3528 #include <stddef.h>
3529 #endif
3531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3533 rm -rf conftest*
3534 ac_cv_type_off_t=yes
3535 else
3536 rm -rf conftest*
3537 ac_cv_type_off_t=no
3539 rm -f conftest*
3542 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3543 if test $ac_cv_type_off_t = no; then
3544 cat >> confdefs.h <<\EOF
3545 #define off_t long
3550 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3551 echo "configure:3552: checking for size_t" >&5
3552 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3554 else
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <sys/types.h>
3559 #if STDC_HEADERS
3560 #include <stdlib.h>
3561 #include <stddef.h>
3562 #endif
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3566 rm -rf conftest*
3567 ac_cv_type_size_t=yes
3568 else
3569 rm -rf conftest*
3570 ac_cv_type_size_t=no
3572 rm -f conftest*
3575 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3576 if test $ac_cv_type_size_t = no; then
3577 cat >> confdefs.h <<\EOF
3578 #define size_t unsigned
3583 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3584 echo "configure:3585: checking for pid_t" >&5
3585 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3587 else
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <sys/types.h>
3592 #if STDC_HEADERS
3593 #include <stdlib.h>
3594 #include <stddef.h>
3595 #endif
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3599 rm -rf conftest*
3600 ac_cv_type_pid_t=yes
3601 else
3602 rm -rf conftest*
3603 ac_cv_type_pid_t=no
3605 rm -f conftest*
3608 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3609 if test $ac_cv_type_pid_t = no; then
3610 cat >> confdefs.h <<\EOF
3611 #define pid_t int
3616 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3617 echo "configure:3618: checking for st_rdev in struct stat" >&5
3618 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620 else
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3625 #include <sys/stat.h>
3626 int main() {
3627 struct stat s; s.st_rdev;
3628 ; return 0; }
3630 if { (eval echo configure:3631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3631 rm -rf conftest*
3632 ac_cv_struct_st_rdev=yes
3633 else
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 rm -rf conftest*
3637 ac_cv_struct_st_rdev=no
3639 rm -f conftest*
3642 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3643 if test $ac_cv_struct_st_rdev = yes; then
3644 cat >> confdefs.h <<\EOF
3645 #define HAVE_ST_RDEV 1
3650 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3651 echo "configure:3652: checking for d_off in dirent" >&5
3652 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3654 else
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3659 #include <unistd.h>
3660 #include <sys/types.h>
3661 #include <dirent.h>
3662 int main() {
3663 struct dirent d; d.d_off;
3664 ; return 0; }
3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3667 rm -rf conftest*
3668 ac_cv_dirent_d_off=yes
3669 else
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3672 rm -rf conftest*
3673 ac_cv_dirent_d_off=no
3675 rm -f conftest*
3678 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3679 if test $ac_cv_dirent_d_off = yes; then
3680 cat >> confdefs.h <<\EOF
3681 #define HAVE_DIRENT_D_OFF 1
3686 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3687 echo "configure:3688: checking for ino_t" >&5
3688 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3690 else
3691 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 #include <sys/types.h>
3695 #if STDC_HEADERS
3696 #include <stdlib.h>
3697 #include <stddef.h>
3698 #endif
3700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3701 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3702 rm -rf conftest*
3703 ac_cv_type_ino_t=yes
3704 else
3705 rm -rf conftest*
3706 ac_cv_type_ino_t=no
3708 rm -f conftest*
3711 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3712 if test $ac_cv_type_ino_t = no; then
3713 cat >> confdefs.h <<\EOF
3714 #define ino_t unsigned
3719 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3720 echo "configure:3721: checking for loff_t" >&5
3721 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3723 else
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include <sys/types.h>
3728 #if STDC_HEADERS
3729 #include <stdlib.h>
3730 #include <stddef.h>
3731 #endif
3733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3735 rm -rf conftest*
3736 ac_cv_type_loff_t=yes
3737 else
3738 rm -rf conftest*
3739 ac_cv_type_loff_t=no
3741 rm -f conftest*
3744 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3745 if test $ac_cv_type_loff_t = no; then
3746 cat >> confdefs.h <<\EOF
3747 #define loff_t off_t
3752 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3753 echo "configure:3754: checking for offset_t" >&5
3754 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3756 else
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 #include <sys/types.h>
3761 #if STDC_HEADERS
3762 #include <stdlib.h>
3763 #include <stddef.h>
3764 #endif
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3768 rm -rf conftest*
3769 ac_cv_type_offset_t=yes
3770 else
3771 rm -rf conftest*
3772 ac_cv_type_offset_t=no
3774 rm -f conftest*
3777 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3778 if test $ac_cv_type_offset_t = no; then
3779 cat >> confdefs.h <<\EOF
3780 #define offset_t loff_t
3785 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3786 echo "configure:3787: checking for ssize_t" >&5
3787 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3789 else
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 #include <sys/types.h>
3794 #if STDC_HEADERS
3795 #include <stdlib.h>
3796 #include <stddef.h>
3797 #endif
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3801 rm -rf conftest*
3802 ac_cv_type_ssize_t=yes
3803 else
3804 rm -rf conftest*
3805 ac_cv_type_ssize_t=no
3807 rm -f conftest*
3810 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3811 if test $ac_cv_type_ssize_t = no; then
3812 cat >> confdefs.h <<\EOF
3813 #define ssize_t int
3818 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3819 echo "configure:3820: checking for wchar_t" >&5
3820 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3822 else
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 #include <sys/types.h>
3827 #if STDC_HEADERS
3828 #include <stdlib.h>
3829 #include <stddef.h>
3830 #endif
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3834 rm -rf conftest*
3835 ac_cv_type_wchar_t=yes
3836 else
3837 rm -rf conftest*
3838 ac_cv_type_wchar_t=no
3840 rm -f conftest*
3843 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3844 if test $ac_cv_type_wchar_t = no; then
3845 cat >> confdefs.h <<\EOF
3846 #define wchar_t unsigned short
3852 # we need libcups for CUPS support...
3853 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3854 echo "configure:3855: checking for httpConnect in -lcups" >&5
3855 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3858 else
3859 ac_save_LIBS="$LIBS"
3860 LIBS="-lcups $LIBS"
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3867 char httpConnect();
3869 int main() {
3870 httpConnect()
3871 ; return 0; }
3873 if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3874 rm -rf conftest*
3875 eval "ac_cv_lib_$ac_lib_var=yes"
3876 else
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 rm -rf conftest*
3880 eval "ac_cv_lib_$ac_lib_var=no"
3882 rm -f conftest*
3883 LIBS="$ac_save_LIBS"
3886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3888 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3890 cat >> confdefs.h <<EOF
3891 #define $ac_tr_lib 1
3894 LIBS="-lcups $LIBS"
3896 else
3897 echo "$ac_t""no" 1>&6
3901 # we need libdl for PAM and the new VFS code
3902 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3903 echo "configure:3904: checking for dlopen in -ldl" >&5
3904 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907 else
3908 ac_save_LIBS="$LIBS"
3909 LIBS="-ldl $LIBS"
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3916 char dlopen();
3918 int main() {
3919 dlopen()
3920 ; return 0; }
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3923 rm -rf conftest*
3924 eval "ac_cv_lib_$ac_lib_var=yes"
3925 else
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 rm -rf conftest*
3929 eval "ac_cv_lib_$ac_lib_var=no"
3931 rm -f conftest*
3932 LIBS="$ac_save_LIBS"
3935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 LIBS="$LIBS -ldl";
3938 cat >> confdefs.h <<\EOF
3939 #define HAVE_LIBDL 1
3942 else
3943 echo "$ac_t""no" 1>&6
3947 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3948 echo "configure:3949: checking for sig_atomic_t type" >&5
3949 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3951 else
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3957 #include <sys/types.h>
3958 #if STDC_HEADERS
3959 #include <stdlib.h>
3960 #include <stddef.h>
3961 #endif
3962 #include <signal.h>
3963 int main() {
3964 sig_atomic_t i = 0
3965 ; return 0; }
3967 if { (eval echo configure:3968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 rm -rf conftest*
3969 samba_cv_sig_atomic_t=yes
3970 else
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3973 rm -rf conftest*
3974 samba_cv_sig_atomic_t=no
3976 rm -f conftest*
3979 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3980 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3981 cat >> confdefs.h <<\EOF
3982 #define HAVE_SIG_ATOMIC_T_TYPE 1
3987 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3988 echo "configure:3989: checking for errno in errno.h" >&5
3989 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3991 else
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 #include <errno.h>
3997 int main() {
3998 int i = errno
3999 ; return 0; }
4001 if { (eval echo configure:4002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4002 rm -rf conftest*
4003 samba_cv_errno=yes
4004 else
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 rm -rf conftest*
4008 samba_cv_have_errno=no
4010 rm -f conftest*
4013 echo "$ac_t""$samba_cv_errno" 1>&6
4014 if test x"$samba_cv_errno" = x"yes"; then
4015 cat >> confdefs.h <<\EOF
4016 #define HAVE_ERRNO_DECL 1
4021 # stupid glibc has the functions but no declaration. grrrr.
4022 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4023 echo "configure:4024: checking for setresuid declaration" >&5
4024 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4026 else
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4031 #include <unistd.h>
4032 int main() {
4033 int i = (int)setresuid
4034 ; return 0; }
4036 if { (eval echo configure:4037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4037 rm -rf conftest*
4038 samba_cv_have_setresuid_decl=yes
4039 else
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4042 rm -rf conftest*
4043 samba_cv_have_setresuid_decl=no
4045 rm -f conftest*
4048 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
4049 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
4050 cat >> confdefs.h <<\EOF
4051 #define HAVE_SETRESUID_DECL 1
4056 # stupid glibc has the functions but no declaration. grrrr.
4057 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4058 echo "configure:4059: checking for setresgid declaration" >&5
4059 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4061 else
4063 cat > conftest.$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4066 #include <unistd.h>
4067 int main() {
4068 int i = (int)setresgid
4069 ; return 0; }
4071 if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4072 rm -rf conftest*
4073 samba_cv_have_setresgid_decl=yes
4074 else
4075 echo "configure: failed program was:" >&5
4076 cat conftest.$ac_ext >&5
4077 rm -rf conftest*
4078 samba_cv_have_setresgid_decl=no
4080 rm -f conftest*
4083 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4084 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
4085 cat >> confdefs.h <<\EOF
4086 #define HAVE_SETRESGID_DECL 1
4091 # and glibc has setresuid under linux but the function does
4092 # nothing until kernel 2.1.44! very dumb.
4093 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4094 echo "configure:4095: checking for real setresuid" >&5
4095 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4097 else
4099 if test "$cross_compiling" = yes; then
4100 samba_cv_have_setresuid=cross
4101 else
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4105 #include <errno.h>
4106 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4109 then
4110 samba_cv_have_setresuid=yes
4111 else
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4114 rm -fr conftest*
4115 samba_cv_have_setresuid=no
4117 rm -fr conftest*
4122 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4123 if test x"$samba_cv_have_setresuid" = x"yes"; then
4124 cat >> confdefs.h <<\EOF
4125 #define HAVE_SETRESUID 1
4130 # Do the same check for setresguid...
4132 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4133 echo "configure:4134: checking for real setresgid" >&5
4134 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4138 if test "$cross_compiling" = yes; then
4139 samba_cv_have_setresgid=cross
4140 else
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 #include <unistd.h>
4145 #include <errno.h>
4146 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4149 then
4150 samba_cv_have_setresgid=yes
4151 else
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4154 rm -fr conftest*
4155 samba_cv_have_setresgid=no
4157 rm -fr conftest*
4162 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4163 if test x"$samba_cv_have_setresgid" = x"yes"; then
4164 cat >> confdefs.h <<\EOF
4165 #define HAVE_SETRESGID 1
4170 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4171 echo "configure:4172: checking for 8-bit clean memcmp" >&5
4172 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4174 else
4175 if test "$cross_compiling" = yes; then
4176 ac_cv_func_memcmp_clean=no
4177 else
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4182 main()
4184 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4185 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4190 then
4191 ac_cv_func_memcmp_clean=yes
4192 else
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4195 rm -fr conftest*
4196 ac_cv_func_memcmp_clean=no
4198 rm -fr conftest*
4203 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4204 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4207 ###############################################
4208 # test for where we get crypt() from
4209 for ac_func in crypt
4211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4212 echo "configure:4213: checking for $ac_func" >&5
4213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4215 else
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* System header to define __stub macros and hopefully few prototypes,
4220 which can conflict with char $ac_func(); below. */
4221 #include <assert.h>
4222 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4225 char $ac_func();
4227 int main() {
4229 /* The GNU C library defines this for functions which it implements
4230 to always fail with ENOSYS. Some functions are actually named
4231 something starting with __ and the normal name is an alias. */
4232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4233 choke me
4234 #else
4235 $ac_func();
4236 #endif
4238 ; return 0; }
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4241 rm -rf conftest*
4242 eval "ac_cv_func_$ac_func=yes"
4243 else
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4246 rm -rf conftest*
4247 eval "ac_cv_func_$ac_func=no"
4249 rm -f conftest*
4252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4255 cat >> confdefs.h <<EOF
4256 #define $ac_tr_func 1
4259 else
4260 echo "$ac_t""no" 1>&6
4262 done
4264 if test x"$ac_cv_func_crypt" = x"no"; then
4265 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4266 echo "configure:4267: checking for crypt in -lcrypt" >&5
4267 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4270 else
4271 ac_save_LIBS="$LIBS"
4272 LIBS="-lcrypt $LIBS"
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4276 /* Override any gcc2 internal prototype to avoid an error. */
4277 /* We use char because int might match the return type of a gcc2
4278 builtin and then its argument prototype would still apply. */
4279 char crypt();
4281 int main() {
4282 crypt()
4283 ; return 0; }
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286 rm -rf conftest*
4287 eval "ac_cv_lib_$ac_lib_var=yes"
4288 else
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4291 rm -rf conftest*
4292 eval "ac_cv_lib_$ac_lib_var=no"
4294 rm -f conftest*
4295 LIBS="$ac_save_LIBS"
4298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4299 echo "$ac_t""yes" 1>&6
4300 LIBS="$LIBS -lcrypt";
4301 cat >> confdefs.h <<\EOF
4302 #define HAVE_CRYPT 1
4305 else
4306 echo "$ac_t""no" 1>&6
4311 ###############################################
4312 # test for where we get readline() from
4313 if test "$ac_cv_header_readline_h" = "yes" ||
4314 test "$ac_cv_header_readline_readline_h" = "yes"; then
4315 # we need to also pull in termcap for some systems to use readline
4316 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
4317 echo "configure:4318: checking for tgetent in -ltermcap" >&5
4318 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
4319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4321 else
4322 ac_save_LIBS="$LIBS"
4323 LIBS="-ltermcap $LIBS"
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4330 char tgetent();
4332 int main() {
4333 tgetent()
4334 ; return 0; }
4336 if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4337 rm -rf conftest*
4338 eval "ac_cv_lib_$ac_lib_var=yes"
4339 else
4340 echo "configure: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 rm -rf conftest*
4343 eval "ac_cv_lib_$ac_lib_var=no"
4345 rm -f conftest*
4346 LIBS="$ac_save_LIBS"
4349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4353 cat >> confdefs.h <<EOF
4354 #define $ac_tr_lib 1
4357 LIBS="-ltermcap $LIBS"
4359 else
4360 echo "$ac_t""no" 1>&6
4363 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4364 echo "configure:4365: checking for rl_callback_handler_install in -lreadline" >&5
4365 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4368 else
4369 ac_save_LIBS="$LIBS"
4370 LIBS="-lreadline $LIBS"
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4377 char rl_callback_handler_install();
4379 int main() {
4380 rl_callback_handler_install()
4381 ; return 0; }
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 rm -rf conftest*
4385 eval "ac_cv_lib_$ac_lib_var=yes"
4386 else
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4389 rm -rf conftest*
4390 eval "ac_cv_lib_$ac_lib_var=no"
4392 rm -f conftest*
4393 LIBS="$ac_save_LIBS"
4396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4400 cat >> confdefs.h <<EOF
4401 #define $ac_tr_lib 1
4404 LIBS="-lreadline $LIBS"
4406 else
4407 echo "$ac_t""no" 1>&6
4413 # The following test taken from the cvs sources
4414 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4415 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4416 # libsocket.so which has a bad implementation of gethostbyname (it
4417 # only looks in /etc/hosts), so we only look for -lsocket if we need
4418 # it.
4419 for ac_func in connect
4421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_func" >&5
4423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4425 else
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 /* System header to define __stub macros and hopefully few prototypes,
4430 which can conflict with char $ac_func(); below. */
4431 #include <assert.h>
4432 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4435 char $ac_func();
4437 int main() {
4439 /* The GNU C library defines this for functions which it implements
4440 to always fail with ENOSYS. Some functions are actually named
4441 something starting with __ and the normal name is an alias. */
4442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4443 choke me
4444 #else
4445 $ac_func();
4446 #endif
4448 ; return 0; }
4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4451 rm -rf conftest*
4452 eval "ac_cv_func_$ac_func=yes"
4453 else
4454 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4456 rm -rf conftest*
4457 eval "ac_cv_func_$ac_func=no"
4459 rm -f conftest*
4462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4463 echo "$ac_t""yes" 1>&6
4464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4465 cat >> confdefs.h <<EOF
4466 #define $ac_tr_func 1
4469 else
4470 echo "$ac_t""no" 1>&6
4472 done
4474 if test x"$ac_cv_func_connect" = x"no"; then
4475 case "$LIBS" in
4476 *-lnsl*) ;;
4477 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4478 echo "configure:4479: checking for printf in -lnsl_s" >&5
4479 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4482 else
4483 ac_save_LIBS="$LIBS"
4484 LIBS="-lnsl_s $LIBS"
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4491 char printf();
4493 int main() {
4494 printf()
4495 ; return 0; }
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4498 rm -rf conftest*
4499 eval "ac_cv_lib_$ac_lib_var=yes"
4500 else
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4503 rm -rf conftest*
4504 eval "ac_cv_lib_$ac_lib_var=no"
4506 rm -f conftest*
4507 LIBS="$ac_save_LIBS"
4510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_lib 1
4518 LIBS="-lnsl_s $LIBS"
4520 else
4521 echo "$ac_t""no" 1>&6
4524 esac
4525 case "$LIBS" in
4526 *-lnsl*) ;;
4527 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4528 echo "configure:4529: checking for printf in -lnsl" >&5
4529 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4532 else
4533 ac_save_LIBS="$LIBS"
4534 LIBS="-lnsl $LIBS"
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 /* We use char because int might match the return type of a gcc2
4540 builtin and then its argument prototype would still apply. */
4541 char printf();
4543 int main() {
4544 printf()
4545 ; return 0; }
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4548 rm -rf conftest*
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4550 else
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4553 rm -rf conftest*
4554 eval "ac_cv_lib_$ac_lib_var=no"
4556 rm -f conftest*
4557 LIBS="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_lib 1
4568 LIBS="-lnsl $LIBS"
4570 else
4571 echo "$ac_t""no" 1>&6
4574 esac
4575 case "$LIBS" in
4576 *-lsocket*) ;;
4577 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4578 echo "configure:4579: checking for connect in -lsocket" >&5
4579 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4582 else
4583 ac_save_LIBS="$LIBS"
4584 LIBS="-lsocket $LIBS"
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 /* We use char because int might match the return type of a gcc2
4590 builtin and then its argument prototype would still apply. */
4591 char connect();
4593 int main() {
4594 connect()
4595 ; return 0; }
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4598 rm -rf conftest*
4599 eval "ac_cv_lib_$ac_lib_var=yes"
4600 else
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4603 rm -rf conftest*
4604 eval "ac_cv_lib_$ac_lib_var=no"
4606 rm -f conftest*
4607 LIBS="$ac_save_LIBS"
4610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4612 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4614 cat >> confdefs.h <<EOF
4615 #define $ac_tr_lib 1
4618 LIBS="-lsocket $LIBS"
4620 else
4621 echo "$ac_t""no" 1>&6
4624 esac
4625 case "$LIBS" in
4626 *-linet*) ;;
4627 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4628 echo "configure:4629: checking for connect in -linet" >&5
4629 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4632 else
4633 ac_save_LIBS="$LIBS"
4634 LIBS="-linet $LIBS"
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4638 /* Override any gcc2 internal prototype to avoid an error. */
4639 /* We use char because int might match the return type of a gcc2
4640 builtin and then its argument prototype would still apply. */
4641 char connect();
4643 int main() {
4644 connect()
4645 ; return 0; }
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4648 rm -rf conftest*
4649 eval "ac_cv_lib_$ac_lib_var=yes"
4650 else
4651 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5
4653 rm -rf conftest*
4654 eval "ac_cv_lib_$ac_lib_var=no"
4656 rm -f conftest*
4657 LIBS="$ac_save_LIBS"
4660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4662 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4663 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4664 cat >> confdefs.h <<EOF
4665 #define $ac_tr_lib 1
4668 LIBS="-linet $LIBS"
4670 else
4671 echo "$ac_t""no" 1>&6
4674 esac
4675 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4676 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4677 # ac_cv_func_connect=yes
4678 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4679 cat >> confdefs.h <<\EOF
4680 #define HAVE_CONNECT 1
4686 ###############################################
4687 # test for where we get get_yp_default_domain() from
4688 for ac_func in yp_get_default_domain
4690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_func" >&5
4692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4694 else
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 /* System header to define __stub macros and hopefully few prototypes,
4699 which can conflict with char $ac_func(); below. */
4700 #include <assert.h>
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4704 char $ac_func();
4706 int main() {
4708 /* The GNU C library defines this for functions which it implements
4709 to always fail with ENOSYS. Some functions are actually named
4710 something starting with __ and the normal name is an alias. */
4711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4712 choke me
4713 #else
4714 $ac_func();
4715 #endif
4717 ; return 0; }
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4720 rm -rf conftest*
4721 eval "ac_cv_func_$ac_func=yes"
4722 else
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 rm -rf conftest*
4726 eval "ac_cv_func_$ac_func=no"
4728 rm -f conftest*
4731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4734 cat >> confdefs.h <<EOF
4735 #define $ac_tr_func 1
4738 else
4739 echo "$ac_t""no" 1>&6
4741 done
4743 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4744 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4745 echo "configure:4746: checking for yp_get_default_domain in -lnsl" >&5
4746 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749 else
4750 ac_save_LIBS="$LIBS"
4751 LIBS="-lnsl $LIBS"
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4758 char yp_get_default_domain();
4760 int main() {
4761 yp_get_default_domain()
4762 ; return 0; }
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765 rm -rf conftest*
4766 eval "ac_cv_lib_$ac_lib_var=yes"
4767 else
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 rm -rf conftest*
4771 eval "ac_cv_lib_$ac_lib_var=no"
4773 rm -f conftest*
4774 LIBS="$ac_save_LIBS"
4777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4779 LIBS="$LIBS -lnsl";
4780 cat >> confdefs.h <<\EOF
4781 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4784 else
4785 echo "$ac_t""no" 1>&6
4790 # Check if we have execl, if not we need to compile smbrun.
4791 for ac_func in execl
4793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4794 echo "configure:4795: checking for $ac_func" >&5
4795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4797 else
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 /* System header to define __stub macros and hopefully few prototypes,
4802 which can conflict with char $ac_func(); below. */
4803 #include <assert.h>
4804 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4807 char $ac_func();
4809 int main() {
4811 /* The GNU C library defines this for functions which it implements
4812 to always fail with ENOSYS. Some functions are actually named
4813 something starting with __ and the normal name is an alias. */
4814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4815 choke me
4816 #else
4817 $ac_func();
4818 #endif
4820 ; return 0; }
4822 if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4823 rm -rf conftest*
4824 eval "ac_cv_func_$ac_func=yes"
4825 else
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4828 rm -rf conftest*
4829 eval "ac_cv_func_$ac_func=no"
4831 rm -f conftest*
4834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4837 cat >> confdefs.h <<EOF
4838 #define $ac_tr_func 1
4841 else
4842 echo "$ac_t""no" 1>&6
4844 done
4846 if test x"$ac_cv_func_execl" = x"no"; then
4847 RUNPROG="bin/smbrun"
4848 else
4849 RUNPROG=""
4852 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4855 echo "configure:4856: checking for $ac_func" >&5
4856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4858 else
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* System header to define __stub macros and hopefully few prototypes,
4863 which can conflict with char $ac_func(); below. */
4864 #include <assert.h>
4865 /* Override any gcc2 internal prototype to avoid an error. */
4866 /* We use char because int might match the return type of a gcc2
4867 builtin and then its argument prototype would still apply. */
4868 char $ac_func();
4870 int main() {
4872 /* The GNU C library defines this for functions which it implements
4873 to always fail with ENOSYS. Some functions are actually named
4874 something starting with __ and the normal name is an alias. */
4875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4876 choke me
4877 #else
4878 $ac_func();
4879 #endif
4881 ; return 0; }
4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884 rm -rf conftest*
4885 eval "ac_cv_func_$ac_func=yes"
4886 else
4887 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4889 rm -rf conftest*
4890 eval "ac_cv_func_$ac_func=no"
4892 rm -f conftest*
4895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4898 cat >> confdefs.h <<EOF
4899 #define $ac_tr_func 1
4902 else
4903 echo "$ac_t""no" 1>&6
4905 done
4907 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4910 echo "configure:4911: checking for $ac_func" >&5
4911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4913 else
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4917 /* System header to define __stub macros and hopefully few prototypes,
4918 which can conflict with char $ac_func(); below. */
4919 #include <assert.h>
4920 /* Override any gcc2 internal prototype to avoid an error. */
4921 /* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4923 char $ac_func();
4925 int main() {
4927 /* The GNU C library defines this for functions which it implements
4928 to always fail with ENOSYS. Some functions are actually named
4929 something starting with __ and the normal name is an alias. */
4930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4931 choke me
4932 #else
4933 $ac_func();
4934 #endif
4936 ; return 0; }
4938 if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4939 rm -rf conftest*
4940 eval "ac_cv_func_$ac_func=yes"
4941 else
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 rm -rf conftest*
4945 eval "ac_cv_func_$ac_func=no"
4947 rm -f conftest*
4950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4951 echo "$ac_t""yes" 1>&6
4952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4953 cat >> confdefs.h <<EOF
4954 #define $ac_tr_func 1
4957 else
4958 echo "$ac_t""no" 1>&6
4960 done
4962 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4965 echo "configure:4966: checking for $ac_func" >&5
4966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4968 else
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4972 /* System header to define __stub macros and hopefully few prototypes,
4973 which can conflict with char $ac_func(); below. */
4974 #include <assert.h>
4975 /* Override any gcc2 internal prototype to avoid an error. */
4976 /* We use char because int might match the return type of a gcc2
4977 builtin and then its argument prototype would still apply. */
4978 char $ac_func();
4980 int main() {
4982 /* The GNU C library defines this for functions which it implements
4983 to always fail with ENOSYS. Some functions are actually named
4984 something starting with __ and the normal name is an alias. */
4985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4986 choke me
4987 #else
4988 $ac_func();
4989 #endif
4991 ; return 0; }
4993 if { (eval echo configure:4994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4994 rm -rf conftest*
4995 eval "ac_cv_func_$ac_func=yes"
4996 else
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
4999 rm -rf conftest*
5000 eval "ac_cv_func_$ac_func=no"
5002 rm -f conftest*
5005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5006 echo "$ac_t""yes" 1>&6
5007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5008 cat >> confdefs.h <<EOF
5009 #define $ac_tr_func 1
5012 else
5013 echo "$ac_t""no" 1>&6
5015 done
5017 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5020 echo "configure:5021: checking for $ac_func" >&5
5021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5023 else
5024 cat > conftest.$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5027 /* System header to define __stub macros and hopefully few prototypes,
5028 which can conflict with char $ac_func(); below. */
5029 #include <assert.h>
5030 /* Override any gcc2 internal prototype to avoid an error. */
5031 /* We use char because int might match the return type of a gcc2
5032 builtin and then its argument prototype would still apply. */
5033 char $ac_func();
5035 int main() {
5037 /* The GNU C library defines this for functions which it implements
5038 to always fail with ENOSYS. Some functions are actually named
5039 something starting with __ and the normal name is an alias. */
5040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5041 choke me
5042 #else
5043 $ac_func();
5044 #endif
5046 ; return 0; }
5048 if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5049 rm -rf conftest*
5050 eval "ac_cv_func_$ac_func=yes"
5051 else
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5054 rm -rf conftest*
5055 eval "ac_cv_func_$ac_func=no"
5057 rm -f conftest*
5060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5061 echo "$ac_t""yes" 1>&6
5062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5063 cat >> confdefs.h <<EOF
5064 #define $ac_tr_func 1
5067 else
5068 echo "$ac_t""no" 1>&6
5070 done
5072 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5075 echo "configure:5076: checking for $ac_func" >&5
5076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5078 else
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5082 /* System header to define __stub macros and hopefully few prototypes,
5083 which can conflict with char $ac_func(); below. */
5084 #include <assert.h>
5085 /* Override any gcc2 internal prototype to avoid an error. */
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5088 char $ac_func();
5090 int main() {
5092 /* The GNU C library defines this for functions which it implements
5093 to always fail with ENOSYS. Some functions are actually named
5094 something starting with __ and the normal name is an alias. */
5095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5096 choke me
5097 #else
5098 $ac_func();
5099 #endif
5101 ; return 0; }
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 rm -rf conftest*
5105 eval "ac_cv_func_$ac_func=yes"
5106 else
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5109 rm -rf conftest*
5110 eval "ac_cv_func_$ac_func=no"
5112 rm -f conftest*
5115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5118 cat >> confdefs.h <<EOF
5119 #define $ac_tr_func 1
5122 else
5123 echo "$ac_t""no" 1>&6
5125 done
5127 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5130 echo "configure:5131: checking for $ac_func" >&5
5131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5133 else
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 /* System header to define __stub macros and hopefully few prototypes,
5138 which can conflict with char $ac_func(); below. */
5139 #include <assert.h>
5140 /* Override any gcc2 internal prototype to avoid an error. */
5141 /* We use char because int might match the return type of a gcc2
5142 builtin and then its argument prototype would still apply. */
5143 char $ac_func();
5145 int main() {
5147 /* The GNU C library defines this for functions which it implements
5148 to always fail with ENOSYS. Some functions are actually named
5149 something starting with __ and the normal name is an alias. */
5150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5151 choke me
5152 #else
5153 $ac_func();
5154 #endif
5156 ; return 0; }
5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5159 rm -rf conftest*
5160 eval "ac_cv_func_$ac_func=yes"
5161 else
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5164 rm -rf conftest*
5165 eval "ac_cv_func_$ac_func=no"
5167 rm -f conftest*
5170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5171 echo "$ac_t""yes" 1>&6
5172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5173 cat >> confdefs.h <<EOF
5174 #define $ac_tr_func 1
5177 else
5178 echo "$ac_t""no" 1>&6
5180 done
5182 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5185 echo "configure:5186: checking for $ac_func" >&5
5186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5187 echo $ac_n "(cached) $ac_c" 1>&6
5188 else
5189 cat > conftest.$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 /* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char $ac_func(); below. */
5194 #include <assert.h>
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198 char $ac_func();
5200 int main() {
5202 /* The GNU C library defines this for functions which it implements
5203 to always fail with ENOSYS. Some functions are actually named
5204 something starting with __ and the normal name is an alias. */
5205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5206 choke me
5207 #else
5208 $ac_func();
5209 #endif
5211 ; return 0; }
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5214 rm -rf conftest*
5215 eval "ac_cv_func_$ac_func=yes"
5216 else
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5219 rm -rf conftest*
5220 eval "ac_cv_func_$ac_func=no"
5222 rm -f conftest*
5225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5226 echo "$ac_t""yes" 1>&6
5227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5228 cat >> confdefs.h <<EOF
5229 #define $ac_tr_func 1
5232 else
5233 echo "$ac_t""no" 1>&6
5235 done
5237 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
5239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5240 echo "configure:5241: checking for $ac_func" >&5
5241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5243 else
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* System header to define __stub macros and hopefully few prototypes,
5248 which can conflict with char $ac_func(); below. */
5249 #include <assert.h>
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5253 char $ac_func();
5255 int main() {
5257 /* The GNU C library defines this for functions which it implements
5258 to always fail with ENOSYS. Some functions are actually named
5259 something starting with __ and the normal name is an alias. */
5260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5261 choke me
5262 #else
5263 $ac_func();
5264 #endif
5266 ; return 0; }
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5269 rm -rf conftest*
5270 eval "ac_cv_func_$ac_func=yes"
5271 else
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5274 rm -rf conftest*
5275 eval "ac_cv_func_$ac_func=no"
5277 rm -f conftest*
5280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5283 cat >> confdefs.h <<EOF
5284 #define $ac_tr_func 1
5287 else
5288 echo "$ac_t""no" 1>&6
5290 done
5292 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5295 echo "configure:5296: checking for $ac_func" >&5
5296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5298 else
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 /* System header to define __stub macros and hopefully few prototypes,
5303 which can conflict with char $ac_func(); below. */
5304 #include <assert.h>
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5308 char $ac_func();
5310 int main() {
5312 /* The GNU C library defines this for functions which it implements
5313 to always fail with ENOSYS. Some functions are actually named
5314 something starting with __ and the normal name is an alias. */
5315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5316 choke me
5317 #else
5318 $ac_func();
5319 #endif
5321 ; return 0; }
5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5324 rm -rf conftest*
5325 eval "ac_cv_func_$ac_func=yes"
5326 else
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 rm -rf conftest*
5330 eval "ac_cv_func_$ac_func=no"
5332 rm -f conftest*
5335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5338 cat >> confdefs.h <<EOF
5339 #define $ac_tr_func 1
5342 else
5343 echo "$ac_t""no" 1>&6
5345 done
5348 # syscall() is needed for smbwrapper.
5349 for ac_func in syscall
5351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5352 echo "configure:5353: checking for $ac_func" >&5
5353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5355 else
5356 cat > conftest.$ac_ext <<EOF
5357 #line 5358 "configure"
5358 #include "confdefs.h"
5359 /* System header to define __stub macros and hopefully few prototypes,
5360 which can conflict with char $ac_func(); below. */
5361 #include <assert.h>
5362 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5365 char $ac_func();
5367 int main() {
5369 /* The GNU C library defines this for functions which it implements
5370 to always fail with ENOSYS. Some functions are actually named
5371 something starting with __ and the normal name is an alias. */
5372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5373 choke me
5374 #else
5375 $ac_func();
5376 #endif
5378 ; return 0; }
5380 if { (eval echo configure:5381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5381 rm -rf conftest*
5382 eval "ac_cv_func_$ac_func=yes"
5383 else
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5386 rm -rf conftest*
5387 eval "ac_cv_func_$ac_func=no"
5389 rm -f conftest*
5392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5393 echo "$ac_t""yes" 1>&6
5394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5395 cat >> confdefs.h <<EOF
5396 #define $ac_tr_func 1
5399 else
5400 echo "$ac_t""no" 1>&6
5402 done
5405 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5408 echo "configure:5409: checking for $ac_func" >&5
5409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5411 else
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 /* System header to define __stub macros and hopefully few prototypes,
5416 which can conflict with char $ac_func(); below. */
5417 #include <assert.h>
5418 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5421 char $ac_func();
5423 int main() {
5425 /* The GNU C library defines this for functions which it implements
5426 to always fail with ENOSYS. Some functions are actually named
5427 something starting with __ and the normal name is an alias. */
5428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5429 choke me
5430 #else
5431 $ac_func();
5432 #endif
5434 ; return 0; }
5436 if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5437 rm -rf conftest*
5438 eval "ac_cv_func_$ac_func=yes"
5439 else
5440 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5442 rm -rf conftest*
5443 eval "ac_cv_func_$ac_func=no"
5445 rm -f conftest*
5448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5449 echo "$ac_t""yes" 1>&6
5450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5451 cat >> confdefs.h <<EOF
5452 #define $ac_tr_func 1
5455 else
5456 echo "$ac_t""no" 1>&6
5458 done
5460 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5463 echo "configure:5464: checking for $ac_func" >&5
5464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5466 else
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5470 /* System header to define __stub macros and hopefully few prototypes,
5471 which can conflict with char $ac_func(); below. */
5472 #include <assert.h>
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5476 char $ac_func();
5478 int main() {
5480 /* The GNU C library defines this for functions which it implements
5481 to always fail with ENOSYS. Some functions are actually named
5482 something starting with __ and the normal name is an alias. */
5483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5484 choke me
5485 #else
5486 $ac_func();
5487 #endif
5489 ; return 0; }
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5492 rm -rf conftest*
5493 eval "ac_cv_func_$ac_func=yes"
5494 else
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 rm -rf conftest*
5498 eval "ac_cv_func_$ac_func=no"
5500 rm -f conftest*
5503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5506 cat >> confdefs.h <<EOF
5507 #define $ac_tr_func 1
5510 else
5511 echo "$ac_t""no" 1>&6
5513 done
5515 for ac_func in __getcwd _getcwd
5517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5518 echo "configure:5519: checking for $ac_func" >&5
5519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5520 echo $ac_n "(cached) $ac_c" 1>&6
5521 else
5522 cat > conftest.$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5525 /* System header to define __stub macros and hopefully few prototypes,
5526 which can conflict with char $ac_func(); below. */
5527 #include <assert.h>
5528 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5531 char $ac_func();
5533 int main() {
5535 /* The GNU C library defines this for functions which it implements
5536 to always fail with ENOSYS. Some functions are actually named
5537 something starting with __ and the normal name is an alias. */
5538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5539 choke me
5540 #else
5541 $ac_func();
5542 #endif
5544 ; return 0; }
5546 if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5547 rm -rf conftest*
5548 eval "ac_cv_func_$ac_func=yes"
5549 else
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5552 rm -rf conftest*
5553 eval "ac_cv_func_$ac_func=no"
5555 rm -f conftest*
5558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5559 echo "$ac_t""yes" 1>&6
5560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5561 cat >> confdefs.h <<EOF
5562 #define $ac_tr_func 1
5565 else
5566 echo "$ac_t""no" 1>&6
5568 done
5570 for ac_func in __xstat __fxstat __lxstat
5572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5573 echo "configure:5574: checking for $ac_func" >&5
5574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5576 else
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5580 /* System header to define __stub macros and hopefully few prototypes,
5581 which can conflict with char $ac_func(); below. */
5582 #include <assert.h>
5583 /* Override any gcc2 internal prototype to avoid an error. */
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5586 char $ac_func();
5588 int main() {
5590 /* The GNU C library defines this for functions which it implements
5591 to always fail with ENOSYS. Some functions are actually named
5592 something starting with __ and the normal name is an alias. */
5593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5594 choke me
5595 #else
5596 $ac_func();
5597 #endif
5599 ; return 0; }
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5602 rm -rf conftest*
5603 eval "ac_cv_func_$ac_func=yes"
5604 else
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 rm -rf conftest*
5608 eval "ac_cv_func_$ac_func=no"
5610 rm -f conftest*
5613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5614 echo "$ac_t""yes" 1>&6
5615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5616 cat >> confdefs.h <<EOF
5617 #define $ac_tr_func 1
5620 else
5621 echo "$ac_t""no" 1>&6
5623 done
5625 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5628 echo "configure:5629: checking for $ac_func" >&5
5629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5631 else
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5635 /* System header to define __stub macros and hopefully few prototypes,
5636 which can conflict with char $ac_func(); below. */
5637 #include <assert.h>
5638 /* Override any gcc2 internal prototype to avoid an error. */
5639 /* We use char because int might match the return type of a gcc2
5640 builtin and then its argument prototype would still apply. */
5641 char $ac_func();
5643 int main() {
5645 /* The GNU C library defines this for functions which it implements
5646 to always fail with ENOSYS. Some functions are actually named
5647 something starting with __ and the normal name is an alias. */
5648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5649 choke me
5650 #else
5651 $ac_func();
5652 #endif
5654 ; return 0; }
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5657 rm -rf conftest*
5658 eval "ac_cv_func_$ac_func=yes"
5659 else
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5662 rm -rf conftest*
5663 eval "ac_cv_func_$ac_func=no"
5665 rm -f conftest*
5668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5671 cat >> confdefs.h <<EOF
5672 #define $ac_tr_func 1
5675 else
5676 echo "$ac_t""no" 1>&6
5678 done
5680 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5683 echo "configure:5684: checking for $ac_func" >&5
5684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5686 else
5687 cat > conftest.$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 /* System header to define __stub macros and hopefully few prototypes,
5691 which can conflict with char $ac_func(); below. */
5692 #include <assert.h>
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 /* We use char because int might match the return type of a gcc2
5695 builtin and then its argument prototype would still apply. */
5696 char $ac_func();
5698 int main() {
5700 /* The GNU C library defines this for functions which it implements
5701 to always fail with ENOSYS. Some functions are actually named
5702 something starting with __ and the normal name is an alias. */
5703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5704 choke me
5705 #else
5706 $ac_func();
5707 #endif
5709 ; return 0; }
5711 if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5712 rm -rf conftest*
5713 eval "ac_cv_func_$ac_func=yes"
5714 else
5715 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5717 rm -rf conftest*
5718 eval "ac_cv_func_$ac_func=no"
5720 rm -f conftest*
5723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5724 echo "$ac_t""yes" 1>&6
5725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5726 cat >> confdefs.h <<EOF
5727 #define $ac_tr_func 1
5730 else
5731 echo "$ac_t""no" 1>&6
5733 done
5735 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5738 echo "configure:5739: checking for $ac_func" >&5
5739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5740 echo $ac_n "(cached) $ac_c" 1>&6
5741 else
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745 /* System header to define __stub macros and hopefully few prototypes,
5746 which can conflict with char $ac_func(); below. */
5747 #include <assert.h>
5748 /* Override any gcc2 internal prototype to avoid an error. */
5749 /* We use char because int might match the return type of a gcc2
5750 builtin and then its argument prototype would still apply. */
5751 char $ac_func();
5753 int main() {
5755 /* The GNU C library defines this for functions which it implements
5756 to always fail with ENOSYS. Some functions are actually named
5757 something starting with __ and the normal name is an alias. */
5758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5759 choke me
5760 #else
5761 $ac_func();
5762 #endif
5764 ; return 0; }
5766 if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5767 rm -rf conftest*
5768 eval "ac_cv_func_$ac_func=yes"
5769 else
5770 echo "configure: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5772 rm -rf conftest*
5773 eval "ac_cv_func_$ac_func=no"
5775 rm -f conftest*
5778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5779 echo "$ac_t""yes" 1>&6
5780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5781 cat >> confdefs.h <<EOF
5782 #define $ac_tr_func 1
5785 else
5786 echo "$ac_t""no" 1>&6
5788 done
5790 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5793 echo "configure:5794: checking for $ac_func" >&5
5794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5796 else
5797 cat > conftest.$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5800 /* System header to define __stub macros and hopefully few prototypes,
5801 which can conflict with char $ac_func(); below. */
5802 #include <assert.h>
5803 /* Override any gcc2 internal prototype to avoid an error. */
5804 /* We use char because int might match the return type of a gcc2
5805 builtin and then its argument prototype would still apply. */
5806 char $ac_func();
5808 int main() {
5810 /* The GNU C library defines this for functions which it implements
5811 to always fail with ENOSYS. Some functions are actually named
5812 something starting with __ and the normal name is an alias. */
5813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5814 choke me
5815 #else
5816 $ac_func();
5817 #endif
5819 ; return 0; }
5821 if { (eval echo configure:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 rm -rf conftest*
5823 eval "ac_cv_func_$ac_func=yes"
5824 else
5825 echo "configure: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5827 rm -rf conftest*
5828 eval "ac_cv_func_$ac_func=no"
5830 rm -f conftest*
5833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5834 echo "$ac_t""yes" 1>&6
5835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5836 cat >> confdefs.h <<EOF
5837 #define $ac_tr_func 1
5840 else
5841 echo "$ac_t""no" 1>&6
5843 done
5845 for ac_func in _write __write _fork __fork
5847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5848 echo "configure:5849: checking for $ac_func" >&5
5849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5851 else
5852 cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5855 /* System header to define __stub macros and hopefully few prototypes,
5856 which can conflict with char $ac_func(); below. */
5857 #include <assert.h>
5858 /* Override any gcc2 internal prototype to avoid an error. */
5859 /* We use char because int might match the return type of a gcc2
5860 builtin and then its argument prototype would still apply. */
5861 char $ac_func();
5863 int main() {
5865 /* The GNU C library defines this for functions which it implements
5866 to always fail with ENOSYS. Some functions are actually named
5867 something starting with __ and the normal name is an alias. */
5868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5869 choke me
5870 #else
5871 $ac_func();
5872 #endif
5874 ; return 0; }
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5877 rm -rf conftest*
5878 eval "ac_cv_func_$ac_func=yes"
5879 else
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5882 rm -rf conftest*
5883 eval "ac_cv_func_$ac_func=no"
5885 rm -f conftest*
5888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5889 echo "$ac_t""yes" 1>&6
5890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5891 cat >> confdefs.h <<EOF
5892 #define $ac_tr_func 1
5895 else
5896 echo "$ac_t""no" 1>&6
5898 done
5900 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5903 echo "configure:5904: checking for $ac_func" >&5
5904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5906 else
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 /* System header to define __stub macros and hopefully few prototypes,
5911 which can conflict with char $ac_func(); below. */
5912 #include <assert.h>
5913 /* Override any gcc2 internal prototype to avoid an error. */
5914 /* We use char because int might match the return type of a gcc2
5915 builtin and then its argument prototype would still apply. */
5916 char $ac_func();
5918 int main() {
5920 /* The GNU C library defines this for functions which it implements
5921 to always fail with ENOSYS. Some functions are actually named
5922 something starting with __ and the normal name is an alias. */
5923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5924 choke me
5925 #else
5926 $ac_func();
5927 #endif
5929 ; return 0; }
5931 if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5932 rm -rf conftest*
5933 eval "ac_cv_func_$ac_func=yes"
5934 else
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5937 rm -rf conftest*
5938 eval "ac_cv_func_$ac_func=no"
5940 rm -f conftest*
5943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5944 echo "$ac_t""yes" 1>&6
5945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5946 cat >> confdefs.h <<EOF
5947 #define $ac_tr_func 1
5950 else
5951 echo "$ac_t""no" 1>&6
5953 done
5955 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5958 echo "configure:5959: checking for $ac_func" >&5
5959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5961 else
5962 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5965 /* System header to define __stub macros and hopefully few prototypes,
5966 which can conflict with char $ac_func(); below. */
5967 #include <assert.h>
5968 /* Override any gcc2 internal prototype to avoid an error. */
5969 /* We use char because int might match the return type of a gcc2
5970 builtin and then its argument prototype would still apply. */
5971 char $ac_func();
5973 int main() {
5975 /* The GNU C library defines this for functions which it implements
5976 to always fail with ENOSYS. Some functions are actually named
5977 something starting with __ and the normal name is an alias. */
5978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5979 choke me
5980 #else
5981 $ac_func();
5982 #endif
5984 ; return 0; }
5986 if { (eval echo configure:5987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5987 rm -rf conftest*
5988 eval "ac_cv_func_$ac_func=yes"
5989 else
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5992 rm -rf conftest*
5993 eval "ac_cv_func_$ac_func=no"
5995 rm -f conftest*
5998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5999 echo "$ac_t""yes" 1>&6
6000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6001 cat >> confdefs.h <<EOF
6002 #define $ac_tr_func 1
6005 else
6006 echo "$ac_t""no" 1>&6
6008 done
6010 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6013 echo "configure:6014: checking for $ac_func" >&5
6014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6015 echo $ac_n "(cached) $ac_c" 1>&6
6016 else
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6020 /* System header to define __stub macros and hopefully few prototypes,
6021 which can conflict with char $ac_func(); below. */
6022 #include <assert.h>
6023 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6026 char $ac_func();
6028 int main() {
6030 /* The GNU C library defines this for functions which it implements
6031 to always fail with ENOSYS. Some functions are actually named
6032 something starting with __ and the normal name is an alias. */
6033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6034 choke me
6035 #else
6036 $ac_func();
6037 #endif
6039 ; return 0; }
6041 if { (eval echo configure:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6042 rm -rf conftest*
6043 eval "ac_cv_func_$ac_func=yes"
6044 else
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6047 rm -rf conftest*
6048 eval "ac_cv_func_$ac_func=no"
6050 rm -f conftest*
6053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6054 echo "$ac_t""yes" 1>&6
6055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6056 cat >> confdefs.h <<EOF
6057 #define $ac_tr_func 1
6060 else
6061 echo "$ac_t""no" 1>&6
6063 done
6065 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6068 echo "configure:6069: checking for $ac_func" >&5
6069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6070 echo $ac_n "(cached) $ac_c" 1>&6
6071 else
6072 cat > conftest.$ac_ext <<EOF
6073 #line 6074 "configure"
6074 #include "confdefs.h"
6075 /* System header to define __stub macros and hopefully few prototypes,
6076 which can conflict with char $ac_func(); below. */
6077 #include <assert.h>
6078 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6081 char $ac_func();
6083 int main() {
6085 /* The GNU C library defines this for functions which it implements
6086 to always fail with ENOSYS. Some functions are actually named
6087 something starting with __ and the normal name is an alias. */
6088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6089 choke me
6090 #else
6091 $ac_func();
6092 #endif
6094 ; return 0; }
6096 if { (eval echo configure:6097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6097 rm -rf conftest*
6098 eval "ac_cv_func_$ac_func=yes"
6099 else
6100 echo "configure: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6102 rm -rf conftest*
6103 eval "ac_cv_func_$ac_func=no"
6105 rm -f conftest*
6108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6109 echo "$ac_t""yes" 1>&6
6110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6111 cat >> confdefs.h <<EOF
6112 #define $ac_tr_func 1
6115 else
6116 echo "$ac_t""no" 1>&6
6118 done
6120 for ac_func in open64 _open64 __open64 creat64
6122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6123 echo "configure:6124: checking for $ac_func" >&5
6124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6126 else
6127 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 /* System header to define __stub macros and hopefully few prototypes,
6131 which can conflict with char $ac_func(); below. */
6132 #include <assert.h>
6133 /* Override any gcc2 internal prototype to avoid an error. */
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6136 char $ac_func();
6138 int main() {
6140 /* The GNU C library defines this for functions which it implements
6141 to always fail with ENOSYS. Some functions are actually named
6142 something starting with __ and the normal name is an alias. */
6143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6144 choke me
6145 #else
6146 $ac_func();
6147 #endif
6149 ; return 0; }
6151 if { (eval echo configure:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6152 rm -rf conftest*
6153 eval "ac_cv_func_$ac_func=yes"
6154 else
6155 echo "configure: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6157 rm -rf conftest*
6158 eval "ac_cv_func_$ac_func=no"
6160 rm -f conftest*
6163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6164 echo "$ac_t""yes" 1>&6
6165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6166 cat >> confdefs.h <<EOF
6167 #define $ac_tr_func 1
6170 else
6171 echo "$ac_t""no" 1>&6
6173 done
6177 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6180 if test x$ac_cv_func_stat64 = xno ; then
6181 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6182 echo "configure:6183: checking for stat64 in <sys/stat.h>" >&5
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6187 #if defined(HAVE_UNISTD_H)
6188 #include <unistd.h>
6189 #endif
6190 #include <sys/stat.h>
6192 int main() {
6193 struct stat64 st64; exit(stat64(".",&st64));
6194 ; return 0; }
6196 if { (eval echo configure:6197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6197 rm -rf conftest*
6198 ac_cv_func_stat64=yes
6199 else
6200 echo "configure: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6203 rm -f conftest*
6204 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6205 if test x$ac_cv_func_stat64 = xyes ; then
6206 cat >> confdefs.h <<\EOF
6207 #define HAVE_STAT64 1
6213 if test x$ac_cv_func_lstat64 = xno ; then
6214 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6215 echo "configure:6216: checking for lstat64 in <sys/stat.h>" >&5
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6220 #if defined(HAVE_UNISTD_H)
6221 #include <unistd.h>
6222 #endif
6223 #include <sys/stat.h>
6225 int main() {
6226 struct stat64 st64; exit(lstat64(".",&st64));
6227 ; return 0; }
6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6230 rm -rf conftest*
6231 ac_cv_func_lstat64=yes
6232 else
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 rm -f conftest*
6237 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6238 if test x$ac_cv_func_lstat64 = xyes ; then
6239 cat >> confdefs.h <<\EOF
6240 #define HAVE_LSTAT64 1
6246 if test x$ac_cv_func_fstat64 = xno ; then
6247 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6248 echo "configure:6249: checking for fstat64 in <sys/stat.h>" >&5
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6253 #if defined(HAVE_UNISTD_H)
6254 #include <unistd.h>
6255 #endif
6256 #include <sys/stat.h>
6258 int main() {
6259 struct stat64 st64; exit(fstat64(0,&st64));
6260 ; return 0; }
6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6263 rm -rf conftest*
6264 ac_cv_func_fstat64=yes
6265 else
6266 echo "configure: failed program was:" >&5
6267 cat conftest.$ac_ext >&5
6269 rm -f conftest*
6270 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6271 if test x$ac_cv_func_fstat64 = xyes ; then
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE_FSTAT64 1
6280 # If no strcasecmp, check for it in some known places
6281 # It is in -lresolv on ReliantUNIX and UnixWare
6282 # -lresolve *must* follow -lnsl for name resolution to work properly
6285 if test x$ac_cv_func_strcasecmp = xno ; then
6286 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6287 echo "configure:6288: checking for strcasecmp in -lresolv" >&5
6288 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6291 else
6292 ac_save_LIBS="$LIBS"
6293 LIBS="-lresolv $LIBS"
6294 cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure"
6296 #include "confdefs.h"
6297 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6300 char strcasecmp();
6302 int main() {
6303 strcasecmp()
6304 ; return 0; }
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6307 rm -rf conftest*
6308 eval "ac_cv_lib_$ac_lib_var=yes"
6309 else
6310 echo "configure: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6312 rm -rf conftest*
6313 eval "ac_cv_lib_$ac_lib_var=no"
6315 rm -f conftest*
6316 LIBS="$ac_save_LIBS"
6319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6320 echo "$ac_t""yes" 1>&6
6321 LIBS="$LIBS -lresolv"
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_STRCASECMP 1
6326 else
6327 echo "$ac_t""no" 1>&6
6333 # Check for the functions putprpwnam, set_auth_parameters,
6334 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6335 # Needed for OSF1 and HPUX.
6338 case "$LIBS" in
6339 *-lsecurity*) for ac_func in putprpwnam
6341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6342 echo "configure:6343: checking for $ac_func" >&5
6343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6345 else
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 /* System header to define __stub macros and hopefully few prototypes,
6350 which can conflict with char $ac_func(); below. */
6351 #include <assert.h>
6352 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6355 char $ac_func();
6357 int main() {
6359 /* The GNU C library defines this for functions which it implements
6360 to always fail with ENOSYS. Some functions are actually named
6361 something starting with __ and the normal name is an alias. */
6362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6363 choke me
6364 #else
6365 $ac_func();
6366 #endif
6368 ; return 0; }
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6371 rm -rf conftest*
6372 eval "ac_cv_func_$ac_func=yes"
6373 else
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6376 rm -rf conftest*
6377 eval "ac_cv_func_$ac_func=no"
6379 rm -f conftest*
6382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6383 echo "$ac_t""yes" 1>&6
6384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6385 cat >> confdefs.h <<EOF
6386 #define $ac_tr_func 1
6389 else
6390 echo "$ac_t""no" 1>&6
6392 done
6394 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6395 echo "configure:6396: checking for putprpwnam in -lsecurity" >&5
6396 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6398 echo $ac_n "(cached) $ac_c" 1>&6
6399 else
6400 ac_save_LIBS="$LIBS"
6401 LIBS="-lsecurity $LIBS"
6402 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6408 char putprpwnam();
6410 int main() {
6411 putprpwnam()
6412 ; return 0; }
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6415 rm -rf conftest*
6416 eval "ac_cv_lib_$ac_lib_var=yes"
6417 else
6418 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6420 rm -rf conftest*
6421 eval "ac_cv_lib_$ac_lib_var=no"
6423 rm -f conftest*
6424 LIBS="$ac_save_LIBS"
6427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6428 echo "$ac_t""yes" 1>&6
6429 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6431 cat >> confdefs.h <<EOF
6432 #define $ac_tr_lib 1
6435 LIBS="-lsecurity $LIBS"
6437 else
6438 echo "$ac_t""no" 1>&6
6441 for ac_func in putprpwnam
6443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6444 echo "configure:6445: checking for $ac_func" >&5
6445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6447 else
6448 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure"
6450 #include "confdefs.h"
6451 /* System header to define __stub macros and hopefully few prototypes,
6452 which can conflict with char $ac_func(); below. */
6453 #include <assert.h>
6454 /* Override any gcc2 internal prototype to avoid an error. */
6455 /* We use char because int might match the return type of a gcc2
6456 builtin and then its argument prototype would still apply. */
6457 char $ac_func();
6459 int main() {
6461 /* The GNU C library defines this for functions which it implements
6462 to always fail with ENOSYS. Some functions are actually named
6463 something starting with __ and the normal name is an alias. */
6464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6465 choke me
6466 #else
6467 $ac_func();
6468 #endif
6470 ; return 0; }
6472 if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473 rm -rf conftest*
6474 eval "ac_cv_func_$ac_func=yes"
6475 else
6476 echo "configure: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6478 rm -rf conftest*
6479 eval "ac_cv_func_$ac_func=no"
6481 rm -f conftest*
6484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6485 echo "$ac_t""yes" 1>&6
6486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6487 cat >> confdefs.h <<EOF
6488 #define $ac_tr_func 1
6491 else
6492 echo "$ac_t""no" 1>&6
6494 done
6497 esac
6499 case "$LIBS" in
6500 *-lsec*) for ac_func in putprpwnam
6502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6503 echo "configure:6504: checking for $ac_func" >&5
6504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6506 else
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 /* System header to define __stub macros and hopefully few prototypes,
6511 which can conflict with char $ac_func(); below. */
6512 #include <assert.h>
6513 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6516 char $ac_func();
6518 int main() {
6520 /* The GNU C library defines this for functions which it implements
6521 to always fail with ENOSYS. Some functions are actually named
6522 something starting with __ and the normal name is an alias. */
6523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6524 choke me
6525 #else
6526 $ac_func();
6527 #endif
6529 ; return 0; }
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6532 rm -rf conftest*
6533 eval "ac_cv_func_$ac_func=yes"
6534 else
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6537 rm -rf conftest*
6538 eval "ac_cv_func_$ac_func=no"
6540 rm -f conftest*
6543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6546 cat >> confdefs.h <<EOF
6547 #define $ac_tr_func 1
6550 else
6551 echo "$ac_t""no" 1>&6
6553 done
6555 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6556 echo "configure:6557: checking for putprpwnam in -lsec" >&5
6557 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6560 else
6561 ac_save_LIBS="$LIBS"
6562 LIBS="-lsec $LIBS"
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6565 "configure"
6565 #include "confdefs.h"
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6569 char putprpwnam();
6571 int main() {
6572 putprpwnam()
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_lib_$ac_lib_var=yes"
6578 else
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6581 rm -rf conftest*
6582 eval "ac_cv_lib_$ac_lib_var=no"
6584 rm -f conftest*
6585 LIBS="$ac_save_LIBS"
6588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6590 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6592 cat >> confdefs.h <<EOF
6593 #define $ac_tr_lib 1
6596 LIBS="-lsec $LIBS"
6598 else
6599 echo "$ac_t""no" 1>&6
6602 for ac_func in putprpwnam
6604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_func" >&5
6606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6608 else
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* System header to define __stub macros and hopefully few prototypes,
6613 which can conflict with char $ac_func(); below. */
6614 #include <assert.h>
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6618 char $ac_func();
6620 int main() {
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6626 choke me
6627 #else
6628 $ac_func();
6629 #endif
6631 ; return 0; }
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6634 rm -rf conftest*
6635 eval "ac_cv_func_$ac_func=yes"
6636 else
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 rm -rf conftest*
6640 eval "ac_cv_func_$ac_func=no"
6642 rm -f conftest*
6645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6648 cat >> confdefs.h <<EOF
6649 #define $ac_tr_func 1
6652 else
6653 echo "$ac_t""no" 1>&6
6655 done
6658 esac
6661 case "$LIBS" in
6662 *-lsecurity*) for ac_func in set_auth_parameters
6664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6665 echo "configure:6666: checking for $ac_func" >&5
6666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6668 else
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* System header to define __stub macros and hopefully few prototypes,
6673 which can conflict with char $ac_func(); below. */
6674 #include <assert.h>
6675 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6678 char $ac_func();
6680 int main() {
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6686 choke me
6687 #else
6688 $ac_func();
6689 #endif
6691 ; return 0; }
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6694 rm -rf conftest*
6695 eval "ac_cv_func_$ac_func=yes"
6696 else
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6699 rm -rf conftest*
6700 eval "ac_cv_func_$ac_func=no"
6702 rm -f conftest*
6705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6708 cat >> confdefs.h <<EOF
6709 #define $ac_tr_func 1
6712 else
6713 echo "$ac_t""no" 1>&6
6715 done
6717 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6718 echo "configure:6719: checking for set_auth_parameters in -lsecurity" >&5
6719 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
6722 else
6723 ac_save_LIBS="$LIBS"
6724 LIBS="-lsecurity $LIBS"
6725 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6728 /* Override any gcc2 internal prototype to avoid an error. */
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6731 char set_auth_parameters();
6733 int main() {
6734 set_auth_parameters()
6735 ; return 0; }
6737 if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6738 rm -rf conftest*
6739 eval "ac_cv_lib_$ac_lib_var=yes"
6740 else
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 rm -rf conftest*
6744 eval "ac_cv_lib_$ac_lib_var=no"
6746 rm -f conftest*
6747 LIBS="$ac_save_LIBS"
6750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6751 echo "$ac_t""yes" 1>&6
6752 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6753 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6754 cat >> confdefs.h <<EOF
6755 #define $ac_tr_lib 1
6758 LIBS="-lsecurity $LIBS"
6760 else
6761 echo "$ac_t""no" 1>&6
6764 for ac_func in set_auth_parameters
6766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6767 echo "configure:6768: checking for $ac_func" >&5
6768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6769 echo $ac_n "(cached) $ac_c" 1>&6
6770 else
6771 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* System header to define __stub macros and hopefully few prototypes,
6775 which can conflict with char $ac_func(); below. */
6776 #include <assert.h>
6777 /* Override any gcc2 internal prototype to avoid an error. */
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6780 char $ac_func();
6782 int main() {
6784 /* The GNU C library defines this for functions which it implements
6785 to always fail with ENOSYS. Some functions are actually named
6786 something starting with __ and the normal name is an alias. */
6787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6788 choke me
6789 #else
6790 $ac_func();
6791 #endif
6793 ; return 0; }
6795 if { (eval echo configure:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6796 rm -rf conftest*
6797 eval "ac_cv_func_$ac_func=yes"
6798 else
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6801 rm -rf conftest*
6802 eval "ac_cv_func_$ac_func=no"
6804 rm -f conftest*
6807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6810 cat >> confdefs.h <<EOF
6811 #define $ac_tr_func 1
6814 else
6815 echo "$ac_t""no" 1>&6
6817 done
6820 esac
6822 case "$LIBS" in
6823 *-lsec*) for ac_func in set_auth_parameters
6825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6826 echo "configure:6827: checking for $ac_func" >&5
6827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6829 else
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 /* System header to define __stub macros and hopefully few prototypes,
6834 which can conflict with char $ac_func(); below. */
6835 #include <assert.h>
6836 /* Override any gcc2 internal prototype to avoid an error. */
6837 /* We use char because int might match the return type of a gcc2
6838 builtin and then its argument prototype would still apply. */
6839 char $ac_func();
6841 int main() {
6843 /* The GNU C library defines this for functions which it implements
6844 to always fail with ENOSYS. Some functions are actually named
6845 something starting with __ and the normal name is an alias. */
6846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6847 choke me
6848 #else
6849 $ac_func();
6850 #endif
6852 ; return 0; }
6854 if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855 rm -rf conftest*
6856 eval "ac_cv_func_$ac_func=yes"
6857 else
6858 echo "configure: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6860 rm -rf conftest*
6861 eval "ac_cv_func_$ac_func=no"
6863 rm -f conftest*
6866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6867 echo "$ac_t""yes" 1>&6
6868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6869 cat >> confdefs.h <<EOF
6870 #define $ac_tr_func 1
6873 else
6874 echo "$ac_t""no" 1>&6
6876 done
6878 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6879 echo "configure:6880: checking for set_auth_parameters in -lsec" >&5
6880 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6883 else
6884 ac_save_LIBS="$LIBS"
6885 LIBS="-lsec $LIBS"
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6892 char set_auth_parameters();
6894 int main() {
6895 set_auth_parameters()
6896 ; return 0; }
6898 if { (eval echo configure:6899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6899 rm -rf conftest*
6900 eval "ac_cv_lib_$ac_lib_var=yes"
6901 else
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6904 rm -rf conftest*
6905 eval "ac_cv_lib_$ac_lib_var=no"
6907 rm -f conftest*
6908 LIBS="$ac_save_LIBS"
6911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6912 echo "$ac_t""yes" 1>&6
6913 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6915 cat >> confdefs.h <<EOF
6916 #define $ac_tr_lib 1
6919 LIBS="-lsec $LIBS"
6921 else
6922 echo "$ac_t""no" 1>&6
6925 for ac_func in set_auth_parameters
6927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6928 echo "configure:6929: checking for $ac_func" >&5
6929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6931 else
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6935 /* System header to define __stub macros and hopefully few prototypes,
6936 which can conflict with char $ac_func(); below. */
6937 #include <assert.h>
6938 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6941 char $ac_func();
6943 int main() {
6945 /* The GNU C library defines this for functions which it implements
6946 to always fail with ENOSYS. Some functions are actually named
6947 something starting with __ and the normal name is an alias. */
6948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6949 choke me
6950 #else
6951 $ac_func();
6952 #endif
6954 ; return 0; }
6956 if { (eval echo configure:6957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6957 rm -rf conftest*
6958 eval "ac_cv_func_$ac_func=yes"
6959 else
6960 echo "configure: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6962 rm -rf conftest*
6963 eval "ac_cv_func_$ac_func=no"
6965 rm -f conftest*
6968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6969 echo "$ac_t""yes" 1>&6
6970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6971 cat >> confdefs.h <<EOF
6972 #define $ac_tr_func 1
6975 else
6976 echo "$ac_t""no" 1>&6
6978 done
6981 esac
6984 # UnixWare 7.x has its getspnam in -lgen
6985 case "$LIBS" in
6986 *-lgen*) for ac_func in getspnam
6988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6989 echo "configure:6990: checking for $ac_func" >&5
6990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6992 else
6993 cat > conftest.$ac_ext <<EOF
6994 #line 6995 "configure"
6995 #include "confdefs.h"
6996 /* System header to define __stub macros and hopefully few prototypes,
6997 which can conflict with char $ac_func(); below. */
6998 #include <assert.h>
6999 /* Override any gcc2 internal prototype to avoid an error. */
7000 /* We use char because int might match the return type of a gcc2
7001 builtin and then its argument prototype would still apply. */
7002 char $ac_func();
7004 int main() {
7006 /* The GNU C library defines this for functions which it implements
7007 to always fail with ENOSYS. Some functions are actually named
7008 something starting with __ and the normal name is an alias. */
7009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7010 choke me
7011 #else
7012 $ac_func();
7013 #endif
7015 ; return 0; }
7017 if { (eval echo configure:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7018 rm -rf conftest*
7019 eval "ac_cv_func_$ac_func=yes"
7020 else
7021 echo "configure: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7023 rm -rf conftest*
7024 eval "ac_cv_func_$ac_func=no"
7026 rm -f conftest*
7029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7030 echo "$ac_t""yes" 1>&6
7031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7032 cat >> confdefs.h <<EOF
7033 #define $ac_tr_func 1
7036 else
7037 echo "$ac_t""no" 1>&6
7039 done
7041 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7042 echo "configure:7043: checking for getspnam in -lgen" >&5
7043 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7045 echo $ac_n "(cached) $ac_c" 1>&6
7046 else
7047 ac_save_LIBS="$LIBS"
7048 LIBS="-lgen $LIBS"
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7052 /* Override any gcc2 internal prototype to avoid an error. */
7053 /* We use char because int might match the return type of a gcc2
7054 builtin and then its argument prototype would still apply. */
7055 char getspnam();
7057 int main() {
7058 getspnam()
7059 ; return 0; }
7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7062 rm -rf conftest*
7063 eval "ac_cv_lib_$ac_lib_var=yes"
7064 else
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7067 rm -rf conftest*
7068 eval "ac_cv_lib_$ac_lib_var=no"
7070 rm -f conftest*
7071 LIBS="$ac_save_LIBS"
7074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7075 echo "$ac_t""yes" 1>&6
7076 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7077 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7078 cat >> confdefs.h <<EOF
7079 #define $ac_tr_lib 1
7082 LIBS="-lgen $LIBS"
7084 else
7085 echo "$ac_t""no" 1>&6
7088 for ac_func in getspnam
7090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7091 echo "configure:7092: checking for $ac_func" >&5
7092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7093 echo $ac_n "(cached) $ac_c" 1>&6
7094 else
7095 cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7098 /* System header to define __stub macros and hopefully few prototypes,
7099 which can conflict with char $ac_func(); below. */
7100 #include <assert.h>
7101 /* Override any gcc2 internal prototype to avoid an error. */
7102 /* We use char because int might match the return type of a gcc2
7103 builtin and then its argument prototype would still apply. */
7104 char $ac_func();
7106 int main() {
7108 /* The GNU C library defines this for functions which it implements
7109 to always fail with ENOSYS. Some functions are actually named
7110 something starting with __ and the normal name is an alias. */
7111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7112 choke me
7113 #else
7114 $ac_func();
7115 #endif
7117 ; return 0; }
7119 if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7120 rm -rf conftest*
7121 eval "ac_cv_func_$ac_func=yes"
7122 else
7123 echo "configure: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7125 rm -rf conftest*
7126 eval "ac_cv_func_$ac_func=no"
7128 rm -f conftest*
7131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7132 echo "$ac_t""yes" 1>&6
7133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7134 cat >> confdefs.h <<EOF
7135 #define $ac_tr_func 1
7138 else
7139 echo "$ac_t""no" 1>&6
7141 done
7144 esac
7147 case "$LIBS" in
7148 *-lsecurity*) for ac_func in getspnam
7150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7151 echo "configure:7152: checking for $ac_func" >&5
7152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7154 else
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7158 /* System header to define __stub macros and hopefully few prototypes,
7159 which can conflict with char $ac_func(); below. */
7160 #include <assert.h>
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7164 char $ac_func();
7166 int main() {
7168 /* The GNU C library defines this for functions which it implements
7169 to always fail with ENOSYS. Some functions are actually named
7170 something starting with __ and the normal name is an alias. */
7171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7172 choke me
7173 #else
7174 $ac_func();
7175 #endif
7177 ; return 0; }
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7180 rm -rf conftest*
7181 eval "ac_cv_func_$ac_func=yes"
7182 else
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7185 rm -rf conftest*
7186 eval "ac_cv_func_$ac_func=no"
7188 rm -f conftest*
7191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7192 echo "$ac_t""yes" 1>&6
7193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7194 cat >> confdefs.h <<EOF
7195 #define $ac_tr_func 1
7198 else
7199 echo "$ac_t""no" 1>&6
7201 done
7203 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7204 echo "configure:7205: checking for getspnam in -lsecurity" >&5
7205 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7208 else
7209 ac_save_LIBS="$LIBS"
7210 LIBS="-lsecurity $LIBS"
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7214 /* Override any gcc2 internal prototype to avoid an error. */
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7217 char getspnam();
7219 int main() {
7220 getspnam()
7221 ; return 0; }
7223 if { (eval echo configure:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7224 rm -rf conftest*
7225 eval "ac_cv_lib_$ac_lib_var=yes"
7226 else
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7229 rm -rf conftest*
7230 eval "ac_cv_lib_$ac_lib_var=no"
7232 rm -f conftest*
7233 LIBS="$ac_save_LIBS"
7236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7237 echo "$ac_t""yes" 1>&6
7238 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7240 cat >> confdefs.h <<EOF
7241 #define $ac_tr_lib 1
7244 LIBS="-lsecurity $LIBS"
7246 else
7247 echo "$ac_t""no" 1>&6
7250 for ac_func in getspnam
7252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_func" >&5
7254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7256 else
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 /* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func(); below. */
7262 #include <assert.h>
7263 /* Override any gcc2 internal prototype to avoid an error. */
7264 /* We use char because int might match the return type of a gcc2
7265 builtin and then its argument prototype would still apply. */
7266 char $ac_func();
7268 int main() {
7270 /* The GNU C library defines this for functions which it implements
7271 to always fail with ENOSYS. Some functions are actually named
7272 something starting with __ and the normal name is an alias. */
7273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7274 choke me
7275 #else
7276 $ac_func();
7277 #endif
7279 ; return 0; }
7281 if { (eval echo configure:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7282 rm -rf conftest*
7283 eval "ac_cv_func_$ac_func=yes"
7284 else
7285 echo "configure: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7287 rm -rf conftest*
7288 eval "ac_cv_func_$ac_func=no"
7290 rm -f conftest*
7293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7294 echo "$ac_t""yes" 1>&6
7295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7296 cat >> confdefs.h <<EOF
7297 #define $ac_tr_func 1
7300 else
7301 echo "$ac_t""no" 1>&6
7303 done
7306 esac
7308 case "$LIBS" in
7309 *-lsec*) for ac_func in getspnam
7311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7312 echo "configure:7313: checking for $ac_func" >&5
7313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7315 else
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 /* System header to define __stub macros and hopefully few prototypes,
7320 which can conflict with char $ac_func(); below. */
7321 #include <assert.h>
7322 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7325 char $ac_func();
7327 int main() {
7329 /* The GNU C library defines this for functions which it implements
7330 to always fail with ENOSYS. Some functions are actually named
7331 something starting with __ and the normal name is an alias. */
7332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7333 choke me
7334 #else
7335 $ac_func();
7336 #endif
7338 ; return 0; }
7340 if { (eval echo configure:7341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7341 rm -rf conftest*
7342 eval "ac_cv_func_$ac_func=yes"
7343 else
7344 echo "configure: failed program was:" >&5
7345 cat conftest.$ac_ext >&5
7346 rm -rf conftest*
7347 eval "ac_cv_func_$ac_func=no"
7349 rm -f conftest*
7352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7353 echo "$ac_t""yes" 1>&6
7354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7355 cat >> confdefs.h <<EOF
7356 #define $ac_tr_func 1
7359 else
7360 echo "$ac_t""no" 1>&6
7362 done
7364 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7365 echo "configure:7366: checking for getspnam in -lsec" >&5
7366 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7369 else
7370 ac_save_LIBS="$LIBS"
7371 LIBS="-lsec $LIBS"
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 /* Override any gcc2 internal prototype to avoid an error. */
7376 /* We use char because int might match the return type of a gcc2
7377 builtin and then its argument prototype would still apply. */
7378 char getspnam();
7380 int main() {
7381 getspnam()
7382 ; return 0; }
7384 if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385 rm -rf conftest*
7386 eval "ac_cv_lib_$ac_lib_var=yes"
7387 else
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 rm -rf conftest*
7391 eval "ac_cv_lib_$ac_lib_var=no"
7393 rm -f conftest*
7394 LIBS="$ac_save_LIBS"
7397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7398 echo "$ac_t""yes" 1>&6
7399 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7401 cat >> confdefs.h <<EOF
7402 #define $ac_tr_lib 1
7405 LIBS="-lsec $LIBS"
7407 else
7408 echo "$ac_t""no" 1>&6
7411 for ac_func in getspnam
7413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7414 echo "configure:7415: checking for $ac_func" >&5
7415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7417 else
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 /* System header to define __stub macros and hopefully few prototypes,
7422 which can conflict with char $ac_func(); below. */
7423 #include <assert.h>
7424 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7427 char $ac_func();
7429 int main() {
7431 /* The GNU C library defines this for functions which it implements
7432 to always fail with ENOSYS. Some functions are actually named
7433 something starting with __ and the normal name is an alias. */
7434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7435 choke me
7436 #else
7437 $ac_func();
7438 #endif
7440 ; return 0; }
7442 if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7443 rm -rf conftest*
7444 eval "ac_cv_func_$ac_func=yes"
7445 else
7446 echo "configure: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 rm -rf conftest*
7449 eval "ac_cv_func_$ac_func=no"
7451 rm -f conftest*
7454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7455 echo "$ac_t""yes" 1>&6
7456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7457 cat >> confdefs.h <<EOF
7458 #define $ac_tr_func 1
7461 else
7462 echo "$ac_t""no" 1>&6
7464 done
7467 esac
7470 case "$LIBS" in
7471 *-lsecurity*) for ac_func in bigcrypt
7473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7474 echo "configure:7475: checking for $ac_func" >&5
7475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7477 else
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7481 /* System header to define __stub macros and hopefully few prototypes,
7482 which can conflict with char $ac_func(); below. */
7483 #include <assert.h>
7484 /* Override any gcc2 internal prototype to avoid an error. */
7485 /* We use char because int might match the return type of a gcc2
7486 builtin and then its argument prototype would still apply. */
7487 char $ac_func();
7489 int main() {
7491 /* The GNU C library defines this for functions which it implements
7492 to always fail with ENOSYS. Some functions are actually named
7493 something starting with __ and the normal name is an alias. */
7494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7495 choke me
7496 #else
7497 $ac_func();
7498 #endif
7500 ; return 0; }
7502 if { (eval echo configure:7503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7503 rm -rf conftest*
7504 eval "ac_cv_func_$ac_func=yes"
7505 else
7506 echo "configure: failed program was:" >&5
7507 cat conftest.$ac_ext >&5
7508 rm -rf conftest*
7509 eval "ac_cv_func_$ac_func=no"
7511 rm -f conftest*
7514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7515 echo "$ac_t""yes" 1>&6
7516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7517 cat >> confdefs.h <<EOF
7518 #define $ac_tr_func 1
7521 else
7522 echo "$ac_t""no" 1>&6
7524 done
7526 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7527 echo "configure:7528: checking for bigcrypt in -lsecurity" >&5
7528 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7530 echo $ac_n "(cached) $ac_c" 1>&6
7531 else
7532 ac_save_LIBS="$LIBS"
7533 LIBS="-lsecurity $LIBS"
7534 cat > conftest.$ac_ext <<EOF
7535 #line 7536 "configure"
7536 #include "confdefs.h"
7537 /* Override any gcc2 internal prototype to avoid an error. */
7538 /* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7540 char bigcrypt();
7542 int main() {
7543 bigcrypt()
7544 ; return 0; }
7546 if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547 rm -rf conftest*
7548 eval "ac_cv_lib_$ac_lib_var=yes"
7549 else
7550 echo "configure: failed program was:" >&5
7551 cat conftest.$ac_ext >&5
7552 rm -rf conftest*
7553 eval "ac_cv_lib_$ac_lib_var=no"
7555 rm -f conftest*
7556 LIBS="$ac_save_LIBS"
7559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7560 echo "$ac_t""yes" 1>&6
7561 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7563 cat >> confdefs.h <<EOF
7564 #define $ac_tr_lib 1
7567 LIBS="-lsecurity $LIBS"
7569 else
7570 echo "$ac_t""no" 1>&6
7573 for ac_func in bigcrypt
7575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7576 echo "configure:7577: checking for $ac_func" >&5
7577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7579 else
7580 cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7583 /* System header to define __stub macros and hopefully few prototypes,
7584 which can conflict with char $ac_func(); below. */
7585 #include <assert.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 $ac_func();
7591 int main() {
7593 /* The GNU C library defines this for functions which it implements
7594 to always fail with ENOSYS. Some functions are actually named
7595 something starting with __ and the normal name is an alias. */
7596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7597 choke me
7598 #else
7599 $ac_func();
7600 #endif
7602 ; return 0; }
7604 if { (eval echo configure:7605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7605 rm -rf conftest*
7606 eval "ac_cv_func_$ac_func=yes"
7607 else
7608 echo "configure: failed program was:" >&5
7609 cat conftest.$ac_ext >&5
7610 rm -rf conftest*
7611 eval "ac_cv_func_$ac_func=no"
7613 rm -f conftest*
7616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7617 echo "$ac_t""yes" 1>&6
7618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7619 cat >> confdefs.h <<EOF
7620 #define $ac_tr_func 1
7623 else
7624 echo "$ac_t""no" 1>&6
7626 done
7629 esac
7631 case "$LIBS" in
7632 *-lsec*) for ac_func in bigcrypt
7634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7635 echo "configure:7636: checking for $ac_func" >&5
7636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7638 else
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642 /* System header to define __stub macros and hopefully few prototypes,
7643 which can conflict with char $ac_func(); below. */
7644 #include <assert.h>
7645 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648 char $ac_func();
7650 int main() {
7652 /* The GNU C library defines this for functions which it implements
7653 to always fail with ENOSYS. Some functions are actually named
7654 something starting with __ and the normal name is an alias. */
7655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7656 choke me
7657 #else
7658 $ac_func();
7659 #endif
7661 ; return 0; }
7663 if { (eval echo configure:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7664 rm -rf conftest*
7665 eval "ac_cv_func_$ac_func=yes"
7666 else
7667 echo "configure: failed program was:" >&5
7668 cat conftest.$ac_ext >&5
7669 rm -rf conftest*
7670 eval "ac_cv_func_$ac_func=no"
7672 rm -f conftest*
7675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7676 echo "$ac_t""yes" 1>&6
7677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7678 cat >> confdefs.h <<EOF
7679 #define $ac_tr_func 1
7682 else
7683 echo "$ac_t""no" 1>&6
7685 done
7687 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7688 echo "configure:7689: checking for bigcrypt in -lsec" >&5
7689 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7691 echo $ac_n "(cached) $ac_c" 1>&6
7692 else
7693 ac_save_LIBS="$LIBS"
7694 LIBS="-lsec $LIBS"
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char bigcrypt();
7703 int main() {
7704 bigcrypt()
7705 ; return 0; }
7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7708 rm -rf conftest*
7709 eval "ac_cv_lib_$ac_lib_var=yes"
7710 else
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7713 rm -rf conftest*
7714 eval "ac_cv_lib_$ac_lib_var=no"
7716 rm -f conftest*
7717 LIBS="$ac_save_LIBS"
7720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7721 echo "$ac_t""yes" 1>&6
7722 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7724 cat >> confdefs.h <<EOF
7725 #define $ac_tr_lib 1
7728 LIBS="-lsec $LIBS"
7730 else
7731 echo "$ac_t""no" 1>&6
7734 for ac_func in bigcrypt
7736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_func" >&5
7738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7740 else
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 /* System header to define __stub macros and hopefully few prototypes,
7745 which can conflict with char $ac_func(); below. */
7746 #include <assert.h>
7747 /* Override any gcc2 internal prototype to avoid an error. */
7748 /* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750 char $ac_func();
7752 int main() {
7754 /* The GNU C library defines this for functions which it implements
7755 to always fail with ENOSYS. Some functions are actually named
7756 something starting with __ and the normal name is an alias. */
7757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7758 choke me
7759 #else
7760 $ac_func();
7761 #endif
7763 ; return 0; }
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7766 rm -rf conftest*
7767 eval "ac_cv_func_$ac_func=yes"
7768 else
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 rm -rf conftest*
7772 eval "ac_cv_func_$ac_func=no"
7774 rm -f conftest*
7777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7778 echo "$ac_t""yes" 1>&6
7779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7780 cat >> confdefs.h <<EOF
7781 #define $ac_tr_func 1
7784 else
7785 echo "$ac_t""no" 1>&6
7787 done
7790 esac
7793 case "$LIBS" in
7794 *-lsecurity*) for ac_func in getprpwnam
7796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7797 echo "configure:7798: checking for $ac_func" >&5
7798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7800 else
7801 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure"
7803 #include "confdefs.h"
7804 /* System header to define __stub macros and hopefully few prototypes,
7805 which can conflict with char $ac_func(); below. */
7806 #include <assert.h>
7807 /* Override any gcc2 internal prototype to avoid an error. */
7808 /* We use char because int might match the return type of a gcc2
7809 builtin and then its argument prototype would still apply. */
7810 char $ac_func();
7812 int main() {
7814 /* The GNU C library defines this for functions which it implements
7815 to always fail with ENOSYS. Some functions are actually named
7816 something starting with __ and the normal name is an alias. */
7817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7818 choke me
7819 #else
7820 $ac_func();
7821 #endif
7823 ; return 0; }
7825 if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7826 rm -rf conftest*
7827 eval "ac_cv_func_$ac_func=yes"
7828 else
7829 echo "configure: failed program was:" >&5
7830 cat conftest.$ac_ext >&5
7831 rm -rf conftest*
7832 eval "ac_cv_func_$ac_func=no"
7834 rm -f conftest*
7837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7838 echo "$ac_t""yes" 1>&6
7839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7840 cat >> confdefs.h <<EOF
7841 #define $ac_tr_func 1
7844 else
7845 echo "$ac_t""no" 1>&6
7847 done
7849 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7850 echo "configure:7851: checking for getprpwnam in -lsecurity" >&5
7851 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7854 else
7855 ac_save_LIBS="$LIBS"
7856 LIBS="-lsecurity $LIBS"
7857 cat > conftest.$ac_ext <<EOF
7858 #line 7859 "configure"
7859 #include "confdefs.h"
7860 /* Override any gcc2 internal prototype to avoid an error. */
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863 char getprpwnam();
7865 int main() {
7866 getprpwnam()
7867 ; return 0; }
7869 if { (eval echo configure:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7870 rm -rf conftest*
7871 eval "ac_cv_lib_$ac_lib_var=yes"
7872 else
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7875 rm -rf conftest*
7876 eval "ac_cv_lib_$ac_lib_var=no"
7878 rm -f conftest*
7879 LIBS="$ac_save_LIBS"
7882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7883 echo "$ac_t""yes" 1>&6
7884 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7885 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7886 cat >> confdefs.h <<EOF
7887 #define $ac_tr_lib 1
7890 LIBS="-lsecurity $LIBS"
7892 else
7893 echo "$ac_t""no" 1>&6
7896 for ac_func in getprpwnam
7898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_func" >&5
7900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7902 else
7903 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 /* System header to define __stub macros and hopefully few prototypes,
7907 which can conflict with char $ac_func(); below. */
7908 #include <assert.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 $ac_func();
7914 int main() {
7916 /* The GNU C library defines this for functions which it implements
7917 to always fail with ENOSYS. Some functions are actually named
7918 something starting with __ and the normal name is an alias. */
7919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7920 choke me
7921 #else
7922 $ac_func();
7923 #endif
7925 ; return 0; }
7927 if { (eval echo configure:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928 rm -rf conftest*
7929 eval "ac_cv_func_$ac_func=yes"
7930 else
7931 echo "configure: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 rm -rf conftest*
7934 eval "ac_cv_func_$ac_func=no"
7936 rm -f conftest*
7939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7940 echo "$ac_t""yes" 1>&6
7941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7942 cat >> confdefs.h <<EOF
7943 #define $ac_tr_func 1
7946 else
7947 echo "$ac_t""no" 1>&6
7949 done
7952 esac
7954 case "$LIBS" in
7955 *-lsec*) for ac_func in getprpwnam
7957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7958 echo "configure:7959: checking for $ac_func" >&5
7959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7961 else
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7965 /* System header to define __stub macros and hopefully few prototypes,
7966 which can conflict with char $ac_func(); below. */
7967 #include <assert.h>
7968 /* Override any gcc2 internal prototype to avoid an error. */
7969 /* We use char because int might match the return type of a gcc2
7970 builtin and then its argument prototype would still apply. */
7971 char $ac_func();
7973 int main() {
7975 /* The GNU C library defines this for functions which it implements
7976 to always fail with ENOSYS. Some functions are actually named
7977 something starting with __ and the normal name is an alias. */
7978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7979 choke me
7980 #else
7981 $ac_func();
7982 #endif
7984 ; return 0; }
7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7987 rm -rf conftest*
7988 eval "ac_cv_func_$ac_func=yes"
7989 else
7990 echo "configure: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7992 rm -rf conftest*
7993 eval "ac_cv_func_$ac_func=no"
7995 rm -f conftest*
7998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7999 echo "$ac_t""yes" 1>&6
8000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8001 cat >> confdefs.h <<EOF
8002 #define $ac_tr_func 1
8005 else
8006 echo "$ac_t""no" 1>&6
8008 done
8010 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8011 echo "configure:8012: checking for getprpwnam in -lsec" >&5
8012 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8014 echo $ac_n "(cached) $ac_c" 1>&6
8015 else
8016 ac_save_LIBS="$LIBS"
8017 LIBS="-lsec $LIBS"
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* Override any gcc2 internal prototype to avoid an error. */
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8024 char getprpwnam();
8026 int main() {
8027 getprpwnam()
8028 ; return 0; }
8030 if { (eval echo configure:8031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8031 rm -rf conftest*
8032 eval "ac_cv_lib_$ac_lib_var=yes"
8033 else
8034 echo "configure: failed program was:" >&5
8035 cat conftest.$ac_ext >&5
8036 rm -rf conftest*
8037 eval "ac_cv_lib_$ac_lib_var=no"
8039 rm -f conftest*
8040 LIBS="$ac_save_LIBS"
8043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8044 echo "$ac_t""yes" 1>&6
8045 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8047 cat >> confdefs.h <<EOF
8048 #define $ac_tr_lib 1
8051 LIBS="-lsec $LIBS"
8053 else
8054 echo "$ac_t""no" 1>&6
8057 for ac_func in getprpwnam
8059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8060 echo "configure:8061: checking for $ac_func" >&5
8061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8063 else
8064 cat > conftest.$ac_ext <<EOF
8065 #line 8066 "configure"
8066 #include "confdefs.h"
8067 /* System header to define __stub macros and hopefully few prototypes,
8068 which can conflict with char $ac_func(); below. */
8069 #include <assert.h>
8070 /* Override any gcc2 internal prototype to avoid an error. */
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8073 char $ac_func();
8075 int main() {
8077 /* The GNU C library defines this for functions which it implements
8078 to always fail with ENOSYS. Some functions are actually named
8079 something starting with __ and the normal name is an alias. */
8080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8081 choke me
8082 #else
8083 $ac_func();
8084 #endif
8086 ; return 0; }
8088 if { (eval echo configure:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8089 rm -rf conftest*
8090 eval "ac_cv_func_$ac_func=yes"
8091 else
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8094 rm -rf conftest*
8095 eval "ac_cv_func_$ac_func=no"
8097 rm -f conftest*
8100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8103 cat >> confdefs.h <<EOF
8104 #define $ac_tr_func 1
8107 else
8108 echo "$ac_t""no" 1>&6
8110 done
8113 esac
8116 # this bit needs to be modified for each OS that is suported by
8117 # smbwrapper. You need to specify how to created a shared library and
8118 # how to compile C code to produce PIC object files
8120 # these are the defaults, good for lots of systems
8121 HOST_OS="$host_os"
8122 LDSHFLAGS="-shared"
8123 PICFLAG=""
8124 SHLIBEXT="so"
8126 # and these are for particular systems
8127 case "$host_os" in
8128 *linux*) cat >> confdefs.h <<\EOF
8129 #define LINUX 1
8132 *solaris*) cat >> confdefs.h <<\EOF
8133 #define SUNOS5 1
8136 LDSHFLAGS="-G"
8138 *sunos*) cat >> confdefs.h <<\EOF
8139 #define SUNOS4 1
8142 LDSHFLAGS=""
8144 *bsd*) LDSHFLAGS="-shared -Bshareable"
8146 *irix*) cat >> confdefs.h <<\EOF
8147 #define IRIX 1
8150 case "$host_os" in
8151 *irix6*) cat >> confdefs.h <<\EOF
8152 #define IRIX6 1
8156 esac
8157 ATTEMPT_WRAP32_BUILD=yes
8159 *aix*) cat >> confdefs.h <<\EOF
8160 #define AIX 1
8163 *hpux*) cat >> confdefs.h <<\EOF
8164 #define HPUX 1
8167 SHLIBEXT="sl"
8168 # Use special PIC flags for the native HP-UX compiler.
8169 if test $ac_cv_prog_cc_Ae = yes; then
8170 LDSHFLAGS="-b"
8171 PICFLAG="+z"
8174 *qnx*) cat >> confdefs.h <<\EOF
8175 #define QNX 1
8178 *osf*) cat >> confdefs.h <<\EOF
8179 #define OSF1 1
8182 *sco*) cat >> confdefs.h <<\EOF
8183 #define SCO 1
8186 *next2*) cat >> confdefs.h <<\EOF
8187 #define NEXT2 1
8190 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8191 set dummy groff; ac_word=$2
8192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8193 echo "configure:8194: checking for $ac_word" >&5
8194 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8196 else
8197 if test -n "$ROFF"; then
8198 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8199 else
8200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8201 ac_dummy="$PATH"
8202 for ac_dir in $ac_dummy; do
8203 test -z "$ac_dir" && ac_dir=.
8204 if test -f $ac_dir/$ac_word; then
8205 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8206 break
8208 done
8209 IFS="$ac_save_ifs"
8212 ROFF="$ac_cv_prog_ROFF"
8213 if test -n "$ROFF"; then
8214 echo "$ac_t""$ROFF" 1>&6
8215 else
8216 echo "$ac_t""no" 1>&6
8219 *sysv4*)
8220 case "$host" in
8221 *-univel-*) if test "$GCC" != yes ; then
8222 cat >> confdefs.h <<\EOF
8223 #define HAVE_MEMSET 1
8227 LDSHFLAGS="-G"
8229 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8230 #define RELIANTUNIX 1
8233 esac
8235 *sysv5*)
8236 if test "$GCC" != yes ; then
8237 cat >> confdefs.h <<\EOF
8238 #define HAVE_MEMSET 1
8242 LDSHFLAGS="-G"
8244 esac
8246 # try to work out how to produce pic code with this compiler
8247 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8248 echo "configure:8249: checking whether ${CC-cc} accepts -fpic" >&5
8249 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8251 else
8252 echo 'void f(){}' > conftest.c
8253 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8254 ac_cv_prog_cc_fpic=yes
8255 else
8256 ac_cv_prog_cc_fpic=no
8258 rm -f conftest*
8262 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8263 if test $ac_cv_prog_cc_fpic = yes; then
8264 PICFLAG="-fpic";
8266 if test x$PICFLAG = x; then
8267 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8268 echo "configure:8269: checking whether ${CC-cc} accepts -Kpic" >&5
8269 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8271 else
8272 echo 'void f(){}' > conftest.c
8273 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8274 ac_cv_prog_cc_Kpic=yes
8275 else
8276 ac_cv_prog_cc_Kpic=no
8278 rm -f conftest*
8282 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8283 if test $ac_cv_prog_cc_Kpic = yes; then
8284 PICFLAG="-Kpic";
8287 if test x$PICFLAG = x; then
8288 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8289 echo "configure:8290: checking whether ${CC-cc} accepts -KPIC" >&5
8290 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8292 else
8293 echo 'void f(){}' > conftest.c
8294 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8295 ac_cv_prog_cc_KPIC=yes
8296 else
8297 ac_cv_prog_cc_KPIC=no
8299 rm -f conftest*
8303 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8304 if test $ac_cv_prog_cc_KPIC = yes; then
8305 PICFLAG="-KPIC";
8309 ################
8311 echo $ac_n "checking for long long""... $ac_c" 1>&6
8312 echo "configure:8313: checking for long long" >&5
8313 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8314 echo $ac_n "(cached) $ac_c" 1>&6
8315 else
8317 if test "$cross_compiling" = yes; then
8318 samba_cv_have_longlong=cross
8319 else
8320 cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure"
8322 #include "confdefs.h"
8323 #include <stdio.h>
8324 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8326 if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8327 then
8328 samba_cv_have_longlong=yes
8329 else
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8332 rm -fr conftest*
8333 samba_cv_have_longlong=no
8335 rm -fr conftest*
8340 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8341 if test x"$samba_cv_have_longlong" = x"yes"; then
8342 cat >> confdefs.h <<\EOF
8343 #define HAVE_LONGLONG 1
8349 # Check if the compiler supports the LL prefix on long long integers.
8350 # AIX needs this.
8352 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8353 echo "configure:8354: checking for LL suffix on long long integers" >&5
8354 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8356 else
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 #include <stdio.h>
8362 int main() {
8363 long long i = 0x8000000000LL
8364 ; return 0; }
8366 if { (eval echo configure:8367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8367 rm -rf conftest*
8368 samba_cv_compiler_supports_ll=yes
8369 else
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 rm -rf conftest*
8373 samba_cv_compiler_supports_ll=no
8375 rm -f conftest*
8378 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8379 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8380 cat >> confdefs.h <<\EOF
8381 #define COMPILER_SUPPORTS_LL 1
8387 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8388 echo "configure:8389: checking for 64 bit off_t" >&5
8389 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8393 if test "$cross_compiling" = yes; then
8394 samba_cv_SIZEOF_OFF_T=cross
8395 else
8396 cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8399 #include <stdio.h>
8400 #include <sys/stat.h>
8401 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8403 if { (eval echo configure:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8404 then
8405 samba_cv_SIZEOF_OFF_T=yes
8406 else
8407 echo "configure: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 rm -fr conftest*
8410 samba_cv_SIZEOF_OFF_T=no
8412 rm -fr conftest*
8417 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8418 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8419 cat >> confdefs.h <<\EOF
8420 #define SIZEOF_OFF_T 8
8425 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8426 echo "configure:8427: checking for off64_t" >&5
8427 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8428 echo $ac_n "(cached) $ac_c" 1>&6
8429 else
8431 if test "$cross_compiling" = yes; then
8432 samba_cv_HAVE_OFF64_T=cross
8433 else
8434 cat > conftest.$ac_ext <<EOF
8435 #line 8436 "configure"
8436 #include "confdefs.h"
8438 #if defined(HAVE_UNISTD_H)
8439 #include <unistd.h>
8440 #endif
8441 #include <stdio.h>
8442 #include <sys/stat.h>
8443 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8446 then
8447 samba_cv_HAVE_OFF64_T=yes
8448 else
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 rm -fr conftest*
8452 samba_cv_HAVE_OFF64_T=no
8454 rm -fr conftest*
8459 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8460 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8461 cat >> confdefs.h <<\EOF
8462 #define HAVE_OFF64_T 1
8467 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8468 echo "configure:8469: checking for 64 bit ino_t" >&5
8469 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8471 else
8473 if test "$cross_compiling" = yes; then
8474 samba_cv_SIZEOF_INO_T=cross
8475 else
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 #include <stdio.h>
8480 #include <sys/stat.h>
8481 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8483 if { (eval echo configure:8484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8484 then
8485 samba_cv_SIZEOF_INO_T=yes
8486 else
8487 echo "configure: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8489 rm -fr conftest*
8490 samba_cv_SIZEOF_INO_T=no
8492 rm -fr conftest*
8497 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8498 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8499 cat >> confdefs.h <<\EOF
8500 #define SIZEOF_INO_T 8
8505 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8506 echo "configure:8507: checking for ino64_t" >&5
8507 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8508 echo $ac_n "(cached) $ac_c" 1>&6
8509 else
8511 if test "$cross_compiling" = yes; then
8512 samba_cv_HAVE_INO64_T=cross
8513 else
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8518 #if defined(HAVE_UNISTD_H)
8519 #include <unistd.h>
8520 #endif
8521 #include <stdio.h>
8522 #include <sys/stat.h>
8523 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8525 if { (eval echo configure:8526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8526 then
8527 samba_cv_HAVE_INO64_T=yes
8528 else
8529 echo "configure: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8531 rm -fr conftest*
8532 samba_cv_HAVE_INO64_T=no
8534 rm -fr conftest*
8539 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8540 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8541 cat >> confdefs.h <<\EOF
8542 #define HAVE_INO64_T 1
8547 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8548 echo "configure:8549: checking for struct dirent64" >&5
8549 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8551 else
8553 cat > conftest.$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8557 #if defined(HAVE_UNISTD_H)
8558 #include <unistd.h>
8559 #endif
8560 #include <sys/types.h>
8561 #include <dirent.h>
8562 int main() {
8563 struct dirent64 de;
8564 ; return 0; }
8566 if { (eval echo configure:8567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8567 rm -rf conftest*
8568 samba_cv_HAVE_STRUCT_DIRENT64=yes
8569 else
8570 echo "configure: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8572 rm -rf conftest*
8573 samba_cv_HAVE_STRUCT_DIRENT64=no
8575 rm -f conftest*
8578 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8579 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8580 cat >> confdefs.h <<\EOF
8581 #define HAVE_STRUCT_DIRENT64 1
8586 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8587 echo "configure:8588: checking for unsigned char" >&5
8588 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8590 else
8592 if test "$cross_compiling" = yes; then
8593 samba_cv_HAVE_UNSIGNED_CHAR=cross
8594 else
8595 cat > conftest.$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8598 #include <stdio.h>
8599 main() { char c; c=250; exit((c > 0)?0:1); }
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8602 then
8603 samba_cv_HAVE_UNSIGNED_CHAR=yes
8604 else
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 rm -fr conftest*
8608 samba_cv_HAVE_UNSIGNED_CHAR=no
8610 rm -fr conftest*
8615 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8616 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8617 cat >> confdefs.h <<\EOF
8618 #define HAVE_UNSIGNED_CHAR 1
8623 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8624 echo "configure:8625: checking for sin_len in sock" >&5
8625 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8627 else
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 #include <sys/types.h>
8633 #include <sys/socket.h>
8634 #include <netinet/in.h>
8635 int main() {
8636 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8637 ; return 0; }
8639 if { (eval echo configure:8640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8640 rm -rf conftest*
8641 samba_cv_HAVE_SOCK_SIN_LEN=yes
8642 else
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8645 rm -rf conftest*
8646 samba_cv_HAVE_SOCK_SIN_LEN=no
8648 rm -f conftest*
8651 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8652 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8653 cat >> confdefs.h <<\EOF
8654 #define HAVE_SOCK_SIN_LEN 1
8659 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8660 echo "configure:8661: checking whether seekdir returns void" >&5
8661 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8663 else
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <sys/types.h>
8669 #include <dirent.h>
8670 void seekdir(DIR *d, long loc) { return; }
8671 int main() {
8672 return 0;
8673 ; return 0; }
8675 if { (eval echo configure:8676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8676 rm -rf conftest*
8677 samba_cv_SEEKDIR_RETURNS_VOID=yes
8678 else
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 rm -rf conftest*
8682 samba_cv_SEEKDIR_RETURNS_VOID=no
8684 rm -f conftest*
8687 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8688 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8689 cat >> confdefs.h <<\EOF
8690 #define SEEKDIR_RETURNS_VOID 1
8695 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8696 echo "configure:8697: checking for __FILE__ macro" >&5
8697 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8704 #include <stdio.h>
8705 int main() {
8706 printf("%s\n", __FILE__);
8707 ; return 0; }
8709 if { (eval echo configure:8710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8710 rm -rf conftest*
8711 samba_cv_HAVE_FILE_MACRO=yes
8712 else
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 rm -rf conftest*
8716 samba_cv_HAVE_FILE_MACRO=no
8718 rm -f conftest*
8721 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8722 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8723 cat >> confdefs.h <<\EOF
8724 #define HAVE_FILE_MACRO 1
8729 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8730 echo "configure:8731: checking for __FUNCTION__ macro" >&5
8731 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8733 else
8735 cat > conftest.$ac_ext <<EOF
8736 #line 8737 "configure"
8737 #include "confdefs.h"
8738 #include <stdio.h>
8739 int main() {
8740 printf("%s\n", __FUNCTION__);
8741 ; return 0; }
8743 if { (eval echo configure:8744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8744 rm -rf conftest*
8745 samba_cv_HAVE_FUNCTION_MACRO=yes
8746 else
8747 echo "configure: failed program was:" >&5
8748 cat conftest.$ac_ext >&5
8749 rm -rf conftest*
8750 samba_cv_HAVE_FUNCTION_MACRO=no
8752 rm -f conftest*
8755 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8756 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8757 cat >> confdefs.h <<\EOF
8758 #define HAVE_FUNCTION_MACRO 1
8763 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8764 echo "configure:8765: checking if gettimeofday takes tz argument" >&5
8765 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8766 echo $ac_n "(cached) $ac_c" 1>&6
8767 else
8769 if test "$cross_compiling" = yes; then
8770 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8771 else
8772 cat > conftest.$ac_ext <<EOF
8773 #line 8774 "configure"
8774 #include "confdefs.h"
8776 #include <sys/time.h>
8777 #include <unistd.h>
8778 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8781 then
8782 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8783 else
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8786 rm -fr conftest*
8787 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8789 rm -fr conftest*
8794 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8795 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8796 cat >> confdefs.h <<\EOF
8797 #define HAVE_GETTIMEOFDAY_TZ 1
8803 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8804 echo "configure:8805: checking for broken readdir" >&5
8805 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8806 echo $ac_n "(cached) $ac_c" 1>&6
8807 else
8809 if test "$cross_compiling" = yes; then
8810 samba_cv_HAVE_BROKEN_READDIR=cross
8811 else
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 #include <sys/types.h>
8816 #include <dirent.h>
8817 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8818 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8819 di->d_name[0] == 0) exit(0); exit(1);}
8821 if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8822 then
8823 samba_cv_HAVE_BROKEN_READDIR=yes
8824 else
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 rm -fr conftest*
8828 samba_cv_HAVE_BROKEN_READDIR=no
8830 rm -fr conftest*
8835 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8836 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8837 cat >> confdefs.h <<\EOF
8838 #define HAVE_BROKEN_READDIR 1
8843 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8844 echo "configure:8845: checking for utimbuf" >&5
8845 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8847 else
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 #include <sys/types.h>
8853 #include <utime.h>
8854 int main() {
8855 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8856 ; return 0; }
8858 if { (eval echo configure:8859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8859 rm -rf conftest*
8860 samba_cv_HAVE_UTIMBUF=yes
8861 else
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8864 rm -rf conftest*
8865 samba_cv_HAVE_UTIMBUF=no
8867 rm -f conftest*
8870 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8871 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8872 cat >> confdefs.h <<\EOF
8873 #define HAVE_UTIMBUF 1
8879 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
8881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8882 echo "configure:8883: checking for $ac_func" >&5
8883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8885 else
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 /* System header to define __stub macros and hopefully few prototypes,
8890 which can conflict with char $ac_func(); below. */
8891 #include <assert.h>
8892 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8895 char $ac_func();
8897 int main() {
8899 /* The GNU C library defines this for functions which it implements
8900 to always fail with ENOSYS. Some functions are actually named
8901 something starting with __ and the normal name is an alias. */
8902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8903 choke me
8904 #else
8905 $ac_func();
8906 #endif
8908 ; return 0; }
8910 if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8911 rm -rf conftest*
8912 eval "ac_cv_func_$ac_func=yes"
8913 else
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8916 rm -rf conftest*
8917 eval "ac_cv_func_$ac_func=no"
8919 rm -f conftest*
8922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8923 echo "$ac_t""yes" 1>&6
8924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8925 cat >> confdefs.h <<EOF
8926 #define $ac_tr_func 1
8929 else
8930 echo "$ac_t""no" 1>&6
8932 done
8935 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8936 echo "configure:8937: checking for ut_name in utmp" >&5
8937 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8938 echo $ac_n "(cached) $ac_c" 1>&6
8939 else
8941 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 #include <sys/types.h>
8945 #include <utmp.h>
8946 int main() {
8947 struct utmp ut; ut.ut_name[0] = 'a';
8948 ; return 0; }
8950 if { (eval echo configure:8951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8951 rm -rf conftest*
8952 samba_cv_HAVE_UT_UT_NAME=yes
8953 else
8954 echo "configure: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8956 rm -rf conftest*
8957 samba_cv_HAVE_UT_UT_NAME=no
8959 rm -f conftest*
8962 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8963 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
8964 cat >> confdefs.h <<\EOF
8965 #define HAVE_UT_UT_NAME 1
8970 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8971 echo "configure:8972: checking for ut_user in utmp" >&5
8972 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8974 else
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8979 #include <sys/types.h>
8980 #include <utmp.h>
8981 int main() {
8982 struct utmp ut; ut.ut_user[0] = 'a';
8983 ; return 0; }
8985 if { (eval echo configure:8986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8986 rm -rf conftest*
8987 samba_cv_HAVE_UT_UT_USER=yes
8988 else
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8991 rm -rf conftest*
8992 samba_cv_HAVE_UT_UT_USER=no
8994 rm -f conftest*
8997 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8998 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_UT_UT_USER 1
9005 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9006 echo "configure:9007: checking for ut_id in utmp" >&5
9007 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9009 else
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include <sys/types.h>
9015 #include <utmp.h>
9016 int main() {
9017 struct utmp ut; ut.ut_id[0] = 'a';
9018 ; return 0; }
9020 if { (eval echo configure:9021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9021 rm -rf conftest*
9022 samba_cv_HAVE_UT_UT_ID=yes
9023 else
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9026 rm -rf conftest*
9027 samba_cv_HAVE_UT_UT_ID=no
9029 rm -f conftest*
9032 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9033 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9034 cat >> confdefs.h <<\EOF
9035 #define HAVE_UT_UT_ID 1
9040 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9041 echo "configure:9042: checking for ut_host in utmp" >&5
9042 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
9044 else
9046 cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9049 #include <sys/types.h>
9050 #include <utmp.h>
9051 int main() {
9052 struct utmp ut; ut.ut_host[0] = 'a';
9053 ; return 0; }
9055 if { (eval echo configure:9056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9056 rm -rf conftest*
9057 samba_cv_HAVE_UT_UT_HOST=yes
9058 else
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9061 rm -rf conftest*
9062 samba_cv_HAVE_UT_UT_HOST=no
9064 rm -f conftest*
9067 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9068 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9069 cat >> confdefs.h <<\EOF
9070 #define HAVE_UT_UT_HOST 1
9075 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9076 echo "configure:9077: checking for ut_time in utmp" >&5
9077 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9078 echo $ac_n "(cached) $ac_c" 1>&6
9079 else
9081 cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure"
9083 #include "confdefs.h"
9084 #include <sys/types.h>
9085 #include <utmp.h>
9086 int main() {
9087 struct utmp ut; time_t t; ut.ut_time = t;
9088 ; return 0; }
9090 if { (eval echo configure:9091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9091 rm -rf conftest*
9092 samba_cv_HAVE_UT_UT_TIME=yes
9093 else
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 rm -rf conftest*
9097 samba_cv_HAVE_UT_UT_TIME=no
9099 rm -f conftest*
9102 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9103 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9104 cat >> confdefs.h <<\EOF
9105 #define HAVE_UT_UT_TIME 1
9110 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9111 echo "configure:9112: checking for ut_tv in utmp" >&5
9112 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9113 echo $ac_n "(cached) $ac_c" 1>&6
9114 else
9116 cat > conftest.$ac_ext <<EOF
9117 #line 9118 "configure"
9118 #include "confdefs.h"
9119 #include <sys/types.h>
9120 #include <utmp.h>
9121 int main() {
9122 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9123 ; return 0; }
9125 if { (eval echo configure:9126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9126 rm -rf conftest*
9127 samba_cv_HAVE_UT_UT_TV=yes
9128 else
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9131 rm -rf conftest*
9132 samba_cv_HAVE_UT_UT_TV=no
9134 rm -f conftest*
9137 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9138 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9139 cat >> confdefs.h <<\EOF
9140 #define HAVE_UT_UT_TV 1
9145 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9146 echo "configure:9147: checking for ut_type in utmp" >&5
9147 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9149 else
9151 cat > conftest.$ac_ext <<EOF
9152 #line 9153 "configure"
9153 #include "confdefs.h"
9154 #include <sys/types.h>
9155 #include <utmp.h>
9156 int main() {
9157 struct utmp ut; ut.ut_type = 0;
9158 ; return 0; }
9160 if { (eval echo configure:9161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9161 rm -rf conftest*
9162 samba_cv_HAVE_UT_UT_TYPE=yes
9163 else
9164 echo "configure: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9166 rm -rf conftest*
9167 samba_cv_HAVE_UT_UT_TYPE=no
9169 rm -f conftest*
9172 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9173 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9174 cat >> confdefs.h <<\EOF
9175 #define HAVE_UT_UT_TYPE 1
9180 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9181 echo "configure:9182: checking for ut_pid in utmp" >&5
9182 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9183 echo $ac_n "(cached) $ac_c" 1>&6
9184 else
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 #include <sys/types.h>
9190 #include <utmp.h>
9191 int main() {
9192 struct utmp ut; ut.ut_pid = 0;
9193 ; return 0; }
9195 if { (eval echo configure:9196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9196 rm -rf conftest*
9197 samba_cv_HAVE_UT_UT_PID=yes
9198 else
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 rm -rf conftest*
9202 samba_cv_HAVE_UT_UT_PID=no
9204 rm -f conftest*
9207 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9208 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9209 cat >> confdefs.h <<\EOF
9210 #define HAVE_UT_UT_PID 1
9215 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9216 echo "configure:9217: checking for ut_exit in utmp" >&5
9217 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9218 echo $ac_n "(cached) $ac_c" 1>&6
9219 else
9221 cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 #include <sys/types.h>
9225 #include <utmp.h>
9226 int main() {
9227 struct utmp ut; ut.ut_exit.e_exit = 0;
9228 ; return 0; }
9230 if { (eval echo configure:9231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9231 rm -rf conftest*
9232 samba_cv_HAVE_UT_UT_EXIT=yes
9233 else
9234 echo "configure: failed program was:" >&5
9235 cat conftest.$ac_ext >&5
9236 rm -rf conftest*
9237 samba_cv_HAVE_UT_UT_EXIT=no
9239 rm -f conftest*
9242 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9243 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9244 cat >> confdefs.h <<\EOF
9245 #define HAVE_UT_UT_EXIT 1
9250 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9251 echo "configure:9252: checking for ut_addr in utmp" >&5
9252 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9253 echo $ac_n "(cached) $ac_c" 1>&6
9254 else
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 #include <sys/types.h>
9260 #include <utmp.h>
9261 int main() {
9262 struct utmp ut; ut.ut_addr = 0;
9263 ; return 0; }
9265 if { (eval echo configure:9266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9266 rm -rf conftest*
9267 samba_cv_HAVE_UT_UT_ADDR=yes
9268 else
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -rf conftest*
9272 samba_cv_HAVE_UT_UT_ADDR=no
9274 rm -f conftest*
9277 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9278 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9279 cat >> confdefs.h <<\EOF
9280 #define HAVE_UT_UT_ADDR 1
9285 if test x$ac_cv_func_pututline = xyes ; then
9286 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9287 echo "configure:9288: checking whether pututline returns pointer" >&5
9288 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9290 else
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9295 #include <sys/types.h>
9296 #include <utmp.h>
9297 int main() {
9298 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9299 ; return 0; }
9301 if { (eval echo configure:9302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9302 rm -rf conftest*
9303 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9304 else
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9307 rm -rf conftest*
9308 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9310 rm -f conftest*
9313 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9314 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9315 cat >> confdefs.h <<\EOF
9316 #define PUTUTLINE_RETURNS_UTMP 1
9322 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9323 echo "configure:9324: checking for ut_syslen in utmpx" >&5
9324 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326 else
9328 cat > conftest.$ac_ext <<EOF
9329 #line 9330 "configure"
9330 #include "confdefs.h"
9331 #include <sys/types.h>
9332 #include <utmpx.h>
9333 int main() {
9334 struct utmpx ux; ux.ut_syslen = 0;
9335 ; return 0; }
9337 if { (eval echo configure:9338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9338 rm -rf conftest*
9339 samba_cv_HAVE_UX_UT_SYSLEN=yes
9340 else
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9343 rm -rf conftest*
9344 samba_cv_HAVE_UX_UT_SYSLEN=no
9346 rm -f conftest*
9349 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9350 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9351 cat >> confdefs.h <<\EOF
9352 #define HAVE_UX_UT_SYSLEN 1
9357 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9358 echo "configure:9359: checking for Linux kernel oplocks" >&5
9359 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9361 else
9363 if test "$cross_compiling" = yes; then
9364 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9365 else
9366 cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9370 #include <sys/types.h>
9371 #include <fcntl.h>
9372 #ifndef F_GETLEASE
9373 #define F_GETLEASE 1025
9374 #endif
9375 main() {
9376 int fd = open("/dev/null", O_RDONLY);
9377 return fcntl(fd, F_GETLEASE, 0) == -1;
9381 if { (eval echo configure:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9382 then
9383 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9384 else
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9387 rm -fr conftest*
9388 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9390 rm -fr conftest*
9395 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9396 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9397 cat >> confdefs.h <<\EOF
9398 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9403 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9404 echo "configure:9405: checking for kernel change notify support" >&5
9405 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9407 else
9409 if test "$cross_compiling" = yes; then
9410 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9411 else
9412 cat > conftest.$ac_ext <<EOF
9413 #line 9414 "configure"
9414 #include "confdefs.h"
9416 #include <sys/types.h>
9417 #include <fcntl.h>
9418 #include <signal.h>
9419 #ifndef F_NOTIFY
9420 #define F_NOTIFY 1026
9421 #endif
9422 main() {
9423 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9427 if { (eval echo configure:9428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9428 then
9429 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9430 else
9431 echo "configure: failed program was:" >&5
9432 cat conftest.$ac_ext >&5
9433 rm -fr conftest*
9434 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9436 rm -fr conftest*
9441 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9442 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9443 cat >> confdefs.h <<\EOF
9444 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9449 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9450 echo "configure:9451: checking for kernel share modes" >&5
9451 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9453 else
9455 if test "$cross_compiling" = yes; then
9456 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9457 else
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9462 #include <sys/types.h>
9463 #include <fcntl.h>
9464 #include <signal.h>
9465 #include <sys/file.h>
9466 #ifndef LOCK_MAND
9467 #define LOCK_MAND 32
9468 #define LOCK_READ 64
9469 #endif
9470 main() {
9471 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9475 if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9476 then
9477 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9478 else
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 rm -fr conftest*
9482 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9484 rm -fr conftest*
9489 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9490 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9491 cat >> confdefs.h <<\EOF
9492 #define HAVE_KERNEL_SHARE_MODES 1
9500 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9501 echo "configure:9502: checking for IRIX kernel oplock type definitions" >&5
9502 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9504 else
9506 cat > conftest.$ac_ext <<EOF
9507 #line 9508 "configure"
9508 #include "confdefs.h"
9509 #include <sys/types.h>
9510 #include <fcntl.h>
9511 int main() {
9512 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9513 ; return 0; }
9515 if { (eval echo configure:9516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9516 rm -rf conftest*
9517 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9518 else
9519 echo "configure: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9521 rm -rf conftest*
9522 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9524 rm -f conftest*
9527 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9528 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9529 cat >> confdefs.h <<\EOF
9530 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9535 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9536 echo "configure:9537: checking for irix specific capabilities" >&5
9537 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9538 echo $ac_n "(cached) $ac_c" 1>&6
9539 else
9541 if test "$cross_compiling" = yes; then
9542 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9543 else
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <sys/types.h>
9548 #include <sys/capability.h>
9549 main() {
9550 cap_t cap;
9551 if ((cap = cap_get_proc()) == NULL)
9552 exit(1);
9553 cap->cap_effective |= CAP_NETWORK_MGT;
9554 cap->cap_inheritable |= CAP_NETWORK_MGT;
9555 cap_set_proc(cap);
9556 exit(0);
9560 if { (eval echo configure:9561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9561 then
9562 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9563 else
9564 echo "configure: failed program was:" >&5
9565 cat conftest.$ac_ext >&5
9566 rm -fr conftest*
9567 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9569 rm -fr conftest*
9574 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9575 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9576 cat >> confdefs.h <<\EOF
9577 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9583 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9584 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9587 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9588 echo "configure:9589: checking for int16 typedef included by rpc/rpc.h" >&5
9589 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9591 else
9593 cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 #include <sys/types.h>
9597 #if defined(HAVE_RPC_RPC_H)
9598 #include <rpc/rpc.h>
9599 #endif
9600 int main() {
9601 int16 testvar;
9602 ; return 0; }
9604 if { (eval echo configure:9605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9605 rm -rf conftest*
9606 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9607 else
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9613 rm -f conftest*
9616 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9617 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9618 cat >> confdefs.h <<\EOF
9619 #define HAVE_INT16_FROM_RPC_RPC_H 1
9624 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9625 echo "configure:9626: checking for uint16 typedef included by rpc/rpc.h" >&5
9626 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9628 else
9630 cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9633 #include <sys/types.h>
9634 #if defined(HAVE_RPC_RPC_H)
9635 #include <rpc/rpc.h>
9636 #endif
9637 int main() {
9638 uint16 testvar;
9639 ; return 0; }
9641 if { (eval echo configure:9642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9642 rm -rf conftest*
9643 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9644 else
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9647 rm -rf conftest*
9648 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9650 rm -f conftest*
9653 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9654 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9655 cat >> confdefs.h <<\EOF
9656 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9661 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9662 echo "configure:9663: checking for int32 typedef included by rpc/rpc.h" >&5
9663 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9665 else
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 #include <sys/types.h>
9671 #if defined(HAVE_RPC_RPC_H)
9672 #include <rpc/rpc.h>
9673 #endif
9674 int main() {
9675 int32 testvar;
9676 ; return 0; }
9678 if { (eval echo configure:9679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9679 rm -rf conftest*
9680 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9681 else
9682 echo "configure: failed program was:" >&5
9683 cat conftest.$ac_ext >&5
9684 rm -rf conftest*
9685 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9687 rm -f conftest*
9690 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9691 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9692 cat >> confdefs.h <<\EOF
9693 #define HAVE_INT32_FROM_RPC_RPC_H 1
9698 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9699 echo "configure:9700: checking for uint32 typedef included by rpc/rpc.h" >&5
9700 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9702 else
9704 cat > conftest.$ac_ext <<EOF
9705 #line 9706 "configure"
9706 #include "confdefs.h"
9707 #include <sys/types.h>
9708 #if defined(HAVE_RPC_RPC_H)
9709 #include <rpc/rpc.h>
9710 #endif
9711 int main() {
9712 uint32 testvar;
9713 ; return 0; }
9715 if { (eval echo configure:9716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9716 rm -rf conftest*
9717 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9718 else
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9724 rm -f conftest*
9727 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9728 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9729 cat >> confdefs.h <<\EOF
9730 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9736 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9737 echo "configure:9738: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9738 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9739 echo $ac_n "(cached) $ac_c" 1>&6
9740 else
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 #include <sys/types.h>
9746 #ifdef HAVE_SYS_SECURITY_H
9747 #include <sys/security.h>
9748 #include <prot.h>
9749 #endif /* HAVE_SYS_SECURITY_H */
9750 #if defined(HAVE_RPC_RPC_H)
9751 #include <rpc/rpc.h>
9752 #endif
9753 int main() {
9754 int testvar;
9755 ; return 0; }
9757 if { (eval echo configure:9758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9758 rm -rf conftest*
9759 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9760 else
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 rm -rf conftest*
9764 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9766 rm -f conftest*
9769 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9770 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9771 cat >> confdefs.h <<\EOF
9772 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9777 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9778 echo "configure:9779: checking for test routines" >&5
9779 if test "$cross_compiling" = yes; then
9780 echo "configure: warning: cannot run when cross-compiling" 1>&2
9781 else
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 #include "${srcdir-.}/tests/trivial.c"
9787 if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9788 then
9789 echo "$ac_t""yes" 1>&6
9790 else
9791 echo "configure: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 rm -fr conftest*
9794 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9796 rm -fr conftest*
9800 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9801 echo "configure:9802: checking for ftruncate extend" >&5
9802 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9804 else
9806 if test "$cross_compiling" = yes; then
9807 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9808 else
9809 cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 #include "${srcdir-.}/tests/ftruncate.c"
9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9815 then
9816 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9817 else
9818 echo "configure: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9820 rm -fr conftest*
9821 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9823 rm -fr conftest*
9828 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9829 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9830 cat >> confdefs.h <<\EOF
9831 #define HAVE_FTRUNCATE_EXTEND 1
9836 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9837 echo "configure:9838: checking for broken getgroups" >&5
9838 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9840 else
9842 if test "$cross_compiling" = yes; then
9843 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9844 else
9845 cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure"
9847 #include "confdefs.h"
9848 #include "${srcdir-.}/tests/getgroups.c"
9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9851 then
9852 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9853 else
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9856 rm -fr conftest*
9857 samba_cv_HAVE_BROKEN_GETGROUPS=no
9859 rm -fr conftest*
9864 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9865 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9866 cat >> confdefs.h <<\EOF
9867 #define HAVE_BROKEN_GETGROUPS 1
9872 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9873 echo "configure:9874: checking whether getpass should be replaced" >&5
9874 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9876 else
9878 SAVE_CPPFLAGS="$CPPFLAGS"
9879 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9880 cat > conftest.$ac_ext <<EOF
9881 #line 9882 "configure"
9882 #include "confdefs.h"
9884 #define REPLACE_GETPASS 1
9885 #define NO_CONFIG_H 1
9886 #define main dont_declare_main
9887 #include "${srcdir-.}/lib/getsmbpass.c"
9888 #undef main
9890 int main() {
9892 ; return 0; }
9894 if { (eval echo configure:9895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9895 rm -rf conftest*
9896 samba_cv_REPLACE_GETPASS=yes
9897 else
9898 echo "configure: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9900 rm -rf conftest*
9901 samba_cv_REPLACE_GETPASS=no
9903 rm -f conftest*
9904 CPPFLAGS="$SAVE_CPPFLAGS"
9908 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9909 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9910 cat >> confdefs.h <<\EOF
9911 #define REPLACE_GETPASS 1
9916 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9917 echo "configure:9918: checking for broken inet_ntoa" >&5
9918 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9920 else
9922 if test "$cross_compiling" = yes; then
9923 samba_cv_REPLACE_INET_NTOA=cross
9924 else
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9929 #include <stdio.h>
9930 #include <sys/types.h>
9931 #include <netinet/in.h>
9932 #ifdef HAVE_ARPA_INET_H
9933 #include <arpa/inet.h>
9934 #endif
9935 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9936 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9937 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9938 exit(1);}
9940 if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9941 then
9942 samba_cv_REPLACE_INET_NTOA=yes
9943 else
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 rm -fr conftest*
9947 samba_cv_REPLACE_INET_NTOA=no
9949 rm -fr conftest*
9954 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9955 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9956 cat >> confdefs.h <<\EOF
9957 #define REPLACE_INET_NTOA 1
9962 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9963 echo "configure:9964: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9964 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9966 else
9968 if test "$cross_compiling" = yes; then
9969 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9970 else
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 #include <unistd.h>
9975 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9978 then
9979 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9980 else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -fr conftest*
9984 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9986 rm -fr conftest*
9991 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9992 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9993 cat >> confdefs.h <<\EOF
9994 #define SYSCONF_SC_NGROUPS_MAX 1
9999 echo $ac_n "checking for root""... $ac_c" 1>&6
10000 echo "configure:10001: checking for root" >&5
10001 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10003 else
10005 if test "$cross_compiling" = yes; then
10006 samba_cv_HAVE_ROOT=cross
10007 else
10008 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10011 main() { exit(getuid() != 0); }
10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10014 then
10015 samba_cv_HAVE_ROOT=yes
10016 else
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10019 rm -fr conftest*
10020 samba_cv_HAVE_ROOT=no
10022 rm -fr conftest*
10027 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10028 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10029 cat >> confdefs.h <<\EOF
10030 #define HAVE_ROOT 1
10033 else
10034 echo "configure: warning: running as non-root will disable some tests" 1>&2
10037 ##################
10038 # look for a method of finding the list of network interfaces
10039 iface=no;
10040 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10041 echo "configure:10042: checking for iface AIX" >&5
10042 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10043 echo $ac_n "(cached) $ac_c" 1>&6
10044 else
10046 if test "$cross_compiling" = yes; then
10047 samba_cv_HAVE_IFACE_AIX=cross
10048 else
10049 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10053 #define HAVE_IFACE_AIX 1
10054 #define AUTOCONF_TEST 1
10055 #include "confdefs.h"
10056 #include "${srcdir-.}/lib/interfaces.c"
10058 if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10059 then
10060 samba_cv_HAVE_IFACE_AIX=yes
10061 else
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 rm -fr conftest*
10065 samba_cv_HAVE_IFACE_AIX=no
10067 rm -fr conftest*
10072 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10073 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10074 iface=yes;cat >> confdefs.h <<\EOF
10075 #define HAVE_IFACE_AIX 1
10080 if test $iface = no; then
10081 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10082 echo "configure:10083: checking for iface ifconf" >&5
10083 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10085 else
10087 if test "$cross_compiling" = yes; then
10088 samba_cv_HAVE_IFACE_IFCONF=cross
10089 else
10090 cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10094 #define HAVE_IFACE_IFCONF 1
10095 #define AUTOCONF_TEST 1
10096 #include "confdefs.h"
10097 #include "${srcdir-.}/lib/interfaces.c"
10099 if { (eval echo configure:10100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10100 then
10101 samba_cv_HAVE_IFACE_IFCONF=yes
10102 else
10103 echo "configure: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10105 rm -fr conftest*
10106 samba_cv_HAVE_IFACE_IFCONF=no
10108 rm -fr conftest*
10113 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10114 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10115 iface=yes;cat >> confdefs.h <<\EOF
10116 #define HAVE_IFACE_IFCONF 1
10122 if test $iface = no; then
10123 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10124 echo "configure:10125: checking for iface ifreq" >&5
10125 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10127 else
10129 if test "$cross_compiling" = yes; then
10130 samba_cv_HAVE_IFACE_IFREQ=cross
10131 else
10132 cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10136 #define HAVE_IFACE_IFREQ 1
10137 #define AUTOCONF_TEST 1
10138 #include "confdefs.h"
10139 #include "${srcdir-.}/lib/interfaces.c"
10141 if { (eval echo configure:10142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10142 then
10143 samba_cv_HAVE_IFACE_IFREQ=yes
10144 else
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10147 rm -fr conftest*
10148 samba_cv_HAVE_IFACE_IFREQ=no
10150 rm -fr conftest*
10155 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10156 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10157 iface=yes;cat >> confdefs.h <<\EOF
10158 #define HAVE_IFACE_IFREQ 1
10165 ################################################
10166 # look for a method of setting the effective uid
10167 seteuid=no;
10168 if test $seteuid = no; then
10169 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10170 echo "configure:10171: checking for setresuid" >&5
10171 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10173 else
10175 if test "$cross_compiling" = yes; then
10176 samba_cv_USE_SETRESUID=cross
10177 else
10178 cat > conftest.$ac_ext <<EOF
10179 #line 10180 "configure"
10180 #include "confdefs.h"
10182 #define AUTOCONF_TEST 1
10183 #define USE_SETRESUID 1
10184 #include "confdefs.h"
10185 #include "${srcdir-.}/lib/util_sec.c"
10187 if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10188 then
10189 samba_cv_USE_SETRESUID=yes
10190 else
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 rm -fr conftest*
10194 samba_cv_USE_SETRESUID=no
10196 rm -fr conftest*
10201 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10202 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10203 seteuid=yes;cat >> confdefs.h <<\EOF
10204 #define USE_SETRESUID 1
10211 if test $seteuid = no; then
10212 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10213 echo "configure:10214: checking for setreuid" >&5
10214 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10215 echo $ac_n "(cached) $ac_c" 1>&6
10216 else
10218 if test "$cross_compiling" = yes; then
10219 samba_cv_USE_SETREUID=cross
10220 else
10221 cat > conftest.$ac_ext <<EOF
10222 #line 10223 "configure"
10223 #include "confdefs.h"
10225 #define AUTOCONF_TEST 1
10226 #define USE_SETREUID 1
10227 #include "confdefs.h"
10228 #include "${srcdir-.}/lib/util_sec.c"
10230 if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10231 then
10232 samba_cv_USE_SETREUID=yes
10233 else
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 rm -fr conftest*
10237 samba_cv_USE_SETREUID=no
10239 rm -fr conftest*
10244 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10245 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10246 seteuid=yes;cat >> confdefs.h <<\EOF
10247 #define USE_SETREUID 1
10253 if test $seteuid = no; then
10254 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10255 echo "configure:10256: checking for seteuid" >&5
10256 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
10258 else
10260 if test "$cross_compiling" = yes; then
10261 samba_cv_USE_SETEUID=cross
10262 else
10263 cat > conftest.$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10267 #define AUTOCONF_TEST 1
10268 #define USE_SETEUID 1
10269 #include "confdefs.h"
10270 #include "${srcdir-.}/lib/util_sec.c"
10272 if { (eval echo configure:10273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10273 then
10274 samba_cv_USE_SETEUID=yes
10275 else
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10278 rm -fr conftest*
10279 samba_cv_USE_SETEUID=no
10281 rm -fr conftest*
10286 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10287 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10288 seteuid=yes;cat >> confdefs.h <<\EOF
10289 #define USE_SETEUID 1
10295 if test $seteuid = no; then
10296 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10297 echo "configure:10298: checking for setuidx" >&5
10298 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10300 else
10302 if test "$cross_compiling" = yes; then
10303 samba_cv_USE_SETUIDX=cross
10304 else
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10309 #define AUTOCONF_TEST 1
10310 #define USE_SETUIDX 1
10311 #include "confdefs.h"
10312 #include "${srcdir-.}/lib/util_sec.c"
10314 if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10315 then
10316 samba_cv_USE_SETUIDX=yes
10317 else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -fr conftest*
10321 samba_cv_USE_SETUIDX=no
10323 rm -fr conftest*
10328 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10329 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10330 seteuid=yes;cat >> confdefs.h <<\EOF
10331 #define USE_SETUIDX 1
10338 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10339 echo "configure:10340: checking for working mmap" >&5
10340 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10341 echo $ac_n "(cached) $ac_c" 1>&6
10342 else
10344 if test "$cross_compiling" = yes; then
10345 samba_cv_HAVE_MMAP=cross
10346 else
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include "${srcdir-.}/tests/shared_mmap.c"
10352 if { (eval echo configure:10353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10353 then
10354 samba_cv_HAVE_MMAP=yes
10355 else
10356 echo "configure: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 rm -fr conftest*
10359 samba_cv_HAVE_MMAP=no
10361 rm -fr conftest*
10366 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10367 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10368 cat >> confdefs.h <<\EOF
10369 #define HAVE_MMAP 1
10374 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10375 echo "configure:10376: checking for ftruncate needs root" >&5
10376 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10378 else
10380 if test "$cross_compiling" = yes; then
10381 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10382 else
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10386 #include "${srcdir-.}/tests/ftruncroot.c"
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10389 then
10390 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10391 else
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10394 rm -fr conftest*
10395 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10397 rm -fr conftest*
10402 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10403 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10404 cat >> confdefs.h <<\EOF
10405 #define FTRUNCATE_NEEDS_ROOT 1
10410 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10411 echo "configure:10412: checking for fcntl locking" >&5
10412 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10413 echo $ac_n "(cached) $ac_c" 1>&6
10414 else
10416 if test "$cross_compiling" = yes; then
10417 samba_cv_HAVE_FCNTL_LOCK=cross
10418 else
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include "${srcdir-.}/tests/fcntl_lock.c"
10424 if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10425 then
10426 samba_cv_HAVE_FCNTL_LOCK=yes
10427 else
10428 echo "configure: failed program was:" >&5
10429 cat conftest.$ac_ext >&5
10430 rm -fr conftest*
10431 samba_cv_HAVE_FCNTL_LOCK=no
10433 rm -fr conftest*
10438 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10439 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10440 cat >> confdefs.h <<\EOF
10441 #define HAVE_FCNTL_LOCK 1
10446 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10447 echo "configure:10448: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10448 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10450 else
10452 if test "$cross_compiling" = yes; then
10453 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10454 else
10455 cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include "${srcdir-.}/tests/fcntl_lock64.c"
10460 if { (eval echo configure:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10461 then
10462 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10463 else
10464 echo "configure: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10466 rm -fr conftest*
10467 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10469 rm -fr conftest*
10474 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10475 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10476 cat >> confdefs.h <<\EOF
10477 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10481 else
10484 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10485 echo "configure:10486: checking for 64 bit fcntl locking" >&5
10486 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10488 else
10490 if test "$cross_compiling" = yes; then
10491 samba_cv_HAVE_STRUCT_FLOCK64=cross
10492 else
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10497 #if defined(HAVE_UNISTD_H)
10498 #include <unistd.h>
10499 #endif
10500 #include <stdio.h>
10501 #include <stdlib.h>
10503 #ifdef HAVE_FCNTL_H
10504 #include <fcntl.h>
10505 #endif
10507 #ifdef HAVE_SYS_FCNTL_H
10508 #include <sys/fcntl.h>
10509 #endif
10510 main() { struct flock64 fl64;
10511 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10512 exit(0);
10513 #else
10514 exit(1);
10515 #endif
10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10519 then
10520 samba_cv_HAVE_STRUCT_FLOCK64=yes
10521 else
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 rm -fr conftest*
10525 samba_cv_HAVE_STRUCT_FLOCK64=no
10527 rm -fr conftest*
10532 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10534 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10535 cat >> confdefs.h <<\EOF
10536 #define HAVE_STRUCT_FLOCK64 1
10542 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10543 echo "configure:10544: checking for a crypt that needs truncated salt" >&5
10544 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10546 else
10548 if test "$cross_compiling" = yes; then
10549 samba_cv_HAVE_TRUNCATED_SALT=cross
10550 else
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10554 #include "${srcdir-.}/tests/crypttest.c"
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10557 then
10558 samba_cv_HAVE_TRUNCATED_SALT=no
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 rm -fr conftest*
10563 samba_cv_HAVE_TRUNCATED_SALT=yes
10565 rm -fr conftest*
10570 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10571 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10572 cat >> confdefs.h <<\EOF
10573 #define HAVE_TRUNCATED_SALT 1
10578 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10579 echo "configure:10580: checking for broken nisplus include files" >&5
10580 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10581 echo $ac_n "(cached) $ac_c" 1>&6
10582 else
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 #include <sys/acl.h>
10588 #if defined(HAVE_RPCSVC_NIS_H)
10589 #include <rpcsvc/nis.h>
10590 #endif
10591 int main() {
10592 return 0;
10593 ; return 0; }
10595 if { (eval echo configure:10596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10596 rm -rf conftest*
10597 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10598 else
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10601 rm -rf conftest*
10602 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10604 rm -f conftest*
10607 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10608 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10609 cat >> confdefs.h <<\EOF
10610 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10616 #################################################
10617 # check for smbwrapper support
10618 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10619 echo "configure:10620: checking whether to use smbwrapper" >&5
10620 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10621 if test "${with_smbwrapper+set}" = set; then
10622 withval="$with_smbwrapper"
10623 case "$withval" in
10624 yes)
10625 echo "$ac_t""yes" 1>&6
10626 cat >> confdefs.h <<\EOF
10627 #define WITH_SMBWRAPPER 1
10630 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10632 if test x$ATTEMPT_WRAP32_BUILD = x; then
10633 WRAP32=""
10634 else
10635 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10638 # Conditions under which smbwrapper should not be built.
10640 if test x$PICFLAG = x; then
10641 echo No support for PIC code - disabling smbwrapper and smbsh
10642 WRAP=""
10643 WRAP32=""
10644 elif test x$ac_cv_func_syscall = xno; then
10645 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10646 WRAP=""
10647 WRAP32=""
10651 echo "$ac_t""no" 1>&6
10653 esac
10654 else
10655 echo "$ac_t""no" 1>&6
10660 #################################################
10661 # check for the AFS filesystem
10662 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10663 echo "configure:10664: checking whether to use AFS" >&5
10664 # Check whether --with-afs or --without-afs was given.
10665 if test "${with_afs+set}" = set; then
10666 withval="$with_afs"
10667 case "$withval" in
10668 yes)
10669 echo "$ac_t""yes" 1>&6
10670 cat >> confdefs.h <<\EOF
10671 #define WITH_AFS 1
10676 echo "$ac_t""no" 1>&6
10678 esac
10679 else
10680 echo "$ac_t""no" 1>&6
10686 #################################################
10687 # check for the DFS auth system
10688 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10689 echo "configure:10690: checking whether to use DFS auth" >&5
10690 # Check whether --with-dfs or --without-dfs was given.
10691 if test "${with_dfs+set}" = set; then
10692 withval="$with_dfs"
10693 case "$withval" in
10694 yes)
10695 echo "$ac_t""yes" 1>&6
10696 cat >> confdefs.h <<\EOF
10697 #define WITH_DFS 1
10702 echo "$ac_t""no" 1>&6
10704 esac
10705 else
10706 echo "$ac_t""no" 1>&6
10711 #################################################
10712 # check for Kerberos IV auth system
10713 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10714 echo "configure:10715: checking whether to use Kerberos IV" >&5
10715 # Check whether --with-krb4 or --without-krb4 was given.
10716 if test "${with_krb4+set}" = set; then
10717 withval="$with_krb4"
10718 echo "$ac_t""yes" 1>&6
10719 cat >> confdefs.h <<\EOF
10720 #define KRB4_AUTH 1
10723 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10724 echo "configure:10725: checking for dn_expand in -lresolv" >&5
10725 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10728 else
10729 ac_save_LIBS="$LIBS"
10730 LIBS="-lresolv $LIBS"
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10737 char dn_expand();
10739 int main() {
10740 dn_expand()
10741 ; return 0; }
10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10744 rm -rf conftest*
10745 eval "ac_cv_lib_$ac_lib_var=yes"
10746 else
10747 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 rm -rf conftest*
10750 eval "ac_cv_lib_$ac_lib_var=no"
10752 rm -f conftest*
10753 LIBS="$ac_save_LIBS"
10756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10760 cat >> confdefs.h <<EOF
10761 #define $ac_tr_lib 1
10764 LIBS="-lresolv $LIBS"
10766 else
10767 echo "$ac_t""no" 1>&6
10770 LIBS="$LIBS -lkrb -ldes"
10771 CFLAGS="$CFLAGS -I$withval/include"
10772 LDFLAGS="$LDFLAGS -L$withval/lib"
10773 else
10774 echo "$ac_t""no" 1>&6
10779 #################################################
10780 # check for Kerberos 5 auth system
10781 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10782 echo "configure:10783: checking whether to use Kerberos 5" >&5
10783 # Check whether --with-krb5 or --without-krb5 was given.
10784 if test "${with_krb5+set}" = set; then
10785 withval="$with_krb5"
10786 echo "$ac_t""yes" 1>&6
10787 cat >> confdefs.h <<\EOF
10788 #define KRB5_AUTH 1
10791 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10792 CFLAGS="$CFLAGS -I$withval/include"
10793 LDFLAGS="$LDFLAGS -L$withval/lib"
10794 else
10795 echo "$ac_t""no" 1>&6
10800 #################################################
10801 # check for automount support
10802 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10803 echo "configure:10804: checking whether to use AUTOMOUNT" >&5
10804 # Check whether --with-automount or --without-automount was given.
10805 if test "${with_automount+set}" = set; then
10806 withval="$with_automount"
10807 case "$withval" in
10808 yes)
10809 echo "$ac_t""yes" 1>&6
10810 cat >> confdefs.h <<\EOF
10811 #define WITH_AUTOMOUNT 1
10816 echo "$ac_t""no" 1>&6
10818 esac
10819 else
10820 echo "$ac_t""no" 1>&6
10825 #################################################
10826 # check for smbmount support
10827 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10828 echo "configure:10829: checking whether to use SMBMOUNT" >&5
10829 # Check whether --with-smbmount or --without-smbmount was given.
10830 if test "${with_smbmount+set}" = set; then
10831 withval="$with_smbmount"
10832 case "$withval" in
10833 yes)
10834 echo "$ac_t""yes" 1>&6
10835 cat >> confdefs.h <<\EOF
10836 #define WITH_SMBMOUNT 1
10839 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10842 echo "$ac_t""no" 1>&6
10843 MPROGS=
10845 esac
10846 else
10847 echo "$ac_t""no" 1>&6
10848 MPROGS=
10854 #################################################
10855 # check for a PAM password database
10856 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10857 echo "configure:10858: checking whether to use PAM password database" >&5
10858 # Check whether --with-pam or --without-pam was given.
10859 if test "${with_pam+set}" = set; then
10860 withval="$with_pam"
10861 case "$withval" in
10862 yes)
10863 echo "$ac_t""yes" 1>&6
10864 cat >> confdefs.h <<\EOF
10865 #define WITH_PAM 1
10868 LIBS="$LIBS -lpam"
10871 echo "$ac_t""no" 1>&6
10873 esac
10874 else
10875 echo "$ac_t""no" 1>&6
10880 #################################################
10881 # check for a TDB password database
10882 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10883 echo "configure:10884: checking whether to use TDB password database" >&5
10884 # Check whether --with-tdbpwd or --without-tdbpwd was given.
10885 if test "${with_tdbpwd+set}" = set; then
10886 withval="$with_tdbpwd"
10887 case "$withval" in
10888 yes)
10889 echo "$ac_t""yes" 1>&6
10890 cat >> confdefs.h <<\EOF
10891 #define WITH_TDBPWD 1
10894 # AC_MSG_ERROR([TDB password database not supported in this version.])
10897 echo "$ac_t""no" 1>&6
10899 esac
10900 else
10901 echo "$ac_t""no" 1>&6
10906 #################################################
10907 # removed until we get the code actually working
10908 # --jerry
10910 # check for a LDAP password database
10911 #AC_MSG_CHECKING(whether to use LDAP password database)
10912 #AC_ARG_WITH(ldap,
10913 #[ --with-ldap Include LDAP support
10914 # --without-ldap Don't include LDAP support (default)],
10915 #[ case "$withval" in
10916 # yes)
10917 # AC_MSG_RESULT(yes)
10918 # AC_DEFINE(WITH_LDAP)
10919 # AC_MSG_ERROR([LDAP password database not supported in this version.])
10920 # ;;
10921 # *)
10922 # AC_MSG_RESULT(no)
10923 # ;;
10924 # esac ],
10925 # AC_MSG_RESULT(no)
10928 #################################################
10929 # check for a NISPLUS password database
10930 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10931 echo "configure:10932: checking whether to use NISPLUS password database" >&5
10932 # Check whether --with-nisplus or --without-nisplus was given.
10933 if test "${with_nisplus+set}" = set; then
10934 withval="$with_nisplus"
10935 case "$withval" in
10936 yes)
10937 echo "$ac_t""yes" 1>&6
10938 cat >> confdefs.h <<\EOF
10939 #define WITH_NISPLUS 1
10944 echo "$ac_t""no" 1>&6
10946 esac
10947 else
10948 echo "$ac_t""no" 1>&6
10953 #################################################
10954 # check for a NISPLUS_HOME support
10955 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10956 echo "configure:10957: checking whether to use NISPLUS_HOME" >&5
10957 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10958 if test "${with_nisplus_home+set}" = set; then
10959 withval="$with_nisplus_home"
10960 case "$withval" in
10961 yes)
10962 echo "$ac_t""yes" 1>&6
10963 cat >> confdefs.h <<\EOF
10964 #define WITH_NISPLUS_HOME 1
10969 echo "$ac_t""no" 1>&6
10971 esac
10972 else
10973 echo "$ac_t""no" 1>&6
10978 #################################################
10979 # check for the secure socket layer
10980 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10981 echo "configure:10982: checking whether to use SSL" >&5
10982 # Check whether --with-ssl or --without-ssl was given.
10983 if test "${with_ssl+set}" = set; then
10984 withval="$with_ssl"
10985 case "$withval" in
10986 yes)
10987 echo "$ac_t""yes" 1>&6
10988 cat >> confdefs.h <<\EOF
10989 #define WITH_SSL 1
10992 withval="/usr/local/ssl" # default
10994 if test "${with_sslinc+set}" = set; then
10996 withval="$with_sslinc"
10997 case "$withval" in
10998 yes|no)
10999 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11000 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11001 LIBS="-lssl -lcrypto $LIBS"
11002 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11005 CFLAGS="-I${withval}/include $CFLAGS"
11006 LIBS="-lssl -lcrypto $LIBS"
11007 LDFLAGS="-L${withval}/lib $LDFLAGS"
11009 esac
11011 else
11013 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11014 LIBS="-lssl -lcrypto $LIBS"
11015 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11019 if test ! -d ${withval}; then
11020 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11021 exit 1
11024 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11028 echo "$ac_t""no" 1>&6
11030 esac
11031 else
11032 echo "$ac_t""no" 1>&6
11037 #################################################
11038 # check for syslog logging
11039 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11040 echo "configure:11041: checking whether to use syslog logging" >&5
11041 # Check whether --with-syslog or --without-syslog was given.
11042 if test "${with_syslog+set}" = set; then
11043 withval="$with_syslog"
11044 case "$withval" in
11045 yes)
11046 echo "$ac_t""yes" 1>&6
11047 cat >> confdefs.h <<\EOF
11048 #define WITH_SYSLOG 1
11053 echo "$ac_t""no" 1>&6
11055 esac
11056 else
11057 echo "$ac_t""no" 1>&6
11062 #################################################
11063 # check for a shared memory profiling support
11064 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11065 echo "configure:11066: checking whether to use profiling" >&5
11066 # Check whether --with-profile or --without-profile was given.
11067 if test "${with_profile+set}" = set; then
11068 withval="$with_profile"
11069 case "$withval" in
11070 yes)
11071 echo "$ac_t""yes" 1>&6
11072 cat >> confdefs.h <<\EOF
11073 #define WITH_PROFILE 1
11078 echo "$ac_t""no" 1>&6
11080 esac
11081 else
11082 echo "$ac_t""no" 1>&6
11088 #################################################
11089 # check for experimental netatalk resource fork support
11090 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11091 echo "configure:11092: checking whether to support netatalk" >&5
11092 # Check whether --with-netatalk or --without-netatalk was given.
11093 if test "${with_netatalk+set}" = set; then
11094 withval="$with_netatalk"
11095 case "$withval" in
11096 yes)
11097 echo "$ac_t""yes" 1>&6
11098 cat >> confdefs.h <<\EOF
11099 #define WITH_NETATALK 1
11104 echo "$ac_t""no" 1>&6
11106 esac
11107 else
11108 echo "$ac_t""no" 1>&6
11113 #################################################
11114 # check for experimental disk-quotas support
11115 QUOTAOBJS=smbd/noquotas.o
11117 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11118 echo "configure:11119: checking whether to support disk-quotas" >&5
11119 # Check whether --with-quotas or --without-quotas was given.
11120 if test "${with_quotas+set}" = set; then
11121 withval="$with_quotas"
11122 case "$withval" in
11123 yes)
11124 echo "$ac_t""yes" 1>&6
11125 QUOTAOBJS=smbd/quotas.o
11128 echo "$ac_t""no" 1>&6
11130 esac
11131 else
11132 echo "$ac_t""no" 1>&6
11138 #################################################
11139 # check for experimental utmp accounting
11141 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11142 echo "configure:11143: checking whether to support utmp accounting" >&5
11143 # Check whether --with-utmp or --without-utmp was given.
11144 if test "${with_utmp+set}" = set; then
11145 withval="$with_utmp"
11146 case "$withval" in
11147 yes)
11148 echo "$ac_t""yes" 1>&6
11149 cat >> confdefs.h <<\EOF
11150 #define WITH_UTMP 1
11155 echo "$ac_t""no" 1>&6
11157 esac
11158 else
11159 echo "$ac_t""no" 1>&6
11164 #################################################
11165 # check for MS Dfs support
11167 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11168 echo "configure:11169: checking whether to support Microsoft Dfs" >&5
11169 # Check whether --with-msdfs or --without-msdfs was given.
11170 if test "${with_msdfs+set}" = set; then
11171 withval="$with_msdfs"
11172 case "$withval" in
11173 yes)
11174 echo "$ac_t""yes" 1>&6
11175 cat >> confdefs.h <<\EOF
11176 #define WITH_MSDFS 1
11181 echo "$ac_t""no" 1>&6
11183 esac
11184 else
11185 echo "$ac_t""no" 1>&6
11190 #################################################
11191 # check for Samba VFS support
11193 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11194 echo "configure:11195: checking whether to support the experimantal Samba vfs" >&5
11195 # Check whether --with-vfs or --without-vfs was given.
11196 if test "${with_vfs+set}" = set; then
11197 withval="$with_vfs"
11198 case "$withval" in
11199 yes)
11200 echo "$ac_t""yes" 1>&6
11201 cat >> confdefs.h <<\EOF
11202 #define WITH_VFS 1
11207 echo "$ac_t""no" 1>&6
11209 esac
11210 else
11211 echo "$ac_t""no" 1>&6
11216 #################################################
11217 # these tests are taken from the GNU fileutils package
11218 echo "checking how to get filesystem space usage" 1>&6
11219 echo "configure:11220: checking how to get filesystem space usage" >&5
11220 space=no
11222 # Test for statvfs64.
11223 if test $space = no; then
11224 # SVR4
11225 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11226 echo "configure:11227: checking statvfs64 function (SVR4)" >&5
11227 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11229 else
11230 if test "$cross_compiling" = yes; then
11231 fu_cv_sys_stat_statvfs64=cross
11232 else
11233 cat > conftest.$ac_ext <<EOF
11234 #line 11235 "configure"
11235 #include "confdefs.h"
11237 #if defined(HAVE_UNISTD_H)
11238 #include <unistd.h>
11239 #endif
11240 #include <sys/types.h>
11241 #include <sys/statvfs.h>
11242 main ()
11244 struct statvfs64 fsd;
11245 exit (statvfs64 (".", &fsd));
11248 if { (eval echo configure:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11249 then
11250 fu_cv_sys_stat_statvfs64=yes
11251 else
11252 echo "configure: failed program was:" >&5
11253 cat conftest.$ac_ext >&5
11254 rm -fr conftest*
11255 fu_cv_sys_stat_statvfs64=no
11257 rm -fr conftest*
11262 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11263 if test $fu_cv_sys_stat_statvfs64 = yes; then
11264 space=yes
11265 cat >> confdefs.h <<\EOF
11266 #define STAT_STATVFS64 1
11272 # Perform only the link test since it seems there are no variants of the
11273 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11274 # because that got a false positive on SCO OSR5. Adding the declaration
11275 # of a `struct statvfs' causes this test to fail (as it should) on such
11276 # systems. That system is reported to work fine with STAT_STATFS4 which
11277 # is what it gets when this test fails.
11278 if test $space = no; then
11279 # SVR4
11280 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11281 echo "configure:11282: checking statvfs function (SVR4)" >&5
11282 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11284 else
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 #include <sys/types.h>
11289 #include <sys/statvfs.h>
11290 int main() {
11291 struct statvfs fsd; statvfs (0, &fsd);
11292 ; return 0; }
11294 if { (eval echo configure:11295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11295 rm -rf conftest*
11296 fu_cv_sys_stat_statvfs=yes
11297 else
11298 echo "configure: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 rm -rf conftest*
11301 fu_cv_sys_stat_statvfs=no
11303 rm -f conftest*
11306 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11307 if test $fu_cv_sys_stat_statvfs = yes; then
11308 space=yes
11309 cat >> confdefs.h <<\EOF
11310 #define STAT_STATVFS 1
11316 if test $space = no; then
11317 # DEC Alpha running OSF/1
11318 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11319 echo "configure:11320: checking for 3-argument statfs function (DEC OSF/1)" >&5
11320 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11321 echo $ac_n "(cached) $ac_c" 1>&6
11322 else
11323 if test "$cross_compiling" = yes; then
11324 fu_cv_sys_stat_statfs3_osf1=no
11325 else
11326 cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11330 #include <sys/param.h>
11331 #include <sys/types.h>
11332 #include <sys/mount.h>
11333 main ()
11335 struct statfs fsd;
11336 fsd.f_fsize = 0;
11337 exit (statfs (".", &fsd, sizeof (struct statfs)));
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11341 then
11342 fu_cv_sys_stat_statfs3_osf1=yes
11343 else
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 rm -fr conftest*
11347 fu_cv_sys_stat_statfs3_osf1=no
11349 rm -fr conftest*
11354 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11355 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11356 space=yes
11357 cat >> confdefs.h <<\EOF
11358 #define STAT_STATFS3_OSF1 1
11364 if test $space = no; then
11365 # AIX
11366 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11367 echo "configure:11368: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11368 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11369 echo $ac_n "(cached) $ac_c" 1>&6
11370 else
11371 if test "$cross_compiling" = yes; then
11372 fu_cv_sys_stat_statfs2_bsize=no
11373 else
11374 cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11378 #ifdef HAVE_SYS_PARAM_H
11379 #include <sys/param.h>
11380 #endif
11381 #ifdef HAVE_SYS_MOUNT_H
11382 #include <sys/mount.h>
11383 #endif
11384 #ifdef HAVE_SYS_VFS_H
11385 #include <sys/vfs.h>
11386 #endif
11387 main ()
11389 struct statfs fsd;
11390 fsd.f_bsize = 0;
11391 exit (statfs (".", &fsd));
11394 if { (eval echo configure:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11395 then
11396 fu_cv_sys_stat_statfs2_bsize=yes
11397 else
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11400 rm -fr conftest*
11401 fu_cv_sys_stat_statfs2_bsize=no
11403 rm -fr conftest*
11408 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11409 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11410 space=yes
11411 cat >> confdefs.h <<\EOF
11412 #define STAT_STATFS2_BSIZE 1
11418 if test $space = no; then
11419 # SVR3
11420 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11421 echo "configure:11422: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11422 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11424 else
11425 if test "$cross_compiling" = yes; then
11426 fu_cv_sys_stat_statfs4=no
11427 else
11428 cat > conftest.$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11431 #include <sys/types.h>
11432 #include <sys/statfs.h>
11433 main ()
11435 struct statfs fsd;
11436 exit (statfs (".", &fsd, sizeof fsd, 0));
11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11440 then
11441 fu_cv_sys_stat_statfs4=yes
11442 else
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11445 rm -fr conftest*
11446 fu_cv_sys_stat_statfs4=no
11448 rm -fr conftest*
11453 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11454 if test $fu_cv_sys_stat_statfs4 = yes; then
11455 space=yes
11456 cat >> confdefs.h <<\EOF
11457 #define STAT_STATFS4 1
11463 if test $space = no; then
11464 # 4.4BSD and NetBSD
11465 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11466 echo "configure:11467: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11467 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11468 echo $ac_n "(cached) $ac_c" 1>&6
11469 else
11470 if test "$cross_compiling" = yes; then
11471 fu_cv_sys_stat_statfs2_fsize=no
11472 else
11473 cat > conftest.$ac_ext <<EOF
11474 #line 11475 "configure"
11475 #include "confdefs.h"
11476 #include <sys/types.h>
11477 #ifdef HAVE_SYS_PARAM_H
11478 #include <sys/param.h>
11479 #endif
11480 #ifdef HAVE_SYS_MOUNT_H
11481 #include <sys/mount.h>
11482 #endif
11483 main ()
11485 struct statfs fsd;
11486 fsd.f_fsize = 0;
11487 exit (statfs (".", &fsd));
11490 if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11491 then
11492 fu_cv_sys_stat_statfs2_fsize=yes
11493 else
11494 echo "configure: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 rm -fr conftest*
11497 fu_cv_sys_stat_statfs2_fsize=no
11499 rm -fr conftest*
11504 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11505 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11506 space=yes
11507 cat >> confdefs.h <<\EOF
11508 #define STAT_STATFS2_FSIZE 1
11514 if test $space = no; then
11515 # Ultrix
11516 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11517 echo "configure:11518: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11518 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11520 else
11521 if test "$cross_compiling" = yes; then
11522 fu_cv_sys_stat_fs_data=no
11523 else
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 #include <sys/types.h>
11528 #ifdef HAVE_SYS_PARAM_H
11529 #include <sys/param.h>
11530 #endif
11531 #ifdef HAVE_SYS_MOUNT_H
11532 #include <sys/mount.h>
11533 #endif
11534 #ifdef HAVE_SYS_FS_TYPES_H
11535 #include <sys/fs_types.h>
11536 #endif
11537 main ()
11539 struct fs_data fsd;
11540 /* Ultrix's statfs returns 1 for success,
11541 0 for not mounted, -1 for failure. */
11542 exit (statfs (".", &fsd) != 1);
11545 if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11546 then
11547 fu_cv_sys_stat_fs_data=yes
11548 else
11549 echo "configure: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11551 rm -fr conftest*
11552 fu_cv_sys_stat_fs_data=no
11554 rm -fr conftest*
11559 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11560 if test $fu_cv_sys_stat_fs_data = yes; then
11561 space=yes
11562 cat >> confdefs.h <<\EOF
11563 #define STAT_STATFS2_FS_DATA 1
11570 # As a gating factor for large file support, in order to
11571 # use <4GB files we must have the following minimal support
11572 # available.
11573 # long long, and a 64 bit off_t or off64_t.
11574 # If we don't have all of these then disable large
11575 # file support.
11577 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
11578 echo "configure:11579: checking checking if large file support can be enabled" >&5
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11583 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11584 #include <sys/types.h>
11585 #else
11586 __COMPILE_ERROR_
11587 #endif
11589 int main() {
11590 int i
11591 ; return 0; }
11593 if { (eval echo configure:11594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11594 rm -rf conftest*
11595 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
11596 else
11597 echo "configure: failed program was:" >&5
11598 cat conftest.$ac_ext >&5
11599 rm -rf conftest*
11600 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
11602 rm -f conftest*
11603 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
11604 echo "yes"
11605 cat >> confdefs.h <<\EOF
11606 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11609 else
11610 echo "no"
11613 # Check whether --with-spinlocks or --without-spinlocks was given.
11614 if test "${with_spinlocks+set}" = set; then
11615 withval="$with_spinlocks"
11619 if test "x$with_spinlocks" = "xyes"; then
11620 cat >> confdefs.h <<\EOF
11621 #define USE_SPINLOCKS 1
11625 case "$host_cpu" in
11626 sparc)
11627 cat >> confdefs.h <<\EOF
11628 #define SPARC_SPINLOCKS 1
11633 i386|i486|i586|i686)
11634 cat >> confdefs.h <<\EOF
11635 #define INTEL_SPINLOCKS 1
11640 mips)
11641 cat >> confdefs.h <<\EOF
11642 #define MIPS_SPINLOCKS 1
11647 powerpc)
11648 cat >> confdefs.h <<\EOF
11649 #define POWERPC_SPINLOCKS 1
11653 esac
11656 #################################################
11657 # check for ACL support
11659 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
11660 echo "configure:11661: checking whether to support ACLs" >&5
11661 # Check whether --with-acl-support or --without-acl-support was given.
11662 if test "${with_acl_support+set}" = set; then
11663 withval="$with_acl_support"
11664 case "$withval" in
11665 yes)
11667 case "$host_os" in
11668 *unixware*)
11669 echo "$ac_t""Using SVR4 ACLs" 1>&6
11670 cat >> confdefs.h <<\EOF
11671 #define HAVE_UNIXWARE_ACLS 1
11675 *solaris*)
11676 echo "$ac_t""Using solaris ACLs" 1>&6
11677 cat >> confdefs.h <<\EOF
11678 #define HAVE_SOLARIS_ACLS 1
11683 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
11684 echo "configure:11685: checking for acl_get_file in -lacl" >&5
11685 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
11686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11687 echo $ac_n "(cached) $ac_c" 1>&6
11688 else
11689 ac_save_LIBS="$LIBS"
11690 LIBS="-lacl $LIBS"
11691 cat > conftest.$ac_ext <<EOF
11692 #line 11693 "configure"
11693 #include "confdefs.h"
11694 /* Override any gcc2 internal prototype to avoid an error. */
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11697 char acl_get_file();
11699 int main() {
11700 acl_get_file()
11701 ; return 0; }
11703 if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11704 rm -rf conftest*
11705 eval "ac_cv_lib_$ac_lib_var=yes"
11706 else
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11709 rm -rf conftest*
11710 eval "ac_cv_lib_$ac_lib_var=no"
11712 rm -f conftest*
11713 LIBS="$ac_save_LIBS"
11716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11717 echo "$ac_t""yes" 1>&6
11718 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11719 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11720 cat >> confdefs.h <<EOF
11721 #define $ac_tr_lib 1
11724 LIBS="-lacl $LIBS"
11726 else
11727 echo "$ac_t""no" 1>&6
11730 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
11731 echo "configure:11732: checking for ACL support" >&5
11732 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
11733 echo $ac_n "(cached) $ac_c" 1>&6
11734 else
11736 cat > conftest.$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11739 #include <sys/types.h>
11740 #include <sys/acl.h>
11741 int main() {
11742 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
11743 ; return 0; }
11745 if { (eval echo configure:11746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11746 rm -rf conftest*
11747 samba_cv_HAVE_POSIX_ACLS=yes
11748 else
11749 echo "configure: failed program was:" >&5
11750 cat conftest.$ac_ext >&5
11751 rm -rf conftest*
11752 samba_cv_HAVE_POSIX_ACLS=no
11754 rm -f conftest*
11757 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
11758 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
11759 echo "$ac_t""Using posix ACLs" 1>&6
11760 cat >> confdefs.h <<\EOF
11761 #define HAVE_POSIX_ACLS 1
11766 esac
11769 echo "$ac_t""no" 1>&6
11770 cat >> confdefs.h <<\EOF
11771 #define HAVE_NO_ACLS 1
11775 esac
11776 else
11777 cat >> confdefs.h <<\EOF
11778 #define HAVE_NO_ACLS 1
11781 echo "$ac_t""no" 1>&6
11786 #################################################
11787 # check for the historical SAMBA installation
11789 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
11790 # Put all binaries under the /usr/local/samba/bin directory.
11791 sbindir="$bindir"
11794 echo "checking configure summary"
11795 if test "$cross_compiling" = yes; then
11797 else
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 #include "${srcdir-.}/tests/summary.c"
11803 if { (eval echo configure:11804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11804 then
11805 echo "configure OK";
11806 else
11807 echo "configure: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 rm -fr conftest*
11810 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11812 rm -fr conftest*
11816 builddir=`pwd`
11819 trap '' 1 2 15
11820 cat > confcache <<\EOF
11821 # This file is a shell script that caches the results of configure
11822 # tests run on this system so they can be shared between configure
11823 # scripts and configure runs. It is not useful on other systems.
11824 # If it contains results you don't want to keep, you may remove or edit it.
11826 # By default, configure uses ./config.cache as the cache file,
11827 # creating it if it does not exist already. You can give configure
11828 # the --cache-file=FILE option to use a different cache file; that is
11829 # what configure does when it calls configure scripts in
11830 # subdirectories, so they share the cache.
11831 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11832 # config.status only pays attention to the cache file if you give it the
11833 # --recheck option to rerun configure.
11836 # The following way of writing the cache mishandles newlines in values,
11837 # but we know of no workaround that is simple, portable, and efficient.
11838 # So, don't put newlines in cache variables' values.
11839 # Ultrix sh set writes to stderr and can't be redirected directly,
11840 # and sets the high bit in the cache file unless we assign to the vars.
11841 (set) 2>&1 |
11842 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11843 *ac_space=\ *)
11844 # `set' does not quote correctly, so add quotes (double-quote substitution
11845 # turns \\\\ into \\, and sed turns \\ into \).
11846 sed -n \
11847 -e "s/'/'\\\\''/g" \
11848 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11851 # `set' quotes correctly as required by POSIX, so do not add quotes.
11852 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11854 esac >> confcache
11855 if cmp -s $cache_file confcache; then
11857 else
11858 if test -w $cache_file; then
11859 echo "updating cache $cache_file"
11860 cat confcache > $cache_file
11861 else
11862 echo "not updating unwritable cache $cache_file"
11865 rm -f confcache
11867 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11870 # Let make expand exec_prefix.
11871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11873 # Any assignment to VPATH causes Sun make to only execute
11874 # the first set of double-colon rules, so remove it if not needed.
11875 # If there is a colon in the path, we need to keep it.
11876 if test "x$srcdir" = x.; then
11877 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11880 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11882 DEFS=-DHAVE_CONFIG_H
11884 # Without the "./", some shells look in PATH for config.status.
11885 : ${CONFIG_STATUS=./config.status}
11887 echo creating $CONFIG_STATUS
11888 rm -f $CONFIG_STATUS
11889 cat > $CONFIG_STATUS <<EOF
11890 #! /bin/sh
11891 # Generated automatically by configure.
11892 # Run this file to recreate the current configuration.
11893 # This directory was configured as follows,
11894 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11896 # $0 $ac_configure_args
11898 # Compiler output produced by configure, useful for debugging
11899 # configure, is in ./config.log if it exists.
11901 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11902 for ac_option
11904 case "\$ac_option" in
11905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11906 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11907 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11908 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11909 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11910 exit 0 ;;
11911 -help | --help | --hel | --he | --h)
11912 echo "\$ac_cs_usage"; exit 0 ;;
11913 *) echo "\$ac_cs_usage"; exit 1 ;;
11914 esac
11915 done
11917 ac_given_srcdir=$srcdir
11918 ac_given_INSTALL="$INSTALL"
11920 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11922 cat >> $CONFIG_STATUS <<EOF
11924 # Protect against being on the right side of a sed subst in config.status.
11925 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11926 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11927 $ac_vpsub
11928 $extrasub
11929 s%@SHELL@%$SHELL%g
11930 s%@CFLAGS@%$CFLAGS%g
11931 s%@CPPFLAGS@%$CPPFLAGS%g
11932 s%@CXXFLAGS@%$CXXFLAGS%g
11933 s%@FFLAGS@%$FFLAGS%g
11934 s%@DEFS@%$DEFS%g
11935 s%@LDFLAGS@%$LDFLAGS%g
11936 s%@LIBS@%$LIBS%g
11937 s%@exec_prefix@%$exec_prefix%g
11938 s%@prefix@%$prefix%g
11939 s%@program_transform_name@%$program_transform_name%g
11940 s%@bindir@%$bindir%g
11941 s%@sbindir@%$sbindir%g
11942 s%@libexecdir@%$libexecdir%g
11943 s%@datadir@%$datadir%g
11944 s%@sysconfdir@%$sysconfdir%g
11945 s%@sharedstatedir@%$sharedstatedir%g
11946 s%@localstatedir@%$localstatedir%g
11947 s%@libdir@%$libdir%g
11948 s%@includedir@%$includedir%g
11949 s%@oldincludedir@%$oldincludedir%g
11950 s%@infodir@%$infodir%g
11951 s%@mandir@%$mandir%g
11952 s%@codepagedir@%$codepagedir%g
11953 s%@configdir@%$configdir%g
11954 s%@lockdir@%$lockdir%g
11955 s%@logfilebase@%$logfilebase%g
11956 s%@privatedir@%$privatedir%g
11957 s%@swatdir@%$swatdir%g
11958 s%@RUNPROG@%$RUNPROG%g
11959 s%@MPROGS@%$MPROGS%g
11960 s%@LDSHFLAGS@%$LDSHFLAGS%g
11961 s%@HOST_OS@%$HOST_OS%g
11962 s%@WRAP@%$WRAP%g
11963 s%@WRAP32@%$WRAP32%g
11964 s%@PICFLAG@%$PICFLAG%g
11965 s%@SHLIBEXT@%$SHLIBEXT%g
11966 s%@CC@%$CC%g
11967 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11968 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11969 s%@INSTALL_DATA@%$INSTALL_DATA%g
11970 s%@AWK@%$AWK%g
11971 s%@host@%$host%g
11972 s%@host_alias@%$host_alias%g
11973 s%@host_cpu@%$host_cpu%g
11974 s%@host_vendor@%$host_vendor%g
11975 s%@host_os@%$host_os%g
11976 s%@build@%$build%g
11977 s%@build_alias@%$build_alias%g
11978 s%@build_cpu@%$build_cpu%g
11979 s%@build_vendor@%$build_vendor%g
11980 s%@build_os@%$build_os%g
11981 s%@RANLIB@%$RANLIB%g
11982 s%@LN_S@%$LN_S%g
11983 s%@LIBTOOL@%$LIBTOOL%g
11984 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11985 s%@BROKEN_CC@%$BROKEN_CC%g
11986 s%@target@%$target%g
11987 s%@target_alias@%$target_alias%g
11988 s%@target_cpu@%$target_cpu%g
11989 s%@target_vendor@%$target_vendor%g
11990 s%@target_os@%$target_os%g
11991 s%@CPP@%$CPP%g
11992 s%@LIBOBJS@%$LIBOBJS%g
11993 s%@ROFF@%$ROFF%g
11994 s%@QUOTAOBJS@%$QUOTAOBJS%g
11995 s%@builddir@%$builddir%g
11997 CEOF
12000 cat >> $CONFIG_STATUS <<\EOF
12002 # Split the substitutions into bite-sized pieces for seds with
12003 # small command number limits, like on Digital OSF/1 and HP-UX.
12004 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12005 ac_file=1 # Number of current file.
12006 ac_beg=1 # First line for current file.
12007 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12008 ac_more_lines=:
12009 ac_sed_cmds=""
12010 while $ac_more_lines; do
12011 if test $ac_beg -gt 1; then
12012 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12013 else
12014 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12016 if test ! -s conftest.s$ac_file; then
12017 ac_more_lines=false
12018 rm -f conftest.s$ac_file
12019 else
12020 if test -z "$ac_sed_cmds"; then
12021 ac_sed_cmds="sed -f conftest.s$ac_file"
12022 else
12023 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12025 ac_file=`expr $ac_file + 1`
12026 ac_beg=$ac_end
12027 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12029 done
12030 if test -z "$ac_sed_cmds"; then
12031 ac_sed_cmds=cat
12035 cat >> $CONFIG_STATUS <<EOF
12037 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12039 cat >> $CONFIG_STATUS <<\EOF
12040 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12042 case "$ac_file" in
12043 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12044 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12045 *) ac_file_in="${ac_file}.in" ;;
12046 esac
12048 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12050 # Remove last slash and all that follows it. Not all systems have dirname.
12051 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12052 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12053 # The file is in a subdirectory.
12054 test ! -d "$ac_dir" && mkdir "$ac_dir"
12055 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12056 # A "../" for each directory in $ac_dir_suffix.
12057 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12058 else
12059 ac_dir_suffix= ac_dots=
12062 case "$ac_given_srcdir" in
12063 .) srcdir=.
12064 if test -z "$ac_dots"; then top_srcdir=.
12065 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12066 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12067 *) # Relative path.
12068 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12069 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12070 esac
12072 case "$ac_given_INSTALL" in
12073 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12074 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12075 esac
12077 echo creating "$ac_file"
12078 rm -f "$ac_file"
12079 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12080 case "$ac_file" in
12081 *Makefile*) ac_comsub="1i\\
12082 # $configure_input" ;;
12083 *) ac_comsub= ;;
12084 esac
12086 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12087 sed -e "$ac_comsub
12088 s%@configure_input@%$configure_input%g
12089 s%@srcdir@%$srcdir%g
12090 s%@top_srcdir@%$top_srcdir%g
12091 s%@INSTALL@%$INSTALL%g
12092 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12093 fi; done
12094 rm -f conftest.s*
12096 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12097 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12099 # ac_d sets the value in "#define NAME VALUE" lines.
12100 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12101 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12102 ac_dC='\3'
12103 ac_dD='%g'
12104 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12105 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12106 ac_uB='\([ ]\)%\1#\2define\3'
12107 ac_uC=' '
12108 ac_uD='\4%g'
12109 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12110 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12111 ac_eB='$%\1#\2define\3'
12112 ac_eC=' '
12113 ac_eD='%g'
12115 if test "${CONFIG_HEADERS+set}" != set; then
12117 cat >> $CONFIG_STATUS <<EOF
12118 CONFIG_HEADERS="include/config.h"
12120 cat >> $CONFIG_STATUS <<\EOF
12122 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12123 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12124 case "$ac_file" in
12125 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12126 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12127 *) ac_file_in="${ac_file}.in" ;;
12128 esac
12130 echo creating $ac_file
12132 rm -f conftest.frag conftest.in conftest.out
12133 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12134 cat $ac_file_inputs > conftest.in
12138 # Transform confdefs.h into a sed script conftest.vals that substitutes
12139 # the proper values into config.h.in to produce config.h. And first:
12140 # Protect against being on the right side of a sed subst in config.status.
12141 # Protect against being in an unquoted here document in config.status.
12142 rm -f conftest.vals
12143 cat > conftest.hdr <<\EOF
12144 s/[\\&%]/\\&/g
12145 s%[\\$`]%\\&%g
12146 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12147 s%ac_d%ac_u%gp
12148 s%ac_u%ac_e%gp
12150 sed -n -f conftest.hdr confdefs.h > conftest.vals
12151 rm -f conftest.hdr
12153 # This sed command replaces #undef with comments. This is necessary, for
12154 # example, in the case of _POSIX_SOURCE, which is predefined and required
12155 # on some systems where configure will not decide to define it.
12156 cat >> conftest.vals <<\EOF
12157 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12160 # Break up conftest.vals because some shells have a limit on
12161 # the size of here documents, and old seds have small limits too.
12163 rm -f conftest.tail
12164 while :
12166 ac_lines=`grep -c . conftest.vals`
12167 # grep -c gives empty output for an empty file on some AIX systems.
12168 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12169 # Write a limited-size here document to conftest.frag.
12170 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12171 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12172 echo 'CEOF
12173 sed -f conftest.frag conftest.in > conftest.out
12174 rm -f conftest.in
12175 mv conftest.out conftest.in
12176 ' >> $CONFIG_STATUS
12177 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12178 rm -f conftest.vals
12179 mv conftest.tail conftest.vals
12180 done
12181 rm -f conftest.vals
12183 cat >> $CONFIG_STATUS <<\EOF
12184 rm -f conftest.frag conftest.h
12185 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12186 cat conftest.in >> conftest.h
12187 rm -f conftest.in
12188 if cmp -s $ac_file conftest.h 2>/dev/null; then
12189 echo "$ac_file is unchanged"
12190 rm -f conftest.h
12191 else
12192 # Remove last slash and all that follows it. Not all systems have dirname.
12193 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12194 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12195 # The file is in a subdirectory.
12196 test ! -d "$ac_dir" && mkdir "$ac_dir"
12198 rm -f $ac_file
12199 mv conftest.h $ac_file
12201 fi; done
12204 cat >> $CONFIG_STATUS <<EOF
12207 cat >> $CONFIG_STATUS <<\EOF
12209 exit 0
12211 chmod +x $CONFIG_STATUS
12212 rm -fr confdefs* $ac_clean_files
12213 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1