filled in 'change share command' parameter in smb.conf. Also regenerated
[Samba.git] / source / configure
blobcc46ed49c5b6bf8ed2bf4632cae5d9cb547db735
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --with-fhs use FHS-compliant paths [default=no]"
17 ac_help="$ac_help
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
21 ac_help="$ac_help
22 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
23 ac_help="$ac_help
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
25 ac_help="$ac_help
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
27 ac_help="$ac_help
28 --enable-debug turn on debugging [default=no]"
29 ac_help="$ac_help
30 --enable-shared[=PKGS] build shared libraries [default=yes]"
31 ac_help="$ac_help
32 --enable-static[=PKGS] build static libraries [default=yes]"
33 ac_help="$ac_help
34 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
35 ac_help="$ac_help
36 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
37 ac_help="$ac_help
38 --disable-libtool-lock avoid locking (might break parallel builds)"
39 ac_help="$ac_help
40 --with-readline[=DIR] Look for readline include/libs in DIR
41 --without-readline Don't include readline support"
42 ac_help="$ac_help
43 --with-smbwrapper Include SMB wrapper support
44 --without-smbwrapper Don't include SMB wrapper support (default)"
45 ac_help="$ac_help
46 --with-afs Include AFS support
47 --without-afs Don't include AFS support (default)"
48 ac_help="$ac_help
49 --with-dfs Include DFS support
50 --without-dfs Don't include DFS support (default)"
51 ac_help="$ac_help
52 --with-krb4=base-dir Include Kerberos IV support
53 --without-krb4 Don't include Kerberos IV support (default)"
54 ac_help="$ac_help
55 --with-krb5=base-dir Include Kerberos 5 support
56 --without-krb5 Don't include Kerberos 5 support (default)"
57 ac_help="$ac_help
58 --with-automount Include AUTOMOUNT support
59 --without-automount Don't include AUTOMOUNT support (default)"
60 ac_help="$ac_help
61 --with-smbmount Include SMBMOUNT (Linux only) support
62 --without-smbmount Don't include SMBMOUNT support (default)"
63 ac_help="$ac_help
64 --with-pam Include PAM password database support
65 --without-pam Don't include PAM password database support (default)"
66 ac_help="$ac_help
67 --with-pam_smbpass Include the smbpass PAM module
68 --without-pam_smbpass Don't include the smbpass PAM module (default)"
69 ac_help="$ac_help
70 --with-nisplus Include NISPLUS password database support
71 --without-nisplus Don't include NISPLUS password database support (default)"
72 ac_help="$ac_help
73 --with-nisplus-home Include NISPLUS_HOME support
74 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
75 ac_help="$ac_help
76 --with-ssl Include SSL support
77 --without-ssl Don't include SSL support (default)
78 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
79 ac_help="$ac_help
80 --with-syslog Include experimental SYSLOG support
81 --without-syslog Don't include SYSLOG support (default)"
82 ac_help="$ac_help
83 --with-profile Include profile support
84 --without-profile Don't include profile support (default)"
85 ac_help="$ac_help
86 --with-netatalk Include experimental Netatalk support
87 --without-netatalk Don't include experimental Netatalk support (default)"
88 ac_help="$ac_help
89 --with-quotas Include experimental disk-quota support
90 --without-quotas Don't include experimental disk-quota support (default)"
91 ac_help="$ac_help
92 --with-utmp Include experimental utmp accounting
93 --without-utmp Don't include experimental utmp accounting (default)"
94 ac_help="$ac_help
95 --with-msdfs Include MS Dfs support
96 --without-msdfs Don't include MS Dfs support (default)"
97 ac_help="$ac_help
98 --with-vfs Include Samba vfs support
99 --without-vfs Don't include Samba vfs support (default)"
100 ac_help="$ac_help
101 --with-spinlocks use spin locks instead of fcntl locks "
102 ac_help="$ac_help
103 --with-acl-support Include ACL support
104 --without-acl-support Don't include ACL support (default)"
106 # Initialize some variables set by options.
107 # The variables have the same names as the options, with
108 # dashes changed to underlines.
109 build=NONE
110 cache_file=./config.cache
111 exec_prefix=NONE
112 host=NONE
113 no_create=
114 nonopt=NONE
115 no_recursion=
116 prefix=NONE
117 program_prefix=NONE
118 program_suffix=NONE
119 program_transform_name=s,x,x,
120 silent=
121 site=
122 srcdir=
123 target=NONE
124 verbose=
125 x_includes=NONE
126 x_libraries=NONE
127 bindir='${exec_prefix}/bin'
128 sbindir='${exec_prefix}/sbin'
129 libexecdir='${exec_prefix}/libexec'
130 datadir='${prefix}/share'
131 sysconfdir='${prefix}/etc'
132 sharedstatedir='${prefix}/com'
133 localstatedir='${prefix}/var'
134 libdir='${exec_prefix}/lib'
135 includedir='${prefix}/include'
136 oldincludedir='/usr/include'
137 infodir='${prefix}/info'
138 mandir='${prefix}/man'
140 # Initialize some other variables.
141 subdirs=
142 MFLAGS= MAKEFLAGS=
143 SHELL=${CONFIG_SHELL-/bin/sh}
144 # Maximum number of lines to put in a shell here document.
145 ac_max_here_lines=12
147 ac_prev=
148 for ac_option
151 # If the previous option needs an argument, assign it.
152 if test -n "$ac_prev"; then
153 eval "$ac_prev=\$ac_option"
154 ac_prev=
155 continue
158 case "$ac_option" in
159 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
160 *) ac_optarg= ;;
161 esac
163 # Accept the important Cygnus configure options, so we can diagnose typos.
165 case "$ac_option" in
167 -bindir | --bindir | --bindi | --bind | --bin | --bi)
168 ac_prev=bindir ;;
169 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
170 bindir="$ac_optarg" ;;
172 -build | --build | --buil | --bui | --bu)
173 ac_prev=build ;;
174 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
175 build="$ac_optarg" ;;
177 -cache-file | --cache-file | --cache-fil | --cache-fi \
178 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
179 ac_prev=cache_file ;;
180 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
181 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
182 cache_file="$ac_optarg" ;;
184 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
185 ac_prev=datadir ;;
186 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
187 | --da=*)
188 datadir="$ac_optarg" ;;
190 -disable-* | --disable-*)
191 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
192 # Reject names that are not valid shell variable names.
193 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
194 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
196 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
197 eval "enable_${ac_feature}=no" ;;
199 -enable-* | --enable-*)
200 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
201 # Reject names that are not valid shell variable names.
202 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
203 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
205 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 case "$ac_option" in
207 *=*) ;;
208 *) ac_optarg=yes ;;
209 esac
210 eval "enable_${ac_feature}='$ac_optarg'" ;;
212 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
213 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
214 | --exec | --exe | --ex)
215 ac_prev=exec_prefix ;;
216 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
217 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
218 | --exec=* | --exe=* | --ex=*)
219 exec_prefix="$ac_optarg" ;;
221 -gas | --gas | --ga | --g)
222 # Obsolete; use --with-gas.
223 with_gas=yes ;;
225 -help | --help | --hel | --he)
226 # Omit some internal or obsolete options to make the list less imposing.
227 # This message is too long to be a string in the A/UX 3.1 sh.
228 cat << EOF
229 Usage: configure [options] [host]
230 Options: [defaults in brackets after descriptions]
231 Configuration:
232 --cache-file=FILE cache test results in FILE
233 --help print this message
234 --no-create do not create output files
235 --quiet, --silent do not print \`checking...' messages
236 --version print the version of autoconf that created configure
237 Directory and file names:
238 --prefix=PREFIX install architecture-independent files in PREFIX
239 [$ac_default_prefix]
240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
241 [same as prefix]
242 --bindir=DIR user executables in DIR [EPREFIX/bin]
243 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
244 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
245 --datadir=DIR read-only architecture-independent data in DIR
246 [PREFIX/share]
247 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
248 --sharedstatedir=DIR modifiable architecture-independent data in DIR
249 [PREFIX/com]
250 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
251 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
252 --includedir=DIR C header files in DIR [PREFIX/include]
253 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
254 --infodir=DIR info documentation in DIR [PREFIX/info]
255 --mandir=DIR man documentation in DIR [PREFIX/man]
256 --srcdir=DIR find the sources in DIR [configure dir or ..]
257 --program-prefix=PREFIX prepend PREFIX to installed program names
258 --program-suffix=SUFFIX append SUFFIX to installed program names
259 --program-transform-name=PROGRAM
260 run sed PROGRAM on installed program names
262 cat << EOF
263 Host type:
264 --build=BUILD configure for building on BUILD [BUILD=HOST]
265 --host=HOST configure for HOST [guessed]
266 --target=TARGET configure for TARGET [TARGET=HOST]
267 Features and packages:
268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
270 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
271 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
272 --x-includes=DIR X include files are in DIR
273 --x-libraries=DIR X library files are in DIR
275 if test -n "$ac_help"; then
276 echo "--enable and --with options recognized:$ac_help"
278 exit 0 ;;
280 -host | --host | --hos | --ho)
281 ac_prev=host ;;
282 -host=* | --host=* | --hos=* | --ho=*)
283 host="$ac_optarg" ;;
285 -includedir | --includedir | --includedi | --included | --include \
286 | --includ | --inclu | --incl | --inc)
287 ac_prev=includedir ;;
288 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
289 | --includ=* | --inclu=* | --incl=* | --inc=*)
290 includedir="$ac_optarg" ;;
292 -infodir | --infodir | --infodi | --infod | --info | --inf)
293 ac_prev=infodir ;;
294 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
295 infodir="$ac_optarg" ;;
297 -libdir | --libdir | --libdi | --libd)
298 ac_prev=libdir ;;
299 -libdir=* | --libdir=* | --libdi=* | --libd=*)
300 libdir="$ac_optarg" ;;
302 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
303 | --libexe | --libex | --libe)
304 ac_prev=libexecdir ;;
305 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
306 | --libexe=* | --libex=* | --libe=*)
307 libexecdir="$ac_optarg" ;;
309 -localstatedir | --localstatedir | --localstatedi | --localstated \
310 | --localstate | --localstat | --localsta | --localst \
311 | --locals | --local | --loca | --loc | --lo)
312 ac_prev=localstatedir ;;
313 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
314 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
315 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
316 localstatedir="$ac_optarg" ;;
318 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
319 ac_prev=mandir ;;
320 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
321 mandir="$ac_optarg" ;;
323 -nfp | --nfp | --nf)
324 # Obsolete; use --without-fp.
325 with_fp=no ;;
327 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
328 | --no-cr | --no-c)
329 no_create=yes ;;
331 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
332 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
333 no_recursion=yes ;;
335 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
336 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
337 | --oldin | --oldi | --old | --ol | --o)
338 ac_prev=oldincludedir ;;
339 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
340 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
341 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
342 oldincludedir="$ac_optarg" ;;
344 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
345 ac_prev=prefix ;;
346 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
347 prefix="$ac_optarg" ;;
349 -program-prefix | --program-prefix | --program-prefi | --program-pref \
350 | --program-pre | --program-pr | --program-p)
351 ac_prev=program_prefix ;;
352 -program-prefix=* | --program-prefix=* | --program-prefi=* \
353 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
354 program_prefix="$ac_optarg" ;;
356 -program-suffix | --program-suffix | --program-suffi | --program-suff \
357 | --program-suf | --program-su | --program-s)
358 ac_prev=program_suffix ;;
359 -program-suffix=* | --program-suffix=* | --program-suffi=* \
360 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
361 program_suffix="$ac_optarg" ;;
363 -program-transform-name | --program-transform-name \
364 | --program-transform-nam | --program-transform-na \
365 | --program-transform-n | --program-transform- \
366 | --program-transform | --program-transfor \
367 | --program-transfo | --program-transf \
368 | --program-trans | --program-tran \
369 | --progr-tra | --program-tr | --program-t)
370 ac_prev=program_transform_name ;;
371 -program-transform-name=* | --program-transform-name=* \
372 | --program-transform-nam=* | --program-transform-na=* \
373 | --program-transform-n=* | --program-transform-=* \
374 | --program-transform=* | --program-transfor=* \
375 | --program-transfo=* | --program-transf=* \
376 | --program-trans=* | --program-tran=* \
377 | --progr-tra=* | --program-tr=* | --program-t=*)
378 program_transform_name="$ac_optarg" ;;
380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
381 | -silent | --silent | --silen | --sile | --sil)
382 silent=yes ;;
384 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
385 ac_prev=sbindir ;;
386 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
387 | --sbi=* | --sb=*)
388 sbindir="$ac_optarg" ;;
390 -sharedstatedir | --sharedstatedir | --sharedstatedi \
391 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
392 | --sharedst | --shareds | --shared | --share | --shar \
393 | --sha | --sh)
394 ac_prev=sharedstatedir ;;
395 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
396 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
397 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
398 | --sha=* | --sh=*)
399 sharedstatedir="$ac_optarg" ;;
401 -site | --site | --sit)
402 ac_prev=site ;;
403 -site=* | --site=* | --sit=*)
404 site="$ac_optarg" ;;
406 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
407 ac_prev=srcdir ;;
408 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
409 srcdir="$ac_optarg" ;;
411 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
412 | --syscon | --sysco | --sysc | --sys | --sy)
413 ac_prev=sysconfdir ;;
414 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
415 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
416 sysconfdir="$ac_optarg" ;;
418 -target | --target | --targe | --targ | --tar | --ta | --t)
419 ac_prev=target ;;
420 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
421 target="$ac_optarg" ;;
423 -v | -verbose | --verbose | --verbos | --verbo | --verb)
424 verbose=yes ;;
426 -version | --version | --versio | --versi | --vers)
427 echo "configure generated by autoconf version 2.13"
428 exit 0 ;;
430 -with-* | --with-*)
431 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
432 # Reject names that are not valid shell variable names.
433 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
434 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
436 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 case "$ac_option" in
438 *=*) ;;
439 *) ac_optarg=yes ;;
440 esac
441 eval "with_${ac_package}='$ac_optarg'" ;;
443 -without-* | --without-*)
444 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
445 # Reject names that are not valid shell variable names.
446 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
447 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
449 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 eval "with_${ac_package}=no" ;;
452 --x)
453 # Obsolete; use --with-x.
454 with_x=yes ;;
456 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
457 | --x-incl | --x-inc | --x-in | --x-i)
458 ac_prev=x_includes ;;
459 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
460 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
461 x_includes="$ac_optarg" ;;
463 -x-libraries | --x-libraries | --x-librarie | --x-librari \
464 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
465 ac_prev=x_libraries ;;
466 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
467 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
468 x_libraries="$ac_optarg" ;;
470 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
474 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
475 echo "configure: warning: $ac_option: invalid host type" 1>&2
477 if test "x$nonopt" != xNONE; then
478 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 nonopt="$ac_option"
483 esac
484 done
486 if test -n "$ac_prev"; then
487 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
492 # File descriptor usage:
493 # 0 standard input
494 # 1 file creation
495 # 2 errors and warnings
496 # 3 some systems may open it to /dev/tty
497 # 4 used on the Kubota Titan
498 # 6 checking for... messages and results
499 # 5 compiler messages saved in config.log
500 if test "$silent" = yes; then
501 exec 6>/dev/null
502 else
503 exec 6>&1
505 exec 5>./config.log
507 echo "\
508 This file contains any messages produced by compilers while
509 running configure, to aid debugging if configure makes a mistake.
510 " 1>&5
512 # Strip out --no-create and --no-recursion so they do not pile up.
513 # Also quote any args containing shell metacharacters.
514 ac_configure_args=
515 for ac_arg
517 case "$ac_arg" in
518 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
519 | --no-cr | --no-c) ;;
520 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
521 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
522 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
523 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
524 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 esac
526 done
528 # NLS nuisances.
529 # Only set these to C if already set. These must not be set unconditionally
530 # because not all systems understand e.g. LANG=C (notably SCO).
531 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
532 # Non-C LC_CTYPE values break the ctype check.
533 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
534 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
535 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
536 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
539 rm -rf conftest* confdefs.h
540 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
541 echo > confdefs.h
543 # A filename unique to this package, relative to the directory that
544 # configure is in, which we can look for to find out if srcdir is correct.
545 ac_unique_file=include/includes.h
547 # Find the source files, if location was not specified.
548 if test -z "$srcdir"; then
549 ac_srcdir_defaulted=yes
550 # Try the directory containing this script, then its parent.
551 ac_prog=$0
552 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
553 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
554 srcdir=$ac_confdir
555 if test ! -r $srcdir/$ac_unique_file; then
556 srcdir=..
558 else
559 ac_srcdir_defaulted=no
561 if test ! -r $srcdir/$ac_unique_file; then
562 if test "$ac_srcdir_defaulted" = yes; then
563 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
564 else
565 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
568 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
570 # Prefer explicitly selected file to automatically selected ones.
571 if test -z "$CONFIG_SITE"; then
572 if test "x$prefix" != xNONE; then
573 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
574 else
575 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
578 for ac_site_file in $CONFIG_SITE; do
579 if test -r "$ac_site_file"; then
580 echo "loading site script $ac_site_file"
581 . "$ac_site_file"
583 done
585 if test -r "$cache_file"; then
586 echo "loading cache $cache_file"
587 . $cache_file
588 else
589 echo "creating cache $cache_file"
590 > $cache_file
593 ac_ext=c
594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
595 ac_cpp='$CPP $CPPFLAGS'
596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
598 cross_compiling=$ac_cv_prog_cc_cross
600 ac_exeext=
601 ac_objext=o
602 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
603 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
604 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
605 ac_n= ac_c='
606 ' ac_t=' '
607 else
608 ac_n=-n ac_c= ac_t=
610 else
611 ac_n= ac_c='\c' ac_t=
617 #################################################
618 # Directory handling stuff to support both the
619 # legacy SAMBA directories and FHS compliant
620 # ones...
623 # Check whether --with-fhs or --without-fhs was given.
624 if test "${with_fhs+set}" = set; then
625 withval="$with_fhs"
626 codepagedir="\$(DATADIR)/samba/codepages"
627 configdir="${sysconfdir}/samba"
628 lockdir="\${VARDIR}/lock/samba"
629 logfilebase="\${VARDIR}/log/samba"
630 privatedir="\${CONFIGDIR}/private"
631 swatdir="\${DATADIR}/samba/swat"
632 else
633 codepagedir="\$(LIBDIR)/codepages"
634 configdir="\$(LIBDIR)"
635 lockdir="\$(VARDIR)/locks"
636 logfilebase="\$(VARDIR)"
637 privatedir="\${prefix}/private"
638 swatdir="\${prefix}/swat"
642 #################################################
643 # set private directory location
644 # Check whether --with-privatedir or --without-privatedir was given.
645 if test "${with_privatedir+set}" = set; then
646 withval="$with_privatedir"
647 case "$withval" in
648 yes|no)
650 # Just in case anybody calls it without argument
652 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
655 privatedir="$withval"
657 esac
661 #################################################
662 # set lock directory location
663 # Check whether --with-lockdir or --without-lockdir was given.
664 if test "${with_lockdir+set}" = set; then
665 withval="$with_lockdir"
666 case "$withval" in
667 yes|no)
669 # Just in case anybody calls it without argument
671 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
674 lockdir="$withval"
676 esac
680 #################################################
681 # set SWAT directory location
682 # Check whether --with-swatdir or --without-swatdir was given.
683 if test "${with_swatdir+set}" = set; then
684 withval="$with_swatdir"
685 case "$withval" in
686 yes|no)
688 # Just in case anybody does it
690 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
693 swatdir="$withval"
695 esac
699 #################################################
700 # set configuration directory location
701 # Check whether --with-configdir or --without-configdir was given.
702 if test "${with_configdir+set}" = set; then
703 withval="$with_configdir"
704 case "$withval" in
705 yes|no)
707 # Just in case anybody does it
709 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
712 configdir="$withval"
714 esac
718 #################################################
719 # set codepage directory location
720 # Check whether --with-codepagedir or --without-codepagedir was given.
721 if test "${with_codepagedir+set}" = set; then
722 withval="$with_codepagedir"
723 case "$withval" in
724 yes|no)
726 # Just in case anybody does it
728 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
731 codepagedir="$withval"
733 esac
758 # compile with optimization and without debugging by default
759 CFLAGS="-O ${CFLAGS}"
761 # Check whether --enable-debug or --disable-debug was given.
762 if test "${enable_debug+set}" = set; then
763 enableval="$enable_debug"
764 if eval "test x$enable_debug = xyes"; then
765 CFLAGS="${CFLAGS} -g"
772 # Extract the first word of "gcc", so it can be a program name with args.
773 set dummy gcc; ac_word=$2
774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
775 echo "configure:776: checking for $ac_word" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
778 else
779 if test -n "$CC"; then
780 ac_cv_prog_CC="$CC" # Let the user override the test.
781 else
782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
783 ac_dummy="$PATH"
784 for ac_dir in $ac_dummy; do
785 test -z "$ac_dir" && ac_dir=.
786 if test -f $ac_dir/$ac_word; then
787 ac_cv_prog_CC="gcc"
788 break
790 done
791 IFS="$ac_save_ifs"
794 CC="$ac_cv_prog_CC"
795 if test -n "$CC"; then
796 echo "$ac_t""$CC" 1>&6
797 else
798 echo "$ac_t""no" 1>&6
801 if test -z "$CC"; then
802 # Extract the first word of "cc", so it can be a program name with args.
803 set dummy cc; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
808 else
809 if test -n "$CC"; then
810 ac_cv_prog_CC="$CC" # Let the user override the test.
811 else
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
813 ac_prog_rejected=no
814 ac_dummy="$PATH"
815 for ac_dir in $ac_dummy; do
816 test -z "$ac_dir" && ac_dir=.
817 if test -f $ac_dir/$ac_word; then
818 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
819 ac_prog_rejected=yes
820 continue
822 ac_cv_prog_CC="cc"
823 break
825 done
826 IFS="$ac_save_ifs"
827 if test $ac_prog_rejected = yes; then
828 # We found a bogon in the path, so make sure we never use it.
829 set dummy $ac_cv_prog_CC
830 shift
831 if test $# -gt 0; then
832 # We chose a different compiler from the bogus one.
833 # However, it has the same basename, so the bogon will be chosen
834 # first if we set CC to just the basename; use the full file name.
835 shift
836 set dummy "$ac_dir/$ac_word" "$@"
837 shift
838 ac_cv_prog_CC="$@"
843 CC="$ac_cv_prog_CC"
844 if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6
846 else
847 echo "$ac_t""no" 1>&6
850 if test -z "$CC"; then
851 case "`uname -s`" in
852 *win32* | *WIN32*)
853 # Extract the first word of "cl", so it can be a program name with args.
854 set dummy cl; ac_word=$2
855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
856 echo "configure:857: checking for $ac_word" >&5
857 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
859 else
860 if test -n "$CC"; then
861 ac_cv_prog_CC="$CC" # Let the user override the test.
862 else
863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
864 ac_dummy="$PATH"
865 for ac_dir in $ac_dummy; do
866 test -z "$ac_dir" && ac_dir=.
867 if test -f $ac_dir/$ac_word; then
868 ac_cv_prog_CC="cl"
869 break
871 done
872 IFS="$ac_save_ifs"
875 CC="$ac_cv_prog_CC"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
878 else
879 echo "$ac_t""no" 1>&6
882 esac
884 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
887 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
888 echo "configure:889: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
890 ac_ext=c
891 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
892 ac_cpp='$CPP $CPPFLAGS'
893 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
894 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
895 cross_compiling=$ac_cv_prog_cc_cross
897 cat > conftest.$ac_ext << EOF
899 #line 900 "configure"
900 #include "confdefs.h"
902 main(){return(0);}
904 if { (eval echo configure:905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
905 ac_cv_prog_cc_works=yes
906 # If we can't run a trivial program, we are probably using a cross compiler.
907 if (./conftest; exit) 2>/dev/null; then
908 ac_cv_prog_cc_cross=no
909 else
910 ac_cv_prog_cc_cross=yes
912 else
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
915 ac_cv_prog_cc_works=no
917 rm -fr conftest*
918 ac_ext=c
919 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
920 ac_cpp='$CPP $CPPFLAGS'
921 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
922 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
923 cross_compiling=$ac_cv_prog_cc_cross
925 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
926 if test $ac_cv_prog_cc_works = no; then
927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
930 echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
931 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
932 cross_compiling=$ac_cv_prog_cc_cross
934 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
935 echo "configure:936: checking whether we are using GNU C" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
938 else
939 cat > conftest.c <<EOF
940 #ifdef __GNUC__
941 yes;
942 #endif
944 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
945 ac_cv_prog_gcc=yes
946 else
947 ac_cv_prog_gcc=no
951 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
953 if test $ac_cv_prog_gcc = yes; then
954 GCC=yes
955 else
956 GCC=
959 ac_test_CFLAGS="${CFLAGS+set}"
960 ac_save_CFLAGS="$CFLAGS"
961 CFLAGS=
962 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
963 echo "configure:964: checking whether ${CC-cc} accepts -g" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
966 else
967 echo 'void f(){}' > conftest.c
968 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
969 ac_cv_prog_cc_g=yes
970 else
971 ac_cv_prog_cc_g=no
973 rm -f conftest*
977 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
978 if test "$ac_test_CFLAGS" = set; then
979 CFLAGS="$ac_save_CFLAGS"
980 elif test $ac_cv_prog_cc_g = yes; then
981 if test "$GCC" = yes; then
982 CFLAGS="-g -O2"
983 else
984 CFLAGS="-g"
986 else
987 if test "$GCC" = yes; then
988 CFLAGS="-O2"
989 else
990 CFLAGS=
994 ac_aux_dir=
995 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
996 if test -f $ac_dir/install-sh; then
997 ac_aux_dir=$ac_dir
998 ac_install_sh="$ac_aux_dir/install-sh -c"
999 break
1000 elif test -f $ac_dir/install.sh; then
1001 ac_aux_dir=$ac_dir
1002 ac_install_sh="$ac_aux_dir/install.sh -c"
1003 break
1005 done
1006 if test -z "$ac_aux_dir"; then
1007 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1009 ac_config_guess=$ac_aux_dir/config.guess
1010 ac_config_sub=$ac_aux_dir/config.sub
1011 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1013 # Find a good install program. We prefer a C program (faster),
1014 # so one script is as good as another. But avoid the broken or
1015 # incompatible versions:
1016 # SysV /etc/install, /usr/sbin/install
1017 # SunOS /usr/etc/install
1018 # IRIX /sbin/install
1019 # AIX /bin/install
1020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1023 # ./install, which can be erroneously created by make from ./install.sh.
1024 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1025 echo "configure:1026: checking for a BSD compatible install" >&5
1026 if test -z "$INSTALL"; then
1027 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1031 for ac_dir in $PATH; do
1032 # Account for people who put trailing slashes in PATH elements.
1033 case "$ac_dir/" in
1034 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1036 # OSF1 and SCO ODT 3.0 have their own names for install.
1037 # Don't use installbsd from OSF since it installs stuff as root
1038 # by default.
1039 for ac_prog in ginstall scoinst install; do
1040 if test -f $ac_dir/$ac_prog; then
1041 if test $ac_prog = install &&
1042 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1043 # AIX install. It has an incompatible calling convention.
1045 else
1046 ac_cv_path_install="$ac_dir/$ac_prog -c"
1047 break 2
1050 done
1052 esac
1053 done
1054 IFS="$ac_save_IFS"
1057 if test "${ac_cv_path_install+set}" = set; then
1058 INSTALL="$ac_cv_path_install"
1059 else
1060 # As a last resort, use the slow shell script. We don't cache a
1061 # path for INSTALL within a source directory, because that will
1062 # break other packages using the cache if that directory is
1063 # removed, or if the path is relative.
1064 INSTALL="$ac_install_sh"
1067 echo "$ac_t""$INSTALL" 1>&6
1069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1070 # It thinks the first close brace ends the variable substitution.
1071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1077 for ac_prog in gawk mawk nawk awk
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy $ac_prog; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 if test -n "$AWK"; then
1087 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1088 else
1089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 ac_dummy="$PATH"
1091 for ac_dir in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_AWK="$ac_prog"
1095 break
1097 done
1098 IFS="$ac_save_ifs"
1101 AWK="$ac_cv_prog_AWK"
1102 if test -n "$AWK"; then
1103 echo "$ac_t""$AWK" 1>&6
1104 else
1105 echo "$ac_t""no" 1>&6
1108 test -n "$AWK" && break
1109 done
1111 # Check whether --enable-shared or --disable-shared was given.
1112 if test "${enable_shared+set}" = set; then
1113 enableval="$enable_shared"
1114 p=${PACKAGE-default}
1115 case "$enableval" in
1116 yes) enable_shared=yes ;;
1117 no) enable_shared=no ;;
1119 enable_shared=no
1120 # Look at the argument we got. We use all the common list separators.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1122 for pkg in $enableval; do
1123 if test "X$pkg" = "X$p"; then
1124 enable_shared=yes
1126 done
1127 IFS="$ac_save_ifs"
1129 esac
1130 else
1131 enable_shared=yes
1134 # Check whether --enable-static or --disable-static was given.
1135 if test "${enable_static+set}" = set; then
1136 enableval="$enable_static"
1137 p=${PACKAGE-default}
1138 case "$enableval" in
1139 yes) enable_static=yes ;;
1140 no) enable_static=no ;;
1142 enable_static=no
1143 # Look at the argument we got. We use all the common list separators.
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1145 for pkg in $enableval; do
1146 if test "X$pkg" = "X$p"; then
1147 enable_static=yes
1149 done
1150 IFS="$ac_save_ifs"
1152 esac
1153 else
1154 enable_static=yes
1157 # Check whether --enable-fast-install or --disable-fast-install was given.
1158 if test "${enable_fast_install+set}" = set; then
1159 enableval="$enable_fast_install"
1160 p=${PACKAGE-default}
1161 case "$enableval" in
1162 yes) enable_fast_install=yes ;;
1163 no) enable_fast_install=no ;;
1165 enable_fast_install=no
1166 # Look at the argument we got. We use all the common list separators.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1168 for pkg in $enableval; do
1169 if test "X$pkg" = "X$p"; then
1170 enable_fast_install=yes
1172 done
1173 IFS="$ac_save_ifs"
1175 esac
1176 else
1177 enable_fast_install=yes
1181 # Make sure we can run config.sub.
1182 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1183 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1186 echo $ac_n "checking host system type""... $ac_c" 1>&6
1187 echo "configure:1188: checking host system type" >&5
1189 host_alias=$host
1190 case "$host_alias" in
1191 NONE)
1192 case $nonopt in
1193 NONE)
1194 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1195 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1196 fi ;;
1197 *) host_alias=$nonopt ;;
1198 esac ;;
1199 esac
1201 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1202 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1203 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1204 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1205 echo "$ac_t""$host" 1>&6
1207 echo $ac_n "checking build system type""... $ac_c" 1>&6
1208 echo "configure:1209: checking build system type" >&5
1210 build_alias=$build
1211 case "$build_alias" in
1212 NONE)
1213 case $nonopt in
1214 NONE) build_alias=$host_alias ;;
1215 *) build_alias=$nonopt ;;
1216 esac ;;
1217 esac
1219 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1220 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1221 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1222 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1223 echo "$ac_t""$build" 1>&6
1225 # Extract the first word of "ranlib", so it can be a program name with args.
1226 set dummy ranlib; ac_word=$2
1227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1228 echo "configure:1229: checking for $ac_word" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1231 else
1232 if test -n "$RANLIB"; then
1233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1234 else
1235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1236 ac_dummy="$PATH"
1237 for ac_dir in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir=.
1239 if test -f $ac_dir/$ac_word; then
1240 ac_cv_prog_RANLIB="ranlib"
1241 break
1243 done
1244 IFS="$ac_save_ifs"
1245 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1248 RANLIB="$ac_cv_prog_RANLIB"
1249 if test -n "$RANLIB"; then
1250 echo "$ac_t""$RANLIB" 1>&6
1251 else
1252 echo "$ac_t""no" 1>&6
1255 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1256 if test "${with_gnu_ld+set}" = set; then
1257 withval="$with_gnu_ld"
1258 test "$withval" = no || with_gnu_ld=yes
1259 else
1260 with_gnu_ld=no
1263 ac_prog=ld
1264 if test "$ac_cv_prog_gcc" = yes; then
1265 # Check if gcc -print-prog-name=ld gives a path.
1266 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1267 echo "configure:1268: checking for ld used by GCC" >&5
1268 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1269 case "$ac_prog" in
1270 # Accept absolute paths.
1271 [\\/]* | [A-Za-z]:[\\/]*)
1272 re_direlt='/[^/][^/]*/\.\./'
1273 # Canonicalize the path of ld
1274 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1275 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1276 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1277 done
1278 test -z "$LD" && LD="$ac_prog"
1281 # If it fails, then pretend we aren't using GCC.
1282 ac_prog=ld
1285 # If it is relative, then search for the first ld in PATH.
1286 with_gnu_ld=unknown
1288 esac
1289 elif test "$with_gnu_ld" = yes; then
1290 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1291 echo "configure:1292: checking for GNU ld" >&5
1292 else
1293 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1294 echo "configure:1295: checking for non-GNU ld" >&5
1296 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299 if test -z "$LD"; then
1300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1301 for ac_dir in $PATH; do
1302 test -z "$ac_dir" && ac_dir=.
1303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1304 ac_cv_path_LD="$ac_dir/$ac_prog"
1305 # Check to see if the program is GNU ld. I'd rather use --version,
1306 # but apparently some GNU ld's only accept -v.
1307 # Break only if it was the GNU/non-GNU ld that we prefer.
1308 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1309 test "$with_gnu_ld" != no && break
1310 else
1311 test "$with_gnu_ld" != yes && break
1314 done
1315 IFS="$ac_save_ifs"
1316 else
1317 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1321 LD="$ac_cv_path_LD"
1322 if test -n "$LD"; then
1323 echo "$ac_t""$LD" 1>&6
1324 else
1325 echo "$ac_t""no" 1>&6
1327 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1328 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1329 echo "configure:1330: checking if the linker ($LD) is GNU ld" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1334 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1335 ac_cv_prog_gnu_ld=yes
1336 else
1337 ac_cv_prog_gnu_ld=no
1341 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1344 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1345 echo "configure:1346: checking for BSD-compatible nm" >&5
1346 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349 if test -n "$NM"; then
1350 # Let the user override the test.
1351 ac_cv_path_NM="$NM"
1352 else
1353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1354 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1357 # Check to see if the nm accepts a BSD-compat flag.
1358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1359 # nm: unknown option "B" ignored
1360 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1361 ac_cv_path_NM="$ac_dir/nm -B"
1362 break
1363 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1364 ac_cv_path_NM="$ac_dir/nm -p"
1365 break
1366 else
1367 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1368 continue # so that we can try to find one that supports BSD flags
1371 done
1372 IFS="$ac_save_ifs"
1373 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1377 NM="$ac_cv_path_NM"
1378 echo "$ac_t""$NM" 1>&6
1380 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ln -s works" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1384 else
1385 rm -f conftestdata
1386 if ln -s X conftestdata 2>/dev/null
1387 then
1388 rm -f conftestdata
1389 ac_cv_prog_LN_S="ln -s"
1390 else
1391 ac_cv_prog_LN_S=ln
1394 LN_S="$ac_cv_prog_LN_S"
1395 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1396 echo "$ac_t""yes" 1>&6
1397 else
1398 echo "$ac_t""no" 1>&6
1402 case "$target" in
1403 NONE) lt_target="$host" ;;
1404 *) lt_target="$target" ;;
1405 esac
1407 # Check for any special flags to pass to ltconfig.
1408 libtool_flags="--cache-file=$cache_file"
1409 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1410 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1411 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1412 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1413 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1416 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1417 if test "${enable_libtool_lock+set}" = set; then
1418 enableval="$enable_libtool_lock"
1422 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1423 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1425 # Some flags need to be propagated to the compiler or linker for good
1426 # libtool support.
1427 case "$lt_target" in
1428 *-*-irix6*)
1429 # Find out which ABI we are using.
1430 echo '#line 1431 "configure"' > conftest.$ac_ext
1431 if { (eval echo configure:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1432 case "`/usr/bin/file conftest.o`" in
1433 *32-bit*)
1434 LD="${LD-ld} -32"
1436 *N32*)
1437 LD="${LD-ld} -n32"
1439 *64-bit*)
1440 LD="${LD-ld} -64"
1442 esac
1444 rm -rf conftest*
1447 *-*-sco3.2v5*)
1448 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1449 SAVE_CFLAGS="$CFLAGS"
1450 CFLAGS="$CFLAGS -belf"
1451 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1452 echo "configure:1453: checking whether the C compiler needs -belf" >&5
1453 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1460 int main() {
1462 ; return 0; }
1464 if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1465 rm -rf conftest*
1466 lt_cv_cc_needs_belf=yes
1467 else
1468 echo "configure: failed program was:" >&5
1469 cat conftest.$ac_ext >&5
1470 rm -rf conftest*
1471 lt_cv_cc_needs_belf=no
1473 rm -f conftest*
1476 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1477 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1478 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1479 CFLAGS="$SAVE_CFLAGS"
1484 esac
1487 # Save cache, so that ltconfig can load it
1488 cat > confcache <<\EOF
1489 # This file is a shell script that caches the results of configure
1490 # tests run on this system so they can be shared between configure
1491 # scripts and configure runs. It is not useful on other systems.
1492 # If it contains results you don't want to keep, you may remove or edit it.
1494 # By default, configure uses ./config.cache as the cache file,
1495 # creating it if it does not exist already. You can give configure
1496 # the --cache-file=FILE option to use a different cache file; that is
1497 # what configure does when it calls configure scripts in
1498 # subdirectories, so they share the cache.
1499 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1500 # config.status only pays attention to the cache file if you give it the
1501 # --recheck option to rerun configure.
1504 # The following way of writing the cache mishandles newlines in values,
1505 # but we know of no workaround that is simple, portable, and efficient.
1506 # So, don't put newlines in cache variables' values.
1507 # Ultrix sh set writes to stderr and can't be redirected directly,
1508 # and sets the high bit in the cache file unless we assign to the vars.
1509 (set) 2>&1 |
1510 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1511 *ac_space=\ *)
1512 # `set' does not quote correctly, so add quotes (double-quote substitution
1513 # turns \\\\ into \\, and sed turns \\ into \).
1514 sed -n \
1515 -e "s/'/'\\\\''/g" \
1516 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1519 # `set' quotes correctly as required by POSIX, so do not add quotes.
1520 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1522 esac >> confcache
1523 if cmp -s $cache_file confcache; then
1525 else
1526 if test -w $cache_file; then
1527 echo "updating cache $cache_file"
1528 cat confcache > $cache_file
1529 else
1530 echo "not updating unwritable cache $cache_file"
1533 rm -f confcache
1536 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1537 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1538 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1539 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1540 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1541 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1542 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1543 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1545 # Reload cache, that may have been modified by ltconfig
1546 if test -r "$cache_file"; then
1547 echo "loading cache $cache_file"
1548 . $cache_file
1549 else
1550 echo "creating cache $cache_file"
1551 > $cache_file
1555 # This can be used to rebuild libtool when needed
1556 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1558 # Always use our own libtool.
1559 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1561 # Redirect the config.log output again, so that the ltconfig log is not
1562 # clobbered by the next message.
1563 exec 5>>./config.log
1567 if test "x$CC" != xcc; then
1568 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1569 echo "configure:1570: checking whether $CC and cc understand -c and -o together" >&5
1570 else
1571 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1572 echo "configure:1573: checking whether cc understands -c and -o together" >&5
1574 set dummy $CC; ac_cc="`echo $2 |
1575 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1576 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1578 else
1579 echo 'foo(){}' > conftest.c
1580 # Make sure it works both with $CC and with simple cc.
1581 # We do the test twice because some compilers refuse to overwrite an
1582 # existing .o file with -o, though they will create one.
1583 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1584 if { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1585 test -f conftest.o && { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1586 then
1587 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1588 if test "x$CC" != xcc; then
1589 # Test first that cc exists at all.
1590 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1591 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1592 if { (eval echo configure:1593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1593 test -f conftest.o && { (eval echo configure:1594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1594 then
1595 # cc works too.
1597 else
1598 # cc exists but doesn't like -o.
1599 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1603 else
1604 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1606 rm -f conftest*
1609 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1610 echo "$ac_t""yes" 1>&6
1611 else
1612 echo "$ac_t""no" 1>&6
1613 cat >> confdefs.h <<\EOF
1614 #define NO_MINUS_C_MINUS_O 1
1619 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1620 BROKEN_CC=
1621 else
1622 BROKEN_CC=#
1626 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1627 echo "configure:1628: checking that the C compiler understands volatile" >&5
1628 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1630 else
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 #include <sys/types.h>
1636 int main() {
1637 volatile int i = 0
1638 ; return 0; }
1640 if { (eval echo configure:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1641 rm -rf conftest*
1642 samba_cv_volatile=yes
1643 else
1644 echo "configure: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1646 rm -rf conftest*
1647 samba_cv_volatile=no
1649 rm -f conftest*
1652 echo "$ac_t""$samba_cv_volatile" 1>&6
1653 if test x"$samba_cv_volatile" = x"yes"; then
1654 cat >> confdefs.h <<\EOF
1655 #define HAVE_VOLATILE 1
1663 # Do some error checking and defaulting for the host and target type.
1664 # The inputs are:
1665 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1667 # The rules are:
1668 # 1. You are not allowed to specify --host, --target, and nonopt at the
1669 # same time.
1670 # 2. Host defaults to nonopt.
1671 # 3. If nonopt is not specified, then host defaults to the current host,
1672 # as determined by config.guess.
1673 # 4. Target and build default to nonopt.
1674 # 5. If nonopt is not specified, then target and build default to host.
1676 # The aliases save the names the user supplied, while $host etc.
1677 # will get canonicalized.
1678 case $host---$target---$nonopt in
1679 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1680 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1681 esac
1684 # Make sure we can run config.sub.
1685 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1686 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1689 echo $ac_n "checking host system type""... $ac_c" 1>&6
1690 echo "configure:1691: checking host system type" >&5
1692 host_alias=$host
1693 case "$host_alias" in
1694 NONE)
1695 case $nonopt in
1696 NONE)
1697 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1698 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1699 fi ;;
1700 *) host_alias=$nonopt ;;
1701 esac ;;
1702 esac
1704 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1705 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1706 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1707 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1708 echo "$ac_t""$host" 1>&6
1710 echo $ac_n "checking target system type""... $ac_c" 1>&6
1711 echo "configure:1712: checking target system type" >&5
1713 target_alias=$target
1714 case "$target_alias" in
1715 NONE)
1716 case $nonopt in
1717 NONE) target_alias=$host_alias ;;
1718 *) target_alias=$nonopt ;;
1719 esac ;;
1720 esac
1722 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1723 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1724 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1725 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1726 echo "$ac_t""$target" 1>&6
1728 echo $ac_n "checking build system type""... $ac_c" 1>&6
1729 echo "configure:1730: checking build system type" >&5
1731 build_alias=$build
1732 case "$build_alias" in
1733 NONE)
1734 case $nonopt in
1735 NONE) build_alias=$host_alias ;;
1736 *) build_alias=$nonopt ;;
1737 esac ;;
1738 esac
1740 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1741 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744 echo "$ac_t""$build" 1>&6
1746 test "$host_alias" != "$target_alias" &&
1747 test "$program_prefix$program_suffix$program_transform_name" = \
1748 NONENONEs,x,x, &&
1749 program_prefix=${target_alias}-
1752 case "$host_os" in
1753 *irix6*) cat >> confdefs.h <<\EOF
1754 #include <standards.h>
1758 esac
1762 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1763 echo "configure:1764: checking config.cache system type" >&5
1764 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1765 test x"$ac_cv_host_system_type" != x"$host"; } ||
1766 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1767 test x"$ac_cv_build_system_type" != x"$build"; } ||
1768 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1769 test x"$ac_cv_target_system_type" != x"$target"; }; then
1770 echo "$ac_t""different" 1>&6
1771 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1772 else
1773 echo "$ac_t""same" 1>&6
1775 ac_cv_host_system_type="$host"
1776 ac_cv_build_system_type="$build"
1777 ac_cv_target_system_type="$target"
1781 # Config CPPFLAG settings for strange OS's that must be set
1782 # before other tests.
1784 case "$host_os" in
1785 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1786 *hpux*)
1787 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether ${CC-cc} accepts -Ae" >&5
1789 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792 echo 'void f(){}' > conftest.c
1793 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1794 ac_cv_prog_cc_Ae=yes
1795 else
1796 ac_cv_prog_cc_Ae=no
1798 rm -f conftest*
1802 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1803 if test $ac_cv_prog_cc_Ae = yes; then
1804 CPPFLAGS="$CPPFLAGS -Ae"
1807 # Defines needed for HPUX support.
1808 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1809 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1811 case `uname -r` in
1812 *9*|*10*)
1813 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1814 cat >> confdefs.h <<\EOF
1815 #define USE_BOTH_CRYPT_CALLS 1
1819 *11*)
1820 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1821 cat >> confdefs.h <<\EOF
1822 #define USE_BOTH_CRYPT_CALLS 1
1826 esac
1829 # AIX4.x doesn't even admit to having large
1830 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1832 *aix4*)
1833 echo "$ac_t""enabling large file support" 1>&6
1834 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1837 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1838 # to the existance of large files..
1839 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1840 # recommendations on large file support, however it makes the
1841 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1842 # recommendation makes the compile fail on gcc2.7. JRA.
1844 *solaris*)
1845 case `uname -r` in
1846 5.6*|5.7*)
1847 echo "$ac_t""enabling large file support" 1>&6
1848 if test "$ac_cv_prog_gcc" = yes; then
1849 ${CC-cc} -v >conftest.c 2>&1
1850 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1851 rm -fr conftest.c
1852 case "$ac_cv_gcc_compiler_version_number" in
1853 *"gcc version 2.6"*|*"gcc version 2.7"*)
1854 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1857 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1859 esac
1860 else
1861 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1864 esac
1867 # Tests needed for SINIX large file support.
1869 *sysv4*)
1870 if test $host = mips-sni-sysv4 ; then
1871 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1872 echo "configure:1873: checking for LFS support" >&5
1873 old_CPPFLAGS="$CPPFLAGS"
1874 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1875 if test "$cross_compiling" = yes; then
1876 SINIX_LFS_SUPPORT=cross
1877 else
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1882 #include <unistd.h>
1883 main () {
1884 #if _LFS64_LARGEFILE == 1
1885 exit(0);
1886 #else
1887 exit(1);
1888 #endif
1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1892 then
1893 SINIX_LFS_SUPPORT=yes
1894 else
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -fr conftest*
1898 SINIX_LFS_SUPPORT=no
1900 rm -fr conftest*
1903 CPPFLAGS="$old_CPPFLAGS"
1904 if test x$SINIX_LFS_SUPPORT = xyes ; then
1905 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1906 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1907 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1908 LIBS="`getconf LFS64_LIBS` $LIBS"
1910 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1914 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1916 *linux*)
1917 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1918 echo "configure:1919: checking for LFS support" >&5
1919 old_CPPFLAGS="$CPPFLAGS"
1920 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1921 if test "$cross_compiling" = yes; then
1922 LINUX_LFS_SUPPORT=cross
1923 else
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1928 #include <unistd.h>
1929 #include <sys/utsname.h>
1930 main() {
1931 #if _LFS64_LARGEFILE == 1
1932 struct utsname uts;
1933 char *release;
1934 int major, minor;
1936 /* Ensure this is glibc 2.2 or higher */
1937 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1938 int libc_major = __GLIBC__;
1939 int libc_minor = __GLIBC_MINOR__;
1941 if (libc_major < 2)
1942 exit(1);
1943 if (libc_minor < 2)
1944 exit(1);
1945 #endif
1947 /* Ensure this is kernel 2.4 or higher */
1949 uname(&uts);
1950 release = uts.release;
1951 major = atoi(strsep(&release, "."));
1952 minor = atoi(strsep(&release, "."));
1954 if (major > 2 || (major == 2 && minor > 3))
1955 exit(0);
1956 exit(1);
1957 #else
1958 exit(1);
1959 #endif
1963 if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1964 then
1965 LINUX_LFS_SUPPORT=yes
1966 else
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1969 rm -fr conftest*
1970 LINUX_LFS_SUPPORT=no
1972 rm -fr conftest*
1975 CPPFLAGS="$old_CPPFLAGS"
1976 if test x$LINUX_LFS_SUPPORT = xyes ; then
1977 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1979 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1982 *hurd*)
1983 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1984 echo "configure:1985: checking for LFS support" >&5
1985 old_CPPFLAGS="$CPPFLAGS"
1986 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1987 if test "$cross_compiling" = yes; then
1988 GLIBC_LFS_SUPPORT=cross
1989 else
1990 cat > conftest.$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1994 #include <unistd.h>
1995 main () {
1996 #if _LFS64_LARGEFILE == 1
1997 exit(0);
1998 #else
1999 exit(1);
2000 #endif
2003 if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2004 then
2005 GLIBC_LFS_SUPPORT=yes
2006 else
2007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2009 rm -fr conftest*
2010 GLIBC_LFS_SUPPORT=no
2012 rm -fr conftest*
2015 CPPFLAGS="$old_CPPFLAGS"
2016 if test x$GLIBC_LFS_SUPPORT = xyes ; then
2017 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
2019 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
2022 esac
2024 echo $ac_n "checking for inline""... $ac_c" 1>&6
2025 echo "configure:2026: checking for inline" >&5
2026 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2028 else
2029 ac_cv_c_inline=no
2030 for ac_kw in inline __inline__ __inline; do
2031 cat > conftest.$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2035 int main() {
2036 } $ac_kw foo() {
2037 ; return 0; }
2039 if { (eval echo configure:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2040 rm -rf conftest*
2041 ac_cv_c_inline=$ac_kw; break
2042 else
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2046 rm -f conftest*
2047 done
2051 echo "$ac_t""$ac_cv_c_inline" 1>&6
2052 case "$ac_cv_c_inline" in
2053 inline | yes) ;;
2054 no) cat >> confdefs.h <<\EOF
2055 #define inline
2058 *) cat >> confdefs.h <<EOF
2059 #define inline $ac_cv_c_inline
2062 esac
2064 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2065 echo "configure:2066: checking how to run the C preprocessor" >&5
2066 # On Suns, sometimes $CPP names a directory.
2067 if test -n "$CPP" && test -d "$CPP"; then
2068 CPP=
2070 if test -z "$CPP"; then
2071 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2073 else
2074 # This must be in double quotes, not single quotes, because CPP may get
2075 # substituted into the Makefile and "${CC-cc}" will confuse make.
2076 CPP="${CC-cc} -E"
2077 # On the NeXT, cc -E runs the code through the compiler's parser,
2078 # not just through cpp.
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 #include <assert.h>
2083 Syntax Error
2085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2086 { (eval echo configure:2087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2088 if test -z "$ac_err"; then
2090 else
2091 echo "$ac_err" >&5
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2094 rm -rf conftest*
2095 CPP="${CC-cc} -E -traditional-cpp"
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 #include <assert.h>
2100 Syntax Error
2102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2103 { (eval echo configure:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2105 if test -z "$ac_err"; then
2107 else
2108 echo "$ac_err" >&5
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2111 rm -rf conftest*
2112 CPP="${CC-cc} -nologo -E"
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 #include <assert.h>
2117 Syntax Error
2119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2120 { (eval echo configure:2121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2122 if test -z "$ac_err"; then
2124 else
2125 echo "$ac_err" >&5
2126 echo "configure: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2128 rm -rf conftest*
2129 CPP=/lib/cpp
2131 rm -f conftest*
2133 rm -f conftest*
2135 rm -f conftest*
2136 ac_cv_prog_CPP="$CPP"
2138 CPP="$ac_cv_prog_CPP"
2139 else
2140 ac_cv_prog_CPP="$CPP"
2142 echo "$ac_t""$CPP" 1>&6
2144 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2145 echo "configure:2146: checking for ANSI C header files" >&5
2146 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2148 else
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <stdlib.h>
2153 #include <stdarg.h>
2154 #include <string.h>
2155 #include <float.h>
2157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2158 { (eval echo configure:2159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2160 if test -z "$ac_err"; then
2161 rm -rf conftest*
2162 ac_cv_header_stdc=yes
2163 else
2164 echo "$ac_err" >&5
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2167 rm -rf conftest*
2168 ac_cv_header_stdc=no
2170 rm -f conftest*
2172 if test $ac_cv_header_stdc = yes; then
2173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 #include <string.h>
2179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2180 egrep "memchr" >/dev/null 2>&1; then
2182 else
2183 rm -rf conftest*
2184 ac_cv_header_stdc=no
2186 rm -f conftest*
2190 if test $ac_cv_header_stdc = yes; then
2191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 #include <stdlib.h>
2197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2198 egrep "free" >/dev/null 2>&1; then
2200 else
2201 rm -rf conftest*
2202 ac_cv_header_stdc=no
2204 rm -f conftest*
2208 if test $ac_cv_header_stdc = yes; then
2209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2210 if test "$cross_compiling" = yes; then
2212 else
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2216 #include <ctype.h>
2217 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2218 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2220 int main () { int i; for (i = 0; i < 256; i++)
2221 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2222 exit (0); }
2225 if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2226 then
2228 else
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2231 rm -fr conftest*
2232 ac_cv_header_stdc=no
2234 rm -fr conftest*
2240 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2241 if test $ac_cv_header_stdc = yes; then
2242 cat >> confdefs.h <<\EOF
2243 #define STDC_HEADERS 1
2248 ac_header_dirent=no
2249 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2252 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2253 echo "configure:2254: checking for $ac_hdr that defines DIR" >&5
2254 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2256 else
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 #include <sys/types.h>
2261 #include <$ac_hdr>
2262 int main() {
2263 DIR *dirp = 0;
2264 ; return 0; }
2266 if { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2267 rm -rf conftest*
2268 eval "ac_cv_header_dirent_$ac_safe=yes"
2269 else
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2272 rm -rf conftest*
2273 eval "ac_cv_header_dirent_$ac_safe=no"
2275 rm -f conftest*
2277 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2278 echo "$ac_t""yes" 1>&6
2279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2280 cat >> confdefs.h <<EOF
2281 #define $ac_tr_hdr 1
2283 ac_header_dirent=$ac_hdr; break
2284 else
2285 echo "$ac_t""no" 1>&6
2287 done
2288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2289 if test $ac_header_dirent = dirent.h; then
2290 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2291 echo "configure:2292: checking for opendir in -ldir" >&5
2292 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2295 else
2296 ac_save_LIBS="$LIBS"
2297 LIBS="-ldir $LIBS"
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 /* Override any gcc2 internal prototype to avoid an error. */
2302 /* We use char because int might match the return type of a gcc2
2303 builtin and then its argument prototype would still apply. */
2304 char opendir();
2306 int main() {
2307 opendir()
2308 ; return 0; }
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2311 rm -rf conftest*
2312 eval "ac_cv_lib_$ac_lib_var=yes"
2313 else
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 rm -rf conftest*
2317 eval "ac_cv_lib_$ac_lib_var=no"
2319 rm -f conftest*
2320 LIBS="$ac_save_LIBS"
2323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 LIBS="$LIBS -ldir"
2326 else
2327 echo "$ac_t""no" 1>&6
2330 else
2331 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2332 echo "configure:2333: checking for opendir in -lx" >&5
2333 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2336 else
2337 ac_save_LIBS="$LIBS"
2338 LIBS="-lx $LIBS"
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 /* Override any gcc2 internal prototype to avoid an error. */
2343 /* We use char because int might match the return type of a gcc2
2344 builtin and then its argument prototype would still apply. */
2345 char opendir();
2347 int main() {
2348 opendir()
2349 ; return 0; }
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2352 rm -rf conftest*
2353 eval "ac_cv_lib_$ac_lib_var=yes"
2354 else
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 rm -rf conftest*
2358 eval "ac_cv_lib_$ac_lib_var=no"
2360 rm -f conftest*
2361 LIBS="$ac_save_LIBS"
2364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 LIBS="$LIBS -lx"
2367 else
2368 echo "$ac_t""no" 1>&6
2373 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2374 echo "configure:2375: checking whether time.h and sys/time.h may both be included" >&5
2375 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2377 else
2378 cat > conftest.$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 #include <sys/types.h>
2382 #include <sys/time.h>
2383 #include <time.h>
2384 int main() {
2385 struct tm *tp;
2386 ; return 0; }
2388 if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389 rm -rf conftest*
2390 ac_cv_header_time=yes
2391 else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 rm -rf conftest*
2395 ac_cv_header_time=no
2397 rm -f conftest*
2400 echo "$ac_t""$ac_cv_header_time" 1>&6
2401 if test $ac_cv_header_time = yes; then
2402 cat >> confdefs.h <<\EOF
2403 #define TIME_WITH_SYS_TIME 1
2408 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2409 echo "configure:2410: checking for sys/wait.h that is POSIX.1 compatible" >&5
2410 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2412 else
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 #include <sys/types.h>
2417 #include <sys/wait.h>
2418 #ifndef WEXITSTATUS
2419 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2420 #endif
2421 #ifndef WIFEXITED
2422 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2423 #endif
2424 int main() {
2425 int s;
2426 wait (&s);
2427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2428 ; return 0; }
2430 if { (eval echo configure:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2431 rm -rf conftest*
2432 ac_cv_header_sys_wait_h=yes
2433 else
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 rm -rf conftest*
2437 ac_cv_header_sys_wait_h=no
2439 rm -f conftest*
2442 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2443 if test $ac_cv_header_sys_wait_h = yes; then
2444 cat >> confdefs.h <<\EOF
2445 #define HAVE_SYS_WAIT_H 1
2450 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2454 echo "configure:2455: checking for $ac_hdr" >&5
2455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2457 else
2458 cat > conftest.$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2461 #include <$ac_hdr>
2463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2464 { (eval echo configure:2465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2466 if test -z "$ac_err"; then
2467 rm -rf conftest*
2468 eval "ac_cv_header_$ac_safe=yes"
2469 else
2470 echo "$ac_err" >&5
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2473 rm -rf conftest*
2474 eval "ac_cv_header_$ac_safe=no"
2476 rm -f conftest*
2478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2481 cat >> confdefs.h <<EOF
2482 #define $ac_tr_hdr 1
2485 else
2486 echo "$ac_t""no" 1>&6
2488 done
2490 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2494 echo "configure:2495: checking for $ac_hdr" >&5
2495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2497 else
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #include <$ac_hdr>
2503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2504 { (eval echo configure:2505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2506 if test -z "$ac_err"; then
2507 rm -rf conftest*
2508 eval "ac_cv_header_$ac_safe=yes"
2509 else
2510 echo "$ac_err" >&5
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 rm -rf conftest*
2514 eval "ac_cv_header_$ac_safe=no"
2516 rm -f conftest*
2518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2521 cat >> confdefs.h <<EOF
2522 #define $ac_tr_hdr 1
2525 else
2526 echo "$ac_t""no" 1>&6
2528 done
2530 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2534 echo "configure:2535: checking for $ac_hdr" >&5
2535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2537 else
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <$ac_hdr>
2543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2546 if test -z "$ac_err"; then
2547 rm -rf conftest*
2548 eval "ac_cv_header_$ac_safe=yes"
2549 else
2550 echo "$ac_err" >&5
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 rm -rf conftest*
2554 eval "ac_cv_header_$ac_safe=no"
2556 rm -f conftest*
2558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2561 cat >> confdefs.h <<EOF
2562 #define $ac_tr_hdr 1
2565 else
2566 echo "$ac_t""no" 1>&6
2568 done
2570 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_hdr" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577 else
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 #include <$ac_hdr>
2583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2587 rm -rf conftest*
2588 eval "ac_cv_header_$ac_safe=yes"
2589 else
2590 echo "$ac_err" >&5
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 eval "ac_cv_header_$ac_safe=no"
2596 rm -f conftest*
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2601 cat >> confdefs.h <<EOF
2602 #define $ac_tr_hdr 1
2605 else
2606 echo "$ac_t""no" 1>&6
2608 done
2610 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_hdr" >&5
2615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2617 else
2618 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2621 #include <$ac_hdr>
2623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2624 { (eval echo configure:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2626 if test -z "$ac_err"; then
2627 rm -rf conftest*
2628 eval "ac_cv_header_$ac_safe=yes"
2629 else
2630 echo "$ac_err" >&5
2631 echo "configure: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2633 rm -rf conftest*
2634 eval "ac_cv_header_$ac_safe=no"
2636 rm -f conftest*
2638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2639 echo "$ac_t""yes" 1>&6
2640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2641 cat >> confdefs.h <<EOF
2642 #define $ac_tr_hdr 1
2645 else
2646 echo "$ac_t""no" 1>&6
2648 done
2650 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_hdr" >&5
2655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2657 else
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2661 #include <$ac_hdr>
2663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2666 if test -z "$ac_err"; then
2667 rm -rf conftest*
2668 eval "ac_cv_header_$ac_safe=yes"
2669 else
2670 echo "$ac_err" >&5
2671 echo "configure: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2673 rm -rf conftest*
2674 eval "ac_cv_header_$ac_safe=no"
2676 rm -f conftest*
2678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2681 cat >> confdefs.h <<EOF
2682 #define $ac_tr_hdr 1
2685 else
2686 echo "$ac_t""no" 1>&6
2688 done
2690 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_hdr" >&5
2695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2697 else
2698 cat > conftest.$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2701 #include <$ac_hdr>
2703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2704 { (eval echo configure:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2706 if test -z "$ac_err"; then
2707 rm -rf conftest*
2708 eval "ac_cv_header_$ac_safe=yes"
2709 else
2710 echo "$ac_err" >&5
2711 echo "configure: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2713 rm -rf conftest*
2714 eval "ac_cv_header_$ac_safe=no"
2716 rm -f conftest*
2718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2721 cat >> confdefs.h <<EOF
2722 #define $ac_tr_hdr 1
2725 else
2726 echo "$ac_t""no" 1>&6
2728 done
2731 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2732 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2734 case "$host_os" in
2735 *hpux*)
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 #include <shadow.h>
2740 int main() {
2741 struct spwd testme
2742 ; return 0; }
2744 if { (eval echo configure:2745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2745 rm -rf conftest*
2746 ac_cv_header_shadow_h=yes
2747 else
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2750 rm -rf conftest*
2751 ac_cv_header_shadow_h=no
2753 rm -f conftest*
2754 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2755 cat >> confdefs.h <<\EOF
2756 #define HAVE_SHADOW_H 1
2761 esac
2762 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2766 echo "configure:2767: checking for $ac_hdr" >&5
2767 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2769 else
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 #include <$ac_hdr>
2775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2776 { (eval echo configure:2777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2778 if test -z "$ac_err"; then
2779 rm -rf conftest*
2780 eval "ac_cv_header_$ac_safe=yes"
2781 else
2782 echo "$ac_err" >&5
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2785 rm -rf conftest*
2786 eval "ac_cv_header_$ac_safe=no"
2788 rm -f conftest*
2790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2791 echo "$ac_t""yes" 1>&6
2792 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2793 cat >> confdefs.h <<EOF
2794 #define $ac_tr_hdr 1
2797 else
2798 echo "$ac_t""no" 1>&6
2800 done
2802 for ac_hdr in nss.h sys/security.h security/pam_appl.h security/pam_modules.h
2804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2806 echo "configure:2807: checking for $ac_hdr" >&5
2807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2809 else
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813 #include <$ac_hdr>
2815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2816 { (eval echo configure:2817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2818 if test -z "$ac_err"; then
2819 rm -rf conftest*
2820 eval "ac_cv_header_$ac_safe=yes"
2821 else
2822 echo "$ac_err" >&5
2823 echo "configure: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2825 rm -rf conftest*
2826 eval "ac_cv_header_$ac_safe=no"
2828 rm -f conftest*
2830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2831 echo "$ac_t""yes" 1>&6
2832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2833 cat >> confdefs.h <<EOF
2834 #define $ac_tr_hdr 1
2837 else
2838 echo "$ac_t""no" 1>&6
2840 done
2842 for ac_hdr in stropts.h poll.h
2844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_hdr" >&5
2847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2849 else
2850 cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #include <$ac_hdr>
2855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2856 { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2858 if test -z "$ac_err"; then
2859 rm -rf conftest*
2860 eval "ac_cv_header_$ac_safe=yes"
2861 else
2862 echo "$ac_err" >&5
2863 echo "configure: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2865 rm -rf conftest*
2866 eval "ac_cv_header_$ac_safe=no"
2868 rm -f conftest*
2870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2871 echo "$ac_t""yes" 1>&6
2872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2873 cat >> confdefs.h <<EOF
2874 #define $ac_tr_hdr 1
2877 else
2878 echo "$ac_t""no" 1>&6
2880 done
2882 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_hdr" >&5
2887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889 else
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 #include <$ac_hdr>
2895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2896 { (eval echo configure:2897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2898 if test -z "$ac_err"; then
2899 rm -rf conftest*
2900 eval "ac_cv_header_$ac_safe=yes"
2901 else
2902 echo "$ac_err" >&5
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 rm -rf conftest*
2906 eval "ac_cv_header_$ac_safe=no"
2908 rm -f conftest*
2910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2911 echo "$ac_t""yes" 1>&6
2912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2913 cat >> confdefs.h <<EOF
2914 #define $ac_tr_hdr 1
2917 else
2918 echo "$ac_t""no" 1>&6
2920 done
2922 for ac_hdr in sys/acl.h sys/cdefs.h glob.h acl/acl.h
2924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_hdr" >&5
2927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2929 else
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 #include <$ac_hdr>
2935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2936 { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2938 if test -z "$ac_err"; then
2939 rm -rf conftest*
2940 eval "ac_cv_header_$ac_safe=yes"
2941 else
2942 echo "$ac_err" >&5
2943 echo "configure: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2945 rm -rf conftest*
2946 eval "ac_cv_header_$ac_safe=no"
2948 rm -f conftest*
2950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2953 cat >> confdefs.h <<EOF
2954 #define $ac_tr_hdr 1
2957 else
2958 echo "$ac_t""no" 1>&6
2960 done
2963 # For experimental utmp support (lastlog on some BSD-like systems)
2964 for ac_hdr in utmp.h utmpx.h lastlog.h
2966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2968 echo "configure:2969: checking for $ac_hdr" >&5
2969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2971 else
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2975 #include <$ac_hdr>
2977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2978 { (eval echo configure:2979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2980 if test -z "$ac_err"; then
2981 rm -rf conftest*
2982 eval "ac_cv_header_$ac_safe=yes"
2983 else
2984 echo "$ac_err" >&5
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2987 rm -rf conftest*
2988 eval "ac_cv_header_$ac_safe=no"
2990 rm -f conftest*
2992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2995 cat >> confdefs.h <<EOF
2996 #define $ac_tr_hdr 1
2999 else
3000 echo "$ac_t""no" 1>&6
3002 done
3005 # For quotas on Veritas VxFS filesystems
3006 for ac_hdr in sys/fs/vx_quota.h
3008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3010 echo "configure:3011: checking for $ac_hdr" >&5
3011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3013 else
3014 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 #include <$ac_hdr>
3019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3020 { (eval echo configure:3021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3022 if test -z "$ac_err"; then
3023 rm -rf conftest*
3024 eval "ac_cv_header_$ac_safe=yes"
3025 else
3026 echo "$ac_err" >&5
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3029 rm -rf conftest*
3030 eval "ac_cv_header_$ac_safe=no"
3032 rm -f conftest*
3034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3037 cat >> confdefs.h <<EOF
3038 #define $ac_tr_hdr 1
3041 else
3042 echo "$ac_t""no" 1>&6
3044 done
3047 echo $ac_n "checking size of int""... $ac_c" 1>&6
3048 echo "configure:3049: checking size of int" >&5
3049 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3051 else
3052 if test "$cross_compiling" = yes; then
3053 ac_cv_sizeof_int=cross
3054 else
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 #include <stdio.h>
3059 main()
3061 FILE *f=fopen("conftestval", "w");
3062 if (!f) exit(1);
3063 fprintf(f, "%d\n", sizeof(int));
3064 exit(0);
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3068 then
3069 ac_cv_sizeof_int=`cat conftestval`
3070 else
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 rm -fr conftest*
3074 ac_cv_sizeof_int=0
3076 rm -fr conftest*
3080 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3081 cat >> confdefs.h <<EOF
3082 #define SIZEOF_INT $ac_cv_sizeof_int
3086 echo $ac_n "checking size of long""... $ac_c" 1>&6
3087 echo "configure:3088: checking size of long" >&5
3088 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3090 else
3091 if test "$cross_compiling" = yes; then
3092 ac_cv_sizeof_long=cross
3093 else
3094 cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3097 #include <stdio.h>
3098 main()
3100 FILE *f=fopen("conftestval", "w");
3101 if (!f) exit(1);
3102 fprintf(f, "%d\n", sizeof(long));
3103 exit(0);
3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3107 then
3108 ac_cv_sizeof_long=`cat conftestval`
3109 else
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3112 rm -fr conftest*
3113 ac_cv_sizeof_long=0
3115 rm -fr conftest*
3119 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3120 cat >> confdefs.h <<EOF
3121 #define SIZEOF_LONG $ac_cv_sizeof_long
3125 echo $ac_n "checking size of short""... $ac_c" 1>&6
3126 echo "configure:3127: checking size of short" >&5
3127 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130 if test "$cross_compiling" = yes; then
3131 ac_cv_sizeof_short=cross
3132 else
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3136 #include <stdio.h>
3137 main()
3139 FILE *f=fopen("conftestval", "w");
3140 if (!f) exit(1);
3141 fprintf(f, "%d\n", sizeof(short));
3142 exit(0);
3145 if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3146 then
3147 ac_cv_sizeof_short=`cat conftestval`
3148 else
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3151 rm -fr conftest*
3152 ac_cv_sizeof_short=0
3154 rm -fr conftest*
3158 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3159 cat >> confdefs.h <<EOF
3160 #define SIZEOF_SHORT $ac_cv_sizeof_short
3165 echo $ac_n "checking for working const""... $ac_c" 1>&6
3166 echo "configure:3167: checking for working const" >&5
3167 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3169 else
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3174 int main() {
3176 /* Ultrix mips cc rejects this. */
3177 typedef int charset[2]; const charset x;
3178 /* SunOS 4.1.1 cc rejects this. */
3179 char const *const *ccp;
3180 char **p;
3181 /* NEC SVR4.0.2 mips cc rejects this. */
3182 struct point {int x, y;};
3183 static struct point const zero = {0,0};
3184 /* AIX XL C 1.02.0.0 rejects this.
3185 It does not let you subtract one const X* pointer from another in an arm
3186 of an if-expression whose if-part is not a constant expression */
3187 const char *g = "string";
3188 ccp = &g + (g ? g-g : 0);
3189 /* HPUX 7.0 cc rejects these. */
3190 ++ccp;
3191 p = (char**) ccp;
3192 ccp = (char const *const *) p;
3193 { /* SCO 3.2v4 cc rejects this. */
3194 char *t;
3195 char const *s = 0 ? (char *) 0 : (char const *) 0;
3197 *t++ = 0;
3199 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3200 int x[] = {25, 17};
3201 const int *foo = &x[0];
3202 ++foo;
3204 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3205 typedef const int *iptr;
3206 iptr p = 0;
3207 ++p;
3209 { /* AIX XL C 1.02.0.0 rejects this saying
3210 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3211 struct s { int j; const int *ap[3]; };
3212 struct s *b; b->j = 5;
3214 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3215 const int foo = 10;
3218 ; return 0; }
3220 if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3221 rm -rf conftest*
3222 ac_cv_c_const=yes
3223 else
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 rm -rf conftest*
3227 ac_cv_c_const=no
3229 rm -f conftest*
3232 echo "$ac_t""$ac_cv_c_const" 1>&6
3233 if test $ac_cv_c_const = no; then
3234 cat >> confdefs.h <<\EOF
3235 #define const
3240 echo $ac_n "checking for inline""... $ac_c" 1>&6
3241 echo "configure:3242: checking for inline" >&5
3242 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3244 else
3245 ac_cv_c_inline=no
3246 for ac_kw in inline __inline__ __inline; do
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3251 int main() {
3252 } $ac_kw foo() {
3253 ; return 0; }
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256 rm -rf conftest*
3257 ac_cv_c_inline=$ac_kw; break
3258 else
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 rm -f conftest*
3263 done
3267 echo "$ac_t""$ac_cv_c_inline" 1>&6
3268 case "$ac_cv_c_inline" in
3269 inline | yes) ;;
3270 no) cat >> confdefs.h <<\EOF
3271 #define inline
3274 *) cat >> confdefs.h <<EOF
3275 #define inline $ac_cv_c_inline
3278 esac
3280 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3281 echo "configure:3282: checking whether byte ordering is bigendian" >&5
3282 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3284 else
3285 ac_cv_c_bigendian=unknown
3286 # See if sys/param.h defines the BYTE_ORDER macro.
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3291 #include <sys/param.h>
3292 int main() {
3294 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3295 bogus endian macros
3296 #endif
3297 ; return 0; }
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300 rm -rf conftest*
3301 # It does; now see whether it defined to BIG_ENDIAN or not.
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <sys/types.h>
3306 #include <sys/param.h>
3307 int main() {
3309 #if BYTE_ORDER != BIG_ENDIAN
3310 not big endian
3311 #endif
3312 ; return 0; }
3314 if { (eval echo configure:3315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3315 rm -rf conftest*
3316 ac_cv_c_bigendian=yes
3317 else
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3320 rm -rf conftest*
3321 ac_cv_c_bigendian=no
3323 rm -f conftest*
3324 else
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3328 rm -f conftest*
3329 if test $ac_cv_c_bigendian = unknown; then
3330 if test "$cross_compiling" = yes; then
3331 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3332 else
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 main () {
3337 /* Are we little or big endian? From Harbison&Steele. */
3338 union
3340 long l;
3341 char c[sizeof (long)];
3342 } u;
3343 u.l = 1;
3344 exit (u.c[sizeof (long) - 1] == 1);
3347 if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3348 then
3349 ac_cv_c_bigendian=no
3350 else
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3353 rm -fr conftest*
3354 ac_cv_c_bigendian=yes
3356 rm -fr conftest*
3362 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3363 if test $ac_cv_c_bigendian = yes; then
3364 cat >> confdefs.h <<\EOF
3365 #define WORDS_BIGENDIAN 1
3370 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3371 echo "configure:3372: checking whether char is unsigned" >&5
3372 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374 else
3375 if test "$GCC" = yes; then
3376 # GCC predefines this symbol on systems where it applies.
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #ifdef __CHAR_UNSIGNED__
3382 #endif
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 egrep "yes" >/dev/null 2>&1; then
3387 rm -rf conftest*
3388 ac_cv_c_char_unsigned=yes
3389 else
3390 rm -rf conftest*
3391 ac_cv_c_char_unsigned=no
3393 rm -f conftest*
3395 else
3396 if test "$cross_compiling" = yes; then
3397 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3398 else
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3403 #if !defined(__STDC__) || __STDC__ != 1
3404 #define volatile
3405 #endif
3406 main() {
3407 volatile char c = 255; exit(c < 0);
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3411 then
3412 ac_cv_c_char_unsigned=yes
3413 else
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 rm -fr conftest*
3417 ac_cv_c_char_unsigned=no
3419 rm -fr conftest*
3425 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3426 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3427 cat >> confdefs.h <<\EOF
3428 #define __CHAR_UNSIGNED__ 1
3434 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3435 echo "configure:3436: checking return type of signal handlers" >&5
3436 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3438 else
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <sys/types.h>
3443 #include <signal.h>
3444 #ifdef signal
3445 #undef signal
3446 #endif
3447 #ifdef __cplusplus
3448 extern "C" void (*signal (int, void (*)(int)))(int);
3449 #else
3450 void (*signal ()) ();
3451 #endif
3453 int main() {
3454 int i;
3455 ; return 0; }
3457 if { (eval echo configure:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3458 rm -rf conftest*
3459 ac_cv_type_signal=void
3460 else
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3463 rm -rf conftest*
3464 ac_cv_type_signal=int
3466 rm -f conftest*
3469 echo "$ac_t""$ac_cv_type_signal" 1>&6
3470 cat >> confdefs.h <<EOF
3471 #define RETSIGTYPE $ac_cv_type_signal
3475 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3476 echo "configure:3477: checking for uid_t in sys/types.h" >&5
3477 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3479 else
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <sys/types.h>
3485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486 egrep "uid_t" >/dev/null 2>&1; then
3487 rm -rf conftest*
3488 ac_cv_type_uid_t=yes
3489 else
3490 rm -rf conftest*
3491 ac_cv_type_uid_t=no
3493 rm -f conftest*
3497 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3498 if test $ac_cv_type_uid_t = no; then
3499 cat >> confdefs.h <<\EOF
3500 #define uid_t int
3503 cat >> confdefs.h <<\EOF
3504 #define gid_t int
3509 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3510 echo "configure:3511: checking for mode_t" >&5
3511 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513 else
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <sys/types.h>
3518 #if STDC_HEADERS
3519 #include <stdlib.h>
3520 #include <stddef.h>
3521 #endif
3523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3524 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3525 rm -rf conftest*
3526 ac_cv_type_mode_t=yes
3527 else
3528 rm -rf conftest*
3529 ac_cv_type_mode_t=no
3531 rm -f conftest*
3534 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3535 if test $ac_cv_type_mode_t = no; then
3536 cat >> confdefs.h <<\EOF
3537 #define mode_t int
3542 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3543 echo "configure:3544: checking for off_t" >&5
3544 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3546 else
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 #include <sys/types.h>
3551 #if STDC_HEADERS
3552 #include <stdlib.h>
3553 #include <stddef.h>
3554 #endif
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3558 rm -rf conftest*
3559 ac_cv_type_off_t=yes
3560 else
3561 rm -rf conftest*
3562 ac_cv_type_off_t=no
3564 rm -f conftest*
3567 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3568 if test $ac_cv_type_off_t = no; then
3569 cat >> confdefs.h <<\EOF
3570 #define off_t long
3575 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3576 echo "configure:3577: checking for size_t" >&5
3577 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3579 else
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include <sys/types.h>
3584 #if STDC_HEADERS
3585 #include <stdlib.h>
3586 #include <stddef.h>
3587 #endif
3589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3590 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3591 rm -rf conftest*
3592 ac_cv_type_size_t=yes
3593 else
3594 rm -rf conftest*
3595 ac_cv_type_size_t=no
3597 rm -f conftest*
3600 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3601 if test $ac_cv_type_size_t = no; then
3602 cat >> confdefs.h <<\EOF
3603 #define size_t unsigned
3608 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3609 echo "configure:3610: checking for pid_t" >&5
3610 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3612 else
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 #include <sys/types.h>
3617 #if STDC_HEADERS
3618 #include <stdlib.h>
3619 #include <stddef.h>
3620 #endif
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3624 rm -rf conftest*
3625 ac_cv_type_pid_t=yes
3626 else
3627 rm -rf conftest*
3628 ac_cv_type_pid_t=no
3630 rm -f conftest*
3633 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3634 if test $ac_cv_type_pid_t = no; then
3635 cat >> confdefs.h <<\EOF
3636 #define pid_t int
3641 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3642 echo "configure:3643: checking for st_rdev in struct stat" >&5
3643 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3645 else
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <sys/types.h>
3650 #include <sys/stat.h>
3651 int main() {
3652 struct stat s; s.st_rdev;
3653 ; return 0; }
3655 if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656 rm -rf conftest*
3657 ac_cv_struct_st_rdev=yes
3658 else
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 rm -rf conftest*
3662 ac_cv_struct_st_rdev=no
3664 rm -f conftest*
3667 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3668 if test $ac_cv_struct_st_rdev = yes; then
3669 cat >> confdefs.h <<\EOF
3670 #define HAVE_ST_RDEV 1
3675 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3676 echo "configure:3677: checking for d_off in dirent" >&5
3677 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3679 else
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3684 #include <unistd.h>
3685 #include <sys/types.h>
3686 #include <dirent.h>
3687 int main() {
3688 struct dirent d; d.d_off;
3689 ; return 0; }
3691 if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3692 rm -rf conftest*
3693 ac_cv_dirent_d_off=yes
3694 else
3695 echo "configure: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3697 rm -rf conftest*
3698 ac_cv_dirent_d_off=no
3700 rm -f conftest*
3703 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3704 if test $ac_cv_dirent_d_off = yes; then
3705 cat >> confdefs.h <<\EOF
3706 #define HAVE_DIRENT_D_OFF 1
3711 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3712 echo "configure:3713: checking for ino_t" >&5
3713 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3715 else
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 #include <sys/types.h>
3720 #if STDC_HEADERS
3721 #include <stdlib.h>
3722 #include <stddef.h>
3723 #endif
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3727 rm -rf conftest*
3728 ac_cv_type_ino_t=yes
3729 else
3730 rm -rf conftest*
3731 ac_cv_type_ino_t=no
3733 rm -f conftest*
3736 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3737 if test $ac_cv_type_ino_t = no; then
3738 cat >> confdefs.h <<\EOF
3739 #define ino_t unsigned
3744 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3745 echo "configure:3746: checking for loff_t" >&5
3746 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3748 else
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <sys/types.h>
3753 #if STDC_HEADERS
3754 #include <stdlib.h>
3755 #include <stddef.h>
3756 #endif
3758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3760 rm -rf conftest*
3761 ac_cv_type_loff_t=yes
3762 else
3763 rm -rf conftest*
3764 ac_cv_type_loff_t=no
3766 rm -f conftest*
3769 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3770 if test $ac_cv_type_loff_t = no; then
3771 cat >> confdefs.h <<\EOF
3772 #define loff_t off_t
3777 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3778 echo "configure:3779: checking for offset_t" >&5
3779 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3781 else
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 #include <sys/types.h>
3786 #if STDC_HEADERS
3787 #include <stdlib.h>
3788 #include <stddef.h>
3789 #endif
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3793 rm -rf conftest*
3794 ac_cv_type_offset_t=yes
3795 else
3796 rm -rf conftest*
3797 ac_cv_type_offset_t=no
3799 rm -f conftest*
3802 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3803 if test $ac_cv_type_offset_t = no; then
3804 cat >> confdefs.h <<\EOF
3805 #define offset_t loff_t
3810 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3811 echo "configure:3812: checking for ssize_t" >&5
3812 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3814 else
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 #include <sys/types.h>
3819 #if STDC_HEADERS
3820 #include <stdlib.h>
3821 #include <stddef.h>
3822 #endif
3824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3825 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3826 rm -rf conftest*
3827 ac_cv_type_ssize_t=yes
3828 else
3829 rm -rf conftest*
3830 ac_cv_type_ssize_t=no
3832 rm -f conftest*
3835 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3836 if test $ac_cv_type_ssize_t = no; then
3837 cat >> confdefs.h <<\EOF
3838 #define ssize_t int
3843 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3844 echo "configure:3845: checking for wchar_t" >&5
3845 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3847 else
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 #include <sys/types.h>
3852 #if STDC_HEADERS
3853 #include <stdlib.h>
3854 #include <stddef.h>
3855 #endif
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3859 rm -rf conftest*
3860 ac_cv_type_wchar_t=yes
3861 else
3862 rm -rf conftest*
3863 ac_cv_type_wchar_t=no
3865 rm -f conftest*
3868 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3869 if test $ac_cv_type_wchar_t = no; then
3870 cat >> confdefs.h <<\EOF
3871 #define wchar_t unsigned short
3877 # we need libcups for CUPS support...
3878 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3879 echo "configure:3880: checking for httpConnect in -lcups" >&5
3880 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3883 else
3884 ac_save_LIBS="$LIBS"
3885 LIBS="-lcups $LIBS"
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3892 char httpConnect();
3894 int main() {
3895 httpConnect()
3896 ; return 0; }
3898 if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3899 rm -rf conftest*
3900 eval "ac_cv_lib_$ac_lib_var=yes"
3901 else
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3904 rm -rf conftest*
3905 eval "ac_cv_lib_$ac_lib_var=no"
3907 rm -f conftest*
3908 LIBS="$ac_save_LIBS"
3911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3913 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3915 cat >> confdefs.h <<EOF
3916 #define $ac_tr_lib 1
3919 LIBS="-lcups $LIBS"
3921 else
3922 echo "$ac_t""no" 1>&6
3926 # we need libdl for PAM and the new VFS code
3927 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3928 echo "configure:3929: checking for dlopen in -ldl" >&5
3929 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3932 else
3933 ac_save_LIBS="$LIBS"
3934 LIBS="-ldl $LIBS"
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 /* Override any gcc2 internal prototype to avoid an error. */
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3941 char dlopen();
3943 int main() {
3944 dlopen()
3945 ; return 0; }
3947 if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3948 rm -rf conftest*
3949 eval "ac_cv_lib_$ac_lib_var=yes"
3950 else
3951 echo "configure: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3953 rm -rf conftest*
3954 eval "ac_cv_lib_$ac_lib_var=no"
3956 rm -f conftest*
3957 LIBS="$ac_save_LIBS"
3960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3961 echo "$ac_t""yes" 1>&6
3962 LIBS="$LIBS -ldl";
3963 cat >> confdefs.h <<\EOF
3964 #define HAVE_LIBDL 1
3967 else
3968 echo "$ac_t""no" 1>&6
3972 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3973 echo "configure:3974: checking for sig_atomic_t type" >&5
3974 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3976 else
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3982 #include <sys/types.h>
3983 #if STDC_HEADERS
3984 #include <stdlib.h>
3985 #include <stddef.h>
3986 #endif
3987 #include <signal.h>
3988 int main() {
3989 sig_atomic_t i = 0
3990 ; return 0; }
3992 if { (eval echo configure:3993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3993 rm -rf conftest*
3994 samba_cv_sig_atomic_t=yes
3995 else
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3998 rm -rf conftest*
3999 samba_cv_sig_atomic_t=no
4001 rm -f conftest*
4004 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4005 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4006 cat >> confdefs.h <<\EOF
4007 #define HAVE_SIG_ATOMIC_T_TYPE 1
4012 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
4013 echo "configure:4014: checking for errno in errno.h" >&5
4014 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 #include <errno.h>
4022 int main() {
4023 int i = errno
4024 ; return 0; }
4026 if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4027 rm -rf conftest*
4028 samba_cv_errno=yes
4029 else
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4032 rm -rf conftest*
4033 samba_cv_have_errno=no
4035 rm -f conftest*
4038 echo "$ac_t""$samba_cv_errno" 1>&6
4039 if test x"$samba_cv_errno" = x"yes"; then
4040 cat >> confdefs.h <<\EOF
4041 #define HAVE_ERRNO_DECL 1
4046 # stupid glibc has the functions but no declaration. grrrr.
4047 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4048 echo "configure:4049: checking for setresuid declaration" >&5
4049 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4051 else
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 #include <unistd.h>
4057 int main() {
4058 int i = (int)setresuid
4059 ; return 0; }
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4062 rm -rf conftest*
4063 samba_cv_have_setresuid_decl=yes
4064 else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 rm -rf conftest*
4068 samba_cv_have_setresuid_decl=no
4070 rm -f conftest*
4073 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
4074 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_SETRESUID_DECL 1
4081 # stupid glibc has the functions but no declaration. grrrr.
4082 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4083 echo "configure:4084: checking for setresgid declaration" >&5
4084 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4086 else
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 #include <unistd.h>
4092 int main() {
4093 int i = (int)setresgid
4094 ; return 0; }
4096 if { (eval echo configure:4097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4097 rm -rf conftest*
4098 samba_cv_have_setresgid_decl=yes
4099 else
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4102 rm -rf conftest*
4103 samba_cv_have_setresgid_decl=no
4105 rm -f conftest*
4108 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4109 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
4110 cat >> confdefs.h <<\EOF
4111 #define HAVE_SETRESGID_DECL 1
4116 # and glibc has setresuid under linux but the function does
4117 # nothing until kernel 2.1.44! very dumb.
4118 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4119 echo "configure:4120: checking for real setresuid" >&5
4120 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4122 else
4124 if test "$cross_compiling" = yes; then
4125 samba_cv_have_setresuid=cross
4126 else
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 #include <errno.h>
4131 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4134 then
4135 samba_cv_have_setresuid=yes
4136 else
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4139 rm -fr conftest*
4140 samba_cv_have_setresuid=no
4142 rm -fr conftest*
4147 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4148 if test x"$samba_cv_have_setresuid" = x"yes"; then
4149 cat >> confdefs.h <<\EOF
4150 #define HAVE_SETRESUID 1
4155 # Do the same check for setresguid...
4157 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4158 echo "configure:4159: checking for real setresgid" >&5
4159 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4161 else
4163 if test "$cross_compiling" = yes; then
4164 samba_cv_have_setresgid=cross
4165 else
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 #include <unistd.h>
4170 #include <errno.h>
4171 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4174 then
4175 samba_cv_have_setresgid=yes
4176 else
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 rm -fr conftest*
4180 samba_cv_have_setresgid=no
4182 rm -fr conftest*
4187 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4188 if test x"$samba_cv_have_setresgid" = x"yes"; then
4189 cat >> confdefs.h <<\EOF
4190 #define HAVE_SETRESGID 1
4195 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4196 echo "configure:4197: checking for 8-bit clean memcmp" >&5
4197 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4199 else
4200 if test "$cross_compiling" = yes; then
4201 ac_cv_func_memcmp_clean=no
4202 else
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4207 main()
4209 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4210 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4215 then
4216 ac_cv_func_memcmp_clean=yes
4217 else
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4220 rm -fr conftest*
4221 ac_cv_func_memcmp_clean=no
4223 rm -fr conftest*
4228 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4229 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4232 ###############################################
4233 # Readline included by default unless explicitly asked not to
4234 test "${with_readline+set}" != "set" && with_readline=yes
4236 # test for where we get readline() from
4237 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4238 echo "configure:4239: checking whether to use readline" >&5
4239 # Check whether --with-readline or --without-readline was given.
4240 if test "${with_readline+set}" = set; then
4241 withval="$with_readline"
4242 case "$with_readline" in
4243 yes)
4244 echo "$ac_t""yes" 1>&6
4246 for ac_hdr in readline.h history.h readline/readline.h
4248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4250 echo "configure:4251: checking for $ac_hdr" >&5
4251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4253 else
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 #include <$ac_hdr>
4259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4260 { (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4262 if test -z "$ac_err"; then
4263 rm -rf conftest*
4264 eval "ac_cv_header_$ac_safe=yes"
4265 else
4266 echo "$ac_err" >&5
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 eval "ac_cv_header_$ac_safe=no"
4272 rm -f conftest*
4274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4277 cat >> confdefs.h <<EOF
4278 #define $ac_tr_hdr 1
4281 else
4282 echo "$ac_t""no" 1>&6
4284 done
4286 for ac_hdr in readline/history.h
4288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4290 echo "configure:4291: checking for $ac_hdr" >&5
4291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4293 else
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 #include <$ac_hdr>
4299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4300 { (eval echo configure:4301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4302 if test -z "$ac_err"; then
4303 rm -rf conftest*
4304 eval "ac_cv_header_$ac_safe=yes"
4305 else
4306 echo "$ac_err" >&5
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 rm -rf conftest*
4310 eval "ac_cv_header_$ac_safe=no"
4312 rm -f conftest*
4314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4315 echo "$ac_t""yes" 1>&6
4316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4317 cat >> confdefs.h <<EOF
4318 #define $ac_tr_hdr 1
4321 else
4322 echo "$ac_t""no" 1>&6
4324 done
4327 for ac_hdr in readline.h readline/readline.h
4329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4331 echo "configure:4332: checking for $ac_hdr" >&5
4332 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4334 else
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4338 #include <$ac_hdr>
4340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4341 { (eval echo configure:4342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4343 if test -z "$ac_err"; then
4344 rm -rf conftest*
4345 eval "ac_cv_header_$ac_safe=yes"
4346 else
4347 echo "$ac_err" >&5
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 rm -rf conftest*
4351 eval "ac_cv_header_$ac_safe=no"
4353 rm -f conftest*
4355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4356 echo "$ac_t""yes" 1>&6
4357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4358 cat >> confdefs.h <<EOF
4359 #define $ac_tr_hdr 1
4362 for termlib in ncurses curses termcap terminfo termlib; do
4363 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4364 echo "configure:4365: checking for tgetent in -l${termlib}" >&5
4365 ac_lib_var=`echo ${termlib}'_'tgetent | 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="-l${termlib} $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 tgetent();
4379 int main() {
4380 tgetent()
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 TERMLIBS="-l${termlib}"; break
4399 else
4400 echo "$ac_t""no" 1>&6
4403 done
4404 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4405 echo "configure:4406: checking for rl_callback_handler_install in -lreadline" >&5
4406 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4409 else
4410 ac_save_LIBS="$LIBS"
4411 LIBS="-lreadline $TERMLIBS $LIBS"
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 /* Override any gcc2 internal prototype to avoid an error. */
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4418 char rl_callback_handler_install();
4420 int main() {
4421 rl_callback_handler_install()
4422 ; return 0; }
4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425 rm -rf conftest*
4426 eval "ac_cv_lib_$ac_lib_var=yes"
4427 else
4428 echo "configure: failed program was:" >&5
4429 cat conftest.$ac_ext >&5
4430 rm -rf conftest*
4431 eval "ac_cv_lib_$ac_lib_var=no"
4433 rm -f conftest*
4434 LIBS="$ac_save_LIBS"
4437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 TERMLIBS="-lreadline $TERMLIBS"
4440 cat >> confdefs.h <<\EOF
4441 #define HAVE_LIBREADLINE 1
4444 break
4445 else
4446 echo "$ac_t""no" 1>&6
4447 TERMLIBS=
4450 else
4451 echo "$ac_t""no" 1>&6
4453 done
4457 echo "$ac_t""no" 1>&6
4460 echo "$ac_t""yes" 1>&6
4462 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4463 # alternate readline path
4464 _ldflags=${LDFLAGS}
4465 _cppflags=${CPPFLAGS}
4467 # Add additional search path
4468 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4469 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4471 for ac_hdr in readline.h history.h readline/readline.h
4473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_hdr" >&5
4476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4478 else
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4482 #include <$ac_hdr>
4484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4485 { (eval echo configure:4486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4487 if test -z "$ac_err"; then
4488 rm -rf conftest*
4489 eval "ac_cv_header_$ac_safe=yes"
4490 else
4491 echo "$ac_err" >&5
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4494 rm -rf conftest*
4495 eval "ac_cv_header_$ac_safe=no"
4497 rm -f conftest*
4499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_hdr 1
4506 else
4507 echo "$ac_t""no" 1>&6
4509 done
4511 for ac_hdr in readline/history.h
4513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_hdr" >&5
4516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4518 else
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 #include <$ac_hdr>
4524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4525 { (eval echo configure:4526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4527 if test -z "$ac_err"; then
4528 rm -rf conftest*
4529 eval "ac_cv_header_$ac_safe=yes"
4530 else
4531 echo "$ac_err" >&5
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4534 rm -rf conftest*
4535 eval "ac_cv_header_$ac_safe=no"
4537 rm -f conftest*
4539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_hdr 1
4546 else
4547 echo "$ac_t""no" 1>&6
4549 done
4552 for ac_hdr in readline.h readline/readline.h
4554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_hdr" >&5
4557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4559 else
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 #include <$ac_hdr>
4565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4566 { (eval echo configure:4567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4568 if test -z "$ac_err"; then
4569 rm -rf conftest*
4570 eval "ac_cv_header_$ac_safe=yes"
4571 else
4572 echo "$ac_err" >&5
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4575 rm -rf conftest*
4576 eval "ac_cv_header_$ac_safe=no"
4578 rm -f conftest*
4580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4583 cat >> confdefs.h <<EOF
4584 #define $ac_tr_hdr 1
4587 for termlib in ncurses curses termcap terminfo termlib; do
4588 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4589 echo "configure:4590: checking for tgetent in -l${termlib}" >&5
4590 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4593 else
4594 ac_save_LIBS="$LIBS"
4595 LIBS="-l${termlib} $LIBS"
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4602 char tgetent();
4604 int main() {
4605 tgetent()
4606 ; return 0; }
4608 if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4609 rm -rf conftest*
4610 eval "ac_cv_lib_$ac_lib_var=yes"
4611 else
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4614 rm -rf conftest*
4615 eval "ac_cv_lib_$ac_lib_var=no"
4617 rm -f conftest*
4618 LIBS="$ac_save_LIBS"
4621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4622 echo "$ac_t""yes" 1>&6
4623 TERMLIBS="-l${termlib}"; break
4624 else
4625 echo "$ac_t""no" 1>&6
4628 done
4629 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4630 echo "configure:4631: checking for rl_callback_handler_install in -lreadline" >&5
4631 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4634 else
4635 ac_save_LIBS="$LIBS"
4636 LIBS="-lreadline $TERMLIBS $LIBS"
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 /* Override any gcc2 internal prototype to avoid an error. */
4641 /* We use char because int might match the return type of a gcc2
4642 builtin and then its argument prototype would still apply. */
4643 char rl_callback_handler_install();
4645 int main() {
4646 rl_callback_handler_install()
4647 ; return 0; }
4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4650 rm -rf conftest*
4651 eval "ac_cv_lib_$ac_lib_var=yes"
4652 else
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4655 rm -rf conftest*
4656 eval "ac_cv_lib_$ac_lib_var=no"
4658 rm -f conftest*
4659 LIBS="$ac_save_LIBS"
4662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4664 TERMLDFLAGS="-L$with_readline/lib"
4665 TERMCPPFLAGS="-I$with_readline/include"
4666 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4667 TERMLIBS="-lreadline $TERMLIBS"
4668 cat >> confdefs.h <<\EOF
4669 #define HAVE_LIBREADLINE 1
4672 break
4673 else
4674 echo "$ac_t""no" 1>&6
4675 TERMLIBS= CPPFLAGS=$_cppflags
4678 else
4679 echo "$ac_t""no" 1>&6
4681 done
4684 LDFLAGS=$_ldflags
4686 esac
4687 else
4688 echo "$ac_t""no" 1>&6
4695 # The following test taken from the cvs sources
4696 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4697 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4698 # libsocket.so which has a bad implementation of gethostbyname (it
4699 # only looks in /etc/hosts), so we only look for -lsocket if we need
4700 # it.
4701 for ac_func in connect
4703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4704 echo "configure:4705: checking for $ac_func" >&5
4705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4707 else
4708 cat > conftest.$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4711 /* System header to define __stub macros and hopefully few prototypes,
4712 which can conflict with char $ac_func(); below. */
4713 #include <assert.h>
4714 /* Override any gcc2 internal prototype to avoid an error. */
4715 /* We use char because int might match the return type of a gcc2
4716 builtin and then its argument prototype would still apply. */
4717 char $ac_func();
4719 int main() {
4721 /* The GNU C library defines this for functions which it implements
4722 to always fail with ENOSYS. Some functions are actually named
4723 something starting with __ and the normal name is an alias. */
4724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4725 choke me
4726 #else
4727 $ac_func();
4728 #endif
4730 ; return 0; }
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 rm -rf conftest*
4734 eval "ac_cv_func_$ac_func=yes"
4735 else
4736 echo "configure: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4738 rm -rf conftest*
4739 eval "ac_cv_func_$ac_func=no"
4741 rm -f conftest*
4744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4745 echo "$ac_t""yes" 1>&6
4746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4747 cat >> confdefs.h <<EOF
4748 #define $ac_tr_func 1
4751 else
4752 echo "$ac_t""no" 1>&6
4754 done
4756 if test x"$ac_cv_func_connect" = x"no"; then
4757 case "$LIBS" in
4758 *-lnsl*) ;;
4759 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4760 echo "configure:4761: checking for printf in -lnsl_s" >&5
4761 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4764 else
4765 ac_save_LIBS="$LIBS"
4766 LIBS="-lnsl_s $LIBS"
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4773 char printf();
4775 int main() {
4776 printf()
4777 ; return 0; }
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 rm -rf conftest*
4781 eval "ac_cv_lib_$ac_lib_var=yes"
4782 else
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785 rm -rf conftest*
4786 eval "ac_cv_lib_$ac_lib_var=no"
4788 rm -f conftest*
4789 LIBS="$ac_save_LIBS"
4792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4796 cat >> confdefs.h <<EOF
4797 #define $ac_tr_lib 1
4800 LIBS="-lnsl_s $LIBS"
4802 else
4803 echo "$ac_t""no" 1>&6
4806 esac
4807 case "$LIBS" in
4808 *-lnsl*) ;;
4809 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4810 echo "configure:4811: checking for printf in -lnsl" >&5
4811 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4814 else
4815 ac_save_LIBS="$LIBS"
4816 LIBS="-lnsl $LIBS"
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4823 char printf();
4825 int main() {
4826 printf()
4827 ; return 0; }
4829 if { (eval echo configure:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4830 rm -rf conftest*
4831 eval "ac_cv_lib_$ac_lib_var=yes"
4832 else
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4835 rm -rf conftest*
4836 eval "ac_cv_lib_$ac_lib_var=no"
4838 rm -f conftest*
4839 LIBS="$ac_save_LIBS"
4842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4845 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4846 cat >> confdefs.h <<EOF
4847 #define $ac_tr_lib 1
4850 LIBS="-lnsl $LIBS"
4852 else
4853 echo "$ac_t""no" 1>&6
4856 esac
4857 case "$LIBS" in
4858 *-lsocket*) ;;
4859 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4860 echo "configure:4861: checking for connect in -lsocket" >&5
4861 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4864 else
4865 ac_save_LIBS="$LIBS"
4866 LIBS="-lsocket $LIBS"
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* Override any gcc2 internal prototype to avoid an error. */
4871 /* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
4873 char connect();
4875 int main() {
4876 connect()
4877 ; return 0; }
4879 if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 rm -rf conftest*
4881 eval "ac_cv_lib_$ac_lib_var=yes"
4882 else
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 rm -rf conftest*
4886 eval "ac_cv_lib_$ac_lib_var=no"
4888 rm -f conftest*
4889 LIBS="$ac_save_LIBS"
4892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4894 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4895 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4896 cat >> confdefs.h <<EOF
4897 #define $ac_tr_lib 1
4900 LIBS="-lsocket $LIBS"
4902 else
4903 echo "$ac_t""no" 1>&6
4906 esac
4907 case "$LIBS" in
4908 *-linet*) ;;
4909 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4910 echo "configure:4911: checking for connect in -linet" >&5
4911 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4914 else
4915 ac_save_LIBS="$LIBS"
4916 LIBS="-linet $LIBS"
4917 cat > conftest.$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.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 connect();
4925 int main() {
4926 connect()
4927 ; return 0; }
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4930 rm -rf conftest*
4931 eval "ac_cv_lib_$ac_lib_var=yes"
4932 else
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 rm -rf conftest*
4936 eval "ac_cv_lib_$ac_lib_var=no"
4938 rm -f conftest*
4939 LIBS="$ac_save_LIBS"
4942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4944 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4945 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4946 cat >> confdefs.h <<EOF
4947 #define $ac_tr_lib 1
4950 LIBS="-linet $LIBS"
4952 else
4953 echo "$ac_t""no" 1>&6
4956 esac
4957 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4958 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4959 # ac_cv_func_connect=yes
4960 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4961 cat >> confdefs.h <<\EOF
4962 #define HAVE_CONNECT 1
4968 ###############################################
4969 # test for where we get get_yp_default_domain() from
4970 for ac_func in yp_get_default_domain
4972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4973 echo "configure:4974: checking for $ac_func" >&5
4974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4976 else
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4980 /* System header to define __stub macros and hopefully few prototypes,
4981 which can conflict with char $ac_func(); below. */
4982 #include <assert.h>
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4986 char $ac_func();
4988 int main() {
4990 /* The GNU C library defines this for functions which it implements
4991 to always fail with ENOSYS. Some functions are actually named
4992 something starting with __ and the normal name is an alias. */
4993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4994 choke me
4995 #else
4996 $ac_func();
4997 #endif
4999 ; return 0; }
5001 if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5002 rm -rf conftest*
5003 eval "ac_cv_func_$ac_func=yes"
5004 else
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 rm -rf conftest*
5008 eval "ac_cv_func_$ac_func=no"
5010 rm -f conftest*
5013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5016 cat >> confdefs.h <<EOF
5017 #define $ac_tr_func 1
5020 else
5021 echo "$ac_t""no" 1>&6
5023 done
5025 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5026 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5027 echo "configure:5028: checking for yp_get_default_domain in -lnsl" >&5
5028 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5030 echo $ac_n "(cached) $ac_c" 1>&6
5031 else
5032 ac_save_LIBS="$LIBS"
5033 LIBS="-lnsl $LIBS"
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5037 /* Override any gcc2 internal prototype to avoid an error. */
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5040 char yp_get_default_domain();
5042 int main() {
5043 yp_get_default_domain()
5044 ; return 0; }
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5047 rm -rf conftest*
5048 eval "ac_cv_lib_$ac_lib_var=yes"
5049 else
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5052 rm -rf conftest*
5053 eval "ac_cv_lib_$ac_lib_var=no"
5055 rm -f conftest*
5056 LIBS="$ac_save_LIBS"
5059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5061 LIBS="$LIBS -lnsl";
5062 cat >> confdefs.h <<\EOF
5063 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5066 else
5067 echo "$ac_t""no" 1>&6
5072 # Check if we have execl, if not we need to compile smbrun.
5073 for ac_func in execl
5075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5076 echo "configure:5077: checking for $ac_func" >&5
5077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5078 echo $ac_n "(cached) $ac_c" 1>&6
5079 else
5080 cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5083 /* System header to define __stub macros and hopefully few prototypes,
5084 which can conflict with char $ac_func(); below. */
5085 #include <assert.h>
5086 /* Override any gcc2 internal prototype to avoid an error. */
5087 /* We use char because int might match the return type of a gcc2
5088 builtin and then its argument prototype would still apply. */
5089 char $ac_func();
5091 int main() {
5093 /* The GNU C library defines this for functions which it implements
5094 to always fail with ENOSYS. Some functions are actually named
5095 something starting with __ and the normal name is an alias. */
5096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5097 choke me
5098 #else
5099 $ac_func();
5100 #endif
5102 ; return 0; }
5104 if { (eval echo configure:5105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5105 rm -rf conftest*
5106 eval "ac_cv_func_$ac_func=yes"
5107 else
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5110 rm -rf conftest*
5111 eval "ac_cv_func_$ac_func=no"
5113 rm -f conftest*
5116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5117 echo "$ac_t""yes" 1>&6
5118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5119 cat >> confdefs.h <<EOF
5120 #define $ac_tr_func 1
5123 else
5124 echo "$ac_t""no" 1>&6
5126 done
5128 if test x"$ac_cv_func_execl" = x"no"; then
5129 RUNPROG="bin/smbrun"
5130 else
5131 RUNPROG=""
5134 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5137 echo "configure:5138: checking for $ac_func" >&5
5138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5139 echo $ac_n "(cached) $ac_c" 1>&6
5140 else
5141 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5144 /* System header to define __stub macros and hopefully few prototypes,
5145 which can conflict with char $ac_func(); below. */
5146 #include <assert.h>
5147 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5150 char $ac_func();
5152 int main() {
5154 /* The GNU C library defines this for functions which it implements
5155 to always fail with ENOSYS. Some functions are actually named
5156 something starting with __ and the normal name is an alias. */
5157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5158 choke me
5159 #else
5160 $ac_func();
5161 #endif
5163 ; return 0; }
5165 if { (eval echo configure:5166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5166 rm -rf conftest*
5167 eval "ac_cv_func_$ac_func=yes"
5168 else
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 rm -rf conftest*
5172 eval "ac_cv_func_$ac_func=no"
5174 rm -f conftest*
5177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5180 cat >> confdefs.h <<EOF
5181 #define $ac_tr_func 1
5184 else
5185 echo "$ac_t""no" 1>&6
5187 done
5189 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5192 echo "configure:5193: checking for $ac_func" >&5
5193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5195 else
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5199 /* System header to define __stub macros and hopefully few prototypes,
5200 which can conflict with char $ac_func(); below. */
5201 #include <assert.h>
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5205 char $ac_func();
5207 int main() {
5209 /* The GNU C library defines this for functions which it implements
5210 to always fail with ENOSYS. Some functions are actually named
5211 something starting with __ and the normal name is an alias. */
5212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5213 choke me
5214 #else
5215 $ac_func();
5216 #endif
5218 ; return 0; }
5220 if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5221 rm -rf conftest*
5222 eval "ac_cv_func_$ac_func=yes"
5223 else
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5226 rm -rf conftest*
5227 eval "ac_cv_func_$ac_func=no"
5229 rm -f conftest*
5232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5233 echo "$ac_t""yes" 1>&6
5234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5235 cat >> confdefs.h <<EOF
5236 #define $ac_tr_func 1
5239 else
5240 echo "$ac_t""no" 1>&6
5242 done
5244 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5247 echo "configure:5248: checking for $ac_func" >&5
5248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5250 else
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5254 /* System header to define __stub macros and hopefully few prototypes,
5255 which can conflict with char $ac_func(); below. */
5256 #include <assert.h>
5257 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */
5260 char $ac_func();
5262 int main() {
5264 /* The GNU C library defines this for functions which it implements
5265 to always fail with ENOSYS. Some functions are actually named
5266 something starting with __ and the normal name is an alias. */
5267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5268 choke me
5269 #else
5270 $ac_func();
5271 #endif
5273 ; return 0; }
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5276 rm -rf conftest*
5277 eval "ac_cv_func_$ac_func=yes"
5278 else
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 rm -rf conftest*
5282 eval "ac_cv_func_$ac_func=no"
5284 rm -f conftest*
5287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5288 echo "$ac_t""yes" 1>&6
5289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5290 cat >> confdefs.h <<EOF
5291 #define $ac_tr_func 1
5294 else
5295 echo "$ac_t""no" 1>&6
5297 done
5299 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5302 echo "configure:5303: checking for $ac_func" >&5
5303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5305 else
5306 cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5309 /* System header to define __stub macros and hopefully few prototypes,
5310 which can conflict with char $ac_func(); below. */
5311 #include <assert.h>
5312 /* Override any gcc2 internal prototype to avoid an error. */
5313 /* We use char because int might match the return type of a gcc2
5314 builtin and then its argument prototype would still apply. */
5315 char $ac_func();
5317 int main() {
5319 /* The GNU C library defines this for functions which it implements
5320 to always fail with ENOSYS. Some functions are actually named
5321 something starting with __ and the normal name is an alias. */
5322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5323 choke me
5324 #else
5325 $ac_func();
5326 #endif
5328 ; return 0; }
5330 if { (eval echo configure:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5331 rm -rf conftest*
5332 eval "ac_cv_func_$ac_func=yes"
5333 else
5334 echo "configure: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5336 rm -rf conftest*
5337 eval "ac_cv_func_$ac_func=no"
5339 rm -f conftest*
5342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5345 cat >> confdefs.h <<EOF
5346 #define $ac_tr_func 1
5349 else
5350 echo "$ac_t""no" 1>&6
5352 done
5354 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5357 echo "configure:5358: checking for $ac_func" >&5
5358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5360 else
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5364 /* System header to define __stub macros and hopefully few prototypes,
5365 which can conflict with char $ac_func(); below. */
5366 #include <assert.h>
5367 /* Override any gcc2 internal prototype to avoid an error. */
5368 /* We use char because int might match the return type of a gcc2
5369 builtin and then its argument prototype would still apply. */
5370 char $ac_func();
5372 int main() {
5374 /* The GNU C library defines this for functions which it implements
5375 to always fail with ENOSYS. Some functions are actually named
5376 something starting with __ and the normal name is an alias. */
5377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5378 choke me
5379 #else
5380 $ac_func();
5381 #endif
5383 ; return 0; }
5385 if { (eval echo configure:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386 rm -rf conftest*
5387 eval "ac_cv_func_$ac_func=yes"
5388 else
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5391 rm -rf conftest*
5392 eval "ac_cv_func_$ac_func=no"
5394 rm -f conftest*
5397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5398 echo "$ac_t""yes" 1>&6
5399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5400 cat >> confdefs.h <<EOF
5401 #define $ac_tr_func 1
5404 else
5405 echo "$ac_t""no" 1>&6
5407 done
5409 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5412 echo "configure:5413: checking for $ac_func" >&5
5413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5415 else
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5419 /* System header to define __stub macros and hopefully few prototypes,
5420 which can conflict with char $ac_func(); below. */
5421 #include <assert.h>
5422 /* Override any gcc2 internal prototype to avoid an error. */
5423 /* We use char because int might match the return type of a gcc2
5424 builtin and then its argument prototype would still apply. */
5425 char $ac_func();
5427 int main() {
5429 /* The GNU C library defines this for functions which it implements
5430 to always fail with ENOSYS. Some functions are actually named
5431 something starting with __ and the normal name is an alias. */
5432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5433 choke me
5434 #else
5435 $ac_func();
5436 #endif
5438 ; return 0; }
5440 if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5441 rm -rf conftest*
5442 eval "ac_cv_func_$ac_func=yes"
5443 else
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5446 rm -rf conftest*
5447 eval "ac_cv_func_$ac_func=no"
5449 rm -f conftest*
5452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5453 echo "$ac_t""yes" 1>&6
5454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5455 cat >> confdefs.h <<EOF
5456 #define $ac_tr_func 1
5459 else
5460 echo "$ac_t""no" 1>&6
5462 done
5464 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5467 echo "configure:5468: checking for $ac_func" >&5
5468 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5470 else
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char $ac_func(); below. */
5476 #include <assert.h>
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5480 char $ac_func();
5482 int main() {
5484 /* The GNU C library defines this for functions which it implements
5485 to always fail with ENOSYS. Some functions are actually named
5486 something starting with __ and the normal name is an alias. */
5487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5488 choke me
5489 #else
5490 $ac_func();
5491 #endif
5493 ; return 0; }
5495 if { (eval echo configure:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496 rm -rf conftest*
5497 eval "ac_cv_func_$ac_func=yes"
5498 else
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5501 rm -rf conftest*
5502 eval "ac_cv_func_$ac_func=no"
5504 rm -f conftest*
5507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5508 echo "$ac_t""yes" 1>&6
5509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5510 cat >> confdefs.h <<EOF
5511 #define $ac_tr_func 1
5514 else
5515 echo "$ac_t""no" 1>&6
5517 done
5519 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5522 echo "configure:5523: checking for $ac_func" >&5
5523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5525 else
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5529 /* System header to define __stub macros and hopefully few prototypes,
5530 which can conflict with char $ac_func(); below. */
5531 #include <assert.h>
5532 /* Override any gcc2 internal prototype to avoid an error. */
5533 /* We use char because int might match the return type of a gcc2
5534 builtin and then its argument prototype would still apply. */
5535 char $ac_func();
5537 int main() {
5539 /* The GNU C library defines this for functions which it implements
5540 to always fail with ENOSYS. Some functions are actually named
5541 something starting with __ and the normal name is an alias. */
5542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5543 choke me
5544 #else
5545 $ac_func();
5546 #endif
5548 ; return 0; }
5550 if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551 rm -rf conftest*
5552 eval "ac_cv_func_$ac_func=yes"
5553 else
5554 echo "configure: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 rm -rf conftest*
5557 eval "ac_cv_func_$ac_func=no"
5559 rm -f conftest*
5562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5563 echo "$ac_t""yes" 1>&6
5564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5565 cat >> confdefs.h <<EOF
5566 #define $ac_tr_func 1
5569 else
5570 echo "$ac_t""no" 1>&6
5572 done
5574 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5577 echo "configure:5578: checking for $ac_func" >&5
5578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5580 else
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 /* System header to define __stub macros and hopefully few prototypes,
5585 which can conflict with char $ac_func(); below. */
5586 #include <assert.h>
5587 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5590 char $ac_func();
5592 int main() {
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5598 choke me
5599 #else
5600 $ac_func();
5601 #endif
5603 ; return 0; }
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5606 rm -rf conftest*
5607 eval "ac_cv_func_$ac_func=yes"
5608 else
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5611 rm -rf conftest*
5612 eval "ac_cv_func_$ac_func=no"
5614 rm -f conftest*
5617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5620 cat >> confdefs.h <<EOF
5621 #define $ac_tr_func 1
5624 else
5625 echo "$ac_t""no" 1>&6
5627 done
5630 # syscall() is needed for smbwrapper.
5631 for ac_func in syscall
5633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5634 echo "configure:5635: checking for $ac_func" >&5
5635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5637 else
5638 cat > conftest.$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5641 /* System header to define __stub macros and hopefully few prototypes,
5642 which can conflict with char $ac_func(); below. */
5643 #include <assert.h>
5644 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5647 char $ac_func();
5649 int main() {
5651 /* The GNU C library defines this for functions which it implements
5652 to always fail with ENOSYS. Some functions are actually named
5653 something starting with __ and the normal name is an alias. */
5654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5655 choke me
5656 #else
5657 $ac_func();
5658 #endif
5660 ; return 0; }
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 rm -rf conftest*
5664 eval "ac_cv_func_$ac_func=yes"
5665 else
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5668 rm -rf conftest*
5669 eval "ac_cv_func_$ac_func=no"
5671 rm -f conftest*
5674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5677 cat >> confdefs.h <<EOF
5678 #define $ac_tr_func 1
5681 else
5682 echo "$ac_t""no" 1>&6
5684 done
5687 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5690 echo "configure:5691: checking for $ac_func" >&5
5691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5693 else
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 /* System header to define __stub macros and hopefully few prototypes,
5698 which can conflict with char $ac_func(); below. */
5699 #include <assert.h>
5700 /* Override any gcc2 internal prototype to avoid an error. */
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5703 char $ac_func();
5705 int main() {
5707 /* The GNU C library defines this for functions which it implements
5708 to always fail with ENOSYS. Some functions are actually named
5709 something starting with __ and the normal name is an alias. */
5710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5711 choke me
5712 #else
5713 $ac_func();
5714 #endif
5716 ; return 0; }
5718 if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5719 rm -rf conftest*
5720 eval "ac_cv_func_$ac_func=yes"
5721 else
5722 echo "configure: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5724 rm -rf conftest*
5725 eval "ac_cv_func_$ac_func=no"
5727 rm -f conftest*
5730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5731 echo "$ac_t""yes" 1>&6
5732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5733 cat >> confdefs.h <<EOF
5734 #define $ac_tr_func 1
5737 else
5738 echo "$ac_t""no" 1>&6
5740 done
5742 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5745 echo "configure:5746: checking for $ac_func" >&5
5746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5748 else
5749 cat > conftest.$ac_ext <<EOF
5750 #line 5751 "configure"
5751 #include "confdefs.h"
5752 /* System header to define __stub macros and hopefully few prototypes,
5753 which can conflict with char $ac_func(); below. */
5754 #include <assert.h>
5755 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5758 char $ac_func();
5760 int main() {
5762 /* The GNU C library defines this for functions which it implements
5763 to always fail with ENOSYS. Some functions are actually named
5764 something starting with __ and the normal name is an alias. */
5765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5766 choke me
5767 #else
5768 $ac_func();
5769 #endif
5771 ; return 0; }
5773 if { (eval echo configure:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5774 rm -rf conftest*
5775 eval "ac_cv_func_$ac_func=yes"
5776 else
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5779 rm -rf conftest*
5780 eval "ac_cv_func_$ac_func=no"
5782 rm -f conftest*
5785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5786 echo "$ac_t""yes" 1>&6
5787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5788 cat >> confdefs.h <<EOF
5789 #define $ac_tr_func 1
5792 else
5793 echo "$ac_t""no" 1>&6
5795 done
5797 for ac_func in __getcwd _getcwd
5799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5800 echo "configure:5801: checking for $ac_func" >&5
5801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5803 else
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 /* System header to define __stub macros and hopefully few prototypes,
5808 which can conflict with char $ac_func(); below. */
5809 #include <assert.h>
5810 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */
5813 char $ac_func();
5815 int main() {
5817 /* The GNU C library defines this for functions which it implements
5818 to always fail with ENOSYS. Some functions are actually named
5819 something starting with __ and the normal name is an alias. */
5820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5821 choke me
5822 #else
5823 $ac_func();
5824 #endif
5826 ; return 0; }
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5829 rm -rf conftest*
5830 eval "ac_cv_func_$ac_func=yes"
5831 else
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 rm -rf conftest*
5835 eval "ac_cv_func_$ac_func=no"
5837 rm -f conftest*
5840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5843 cat >> confdefs.h <<EOF
5844 #define $ac_tr_func 1
5847 else
5848 echo "$ac_t""no" 1>&6
5850 done
5852 for ac_func in __xstat __fxstat __lxstat
5854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5855 echo "configure:5856: checking for $ac_func" >&5
5856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5858 else
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5862 /* System header to define __stub macros and hopefully few prototypes,
5863 which can conflict with char $ac_func(); below. */
5864 #include <assert.h>
5865 /* Override any gcc2 internal prototype to avoid an error. */
5866 /* We use char because int might match the return type of a gcc2
5867 builtin and then its argument prototype would still apply. */
5868 char $ac_func();
5870 int main() {
5872 /* The GNU C library defines this for functions which it implements
5873 to always fail with ENOSYS. Some functions are actually named
5874 something starting with __ and the normal name is an alias. */
5875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5876 choke me
5877 #else
5878 $ac_func();
5879 #endif
5881 ; return 0; }
5883 if { (eval echo configure:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5884 rm -rf conftest*
5885 eval "ac_cv_func_$ac_func=yes"
5886 else
5887 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5889 rm -rf conftest*
5890 eval "ac_cv_func_$ac_func=no"
5892 rm -f conftest*
5895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5896 echo "$ac_t""yes" 1>&6
5897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5898 cat >> confdefs.h <<EOF
5899 #define $ac_tr_func 1
5902 else
5903 echo "$ac_t""no" 1>&6
5905 done
5907 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5910 echo "configure:5911: checking for $ac_func" >&5
5911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5912 echo $ac_n "(cached) $ac_c" 1>&6
5913 else
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 /* System header to define __stub macros and hopefully few prototypes,
5918 which can conflict with char $ac_func(); below. */
5919 #include <assert.h>
5920 /* Override any gcc2 internal prototype to avoid an error. */
5921 /* We use char because int might match the return type of a gcc2
5922 builtin and then its argument prototype would still apply. */
5923 char $ac_func();
5925 int main() {
5927 /* The GNU C library defines this for functions which it implements
5928 to always fail with ENOSYS. Some functions are actually named
5929 something starting with __ and the normal name is an alias. */
5930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5931 choke me
5932 #else
5933 $ac_func();
5934 #endif
5936 ; return 0; }
5938 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5939 rm -rf conftest*
5940 eval "ac_cv_func_$ac_func=yes"
5941 else
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5944 rm -rf conftest*
5945 eval "ac_cv_func_$ac_func=no"
5947 rm -f conftest*
5950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5951 echo "$ac_t""yes" 1>&6
5952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5953 cat >> confdefs.h <<EOF
5954 #define $ac_tr_func 1
5957 else
5958 echo "$ac_t""no" 1>&6
5960 done
5962 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5965 echo "configure:5966: checking for $ac_func" >&5
5966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5968 else
5969 cat > conftest.$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5972 /* System header to define __stub macros and hopefully few prototypes,
5973 which can conflict with char $ac_func(); below. */
5974 #include <assert.h>
5975 /* Override any gcc2 internal prototype to avoid an error. */
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5978 char $ac_func();
5980 int main() {
5982 /* The GNU C library defines this for functions which it implements
5983 to always fail with ENOSYS. Some functions are actually named
5984 something starting with __ and the normal name is an alias. */
5985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5986 choke me
5987 #else
5988 $ac_func();
5989 #endif
5991 ; return 0; }
5993 if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5994 rm -rf conftest*
5995 eval "ac_cv_func_$ac_func=yes"
5996 else
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 rm -rf conftest*
6000 eval "ac_cv_func_$ac_func=no"
6002 rm -f conftest*
6005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6006 echo "$ac_t""yes" 1>&6
6007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6008 cat >> confdefs.h <<EOF
6009 #define $ac_tr_func 1
6012 else
6013 echo "$ac_t""no" 1>&6
6015 done
6017 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6020 echo "configure:6021: checking for $ac_func" >&5
6021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6023 else
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 /* System header to define __stub macros and hopefully few prototypes,
6028 which can conflict with char $ac_func(); below. */
6029 #include <assert.h>
6030 /* Override any gcc2 internal prototype to avoid an error. */
6031 /* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6033 char $ac_func();
6035 int main() {
6037 /* The GNU C library defines this for functions which it implements
6038 to always fail with ENOSYS. Some functions are actually named
6039 something starting with __ and the normal name is an alias. */
6040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6041 choke me
6042 #else
6043 $ac_func();
6044 #endif
6046 ; return 0; }
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049 rm -rf conftest*
6050 eval "ac_cv_func_$ac_func=yes"
6051 else
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6054 rm -rf conftest*
6055 eval "ac_cv_func_$ac_func=no"
6057 rm -f conftest*
6060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6061 echo "$ac_t""yes" 1>&6
6062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6063 cat >> confdefs.h <<EOF
6064 #define $ac_tr_func 1
6067 else
6068 echo "$ac_t""no" 1>&6
6070 done
6072 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6075 echo "configure:6076: checking for $ac_func" >&5
6076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6078 else
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6082 /* System header to define __stub macros and hopefully few prototypes,
6083 which can conflict with char $ac_func(); below. */
6084 #include <assert.h>
6085 /* Override any gcc2 internal prototype to avoid an error. */
6086 /* We use char because int might match the return type of a gcc2
6087 builtin and then its argument prototype would still apply. */
6088 char $ac_func();
6090 int main() {
6092 /* The GNU C library defines this for functions which it implements
6093 to always fail with ENOSYS. Some functions are actually named
6094 something starting with __ and the normal name is an alias. */
6095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6096 choke me
6097 #else
6098 $ac_func();
6099 #endif
6101 ; return 0; }
6103 if { (eval echo configure:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6104 rm -rf conftest*
6105 eval "ac_cv_func_$ac_func=yes"
6106 else
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6109 rm -rf conftest*
6110 eval "ac_cv_func_$ac_func=no"
6112 rm -f conftest*
6115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6116 echo "$ac_t""yes" 1>&6
6117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6118 cat >> confdefs.h <<EOF
6119 #define $ac_tr_func 1
6122 else
6123 echo "$ac_t""no" 1>&6
6125 done
6127 for ac_func in _write __write _fork __fork
6129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_func" >&5
6131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6133 else
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func(); below. */
6139 #include <assert.h>
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6143 char $ac_func();
6145 int main() {
6147 /* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6151 choke me
6152 #else
6153 $ac_func();
6154 #endif
6156 ; return 0; }
6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6159 rm -rf conftest*
6160 eval "ac_cv_func_$ac_func=yes"
6161 else
6162 echo "configure: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6164 rm -rf conftest*
6165 eval "ac_cv_func_$ac_func=no"
6167 rm -f conftest*
6170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6173 cat >> confdefs.h <<EOF
6174 #define $ac_tr_func 1
6177 else
6178 echo "$ac_t""no" 1>&6
6180 done
6182 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6185 echo "configure:6186: checking for $ac_func" >&5
6186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6188 else
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6192 /* System header to define __stub macros and hopefully few prototypes,
6193 which can conflict with char $ac_func(); below. */
6194 #include <assert.h>
6195 /* Override any gcc2 internal prototype to avoid an error. */
6196 /* We use char because int might match the return type of a gcc2
6197 builtin and then its argument prototype would still apply. */
6198 char $ac_func();
6200 int main() {
6202 /* The GNU C library defines this for functions which it implements
6203 to always fail with ENOSYS. Some functions are actually named
6204 something starting with __ and the normal name is an alias. */
6205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6206 choke me
6207 #else
6208 $ac_func();
6209 #endif
6211 ; return 0; }
6213 if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6214 rm -rf conftest*
6215 eval "ac_cv_func_$ac_func=yes"
6216 else
6217 echo "configure: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6219 rm -rf conftest*
6220 eval "ac_cv_func_$ac_func=no"
6222 rm -f conftest*
6225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6226 echo "$ac_t""yes" 1>&6
6227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6228 cat >> confdefs.h <<EOF
6229 #define $ac_tr_func 1
6232 else
6233 echo "$ac_t""no" 1>&6
6235 done
6237 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6240 echo "configure:6241: checking for $ac_func" >&5
6241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6243 else
6244 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6247 /* System header to define __stub macros and hopefully few prototypes,
6248 which can conflict with char $ac_func(); below. */
6249 #include <assert.h>
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6253 char $ac_func();
6255 int main() {
6257 /* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6261 choke me
6262 #else
6263 $ac_func();
6264 #endif
6266 ; return 0; }
6268 if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6269 rm -rf conftest*
6270 eval "ac_cv_func_$ac_func=yes"
6271 else
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 rm -rf conftest*
6275 eval "ac_cv_func_$ac_func=no"
6277 rm -f conftest*
6280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6283 cat >> confdefs.h <<EOF
6284 #define $ac_tr_func 1
6287 else
6288 echo "$ac_t""no" 1>&6
6290 done
6292 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_func" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6298 else
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char $ac_func(); below. */
6304 #include <assert.h>
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6308 char $ac_func();
6310 int main() {
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6316 choke me
6317 #else
6318 $ac_func();
6319 #endif
6321 ; return 0; }
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6324 rm -rf conftest*
6325 eval "ac_cv_func_$ac_func=yes"
6326 else
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6329 rm -rf conftest*
6330 eval "ac_cv_func_$ac_func=no"
6332 rm -f conftest*
6335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6338 cat >> confdefs.h <<EOF
6339 #define $ac_tr_func 1
6342 else
6343 echo "$ac_t""no" 1>&6
6345 done
6347 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6350 echo "configure:6351: checking for $ac_func" >&5
6351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6353 else
6354 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func(); below. */
6359 #include <assert.h>
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6363 char $ac_func();
6365 int main() {
6367 /* The GNU C library defines this for functions which it implements
6368 to always fail with ENOSYS. Some functions are actually named
6369 something starting with __ and the normal name is an alias. */
6370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6371 choke me
6372 #else
6373 $ac_func();
6374 #endif
6376 ; return 0; }
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6379 rm -rf conftest*
6380 eval "ac_cv_func_$ac_func=yes"
6381 else
6382 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5
6384 rm -rf conftest*
6385 eval "ac_cv_func_$ac_func=no"
6387 rm -f conftest*
6390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6391 echo "$ac_t""yes" 1>&6
6392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6393 cat >> confdefs.h <<EOF
6394 #define $ac_tr_func 1
6397 else
6398 echo "$ac_t""no" 1>&6
6400 done
6402 for ac_func in open64 _open64 __open64 creat64
6404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6405 echo "configure:6406: checking for $ac_func" >&5
6406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6407 echo $ac_n "(cached) $ac_c" 1>&6
6408 else
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* System header to define __stub macros and hopefully few prototypes,
6413 which can conflict with char $ac_func(); below. */
6414 #include <assert.h>
6415 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6418 char $ac_func();
6420 int main() {
6422 /* The GNU C library defines this for functions which it implements
6423 to always fail with ENOSYS. Some functions are actually named
6424 something starting with __ and the normal name is an alias. */
6425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6426 choke me
6427 #else
6428 $ac_func();
6429 #endif
6431 ; return 0; }
6433 if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6434 rm -rf conftest*
6435 eval "ac_cv_func_$ac_func=yes"
6436 else
6437 echo "configure: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 rm -rf conftest*
6440 eval "ac_cv_func_$ac_func=no"
6442 rm -f conftest*
6445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6446 echo "$ac_t""yes" 1>&6
6447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6448 cat >> confdefs.h <<EOF
6449 #define $ac_tr_func 1
6452 else
6453 echo "$ac_t""no" 1>&6
6455 done
6459 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6462 if test x$ac_cv_func_stat64 = xno ; then
6463 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6464 echo "configure:6465: checking for stat64 in <sys/stat.h>" >&5
6465 cat > conftest.$ac_ext <<EOF
6466 #line 6467 "configure"
6467 #include "confdefs.h"
6469 #if defined(HAVE_UNISTD_H)
6470 #include <unistd.h>
6471 #endif
6472 #include <sys/stat.h>
6474 int main() {
6475 struct stat64 st64; exit(stat64(".",&st64));
6476 ; return 0; }
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6479 rm -rf conftest*
6480 ac_cv_func_stat64=yes
6481 else
6482 echo "configure: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6485 rm -f conftest*
6486 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6487 if test x$ac_cv_func_stat64 = xyes ; then
6488 cat >> confdefs.h <<\EOF
6489 #define HAVE_STAT64 1
6495 if test x$ac_cv_func_lstat64 = xno ; then
6496 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6497 echo "configure:6498: checking for lstat64 in <sys/stat.h>" >&5
6498 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6502 #if defined(HAVE_UNISTD_H)
6503 #include <unistd.h>
6504 #endif
6505 #include <sys/stat.h>
6507 int main() {
6508 struct stat64 st64; exit(lstat64(".",&st64));
6509 ; return 0; }
6511 if { (eval echo configure:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6512 rm -rf conftest*
6513 ac_cv_func_lstat64=yes
6514 else
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 rm -f conftest*
6519 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6520 if test x$ac_cv_func_lstat64 = xyes ; then
6521 cat >> confdefs.h <<\EOF
6522 #define HAVE_LSTAT64 1
6528 if test x$ac_cv_func_fstat64 = xno ; then
6529 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6530 echo "configure:6531: checking for fstat64 in <sys/stat.h>" >&5
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6535 #if defined(HAVE_UNISTD_H)
6536 #include <unistd.h>
6537 #endif
6538 #include <sys/stat.h>
6540 int main() {
6541 struct stat64 st64; exit(fstat64(0,&st64));
6542 ; return 0; }
6544 if { (eval echo configure:6545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6545 rm -rf conftest*
6546 ac_cv_func_fstat64=yes
6547 else
6548 echo "configure: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6551 rm -f conftest*
6552 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6553 if test x$ac_cv_func_fstat64 = xyes ; then
6554 cat >> confdefs.h <<\EOF
6555 #define HAVE_FSTAT64 1
6562 # If no strcasecmp, check for it in some known places
6563 # It is in -lresolv on ReliantUNIX and UnixWare
6564 # -lresolve *must* follow -lnsl for name resolution to work properly
6567 if test x$ac_cv_func_strcasecmp = xno ; then
6568 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6569 echo "configure:6570: checking for strcasecmp in -lresolv" >&5
6570 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6573 else
6574 ac_save_LIBS="$LIBS"
6575 LIBS="-lresolv $LIBS"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char strcasecmp();
6584 int main() {
6585 strcasecmp()
6586 ; return 0; }
6588 if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6589 rm -rf conftest*
6590 eval "ac_cv_lib_$ac_lib_var=yes"
6591 else
6592 echo "configure: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6594 rm -rf conftest*
6595 eval "ac_cv_lib_$ac_lib_var=no"
6597 rm -f conftest*
6598 LIBS="$ac_save_LIBS"
6601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6603 LIBS="$LIBS -lresolv"
6604 cat >> confdefs.h <<\EOF
6605 #define HAVE_STRCASECMP 1
6608 else
6609 echo "$ac_t""no" 1>&6
6615 # Check for the functions putprpwnam, set_auth_parameters,
6616 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6617 # Needed for OSF1 and HPUX.
6620 case "$LIBS" in
6621 *-lsecurity*) for ac_func in putprpwnam
6623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6624 echo "configure:6625: checking for $ac_func" >&5
6625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6627 else
6628 cat > conftest.$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 /* System header to define __stub macros and hopefully few prototypes,
6632 which can conflict with char $ac_func(); below. */
6633 #include <assert.h>
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6637 char $ac_func();
6639 int main() {
6641 /* The GNU C library defines this for functions which it implements
6642 to always fail with ENOSYS. Some functions are actually named
6643 something starting with __ and the normal name is an alias. */
6644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6645 choke me
6646 #else
6647 $ac_func();
6648 #endif
6650 ; return 0; }
6652 if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6653 rm -rf conftest*
6654 eval "ac_cv_func_$ac_func=yes"
6655 else
6656 echo "configure: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6658 rm -rf conftest*
6659 eval "ac_cv_func_$ac_func=no"
6661 rm -f conftest*
6664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6665 echo "$ac_t""yes" 1>&6
6666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6667 cat >> confdefs.h <<EOF
6668 #define $ac_tr_func 1
6671 else
6672 echo "$ac_t""no" 1>&6
6674 done
6676 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6677 echo "configure:6678: checking for putprpwnam in -lsecurity" >&5
6678 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6680 echo $ac_n "(cached) $ac_c" 1>&6
6681 else
6682 ac_save_LIBS="$LIBS"
6683 LIBS="-lsecurity $LIBS"
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* Override any gcc2 internal prototype to avoid an error. */
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6690 char putprpwnam();
6692 int main() {
6693 putprpwnam()
6694 ; return 0; }
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6697 rm -rf conftest*
6698 eval "ac_cv_lib_$ac_lib_var=yes"
6699 else
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 rm -rf conftest*
6703 eval "ac_cv_lib_$ac_lib_var=no"
6705 rm -f conftest*
6706 LIBS="$ac_save_LIBS"
6709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6712 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6713 cat >> confdefs.h <<EOF
6714 #define $ac_tr_lib 1
6717 LIBS="-lsecurity $LIBS"
6719 else
6720 echo "$ac_t""no" 1>&6
6723 for ac_func in putprpwnam
6725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6726 echo "configure:6727: checking for $ac_func" >&5
6727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6729 else
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 /* System header to define __stub macros and hopefully few prototypes,
6734 which can conflict with char $ac_func(); below. */
6735 #include <assert.h>
6736 /* Override any gcc2 internal prototype to avoid an error. */
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739 char $ac_func();
6741 int main() {
6743 /* The GNU C library defines this for functions which it implements
6744 to always fail with ENOSYS. Some functions are actually named
6745 something starting with __ and the normal name is an alias. */
6746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6747 choke me
6748 #else
6749 $ac_func();
6750 #endif
6752 ; return 0; }
6754 if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6755 rm -rf conftest*
6756 eval "ac_cv_func_$ac_func=yes"
6757 else
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6760 rm -rf conftest*
6761 eval "ac_cv_func_$ac_func=no"
6763 rm -f conftest*
6766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6769 cat >> confdefs.h <<EOF
6770 #define $ac_tr_func 1
6773 else
6774 echo "$ac_t""no" 1>&6
6776 done
6779 esac
6781 case "$LIBS" in
6782 *-lsec*) for ac_func in putprpwnam
6784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6785 echo "configure:6786: checking for $ac_func" >&5
6786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6788 else
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6792 /* System header to define __stub macros and hopefully few prototypes,
6793 which can conflict with char $ac_func(); below. */
6794 #include <assert.h>
6795 /* Override any gcc2 internal prototype to avoid an error. */
6796 /* We use char because int might match the return type of a gcc2
6797 builtin and then its argument prototype would still apply. */
6798 char $ac_func();
6800 int main() {
6802 /* The GNU C library defines this for functions which it implements
6803 to always fail with ENOSYS. Some functions are actually named
6804 something starting with __ and the normal name is an alias. */
6805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6806 choke me
6807 #else
6808 $ac_func();
6809 #endif
6811 ; return 0; }
6813 if { (eval echo configure:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6814 rm -rf conftest*
6815 eval "ac_cv_func_$ac_func=yes"
6816 else
6817 echo "configure: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6819 rm -rf conftest*
6820 eval "ac_cv_func_$ac_func=no"
6822 rm -f conftest*
6825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6828 cat >> confdefs.h <<EOF
6829 #define $ac_tr_func 1
6832 else
6833 echo "$ac_t""no" 1>&6
6835 done
6837 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6838 echo "configure:6839: checking for putprpwnam in -lsec" >&5
6839 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6841 echo $ac_n "(cached) $ac_c" 1>&6
6842 else
6843 ac_save_LIBS="$LIBS"
6844 LIBS="-lsec $LIBS"
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851 char putprpwnam();
6853 int main() {
6854 putprpwnam()
6855 ; return 0; }
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6858 rm -rf conftest*
6859 eval "ac_cv_lib_$ac_lib_var=yes"
6860 else
6861 echo "configure: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6863 rm -rf conftest*
6864 eval "ac_cv_lib_$ac_lib_var=no"
6866 rm -f conftest*
6867 LIBS="$ac_save_LIBS"
6870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6871 echo "$ac_t""yes" 1>&6
6872 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6874 cat >> confdefs.h <<EOF
6875 #define $ac_tr_lib 1
6878 LIBS="-lsec $LIBS"
6880 else
6881 echo "$ac_t""no" 1>&6
6884 for ac_func in putprpwnam
6886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6887 echo "configure:6888: checking for $ac_func" >&5
6888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6890 else
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6894 /* System header to define __stub macros and hopefully few prototypes,
6895 which can conflict with char $ac_func(); below. */
6896 #include <assert.h>
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 /* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6900 char $ac_func();
6902 int main() {
6904 /* The GNU C library defines this for functions which it implements
6905 to always fail with ENOSYS. Some functions are actually named
6906 something starting with __ and the normal name is an alias. */
6907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6908 choke me
6909 #else
6910 $ac_func();
6911 #endif
6913 ; return 0; }
6915 if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6916 rm -rf conftest*
6917 eval "ac_cv_func_$ac_func=yes"
6918 else
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6921 rm -rf conftest*
6922 eval "ac_cv_func_$ac_func=no"
6924 rm -f conftest*
6927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6928 echo "$ac_t""yes" 1>&6
6929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6930 cat >> confdefs.h <<EOF
6931 #define $ac_tr_func 1
6934 else
6935 echo "$ac_t""no" 1>&6
6937 done
6940 esac
6943 case "$LIBS" in
6944 *-lsecurity*) for ac_func in set_auth_parameters
6946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6947 echo "configure:6948: checking for $ac_func" >&5
6948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6949 echo $ac_n "(cached) $ac_c" 1>&6
6950 else
6951 cat > conftest.$ac_ext <<EOF
6952 #line 6953 "configure"
6953 #include "confdefs.h"
6954 /* System header to define __stub macros and hopefully few prototypes,
6955 which can conflict with char $ac_func(); below. */
6956 #include <assert.h>
6957 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6960 char $ac_func();
6962 int main() {
6964 /* The GNU C library defines this for functions which it implements
6965 to always fail with ENOSYS. Some functions are actually named
6966 something starting with __ and the normal name is an alias. */
6967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6968 choke me
6969 #else
6970 $ac_func();
6971 #endif
6973 ; return 0; }
6975 if { (eval echo configure:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6976 rm -rf conftest*
6977 eval "ac_cv_func_$ac_func=yes"
6978 else
6979 echo "configure: failed program was:" >&5
6980 cat conftest.$ac_ext >&5
6981 rm -rf conftest*
6982 eval "ac_cv_func_$ac_func=no"
6984 rm -f conftest*
6987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6988 echo "$ac_t""yes" 1>&6
6989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6990 cat >> confdefs.h <<EOF
6991 #define $ac_tr_func 1
6994 else
6995 echo "$ac_t""no" 1>&6
6997 done
6999 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7000 echo "configure:7001: checking for set_auth_parameters in -lsecurity" >&5
7001 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7004 else
7005 ac_save_LIBS="$LIBS"
7006 LIBS="-lsecurity $LIBS"
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* Override any gcc2 internal prototype to avoid an error. */
7011 /* We use char because int might match the return type of a gcc2
7012 builtin and then its argument prototype would still apply. */
7013 char set_auth_parameters();
7015 int main() {
7016 set_auth_parameters()
7017 ; return 0; }
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7020 rm -rf conftest*
7021 eval "ac_cv_lib_$ac_lib_var=yes"
7022 else
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7025 rm -rf conftest*
7026 eval "ac_cv_lib_$ac_lib_var=no"
7028 rm -f conftest*
7029 LIBS="$ac_save_LIBS"
7032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7034 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7036 cat >> confdefs.h <<EOF
7037 #define $ac_tr_lib 1
7040 LIBS="-lsecurity $LIBS"
7042 else
7043 echo "$ac_t""no" 1>&6
7046 for ac_func in set_auth_parameters
7048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7049 echo "configure:7050: checking for $ac_func" >&5
7050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7052 else
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7056 /* System header to define __stub macros and hopefully few prototypes,
7057 which can conflict with char $ac_func(); below. */
7058 #include <assert.h>
7059 /* Override any gcc2 internal prototype to avoid an error. */
7060 /* We use char because int might match the return type of a gcc2
7061 builtin and then its argument prototype would still apply. */
7062 char $ac_func();
7064 int main() {
7066 /* The GNU C library defines this for functions which it implements
7067 to always fail with ENOSYS. Some functions are actually named
7068 something starting with __ and the normal name is an alias. */
7069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7070 choke me
7071 #else
7072 $ac_func();
7073 #endif
7075 ; return 0; }
7077 if { (eval echo configure:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7078 rm -rf conftest*
7079 eval "ac_cv_func_$ac_func=yes"
7080 else
7081 echo "configure: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7083 rm -rf conftest*
7084 eval "ac_cv_func_$ac_func=no"
7086 rm -f conftest*
7089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7092 cat >> confdefs.h <<EOF
7093 #define $ac_tr_func 1
7096 else
7097 echo "$ac_t""no" 1>&6
7099 done
7102 esac
7104 case "$LIBS" in
7105 *-lsec*) for ac_func in set_auth_parameters
7107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7108 echo "configure:7109: checking for $ac_func" >&5
7109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7111 else
7112 cat > conftest.$ac_ext <<EOF
7113 #line 7114 "configure"
7114 #include "confdefs.h"
7115 /* System header to define __stub macros and hopefully few prototypes,
7116 which can conflict with char $ac_func(); below. */
7117 #include <assert.h>
7118 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7121 char $ac_func();
7123 int main() {
7125 /* The GNU C library defines this for functions which it implements
7126 to always fail with ENOSYS. Some functions are actually named
7127 something starting with __ and the normal name is an alias. */
7128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7129 choke me
7130 #else
7131 $ac_func();
7132 #endif
7134 ; return 0; }
7136 if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7137 rm -rf conftest*
7138 eval "ac_cv_func_$ac_func=yes"
7139 else
7140 echo "configure: failed program was:" >&5
7141 cat conftest.$ac_ext >&5
7142 rm -rf conftest*
7143 eval "ac_cv_func_$ac_func=no"
7145 rm -f conftest*
7148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7149 echo "$ac_t""yes" 1>&6
7150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7151 cat >> confdefs.h <<EOF
7152 #define $ac_tr_func 1
7155 else
7156 echo "$ac_t""no" 1>&6
7158 done
7160 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7161 echo "configure:7162: checking for set_auth_parameters in -lsec" >&5
7162 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7164 echo $ac_n "(cached) $ac_c" 1>&6
7165 else
7166 ac_save_LIBS="$LIBS"
7167 LIBS="-lsec $LIBS"
7168 cat > conftest.$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7171 /* Override any gcc2 internal prototype to avoid an error. */
7172 /* We use char because int might match the return type of a gcc2
7173 builtin and then its argument prototype would still apply. */
7174 char set_auth_parameters();
7176 int main() {
7177 set_auth_parameters()
7178 ; return 0; }
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7181 rm -rf conftest*
7182 eval "ac_cv_lib_$ac_lib_var=yes"
7183 else
7184 echo "configure: failed program was:" >&5
7185 cat conftest.$ac_ext >&5
7186 rm -rf conftest*
7187 eval "ac_cv_lib_$ac_lib_var=no"
7189 rm -f conftest*
7190 LIBS="$ac_save_LIBS"
7193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7194 echo "$ac_t""yes" 1>&6
7195 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7196 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7197 cat >> confdefs.h <<EOF
7198 #define $ac_tr_lib 1
7201 LIBS="-lsec $LIBS"
7203 else
7204 echo "$ac_t""no" 1>&6
7207 for ac_func in set_auth_parameters
7209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7210 echo "configure:7211: checking for $ac_func" >&5
7211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7213 else
7214 cat > conftest.$ac_ext <<EOF
7215 #line 7216 "configure"
7216 #include "confdefs.h"
7217 /* System header to define __stub macros and hopefully few prototypes,
7218 which can conflict with char $ac_func(); below. */
7219 #include <assert.h>
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7223 char $ac_func();
7225 int main() {
7227 /* The GNU C library defines this for functions which it implements
7228 to always fail with ENOSYS. Some functions are actually named
7229 something starting with __ and the normal name is an alias. */
7230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7231 choke me
7232 #else
7233 $ac_func();
7234 #endif
7236 ; return 0; }
7238 if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7239 rm -rf conftest*
7240 eval "ac_cv_func_$ac_func=yes"
7241 else
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 rm -rf conftest*
7245 eval "ac_cv_func_$ac_func=no"
7247 rm -f conftest*
7250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7251 echo "$ac_t""yes" 1>&6
7252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7253 cat >> confdefs.h <<EOF
7254 #define $ac_tr_func 1
7257 else
7258 echo "$ac_t""no" 1>&6
7260 done
7263 esac
7266 # UnixWare 7.x has its getspnam in -lgen
7267 case "$LIBS" in
7268 *-lgen*) for ac_func in getspnam
7270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7271 echo "configure:7272: checking for $ac_func" >&5
7272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7274 else
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7278 /* System header to define __stub macros and hopefully few prototypes,
7279 which can conflict with char $ac_func(); below. */
7280 #include <assert.h>
7281 /* Override any gcc2 internal prototype to avoid an error. */
7282 /* We use char because int might match the return type of a gcc2
7283 builtin and then its argument prototype would still apply. */
7284 char $ac_func();
7286 int main() {
7288 /* The GNU C library defines this for functions which it implements
7289 to always fail with ENOSYS. Some functions are actually named
7290 something starting with __ and the normal name is an alias. */
7291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7292 choke me
7293 #else
7294 $ac_func();
7295 #endif
7297 ; return 0; }
7299 if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7300 rm -rf conftest*
7301 eval "ac_cv_func_$ac_func=yes"
7302 else
7303 echo "configure: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7305 rm -rf conftest*
7306 eval "ac_cv_func_$ac_func=no"
7308 rm -f conftest*
7311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7312 echo "$ac_t""yes" 1>&6
7313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7314 cat >> confdefs.h <<EOF
7315 #define $ac_tr_func 1
7318 else
7319 echo "$ac_t""no" 1>&6
7321 done
7323 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7324 echo "configure:7325: checking for getspnam in -lgen" >&5
7325 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7328 else
7329 ac_save_LIBS="$LIBS"
7330 LIBS="-lgen $LIBS"
7331 cat > conftest.$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7334 /* Override any gcc2 internal prototype to avoid an error. */
7335 /* We use char because int might match the return type of a gcc2
7336 builtin and then its argument prototype would still apply. */
7337 char getspnam();
7339 int main() {
7340 getspnam()
7341 ; return 0; }
7343 if { (eval echo configure:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7344 rm -rf conftest*
7345 eval "ac_cv_lib_$ac_lib_var=yes"
7346 else
7347 echo "configure: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7349 rm -rf conftest*
7350 eval "ac_cv_lib_$ac_lib_var=no"
7352 rm -f conftest*
7353 LIBS="$ac_save_LIBS"
7356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7357 echo "$ac_t""yes" 1>&6
7358 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7360 cat >> confdefs.h <<EOF
7361 #define $ac_tr_lib 1
7364 LIBS="-lgen $LIBS"
7366 else
7367 echo "$ac_t""no" 1>&6
7370 for ac_func in getspnam
7372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7373 echo "configure:7374: checking for $ac_func" >&5
7374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7376 else
7377 cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7380 /* System header to define __stub macros and hopefully few prototypes,
7381 which can conflict with char $ac_func(); below. */
7382 #include <assert.h>
7383 /* Override any gcc2 internal prototype to avoid an error. */
7384 /* We use char because int might match the return type of a gcc2
7385 builtin and then its argument prototype would still apply. */
7386 char $ac_func();
7388 int main() {
7390 /* The GNU C library defines this for functions which it implements
7391 to always fail with ENOSYS. Some functions are actually named
7392 something starting with __ and the normal name is an alias. */
7393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7394 choke me
7395 #else
7396 $ac_func();
7397 #endif
7399 ; return 0; }
7401 if { (eval echo configure:7402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7402 rm -rf conftest*
7403 eval "ac_cv_func_$ac_func=yes"
7404 else
7405 echo "configure: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 rm -rf conftest*
7408 eval "ac_cv_func_$ac_func=no"
7410 rm -f conftest*
7413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7414 echo "$ac_t""yes" 1>&6
7415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7416 cat >> confdefs.h <<EOF
7417 #define $ac_tr_func 1
7420 else
7421 echo "$ac_t""no" 1>&6
7423 done
7426 esac
7429 case "$LIBS" in
7430 *-lsecurity*) for ac_func in getspnam
7432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7433 echo "configure:7434: checking for $ac_func" >&5
7434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7435 echo $ac_n "(cached) $ac_c" 1>&6
7436 else
7437 cat > conftest.$ac_ext <<EOF
7438 #line 7439 "configure"
7439 #include "confdefs.h"
7440 /* System header to define __stub macros and hopefully few prototypes,
7441 which can conflict with char $ac_func(); below. */
7442 #include <assert.h>
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 /* We use char because int might match the return type of a gcc2
7445 builtin and then its argument prototype would still apply. */
7446 char $ac_func();
7448 int main() {
7450 /* The GNU C library defines this for functions which it implements
7451 to always fail with ENOSYS. Some functions are actually named
7452 something starting with __ and the normal name is an alias. */
7453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7454 choke me
7455 #else
7456 $ac_func();
7457 #endif
7459 ; return 0; }
7461 if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7462 rm -rf conftest*
7463 eval "ac_cv_func_$ac_func=yes"
7464 else
7465 echo "configure: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7467 rm -rf conftest*
7468 eval "ac_cv_func_$ac_func=no"
7470 rm -f conftest*
7473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7474 echo "$ac_t""yes" 1>&6
7475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7476 cat >> confdefs.h <<EOF
7477 #define $ac_tr_func 1
7480 else
7481 echo "$ac_t""no" 1>&6
7483 done
7485 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7486 echo "configure:7487: checking for getspnam in -lsecurity" >&5
7487 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7489 echo $ac_n "(cached) $ac_c" 1>&6
7490 else
7491 ac_save_LIBS="$LIBS"
7492 LIBS="-lsecurity $LIBS"
7493 cat > conftest.$ac_ext <<EOF
7494 #line 7495 "configure"
7495 #include "confdefs.h"
7496 /* Override any gcc2 internal prototype to avoid an error. */
7497 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7499 char getspnam();
7501 int main() {
7502 getspnam()
7503 ; return 0; }
7505 if { (eval echo configure:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7506 rm -rf conftest*
7507 eval "ac_cv_lib_$ac_lib_var=yes"
7508 else
7509 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 rm -rf conftest*
7512 eval "ac_cv_lib_$ac_lib_var=no"
7514 rm -f conftest*
7515 LIBS="$ac_save_LIBS"
7518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7519 echo "$ac_t""yes" 1>&6
7520 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7522 cat >> confdefs.h <<EOF
7523 #define $ac_tr_lib 1
7526 LIBS="-lsecurity $LIBS"
7528 else
7529 echo "$ac_t""no" 1>&6
7532 for ac_func in getspnam
7534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7535 echo "configure:7536: checking for $ac_func" >&5
7536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7537 echo $ac_n "(cached) $ac_c" 1>&6
7538 else
7539 cat > conftest.$ac_ext <<EOF
7540 #line 7541 "configure"
7541 #include "confdefs.h"
7542 /* System header to define __stub macros and hopefully few prototypes,
7543 which can conflict with char $ac_func(); below. */
7544 #include <assert.h>
7545 /* Override any gcc2 internal prototype to avoid an error. */
7546 /* We use char because int might match the return type of a gcc2
7547 builtin and then its argument prototype would still apply. */
7548 char $ac_func();
7550 int main() {
7552 /* The GNU C library defines this for functions which it implements
7553 to always fail with ENOSYS. Some functions are actually named
7554 something starting with __ and the normal name is an alias. */
7555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7556 choke me
7557 #else
7558 $ac_func();
7559 #endif
7561 ; return 0; }
7563 if { (eval echo configure:7564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7564 rm -rf conftest*
7565 eval "ac_cv_func_$ac_func=yes"
7566 else
7567 echo "configure: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7569 rm -rf conftest*
7570 eval "ac_cv_func_$ac_func=no"
7572 rm -f conftest*
7575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7576 echo "$ac_t""yes" 1>&6
7577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7578 cat >> confdefs.h <<EOF
7579 #define $ac_tr_func 1
7582 else
7583 echo "$ac_t""no" 1>&6
7585 done
7588 esac
7590 case "$LIBS" in
7591 *-lsec*) for ac_func in getspnam
7593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7594 echo "configure:7595: checking for $ac_func" >&5
7595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7597 else
7598 cat > conftest.$ac_ext <<EOF
7599 #line 7600 "configure"
7600 #include "confdefs.h"
7601 /* System header to define __stub macros and hopefully few prototypes,
7602 which can conflict with char $ac_func(); below. */
7603 #include <assert.h>
7604 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char $ac_func();
7609 int main() {
7611 /* The GNU C library defines this for functions which it implements
7612 to always fail with ENOSYS. Some functions are actually named
7613 something starting with __ and the normal name is an alias. */
7614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7615 choke me
7616 #else
7617 $ac_func();
7618 #endif
7620 ; return 0; }
7622 if { (eval echo configure:7623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7623 rm -rf conftest*
7624 eval "ac_cv_func_$ac_func=yes"
7625 else
7626 echo "configure: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7628 rm -rf conftest*
7629 eval "ac_cv_func_$ac_func=no"
7631 rm -f conftest*
7634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7635 echo "$ac_t""yes" 1>&6
7636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7637 cat >> confdefs.h <<EOF
7638 #define $ac_tr_func 1
7641 else
7642 echo "$ac_t""no" 1>&6
7644 done
7646 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7647 echo "configure:7648: checking for getspnam in -lsec" >&5
7648 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7651 else
7652 ac_save_LIBS="$LIBS"
7653 LIBS="-lsec $LIBS"
7654 cat > conftest.$ac_ext <<EOF
7655 #line 7656 "configure"
7656 #include "confdefs.h"
7657 /* Override any gcc2 internal prototype to avoid an error. */
7658 /* We use char because int might match the return type of a gcc2
7659 builtin and then its argument prototype would still apply. */
7660 char getspnam();
7662 int main() {
7663 getspnam()
7664 ; return 0; }
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7667 rm -rf conftest*
7668 eval "ac_cv_lib_$ac_lib_var=yes"
7669 else
7670 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7672 rm -rf conftest*
7673 eval "ac_cv_lib_$ac_lib_var=no"
7675 rm -f conftest*
7676 LIBS="$ac_save_LIBS"
7679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7683 cat >> confdefs.h <<EOF
7684 #define $ac_tr_lib 1
7687 LIBS="-lsec $LIBS"
7689 else
7690 echo "$ac_t""no" 1>&6
7693 for ac_func in getspnam
7695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7696 echo "configure:7697: checking for $ac_func" >&5
7697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7699 else
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7703 /* System header to define __stub macros and hopefully few prototypes,
7704 which can conflict with char $ac_func(); below. */
7705 #include <assert.h>
7706 /* Override any gcc2 internal prototype to avoid an error. */
7707 /* We use char because int might match the return type of a gcc2
7708 builtin and then its argument prototype would still apply. */
7709 char $ac_func();
7711 int main() {
7713 /* The GNU C library defines this for functions which it implements
7714 to always fail with ENOSYS. Some functions are actually named
7715 something starting with __ and the normal name is an alias. */
7716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7717 choke me
7718 #else
7719 $ac_func();
7720 #endif
7722 ; return 0; }
7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7725 rm -rf conftest*
7726 eval "ac_cv_func_$ac_func=yes"
7727 else
7728 echo "configure: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 rm -rf conftest*
7731 eval "ac_cv_func_$ac_func=no"
7733 rm -f conftest*
7736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7737 echo "$ac_t""yes" 1>&6
7738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7739 cat >> confdefs.h <<EOF
7740 #define $ac_tr_func 1
7743 else
7744 echo "$ac_t""no" 1>&6
7746 done
7749 esac
7752 case "$LIBS" in
7753 *-lsecurity*) for ac_func in bigcrypt
7755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7756 echo "configure:7757: checking for $ac_func" >&5
7757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7759 else
7760 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7763 /* System header to define __stub macros and hopefully few prototypes,
7764 which can conflict with char $ac_func(); below. */
7765 #include <assert.h>
7766 /* Override any gcc2 internal prototype to avoid an error. */
7767 /* We use char because int might match the return type of a gcc2
7768 builtin and then its argument prototype would still apply. */
7769 char $ac_func();
7771 int main() {
7773 /* The GNU C library defines this for functions which it implements
7774 to always fail with ENOSYS. Some functions are actually named
7775 something starting with __ and the normal name is an alias. */
7776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7777 choke me
7778 #else
7779 $ac_func();
7780 #endif
7782 ; return 0; }
7784 if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7785 rm -rf conftest*
7786 eval "ac_cv_func_$ac_func=yes"
7787 else
7788 echo "configure: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 rm -rf conftest*
7791 eval "ac_cv_func_$ac_func=no"
7793 rm -f conftest*
7796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7797 echo "$ac_t""yes" 1>&6
7798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7799 cat >> confdefs.h <<EOF
7800 #define $ac_tr_func 1
7803 else
7804 echo "$ac_t""no" 1>&6
7806 done
7808 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7809 echo "configure:7810: checking for bigcrypt in -lsecurity" >&5
7810 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7813 else
7814 ac_save_LIBS="$LIBS"
7815 LIBS="-lsecurity $LIBS"
7816 cat > conftest.$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819 /* Override any gcc2 internal prototype to avoid an error. */
7820 /* We use char because int might match the return type of a gcc2
7821 builtin and then its argument prototype would still apply. */
7822 char bigcrypt();
7824 int main() {
7825 bigcrypt()
7826 ; return 0; }
7828 if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829 rm -rf conftest*
7830 eval "ac_cv_lib_$ac_lib_var=yes"
7831 else
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 rm -rf conftest*
7835 eval "ac_cv_lib_$ac_lib_var=no"
7837 rm -f conftest*
7838 LIBS="$ac_save_LIBS"
7841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7842 echo "$ac_t""yes" 1>&6
7843 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7845 cat >> confdefs.h <<EOF
7846 #define $ac_tr_lib 1
7849 LIBS="-lsecurity $LIBS"
7851 else
7852 echo "$ac_t""no" 1>&6
7855 for ac_func in bigcrypt
7857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7858 echo "configure:7859: checking for $ac_func" >&5
7859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7861 else
7862 cat > conftest.$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7865 /* System header to define __stub macros and hopefully few prototypes,
7866 which can conflict with char $ac_func(); below. */
7867 #include <assert.h>
7868 /* Override any gcc2 internal prototype to avoid an error. */
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871 char $ac_func();
7873 int main() {
7875 /* The GNU C library defines this for functions which it implements
7876 to always fail with ENOSYS. Some functions are actually named
7877 something starting with __ and the normal name is an alias. */
7878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7879 choke me
7880 #else
7881 $ac_func();
7882 #endif
7884 ; return 0; }
7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7887 rm -rf conftest*
7888 eval "ac_cv_func_$ac_func=yes"
7889 else
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7892 rm -rf conftest*
7893 eval "ac_cv_func_$ac_func=no"
7895 rm -f conftest*
7898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7899 echo "$ac_t""yes" 1>&6
7900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7901 cat >> confdefs.h <<EOF
7902 #define $ac_tr_func 1
7905 else
7906 echo "$ac_t""no" 1>&6
7908 done
7911 esac
7913 case "$LIBS" in
7914 *-lsec*) for ac_func in bigcrypt
7916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7917 echo "configure:7918: checking for $ac_func" >&5
7918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7920 else
7921 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7924 /* System header to define __stub macros and hopefully few prototypes,
7925 which can conflict with char $ac_func(); below. */
7926 #include <assert.h>
7927 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7930 char $ac_func();
7932 int main() {
7934 /* The GNU C library defines this for functions which it implements
7935 to always fail with ENOSYS. Some functions are actually named
7936 something starting with __ and the normal name is an alias. */
7937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7938 choke me
7939 #else
7940 $ac_func();
7941 #endif
7943 ; return 0; }
7945 if { (eval echo configure:7946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7946 rm -rf conftest*
7947 eval "ac_cv_func_$ac_func=yes"
7948 else
7949 echo "configure: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7951 rm -rf conftest*
7952 eval "ac_cv_func_$ac_func=no"
7954 rm -f conftest*
7957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7958 echo "$ac_t""yes" 1>&6
7959 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7960 cat >> confdefs.h <<EOF
7961 #define $ac_tr_func 1
7964 else
7965 echo "$ac_t""no" 1>&6
7967 done
7969 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7970 echo "configure:7971: checking for bigcrypt in -lsec" >&5
7971 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7974 else
7975 ac_save_LIBS="$LIBS"
7976 LIBS="-lsec $LIBS"
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char bigcrypt();
7985 int main() {
7986 bigcrypt()
7987 ; return 0; }
7989 if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7990 rm -rf conftest*
7991 eval "ac_cv_lib_$ac_lib_var=yes"
7992 else
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7995 rm -rf conftest*
7996 eval "ac_cv_lib_$ac_lib_var=no"
7998 rm -f conftest*
7999 LIBS="$ac_save_LIBS"
8002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8003 echo "$ac_t""yes" 1>&6
8004 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8005 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8006 cat >> confdefs.h <<EOF
8007 #define $ac_tr_lib 1
8010 LIBS="-lsec $LIBS"
8012 else
8013 echo "$ac_t""no" 1>&6
8016 for ac_func in bigcrypt
8018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8019 echo "configure:8020: checking for $ac_func" >&5
8020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8022 else
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 /* System header to define __stub macros and hopefully few prototypes,
8027 which can conflict with char $ac_func(); below. */
8028 #include <assert.h>
8029 /* Override any gcc2 internal prototype to avoid an error. */
8030 /* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */
8032 char $ac_func();
8034 int main() {
8036 /* The GNU C library defines this for functions which it implements
8037 to always fail with ENOSYS. Some functions are actually named
8038 something starting with __ and the normal name is an alias. */
8039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8040 choke me
8041 #else
8042 $ac_func();
8043 #endif
8045 ; return 0; }
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8048 rm -rf conftest*
8049 eval "ac_cv_func_$ac_func=yes"
8050 else
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 rm -rf conftest*
8054 eval "ac_cv_func_$ac_func=no"
8056 rm -f conftest*
8059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8060 echo "$ac_t""yes" 1>&6
8061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8062 cat >> confdefs.h <<EOF
8063 #define $ac_tr_func 1
8066 else
8067 echo "$ac_t""no" 1>&6
8069 done
8072 esac
8075 case "$LIBS" in
8076 *-lsecurity*) for ac_func in getprpwnam
8078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8079 echo "configure:8080: checking for $ac_func" >&5
8080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8082 else
8083 cat > conftest.$ac_ext <<EOF
8084 #line 8085 "configure"
8085 #include "confdefs.h"
8086 /* System header to define __stub macros and hopefully few prototypes,
8087 which can conflict with char $ac_func(); below. */
8088 #include <assert.h>
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8092 char $ac_func();
8094 int main() {
8096 /* The GNU C library defines this for functions which it implements
8097 to always fail with ENOSYS. Some functions are actually named
8098 something starting with __ and the normal name is an alias. */
8099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8100 choke me
8101 #else
8102 $ac_func();
8103 #endif
8105 ; return 0; }
8107 if { (eval echo configure:8108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8108 rm -rf conftest*
8109 eval "ac_cv_func_$ac_func=yes"
8110 else
8111 echo "configure: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8113 rm -rf conftest*
8114 eval "ac_cv_func_$ac_func=no"
8116 rm -f conftest*
8119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8120 echo "$ac_t""yes" 1>&6
8121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8122 cat >> confdefs.h <<EOF
8123 #define $ac_tr_func 1
8126 else
8127 echo "$ac_t""no" 1>&6
8129 done
8131 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8132 echo "configure:8133: checking for getprpwnam in -lsecurity" >&5
8133 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6
8136 else
8137 ac_save_LIBS="$LIBS"
8138 LIBS="-lsecurity $LIBS"
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* Override any gcc2 internal prototype to avoid an error. */
8143 /* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
8145 char getprpwnam();
8147 int main() {
8148 getprpwnam()
8149 ; return 0; }
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8152 rm -rf conftest*
8153 eval "ac_cv_lib_$ac_lib_var=yes"
8154 else
8155 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8157 rm -rf conftest*
8158 eval "ac_cv_lib_$ac_lib_var=no"
8160 rm -f conftest*
8161 LIBS="$ac_save_LIBS"
8164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8165 echo "$ac_t""yes" 1>&6
8166 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8168 cat >> confdefs.h <<EOF
8169 #define $ac_tr_lib 1
8172 LIBS="-lsecurity $LIBS"
8174 else
8175 echo "$ac_t""no" 1>&6
8178 for ac_func in getprpwnam
8180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8181 echo "configure:8182: checking for $ac_func" >&5
8182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
8184 else
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 /* System header to define __stub macros and hopefully few prototypes,
8189 which can conflict with char $ac_func(); below. */
8190 #include <assert.h>
8191 /* Override any gcc2 internal prototype to avoid an error. */
8192 /* We use char because int might match the return type of a gcc2
8193 builtin and then its argument prototype would still apply. */
8194 char $ac_func();
8196 int main() {
8198 /* The GNU C library defines this for functions which it implements
8199 to always fail with ENOSYS. Some functions are actually named
8200 something starting with __ and the normal name is an alias. */
8201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8202 choke me
8203 #else
8204 $ac_func();
8205 #endif
8207 ; return 0; }
8209 if { (eval echo configure:8210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8210 rm -rf conftest*
8211 eval "ac_cv_func_$ac_func=yes"
8212 else
8213 echo "configure: failed program was:" >&5
8214 cat conftest.$ac_ext >&5
8215 rm -rf conftest*
8216 eval "ac_cv_func_$ac_func=no"
8218 rm -f conftest*
8221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8222 echo "$ac_t""yes" 1>&6
8223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8224 cat >> confdefs.h <<EOF
8225 #define $ac_tr_func 1
8228 else
8229 echo "$ac_t""no" 1>&6
8231 done
8234 esac
8236 case "$LIBS" in
8237 *-lsec*) for ac_func in getprpwnam
8239 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8240 echo "configure:8241: checking for $ac_func" >&5
8241 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8243 else
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8247 /* System header to define __stub macros and hopefully few prototypes,
8248 which can conflict with char $ac_func(); below. */
8249 #include <assert.h>
8250 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8253 char $ac_func();
8255 int main() {
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8261 choke me
8262 #else
8263 $ac_func();
8264 #endif
8266 ; return 0; }
8268 if { (eval echo configure:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8269 rm -rf conftest*
8270 eval "ac_cv_func_$ac_func=yes"
8271 else
8272 echo "configure: failed program was:" >&5
8273 cat conftest.$ac_ext >&5
8274 rm -rf conftest*
8275 eval "ac_cv_func_$ac_func=no"
8277 rm -f conftest*
8280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8281 echo "$ac_t""yes" 1>&6
8282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8283 cat >> confdefs.h <<EOF
8284 #define $ac_tr_func 1
8287 else
8288 echo "$ac_t""no" 1>&6
8290 done
8292 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8293 echo "configure:8294: checking for getprpwnam in -lsec" >&5
8294 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8297 else
8298 ac_save_LIBS="$LIBS"
8299 LIBS="-lsec $LIBS"
8300 cat > conftest.$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8303 /* Override any gcc2 internal prototype to avoid an error. */
8304 /* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8306 char getprpwnam();
8308 int main() {
8309 getprpwnam()
8310 ; return 0; }
8312 if { (eval echo configure:8313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313 rm -rf conftest*
8314 eval "ac_cv_lib_$ac_lib_var=yes"
8315 else
8316 echo "configure: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8318 rm -rf conftest*
8319 eval "ac_cv_lib_$ac_lib_var=no"
8321 rm -f conftest*
8322 LIBS="$ac_save_LIBS"
8325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8326 echo "$ac_t""yes" 1>&6
8327 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8329 cat >> confdefs.h <<EOF
8330 #define $ac_tr_lib 1
8333 LIBS="-lsec $LIBS"
8335 else
8336 echo "$ac_t""no" 1>&6
8339 for ac_func in getprpwnam
8341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8342 echo "configure:8343: checking for $ac_func" >&5
8343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8344 echo $ac_n "(cached) $ac_c" 1>&6
8345 else
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 /* System header to define __stub macros and hopefully few prototypes,
8350 which can conflict with char $ac_func(); below. */
8351 #include <assert.h>
8352 /* Override any gcc2 internal prototype to avoid an error. */
8353 /* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */
8355 char $ac_func();
8357 int main() {
8359 /* The GNU C library defines this for functions which it implements
8360 to always fail with ENOSYS. Some functions are actually named
8361 something starting with __ and the normal name is an alias. */
8362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8363 choke me
8364 #else
8365 $ac_func();
8366 #endif
8368 ; return 0; }
8370 if { (eval echo configure:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8371 rm -rf conftest*
8372 eval "ac_cv_func_$ac_func=yes"
8373 else
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 rm -rf conftest*
8377 eval "ac_cv_func_$ac_func=no"
8379 rm -f conftest*
8382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8383 echo "$ac_t""yes" 1>&6
8384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8385 cat >> confdefs.h <<EOF
8386 #define $ac_tr_func 1
8389 else
8390 echo "$ac_t""no" 1>&6
8392 done
8395 esac
8398 # this bit needs to be modified for each OS that is suported by
8399 # smbwrapper. You need to specify how to created a shared library and
8400 # how to compile C code to produce PIC object files
8402 # these are the defaults, good for lots of systems
8403 HOST_OS="$host_os"
8404 LDSHFLAGS="-shared"
8405 PICFLAG=""
8406 SHLIBEXT="so"
8408 # and these are for particular systems
8409 case "$host_os" in
8410 *linux*) cat >> confdefs.h <<\EOF
8411 #define LINUX 1
8414 *solaris*) cat >> confdefs.h <<\EOF
8415 #define SUNOS5 1
8418 LDSHFLAGS="-G"
8420 *sunos*) cat >> confdefs.h <<\EOF
8421 #define SUNOS4 1
8424 LDSHFLAGS=""
8426 *bsd*) LDSHFLAGS="-shared -Bshareable"
8428 *irix*) cat >> confdefs.h <<\EOF
8429 #define IRIX 1
8432 case "$host_os" in
8433 *irix6*) cat >> confdefs.h <<\EOF
8434 #define IRIX6 1
8438 esac
8439 ATTEMPT_WRAP32_BUILD=yes
8441 *aix*) cat >> confdefs.h <<\EOF
8442 #define AIX 1
8445 *hpux*) cat >> confdefs.h <<\EOF
8446 #define HPUX 1
8449 SHLIBEXT="sl"
8450 # Use special PIC flags for the native HP-UX compiler.
8451 if test $ac_cv_prog_cc_Ae = yes; then
8452 LDSHFLAGS="-b"
8453 PICFLAG="+z"
8456 *qnx*) cat >> confdefs.h <<\EOF
8457 #define QNX 1
8460 *osf*) cat >> confdefs.h <<\EOF
8461 #define OSF1 1
8464 *sco*) cat >> confdefs.h <<\EOF
8465 #define SCO 1
8468 *next2*) cat >> confdefs.h <<\EOF
8469 #define NEXT2 1
8472 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8473 set dummy groff; ac_word=$2
8474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8475 echo "configure:8476: checking for $ac_word" >&5
8476 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8478 else
8479 if test -n "$ROFF"; then
8480 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8481 else
8482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8483 ac_dummy="$PATH"
8484 for ac_dir in $ac_dummy; do
8485 test -z "$ac_dir" && ac_dir=.
8486 if test -f $ac_dir/$ac_word; then
8487 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8488 break
8490 done
8491 IFS="$ac_save_ifs"
8494 ROFF="$ac_cv_prog_ROFF"
8495 if test -n "$ROFF"; then
8496 echo "$ac_t""$ROFF" 1>&6
8497 else
8498 echo "$ac_t""no" 1>&6
8501 *sysv4*)
8502 case "$host" in
8503 *-univel-*) if test "$GCC" != yes ; then
8504 cat >> confdefs.h <<\EOF
8505 #define HAVE_MEMSET 1
8509 LDSHFLAGS="-G"
8511 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8512 #define RELIANTUNIX 1
8515 esac
8517 *sysv5*)
8518 if test "$GCC" != yes ; then
8519 cat >> confdefs.h <<\EOF
8520 #define HAVE_MEMSET 1
8524 LDSHFLAGS="-G"
8526 esac
8528 # try to work out how to produce pic code with this compiler
8529 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8530 echo "configure:8531: checking whether ${CC-cc} accepts -fpic" >&5
8531 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8533 else
8534 echo 'void f(){}' > conftest.c
8535 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8536 ac_cv_prog_cc_fpic=yes
8537 else
8538 ac_cv_prog_cc_fpic=no
8540 rm -f conftest*
8544 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8545 if test $ac_cv_prog_cc_fpic = yes; then
8546 PICFLAG="-fpic";
8548 if test x$PICFLAG = x; then
8549 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8550 echo "configure:8551: checking whether ${CC-cc} accepts -KPIC" >&5
8551 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8553 else
8554 echo 'void f(){}' > conftest.c
8555 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8556 ac_cv_prog_cc_KPIC=yes
8557 else
8558 ac_cv_prog_cc_KPIC=no
8560 rm -f conftest*
8564 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8565 if test $ac_cv_prog_cc_KPIC = yes; then
8566 PICFLAG="-KPIC";
8569 if test x$PICFLAG = x; then
8570 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8571 echo "configure:8572: checking whether ${CC-cc} accepts -Kpic" >&5
8572 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8574 else
8575 echo 'void f(){}' > conftest.c
8576 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8577 ac_cv_prog_cc_Kpic=yes
8578 else
8579 ac_cv_prog_cc_Kpic=no
8581 rm -f conftest*
8585 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8586 if test $ac_cv_prog_cc_Kpic = yes; then
8587 PICFLAG="-Kpic";
8591 ################
8593 echo $ac_n "checking for long long""... $ac_c" 1>&6
8594 echo "configure:8595: checking for long long" >&5
8595 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8596 echo $ac_n "(cached) $ac_c" 1>&6
8597 else
8599 if test "$cross_compiling" = yes; then
8600 samba_cv_have_longlong=cross
8601 else
8602 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8605 #include <stdio.h>
8606 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8608 if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8609 then
8610 samba_cv_have_longlong=yes
8611 else
8612 echo "configure: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8614 rm -fr conftest*
8615 samba_cv_have_longlong=no
8617 rm -fr conftest*
8622 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8623 if test x"$samba_cv_have_longlong" = x"yes"; then
8624 cat >> confdefs.h <<\EOF
8625 #define HAVE_LONGLONG 1
8631 # Check if the compiler supports the LL prefix on long long integers.
8632 # AIX needs this.
8634 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8635 echo "configure:8636: checking for LL suffix on long long integers" >&5
8636 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8637 echo $ac_n "(cached) $ac_c" 1>&6
8638 else
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 #include <stdio.h>
8644 int main() {
8645 long long i = 0x8000000000LL
8646 ; return 0; }
8648 if { (eval echo configure:8649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8649 rm -rf conftest*
8650 samba_cv_compiler_supports_ll=yes
8651 else
8652 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8654 rm -rf conftest*
8655 samba_cv_compiler_supports_ll=no
8657 rm -f conftest*
8660 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8661 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8662 cat >> confdefs.h <<\EOF
8663 #define COMPILER_SUPPORTS_LL 1
8669 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8670 echo "configure:8671: checking for 64 bit off_t" >&5
8671 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8673 else
8675 if test "$cross_compiling" = yes; then
8676 samba_cv_SIZEOF_OFF_T=cross
8677 else
8678 cat > conftest.$ac_ext <<EOF
8679 #line 8680 "configure"
8680 #include "confdefs.h"
8681 #include <stdio.h>
8682 #include <sys/stat.h>
8683 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8685 if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8686 then
8687 samba_cv_SIZEOF_OFF_T=yes
8688 else
8689 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8691 rm -fr conftest*
8692 samba_cv_SIZEOF_OFF_T=no
8694 rm -fr conftest*
8699 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8700 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8701 cat >> confdefs.h <<\EOF
8702 #define SIZEOF_OFF_T 8
8707 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8708 echo "configure:8709: checking for off64_t" >&5
8709 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8711 else
8713 if test "$cross_compiling" = yes; then
8714 samba_cv_HAVE_OFF64_T=cross
8715 else
8716 cat > conftest.$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8720 #if defined(HAVE_UNISTD_H)
8721 #include <unistd.h>
8722 #endif
8723 #include <stdio.h>
8724 #include <sys/stat.h>
8725 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8727 if { (eval echo configure:8728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8728 then
8729 samba_cv_HAVE_OFF64_T=yes
8730 else
8731 echo "configure: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8733 rm -fr conftest*
8734 samba_cv_HAVE_OFF64_T=no
8736 rm -fr conftest*
8741 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8742 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8743 cat >> confdefs.h <<\EOF
8744 #define HAVE_OFF64_T 1
8749 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8750 echo "configure:8751: checking for 64 bit ino_t" >&5
8751 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8753 else
8755 if test "$cross_compiling" = yes; then
8756 samba_cv_SIZEOF_INO_T=cross
8757 else
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 #include <stdio.h>
8762 #include <sys/stat.h>
8763 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8766 then
8767 samba_cv_SIZEOF_INO_T=yes
8768 else
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 rm -fr conftest*
8772 samba_cv_SIZEOF_INO_T=no
8774 rm -fr conftest*
8779 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8780 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8781 cat >> confdefs.h <<\EOF
8782 #define SIZEOF_INO_T 8
8787 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8788 echo "configure:8789: checking for ino64_t" >&5
8789 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8791 else
8793 if test "$cross_compiling" = yes; then
8794 samba_cv_HAVE_INO64_T=cross
8795 else
8796 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8800 #if defined(HAVE_UNISTD_H)
8801 #include <unistd.h>
8802 #endif
8803 #include <stdio.h>
8804 #include <sys/stat.h>
8805 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8808 then
8809 samba_cv_HAVE_INO64_T=yes
8810 else
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -fr conftest*
8814 samba_cv_HAVE_INO64_T=no
8816 rm -fr conftest*
8821 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8822 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8823 cat >> confdefs.h <<\EOF
8824 #define HAVE_INO64_T 1
8829 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8830 echo "configure:8831: checking for struct dirent64" >&5
8831 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8833 else
8835 cat > conftest.$ac_ext <<EOF
8836 #line 8837 "configure"
8837 #include "confdefs.h"
8839 #if defined(HAVE_UNISTD_H)
8840 #include <unistd.h>
8841 #endif
8842 #include <sys/types.h>
8843 #include <dirent.h>
8844 int main() {
8845 struct dirent64 de;
8846 ; return 0; }
8848 if { (eval echo configure:8849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8849 rm -rf conftest*
8850 samba_cv_HAVE_STRUCT_DIRENT64=yes
8851 else
8852 echo "configure: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8854 rm -rf conftest*
8855 samba_cv_HAVE_STRUCT_DIRENT64=no
8857 rm -f conftest*
8860 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8861 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8862 cat >> confdefs.h <<\EOF
8863 #define HAVE_STRUCT_DIRENT64 1
8868 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8869 echo "configure:8870: checking for unsigned char" >&5
8870 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8871 echo $ac_n "(cached) $ac_c" 1>&6
8872 else
8874 if test "$cross_compiling" = yes; then
8875 samba_cv_HAVE_UNSIGNED_CHAR=cross
8876 else
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 #include <stdio.h>
8881 main() { char c; c=250; exit((c > 0)?0:1); }
8883 if { (eval echo configure:8884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8884 then
8885 samba_cv_HAVE_UNSIGNED_CHAR=yes
8886 else
8887 echo "configure: failed program was:" >&5
8888 cat conftest.$ac_ext >&5
8889 rm -fr conftest*
8890 samba_cv_HAVE_UNSIGNED_CHAR=no
8892 rm -fr conftest*
8897 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8898 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8899 cat >> confdefs.h <<\EOF
8900 #define HAVE_UNSIGNED_CHAR 1
8905 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8906 echo "configure:8907: checking for sin_len in sock" >&5
8907 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8909 else
8911 cat > conftest.$ac_ext <<EOF
8912 #line 8913 "configure"
8913 #include "confdefs.h"
8914 #include <sys/types.h>
8915 #include <sys/socket.h>
8916 #include <netinet/in.h>
8917 int main() {
8918 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8919 ; return 0; }
8921 if { (eval echo configure:8922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8922 rm -rf conftest*
8923 samba_cv_HAVE_SOCK_SIN_LEN=yes
8924 else
8925 echo "configure: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8927 rm -rf conftest*
8928 samba_cv_HAVE_SOCK_SIN_LEN=no
8930 rm -f conftest*
8933 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8934 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8935 cat >> confdefs.h <<\EOF
8936 #define HAVE_SOCK_SIN_LEN 1
8941 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8942 echo "configure:8943: checking whether seekdir returns void" >&5
8943 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8945 else
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 #include <sys/types.h>
8951 #include <dirent.h>
8952 void seekdir(DIR *d, long loc) { return; }
8953 int main() {
8954 return 0;
8955 ; return 0; }
8957 if { (eval echo configure:8958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8958 rm -rf conftest*
8959 samba_cv_SEEKDIR_RETURNS_VOID=yes
8960 else
8961 echo "configure: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 rm -rf conftest*
8964 samba_cv_SEEKDIR_RETURNS_VOID=no
8966 rm -f conftest*
8969 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8970 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8971 cat >> confdefs.h <<\EOF
8972 #define SEEKDIR_RETURNS_VOID 1
8977 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8978 echo "configure:8979: checking for __FILE__ macro" >&5
8979 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8981 else
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 #include <stdio.h>
8987 int main() {
8988 printf("%s\n", __FILE__);
8989 ; return 0; }
8991 if { (eval echo configure:8992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8992 rm -rf conftest*
8993 samba_cv_HAVE_FILE_MACRO=yes
8994 else
8995 echo "configure: failed program was:" >&5
8996 cat conftest.$ac_ext >&5
8997 rm -rf conftest*
8998 samba_cv_HAVE_FILE_MACRO=no
9000 rm -f conftest*
9003 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9004 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9005 cat >> confdefs.h <<\EOF
9006 #define HAVE_FILE_MACRO 1
9011 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9012 echo "configure:9013: checking for __FUNCTION__ macro" >&5
9013 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9014 echo $ac_n "(cached) $ac_c" 1>&6
9015 else
9017 cat > conftest.$ac_ext <<EOF
9018 #line 9019 "configure"
9019 #include "confdefs.h"
9020 #include <stdio.h>
9021 int main() {
9022 printf("%s\n", __FUNCTION__);
9023 ; return 0; }
9025 if { (eval echo configure:9026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9026 rm -rf conftest*
9027 samba_cv_HAVE_FUNCTION_MACRO=yes
9028 else
9029 echo "configure: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9031 rm -rf conftest*
9032 samba_cv_HAVE_FUNCTION_MACRO=no
9034 rm -f conftest*
9037 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9038 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9039 cat >> confdefs.h <<\EOF
9040 #define HAVE_FUNCTION_MACRO 1
9045 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9046 echo "configure:9047: checking if gettimeofday takes tz argument" >&5
9047 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9048 echo $ac_n "(cached) $ac_c" 1>&6
9049 else
9051 if test "$cross_compiling" = yes; then
9052 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9053 else
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9058 #include <sys/time.h>
9059 #include <unistd.h>
9060 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9062 if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9063 then
9064 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9065 else
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9068 rm -fr conftest*
9069 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9071 rm -fr conftest*
9076 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9077 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9078 cat >> confdefs.h <<\EOF
9079 #define HAVE_GETTIMEOFDAY_TZ 1
9084 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9085 echo "configure:9086: checking for C99 vsnprintf" >&5
9086 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088 else
9090 if test "$cross_compiling" = yes; then
9091 samba_cv_HAVE_C99_VSNPRINTF=cross
9092 else
9093 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure"
9095 #include "confdefs.h"
9097 #include <sys/types.h>
9098 #include <stdarg.h>
9099 void foo(const char *format, ...) {
9100 va_list ap;
9101 int len;
9102 char buf[5];
9104 va_start(ap, format);
9105 len = vsnprintf(0, 0, format, ap);
9106 va_end(ap);
9107 if (len != 5) exit(1);
9109 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9111 exit(0);
9113 main() { foo("hello"); }
9116 if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9117 then
9118 samba_cv_HAVE_C99_VSNPRINTF=yes
9119 else
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9122 rm -fr conftest*
9123 samba_cv_HAVE_C99_VSNPRINTF=no
9125 rm -fr conftest*
9130 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9131 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9132 cat >> confdefs.h <<\EOF
9133 #define HAVE_C99_VSNPRINTF 1
9138 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9139 echo "configure:9140: checking for broken readdir" >&5
9140 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9141 echo $ac_n "(cached) $ac_c" 1>&6
9142 else
9144 if test "$cross_compiling" = yes; then
9145 samba_cv_HAVE_BROKEN_READDIR=cross
9146 else
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 #include <sys/types.h>
9151 #include <dirent.h>
9152 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9153 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9154 di->d_name[0] == 0) exit(0); exit(1);}
9156 if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9157 then
9158 samba_cv_HAVE_BROKEN_READDIR=yes
9159 else
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9162 rm -fr conftest*
9163 samba_cv_HAVE_BROKEN_READDIR=no
9165 rm -fr conftest*
9170 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9171 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9172 cat >> confdefs.h <<\EOF
9173 #define HAVE_BROKEN_READDIR 1
9178 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9179 echo "configure:9180: checking for utimbuf" >&5
9180 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9182 else
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9187 #include <sys/types.h>
9188 #include <utime.h>
9189 int main() {
9190 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9191 ; return 0; }
9193 if { (eval echo configure:9194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9194 rm -rf conftest*
9195 samba_cv_HAVE_UTIMBUF=yes
9196 else
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9199 rm -rf conftest*
9200 samba_cv_HAVE_UTIMBUF=no
9202 rm -f conftest*
9205 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9206 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9207 cat >> confdefs.h <<\EOF
9208 #define HAVE_UTIMBUF 1
9214 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9217 echo "configure:9218: checking for $ac_func" >&5
9218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9220 else
9221 cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 /* System header to define __stub macros and hopefully few prototypes,
9225 which can conflict with char $ac_func(); below. */
9226 #include <assert.h>
9227 /* Override any gcc2 internal prototype to avoid an error. */
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230 char $ac_func();
9232 int main() {
9234 /* The GNU C library defines this for functions which it implements
9235 to always fail with ENOSYS. Some functions are actually named
9236 something starting with __ and the normal name is an alias. */
9237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9238 choke me
9239 #else
9240 $ac_func();
9241 #endif
9243 ; return 0; }
9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9246 rm -rf conftest*
9247 eval "ac_cv_func_$ac_func=yes"
9248 else
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9251 rm -rf conftest*
9252 eval "ac_cv_func_$ac_func=no"
9254 rm -f conftest*
9257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9258 echo "$ac_t""yes" 1>&6
9259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9260 cat >> confdefs.h <<EOF
9261 #define $ac_tr_func 1
9264 else
9265 echo "$ac_t""no" 1>&6
9267 done
9270 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9271 echo "configure:9272: checking for ut_name in utmp" >&5
9272 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9274 else
9276 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9279 #include <sys/types.h>
9280 #include <utmp.h>
9281 int main() {
9282 struct utmp ut; ut.ut_name[0] = 'a';
9283 ; return 0; }
9285 if { (eval echo configure:9286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9286 rm -rf conftest*
9287 samba_cv_HAVE_UT_UT_NAME=yes
9288 else
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9291 rm -rf conftest*
9292 samba_cv_HAVE_UT_UT_NAME=no
9294 rm -f conftest*
9297 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9298 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9299 cat >> confdefs.h <<\EOF
9300 #define HAVE_UT_UT_NAME 1
9305 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9306 echo "configure:9307: checking for ut_user in utmp" >&5
9307 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9309 else
9311 cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 #include <sys/types.h>
9315 #include <utmp.h>
9316 int main() {
9317 struct utmp ut; ut.ut_user[0] = 'a';
9318 ; return 0; }
9320 if { (eval echo configure:9321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9321 rm -rf conftest*
9322 samba_cv_HAVE_UT_UT_USER=yes
9323 else
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 rm -rf conftest*
9327 samba_cv_HAVE_UT_UT_USER=no
9329 rm -f conftest*
9332 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9333 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9334 cat >> confdefs.h <<\EOF
9335 #define HAVE_UT_UT_USER 1
9340 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9341 echo "configure:9342: checking for ut_id in utmp" >&5
9342 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9344 else
9346 cat > conftest.$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 #include <sys/types.h>
9350 #include <utmp.h>
9351 int main() {
9352 struct utmp ut; ut.ut_id[0] = 'a';
9353 ; return 0; }
9355 if { (eval echo configure:9356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9356 rm -rf conftest*
9357 samba_cv_HAVE_UT_UT_ID=yes
9358 else
9359 echo "configure: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 rm -rf conftest*
9362 samba_cv_HAVE_UT_UT_ID=no
9364 rm -f conftest*
9367 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9368 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9369 cat >> confdefs.h <<\EOF
9370 #define HAVE_UT_UT_ID 1
9375 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9376 echo "configure:9377: checking for ut_host in utmp" >&5
9377 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9378 echo $ac_n "(cached) $ac_c" 1>&6
9379 else
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9385 #include <utmp.h>
9386 int main() {
9387 struct utmp ut; ut.ut_host[0] = 'a';
9388 ; return 0; }
9390 if { (eval echo configure:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9391 rm -rf conftest*
9392 samba_cv_HAVE_UT_UT_HOST=yes
9393 else
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9396 rm -rf conftest*
9397 samba_cv_HAVE_UT_UT_HOST=no
9399 rm -f conftest*
9402 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9403 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9404 cat >> confdefs.h <<\EOF
9405 #define HAVE_UT_UT_HOST 1
9410 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9411 echo "configure:9412: checking for ut_time in utmp" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9414 else
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 #include <sys/types.h>
9420 #include <utmp.h>
9421 int main() {
9422 struct utmp ut; time_t t; ut.ut_time = t;
9423 ; return 0; }
9425 if { (eval echo configure:9426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9426 rm -rf conftest*
9427 samba_cv_HAVE_UT_UT_TIME=yes
9428 else
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 rm -rf conftest*
9432 samba_cv_HAVE_UT_UT_TIME=no
9434 rm -f conftest*
9437 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9438 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9439 cat >> confdefs.h <<\EOF
9440 #define HAVE_UT_UT_TIME 1
9445 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9446 echo "configure:9447: checking for ut_tv in utmp" >&5
9447 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9449 else
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <sys/types.h>
9455 #include <utmp.h>
9456 int main() {
9457 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9458 ; return 0; }
9460 if { (eval echo configure:9461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9461 rm -rf conftest*
9462 samba_cv_HAVE_UT_UT_TV=yes
9463 else
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 rm -rf conftest*
9467 samba_cv_HAVE_UT_UT_TV=no
9469 rm -f conftest*
9472 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9473 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9474 cat >> confdefs.h <<\EOF
9475 #define HAVE_UT_UT_TV 1
9480 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9481 echo "configure:9482: checking for ut_type in utmp" >&5
9482 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9483 echo $ac_n "(cached) $ac_c" 1>&6
9484 else
9486 cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 #include <sys/types.h>
9490 #include <utmp.h>
9491 int main() {
9492 struct utmp ut; ut.ut_type = 0;
9493 ; return 0; }
9495 if { (eval echo configure:9496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9496 rm -rf conftest*
9497 samba_cv_HAVE_UT_UT_TYPE=yes
9498 else
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 rm -rf conftest*
9502 samba_cv_HAVE_UT_UT_TYPE=no
9504 rm -f conftest*
9507 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9508 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9509 cat >> confdefs.h <<\EOF
9510 #define HAVE_UT_UT_TYPE 1
9515 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9516 echo "configure:9517: checking for ut_pid in utmp" >&5
9517 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9519 else
9521 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9524 #include <sys/types.h>
9525 #include <utmp.h>
9526 int main() {
9527 struct utmp ut; ut.ut_pid = 0;
9528 ; return 0; }
9530 if { (eval echo configure:9531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9531 rm -rf conftest*
9532 samba_cv_HAVE_UT_UT_PID=yes
9533 else
9534 echo "configure: failed program was:" >&5
9535 cat conftest.$ac_ext >&5
9536 rm -rf conftest*
9537 samba_cv_HAVE_UT_UT_PID=no
9539 rm -f conftest*
9542 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9543 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9544 cat >> confdefs.h <<\EOF
9545 #define HAVE_UT_UT_PID 1
9550 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9551 echo "configure:9552: checking for ut_exit in utmp" >&5
9552 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9554 else
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 #include <sys/types.h>
9560 #include <utmp.h>
9561 int main() {
9562 struct utmp ut; ut.ut_exit.e_exit = 0;
9563 ; return 0; }
9565 if { (eval echo configure:9566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9566 rm -rf conftest*
9567 samba_cv_HAVE_UT_UT_EXIT=yes
9568 else
9569 echo "configure: failed program was:" >&5
9570 cat conftest.$ac_ext >&5
9571 rm -rf conftest*
9572 samba_cv_HAVE_UT_UT_EXIT=no
9574 rm -f conftest*
9577 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9578 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9579 cat >> confdefs.h <<\EOF
9580 #define HAVE_UT_UT_EXIT 1
9585 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9586 echo "configure:9587: checking for ut_addr in utmp" >&5
9587 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9591 cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 #include <sys/types.h>
9595 #include <utmp.h>
9596 int main() {
9597 struct utmp ut; ut.ut_addr = 0;
9598 ; return 0; }
9600 if { (eval echo configure:9601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9601 rm -rf conftest*
9602 samba_cv_HAVE_UT_UT_ADDR=yes
9603 else
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -rf conftest*
9607 samba_cv_HAVE_UT_UT_ADDR=no
9609 rm -f conftest*
9612 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9613 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9614 cat >> confdefs.h <<\EOF
9615 #define HAVE_UT_UT_ADDR 1
9620 if test x$ac_cv_func_pututline = xyes ; then
9621 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9622 echo "configure:9623: checking whether pututline returns pointer" >&5
9623 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9625 else
9627 cat > conftest.$ac_ext <<EOF
9628 #line 9629 "configure"
9629 #include "confdefs.h"
9630 #include <sys/types.h>
9631 #include <utmp.h>
9632 int main() {
9633 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9634 ; return 0; }
9636 if { (eval echo configure:9637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9637 rm -rf conftest*
9638 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9639 else
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -rf conftest*
9643 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9645 rm -f conftest*
9648 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9649 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9650 cat >> confdefs.h <<\EOF
9651 #define PUTUTLINE_RETURNS_UTMP 1
9657 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9658 echo "configure:9659: checking for ut_syslen in utmpx" >&5
9659 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9661 else
9663 cat > conftest.$ac_ext <<EOF
9664 #line 9665 "configure"
9665 #include "confdefs.h"
9666 #include <sys/types.h>
9667 #include <utmpx.h>
9668 int main() {
9669 struct utmpx ux; ux.ut_syslen = 0;
9670 ; return 0; }
9672 if { (eval echo configure:9673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9673 rm -rf conftest*
9674 samba_cv_HAVE_UX_UT_SYSLEN=yes
9675 else
9676 echo "configure: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9678 rm -rf conftest*
9679 samba_cv_HAVE_UX_UT_SYSLEN=no
9681 rm -f conftest*
9684 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9685 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9686 cat >> confdefs.h <<\EOF
9687 #define HAVE_UX_UT_SYSLEN 1
9692 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9693 echo "configure:9694: checking for Linux kernel oplocks" >&5
9694 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9695 echo $ac_n "(cached) $ac_c" 1>&6
9696 else
9698 if test "$cross_compiling" = yes; then
9699 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9700 else
9701 cat > conftest.$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9705 #include <sys/types.h>
9706 #include <fcntl.h>
9707 #ifndef F_GETLEASE
9708 #define F_GETLEASE 1025
9709 #endif
9710 main() {
9711 int fd = open("/dev/null", O_RDONLY);
9712 return fcntl(fd, F_GETLEASE, 0) == -1;
9716 if { (eval echo configure:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9717 then
9718 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9719 else
9720 echo "configure: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 rm -fr conftest*
9723 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9725 rm -fr conftest*
9730 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9731 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9732 cat >> confdefs.h <<\EOF
9733 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9738 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9739 echo "configure:9740: checking for kernel change notify support" >&5
9740 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9741 echo $ac_n "(cached) $ac_c" 1>&6
9742 else
9744 if test "$cross_compiling" = yes; then
9745 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9746 else
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9751 #include <sys/types.h>
9752 #include <fcntl.h>
9753 #include <signal.h>
9754 #ifndef F_NOTIFY
9755 #define F_NOTIFY 1026
9756 #endif
9757 main() {
9758 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9762 if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9763 then
9764 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9765 else
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 rm -fr conftest*
9769 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9771 rm -fr conftest*
9776 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9777 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9778 cat >> confdefs.h <<\EOF
9779 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9784 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9785 echo "configure:9786: checking for kernel share modes" >&5
9786 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9788 else
9790 if test "$cross_compiling" = yes; then
9791 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9792 else
9793 cat > conftest.$ac_ext <<EOF
9794 #line 9795 "configure"
9795 #include "confdefs.h"
9797 #include <sys/types.h>
9798 #include <fcntl.h>
9799 #include <signal.h>
9800 #include <sys/file.h>
9801 #ifndef LOCK_MAND
9802 #define LOCK_MAND 32
9803 #define LOCK_READ 64
9804 #endif
9805 main() {
9806 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9811 then
9812 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9813 else
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9816 rm -fr conftest*
9817 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9819 rm -fr conftest*
9824 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9825 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9826 cat >> confdefs.h <<\EOF
9827 #define HAVE_KERNEL_SHARE_MODES 1
9835 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9836 echo "configure:9837: checking for IRIX kernel oplock type definitions" >&5
9837 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
9839 else
9841 cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 #include <sys/types.h>
9845 #include <fcntl.h>
9846 int main() {
9847 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9848 ; return 0; }
9850 if { (eval echo configure:9851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9851 rm -rf conftest*
9852 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9853 else
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9856 rm -rf conftest*
9857 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9859 rm -f conftest*
9862 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9863 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9864 cat >> confdefs.h <<\EOF
9865 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9870 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9871 echo "configure:9872: checking for irix specific capabilities" >&5
9872 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9874 else
9876 if test "$cross_compiling" = yes; then
9877 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9878 else
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9882 #include <sys/types.h>
9883 #include <sys/capability.h>
9884 main() {
9885 cap_t cap;
9886 if ((cap = cap_get_proc()) == NULL)
9887 exit(1);
9888 cap->cap_effective |= CAP_NETWORK_MGT;
9889 cap->cap_inheritable |= CAP_NETWORK_MGT;
9890 cap_set_proc(cap);
9891 exit(0);
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9896 then
9897 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9898 else
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -fr conftest*
9902 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9904 rm -fr conftest*
9909 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9910 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9911 cat >> confdefs.h <<\EOF
9912 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9918 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9919 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9922 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9923 echo "configure:9924: checking for int16 typedef included by rpc/rpc.h" >&5
9924 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9926 else
9928 cat > conftest.$ac_ext <<EOF
9929 #line 9930 "configure"
9930 #include "confdefs.h"
9931 #include <sys/types.h>
9932 #if defined(HAVE_RPC_RPC_H)
9933 #include <rpc/rpc.h>
9934 #endif
9935 int main() {
9936 int16 testvar;
9937 ; return 0; }
9939 if { (eval echo configure:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9940 rm -rf conftest*
9941 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9942 else
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 rm -rf conftest*
9946 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9948 rm -f conftest*
9951 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9952 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9953 cat >> confdefs.h <<\EOF
9954 #define HAVE_INT16_FROM_RPC_RPC_H 1
9959 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9960 echo "configure:9961: checking for uint16 typedef included by rpc/rpc.h" >&5
9961 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9963 else
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 #include <sys/types.h>
9969 #if defined(HAVE_RPC_RPC_H)
9970 #include <rpc/rpc.h>
9971 #endif
9972 int main() {
9973 uint16 testvar;
9974 ; return 0; }
9976 if { (eval echo configure:9977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9977 rm -rf conftest*
9978 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9979 else
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9982 rm -rf conftest*
9983 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9985 rm -f conftest*
9988 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9989 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9990 cat >> confdefs.h <<\EOF
9991 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9996 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9997 echo "configure:9998: checking for int32 typedef included by rpc/rpc.h" >&5
9998 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10000 else
10002 cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10005 #include <sys/types.h>
10006 #if defined(HAVE_RPC_RPC_H)
10007 #include <rpc/rpc.h>
10008 #endif
10009 int main() {
10010 int32 testvar;
10011 ; return 0; }
10013 if { (eval echo configure:10014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10014 rm -rf conftest*
10015 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10016 else
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10019 rm -rf conftest*
10020 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10022 rm -f conftest*
10025 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10026 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10027 cat >> confdefs.h <<\EOF
10028 #define HAVE_INT32_FROM_RPC_RPC_H 1
10033 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10034 echo "configure:10035: checking for uint32 typedef included by rpc/rpc.h" >&5
10035 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10037 else
10039 cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include <sys/types.h>
10043 #if defined(HAVE_RPC_RPC_H)
10044 #include <rpc/rpc.h>
10045 #endif
10046 int main() {
10047 uint32 testvar;
10048 ; return 0; }
10050 if { (eval echo configure:10051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10051 rm -rf conftest*
10052 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10053 else
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10056 rm -rf conftest*
10057 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10059 rm -f conftest*
10062 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10063 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10064 cat >> confdefs.h <<\EOF
10065 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10071 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10072 echo "configure:10073: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10073 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10074 echo $ac_n "(cached) $ac_c" 1>&6
10075 else
10077 cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10080 #include <sys/types.h>
10081 #ifdef HAVE_SYS_SECURITY_H
10082 #include <sys/security.h>
10083 #include <prot.h>
10084 #endif /* HAVE_SYS_SECURITY_H */
10085 #if defined(HAVE_RPC_RPC_H)
10086 #include <rpc/rpc.h>
10087 #endif
10088 int main() {
10089 int testvar;
10090 ; return 0; }
10092 if { (eval echo configure:10093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10093 rm -rf conftest*
10094 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10095 else
10096 echo "configure: failed program was:" >&5
10097 cat conftest.$ac_ext >&5
10098 rm -rf conftest*
10099 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10101 rm -f conftest*
10104 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10105 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10112 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10113 echo "configure:10114: checking for test routines" >&5
10114 if test "$cross_compiling" = yes; then
10115 echo "configure: warning: cannot run when cross-compiling" 1>&2
10116 else
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120 #include "${srcdir-.}/tests/trivial.c"
10122 if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10123 then
10124 echo "$ac_t""yes" 1>&6
10125 else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -fr conftest*
10129 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10131 rm -fr conftest*
10135 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10136 echo "configure:10137: checking for ftruncate extend" >&5
10137 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10138 echo $ac_n "(cached) $ac_c" 1>&6
10139 else
10141 if test "$cross_compiling" = yes; then
10142 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10143 else
10144 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 #include "${srcdir-.}/tests/ftruncate.c"
10149 if { (eval echo configure:10150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10150 then
10151 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10152 else
10153 echo "configure: failed program was:" >&5
10154 cat conftest.$ac_ext >&5
10155 rm -fr conftest*
10156 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10158 rm -fr conftest*
10163 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10164 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10165 cat >> confdefs.h <<\EOF
10166 #define HAVE_FTRUNCATE_EXTEND 1
10171 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10172 echo "configure:10173: checking for broken getgroups" >&5
10173 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10175 else
10177 if test "$cross_compiling" = yes; then
10178 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10179 else
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include "${srcdir-.}/tests/getgroups.c"
10185 if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10186 then
10187 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10188 else
10189 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5
10191 rm -fr conftest*
10192 samba_cv_HAVE_BROKEN_GETGROUPS=no
10194 rm -fr conftest*
10199 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10200 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10201 cat >> confdefs.h <<\EOF
10202 #define HAVE_BROKEN_GETGROUPS 1
10207 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10208 echo "configure:10209: checking whether getpass should be replaced" >&5
10209 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10211 else
10213 SAVE_CPPFLAGS="$CPPFLAGS"
10214 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10219 #define REPLACE_GETPASS 1
10220 #define NO_CONFIG_H 1
10221 #define main dont_declare_main
10222 #include "${srcdir-.}/lib/getsmbpass.c"
10223 #undef main
10225 int main() {
10227 ; return 0; }
10229 if { (eval echo configure:10230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10230 rm -rf conftest*
10231 samba_cv_REPLACE_GETPASS=yes
10232 else
10233 echo "configure: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10235 rm -rf conftest*
10236 samba_cv_REPLACE_GETPASS=no
10238 rm -f conftest*
10239 CPPFLAGS="$SAVE_CPPFLAGS"
10243 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10244 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10245 cat >> confdefs.h <<\EOF
10246 #define REPLACE_GETPASS 1
10251 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10252 echo "configure:10253: checking for broken inet_ntoa" >&5
10253 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10254 echo $ac_n "(cached) $ac_c" 1>&6
10255 else
10257 if test "$cross_compiling" = yes; then
10258 samba_cv_REPLACE_INET_NTOA=cross
10259 else
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10264 #include <stdio.h>
10265 #include <sys/types.h>
10266 #include <netinet/in.h>
10267 #ifdef HAVE_ARPA_INET_H
10268 #include <arpa/inet.h>
10269 #endif
10270 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10271 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10272 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10273 exit(1);}
10275 if { (eval echo configure:10276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10276 then
10277 samba_cv_REPLACE_INET_NTOA=yes
10278 else
10279 echo "configure: failed program was:" >&5
10280 cat conftest.$ac_ext >&5
10281 rm -fr conftest*
10282 samba_cv_REPLACE_INET_NTOA=no
10284 rm -fr conftest*
10289 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10290 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10291 cat >> confdefs.h <<\EOF
10292 #define REPLACE_INET_NTOA 1
10297 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10298 echo "configure:10299: checking for secure mkstemp" >&5
10299 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10300 echo $ac_n "(cached) $ac_c" 1>&6
10301 else
10303 if test "$cross_compiling" = yes; then
10304 samba_cv_HAVE_SECURE_MKSTEMP=cross
10305 else
10306 cat > conftest.$ac_ext <<EOF
10307 #line 10308 "configure"
10308 #include "confdefs.h"
10309 #include <stdlib.h>
10310 #include <sys/types.h>
10311 #include <sys/stat.h>
10312 #include <unistd.h>
10313 main() {
10314 struct stat st;
10315 char tpl[20]="/tmp/test.XXXXXX";
10316 int fd = mkstemp(tpl);
10317 if (fd == -1) exit(1);
10318 unlink(tpl);
10319 if (fstat(fd, &st) != 0) exit(1);
10320 if ((st.st_mode & 0777) != 0600) exit(1);
10321 exit(0);
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10325 then
10326 samba_cv_HAVE_SECURE_MKSTEMP=yes
10327 else
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10330 rm -fr conftest*
10331 samba_cv_HAVE_SECURE_MKSTEMP=no
10333 rm -fr conftest*
10338 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10339 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10340 cat >> confdefs.h <<\EOF
10341 #define HAVE_SECURE_MKSTEMP 1
10346 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10347 echo "configure:10348: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10348 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10350 else
10352 if test "$cross_compiling" = yes; then
10353 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10354 else
10355 cat > conftest.$ac_ext <<EOF
10356 #line 10357 "configure"
10357 #include "confdefs.h"
10358 #include <unistd.h>
10359 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10361 if { (eval echo configure:10362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10362 then
10363 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10364 else
10365 echo "configure: failed program was:" >&5
10366 cat conftest.$ac_ext >&5
10367 rm -fr conftest*
10368 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10370 rm -fr conftest*
10375 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10376 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10377 cat >> confdefs.h <<\EOF
10378 #define SYSCONF_SC_NGROUPS_MAX 1
10383 echo $ac_n "checking for root""... $ac_c" 1>&6
10384 echo "configure:10385: checking for root" >&5
10385 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10387 else
10389 if test "$cross_compiling" = yes; then
10390 samba_cv_HAVE_ROOT=cross
10391 else
10392 cat > conftest.$ac_ext <<EOF
10393 #line 10394 "configure"
10394 #include "confdefs.h"
10395 main() { exit(getuid() != 0); }
10397 if { (eval echo configure:10398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10398 then
10399 samba_cv_HAVE_ROOT=yes
10400 else
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10403 rm -fr conftest*
10404 samba_cv_HAVE_ROOT=no
10406 rm -fr conftest*
10411 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10412 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10413 cat >> confdefs.h <<\EOF
10414 #define HAVE_ROOT 1
10417 else
10418 echo "configure: warning: running as non-root will disable some tests" 1>&2
10421 ##################
10422 # look for a method of finding the list of network interfaces
10423 iface=no;
10424 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10425 echo "configure:10426: checking for iface AIX" >&5
10426 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10427 echo $ac_n "(cached) $ac_c" 1>&6
10428 else
10430 if test "$cross_compiling" = yes; then
10431 samba_cv_HAVE_IFACE_AIX=cross
10432 else
10433 cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure"
10435 #include "confdefs.h"
10437 #define HAVE_IFACE_AIX 1
10438 #define AUTOCONF_TEST 1
10439 #include "confdefs.h"
10440 #include "${srcdir-.}/lib/interfaces.c"
10442 if { (eval echo configure:10443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10443 then
10444 samba_cv_HAVE_IFACE_AIX=yes
10445 else
10446 echo "configure: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10448 rm -fr conftest*
10449 samba_cv_HAVE_IFACE_AIX=no
10451 rm -fr conftest*
10456 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10457 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10458 iface=yes;cat >> confdefs.h <<\EOF
10459 #define HAVE_IFACE_AIX 1
10464 if test $iface = no; then
10465 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10466 echo "configure:10467: checking for iface ifconf" >&5
10467 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10469 else
10471 if test "$cross_compiling" = yes; then
10472 samba_cv_HAVE_IFACE_IFCONF=cross
10473 else
10474 cat > conftest.$ac_ext <<EOF
10475 #line 10476 "configure"
10476 #include "confdefs.h"
10478 #define HAVE_IFACE_IFCONF 1
10479 #define AUTOCONF_TEST 1
10480 #include "confdefs.h"
10481 #include "${srcdir-.}/lib/interfaces.c"
10483 if { (eval echo configure:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10484 then
10485 samba_cv_HAVE_IFACE_IFCONF=yes
10486 else
10487 echo "configure: failed program was:" >&5
10488 cat conftest.$ac_ext >&5
10489 rm -fr conftest*
10490 samba_cv_HAVE_IFACE_IFCONF=no
10492 rm -fr conftest*
10497 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10498 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10499 iface=yes;cat >> confdefs.h <<\EOF
10500 #define HAVE_IFACE_IFCONF 1
10506 if test $iface = no; then
10507 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10508 echo "configure:10509: checking for iface ifreq" >&5
10509 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10511 else
10513 if test "$cross_compiling" = yes; then
10514 samba_cv_HAVE_IFACE_IFREQ=cross
10515 else
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10520 #define HAVE_IFACE_IFREQ 1
10521 #define AUTOCONF_TEST 1
10522 #include "confdefs.h"
10523 #include "${srcdir-.}/lib/interfaces.c"
10525 if { (eval echo configure:10526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10526 then
10527 samba_cv_HAVE_IFACE_IFREQ=yes
10528 else
10529 echo "configure: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10531 rm -fr conftest*
10532 samba_cv_HAVE_IFACE_IFREQ=no
10534 rm -fr conftest*
10539 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10540 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10541 iface=yes;cat >> confdefs.h <<\EOF
10542 #define HAVE_IFACE_IFREQ 1
10549 ################################################
10550 # look for a method of setting the effective uid
10551 seteuid=no;
10552 if test $seteuid = no; then
10553 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10554 echo "configure:10555: checking for setresuid" >&5
10555 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10556 echo $ac_n "(cached) $ac_c" 1>&6
10557 else
10559 if test "$cross_compiling" = yes; then
10560 samba_cv_USE_SETRESUID=cross
10561 else
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10566 #define AUTOCONF_TEST 1
10567 #define USE_SETRESUID 1
10568 #include "confdefs.h"
10569 #include "${srcdir-.}/lib/util_sec.c"
10571 if { (eval echo configure:10572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10572 then
10573 samba_cv_USE_SETRESUID=yes
10574 else
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 rm -fr conftest*
10578 samba_cv_USE_SETRESUID=no
10580 rm -fr conftest*
10585 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10586 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10587 seteuid=yes;cat >> confdefs.h <<\EOF
10588 #define USE_SETRESUID 1
10595 if test $seteuid = no; then
10596 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10597 echo "configure:10598: checking for setreuid" >&5
10598 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10600 else
10602 if test "$cross_compiling" = yes; then
10603 samba_cv_USE_SETREUID=cross
10604 else
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10609 #define AUTOCONF_TEST 1
10610 #define USE_SETREUID 1
10611 #include "confdefs.h"
10612 #include "${srcdir-.}/lib/util_sec.c"
10614 if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10615 then
10616 samba_cv_USE_SETREUID=yes
10617 else
10618 echo "configure: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 rm -fr conftest*
10621 samba_cv_USE_SETREUID=no
10623 rm -fr conftest*
10628 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10629 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10630 seteuid=yes;cat >> confdefs.h <<\EOF
10631 #define USE_SETREUID 1
10637 if test $seteuid = no; then
10638 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10639 echo "configure:10640: checking for seteuid" >&5
10640 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10642 else
10644 if test "$cross_compiling" = yes; then
10645 samba_cv_USE_SETEUID=cross
10646 else
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10651 #define AUTOCONF_TEST 1
10652 #define USE_SETEUID 1
10653 #include "confdefs.h"
10654 #include "${srcdir-.}/lib/util_sec.c"
10656 if { (eval echo configure:10657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10657 then
10658 samba_cv_USE_SETEUID=yes
10659 else
10660 echo "configure: failed program was:" >&5
10661 cat conftest.$ac_ext >&5
10662 rm -fr conftest*
10663 samba_cv_USE_SETEUID=no
10665 rm -fr conftest*
10670 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10671 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10672 seteuid=yes;cat >> confdefs.h <<\EOF
10673 #define USE_SETEUID 1
10679 if test $seteuid = no; then
10680 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10681 echo "configure:10682: checking for setuidx" >&5
10682 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10684 else
10686 if test "$cross_compiling" = yes; then
10687 samba_cv_USE_SETUIDX=cross
10688 else
10689 cat > conftest.$ac_ext <<EOF
10690 #line 10691 "configure"
10691 #include "confdefs.h"
10693 #define AUTOCONF_TEST 1
10694 #define USE_SETUIDX 1
10695 #include "confdefs.h"
10696 #include "${srcdir-.}/lib/util_sec.c"
10698 if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10699 then
10700 samba_cv_USE_SETUIDX=yes
10701 else
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 rm -fr conftest*
10705 samba_cv_USE_SETUIDX=no
10707 rm -fr conftest*
10712 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10713 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10714 seteuid=yes;cat >> confdefs.h <<\EOF
10715 #define USE_SETUIDX 1
10722 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10723 echo "configure:10724: checking for working mmap" >&5
10724 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10726 else
10728 if test "$cross_compiling" = yes; then
10729 samba_cv_HAVE_MMAP=cross
10730 else
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 #include "${srcdir-.}/tests/shared_mmap.c"
10736 if { (eval echo configure:10737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10737 then
10738 samba_cv_HAVE_MMAP=yes
10739 else
10740 echo "configure: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10742 rm -fr conftest*
10743 samba_cv_HAVE_MMAP=no
10745 rm -fr conftest*
10750 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10751 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10752 cat >> confdefs.h <<\EOF
10753 #define HAVE_MMAP 1
10758 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10759 echo "configure:10760: checking for ftruncate needs root" >&5
10760 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10761 echo $ac_n "(cached) $ac_c" 1>&6
10762 else
10764 if test "$cross_compiling" = yes; then
10765 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10766 else
10767 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10770 #include "${srcdir-.}/tests/ftruncroot.c"
10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10773 then
10774 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10775 else
10776 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5
10778 rm -fr conftest*
10779 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10781 rm -fr conftest*
10786 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10787 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10788 cat >> confdefs.h <<\EOF
10789 #define FTRUNCATE_NEEDS_ROOT 1
10794 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10795 echo "configure:10796: checking for fcntl locking" >&5
10796 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10797 echo $ac_n "(cached) $ac_c" 1>&6
10798 else
10800 if test "$cross_compiling" = yes; then
10801 samba_cv_HAVE_FCNTL_LOCK=cross
10802 else
10803 cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10806 #include "${srcdir-.}/tests/fcntl_lock.c"
10808 if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10809 then
10810 samba_cv_HAVE_FCNTL_LOCK=yes
10811 else
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10814 rm -fr conftest*
10815 samba_cv_HAVE_FCNTL_LOCK=no
10817 rm -fr conftest*
10822 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10823 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10824 cat >> confdefs.h <<\EOF
10825 #define HAVE_FCNTL_LOCK 1
10830 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10831 echo "configure:10832: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10832 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10833 echo $ac_n "(cached) $ac_c" 1>&6
10834 else
10836 if test "$cross_compiling" = yes; then
10837 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10838 else
10839 cat > conftest.$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10842 #include "${srcdir-.}/tests/fcntl_lock64.c"
10844 if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10845 then
10846 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10847 else
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10850 rm -fr conftest*
10851 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10853 rm -fr conftest*
10858 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10859 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10860 cat >> confdefs.h <<\EOF
10861 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10865 else
10868 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10869 echo "configure:10870: checking for 64 bit fcntl locking" >&5
10870 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10872 else
10874 if test "$cross_compiling" = yes; then
10875 samba_cv_HAVE_STRUCT_FLOCK64=cross
10876 else
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10881 #if defined(HAVE_UNISTD_H)
10882 #include <unistd.h>
10883 #endif
10884 #include <stdio.h>
10885 #include <stdlib.h>
10887 #ifdef HAVE_FCNTL_H
10888 #include <fcntl.h>
10889 #endif
10891 #ifdef HAVE_SYS_FCNTL_H
10892 #include <sys/fcntl.h>
10893 #endif
10894 main() { struct flock64 fl64;
10895 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10896 exit(0);
10897 #else
10898 exit(1);
10899 #endif
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10903 then
10904 samba_cv_HAVE_STRUCT_FLOCK64=yes
10905 else
10906 echo "configure: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10908 rm -fr conftest*
10909 samba_cv_HAVE_STRUCT_FLOCK64=no
10911 rm -fr conftest*
10916 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10918 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10919 cat >> confdefs.h <<\EOF
10920 #define HAVE_STRUCT_FLOCK64 1
10926 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10927 echo "configure:10928: checking for a crypt that needs truncated salt" >&5
10928 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10929 echo $ac_n "(cached) $ac_c" 1>&6
10930 else
10932 if test "$cross_compiling" = yes; then
10933 samba_cv_HAVE_TRUNCATED_SALT=cross
10934 else
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 #include "${srcdir-.}/tests/crypttest.c"
10940 if { (eval echo configure:10941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10941 then
10942 samba_cv_HAVE_TRUNCATED_SALT=no
10943 else
10944 echo "configure: failed program was:" >&5
10945 cat conftest.$ac_ext >&5
10946 rm -fr conftest*
10947 samba_cv_HAVE_TRUNCATED_SALT=yes
10949 rm -fr conftest*
10954 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10955 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10956 cat >> confdefs.h <<\EOF
10957 #define HAVE_TRUNCATED_SALT 1
10962 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10963 echo "configure:10964: checking for broken nisplus include files" >&5
10964 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10965 echo $ac_n "(cached) $ac_c" 1>&6
10966 else
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10971 #include <sys/acl.h>
10972 #if defined(HAVE_RPCSVC_NIS_H)
10973 #include <rpcsvc/nis.h>
10974 #endif
10975 int main() {
10976 return 0;
10977 ; return 0; }
10979 if { (eval echo configure:10980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10980 rm -rf conftest*
10981 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10982 else
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10985 rm -rf conftest*
10986 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10988 rm -f conftest*
10991 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10992 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10993 cat >> confdefs.h <<\EOF
10994 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11000 #################################################
11001 # check for smbwrapper support
11002 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11003 echo "configure:11004: checking whether to use smbwrapper" >&5
11004 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11005 if test "${with_smbwrapper+set}" = set; then
11006 withval="$with_smbwrapper"
11007 case "$withval" in
11008 yes)
11009 echo "$ac_t""yes" 1>&6
11010 cat >> confdefs.h <<\EOF
11011 #define WITH_SMBWRAPPER 1
11014 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11016 if test x$ATTEMPT_WRAP32_BUILD = x; then
11017 WRAP32=""
11018 else
11019 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11022 # Conditions under which smbwrapper should not be built.
11024 if test x$PICFLAG = x; then
11025 echo No support for PIC code - disabling smbwrapper and smbsh
11026 WRAP=""
11027 WRAP32=""
11028 elif test x$ac_cv_func_syscall = xno; then
11029 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11030 WRAP=""
11031 WRAP32=""
11035 echo "$ac_t""no" 1>&6
11037 esac
11038 else
11039 echo "$ac_t""no" 1>&6
11044 #################################################
11045 # check for the AFS filesystem
11046 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11047 echo "configure:11048: checking whether to use AFS" >&5
11048 # Check whether --with-afs or --without-afs was given.
11049 if test "${with_afs+set}" = set; then
11050 withval="$with_afs"
11051 case "$withval" in
11052 yes)
11053 echo "$ac_t""yes" 1>&6
11054 cat >> confdefs.h <<\EOF
11055 #define WITH_AFS 1
11060 echo "$ac_t""no" 1>&6
11062 esac
11063 else
11064 echo "$ac_t""no" 1>&6
11070 #################################################
11071 # check for the DFS auth system
11072 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11073 echo "configure:11074: checking whether to use DFS auth" >&5
11074 # Check whether --with-dfs or --without-dfs was given.
11075 if test "${with_dfs+set}" = set; then
11076 withval="$with_dfs"
11077 case "$withval" in
11078 yes)
11079 echo "$ac_t""yes" 1>&6
11080 cat >> confdefs.h <<\EOF
11081 #define WITH_DFS 1
11086 echo "$ac_t""no" 1>&6
11088 esac
11089 else
11090 echo "$ac_t""no" 1>&6
11095 #################################################
11096 # check for Kerberos IV auth system
11097 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11098 echo "configure:11099: checking whether to use Kerberos IV" >&5
11099 # Check whether --with-krb4 or --without-krb4 was given.
11100 if test "${with_krb4+set}" = set; then
11101 withval="$with_krb4"
11102 echo "$ac_t""yes" 1>&6
11103 cat >> confdefs.h <<\EOF
11104 #define KRB4_AUTH 1
11107 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11108 echo "configure:11109: checking for dn_expand in -lresolv" >&5
11109 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11111 echo $ac_n "(cached) $ac_c" 1>&6
11112 else
11113 ac_save_LIBS="$LIBS"
11114 LIBS="-lresolv $LIBS"
11115 cat > conftest.$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11118 /* Override any gcc2 internal prototype to avoid an error. */
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11121 char dn_expand();
11123 int main() {
11124 dn_expand()
11125 ; return 0; }
11127 if { (eval echo configure:11128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11128 rm -rf conftest*
11129 eval "ac_cv_lib_$ac_lib_var=yes"
11130 else
11131 echo "configure: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11133 rm -rf conftest*
11134 eval "ac_cv_lib_$ac_lib_var=no"
11136 rm -f conftest*
11137 LIBS="$ac_save_LIBS"
11140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6
11142 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11144 cat >> confdefs.h <<EOF
11145 #define $ac_tr_lib 1
11148 LIBS="-lresolv $LIBS"
11150 else
11151 echo "$ac_t""no" 1>&6
11154 LIBS="$LIBS -lkrb -ldes"
11155 CFLAGS="$CFLAGS -I$withval/include"
11156 LDFLAGS="$LDFLAGS -L$withval/lib"
11157 else
11158 echo "$ac_t""no" 1>&6
11163 #################################################
11164 # check for Kerberos 5 auth system
11165 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11166 echo "configure:11167: checking whether to use Kerberos 5" >&5
11167 # Check whether --with-krb5 or --without-krb5 was given.
11168 if test "${with_krb5+set}" = set; then
11169 withval="$with_krb5"
11170 echo "$ac_t""yes" 1>&6
11171 cat >> confdefs.h <<\EOF
11172 #define KRB5_AUTH 1
11175 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11176 CFLAGS="$CFLAGS -I$withval/include"
11177 LDFLAGS="$LDFLAGS -L$withval/lib"
11178 else
11179 echo "$ac_t""no" 1>&6
11184 #################################################
11185 # check for automount support
11186 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11187 echo "configure:11188: checking whether to use AUTOMOUNT" >&5
11188 # Check whether --with-automount or --without-automount was given.
11189 if test "${with_automount+set}" = set; then
11190 withval="$with_automount"
11191 case "$withval" in
11192 yes)
11193 echo "$ac_t""yes" 1>&6
11194 cat >> confdefs.h <<\EOF
11195 #define WITH_AUTOMOUNT 1
11200 echo "$ac_t""no" 1>&6
11202 esac
11203 else
11204 echo "$ac_t""no" 1>&6
11209 #################################################
11210 # check for smbmount support
11211 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11212 echo "configure:11213: checking whether to use SMBMOUNT" >&5
11213 # Check whether --with-smbmount or --without-smbmount was given.
11214 if test "${with_smbmount+set}" = set; then
11215 withval="$with_smbmount"
11216 case "$withval" in
11217 yes)
11218 echo "$ac_t""yes" 1>&6
11219 cat >> confdefs.h <<\EOF
11220 #define WITH_SMBMOUNT 1
11223 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11226 echo "$ac_t""no" 1>&6
11227 MPROGS=
11229 esac
11230 else
11231 echo "$ac_t""no" 1>&6
11232 MPROGS=
11238 #################################################
11239 # check for a PAM password database
11240 with_pam_for_crypt=no
11241 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11242 echo "configure:11243: checking whether to use PAM password database" >&5
11243 # Check whether --with-pam or --without-pam was given.
11244 if test "${with_pam+set}" = set; then
11245 withval="$with_pam"
11246 case "$withval" in
11247 yes)
11248 echo "$ac_t""yes" 1>&6
11249 cat >> confdefs.h <<\EOF
11250 #define WITH_PAM 1
11253 LIBS="$LIBS -lpam"
11254 with_pam_for_crypt=yes
11257 echo "$ac_t""no" 1>&6
11259 esac
11260 else
11261 echo "$ac_t""no" 1>&6
11266 # we can't build a pam module if we don't have pam.
11267 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11268 echo "configure:11269: checking for pam_get_data in -lpam" >&5
11269 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11271 echo $ac_n "(cached) $ac_c" 1>&6
11272 else
11273 ac_save_LIBS="$LIBS"
11274 LIBS="-lpam $LIBS"
11275 cat > conftest.$ac_ext <<EOF
11276 #line 11277 "configure"
11277 #include "confdefs.h"
11278 /* Override any gcc2 internal prototype to avoid an error. */
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281 char pam_get_data();
11283 int main() {
11284 pam_get_data()
11285 ; return 0; }
11287 if { (eval echo configure:11288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11288 rm -rf conftest*
11289 eval "ac_cv_lib_$ac_lib_var=yes"
11290 else
11291 echo "configure: failed program was:" >&5
11292 cat conftest.$ac_ext >&5
11293 rm -rf conftest*
11294 eval "ac_cv_lib_$ac_lib_var=no"
11296 rm -f conftest*
11297 LIBS="$ac_save_LIBS"
11300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11301 echo "$ac_t""yes" 1>&6
11302 cat >> confdefs.h <<\EOF
11303 #define HAVE_LIBPAM 1
11306 else
11307 echo "$ac_t""no" 1>&6
11311 #################################################
11312 # check for pam_smbpass support
11313 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11314 echo "configure:11315: checking whether to use pam_smbpass" >&5
11315 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11316 if test "${with_pam_smbpass+set}" = set; then
11317 withval="$with_pam_smbpass"
11318 case "$withval" in
11319 yes)
11320 echo "$ac_t""yes" 1>&6
11322 # Conditions under which pam_smbpass should not be built.
11324 if test x$PICFLAG = x; then
11325 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11326 PAM_MOD=""
11327 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11328 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11329 PAM_MOD=""
11330 else
11331 cat >> confdefs.h <<\EOF
11332 #define WITH_PAM_SMBPASS 1
11335 PAM_MOD="bin/pam_smbpass.so"
11339 echo "$ac_t""no" 1>&6
11341 esac
11342 else
11343 echo "$ac_t""no" 1>&6
11349 ###############################################
11350 # test for where we get crypt() from, but only
11351 # if not using PAM
11352 if test $with_pam_for_crypt = no; then
11353 for ac_func in crypt
11355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11356 echo "configure:11357: checking for $ac_func" >&5
11357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11358 echo $ac_n "(cached) $ac_c" 1>&6
11359 else
11360 cat > conftest.$ac_ext <<EOF
11361 #line 11362 "configure"
11362 #include "confdefs.h"
11363 /* System header to define __stub macros and hopefully few prototypes,
11364 which can conflict with char $ac_func(); below. */
11365 #include <assert.h>
11366 /* Override any gcc2 internal prototype to avoid an error. */
11367 /* We use char because int might match the return type of a gcc2
11368 builtin and then its argument prototype would still apply. */
11369 char $ac_func();
11371 int main() {
11373 /* The GNU C library defines this for functions which it implements
11374 to always fail with ENOSYS. Some functions are actually named
11375 something starting with __ and the normal name is an alias. */
11376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11377 choke me
11378 #else
11379 $ac_func();
11380 #endif
11382 ; return 0; }
11384 if { (eval echo configure:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11385 rm -rf conftest*
11386 eval "ac_cv_func_$ac_func=yes"
11387 else
11388 echo "configure: failed program was:" >&5
11389 cat conftest.$ac_ext >&5
11390 rm -rf conftest*
11391 eval "ac_cv_func_$ac_func=no"
11393 rm -f conftest*
11396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11397 echo "$ac_t""yes" 1>&6
11398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11399 cat >> confdefs.h <<EOF
11400 #define $ac_tr_func 1
11403 else
11404 echo "$ac_t""no" 1>&6
11406 done
11408 if test x"$ac_cv_func_crypt" = x"no"; then
11409 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11410 echo "configure:11411: checking for crypt in -lcrypt" >&5
11411 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11413 echo $ac_n "(cached) $ac_c" 1>&6
11414 else
11415 ac_save_LIBS="$LIBS"
11416 LIBS="-lcrypt $LIBS"
11417 cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11420 /* Override any gcc2 internal prototype to avoid an error. */
11421 /* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11423 char crypt();
11425 int main() {
11426 crypt()
11427 ; return 0; }
11429 if { (eval echo configure:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11430 rm -rf conftest*
11431 eval "ac_cv_lib_$ac_lib_var=yes"
11432 else
11433 echo "configure: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11435 rm -rf conftest*
11436 eval "ac_cv_lib_$ac_lib_var=no"
11438 rm -f conftest*
11439 LIBS="$ac_save_LIBS"
11442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11443 echo "$ac_t""yes" 1>&6
11444 LIBS="$LIBS -lcrypt";
11445 cat >> confdefs.h <<\EOF
11446 #define HAVE_CRYPT 1
11449 else
11450 echo "$ac_t""no" 1>&6
11457 #################################################
11458 # removed until we get the code actually working
11459 # --jeremy
11460 # check for a TDB password database
11461 # AC_MSG_CHECKING(whether to use TDB password database)
11462 #AC_ARG_WITH(tdbpwd,
11463 #[ --with-tdbpwd Include TDB password database
11464 # --without-tdbpwd Don't include TDB password database (default)],
11465 #[ case "$withval" in
11466 # yes)
11467 # AC_MSG_RESULT(yes)
11468 # AC_DEFINE(WITH_TDBPWD)
11469 # AC_MSG_ERROR([TDB password database not supported in this version.])
11470 # ;;
11471 # *)
11472 # AC_MSG_RESULT(no)
11473 # ;;
11474 # esac ],
11475 # AC_MSG_RESULT(no)
11478 #################################################
11479 # removed until we get the code actually working
11480 # --jerry
11482 # check for a LDAP password database
11483 #AC_MSG_CHECKING(whether to use LDAP password database)
11484 #AC_ARG_WITH(ldap,
11485 #[ --with-ldap Include LDAP support
11486 # --without-ldap Don't include LDAP support (default)],
11487 #[ case "$withval" in
11488 # yes)
11489 # AC_MSG_RESULT(yes)
11490 # AC_DEFINE(WITH_LDAP)
11491 # AC_MSG_ERROR([LDAP password database not supported in this version.])
11492 # ;;
11493 # *)
11494 # AC_MSG_RESULT(no)
11495 # ;;
11496 # esac ],
11497 # AC_MSG_RESULT(no)
11500 #################################################
11501 # check for a NISPLUS password database
11502 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11503 echo "configure:11504: checking whether to use NISPLUS password database" >&5
11504 # Check whether --with-nisplus or --without-nisplus was given.
11505 if test "${with_nisplus+set}" = set; then
11506 withval="$with_nisplus"
11507 case "$withval" in
11508 yes)
11509 echo "$ac_t""yes" 1>&6
11510 cat >> confdefs.h <<\EOF
11511 #define WITH_NISPLUS 1
11516 echo "$ac_t""no" 1>&6
11518 esac
11519 else
11520 echo "$ac_t""no" 1>&6
11525 #################################################
11526 # check for a NISPLUS_HOME support
11527 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11528 echo "configure:11529: checking whether to use NISPLUS_HOME" >&5
11529 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11530 if test "${with_nisplus_home+set}" = set; then
11531 withval="$with_nisplus_home"
11532 case "$withval" in
11533 yes)
11534 echo "$ac_t""yes" 1>&6
11535 cat >> confdefs.h <<\EOF
11536 #define WITH_NISPLUS_HOME 1
11541 echo "$ac_t""no" 1>&6
11543 esac
11544 else
11545 echo "$ac_t""no" 1>&6
11550 #################################################
11551 # check for the secure socket layer
11552 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11553 echo "configure:11554: checking whether to use SSL" >&5
11554 # Check whether --with-ssl or --without-ssl was given.
11555 if test "${with_ssl+set}" = set; then
11556 withval="$with_ssl"
11557 case "$withval" in
11558 yes)
11559 echo "$ac_t""yes" 1>&6
11560 cat >> confdefs.h <<\EOF
11561 #define WITH_SSL 1
11564 withval="/usr/local/ssl" # default
11566 if test "${with_sslinc+set}" = set; then
11568 withval="$with_sslinc"
11569 case "$withval" in
11570 yes|no)
11571 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11572 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11573 LIBS="-lssl -lcrypto $LIBS"
11574 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11577 CFLAGS="-I${withval}/include $CFLAGS"
11578 LIBS="-lssl -lcrypto $LIBS"
11579 LDFLAGS="-L${withval}/lib $LDFLAGS"
11581 esac
11583 else
11585 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11586 LIBS="-lssl -lcrypto $LIBS"
11587 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11591 if test ! -d ${withval}; then
11592 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11593 exit 1
11596 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11600 echo "$ac_t""no" 1>&6
11602 esac
11603 else
11604 echo "$ac_t""no" 1>&6
11609 #################################################
11610 # check for syslog logging
11611 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11612 echo "configure:11613: checking whether to use syslog logging" >&5
11613 # Check whether --with-syslog or --without-syslog was given.
11614 if test "${with_syslog+set}" = set; then
11615 withval="$with_syslog"
11616 case "$withval" in
11617 yes)
11618 echo "$ac_t""yes" 1>&6
11619 cat >> confdefs.h <<\EOF
11620 #define WITH_SYSLOG 1
11625 echo "$ac_t""no" 1>&6
11627 esac
11628 else
11629 echo "$ac_t""no" 1>&6
11634 #################################################
11635 # check for a shared memory profiling support
11636 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11637 echo "configure:11638: checking whether to use profiling" >&5
11638 # Check whether --with-profile or --without-profile was given.
11639 if test "${with_profile+set}" = set; then
11640 withval="$with_profile"
11641 case "$withval" in
11642 yes)
11643 echo "$ac_t""yes" 1>&6
11644 cat >> confdefs.h <<\EOF
11645 #define WITH_PROFILE 1
11650 echo "$ac_t""no" 1>&6
11652 esac
11653 else
11654 echo "$ac_t""no" 1>&6
11660 #################################################
11661 # check for experimental netatalk resource fork support
11662 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11663 echo "configure:11664: checking whether to support netatalk" >&5
11664 # Check whether --with-netatalk or --without-netatalk was given.
11665 if test "${with_netatalk+set}" = set; then
11666 withval="$with_netatalk"
11667 case "$withval" in
11668 yes)
11669 echo "$ac_t""yes" 1>&6
11670 cat >> confdefs.h <<\EOF
11671 #define WITH_NETATALK 1
11676 echo "$ac_t""no" 1>&6
11678 esac
11679 else
11680 echo "$ac_t""no" 1>&6
11685 #################################################
11686 # check for experimental disk-quotas support
11687 QUOTAOBJS=smbd/noquotas.o
11689 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11690 echo "configure:11691: checking whether to support disk-quotas" >&5
11691 # Check whether --with-quotas or --without-quotas was given.
11692 if test "${with_quotas+set}" = set; then
11693 withval="$with_quotas"
11694 case "$withval" in
11695 yes)
11696 echo "$ac_t""yes" 1>&6
11697 QUOTAOBJS=smbd/quotas.o
11700 echo "$ac_t""no" 1>&6
11702 esac
11703 else
11704 echo "$ac_t""no" 1>&6
11710 #################################################
11711 # check for experimental utmp accounting
11713 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11714 echo "configure:11715: checking whether to support utmp accounting" >&5
11715 # Check whether --with-utmp or --without-utmp was given.
11716 if test "${with_utmp+set}" = set; then
11717 withval="$with_utmp"
11718 case "$withval" in
11719 yes)
11720 echo "$ac_t""yes" 1>&6
11721 cat >> confdefs.h <<\EOF
11722 #define WITH_UTMP 1
11727 echo "$ac_t""no" 1>&6
11729 esac
11730 else
11731 echo "$ac_t""no" 1>&6
11736 #################################################
11737 # check for MS Dfs support
11739 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11740 echo "configure:11741: checking whether to support Microsoft Dfs" >&5
11741 # Check whether --with-msdfs or --without-msdfs was given.
11742 if test "${with_msdfs+set}" = set; then
11743 withval="$with_msdfs"
11744 case "$withval" in
11745 yes)
11746 echo "$ac_t""yes" 1>&6
11747 cat >> confdefs.h <<\EOF
11748 #define WITH_MSDFS 1
11753 echo "$ac_t""no" 1>&6
11755 esac
11756 else
11757 echo "$ac_t""no" 1>&6
11762 #################################################
11763 # check for Samba VFS support
11765 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11766 echo "configure:11767: checking whether to support the experimantal Samba vfs" >&5
11767 # Check whether --with-vfs or --without-vfs was given.
11768 if test "${with_vfs+set}" = set; then
11769 withval="$with_vfs"
11770 case "$withval" in
11771 yes)
11772 echo "$ac_t""yes" 1>&6
11773 cat >> confdefs.h <<\EOF
11774 #define WITH_VFS 1
11779 echo "$ac_t""no" 1>&6
11781 esac
11782 else
11783 echo "$ac_t""no" 1>&6
11788 #################################################
11789 # these tests are taken from the GNU fileutils package
11790 echo "checking how to get filesystem space usage" 1>&6
11791 echo "configure:11792: checking how to get filesystem space usage" >&5
11792 space=no
11794 # Test for statvfs64.
11795 if test $space = no; then
11796 # SVR4
11797 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11798 echo "configure:11799: checking statvfs64 function (SVR4)" >&5
11799 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11801 else
11802 if test "$cross_compiling" = yes; then
11803 fu_cv_sys_stat_statvfs64=cross
11804 else
11805 cat > conftest.$ac_ext <<EOF
11806 #line 11807 "configure"
11807 #include "confdefs.h"
11809 #if defined(HAVE_UNISTD_H)
11810 #include <unistd.h>
11811 #endif
11812 #include <sys/types.h>
11813 #include <sys/statvfs.h>
11814 main ()
11816 struct statvfs64 fsd;
11817 exit (statvfs64 (".", &fsd));
11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11821 then
11822 fu_cv_sys_stat_statvfs64=yes
11823 else
11824 echo "configure: failed program was:" >&5
11825 cat conftest.$ac_ext >&5
11826 rm -fr conftest*
11827 fu_cv_sys_stat_statvfs64=no
11829 rm -fr conftest*
11834 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11835 if test $fu_cv_sys_stat_statvfs64 = yes; then
11836 space=yes
11837 cat >> confdefs.h <<\EOF
11838 #define STAT_STATVFS64 1
11844 # Perform only the link test since it seems there are no variants of the
11845 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11846 # because that got a false positive on SCO OSR5. Adding the declaration
11847 # of a `struct statvfs' causes this test to fail (as it should) on such
11848 # systems. That system is reported to work fine with STAT_STATFS4 which
11849 # is what it gets when this test fails.
11850 if test $space = no; then
11851 # SVR4
11852 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11853 echo "configure:11854: checking statvfs function (SVR4)" >&5
11854 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11855 echo $ac_n "(cached) $ac_c" 1>&6
11856 else
11857 cat > conftest.$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 #include <sys/types.h>
11861 #include <sys/statvfs.h>
11862 int main() {
11863 struct statvfs fsd; statvfs (0, &fsd);
11864 ; return 0; }
11866 if { (eval echo configure:11867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11867 rm -rf conftest*
11868 fu_cv_sys_stat_statvfs=yes
11869 else
11870 echo "configure: failed program was:" >&5
11871 cat conftest.$ac_ext >&5
11872 rm -rf conftest*
11873 fu_cv_sys_stat_statvfs=no
11875 rm -f conftest*
11878 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11879 if test $fu_cv_sys_stat_statvfs = yes; then
11880 space=yes
11881 cat >> confdefs.h <<\EOF
11882 #define STAT_STATVFS 1
11888 if test $space = no; then
11889 # DEC Alpha running OSF/1
11890 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11891 echo "configure:11892: checking for 3-argument statfs function (DEC OSF/1)" >&5
11892 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11894 else
11895 if test "$cross_compiling" = yes; then
11896 fu_cv_sys_stat_statfs3_osf1=no
11897 else
11898 cat > conftest.$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11902 #include <sys/param.h>
11903 #include <sys/types.h>
11904 #include <sys/mount.h>
11905 main ()
11907 struct statfs fsd;
11908 fsd.f_fsize = 0;
11909 exit (statfs (".", &fsd, sizeof (struct statfs)));
11912 if { (eval echo configure:11913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11913 then
11914 fu_cv_sys_stat_statfs3_osf1=yes
11915 else
11916 echo "configure: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11918 rm -fr conftest*
11919 fu_cv_sys_stat_statfs3_osf1=no
11921 rm -fr conftest*
11926 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11927 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11928 space=yes
11929 cat >> confdefs.h <<\EOF
11930 #define STAT_STATFS3_OSF1 1
11936 if test $space = no; then
11937 # AIX
11938 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11939 echo "configure:11940: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11940 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11941 echo $ac_n "(cached) $ac_c" 1>&6
11942 else
11943 if test "$cross_compiling" = yes; then
11944 fu_cv_sys_stat_statfs2_bsize=no
11945 else
11946 cat > conftest.$ac_ext <<EOF
11947 #line 11948 "configure"
11948 #include "confdefs.h"
11950 #ifdef HAVE_SYS_PARAM_H
11951 #include <sys/param.h>
11952 #endif
11953 #ifdef HAVE_SYS_MOUNT_H
11954 #include <sys/mount.h>
11955 #endif
11956 #ifdef HAVE_SYS_VFS_H
11957 #include <sys/vfs.h>
11958 #endif
11959 main ()
11961 struct statfs fsd;
11962 fsd.f_bsize = 0;
11963 exit (statfs (".", &fsd));
11966 if { (eval echo configure:11967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11967 then
11968 fu_cv_sys_stat_statfs2_bsize=yes
11969 else
11970 echo "configure: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11972 rm -fr conftest*
11973 fu_cv_sys_stat_statfs2_bsize=no
11975 rm -fr conftest*
11980 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11981 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11982 space=yes
11983 cat >> confdefs.h <<\EOF
11984 #define STAT_STATFS2_BSIZE 1
11990 if test $space = no; then
11991 # SVR3
11992 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11993 echo "configure:11994: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11994 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11996 else
11997 if test "$cross_compiling" = yes; then
11998 fu_cv_sys_stat_statfs4=no
11999 else
12000 cat > conftest.$ac_ext <<EOF
12001 #line 12002 "configure"
12002 #include "confdefs.h"
12003 #include <sys/types.h>
12004 #include <sys/statfs.h>
12005 main ()
12007 struct statfs fsd;
12008 exit (statfs (".", &fsd, sizeof fsd, 0));
12011 if { (eval echo configure:12012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12012 then
12013 fu_cv_sys_stat_statfs4=yes
12014 else
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12017 rm -fr conftest*
12018 fu_cv_sys_stat_statfs4=no
12020 rm -fr conftest*
12025 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12026 if test $fu_cv_sys_stat_statfs4 = yes; then
12027 space=yes
12028 cat >> confdefs.h <<\EOF
12029 #define STAT_STATFS4 1
12035 if test $space = no; then
12036 # 4.4BSD and NetBSD
12037 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12038 echo "configure:12039: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12039 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12040 echo $ac_n "(cached) $ac_c" 1>&6
12041 else
12042 if test "$cross_compiling" = yes; then
12043 fu_cv_sys_stat_statfs2_fsize=no
12044 else
12045 cat > conftest.$ac_ext <<EOF
12046 #line 12047 "configure"
12047 #include "confdefs.h"
12048 #include <sys/types.h>
12049 #ifdef HAVE_SYS_PARAM_H
12050 #include <sys/param.h>
12051 #endif
12052 #ifdef HAVE_SYS_MOUNT_H
12053 #include <sys/mount.h>
12054 #endif
12055 main ()
12057 struct statfs fsd;
12058 fsd.f_fsize = 0;
12059 exit (statfs (".", &fsd));
12062 if { (eval echo configure:12063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12063 then
12064 fu_cv_sys_stat_statfs2_fsize=yes
12065 else
12066 echo "configure: failed program was:" >&5
12067 cat conftest.$ac_ext >&5
12068 rm -fr conftest*
12069 fu_cv_sys_stat_statfs2_fsize=no
12071 rm -fr conftest*
12076 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12077 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12078 space=yes
12079 cat >> confdefs.h <<\EOF
12080 #define STAT_STATFS2_FSIZE 1
12086 if test $space = no; then
12087 # Ultrix
12088 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12089 echo "configure:12090: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12090 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12091 echo $ac_n "(cached) $ac_c" 1>&6
12092 else
12093 if test "$cross_compiling" = yes; then
12094 fu_cv_sys_stat_fs_data=no
12095 else
12096 cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12099 #include <sys/types.h>
12100 #ifdef HAVE_SYS_PARAM_H
12101 #include <sys/param.h>
12102 #endif
12103 #ifdef HAVE_SYS_MOUNT_H
12104 #include <sys/mount.h>
12105 #endif
12106 #ifdef HAVE_SYS_FS_TYPES_H
12107 #include <sys/fs_types.h>
12108 #endif
12109 main ()
12111 struct fs_data fsd;
12112 /* Ultrix's statfs returns 1 for success,
12113 0 for not mounted, -1 for failure. */
12114 exit (statfs (".", &fsd) != 1);
12117 if { (eval echo configure:12118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12118 then
12119 fu_cv_sys_stat_fs_data=yes
12120 else
12121 echo "configure: failed program was:" >&5
12122 cat conftest.$ac_ext >&5
12123 rm -fr conftest*
12124 fu_cv_sys_stat_fs_data=no
12126 rm -fr conftest*
12131 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12132 if test $fu_cv_sys_stat_fs_data = yes; then
12133 space=yes
12134 cat >> confdefs.h <<\EOF
12135 #define STAT_STATFS2_FS_DATA 1
12142 # As a gating factor for large file support, in order to
12143 # use <4GB files we must have the following minimal support
12144 # available.
12145 # long long, and a 64 bit off_t or off64_t.
12146 # If we don't have all of these then disable large
12147 # file support.
12149 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12150 echo "configure:12151: checking checking if large file support can be enabled" >&5
12151 cat > conftest.$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12155 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12156 #include <sys/types.h>
12157 #else
12158 __COMPILE_ERROR_
12159 #endif
12161 int main() {
12162 int i
12163 ; return 0; }
12165 if { (eval echo configure:12166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12166 rm -rf conftest*
12167 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12168 else
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 rm -rf conftest*
12172 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12174 rm -f conftest*
12175 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12176 echo "$ac_t""yes" 1>&6
12177 cat >> confdefs.h <<\EOF
12178 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12181 else
12182 echo "$ac_t""no" 1>&6
12185 # Check whether --with-spinlocks or --without-spinlocks was given.
12186 if test "${with_spinlocks+set}" = set; then
12187 withval="$with_spinlocks"
12191 if test "x$with_spinlocks" = "xyes"; then
12192 cat >> confdefs.h <<\EOF
12193 #define USE_SPINLOCKS 1
12197 case "$host_cpu" in
12198 sparc)
12199 cat >> confdefs.h <<\EOF
12200 #define SPARC_SPINLOCKS 1
12205 i386|i486|i586|i686)
12206 cat >> confdefs.h <<\EOF
12207 #define INTEL_SPINLOCKS 1
12212 mips)
12213 cat >> confdefs.h <<\EOF
12214 #define MIPS_SPINLOCKS 1
12219 powerpc)
12220 cat >> confdefs.h <<\EOF
12221 #define POWERPC_SPINLOCKS 1
12225 esac
12228 #################################################
12229 # check for ACL support
12231 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12232 echo "configure:12233: checking whether to support ACLs" >&5
12233 # Check whether --with-acl-support or --without-acl-support was given.
12234 if test "${with_acl_support+set}" = set; then
12235 withval="$with_acl_support"
12236 case "$withval" in
12237 yes)
12239 case "$host_os" in
12240 *sysv5*)
12241 echo "$ac_t""Using UnixWare ACLs" 1>&6
12242 cat >> confdefs.h <<\EOF
12243 #define HAVE_UNIXWARE_ACLS 1
12247 *solaris*)
12248 echo "$ac_t""Using solaris ACLs" 1>&6
12249 cat >> confdefs.h <<\EOF
12250 #define HAVE_SOLARIS_ACLS 1
12254 *irix*)
12255 echo "$ac_t""Using IRIX ACLs" 1>&6
12256 cat >> confdefs.h <<\EOF
12257 #define HAVE_IRIX_ACLS 1
12261 *aix*)
12262 echo "$ac_t""Using AIX ACLs" 1>&6
12263 cat >> confdefs.h <<\EOF
12264 #define HAVE_AIX_ACLS 1
12269 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12270 echo "configure:12271: checking for acl_get_file in -lacl" >&5
12271 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12273 echo $ac_n "(cached) $ac_c" 1>&6
12274 else
12275 ac_save_LIBS="$LIBS"
12276 LIBS="-lacl $LIBS"
12277 cat > conftest.$ac_ext <<EOF
12278 #line 12279 "configure"
12279 #include "confdefs.h"
12280 /* Override any gcc2 internal prototype to avoid an error. */
12281 /* We use char because int might match the return type of a gcc2
12282 builtin and then its argument prototype would still apply. */
12283 char acl_get_file();
12285 int main() {
12286 acl_get_file()
12287 ; return 0; }
12289 if { (eval echo configure:12290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12290 rm -rf conftest*
12291 eval "ac_cv_lib_$ac_lib_var=yes"
12292 else
12293 echo "configure: failed program was:" >&5
12294 cat conftest.$ac_ext >&5
12295 rm -rf conftest*
12296 eval "ac_cv_lib_$ac_lib_var=no"
12298 rm -f conftest*
12299 LIBS="$ac_save_LIBS"
12302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12303 echo "$ac_t""yes" 1>&6
12304 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12306 cat >> confdefs.h <<EOF
12307 #define $ac_tr_lib 1
12310 LIBS="-lacl $LIBS"
12312 else
12313 echo "$ac_t""no" 1>&6
12316 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12317 echo "configure:12318: checking for ACL support" >&5
12318 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12319 echo $ac_n "(cached) $ac_c" 1>&6
12320 else
12322 cat > conftest.$ac_ext <<EOF
12323 #line 12324 "configure"
12324 #include "confdefs.h"
12325 #include <sys/types.h>
12326 #include <sys/acl.h>
12327 int main() {
12328 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12329 ; return 0; }
12331 if { (eval echo configure:12332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12332 rm -rf conftest*
12333 samba_cv_HAVE_POSIX_ACLS=yes
12334 else
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12337 rm -rf conftest*
12338 samba_cv_HAVE_POSIX_ACLS=no
12340 rm -f conftest*
12343 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12344 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12345 echo "$ac_t""Using posix ACLs" 1>&6
12346 cat >> confdefs.h <<\EOF
12347 #define HAVE_POSIX_ACLS 1
12350 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12351 echo "configure:12352: checking for acl_get_perm_np" >&5
12352 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12354 else
12356 cat > conftest.$ac_ext <<EOF
12357 #line 12358 "configure"
12358 #include "confdefs.h"
12359 #include <sys/types.h>
12360 #include <sys/acl.h>
12361 int main() {
12362 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12363 ; return 0; }
12365 if { (eval echo configure:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12366 rm -rf conftest*
12367 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12368 else
12369 echo "configure: failed program was:" >&5
12370 cat conftest.$ac_ext >&5
12371 rm -rf conftest*
12372 samba_cv_HAVE_ACL_GET_PERM_NP=no
12374 rm -f conftest*
12377 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12378 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12379 cat >> confdefs.h <<\EOF
12380 #define HAVE_ACL_GET_PERM_NP 1
12385 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12386 echo "configure:12387: checking for XFS ACL support" >&5
12387 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12388 echo $ac_n "(cached) $ac_c" 1>&6
12389 else
12391 cat > conftest.$ac_ext <<EOF
12392 #line 12393 "configure"
12393 #include "confdefs.h"
12394 #include <sys/types.h>
12395 #include <acl/acl.h>
12396 int main() {
12397 char test_str[13] = SGI_ACL_FILE;
12398 ; return 0; }
12400 if { (eval echo configure:12401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12401 rm -rf conftest*
12402 samba_cv_HAVE_XFS_ACLS=yes
12403 else
12404 echo "configure: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12406 rm -rf conftest*
12407 samba_cv_XFS_POSIX_ACLS=no
12409 rm -f conftest*
12412 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12413 if test x"$samba_cv_HAVE_XFS_ACLS" = x"yes"; then
12414 echo "$ac_t""Using XFS ACLs" 1>&6
12415 cat >> confdefs.h <<\EOF
12416 #define HAVE_XFS_ACLS 1
12421 esac
12424 echo "$ac_t""no" 1>&6
12425 cat >> confdefs.h <<\EOF
12426 #define HAVE_NO_ACLS 1
12430 esac
12431 else
12432 cat >> confdefs.h <<\EOF
12433 #define HAVE_NO_ACLS 1
12436 echo "$ac_t""no" 1>&6
12441 #################################################
12442 # check for the historical SAMBA installation
12444 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
12445 # Put all binaries under the /usr/local/samba/bin directory.
12446 sbindir="$bindir"
12449 echo "checking configure summary"
12450 if test "$cross_compiling" = yes; then
12452 else
12453 cat > conftest.$ac_ext <<EOF
12454 #line 12455 "configure"
12455 #include "confdefs.h"
12456 #include "${srcdir-.}/tests/summary.c"
12458 if { (eval echo configure:12459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12459 then
12460 echo "configure OK";
12461 else
12462 echo "configure: failed program was:" >&5
12463 cat conftest.$ac_ext >&5
12464 rm -fr conftest*
12465 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12467 rm -fr conftest*
12471 builddir=`pwd`
12474 trap '' 1 2 15
12475 cat > confcache <<\EOF
12476 # This file is a shell script that caches the results of configure
12477 # tests run on this system so they can be shared between configure
12478 # scripts and configure runs. It is not useful on other systems.
12479 # If it contains results you don't want to keep, you may remove or edit it.
12481 # By default, configure uses ./config.cache as the cache file,
12482 # creating it if it does not exist already. You can give configure
12483 # the --cache-file=FILE option to use a different cache file; that is
12484 # what configure does when it calls configure scripts in
12485 # subdirectories, so they share the cache.
12486 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12487 # config.status only pays attention to the cache file if you give it the
12488 # --recheck option to rerun configure.
12491 # The following way of writing the cache mishandles newlines in values,
12492 # but we know of no workaround that is simple, portable, and efficient.
12493 # So, don't put newlines in cache variables' values.
12494 # Ultrix sh set writes to stderr and can't be redirected directly,
12495 # and sets the high bit in the cache file unless we assign to the vars.
12496 (set) 2>&1 |
12497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12498 *ac_space=\ *)
12499 # `set' does not quote correctly, so add quotes (double-quote substitution
12500 # turns \\\\ into \\, and sed turns \\ into \).
12501 sed -n \
12502 -e "s/'/'\\\\''/g" \
12503 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12506 # `set' quotes correctly as required by POSIX, so do not add quotes.
12507 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12509 esac >> confcache
12510 if cmp -s $cache_file confcache; then
12512 else
12513 if test -w $cache_file; then
12514 echo "updating cache $cache_file"
12515 cat confcache > $cache_file
12516 else
12517 echo "not updating unwritable cache $cache_file"
12520 rm -f confcache
12522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12525 # Let make expand exec_prefix.
12526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12528 # Any assignment to VPATH causes Sun make to only execute
12529 # the first set of double-colon rules, so remove it if not needed.
12530 # If there is a colon in the path, we need to keep it.
12531 if test "x$srcdir" = x.; then
12532 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12535 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12537 DEFS=-DHAVE_CONFIG_H
12539 # Without the "./", some shells look in PATH for config.status.
12540 : ${CONFIG_STATUS=./config.status}
12542 echo creating $CONFIG_STATUS
12543 rm -f $CONFIG_STATUS
12544 cat > $CONFIG_STATUS <<EOF
12545 #! /bin/sh
12546 # Generated automatically by configure.
12547 # Run this file to recreate the current configuration.
12548 # This directory was configured as follows,
12549 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12551 # $0 $ac_configure_args
12553 # Compiler output produced by configure, useful for debugging
12554 # configure, is in ./config.log if it exists.
12556 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12557 for ac_option
12559 case "\$ac_option" in
12560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12561 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12562 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12563 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12564 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12565 exit 0 ;;
12566 -help | --help | --hel | --he | --h)
12567 echo "\$ac_cs_usage"; exit 0 ;;
12568 *) echo "\$ac_cs_usage"; exit 1 ;;
12569 esac
12570 done
12572 ac_given_srcdir=$srcdir
12573 ac_given_INSTALL="$INSTALL"
12575 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12577 cat >> $CONFIG_STATUS <<EOF
12579 # Protect against being on the right side of a sed subst in config.status.
12580 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12581 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12582 $ac_vpsub
12583 $extrasub
12584 s%@SHELL@%$SHELL%g
12585 s%@CFLAGS@%$CFLAGS%g
12586 s%@CPPFLAGS@%$CPPFLAGS%g
12587 s%@CXXFLAGS@%$CXXFLAGS%g
12588 s%@FFLAGS@%$FFLAGS%g
12589 s%@DEFS@%$DEFS%g
12590 s%@LDFLAGS@%$LDFLAGS%g
12591 s%@LIBS@%$LIBS%g
12592 s%@exec_prefix@%$exec_prefix%g
12593 s%@prefix@%$prefix%g
12594 s%@program_transform_name@%$program_transform_name%g
12595 s%@bindir@%$bindir%g
12596 s%@sbindir@%$sbindir%g
12597 s%@libexecdir@%$libexecdir%g
12598 s%@datadir@%$datadir%g
12599 s%@sysconfdir@%$sysconfdir%g
12600 s%@sharedstatedir@%$sharedstatedir%g
12601 s%@localstatedir@%$localstatedir%g
12602 s%@libdir@%$libdir%g
12603 s%@includedir@%$includedir%g
12604 s%@oldincludedir@%$oldincludedir%g
12605 s%@infodir@%$infodir%g
12606 s%@mandir@%$mandir%g
12607 s%@codepagedir@%$codepagedir%g
12608 s%@configdir@%$configdir%g
12609 s%@lockdir@%$lockdir%g
12610 s%@logfilebase@%$logfilebase%g
12611 s%@privatedir@%$privatedir%g
12612 s%@swatdir@%$swatdir%g
12613 s%@RUNPROG@%$RUNPROG%g
12614 s%@MPROGS@%$MPROGS%g
12615 s%@LDSHFLAGS@%$LDSHFLAGS%g
12616 s%@HOST_OS@%$HOST_OS%g
12617 s%@PAM_MOD@%$PAM_MOD%g
12618 s%@WRAP@%$WRAP%g
12619 s%@WRAP32@%$WRAP32%g
12620 s%@PICFLAG@%$PICFLAG%g
12621 s%@SHLIBEXT@%$SHLIBEXT%g
12622 s%@CC@%$CC%g
12623 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12624 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12625 s%@INSTALL_DATA@%$INSTALL_DATA%g
12626 s%@AWK@%$AWK%g
12627 s%@host@%$host%g
12628 s%@host_alias@%$host_alias%g
12629 s%@host_cpu@%$host_cpu%g
12630 s%@host_vendor@%$host_vendor%g
12631 s%@host_os@%$host_os%g
12632 s%@build@%$build%g
12633 s%@build_alias@%$build_alias%g
12634 s%@build_cpu@%$build_cpu%g
12635 s%@build_vendor@%$build_vendor%g
12636 s%@build_os@%$build_os%g
12637 s%@RANLIB@%$RANLIB%g
12638 s%@LN_S@%$LN_S%g
12639 s%@LIBTOOL@%$LIBTOOL%g
12640 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12641 s%@BROKEN_CC@%$BROKEN_CC%g
12642 s%@target@%$target%g
12643 s%@target_alias@%$target_alias%g
12644 s%@target_cpu@%$target_cpu%g
12645 s%@target_vendor@%$target_vendor%g
12646 s%@target_os@%$target_os%g
12647 s%@CPP@%$CPP%g
12648 s%@LIBOBJS@%$LIBOBJS%g
12649 s%@TERMLIBS@%$TERMLIBS%g
12650 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12651 s%@ROFF@%$ROFF%g
12652 s%@QUOTAOBJS@%$QUOTAOBJS%g
12653 s%@builddir@%$builddir%g
12655 CEOF
12658 cat >> $CONFIG_STATUS <<\EOF
12660 # Split the substitutions into bite-sized pieces for seds with
12661 # small command number limits, like on Digital OSF/1 and HP-UX.
12662 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12663 ac_file=1 # Number of current file.
12664 ac_beg=1 # First line for current file.
12665 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12666 ac_more_lines=:
12667 ac_sed_cmds=""
12668 while $ac_more_lines; do
12669 if test $ac_beg -gt 1; then
12670 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12671 else
12672 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12674 if test ! -s conftest.s$ac_file; then
12675 ac_more_lines=false
12676 rm -f conftest.s$ac_file
12677 else
12678 if test -z "$ac_sed_cmds"; then
12679 ac_sed_cmds="sed -f conftest.s$ac_file"
12680 else
12681 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12683 ac_file=`expr $ac_file + 1`
12684 ac_beg=$ac_end
12685 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12687 done
12688 if test -z "$ac_sed_cmds"; then
12689 ac_sed_cmds=cat
12693 cat >> $CONFIG_STATUS <<EOF
12695 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12697 cat >> $CONFIG_STATUS <<\EOF
12698 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12699 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12700 case "$ac_file" in
12701 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12702 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12703 *) ac_file_in="${ac_file}.in" ;;
12704 esac
12706 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12708 # Remove last slash and all that follows it. Not all systems have dirname.
12709 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12710 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12711 # The file is in a subdirectory.
12712 test ! -d "$ac_dir" && mkdir "$ac_dir"
12713 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12714 # A "../" for each directory in $ac_dir_suffix.
12715 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12716 else
12717 ac_dir_suffix= ac_dots=
12720 case "$ac_given_srcdir" in
12721 .) srcdir=.
12722 if test -z "$ac_dots"; then top_srcdir=.
12723 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12724 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12725 *) # Relative path.
12726 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12727 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12728 esac
12730 case "$ac_given_INSTALL" in
12731 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12732 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12733 esac
12735 echo creating "$ac_file"
12736 rm -f "$ac_file"
12737 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12738 case "$ac_file" in
12739 *Makefile*) ac_comsub="1i\\
12740 # $configure_input" ;;
12741 *) ac_comsub= ;;
12742 esac
12744 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12745 sed -e "$ac_comsub
12746 s%@configure_input@%$configure_input%g
12747 s%@srcdir@%$srcdir%g
12748 s%@top_srcdir@%$top_srcdir%g
12749 s%@INSTALL@%$INSTALL%g
12750 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12751 fi; done
12752 rm -f conftest.s*
12754 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12755 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12757 # ac_d sets the value in "#define NAME VALUE" lines.
12758 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12759 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12760 ac_dC='\3'
12761 ac_dD='%g'
12762 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12763 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12764 ac_uB='\([ ]\)%\1#\2define\3'
12765 ac_uC=' '
12766 ac_uD='\4%g'
12767 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12768 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12769 ac_eB='$%\1#\2define\3'
12770 ac_eC=' '
12771 ac_eD='%g'
12773 if test "${CONFIG_HEADERS+set}" != set; then
12775 cat >> $CONFIG_STATUS <<EOF
12776 CONFIG_HEADERS="include/config.h"
12778 cat >> $CONFIG_STATUS <<\EOF
12780 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12781 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12782 case "$ac_file" in
12783 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12784 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12785 *) ac_file_in="${ac_file}.in" ;;
12786 esac
12788 echo creating $ac_file
12790 rm -f conftest.frag conftest.in conftest.out
12791 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12792 cat $ac_file_inputs > conftest.in
12796 # Transform confdefs.h into a sed script conftest.vals that substitutes
12797 # the proper values into config.h.in to produce config.h. And first:
12798 # Protect against being on the right side of a sed subst in config.status.
12799 # Protect against being in an unquoted here document in config.status.
12800 rm -f conftest.vals
12801 cat > conftest.hdr <<\EOF
12802 s/[\\&%]/\\&/g
12803 s%[\\$`]%\\&%g
12804 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12805 s%ac_d%ac_u%gp
12806 s%ac_u%ac_e%gp
12808 sed -n -f conftest.hdr confdefs.h > conftest.vals
12809 rm -f conftest.hdr
12811 # This sed command replaces #undef with comments. This is necessary, for
12812 # example, in the case of _POSIX_SOURCE, which is predefined and required
12813 # on some systems where configure will not decide to define it.
12814 cat >> conftest.vals <<\EOF
12815 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12818 # Break up conftest.vals because some shells have a limit on
12819 # the size of here documents, and old seds have small limits too.
12821 rm -f conftest.tail
12822 while :
12824 ac_lines=`grep -c . conftest.vals`
12825 # grep -c gives empty output for an empty file on some AIX systems.
12826 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12827 # Write a limited-size here document to conftest.frag.
12828 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12829 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12830 echo 'CEOF
12831 sed -f conftest.frag conftest.in > conftest.out
12832 rm -f conftest.in
12833 mv conftest.out conftest.in
12834 ' >> $CONFIG_STATUS
12835 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12836 rm -f conftest.vals
12837 mv conftest.tail conftest.vals
12838 done
12839 rm -f conftest.vals
12841 cat >> $CONFIG_STATUS <<\EOF
12842 rm -f conftest.frag conftest.h
12843 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12844 cat conftest.in >> conftest.h
12845 rm -f conftest.in
12846 if cmp -s $ac_file conftest.h 2>/dev/null; then
12847 echo "$ac_file is unchanged"
12848 rm -f conftest.h
12849 else
12850 # Remove last slash and all that follows it. Not all systems have dirname.
12851 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12852 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12853 # The file is in a subdirectory.
12854 test ! -d "$ac_dir" && mkdir "$ac_dir"
12856 rm -f $ac_file
12857 mv conftest.h $ac_file
12859 fi; done
12862 cat >> $CONFIG_STATUS <<EOF
12865 cat >> $CONFIG_STATUS <<\EOF
12867 exit 0
12869 chmod +x $CONFIG_STATUS
12870 rm -fr confdefs* $ac_clean_files
12871 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1