This commit was manufactured by cvs2svn to create tag
[Samba.git] / source / configure
blobe4c324195bbbf966c20d2d169b984e87e3df6706
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-static[=PKGS] build static libraries [default=no]"
17 ac_help="$ac_help
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 ac_help="$ac_help
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 ac_help="$ac_help
24 --disable-libtool-lock avoid locking (might break parallel builds)"
25 ac_help="$ac_help
26 --enable-maintainer-mode enable some make rules for maintainers"
27 ac_help="$ac_help
28 --with-smbwrapper Include SMB wrapper support
29 --without-smbwrapper Don't include SMB wrapper support (default)"
30 ac_help="$ac_help
31 --with-afs Include AFS support
32 --without-afs Don't include AFS support (default)"
33 ac_help="$ac_help
34 --with-dfs Include DFS support
35 --without-dfs Don't include DFS support (default)"
36 ac_help="$ac_help
37 --with-krb4=base-dir Include Kerberos IV support
38 --without-krb4 Don't include Kerberos IV support (default)"
39 ac_help="$ac_help
40 --with-srvtab[=instance] Include renewable AFS tickets
41 --without-srvtab Don't renewable AFS tickets (default)"
42 ac_help="$ac_help
43 --with-krb5=base-dir Include Kerberos 5 support
44 --without-krb5 Don't include Kerberos 5 support (default)"
45 ac_help="$ac_help
46 --with-automount Include AUTOMOUNT support
47 --without-automount Don't include AUTOMOUNT support (default)"
48 ac_help="$ac_help
49 --with-smbmount Include SMBMOUNT (Linux only) support
50 --without-smbmount Don't include SMBMOUNT support (default)"
51 ac_help="$ac_help
52 --with-pam Include PAM password database support
53 --without-pam Don't include PAM password database support (default)"
54 ac_help="$ac_help
55 --with-ldap Include LDAP support
56 --without-ldap Don't include LDAP support (default)"
57 ac_help="$ac_help
58 --with-nt5ldap Include NT5 LDAP support
59 --without-nt5ldap Don't include NT5 LDAP support (default)"
60 ac_help="$ac_help
61 --with-nt5ldap Include NT5 LDAP support
62 --without-nt5ldap Don't include NT5 LDAP support (default)"
63 ac_help="$ac_help
64 --with-nisplus Include NISPLUS password database support
65 --without-nisplus Don't include NISPLUS password database support (default)"
66 ac_help="$ac_help
67 --with-sam-pwdb={passdb,tdb,nt5ldap}
68 which password-database to use (passdb)"
69 ac_help="$ac_help
70 --with-surstdb Use SURS tdb database
71 --without-surstdb Don't use SURS tdb database (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-sambaconfdir=DIR Where to put smb.conf etc. ($ac_default_prefix/lib)"
99 ac_help="$ac_help
100 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
101 ac_help="$ac_help
102 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
103 ac_help="$ac_help
104 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
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=
616 # we want to be compatibe with older versions of Samba
629 # compile with optimisation and without debugging by default
630 CFLAGS=${CFLAGS-"-O"}
632 # Extract the first word of "gcc", so it can be a program name with args.
633 set dummy gcc; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
638 else
639 if test -n "$CC"; then
640 ac_cv_prog_CC="$CC" # Let the user override the test.
641 else
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
643 ac_dummy="$PATH"
644 for ac_dir in $ac_dummy; do
645 test -z "$ac_dir" && ac_dir=.
646 if test -f $ac_dir/$ac_word; then
647 ac_cv_prog_CC="gcc"
648 break
650 done
651 IFS="$ac_save_ifs"
654 CC="$ac_cv_prog_CC"
655 if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
657 else
658 echo "$ac_t""no" 1>&6
661 if test -z "$CC"; then
662 # Extract the first word of "cc", so it can be a program name with args.
663 set dummy cc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
668 else
669 if test -n "$CC"; then
670 ac_cv_prog_CC="$CC" # Let the user override the test.
671 else
672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
673 ac_prog_rejected=no
674 ac_dummy="$PATH"
675 for ac_dir in $ac_dummy; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
679 ac_prog_rejected=yes
680 continue
682 ac_cv_prog_CC="cc"
683 break
685 done
686 IFS="$ac_save_ifs"
687 if test $ac_prog_rejected = yes; then
688 # We found a bogon in the path, so make sure we never use it.
689 set dummy $ac_cv_prog_CC
690 shift
691 if test $# -gt 0; then
692 # We chose a different compiler from the bogus one.
693 # However, it has the same basename, so the bogon will be chosen
694 # first if we set CC to just the basename; use the full file name.
695 shift
696 set dummy "$ac_dir/$ac_word" "$@"
697 shift
698 ac_cv_prog_CC="$@"
703 CC="$ac_cv_prog_CC"
704 if test -n "$CC"; then
705 echo "$ac_t""$CC" 1>&6
706 else
707 echo "$ac_t""no" 1>&6
710 if test -z "$CC"; then
711 case "`uname -s`" in
712 *win32* | *WIN32*)
713 # Extract the first word of "cl", so it can be a program name with args.
714 set dummy cl; ac_word=$2
715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
716 echo "configure:717: checking for $ac_word" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
719 else
720 if test -n "$CC"; then
721 ac_cv_prog_CC="$CC" # Let the user override the test.
722 else
723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
724 ac_dummy="$PATH"
725 for ac_dir in $ac_dummy; do
726 test -z "$ac_dir" && ac_dir=.
727 if test -f $ac_dir/$ac_word; then
728 ac_cv_prog_CC="cl"
729 break
731 done
732 IFS="$ac_save_ifs"
735 CC="$ac_cv_prog_CC"
736 if test -n "$CC"; then
737 echo "$ac_t""$CC" 1>&6
738 else
739 echo "$ac_t""no" 1>&6
742 esac
744 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
750 ac_ext=c
751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752 ac_cpp='$CPP $CPPFLAGS'
753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755 cross_compiling=$ac_cv_prog_cc_cross
757 cat > conftest.$ac_ext << EOF
759 #line 760 "configure"
760 #include "confdefs.h"
762 main(){return(0);}
764 if { (eval echo configure:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
765 ac_cv_prog_cc_works=yes
766 # If we can't run a trivial program, we are probably using a cross compiler.
767 if (./conftest; exit) 2>/dev/null; then
768 ac_cv_prog_cc_cross=no
769 else
770 ac_cv_prog_cc_cross=yes
772 else
773 echo "configure: failed program was:" >&5
774 cat conftest.$ac_ext >&5
775 ac_cv_prog_cc_works=no
777 rm -fr conftest*
778 ac_ext=c
779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
780 ac_cpp='$CPP $CPPFLAGS'
781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
783 cross_compiling=$ac_cv_prog_cc_cross
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no; then
787 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling=$ac_cv_prog_cc_cross
794 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
798 else
799 cat > conftest.c <<EOF
800 #ifdef __GNUC__
801 yes;
802 #endif
804 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
805 ac_cv_prog_gcc=yes
806 else
807 ac_cv_prog_gcc=no
811 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
813 if test $ac_cv_prog_gcc = yes; then
814 GCC=yes
815 else
816 GCC=
819 ac_test_CFLAGS="${CFLAGS+set}"
820 ac_save_CFLAGS="$CFLAGS"
821 CFLAGS=
822 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
823 echo "configure:824: checking whether ${CC-cc} accepts -g" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
826 else
827 echo 'void f(){}' > conftest.c
828 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
829 ac_cv_prog_cc_g=yes
830 else
831 ac_cv_prog_cc_g=no
833 rm -f conftest*
837 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
838 if test "$ac_test_CFLAGS" = set; then
839 CFLAGS="$ac_save_CFLAGS"
840 elif test $ac_cv_prog_cc_g = yes; then
841 if test "$GCC" = yes; then
842 CFLAGS="-g -O2"
843 else
844 CFLAGS="-g"
846 else
847 if test "$GCC" = yes; then
848 CFLAGS="-O2"
849 else
850 CFLAGS=
854 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
855 echo "configure:856: checking how to run the C preprocessor" >&5
856 # On Suns, sometimes $CPP names a directory.
857 if test -n "$CPP" && test -d "$CPP"; then
858 CPP=
860 if test -z "$CPP"; then
861 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
863 else
864 # This must be in double quotes, not single quotes, because CPP may get
865 # substituted into the Makefile and "${CC-cc}" will confuse make.
866 CPP="${CC-cc} -E"
867 # On the NeXT, cc -E runs the code through the compiler's parser,
868 # not just through cpp.
869 cat > conftest.$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
872 #include <assert.h>
873 Syntax Error
875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
876 { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
878 if test -z "$ac_err"; then
880 else
881 echo "$ac_err" >&5
882 echo "configure: failed program was:" >&5
883 cat conftest.$ac_ext >&5
884 rm -rf conftest*
885 CPP="${CC-cc} -E -traditional-cpp"
886 cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
889 #include <assert.h>
890 Syntax Error
892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
893 { (eval echo configure:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
895 if test -z "$ac_err"; then
897 else
898 echo "$ac_err" >&5
899 echo "configure: failed program was:" >&5
900 cat conftest.$ac_ext >&5
901 rm -rf conftest*
902 CPP="${CC-cc} -nologo -E"
903 cat > conftest.$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
906 #include <assert.h>
907 Syntax Error
909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
910 { (eval echo configure:911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
912 if test -z "$ac_err"; then
914 else
915 echo "$ac_err" >&5
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
918 rm -rf conftest*
919 CPP=/lib/cpp
921 rm -f conftest*
923 rm -f conftest*
925 rm -f conftest*
926 ac_cv_prog_CPP="$CPP"
928 CPP="$ac_cv_prog_CPP"
929 else
930 ac_cv_prog_CPP="$CPP"
932 echo "$ac_t""$CPP" 1>&6
934 ac_aux_dir=
935 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
936 if test -f $ac_dir/install-sh; then
937 ac_aux_dir=$ac_dir
938 ac_install_sh="$ac_aux_dir/install-sh -c"
939 break
940 elif test -f $ac_dir/install.sh; then
941 ac_aux_dir=$ac_dir
942 ac_install_sh="$ac_aux_dir/install.sh -c"
943 break
945 done
946 if test -z "$ac_aux_dir"; then
947 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
949 ac_config_guess=$ac_aux_dir/config.guess
950 ac_config_sub=$ac_aux_dir/config.sub
951 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
953 # Find a good install program. We prefer a C program (faster),
954 # so one script is as good as another. But avoid the broken or
955 # incompatible versions:
956 # SysV /etc/install, /usr/sbin/install
957 # SunOS /usr/etc/install
958 # IRIX /sbin/install
959 # AIX /bin/install
960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
963 # ./install, which can be erroneously created by make from ./install.sh.
964 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
965 echo "configure:966: checking for a BSD compatible install" >&5
966 if test -z "$INSTALL"; then
967 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
969 else
970 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
971 for ac_dir in $PATH; do
972 # Account for people who put trailing slashes in PATH elements.
973 case "$ac_dir/" in
974 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
976 # OSF1 and SCO ODT 3.0 have their own names for install.
977 # Don't use installbsd from OSF since it installs stuff as root
978 # by default.
979 for ac_prog in ginstall scoinst install; do
980 if test -f $ac_dir/$ac_prog; then
981 if test $ac_prog = install &&
982 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
983 # AIX install. It has an incompatible calling convention.
985 else
986 ac_cv_path_install="$ac_dir/$ac_prog -c"
987 break 2
990 done
992 esac
993 done
994 IFS="$ac_save_IFS"
997 if test "${ac_cv_path_install+set}" = set; then
998 INSTALL="$ac_cv_path_install"
999 else
1000 # As a last resort, use the slow shell script. We don't cache a
1001 # path for INSTALL within a source directory, because that will
1002 # break other packages using the cache if that directory is
1003 # removed, or if the path is relative.
1004 INSTALL="$ac_install_sh"
1007 echo "$ac_t""$INSTALL" 1>&6
1009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1010 # It thinks the first close brace ends the variable substitution.
1011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1017 for ac_prog in mawk gawk nawk awk
1019 # Extract the first word of "$ac_prog", so it can be a program name with args.
1020 set dummy $ac_prog; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 if test -n "$AWK"; then
1027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1028 else
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1030 ac_dummy="$PATH"
1031 for ac_dir in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_prog_AWK="$ac_prog"
1035 break
1037 done
1038 IFS="$ac_save_ifs"
1041 AWK="$ac_cv_prog_AWK"
1042 if test -n "$AWK"; then
1043 echo "$ac_t""$AWK" 1>&6
1044 else
1045 echo "$ac_t""no" 1>&6
1048 test -n "$AWK" && break
1049 done
1052 # Check whether --enable-static or --disable-static was given.
1053 if test "${enable_static+set}" = set; then
1054 enableval="$enable_static"
1055 p=${PACKAGE-default}
1056 case "$enableval" in
1057 yes) enable_static=yes ;;
1058 no) enable_static=no ;;
1060 enable_static=no
1061 # Look at the argument we got. We use all the common list separators.
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1063 for pkg in $enableval; do
1064 if test "X$pkg" = "X$p"; then
1065 enable_static=yes
1067 done
1068 IFS="$ac_save_ifs"
1070 esac
1071 else
1072 enable_static=no
1077 # Check whether --enable-shared or --disable-shared was given.
1078 if test "${enable_shared+set}" = set; then
1079 enableval="$enable_shared"
1080 p=${PACKAGE-default}
1081 case "$enableval" in
1082 yes) enable_shared=yes ;;
1083 no) enable_shared=no ;;
1085 enable_shared=no
1086 # Look at the argument we got. We use all the common list separators.
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1088 for pkg in $enableval; do
1089 if test "X$pkg" = "X$p"; then
1090 enable_shared=yes
1092 done
1093 IFS="$ac_save_ifs"
1095 esac
1096 else
1097 enable_shared=yes
1100 # Check whether --enable-fast-install or --disable-fast-install was given.
1101 if test "${enable_fast_install+set}" = set; then
1102 enableval="$enable_fast_install"
1103 p=${PACKAGE-default}
1104 case "$enableval" in
1105 yes) enable_fast_install=yes ;;
1106 no) enable_fast_install=no ;;
1108 enable_fast_install=no
1109 # Look at the argument we got. We use all the common list separators.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1111 for pkg in $enableval; do
1112 if test "X$pkg" = "X$p"; then
1113 enable_fast_install=yes
1115 done
1116 IFS="$ac_save_ifs"
1118 esac
1119 else
1120 enable_fast_install=yes
1124 # Make sure we can run config.sub.
1125 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1126 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1129 echo $ac_n "checking host system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking host system type" >&5
1132 host_alias=$host
1133 case "$host_alias" in
1134 NONE)
1135 case $nonopt in
1136 NONE)
1137 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1138 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1139 fi ;;
1140 *) host_alias=$nonopt ;;
1141 esac ;;
1142 esac
1144 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1145 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1146 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1147 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1148 echo "$ac_t""$host" 1>&6
1150 echo $ac_n "checking build system type""... $ac_c" 1>&6
1151 echo "configure:1152: checking build system type" >&5
1153 build_alias=$build
1154 case "$build_alias" in
1155 NONE)
1156 case $nonopt in
1157 NONE) build_alias=$host_alias ;;
1158 *) build_alias=$nonopt ;;
1159 esac ;;
1160 esac
1162 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1163 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1164 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1165 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1166 echo "$ac_t""$build" 1>&6
1168 # Extract the first word of "ranlib", so it can be a program name with args.
1169 set dummy ranlib; ac_word=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1174 else
1175 if test -n "$RANLIB"; then
1176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1177 else
1178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 ac_dummy="$PATH"
1180 for ac_dir in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_RANLIB="ranlib"
1184 break
1186 done
1187 IFS="$ac_save_ifs"
1188 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1191 RANLIB="$ac_cv_prog_RANLIB"
1192 if test -n "$RANLIB"; then
1193 echo "$ac_t""$RANLIB" 1>&6
1194 else
1195 echo "$ac_t""no" 1>&6
1198 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1199 if test "${with_gnu_ld+set}" = set; then
1200 withval="$with_gnu_ld"
1201 test "$withval" = no || with_gnu_ld=yes
1202 else
1203 with_gnu_ld=no
1206 ac_prog=ld
1207 if test "$ac_cv_prog_gcc" = yes; then
1208 # Check if gcc -print-prog-name=ld gives a path.
1209 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1210 echo "configure:1211: checking for ld used by GCC" >&5
1211 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1212 case "$ac_prog" in
1213 # Accept absolute paths.
1214 [\\/]* | [A-Za-z]:[\\/]*)
1215 re_direlt='/[^/][^/]*/\.\./'
1216 # Canonicalize the path of ld
1217 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1219 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1220 done
1221 test -z "$LD" && LD="$ac_prog"
1224 # If it fails, then pretend we aren't using GCC.
1225 ac_prog=ld
1228 # If it is relative, then search for the first ld in PATH.
1229 with_gnu_ld=unknown
1231 esac
1232 elif test "$with_gnu_ld" = yes; then
1233 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1234 echo "configure:1235: checking for GNU ld" >&5
1235 else
1236 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1237 echo "configure:1238: checking for non-GNU ld" >&5
1239 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242 if test -z "$LD"; then
1243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1244 for ac_dir in $PATH; do
1245 test -z "$ac_dir" && ac_dir=.
1246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1247 ac_cv_path_LD="$ac_dir/$ac_prog"
1248 # Check to see if the program is GNU ld. I'd rather use --version,
1249 # but apparently some GNU ld's only accept -v.
1250 # Break only if it was the GNU/non-GNU ld that we prefer.
1251 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1252 test "$with_gnu_ld" != no && break
1253 else
1254 test "$with_gnu_ld" != yes && break
1257 done
1258 IFS="$ac_save_ifs"
1259 else
1260 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1264 LD="$ac_cv_path_LD"
1265 if test -n "$LD"; then
1266 echo "$ac_t""$LD" 1>&6
1267 else
1268 echo "$ac_t""no" 1>&6
1270 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1271 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1272 echo "configure:1273: checking if the linker ($LD) is GNU ld" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1277 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1278 ac_cv_prog_gnu_ld=yes
1279 else
1280 ac_cv_prog_gnu_ld=no
1284 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1287 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1288 echo "configure:1289: checking for BSD-compatible nm" >&5
1289 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292 if test -n "$NM"; then
1293 # Let the user override the test.
1294 ac_cv_path_NM="$NM"
1295 else
1296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1297 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1298 test -z "$ac_dir" && ac_dir=.
1299 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1300 # Check to see if the nm accepts a BSD-compat flag.
1301 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1302 # nm: unknown option "B" ignored
1303 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1304 ac_cv_path_NM="$ac_dir/nm -B"
1305 break
1306 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1307 ac_cv_path_NM="$ac_dir/nm -p"
1308 break
1309 else
1310 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1311 continue # so that we can try to find one that supports BSD flags
1314 done
1315 IFS="$ac_save_ifs"
1316 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1320 NM="$ac_cv_path_NM"
1321 echo "$ac_t""$NM" 1>&6
1323 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether ln -s works" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 rm -f conftestdata
1329 if ln -s X conftestdata 2>/dev/null
1330 then
1331 rm -f conftestdata
1332 ac_cv_prog_LN_S="ln -s"
1333 else
1334 ac_cv_prog_LN_S=ln
1337 LN_S="$ac_cv_prog_LN_S"
1338 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1339 echo "$ac_t""yes" 1>&6
1340 else
1341 echo "$ac_t""no" 1>&6
1345 case "$target" in
1346 NONE) lt_target="$host" ;;
1347 *) lt_target="$target" ;;
1348 esac
1350 # Check for any special flags to pass to ltconfig.
1351 libtool_flags="--cache-file=$cache_file"
1352 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1353 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1354 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1355 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1356 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1357 libtool_flags="$libtool_flags --enable-dlopen"
1359 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1360 if test "${enable_libtool_lock+set}" = set; then
1361 enableval="$enable_libtool_lock"
1365 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1366 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1368 # Some flags need to be propagated to the compiler or linker for good
1369 # libtool support.
1370 case "$lt_target" in
1371 *-*-irix6*)
1372 # Find out which ABI we are using.
1373 echo '#line 1374 "configure"' > conftest.$ac_ext
1374 if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 case "`/usr/bin/file conftest.o`" in
1376 *32-bit*)
1377 LD="${LD-ld} -32"
1379 *N32*)
1380 LD="${LD-ld} -n32"
1382 *64-bit*)
1383 LD="${LD-ld} -64"
1385 esac
1387 rm -rf conftest*
1390 *-*-sco3.2v5*)
1391 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1392 SAVE_CFLAGS="$CFLAGS"
1393 CFLAGS="$CFLAGS -belf"
1394 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1395 echo "configure:1396: checking whether the C compiler needs -belf" >&5
1396 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1398 else
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1403 int main() {
1405 ; return 0; }
1407 if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1408 rm -rf conftest*
1409 lt_cv_cc_needs_belf=yes
1410 else
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1413 rm -rf conftest*
1414 lt_cv_cc_needs_belf=no
1416 rm -f conftest*
1419 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1422 CFLAGS="$SAVE_CFLAGS"
1427 esac
1430 # Save cache, so that ltconfig can load it
1431 cat > confcache <<\EOF
1432 # This file is a shell script that caches the results of configure
1433 # tests run on this system so they can be shared between configure
1434 # scripts and configure runs. It is not useful on other systems.
1435 # If it contains results you don't want to keep, you may remove or edit it.
1437 # By default, configure uses ./config.cache as the cache file,
1438 # creating it if it does not exist already. You can give configure
1439 # the --cache-file=FILE option to use a different cache file; that is
1440 # what configure does when it calls configure scripts in
1441 # subdirectories, so they share the cache.
1442 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1443 # config.status only pays attention to the cache file if you give it the
1444 # --recheck option to rerun configure.
1447 # The following way of writing the cache mishandles newlines in values,
1448 # but we know of no workaround that is simple, portable, and efficient.
1449 # So, don't put newlines in cache variables' values.
1450 # Ultrix sh set writes to stderr and can't be redirected directly,
1451 # and sets the high bit in the cache file unless we assign to the vars.
1452 (set) 2>&1 |
1453 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1454 *ac_space=\ *)
1455 # `set' does not quote correctly, so add quotes (double-quote substitution
1456 # turns \\\\ into \\, and sed turns \\ into \).
1457 sed -n \
1458 -e "s/'/'\\\\''/g" \
1459 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1462 # `set' quotes correctly as required by POSIX, so do not add quotes.
1463 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1465 esac >> confcache
1466 if cmp -s $cache_file confcache; then
1468 else
1469 if test -w $cache_file; then
1470 echo "updating cache $cache_file"
1471 cat confcache > $cache_file
1472 else
1473 echo "not updating unwritable cache $cache_file"
1476 rm -f confcache
1479 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1480 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1481 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1482 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1483 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1484 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1485 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1486 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1488 # Reload cache, that may have been modified by ltconfig
1489 if test -r "$cache_file"; then
1490 echo "loading cache $cache_file"
1491 . $cache_file
1492 else
1493 echo "creating cache $cache_file"
1494 > $cache_file
1498 # This can be used to rebuild libtool when needed
1499 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1501 # Always use our own libtool.
1502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1504 # Redirect the config.log output again, so that the ltconfig log is not
1505 # clobbered by the next message.
1506 exec 5>>./config.log
1510 if test "x$CC" != xcc; then
1511 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether $CC and cc understand -c and -o together" >&5
1513 else
1514 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether cc understands -c and -o together" >&5
1517 set dummy $CC; ac_cc="`echo $2 |
1518 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1519 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1521 else
1522 echo 'foo(){}' > conftest.c
1523 # Make sure it works both with $CC and with simple cc.
1524 # We do the test twice because some compilers refuse to overwrite an
1525 # existing .o file with -o, though they will create one.
1526 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1527 if { (eval echo configure:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1528 test -f conftest.o && { (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1529 then
1530 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1531 if test "x$CC" != xcc; then
1532 # Test first that cc exists at all.
1533 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1534 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1535 if { (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1536 test -f conftest.o && { (eval echo configure:1537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1537 then
1538 # cc works too.
1540 else
1541 # cc exists but doesn't like -o.
1542 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1546 else
1547 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1549 rm -f conftest*
1552 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 else
1555 echo "$ac_t""no" 1>&6
1556 cat >> confdefs.h <<\EOF
1557 #define NO_MINUS_C_MINUS_O 1
1562 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1563 BROKEN_CC=
1564 else
1565 BROKEN_CC=#
1569 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1570 echo "configure:1571: checking that the C compiler understands volatile" >&5
1571 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1573 else
1575 cat > conftest.$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 #include <sys/types.h>
1579 int main() {
1580 volatile int i = 0
1581 ; return 0; }
1583 if { (eval echo configure:1584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1584 rm -rf conftest*
1585 samba_cv_volatile=yes
1586 else
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1589 rm -rf conftest*
1590 samba_cv_volatile=no
1592 rm -f conftest*
1595 echo "$ac_t""$samba_cv_volatile" 1>&6
1596 if test x"$samba_cv_volatile" = x"yes"; then
1597 cat >> confdefs.h <<\EOF
1598 #define HAVE_VOLATILE 1
1606 # Do some error checking and defaulting for the host and target type.
1607 # The inputs are:
1608 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1610 # The rules are:
1611 # 1. You are not allowed to specify --host, --target, and nonopt at the
1612 # same time.
1613 # 2. Host defaults to nonopt.
1614 # 3. If nonopt is not specified, then host defaults to the current host,
1615 # as determined by config.guess.
1616 # 4. Target and build default to nonopt.
1617 # 5. If nonopt is not specified, then target and build default to host.
1619 # The aliases save the names the user supplied, while $host etc.
1620 # will get canonicalized.
1621 case $host---$target---$nonopt in
1622 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1623 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1624 esac
1627 # Make sure we can run config.sub.
1628 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1629 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1632 echo $ac_n "checking host system type""... $ac_c" 1>&6
1633 echo "configure:1634: checking host system type" >&5
1635 host_alias=$host
1636 case "$host_alias" in
1637 NONE)
1638 case $nonopt in
1639 NONE)
1640 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1641 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1642 fi ;;
1643 *) host_alias=$nonopt ;;
1644 esac ;;
1645 esac
1647 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1648 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 echo "$ac_t""$host" 1>&6
1653 echo $ac_n "checking target system type""... $ac_c" 1>&6
1654 echo "configure:1655: checking target system type" >&5
1656 target_alias=$target
1657 case "$target_alias" in
1658 NONE)
1659 case $nonopt in
1660 NONE) target_alias=$host_alias ;;
1661 *) target_alias=$nonopt ;;
1662 esac ;;
1663 esac
1665 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1666 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$ac_t""$target" 1>&6
1671 echo $ac_n "checking build system type""... $ac_c" 1>&6
1672 echo "configure:1673: checking build system type" >&5
1674 build_alias=$build
1675 case "$build_alias" in
1676 NONE)
1677 case $nonopt in
1678 NONE) build_alias=$host_alias ;;
1679 *) build_alias=$nonopt ;;
1680 esac ;;
1681 esac
1683 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1684 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687 echo "$ac_t""$build" 1>&6
1689 test "$host_alias" != "$target_alias" &&
1690 test "$program_prefix$program_suffix$program_transform_name" = \
1691 NONENONEs,x,x, &&
1692 program_prefix=${target_alias}-
1695 case "$host_os" in
1696 *irix*) cat >> confdefs.h <<\EOF
1697 #include <standards.h>
1701 esac
1705 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1706 echo "configure:1707: checking config.cache system type" >&5
1707 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1708 test x"$ac_cv_host_system_type" != x"$host"; } ||
1709 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1710 test x"$ac_cv_build_system_type" != x"$build"; } ||
1711 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1712 test x"$ac_cv_target_system_type" != x"$target"; }; then
1713 echo "$ac_t""different" 1>&6
1714 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1715 else
1716 echo "$ac_t""same" 1>&6
1718 ac_cv_host_system_type="$host"
1719 ac_cv_build_system_type="$build"
1720 ac_cv_target_system_type="$target"
1723 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1724 if test "${enable_maintainer_mode+set}" = set; then
1725 enableval="$enable_maintainer_mode"
1726 maint_mode=$enableval
1727 else
1728 maint_mode=no
1731 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1733 # Extract the first word of "autoconf", so it can be a program name with args.
1734 set dummy autoconf; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 case "$AUTOCONF" in
1742 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1744 ?:/*)
1745 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a dos path.
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1749 ac_dummy="$PATH"
1750 for ac_dir in $ac_dummy; do
1751 test -z "$ac_dir" && ac_dir=.
1752 if test -f $ac_dir/$ac_word; then
1753 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1754 break
1756 done
1757 IFS="$ac_save_ifs"
1758 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1760 esac
1762 AUTOCONF="$ac_cv_path_AUTOCONF"
1763 if test -n "$AUTOCONF"; then
1764 echo "$ac_t""$AUTOCONF" 1>&6
1765 else
1766 echo "$ac_t""no" 1>&6
1770 # Extract the first word of "autoheader", so it can be a program name with args.
1771 set dummy autoheader; ac_word=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1774 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777 case "$AUTOHEADER" in
1779 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1781 ?:/*)
1782 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a dos path.
1785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1786 ac_dummy="$PATH"
1787 for ac_dir in $ac_dummy; do
1788 test -z "$ac_dir" && ac_dir=.
1789 if test -f $ac_dir/$ac_word; then
1790 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1791 break
1793 done
1794 IFS="$ac_save_ifs"
1795 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1797 esac
1799 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1800 if test -n "$AUTOHEADER"; then
1801 echo "$ac_t""$AUTOHEADER" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1810 # Config CPPFLAG settings for strange OS's that must be set
1811 # before other tests.
1813 case "$host_os" in
1814 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1815 *hpux*)
1816 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1817 echo "configure:1818: checking whether ${CC-cc} accepts -Ae" >&5
1818 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1820 else
1821 echo 'void f(){}' > conftest.c
1822 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1823 ac_cv_prog_cc_Ae=yes
1824 else
1825 ac_cv_prog_cc_Ae=no
1827 rm -f conftest*
1831 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1832 if test $ac_cv_prog_cc_Ae = yes; then
1833 CPPFLAGS="$CPPFLAGS -Ae"
1836 # Defines needed for HPUX support.
1837 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1838 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1840 case `uname -r` in
1841 *9*|*10*)
1842 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1843 cat >> confdefs.h <<\EOF
1844 #define USE_BOTH_CRYPT_CALLS 1
1848 *11*)
1849 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1850 cat >> confdefs.h <<\EOF
1851 #define USE_BOTH_CRYPT_CALLS 1
1855 esac
1858 # AIX4.x doesn't even admit to having large
1859 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1861 *aix4*)
1862 echo "$ac_t""enabling large file support" 1>&6
1863 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1866 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1867 # to the existance of large files..
1868 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1869 # recommendations on large file support, however it makes the
1870 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1871 # recommendation makes the compile fail on gcc2.7. JRA.
1873 *solaris*)
1874 case `uname -r` in
1875 5.6*|5.7*)
1876 echo "$ac_t""enabling large file support" 1>&6
1877 if test "$ac_cv_prog_gcc" = yes; then
1878 ${CC-cc} -v >conftest.c 2>&1
1879 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1880 rm -fr conftest.c
1881 case "$ac_cv_gcc_compiler_version_number" in
1882 *"gcc version 2.6"*|*"gcc version 2.7"*)
1883 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1886 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1888 esac
1889 else
1890 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1893 esac
1896 # Tests needed for SINIX large file support.
1898 *sysv4*)
1899 if test $host = mips-sni-sysv4 ; then
1900 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1901 echo "configure:1902: checking for LFS support" >&5
1902 old_CPPFLAGS="$CPPFLAGS"
1903 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1904 if test "$cross_compiling" = yes; then
1905 SINIX_LFS_SUPPORT=cross
1906 else
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1911 #include <unistd.h>
1912 main () {
1913 #if _LFS64_LARGEFILE == 1
1914 exit(0);
1915 #else
1916 exit(1);
1917 #endif
1920 if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1921 then
1922 SINIX_LFS_SUPPORT=yes
1923 else
1924 echo "configure: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1926 rm -fr conftest*
1927 SINIX_LFS_SUPPORT=no
1929 rm -fr conftest*
1932 CPPFLAGS="$old_CPPFLAGS"
1933 if test x$SINIX_LFS_SUPPORT = xyes ; then
1934 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1935 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1936 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1937 LIBS="`getconf LFS64_LIBS` $LIBS"
1939 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1944 # Tests needed for glibc 2.1 large file support.
1946 *linux*)
1947 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1949 *hurd*)
1950 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1951 echo "configure:1952: checking for LFS support" >&5
1952 old_CPPFLAGS="$CPPFLAGS"
1953 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1954 if test "$cross_compiling" = yes; then
1955 GLIBC_LFS_SUPPORT=cross
1956 else
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1961 #include <unistd.h>
1962 main () {
1963 #if _LFS64_LARGEFILE == 1
1964 exit(0);
1965 #else
1966 exit(1);
1967 #endif
1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1971 then
1972 GLIBC_LFS_SUPPORT=yes
1973 else
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 rm -fr conftest*
1977 GLIBC_LFS_SUPPORT=no
1979 rm -fr conftest*
1982 CPPFLAGS="$old_CPPFLAGS"
1983 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1984 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1986 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1989 esac
1991 echo $ac_n "checking for inline""... $ac_c" 1>&6
1992 echo "configure:1993: checking for inline" >&5
1993 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1995 else
1996 ac_cv_c_inline=no
1997 for ac_kw in inline __inline__ __inline; do
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2002 int main() {
2003 } int $ac_kw foo() {
2004 ; return 0; }
2006 if { (eval echo configure:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2007 rm -rf conftest*
2008 ac_cv_c_inline=$ac_kw; break
2009 else
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 rm -f conftest*
2014 done
2018 echo "$ac_t""$ac_cv_c_inline" 1>&6
2019 case "$ac_cv_c_inline" in
2020 inline | yes) ;;
2021 no) cat >> confdefs.h <<\EOF
2022 #define inline
2025 *) cat >> confdefs.h <<EOF
2026 #define inline $ac_cv_c_inline
2029 esac
2031 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2032 echo "configure:2033: checking for ANSI C header files" >&5
2033 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2035 else
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <stdlib.h>
2040 #include <stdarg.h>
2041 #include <string.h>
2042 #include <float.h>
2044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2045 { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2047 if test -z "$ac_err"; then
2048 rm -rf conftest*
2049 ac_cv_header_stdc=yes
2050 else
2051 echo "$ac_err" >&5
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 rm -rf conftest*
2055 ac_cv_header_stdc=no
2057 rm -f conftest*
2059 if test $ac_cv_header_stdc = yes; then
2060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 #include <string.h>
2066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2067 egrep "memchr" >/dev/null 2>&1; then
2069 else
2070 rm -rf conftest*
2071 ac_cv_header_stdc=no
2073 rm -f conftest*
2077 if test $ac_cv_header_stdc = yes; then
2078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 #include <stdlib.h>
2084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2085 egrep "free" >/dev/null 2>&1; then
2087 else
2088 rm -rf conftest*
2089 ac_cv_header_stdc=no
2091 rm -f conftest*
2095 if test $ac_cv_header_stdc = yes; then
2096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2097 if test "$cross_compiling" = yes; then
2099 else
2100 cat > conftest.$ac_ext <<EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2103 #include <ctype.h>
2104 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2105 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2107 int main () { int i; for (i = 0; i < 256; i++)
2108 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2109 exit (0); }
2112 if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2113 then
2115 else
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 rm -fr conftest*
2119 ac_cv_header_stdc=no
2121 rm -fr conftest*
2127 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2128 if test $ac_cv_header_stdc = yes; then
2129 cat >> confdefs.h <<\EOF
2130 #define STDC_HEADERS 1
2135 ac_header_dirent=no
2136 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2139 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_hdr that defines DIR" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2148 #include <$ac_hdr>
2149 int main() {
2150 DIR *dirp = 0;
2151 ; return 0; }
2153 if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2154 rm -rf conftest*
2155 eval "ac_cv_header_dirent_$ac_safe=yes"
2156 else
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 rm -rf conftest*
2160 eval "ac_cv_header_dirent_$ac_safe=no"
2162 rm -f conftest*
2164 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2167 cat >> confdefs.h <<EOF
2168 #define $ac_tr_hdr 1
2170 ac_header_dirent=$ac_hdr; break
2171 else
2172 echo "$ac_t""no" 1>&6
2174 done
2175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2176 if test $ac_header_dirent = dirent.h; then
2177 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2178 echo "configure:2179: checking for opendir in -ldir" >&5
2179 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183 ac_save_LIBS="$LIBS"
2184 LIBS="-ldir $LIBS"
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* Override any gcc2 internal prototype to avoid an error. */
2189 /* We use char because int might match the return type of a gcc2
2190 builtin and then its argument prototype would still apply. */
2191 char opendir();
2193 int main() {
2194 opendir()
2195 ; return 0; }
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2198 rm -rf conftest*
2199 eval "ac_cv_lib_$ac_lib_var=yes"
2200 else
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2203 rm -rf conftest*
2204 eval "ac_cv_lib_$ac_lib_var=no"
2206 rm -f conftest*
2207 LIBS="$ac_save_LIBS"
2210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2212 LIBS="$LIBS -ldir"
2213 else
2214 echo "$ac_t""no" 1>&6
2217 else
2218 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2219 echo "configure:2220: checking for opendir in -lx" >&5
2220 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2223 else
2224 ac_save_LIBS="$LIBS"
2225 LIBS="-lx $LIBS"
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* Override any gcc2 internal prototype to avoid an error. */
2230 /* We use char because int might match the return type of a gcc2
2231 builtin and then its argument prototype would still apply. */
2232 char opendir();
2234 int main() {
2235 opendir()
2236 ; return 0; }
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239 rm -rf conftest*
2240 eval "ac_cv_lib_$ac_lib_var=yes"
2241 else
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 rm -rf conftest*
2245 eval "ac_cv_lib_$ac_lib_var=no"
2247 rm -f conftest*
2248 LIBS="$ac_save_LIBS"
2251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2252 echo "$ac_t""yes" 1>&6
2253 LIBS="$LIBS -lx"
2254 else
2255 echo "$ac_t""no" 1>&6
2260 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2261 echo "configure:2262: checking whether time.h and sys/time.h may both be included" >&5
2262 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2264 else
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 #include <sys/types.h>
2269 #include <sys/time.h>
2270 #include <time.h>
2271 int main() {
2272 struct tm *tp;
2273 ; return 0; }
2275 if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2276 rm -rf conftest*
2277 ac_cv_header_time=yes
2278 else
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2281 rm -rf conftest*
2282 ac_cv_header_time=no
2284 rm -f conftest*
2287 echo "$ac_t""$ac_cv_header_time" 1>&6
2288 if test $ac_cv_header_time = yes; then
2289 cat >> confdefs.h <<\EOF
2290 #define TIME_WITH_SYS_TIME 1
2295 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2296 echo "configure:2297: checking for sys/wait.h that is POSIX.1 compatible" >&5
2297 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299 else
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include <sys/types.h>
2304 #include <sys/wait.h>
2305 #ifndef WEXITSTATUS
2306 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2307 #endif
2308 #ifndef WIFEXITED
2309 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2310 #endif
2311 int main() {
2312 int s;
2313 wait (&s);
2314 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2315 ; return 0; }
2317 if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2318 rm -rf conftest*
2319 ac_cv_header_sys_wait_h=yes
2320 else
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 ac_cv_header_sys_wait_h=no
2326 rm -f conftest*
2329 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2330 if test $ac_cv_header_sys_wait_h = yes; then
2331 cat >> confdefs.h <<\EOF
2332 #define HAVE_SYS_WAIT_H 1
2337 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_hdr" >&5
2342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2344 else
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <$ac_hdr>
2350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2351 { (eval echo configure:2352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2353 if test -z "$ac_err"; then
2354 rm -rf conftest*
2355 eval "ac_cv_header_$ac_safe=yes"
2356 else
2357 echo "$ac_err" >&5
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2360 rm -rf conftest*
2361 eval "ac_cv_header_$ac_safe=no"
2363 rm -f conftest*
2365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
2367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2368 cat >> confdefs.h <<EOF
2369 #define $ac_tr_hdr 1
2372 else
2373 echo "$ac_t""no" 1>&6
2375 done
2377 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2379 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_hdr" >&5
2382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 #include <$ac_hdr>
2390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2391 { (eval echo configure:2392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2393 if test -z "$ac_err"; then
2394 rm -rf conftest*
2395 eval "ac_cv_header_$ac_safe=yes"
2396 else
2397 echo "$ac_err" >&5
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2400 rm -rf conftest*
2401 eval "ac_cv_header_$ac_safe=no"
2403 rm -f conftest*
2405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2406 echo "$ac_t""yes" 1>&6
2407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2408 cat >> confdefs.h <<EOF
2409 #define $ac_tr_hdr 1
2412 else
2413 echo "$ac_t""no" 1>&6
2415 done
2417 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2421 echo "configure:2422: checking for $ac_hdr" >&5
2422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2424 else
2425 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 #include <$ac_hdr>
2430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431 { (eval echo configure:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2433 if test -z "$ac_err"; then
2434 rm -rf conftest*
2435 eval "ac_cv_header_$ac_safe=yes"
2436 else
2437 echo "$ac_err" >&5
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -rf conftest*
2441 eval "ac_cv_header_$ac_safe=no"
2443 rm -f conftest*
2445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2446 echo "$ac_t""yes" 1>&6
2447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2448 cat >> confdefs.h <<EOF
2449 #define $ac_tr_hdr 1
2452 else
2453 echo "$ac_t""no" 1>&6
2455 done
2457 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_hdr" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <$ac_hdr>
2470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2473 if test -z "$ac_err"; then
2474 rm -rf conftest*
2475 eval "ac_cv_header_$ac_safe=yes"
2476 else
2477 echo "$ac_err" >&5
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 rm -rf conftest*
2481 eval "ac_cv_header_$ac_safe=no"
2483 rm -f conftest*
2485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2488 cat >> confdefs.h <<EOF
2489 #define $ac_tr_hdr 1
2492 else
2493 echo "$ac_t""no" 1>&6
2495 done
2497 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2501 echo "configure:2502: checking for $ac_hdr" >&5
2502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2504 else
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #include <$ac_hdr>
2510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2511 { (eval echo configure:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2513 if test -z "$ac_err"; then
2514 rm -rf conftest*
2515 eval "ac_cv_header_$ac_safe=yes"
2516 else
2517 echo "$ac_err" >&5
2518 echo "configure: failed program was:" >&5
2519 cat conftest.$ac_ext >&5
2520 rm -rf conftest*
2521 eval "ac_cv_header_$ac_safe=no"
2523 rm -f conftest*
2525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2526 echo "$ac_t""yes" 1>&6
2527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2528 cat >> confdefs.h <<EOF
2529 #define $ac_tr_hdr 1
2532 else
2533 echo "$ac_t""no" 1>&6
2535 done
2537 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_hdr" >&5
2542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 #include <$ac_hdr>
2550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2551 { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2553 if test -z "$ac_err"; then
2554 rm -rf conftest*
2555 eval "ac_cv_header_$ac_safe=yes"
2556 else
2557 echo "$ac_err" >&5
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560 rm -rf conftest*
2561 eval "ac_cv_header_$ac_safe=no"
2563 rm -f conftest*
2565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2568 cat >> confdefs.h <<EOF
2569 #define $ac_tr_hdr 1
2572 else
2573 echo "$ac_t""no" 1>&6
2575 done
2577 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_hdr" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <$ac_hdr>
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2594 rm -rf conftest*
2595 eval "ac_cv_header_$ac_safe=yes"
2596 else
2597 echo "$ac_err" >&5
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2600 rm -rf conftest*
2601 eval "ac_cv_header_$ac_safe=no"
2603 rm -f conftest*
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2608 cat >> confdefs.h <<EOF
2609 #define $ac_tr_hdr 1
2612 else
2613 echo "$ac_t""no" 1>&6
2615 done
2617 for ac_hdr in getopt.h
2619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_hdr" >&5
2622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <$ac_hdr>
2630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2634 rm -rf conftest*
2635 eval "ac_cv_header_$ac_safe=yes"
2636 else
2637 echo "$ac_err" >&5
2638 echo "configure: failed program was:" >&5
2639 cat conftest.$ac_ext >&5
2640 rm -rf conftest*
2641 eval "ac_cv_header_$ac_safe=no"
2643 rm -f conftest*
2645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2646 echo "$ac_t""yes" 1>&6
2647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2648 cat >> confdefs.h <<EOF
2649 #define $ac_tr_hdr 1
2652 else
2653 echo "$ac_t""no" 1>&6
2655 done
2658 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2659 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2661 case "$host_os" in
2662 *hpux*)
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 #include <shadow.h>
2667 int main() {
2668 struct spwd testme
2669 ; return 0; }
2671 if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2672 rm -rf conftest*
2673 ac_cv_header_shadow_h=yes
2674 else
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 rm -rf conftest*
2678 ac_cv_header_shadow_h=no
2680 rm -f conftest*
2681 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2682 cat >> confdefs.h <<\EOF
2683 #define HAVE_SHADOW_H 1
2688 esac
2689 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_hdr" >&5
2694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 #include <$ac_hdr>
2702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705 if test -z "$ac_err"; then
2706 rm -rf conftest*
2707 eval "ac_cv_header_$ac_safe=yes"
2708 else
2709 echo "$ac_err" >&5
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2712 rm -rf conftest*
2713 eval "ac_cv_header_$ac_safe=no"
2715 rm -f conftest*
2717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2718 echo "$ac_t""yes" 1>&6
2719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2720 cat >> confdefs.h <<EOF
2721 #define $ac_tr_hdr 1
2724 else
2725 echo "$ac_t""no" 1>&6
2727 done
2729 for ac_hdr in nss.h sys/security.h security/pam_appl.h
2731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_hdr" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2736 else
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <$ac_hdr>
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2746 rm -rf conftest*
2747 eval "ac_cv_header_$ac_safe=yes"
2748 else
2749 echo "$ac_err" >&5
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2752 rm -rf conftest*
2753 eval "ac_cv_header_$ac_safe=no"
2755 rm -f conftest*
2757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2760 cat >> confdefs.h <<EOF
2761 #define $ac_tr_hdr 1
2764 else
2765 echo "$ac_t""no" 1>&6
2767 done
2769 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_hdr" >&5
2774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2776 else
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 #include <$ac_hdr>
2782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783 { (eval echo configure:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2785 if test -z "$ac_err"; then
2786 rm -rf conftest*
2787 eval "ac_cv_header_$ac_safe=yes"
2788 else
2789 echo "$ac_err" >&5
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -rf conftest*
2793 eval "ac_cv_header_$ac_safe=no"
2795 rm -f conftest*
2797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_hdr 1
2804 else
2805 echo "$ac_t""no" 1>&6
2807 done
2809 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2813 echo "configure:2814: checking for $ac_hdr" >&5
2814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2816 else
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <$ac_hdr>
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2826 rm -rf conftest*
2827 eval "ac_cv_header_$ac_safe=yes"
2828 else
2829 echo "$ac_err" >&5
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 eval "ac_cv_header_$ac_safe=no"
2835 rm -f conftest*
2837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2838 echo "$ac_t""yes" 1>&6
2839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2840 cat >> confdefs.h <<EOF
2841 #define $ac_tr_hdr 1
2844 else
2845 echo "$ac_t""no" 1>&6
2847 done
2849 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2856 else
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2860 #include <$ac_hdr>
2862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2866 rm -rf conftest*
2867 eval "ac_cv_header_$ac_safe=yes"
2868 else
2869 echo "$ac_err" >&5
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 rm -rf conftest*
2873 eval "ac_cv_header_$ac_safe=no"
2875 rm -f conftest*
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h <<EOF
2881 #define $ac_tr_hdr 1
2884 else
2885 echo "$ac_t""no" 1>&6
2887 done
2890 # For experimental utmp support
2891 for ac_hdr in utmp.h utmpx.h
2893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_hdr" >&5
2896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2898 else
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902 #include <$ac_hdr>
2904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2905 { (eval echo configure:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2907 if test -z "$ac_err"; then
2908 rm -rf conftest*
2909 eval "ac_cv_header_$ac_safe=yes"
2910 else
2911 echo "$ac_err" >&5
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2914 rm -rf conftest*
2915 eval "ac_cv_header_$ac_safe=no"
2917 rm -f conftest*
2919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2922 cat >> confdefs.h <<EOF
2923 #define $ac_tr_hdr 1
2926 else
2927 echo "$ac_t""no" 1>&6
2929 done
2932 # Check for winbind nsswitch module name: solaris or glibc
2933 for ac_hdr in nss_common.h
2935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_hdr" >&5
2938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2940 else
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #include <$ac_hdr>
2946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2947 { (eval echo configure:2948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2949 if test -z "$ac_err"; then
2950 rm -rf conftest*
2951 eval "ac_cv_header_$ac_safe=yes"
2952 else
2953 echo "$ac_err" >&5
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2956 rm -rf conftest*
2957 eval "ac_cv_header_$ac_safe=no"
2959 rm -f conftest*
2961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2962 echo "$ac_t""yes" 1>&6
2963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2964 cat >> confdefs.h <<EOF
2965 #define $ac_tr_hdr 1
2967 nssmodule=nss_winbind.so.1
2968 else
2969 echo "$ac_t""no" 1>&6
2970 nssmodule=libnss_winbind.so
2972 done
2976 # Check to decide winbind pam module name: solaris or linux
2977 case "$host_os" in
2978 *linux*) pam_winbind=pam_winbind.so;;
2979 *solaris*) pam_winbind=pam_winbind.so.1;;
2980 *) pam_winbind=pam_winbind.so;;
2981 esac
2983 for ac_hdr in security/_pam_macros.h
2985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_hdr" >&5
2988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2990 else
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 #include <$ac_hdr>
2996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2997 { (eval echo configure:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2999 if test -z "$ac_err"; then
3000 rm -rf conftest*
3001 eval "ac_cv_header_$ac_safe=yes"
3002 else
3003 echo "$ac_err" >&5
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 rm -rf conftest*
3007 eval "ac_cv_header_$ac_safe=no"
3009 rm -f conftest*
3011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3014 cat >> confdefs.h <<EOF
3015 #define $ac_tr_hdr 1
3018 else
3019 echo "$ac_t""no" 1>&6
3021 done
3023 for ac_hdr in features.h
3025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_hdr" >&5
3028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030 else
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 #include <$ac_hdr>
3036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3037 { (eval echo configure:3038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3039 if test -z "$ac_err"; then
3040 rm -rf conftest*
3041 eval "ac_cv_header_$ac_safe=yes"
3042 else
3043 echo "$ac_err" >&5
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3046 rm -rf conftest*
3047 eval "ac_cv_header_$ac_safe=no"
3049 rm -f conftest*
3051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3054 cat >> confdefs.h <<EOF
3055 #define $ac_tr_hdr 1
3058 else
3059 echo "$ac_t""no" 1>&6
3061 done
3064 echo $ac_n "checking size of int""... $ac_c" 1>&6
3065 echo "configure:3066: checking size of int" >&5
3066 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3068 else
3069 if test "$cross_compiling" = yes; then
3070 ac_cv_sizeof_int=cross
3071 else
3072 cat > conftest.$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3075 #include <stdio.h>
3076 main()
3078 FILE *f=fopen("conftestval", "w");
3079 if (!f) exit(1);
3080 fprintf(f, "%d\n", sizeof(int));
3081 exit(0);
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3085 then
3086 ac_cv_sizeof_int=`cat conftestval`
3087 else
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 rm -fr conftest*
3091 ac_cv_sizeof_int=0
3093 rm -fr conftest*
3097 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3098 cat >> confdefs.h <<EOF
3099 #define SIZEOF_INT $ac_cv_sizeof_int
3103 echo $ac_n "checking size of long""... $ac_c" 1>&6
3104 echo "configure:3105: checking size of long" >&5
3105 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3107 else
3108 if test "$cross_compiling" = yes; then
3109 ac_cv_sizeof_long=cross
3110 else
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <stdio.h>
3115 main()
3117 FILE *f=fopen("conftestval", "w");
3118 if (!f) exit(1);
3119 fprintf(f, "%d\n", sizeof(long));
3120 exit(0);
3123 if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3124 then
3125 ac_cv_sizeof_long=`cat conftestval`
3126 else
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 rm -fr conftest*
3130 ac_cv_sizeof_long=0
3132 rm -fr conftest*
3136 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3137 cat >> confdefs.h <<EOF
3138 #define SIZEOF_LONG $ac_cv_sizeof_long
3142 echo $ac_n "checking size of short""... $ac_c" 1>&6
3143 echo "configure:3144: checking size of short" >&5
3144 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3146 else
3147 if test "$cross_compiling" = yes; then
3148 ac_cv_sizeof_short=cross
3149 else
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 #include <stdio.h>
3154 main()
3156 FILE *f=fopen("conftestval", "w");
3157 if (!f) exit(1);
3158 fprintf(f, "%d\n", sizeof(short));
3159 exit(0);
3162 if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3163 then
3164 ac_cv_sizeof_short=`cat conftestval`
3165 else
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3168 rm -fr conftest*
3169 ac_cv_sizeof_short=0
3171 rm -fr conftest*
3175 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3176 cat >> confdefs.h <<EOF
3177 #define SIZEOF_SHORT $ac_cv_sizeof_short
3182 echo $ac_n "checking for working const""... $ac_c" 1>&6
3183 echo "configure:3184: checking for working const" >&5
3184 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3186 else
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3191 int main() {
3193 /* Ultrix mips cc rejects this. */
3194 typedef int charset[2]; const charset x = {0,0};
3195 /* SunOS 4.1.1 cc rejects this. */
3196 char const *const *ccp;
3197 char **p;
3198 /* NEC SVR4.0.2 mips cc rejects this. */
3199 struct point {int x, y;};
3200 static struct point const zero = {0,0};
3201 /* AIX XL C 1.02.0.0 rejects this.
3202 It does not let you subtract one const X* pointer from another in an arm
3203 of an if-expression whose if-part is not a constant expression */
3204 const char *g = "string";
3205 ccp = &g + (g ? g-g : 0);
3206 /* HPUX 7.0 cc rejects these. */
3207 ++ccp;
3208 p = (char**) ccp;
3209 ccp = (char const *const *) p;
3210 { /* SCO 3.2v4 cc rejects this. */
3211 char *t;
3212 char const *s = 0 ? (char *) 0 : (char const *) 0;
3214 *t++ = 0;
3216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3217 int x[] = {25, 17};
3218 const int *foo = &x[0];
3219 ++foo;
3221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3222 typedef const int *iptr;
3223 iptr p = 0;
3224 ++p;
3226 { /* AIX XL C 1.02.0.0 rejects this saying
3227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3228 struct s { int j; const int *ap[3]; };
3229 struct s *b; b->j = 5;
3231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3232 const int foo = 10;
3235 ; return 0; }
3237 if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3238 rm -rf conftest*
3239 ac_cv_c_const=yes
3240 else
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 rm -rf conftest*
3244 ac_cv_c_const=no
3246 rm -f conftest*
3249 echo "$ac_t""$ac_cv_c_const" 1>&6
3250 if test $ac_cv_c_const = no; then
3251 cat >> confdefs.h <<\EOF
3252 #define const
3257 echo $ac_n "checking for inline""... $ac_c" 1>&6
3258 echo "configure:3259: checking for inline" >&5
3259 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3261 else
3262 ac_cv_c_inline=no
3263 for ac_kw in inline __inline__ __inline; do
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3268 int main() {
3269 } int $ac_kw foo() {
3270 ; return 0; }
3272 if { (eval echo configure:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3273 rm -rf conftest*
3274 ac_cv_c_inline=$ac_kw; break
3275 else
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3279 rm -f conftest*
3280 done
3284 echo "$ac_t""$ac_cv_c_inline" 1>&6
3285 case "$ac_cv_c_inline" in
3286 inline | yes) ;;
3287 no) cat >> confdefs.h <<\EOF
3288 #define inline
3291 *) cat >> confdefs.h <<EOF
3292 #define inline $ac_cv_c_inline
3295 esac
3297 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3298 echo "configure:3299: checking whether byte ordering is bigendian" >&5
3299 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3301 else
3302 ac_cv_c_bigendian=unknown
3303 # See if sys/param.h defines the BYTE_ORDER macro.
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 #include <sys/types.h>
3308 #include <sys/param.h>
3309 int main() {
3311 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3312 bogus endian macros
3313 #endif
3314 ; return 0; }
3316 if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 rm -rf conftest*
3318 # It does; now see whether it defined to BIG_ENDIAN or not.
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3323 #include <sys/param.h>
3324 int main() {
3326 #if BYTE_ORDER != BIG_ENDIAN
3327 not big endian
3328 #endif
3329 ; return 0; }
3331 if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3332 rm -rf conftest*
3333 ac_cv_c_bigendian=yes
3334 else
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3337 rm -rf conftest*
3338 ac_cv_c_bigendian=no
3340 rm -f conftest*
3341 else
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3345 rm -f conftest*
3346 if test $ac_cv_c_bigendian = unknown; then
3347 if test "$cross_compiling" = yes; then
3348 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3349 else
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 main () {
3354 /* Are we little or big endian? From Harbison&Steele. */
3355 union
3357 long l;
3358 char c[sizeof (long)];
3359 } u;
3360 u.l = 1;
3361 exit (u.c[sizeof (long) - 1] == 1);
3364 if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3365 then
3366 ac_cv_c_bigendian=no
3367 else
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3370 rm -fr conftest*
3371 ac_cv_c_bigendian=yes
3373 rm -fr conftest*
3379 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3380 if test $ac_cv_c_bigendian = yes; then
3381 cat >> confdefs.h <<\EOF
3382 #define WORDS_BIGENDIAN 1
3387 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3388 echo "configure:3389: checking whether char is unsigned" >&5
3389 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3391 else
3392 if test "$GCC" = yes; then
3393 # GCC predefines this symbol on systems where it applies.
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 #ifdef __CHAR_UNSIGNED__
3399 #endif
3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403 egrep "yes" >/dev/null 2>&1; then
3404 rm -rf conftest*
3405 ac_cv_c_char_unsigned=yes
3406 else
3407 rm -rf conftest*
3408 ac_cv_c_char_unsigned=no
3410 rm -f conftest*
3412 else
3413 if test "$cross_compiling" = yes; then
3414 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3415 else
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3420 #if !defined(__STDC__) || __STDC__ != 1
3421 #define volatile
3422 #endif
3423 main() {
3424 volatile char c = 255; exit(c < 0);
3427 if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3428 then
3429 ac_cv_c_char_unsigned=yes
3430 else
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3433 rm -fr conftest*
3434 ac_cv_c_char_unsigned=no
3436 rm -fr conftest*
3442 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3443 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3444 cat >> confdefs.h <<\EOF
3445 #define __CHAR_UNSIGNED__ 1
3451 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3452 echo "configure:3453: checking return type of signal handlers" >&5
3453 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3455 else
3456 cat > conftest.$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 #include <sys/types.h>
3460 #include <signal.h>
3461 #ifdef signal
3462 #undef signal
3463 #endif
3464 #ifdef __cplusplus
3465 extern "C" void (*signal (int, void (*)(int)))(int);
3466 #else
3467 void (*signal ()) ();
3468 #endif
3470 int main() {
3471 int i;
3472 ; return 0; }
3474 if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475 rm -rf conftest*
3476 ac_cv_type_signal=void
3477 else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 ac_cv_type_signal=int
3483 rm -f conftest*
3486 echo "$ac_t""$ac_cv_type_signal" 1>&6
3487 cat >> confdefs.h <<EOF
3488 #define RETSIGTYPE $ac_cv_type_signal
3492 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3493 echo "configure:3494: checking for uid_t in sys/types.h" >&5
3494 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3496 else
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 #include <sys/types.h>
3502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503 egrep "uid_t" >/dev/null 2>&1; then
3504 rm -rf conftest*
3505 ac_cv_type_uid_t=yes
3506 else
3507 rm -rf conftest*
3508 ac_cv_type_uid_t=no
3510 rm -f conftest*
3514 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3515 if test $ac_cv_type_uid_t = no; then
3516 cat >> confdefs.h <<\EOF
3517 #define uid_t int
3520 cat >> confdefs.h <<\EOF
3521 #define gid_t int
3526 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3527 echo "configure:3528: checking for mode_t" >&5
3528 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3530 else
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <sys/types.h>
3535 #if STDC_HEADERS
3536 #include <stdlib.h>
3537 #include <stddef.h>
3538 #endif
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3542 rm -rf conftest*
3543 ac_cv_type_mode_t=yes
3544 else
3545 rm -rf conftest*
3546 ac_cv_type_mode_t=no
3548 rm -f conftest*
3551 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3552 if test $ac_cv_type_mode_t = no; then
3553 cat >> confdefs.h <<\EOF
3554 #define mode_t int
3559 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3560 echo "configure:3561: checking for off_t" >&5
3561 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3563 else
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #include <sys/types.h>
3568 #if STDC_HEADERS
3569 #include <stdlib.h>
3570 #include <stddef.h>
3571 #endif
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3575 rm -rf conftest*
3576 ac_cv_type_off_t=yes
3577 else
3578 rm -rf conftest*
3579 ac_cv_type_off_t=no
3581 rm -f conftest*
3584 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3585 if test $ac_cv_type_off_t = no; then
3586 cat >> confdefs.h <<\EOF
3587 #define off_t long
3592 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3593 echo "configure:3594: checking for size_t" >&5
3594 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3596 else
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3601 #if STDC_HEADERS
3602 #include <stdlib.h>
3603 #include <stddef.h>
3604 #endif
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3608 rm -rf conftest*
3609 ac_cv_type_size_t=yes
3610 else
3611 rm -rf conftest*
3612 ac_cv_type_size_t=no
3614 rm -f conftest*
3617 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3618 if test $ac_cv_type_size_t = no; then
3619 cat >> confdefs.h <<\EOF
3620 #define size_t unsigned
3625 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3626 echo "configure:3627: checking for pid_t" >&5
3627 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3629 else
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3634 #if STDC_HEADERS
3635 #include <stdlib.h>
3636 #include <stddef.h>
3637 #endif
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3641 rm -rf conftest*
3642 ac_cv_type_pid_t=yes
3643 else
3644 rm -rf conftest*
3645 ac_cv_type_pid_t=no
3647 rm -f conftest*
3650 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3651 if test $ac_cv_type_pid_t = no; then
3652 cat >> confdefs.h <<\EOF
3653 #define pid_t int
3658 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3659 echo "configure:3660: checking for st_rdev in struct stat" >&5
3660 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3662 else
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 #include <sys/types.h>
3667 #include <sys/stat.h>
3668 int main() {
3669 struct stat s; s.st_rdev;
3670 ; return 0; }
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673 rm -rf conftest*
3674 ac_cv_struct_st_rdev=yes
3675 else
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -rf conftest*
3679 ac_cv_struct_st_rdev=no
3681 rm -f conftest*
3684 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3685 if test $ac_cv_struct_st_rdev = yes; then
3686 cat >> confdefs.h <<\EOF
3687 #define HAVE_ST_RDEV 1
3692 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3693 echo "configure:3694: checking for d_off in dirent" >&5
3694 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3696 else
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3701 #include <unistd.h>
3702 #include <sys/types.h>
3703 #include <dirent.h>
3704 int main() {
3705 struct dirent d; d.d_off;
3706 ; return 0; }
3708 if { (eval echo configure:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3709 rm -rf conftest*
3710 ac_cv_dirent_d_off=yes
3711 else
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3714 rm -rf conftest*
3715 ac_cv_dirent_d_off=no
3717 rm -f conftest*
3720 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3721 if test $ac_cv_dirent_d_off = yes; then
3722 cat >> confdefs.h <<\EOF
3723 #define HAVE_DIRENT_D_OFF 1
3728 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3729 echo "configure:3730: checking for ino_t" >&5
3730 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3732 else
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 #include <sys/types.h>
3737 #if STDC_HEADERS
3738 #include <stdlib.h>
3739 #include <stddef.h>
3740 #endif
3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3744 rm -rf conftest*
3745 ac_cv_type_ino_t=yes
3746 else
3747 rm -rf conftest*
3748 ac_cv_type_ino_t=no
3750 rm -f conftest*
3753 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3754 if test $ac_cv_type_ino_t = no; then
3755 cat >> confdefs.h <<\EOF
3756 #define ino_t unsigned
3761 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3762 echo "configure:3763: checking for loff_t" >&5
3763 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765 else
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3769 #include <sys/types.h>
3770 #if STDC_HEADERS
3771 #include <stdlib.h>
3772 #include <stddef.h>
3773 #endif
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3777 rm -rf conftest*
3778 ac_cv_type_loff_t=yes
3779 else
3780 rm -rf conftest*
3781 ac_cv_type_loff_t=no
3783 rm -f conftest*
3786 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3787 if test $ac_cv_type_loff_t = no; then
3788 cat >> confdefs.h <<\EOF
3789 #define loff_t off_t
3794 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3795 echo "configure:3796: checking for offset_t" >&5
3796 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3798 else
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 #include <sys/types.h>
3803 #if STDC_HEADERS
3804 #include <stdlib.h>
3805 #include <stddef.h>
3806 #endif
3808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3810 rm -rf conftest*
3811 ac_cv_type_offset_t=yes
3812 else
3813 rm -rf conftest*
3814 ac_cv_type_offset_t=no
3816 rm -f conftest*
3819 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3820 if test $ac_cv_type_offset_t = no; then
3821 cat >> confdefs.h <<\EOF
3822 #define offset_t loff_t
3827 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3828 echo "configure:3829: checking for ssize_t" >&5
3829 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3831 else
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 #include <sys/types.h>
3836 #if STDC_HEADERS
3837 #include <stdlib.h>
3838 #include <stddef.h>
3839 #endif
3841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3843 rm -rf conftest*
3844 ac_cv_type_ssize_t=yes
3845 else
3846 rm -rf conftest*
3847 ac_cv_type_ssize_t=no
3849 rm -f conftest*
3852 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3853 if test $ac_cv_type_ssize_t = no; then
3854 cat >> confdefs.h <<\EOF
3855 #define ssize_t int
3860 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3861 echo "configure:3862: checking for wchar_t" >&5
3862 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3864 else
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 #include <sys/types.h>
3869 #if STDC_HEADERS
3870 #include <stdlib.h>
3871 #include <stddef.h>
3872 #endif
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3876 rm -rf conftest*
3877 ac_cv_type_wchar_t=yes
3878 else
3879 rm -rf conftest*
3880 ac_cv_type_wchar_t=no
3882 rm -f conftest*
3885 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3886 if test $ac_cv_type_wchar_t = no; then
3887 cat >> confdefs.h <<\EOF
3888 #define wchar_t unsigned short
3894 echo $ac_n "checking for tputs in -lcurses""... $ac_c" 1>&6
3895 echo "configure:3896: checking for tputs in -lcurses" >&5
3896 ac_lib_var=`echo curses'_'tputs | sed 'y%./+-%__p_%'`
3897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3899 else
3900 ac_save_LIBS="$LIBS"
3901 LIBS="-lcurses $LIBS"
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3908 char tputs();
3910 int main() {
3911 tputs()
3912 ; return 0; }
3914 if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3915 rm -rf conftest*
3916 eval "ac_cv_lib_$ac_lib_var=yes"
3917 else
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3920 rm -rf conftest*
3921 eval "ac_cv_lib_$ac_lib_var=no"
3923 rm -f conftest*
3924 LIBS="$ac_save_LIBS"
3927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3930 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3931 cat >> confdefs.h <<EOF
3932 #define $ac_tr_lib 1
3935 LIBS="-lcurses $LIBS"
3937 else
3938 echo "$ac_t""no" 1>&6
3941 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3942 echo "configure:3943: checking for readline in -lreadline" >&5
3943 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3946 else
3947 ac_save_LIBS="$LIBS"
3948 LIBS="-lreadline $LIBS"
3949 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3952 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3955 char readline();
3957 int main() {
3958 readline()
3959 ; return 0; }
3961 if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3962 rm -rf conftest*
3963 eval "ac_cv_lib_$ac_lib_var=yes"
3964 else
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3967 rm -rf conftest*
3968 eval "ac_cv_lib_$ac_lib_var=no"
3970 rm -f conftest*
3971 LIBS="$ac_save_LIBS"
3974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
3976 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3977 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3978 cat >> confdefs.h <<EOF
3979 #define $ac_tr_lib 1
3982 LIBS="-lreadline $LIBS"
3984 else
3985 echo "$ac_t""no" 1>&6
3989 # we need libcups for CUPS support...
3990 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3991 echo "configure:3992: checking for httpConnect in -lcups" >&5
3992 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3995 else
3996 ac_save_LIBS="$LIBS"
3997 LIBS="-lcups $LIBS"
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4004 char httpConnect();
4006 int main() {
4007 httpConnect()
4008 ; return 0; }
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4011 rm -rf conftest*
4012 eval "ac_cv_lib_$ac_lib_var=yes"
4013 else
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4016 rm -rf conftest*
4017 eval "ac_cv_lib_$ac_lib_var=no"
4019 rm -f conftest*
4020 LIBS="$ac_save_LIBS"
4023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4027 cat >> confdefs.h <<EOF
4028 #define $ac_tr_lib 1
4031 LIBS="-lcups $LIBS"
4033 else
4034 echo "$ac_t""no" 1>&6
4038 # we need libdl for PAM and the new VFS code
4039 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4040 echo "configure:4041: checking for dlopen in -ldl" >&5
4041 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 ac_save_LIBS="$LIBS"
4046 LIBS="-ldl $LIBS"
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4053 char dlopen();
4055 int main() {
4056 dlopen()
4057 ; return 0; }
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4060 rm -rf conftest*
4061 eval "ac_cv_lib_$ac_lib_var=yes"
4062 else
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4065 rm -rf conftest*
4066 eval "ac_cv_lib_$ac_lib_var=no"
4068 rm -f conftest*
4069 LIBS="$ac_save_LIBS"
4072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 LIBS="$LIBS -ldl";
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_LIBDL 1
4079 else
4080 echo "$ac_t""no" 1>&6
4084 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4085 echo "configure:4086: checking for sig_atomic_t type" >&5
4086 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4094 #include <sys/types.h>
4095 #if STDC_HEADERS
4096 #include <stdlib.h>
4097 #include <stddef.h>
4098 #endif
4099 #include <signal.h>
4100 int main() {
4101 sig_atomic_t i = 0
4102 ; return 0; }
4104 if { (eval echo configure:4105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4105 rm -rf conftest*
4106 samba_cv_sig_atomic_t=yes
4107 else
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110 rm -rf conftest*
4111 samba_cv_sig_atomic_t=no
4113 rm -f conftest*
4116 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4117 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4118 cat >> confdefs.h <<\EOF
4119 #define HAVE_SIG_ATOMIC_T_TYPE 1
4124 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
4125 echo "configure:4126: checking for errno in errno.h" >&5
4126 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
4127 echo $ac_n "(cached) $ac_c" 1>&6
4128 else
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 #include <errno.h>
4134 int main() {
4135 int i = errno
4136 ; return 0; }
4138 if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4139 rm -rf conftest*
4140 samba_cv_errno=yes
4141 else
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4144 rm -rf conftest*
4145 samba_cv_have_errno=no
4147 rm -f conftest*
4150 echo "$ac_t""$samba_cv_errno" 1>&6
4151 if test x"$samba_cv_errno" = x"yes"; then
4152 cat >> confdefs.h <<\EOF
4153 #define HAVE_ERRNO_DECL 1
4158 # stupid glibc has the functions but no declaration. grrrr.
4159 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4160 echo "configure:4161: checking for setresuid declaration" >&5
4161 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4163 else
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4168 #include <unistd.h>
4169 int main() {
4170 int i = (int)setresuid
4171 ; return 0; }
4173 if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4174 rm -rf conftest*
4175 samba_cv_have_setresuid_decl=yes
4176 else
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 rm -rf conftest*
4180 samba_cv_have_setresuid_decl=no
4182 rm -f conftest*
4185 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
4186 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
4187 cat >> confdefs.h <<\EOF
4188 #define HAVE_SETRESUID_DECL 1
4193 # stupid glibc has the functions but no declaration. grrrr.
4194 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4195 echo "configure:4196: checking for setresgid declaration" >&5
4196 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4198 else
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 #include <unistd.h>
4204 int main() {
4205 int i = (int)setresgid
4206 ; return 0; }
4208 if { (eval echo configure:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4209 rm -rf conftest*
4210 samba_cv_have_setresgid_decl=yes
4211 else
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 rm -rf conftest*
4215 samba_cv_have_setresgid_decl=no
4217 rm -f conftest*
4220 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4221 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
4222 cat >> confdefs.h <<\EOF
4223 #define HAVE_SETRESGID_DECL 1
4228 # and glibc has setresuid under linux but the function does
4229 # nothing until kernel 2.1.44! very dumb.
4230 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4231 echo "configure:4232: checking for real setresuid" >&5
4232 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234 else
4236 if test "$cross_compiling" = yes; then
4237 samba_cv_have_setresuid=cross
4238 else
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 #include <errno.h>
4243 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4246 then
4247 samba_cv_have_setresuid=yes
4248 else
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4251 rm -fr conftest*
4252 samba_cv_have_setresuid=no
4254 rm -fr conftest*
4259 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4260 if test x"$samba_cv_have_setresuid" = x"yes"; then
4261 cat >> confdefs.h <<\EOF
4262 #define HAVE_SETRESUID 1
4267 # Do the same check for setresguid...
4269 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4270 echo "configure:4271: checking for real setresgid" >&5
4271 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4273 else
4275 if test "$cross_compiling" = yes; then
4276 samba_cv_have_setresgid=cross
4277 else
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <unistd.h>
4282 #include <errno.h>
4283 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4286 then
4287 samba_cv_have_setresgid=yes
4288 else
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4291 rm -fr conftest*
4292 samba_cv_have_setresgid=no
4294 rm -fr conftest*
4299 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4300 if test x"$samba_cv_have_setresgid" = x"yes"; then
4301 cat >> confdefs.h <<\EOF
4302 #define HAVE_SETRESGID 1
4307 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4308 echo "configure:4309: checking for 8-bit clean memcmp" >&5
4309 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312 if test "$cross_compiling" = yes; then
4313 ac_cv_func_memcmp_clean=no
4314 else
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4319 main()
4321 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4322 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4327 then
4328 ac_cv_func_memcmp_clean=yes
4329 else
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4332 rm -fr conftest*
4333 ac_cv_func_memcmp_clean=no
4335 rm -fr conftest*
4340 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4341 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4344 ###############################################
4345 # test for where we get crypt() from
4346 for ac_func in crypt
4348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4349 echo "configure:4350: checking for $ac_func" >&5
4350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4352 else
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* System header to define __stub macros and hopefully few prototypes,
4357 which can conflict with char $ac_func(); below. */
4358 #include <assert.h>
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4362 char $ac_func();
4364 int main() {
4366 /* The GNU C library defines this for functions which it implements
4367 to always fail with ENOSYS. Some functions are actually named
4368 something starting with __ and the normal name is an alias. */
4369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4370 choke me
4371 #else
4372 $ac_func();
4373 #endif
4375 ; return 0; }
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 rm -rf conftest*
4379 eval "ac_cv_func_$ac_func=yes"
4380 else
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4383 rm -rf conftest*
4384 eval "ac_cv_func_$ac_func=no"
4386 rm -f conftest*
4389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4392 cat >> confdefs.h <<EOF
4393 #define $ac_tr_func 1
4396 else
4397 echo "$ac_t""no" 1>&6
4399 done
4401 if test x"$ac_cv_func_crypt" = x"no"; then
4402 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4403 echo "configure:4404: checking for crypt in -lcrypt" >&5
4404 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4407 else
4408 ac_save_LIBS="$LIBS"
4409 LIBS="-lcrypt $LIBS"
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */
4416 char crypt();
4418 int main() {
4419 crypt()
4420 ; return 0; }
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 rm -rf conftest*
4424 eval "ac_cv_lib_$ac_lib_var=yes"
4425 else
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4428 rm -rf conftest*
4429 eval "ac_cv_lib_$ac_lib_var=no"
4431 rm -f conftest*
4432 LIBS="$ac_save_LIBS"
4435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4436 echo "$ac_t""yes" 1>&6
4437 LIBS="$LIBS -lcrypt";
4438 cat >> confdefs.h <<\EOF
4439 #define HAVE_CRYPT 1
4442 else
4443 echo "$ac_t""no" 1>&6
4449 ###############################################
4450 # test for where we get readline() from
4451 echo $ac_n "checking for readline""... $ac_c" 1>&6
4452 echo "configure:4453: checking for readline" >&5
4453 if eval "test \"`echo '$''{'samba_cv_HAVE_READLINE'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4455 else
4457 if test "$cross_compiling" = yes; then
4458 samba_cv_HAVE_READLINE=cross
4459 else
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 #include "${srcdir-.}/tests/readline.c"
4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4466 then
4467 samba_cv_HAVE_READLINE=yes
4468 else
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4471 rm -fr conftest*
4472 samba_cv_HAVE_READLINE=no
4474 rm -fr conftest*
4479 echo "$ac_t""$samba_cv_HAVE_READLINE" 1>&6
4480 if test x"$samba_cv_HAVE_READLINE" = x"yes"; then
4481 cat >> confdefs.h <<\EOF
4482 #define HAVE_READLINE 1
4488 # The following test taken from the cvs sources
4489 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4490 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4491 # libsocket.so which has a bad implementation of gethostbyname (it
4492 # only looks in /etc/hosts), so we only look for -lsocket if we need
4493 # it.
4494 for ac_func in connect
4496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4497 echo "configure:4498: checking for $ac_func" >&5
4498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4500 else
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 /* System header to define __stub macros and hopefully few prototypes,
4505 which can conflict with char $ac_func(); below. */
4506 #include <assert.h>
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4510 char $ac_func();
4512 int main() {
4514 /* The GNU C library defines this for functions which it implements
4515 to always fail with ENOSYS. Some functions are actually named
4516 something starting with __ and the normal name is an alias. */
4517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4518 choke me
4519 #else
4520 $ac_func();
4521 #endif
4523 ; return 0; }
4525 if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4526 rm -rf conftest*
4527 eval "ac_cv_func_$ac_func=yes"
4528 else
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4531 rm -rf conftest*
4532 eval "ac_cv_func_$ac_func=no"
4534 rm -f conftest*
4537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4538 echo "$ac_t""yes" 1>&6
4539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4540 cat >> confdefs.h <<EOF
4541 #define $ac_tr_func 1
4544 else
4545 echo "$ac_t""no" 1>&6
4547 done
4549 if test x"$ac_cv_func_connect" = x"no"; then
4550 case "$LIBS" in
4551 *-lnsl*) ;;
4552 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4553 echo "configure:4554: checking for printf in -lnsl_s" >&5
4554 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558 ac_save_LIBS="$LIBS"
4559 LIBS="-lnsl_s $LIBS"
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char printf();
4568 int main() {
4569 printf()
4570 ; return 0; }
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573 rm -rf conftest*
4574 eval "ac_cv_lib_$ac_lib_var=yes"
4575 else
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 rm -rf conftest*
4579 eval "ac_cv_lib_$ac_lib_var=no"
4581 rm -f conftest*
4582 LIBS="$ac_save_LIBS"
4585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4587 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4589 cat >> confdefs.h <<EOF
4590 #define $ac_tr_lib 1
4593 LIBS="-lnsl_s $LIBS"
4595 else
4596 echo "$ac_t""no" 1>&6
4599 esac
4600 case "$LIBS" in
4601 *-lnsl*) ;;
4602 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4603 echo "configure:4604: checking for printf in -lnsl" >&5
4604 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4607 else
4608 ac_save_LIBS="$LIBS"
4609 LIBS="-lnsl $LIBS"
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 /* We use char because int might match the return type of a gcc2
4615 builtin and then its argument prototype would still apply. */
4616 char printf();
4618 int main() {
4619 printf()
4620 ; return 0; }
4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4623 rm -rf conftest*
4624 eval "ac_cv_lib_$ac_lib_var=yes"
4625 else
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4628 rm -rf conftest*
4629 eval "ac_cv_lib_$ac_lib_var=no"
4631 rm -f conftest*
4632 LIBS="$ac_save_LIBS"
4635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4637 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4638 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4639 cat >> confdefs.h <<EOF
4640 #define $ac_tr_lib 1
4643 LIBS="-lnsl $LIBS"
4645 else
4646 echo "$ac_t""no" 1>&6
4649 esac
4650 case "$LIBS" in
4651 *-lsocket*) ;;
4652 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4653 echo "configure:4654: checking for connect in -lsocket" >&5
4654 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4657 else
4658 ac_save_LIBS="$LIBS"
4659 LIBS="-lsocket $LIBS"
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4666 char connect();
4668 int main() {
4669 connect()
4670 ; return 0; }
4672 if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4673 rm -rf conftest*
4674 eval "ac_cv_lib_$ac_lib_var=yes"
4675 else
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4678 rm -rf conftest*
4679 eval "ac_cv_lib_$ac_lib_var=no"
4681 rm -f conftest*
4682 LIBS="$ac_save_LIBS"
4685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4688 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4689 cat >> confdefs.h <<EOF
4690 #define $ac_tr_lib 1
4693 LIBS="-lsocket $LIBS"
4695 else
4696 echo "$ac_t""no" 1>&6
4699 esac
4700 case "$LIBS" in
4701 *-linet*) ;;
4702 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4703 echo "configure:4704: checking for connect in -linet" >&5
4704 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4707 else
4708 ac_save_LIBS="$LIBS"
4709 LIBS="-linet $LIBS"
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 /* Override any gcc2 internal prototype to avoid an error. */
4714 /* We use char because int might match the return type of a gcc2
4715 builtin and then its argument prototype would still apply. */
4716 char connect();
4718 int main() {
4719 connect()
4720 ; return 0; }
4722 if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4723 rm -rf conftest*
4724 eval "ac_cv_lib_$ac_lib_var=yes"
4725 else
4726 echo "configure: failed program was:" >&5
4727 cat conftest.$ac_ext >&5
4728 rm -rf conftest*
4729 eval "ac_cv_lib_$ac_lib_var=no"
4731 rm -f conftest*
4732 LIBS="$ac_save_LIBS"
4735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4738 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4739 cat >> confdefs.h <<EOF
4740 #define $ac_tr_lib 1
4743 LIBS="-linet $LIBS"
4745 else
4746 echo "$ac_t""no" 1>&6
4749 esac
4750 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4751 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4752 # ac_cv_func_connect=yes
4753 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4754 cat >> confdefs.h <<\EOF
4755 #define HAVE_CONNECT 1
4761 # Check if we have execl, if not we need to compile smbrun.
4762 for ac_func in execl
4764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4765 echo "configure:4766: checking for $ac_func" >&5
4766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4768 else
4769 cat > conftest.$ac_ext <<EOF
4770 #line 4771 "configure"
4771 #include "confdefs.h"
4772 /* System header to define __stub macros and hopefully few prototypes,
4773 which can conflict with char $ac_func(); below. */
4774 #include <assert.h>
4775 /* Override any gcc2 internal prototype to avoid an error. */
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4778 char $ac_func();
4780 int main() {
4782 /* The GNU C library defines this for functions which it implements
4783 to always fail with ENOSYS. Some functions are actually named
4784 something starting with __ and the normal name is an alias. */
4785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4786 choke me
4787 #else
4788 $ac_func();
4789 #endif
4791 ; return 0; }
4793 if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4794 rm -rf conftest*
4795 eval "ac_cv_func_$ac_func=yes"
4796 else
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4799 rm -rf conftest*
4800 eval "ac_cv_func_$ac_func=no"
4802 rm -f conftest*
4805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4808 cat >> confdefs.h <<EOF
4809 #define $ac_tr_func 1
4812 else
4813 echo "$ac_t""no" 1>&6
4815 done
4817 if test x"$ac_cv_func_execl" = x"no"; then
4818 RUNPROG="bin/smbrun"
4819 else
4820 RUNPROG=""
4823 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4826 echo "configure:4827: checking for $ac_func" >&5
4827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829 else
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char $ac_func(); below. */
4835 #include <assert.h>
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4839 char $ac_func();
4841 int main() {
4843 /* The GNU C library defines this for functions which it implements
4844 to always fail with ENOSYS. Some functions are actually named
4845 something starting with __ and the normal name is an alias. */
4846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4847 choke me
4848 #else
4849 $ac_func();
4850 #endif
4852 ; return 0; }
4854 if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4855 rm -rf conftest*
4856 eval "ac_cv_func_$ac_func=yes"
4857 else
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4860 rm -rf conftest*
4861 eval "ac_cv_func_$ac_func=no"
4863 rm -f conftest*
4866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4869 cat >> confdefs.h <<EOF
4870 #define $ac_tr_func 1
4873 else
4874 echo "$ac_t""no" 1>&6
4876 done
4878 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4881 echo "configure:4882: checking for $ac_func" >&5
4882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4884 else
4885 cat > conftest.$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4888 /* System header to define __stub macros and hopefully few prototypes,
4889 which can conflict with char $ac_func(); below. */
4890 #include <assert.h>
4891 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */
4894 char $ac_func();
4896 int main() {
4898 /* The GNU C library defines this for functions which it implements
4899 to always fail with ENOSYS. Some functions are actually named
4900 something starting with __ and the normal name is an alias. */
4901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4902 choke me
4903 #else
4904 $ac_func();
4905 #endif
4907 ; return 0; }
4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4910 rm -rf conftest*
4911 eval "ac_cv_func_$ac_func=yes"
4912 else
4913 echo "configure: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 rm -rf conftest*
4916 eval "ac_cv_func_$ac_func=no"
4918 rm -f conftest*
4921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4924 cat >> confdefs.h <<EOF
4925 #define $ac_tr_func 1
4928 else
4929 echo "$ac_t""no" 1>&6
4931 done
4933 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_func" >&5
4937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4939 else
4940 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4943 /* System header to define __stub macros and hopefully few prototypes,
4944 which can conflict with char $ac_func(); below. */
4945 #include <assert.h>
4946 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4949 char $ac_func();
4951 int main() {
4953 /* The GNU C library defines this for functions which it implements
4954 to always fail with ENOSYS. Some functions are actually named
4955 something starting with __ and the normal name is an alias. */
4956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4957 choke me
4958 #else
4959 $ac_func();
4960 #endif
4962 ; return 0; }
4964 if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4965 rm -rf conftest*
4966 eval "ac_cv_func_$ac_func=yes"
4967 else
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 rm -rf conftest*
4971 eval "ac_cv_func_$ac_func=no"
4973 rm -f conftest*
4976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4979 cat >> confdefs.h <<EOF
4980 #define $ac_tr_func 1
4983 else
4984 echo "$ac_t""no" 1>&6
4986 done
4988 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4991 echo "configure:4992: checking for $ac_func" >&5
4992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4994 else
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
4998 /* System header to define __stub macros and hopefully few prototypes,
4999 which can conflict with char $ac_func(); below. */
5000 #include <assert.h>
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5004 char $ac_func();
5006 int main() {
5008 /* The GNU C library defines this for functions which it implements
5009 to always fail with ENOSYS. Some functions are actually named
5010 something starting with __ and the normal name is an alias. */
5011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5012 choke me
5013 #else
5014 $ac_func();
5015 #endif
5017 ; return 0; }
5019 if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5020 rm -rf conftest*
5021 eval "ac_cv_func_$ac_func=yes"
5022 else
5023 echo "configure: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5025 rm -rf conftest*
5026 eval "ac_cv_func_$ac_func=no"
5028 rm -f conftest*
5031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5032 echo "$ac_t""yes" 1>&6
5033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5034 cat >> confdefs.h <<EOF
5035 #define $ac_tr_func 1
5038 else
5039 echo "$ac_t""no" 1>&6
5041 done
5043 for ac_func in initgroups select rdchk getgrnam getgrent pathconf
5045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5046 echo "configure:5047: checking for $ac_func" >&5
5047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5049 else
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 /* System header to define __stub macros and hopefully few prototypes,
5054 which can conflict with char $ac_func(); below. */
5055 #include <assert.h>
5056 /* Override any gcc2 internal prototype to avoid an error. */
5057 /* We use char because int might match the return type of a gcc2
5058 builtin and then its argument prototype would still apply. */
5059 char $ac_func();
5061 int main() {
5063 /* The GNU C library defines this for functions which it implements
5064 to always fail with ENOSYS. Some functions are actually named
5065 something starting with __ and the normal name is an alias. */
5066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5067 choke me
5068 #else
5069 $ac_func();
5070 #endif
5072 ; return 0; }
5074 if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5075 rm -rf conftest*
5076 eval "ac_cv_func_$ac_func=yes"
5077 else
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5080 rm -rf conftest*
5081 eval "ac_cv_func_$ac_func=no"
5083 rm -f conftest*
5086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5087 echo "$ac_t""yes" 1>&6
5088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5089 cat >> confdefs.h <<EOF
5090 #define $ac_tr_func 1
5093 else
5094 echo "$ac_t""no" 1>&6
5096 done
5098 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5101 echo "configure:5102: checking for $ac_func" >&5
5102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5104 else
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5108 /* System header to define __stub macros and hopefully few prototypes,
5109 which can conflict with char $ac_func(); below. */
5110 #include <assert.h>
5111 /* Override any gcc2 internal prototype to avoid an error. */
5112 /* We use char because int might match the return type of a gcc2
5113 builtin and then its argument prototype would still apply. */
5114 char $ac_func();
5116 int main() {
5118 /* The GNU C library defines this for functions which it implements
5119 to always fail with ENOSYS. Some functions are actually named
5120 something starting with __ and the normal name is an alias. */
5121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5122 choke me
5123 #else
5124 $ac_func();
5125 #endif
5127 ; return 0; }
5129 if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5130 rm -rf conftest*
5131 eval "ac_cv_func_$ac_func=yes"
5132 else
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5135 rm -rf conftest*
5136 eval "ac_cv_func_$ac_func=no"
5138 rm -f conftest*
5141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5142 echo "$ac_t""yes" 1>&6
5143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5144 cat >> confdefs.h <<EOF
5145 #define $ac_tr_func 1
5148 else
5149 echo "$ac_t""no" 1>&6
5151 done
5153 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5156 echo "configure:5157: checking for $ac_func" >&5
5157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5159 else
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* System header to define __stub macros and hopefully few prototypes,
5164 which can conflict with char $ac_func(); below. */
5165 #include <assert.h>
5166 /* Override any gcc2 internal prototype to avoid an error. */
5167 /* We use char because int might match the return type of a gcc2
5168 builtin and then its argument prototype would still apply. */
5169 char $ac_func();
5171 int main() {
5173 /* The GNU C library defines this for functions which it implements
5174 to always fail with ENOSYS. Some functions are actually named
5175 something starting with __ and the normal name is an alias. */
5176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5177 choke me
5178 #else
5179 $ac_func();
5180 #endif
5182 ; return 0; }
5184 if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5185 rm -rf conftest*
5186 eval "ac_cv_func_$ac_func=yes"
5187 else
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5190 rm -rf conftest*
5191 eval "ac_cv_func_$ac_func=no"
5193 rm -f conftest*
5196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5197 echo "$ac_t""yes" 1>&6
5198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5199 cat >> confdefs.h <<EOF
5200 #define $ac_tr_func 1
5203 else
5204 echo "$ac_t""no" 1>&6
5206 done
5208 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
5210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5211 echo "configure:5212: checking for $ac_func" >&5
5212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5214 else
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 /* System header to define __stub macros and hopefully few prototypes,
5219 which can conflict with char $ac_func(); below. */
5220 #include <assert.h>
5221 /* Override any gcc2 internal prototype to avoid an error. */
5222 /* We use char because int might match the return type of a gcc2
5223 builtin and then its argument prototype would still apply. */
5224 char $ac_func();
5226 int main() {
5228 /* The GNU C library defines this for functions which it implements
5229 to always fail with ENOSYS. Some functions are actually named
5230 something starting with __ and the normal name is an alias. */
5231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5232 choke me
5233 #else
5234 $ac_func();
5235 #endif
5237 ; return 0; }
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5240 rm -rf conftest*
5241 eval "ac_cv_func_$ac_func=yes"
5242 else
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5245 rm -rf conftest*
5246 eval "ac_cv_func_$ac_func=no"
5248 rm -f conftest*
5251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5252 echo "$ac_t""yes" 1>&6
5253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5254 cat >> confdefs.h <<EOF
5255 #define $ac_tr_func 1
5258 else
5259 echo "$ac_t""no" 1>&6
5261 done
5263 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5266 echo "configure:5267: checking for $ac_func" >&5
5267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5268 echo $ac_n "(cached) $ac_c" 1>&6
5269 else
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5273 /* System header to define __stub macros and hopefully few prototypes,
5274 which can conflict with char $ac_func(); below. */
5275 #include <assert.h>
5276 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5279 char $ac_func();
5281 int main() {
5283 /* The GNU C library defines this for functions which it implements
5284 to always fail with ENOSYS. Some functions are actually named
5285 something starting with __ and the normal name is an alias. */
5286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5287 choke me
5288 #else
5289 $ac_func();
5290 #endif
5292 ; return 0; }
5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5295 rm -rf conftest*
5296 eval "ac_cv_func_$ac_func=yes"
5297 else
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5300 rm -rf conftest*
5301 eval "ac_cv_func_$ac_func=no"
5303 rm -f conftest*
5306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5307 echo "$ac_t""yes" 1>&6
5308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5309 cat >> confdefs.h <<EOF
5310 #define $ac_tr_func 1
5313 else
5314 echo "$ac_t""no" 1>&6
5316 done
5318 for ac_func in mmap64
5320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5321 echo "configure:5322: checking for $ac_func" >&5
5322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5324 else
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* System header to define __stub macros and hopefully few prototypes,
5329 which can conflict with char $ac_func(); below. */
5330 #include <assert.h>
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */
5334 char $ac_func();
5336 int main() {
5338 /* The GNU C library defines this for functions which it implements
5339 to always fail with ENOSYS. Some functions are actually named
5340 something starting with __ and the normal name is an alias. */
5341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5342 choke me
5343 #else
5344 $ac_func();
5345 #endif
5347 ; return 0; }
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5350 rm -rf conftest*
5351 eval "ac_cv_func_$ac_func=yes"
5352 else
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5355 rm -rf conftest*
5356 eval "ac_cv_func_$ac_func=no"
5358 rm -f conftest*
5361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5362 echo "$ac_t""yes" 1>&6
5363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5364 cat >> confdefs.h <<EOF
5365 #define $ac_tr_func 1
5368 else
5369 echo "$ac_t""no" 1>&6
5371 done
5374 # syscall() is needed for smbwrapper.
5375 for ac_func in syscall
5377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5378 echo "configure:5379: checking for $ac_func" >&5
5379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5380 echo $ac_n "(cached) $ac_c" 1>&6
5381 else
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5385 /* System header to define __stub macros and hopefully few prototypes,
5386 which can conflict with char $ac_func(); below. */
5387 #include <assert.h>
5388 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5391 char $ac_func();
5393 int main() {
5395 /* The GNU C library defines this for functions which it implements
5396 to always fail with ENOSYS. Some functions are actually named
5397 something starting with __ and the normal name is an alias. */
5398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5399 choke me
5400 #else
5401 $ac_func();
5402 #endif
5404 ; return 0; }
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5407 rm -rf conftest*
5408 eval "ac_cv_func_$ac_func=yes"
5409 else
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5412 rm -rf conftest*
5413 eval "ac_cv_func_$ac_func=no"
5415 rm -f conftest*
5418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5419 echo "$ac_t""yes" 1>&6
5420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5421 cat >> confdefs.h <<EOF
5422 #define $ac_tr_func 1
5425 else
5426 echo "$ac_t""no" 1>&6
5428 done
5431 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_func" >&5
5435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5437 else
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char $ac_func(); below. */
5443 #include <assert.h>
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5447 char $ac_func();
5449 int main() {
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5455 choke me
5456 #else
5457 $ac_func();
5458 #endif
5460 ; return 0; }
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5463 rm -rf conftest*
5464 eval "ac_cv_func_$ac_func=yes"
5465 else
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 rm -rf conftest*
5469 eval "ac_cv_func_$ac_func=no"
5471 rm -f conftest*
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h <<EOF
5478 #define $ac_tr_func 1
5481 else
5482 echo "$ac_t""no" 1>&6
5484 done
5486 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5489 echo "configure:5490: checking for $ac_func" >&5
5490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5492 else
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496 /* System header to define __stub macros and hopefully few prototypes,
5497 which can conflict with char $ac_func(); below. */
5498 #include <assert.h>
5499 /* Override any gcc2 internal prototype to avoid an error. */
5500 /* We use char because int might match the return type of a gcc2
5501 builtin and then its argument prototype would still apply. */
5502 char $ac_func();
5504 int main() {
5506 /* The GNU C library defines this for functions which it implements
5507 to always fail with ENOSYS. Some functions are actually named
5508 something starting with __ and the normal name is an alias. */
5509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5510 choke me
5511 #else
5512 $ac_func();
5513 #endif
5515 ; return 0; }
5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5518 rm -rf conftest*
5519 eval "ac_cv_func_$ac_func=yes"
5520 else
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5523 rm -rf conftest*
5524 eval "ac_cv_func_$ac_func=no"
5526 rm -f conftest*
5529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5530 echo "$ac_t""yes" 1>&6
5531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5532 cat >> confdefs.h <<EOF
5533 #define $ac_tr_func 1
5536 else
5537 echo "$ac_t""no" 1>&6
5539 done
5541 for ac_func in __getcwd _getcwd
5543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5544 echo "configure:5545: checking for $ac_func" >&5
5545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5547 else
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 /* System header to define __stub macros and hopefully few prototypes,
5552 which can conflict with char $ac_func(); below. */
5553 #include <assert.h>
5554 /* Override any gcc2 internal prototype to avoid an error. */
5555 /* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5557 char $ac_func();
5559 int main() {
5561 /* The GNU C library defines this for functions which it implements
5562 to always fail with ENOSYS. Some functions are actually named
5563 something starting with __ and the normal name is an alias. */
5564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5565 choke me
5566 #else
5567 $ac_func();
5568 #endif
5570 ; return 0; }
5572 if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5573 rm -rf conftest*
5574 eval "ac_cv_func_$ac_func=yes"
5575 else
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5578 rm -rf conftest*
5579 eval "ac_cv_func_$ac_func=no"
5581 rm -f conftest*
5584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5585 echo "$ac_t""yes" 1>&6
5586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5587 cat >> confdefs.h <<EOF
5588 #define $ac_tr_func 1
5591 else
5592 echo "$ac_t""no" 1>&6
5594 done
5596 for ac_func in __xstat __fxstat __lxstat
5598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5599 echo "configure:5600: checking for $ac_func" >&5
5600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5602 else
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 /* System header to define __stub macros and hopefully few prototypes,
5607 which can conflict with char $ac_func(); below. */
5608 #include <assert.h>
5609 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5612 char $ac_func();
5614 int main() {
5616 /* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
5619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5620 choke me
5621 #else
5622 $ac_func();
5623 #endif
5625 ; return 0; }
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 rm -rf conftest*
5629 eval "ac_cv_func_$ac_func=yes"
5630 else
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5633 rm -rf conftest*
5634 eval "ac_cv_func_$ac_func=no"
5636 rm -f conftest*
5639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5642 cat >> confdefs.h <<EOF
5643 #define $ac_tr_func 1
5646 else
5647 echo "$ac_t""no" 1>&6
5649 done
5651 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5654 echo "configure:5655: checking for $ac_func" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662 which can conflict with char $ac_func(); below. */
5663 #include <assert.h>
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5667 char $ac_func();
5669 int main() {
5671 /* The GNU C library defines this for functions which it implements
5672 to always fail with ENOSYS. Some functions are actually named
5673 something starting with __ and the normal name is an alias. */
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 choke me
5676 #else
5677 $ac_func();
5678 #endif
5680 ; return 0; }
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683 rm -rf conftest*
5684 eval "ac_cv_func_$ac_func=yes"
5685 else
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5688 rm -rf conftest*
5689 eval "ac_cv_func_$ac_func=no"
5691 rm -f conftest*
5694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5697 cat >> confdefs.h <<EOF
5698 #define $ac_tr_func 1
5701 else
5702 echo "$ac_t""no" 1>&6
5704 done
5706 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5709 echo "configure:5710: checking for $ac_func" >&5
5710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5712 else
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5716 /* System header to define __stub macros and hopefully few prototypes,
5717 which can conflict with char $ac_func(); below. */
5718 #include <assert.h>
5719 /* Override any gcc2 internal prototype to avoid an error. */
5720 /* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5722 char $ac_func();
5724 int main() {
5726 /* The GNU C library defines this for functions which it implements
5727 to always fail with ENOSYS. Some functions are actually named
5728 something starting with __ and the normal name is an alias. */
5729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5730 choke me
5731 #else
5732 $ac_func();
5733 #endif
5735 ; return 0; }
5737 if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5738 rm -rf conftest*
5739 eval "ac_cv_func_$ac_func=yes"
5740 else
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5743 rm -rf conftest*
5744 eval "ac_cv_func_$ac_func=no"
5746 rm -f conftest*
5749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5750 echo "$ac_t""yes" 1>&6
5751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5752 cat >> confdefs.h <<EOF
5753 #define $ac_tr_func 1
5756 else
5757 echo "$ac_t""no" 1>&6
5759 done
5761 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_func" >&5
5765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5767 else
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771 /* System header to define __stub macros and hopefully few prototypes,
5772 which can conflict with char $ac_func(); below. */
5773 #include <assert.h>
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5777 char $ac_func();
5779 int main() {
5781 /* The GNU C library defines this for functions which it implements
5782 to always fail with ENOSYS. Some functions are actually named
5783 something starting with __ and the normal name is an alias. */
5784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5785 choke me
5786 #else
5787 $ac_func();
5788 #endif
5790 ; return 0; }
5792 if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5793 rm -rf conftest*
5794 eval "ac_cv_func_$ac_func=yes"
5795 else
5796 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 rm -rf conftest*
5799 eval "ac_cv_func_$ac_func=no"
5801 rm -f conftest*
5804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5805 echo "$ac_t""yes" 1>&6
5806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5807 cat >> confdefs.h <<EOF
5808 #define $ac_tr_func 1
5811 else
5812 echo "$ac_t""no" 1>&6
5814 done
5816 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5819 echo "configure:5820: checking for $ac_func" >&5
5820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5821 echo $ac_n "(cached) $ac_c" 1>&6
5822 else
5823 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5826 /* System header to define __stub macros and hopefully few prototypes,
5827 which can conflict with char $ac_func(); below. */
5828 #include <assert.h>
5829 /* Override any gcc2 internal prototype to avoid an error. */
5830 /* We use char because int might match the return type of a gcc2
5831 builtin and then its argument prototype would still apply. */
5832 char $ac_func();
5834 int main() {
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5840 choke me
5841 #else
5842 $ac_func();
5843 #endif
5845 ; return 0; }
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848 rm -rf conftest*
5849 eval "ac_cv_func_$ac_func=yes"
5850 else
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5853 rm -rf conftest*
5854 eval "ac_cv_func_$ac_func=no"
5856 rm -f conftest*
5859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5860 echo "$ac_t""yes" 1>&6
5861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5862 cat >> confdefs.h <<EOF
5863 #define $ac_tr_func 1
5866 else
5867 echo "$ac_t""no" 1>&6
5869 done
5871 for ac_func in _write __write _fork __fork
5873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_func" >&5
5875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5877 else
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5883 #include <assert.h>
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5887 char $ac_func();
5889 int main() {
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5895 choke me
5896 #else
5897 $ac_func();
5898 #endif
5900 ; return 0; }
5902 if { (eval echo configure:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5903 rm -rf conftest*
5904 eval "ac_cv_func_$ac_func=yes"
5905 else
5906 echo "configure: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 rm -rf conftest*
5909 eval "ac_cv_func_$ac_func=no"
5911 rm -f conftest*
5914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5917 cat >> confdefs.h <<EOF
5918 #define $ac_tr_func 1
5921 else
5922 echo "$ac_t""no" 1>&6
5924 done
5926 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5929 echo "configure:5930: checking for $ac_func" >&5
5930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5932 else
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char $ac_func(); below. */
5938 #include <assert.h>
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5942 char $ac_func();
5944 int main() {
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5950 choke me
5951 #else
5952 $ac_func();
5953 #endif
5955 ; return 0; }
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958 rm -rf conftest*
5959 eval "ac_cv_func_$ac_func=yes"
5960 else
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5963 rm -rf conftest*
5964 eval "ac_cv_func_$ac_func=no"
5966 rm -f conftest*
5969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5972 cat >> confdefs.h <<EOF
5973 #define $ac_tr_func 1
5976 else
5977 echo "$ac_t""no" 1>&6
5979 done
5981 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_func" >&5
5985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5987 else
5988 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char $ac_func(); below. */
5993 #include <assert.h>
5994 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5997 char $ac_func();
5999 int main() {
6001 /* The GNU C library defines this for functions which it implements
6002 to always fail with ENOSYS. Some functions are actually named
6003 something starting with __ and the normal name is an alias. */
6004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6005 choke me
6006 #else
6007 $ac_func();
6008 #endif
6010 ; return 0; }
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6013 rm -rf conftest*
6014 eval "ac_cv_func_$ac_func=yes"
6015 else
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6018 rm -rf conftest*
6019 eval "ac_cv_func_$ac_func=no"
6021 rm -f conftest*
6024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6027 cat >> confdefs.h <<EOF
6028 #define $ac_tr_func 1
6031 else
6032 echo "$ac_t""no" 1>&6
6034 done
6036 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6039 echo "configure:6040: checking for $ac_func" >&5
6040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6042 else
6043 cat > conftest.$ac_ext <<EOF
6044 #line 6045 "configure"
6045 #include "confdefs.h"
6046 /* System header to define __stub macros and hopefully few prototypes,
6047 which can conflict with char $ac_func(); below. */
6048 #include <assert.h>
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 /* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */
6052 char $ac_func();
6054 int main() {
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6060 choke me
6061 #else
6062 $ac_func();
6063 #endif
6065 ; return 0; }
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6068 rm -rf conftest*
6069 eval "ac_cv_func_$ac_func=yes"
6070 else
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6073 rm -rf conftest*
6074 eval "ac_cv_func_$ac_func=no"
6076 rm -f conftest*
6079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6082 cat >> confdefs.h <<EOF
6083 #define $ac_tr_func 1
6086 else
6087 echo "$ac_t""no" 1>&6
6089 done
6091 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6094 echo "configure:6095: checking for $ac_func" >&5
6095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6
6097 else
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101 /* System header to define __stub macros and hopefully few prototypes,
6102 which can conflict with char $ac_func(); below. */
6103 #include <assert.h>
6104 /* Override any gcc2 internal prototype to avoid an error. */
6105 /* We use char because int might match the return type of a gcc2
6106 builtin and then its argument prototype would still apply. */
6107 char $ac_func();
6109 int main() {
6111 /* The GNU C library defines this for functions which it implements
6112 to always fail with ENOSYS. Some functions are actually named
6113 something starting with __ and the normal name is an alias. */
6114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6115 choke me
6116 #else
6117 $ac_func();
6118 #endif
6120 ; return 0; }
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6123 rm -rf conftest*
6124 eval "ac_cv_func_$ac_func=yes"
6125 else
6126 echo "configure: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6128 rm -rf conftest*
6129 eval "ac_cv_func_$ac_func=no"
6131 rm -f conftest*
6134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6135 echo "$ac_t""yes" 1>&6
6136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6137 cat >> confdefs.h <<EOF
6138 #define $ac_tr_func 1
6141 else
6142 echo "$ac_t""no" 1>&6
6144 done
6146 for ac_func in open64 _open64 __open64 creat64
6148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6149 echo "configure:6150: checking for $ac_func" >&5
6150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6152 else
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157 which can conflict with char $ac_func(); below. */
6158 #include <assert.h>
6159 /* Override any gcc2 internal prototype to avoid an error. */
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6162 char $ac_func();
6164 int main() {
6166 /* The GNU C library defines this for functions which it implements
6167 to always fail with ENOSYS. Some functions are actually named
6168 something starting with __ and the normal name is an alias. */
6169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6170 choke me
6171 #else
6172 $ac_func();
6173 #endif
6175 ; return 0; }
6177 if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6178 rm -rf conftest*
6179 eval "ac_cv_func_$ac_func=yes"
6180 else
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6183 rm -rf conftest*
6184 eval "ac_cv_func_$ac_func=no"
6186 rm -f conftest*
6189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6192 cat >> confdefs.h <<EOF
6193 #define $ac_tr_func 1
6196 else
6197 echo "$ac_t""no" 1>&6
6199 done
6201 for ac_func in setenv putenv
6203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_func" >&5
6205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6207 else
6208 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func(); below. */
6213 #include <assert.h>
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6217 char $ac_func();
6219 int main() {
6221 /* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225 choke me
6226 #else
6227 $ac_func();
6228 #endif
6230 ; return 0; }
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 rm -rf conftest*
6234 eval "ac_cv_func_$ac_func=yes"
6235 else
6236 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5
6238 rm -rf conftest*
6239 eval "ac_cv_func_$ac_func=no"
6241 rm -f conftest*
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 cat >> confdefs.h <<EOF
6248 #define $ac_tr_func 1
6251 else
6252 echo "$ac_t""no" 1>&6
6254 done
6258 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6261 if test x$ac_cv_func_stat64 = xno ; then
6262 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6263 echo "configure:6264: checking for stat64 in <sys/stat.h>" >&5
6264 cat > conftest.$ac_ext <<EOF
6265 #line 6266 "configure"
6266 #include "confdefs.h"
6268 #if defined(HAVE_UNISTD_H)
6269 #include <unistd.h>
6270 #endif
6271 #include <sys/stat.h>
6273 int main() {
6274 struct stat64 st64; exit(stat64(".",&st64));
6275 ; return 0; }
6277 if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6278 rm -rf conftest*
6279 ac_cv_func_stat64=yes
6280 else
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 rm -f conftest*
6285 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6286 if test x$ac_cv_func_stat64 = xyes ; then
6287 cat >> confdefs.h <<\EOF
6288 #define HAVE_STAT64 1
6294 if test x$ac_cv_func_lstat64 = xno ; then
6295 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6296 echo "configure:6297: checking for lstat64 in <sys/stat.h>" >&5
6297 cat > conftest.$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6301 #if defined(HAVE_UNISTD_H)
6302 #include <unistd.h>
6303 #endif
6304 #include <sys/stat.h>
6306 int main() {
6307 struct stat64 st64; exit(lstat64(".",&st64));
6308 ; return 0; }
6310 if { (eval echo configure:6311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6311 rm -rf conftest*
6312 ac_cv_func_lstat64=yes
6313 else
6314 echo "configure: failed program was:" >&5
6315 cat conftest.$ac_ext >&5
6317 rm -f conftest*
6318 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6319 if test x$ac_cv_func_lstat64 = xyes ; then
6320 cat >> confdefs.h <<\EOF
6321 #define HAVE_LSTAT64 1
6327 if test x$ac_cv_func_fstat64 = xno ; then
6328 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6329 echo "configure:6330: checking for fstat64 in <sys/stat.h>" >&5
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6334 #if defined(HAVE_UNISTD_H)
6335 #include <unistd.h>
6336 #endif
6337 #include <sys/stat.h>
6339 int main() {
6340 struct stat64 st64; exit(fstat64(0,&st64));
6341 ; return 0; }
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6344 rm -rf conftest*
6345 ac_cv_func_fstat64=yes
6346 else
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 rm -f conftest*
6351 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6352 if test x$ac_cv_func_fstat64 = xyes ; then
6353 cat >> confdefs.h <<\EOF
6354 #define HAVE_FSTAT64 1
6361 # If no strcasecmp, check for it in some known places
6362 # It is in -lresolv on ReliantUNIX and UnixWare
6363 # -lresolve *must* follow -lnsl for name resolution to work properly
6366 if test x$ac_cv_func_strcasecmp = xno ; then
6367 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6368 echo "configure:6369: checking for strcasecmp in -lresolv" >&5
6369 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373 ac_save_LIBS="$LIBS"
6374 LIBS="-lresolv $LIBS"
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 /* Override any gcc2 internal prototype to avoid an error. */
6379 /* We use char because int might match the return type of a gcc2
6380 builtin and then its argument prototype would still apply. */
6381 char strcasecmp();
6383 int main() {
6384 strcasecmp()
6385 ; return 0; }
6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388 rm -rf conftest*
6389 eval "ac_cv_lib_$ac_lib_var=yes"
6390 else
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6393 rm -rf conftest*
6394 eval "ac_cv_lib_$ac_lib_var=no"
6396 rm -f conftest*
6397 LIBS="$ac_save_LIBS"
6400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6401 echo "$ac_t""yes" 1>&6
6402 LIBS="$LIBS -lresolv"
6403 cat >> confdefs.h <<\EOF
6404 #define HAVE_STRCASECMP 1
6407 else
6408 echo "$ac_t""no" 1>&6
6414 # Check for the functions putprpwnam, set_auth_parameters,
6415 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6416 # Needed for OSF1 and HPUX.
6419 case "$LIBS" in
6420 *-lsecurity*) for ac_func in putprpwnam
6422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6423 echo "configure:6424: checking for $ac_func" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6426 else
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* System header to define __stub macros and hopefully few prototypes,
6431 which can conflict with char $ac_func(); below. */
6432 #include <assert.h>
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6436 char $ac_func();
6438 int main() {
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 choke me
6445 #else
6446 $ac_func();
6447 #endif
6449 ; return 0; }
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6452 rm -rf conftest*
6453 eval "ac_cv_func_$ac_func=yes"
6454 else
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6457 rm -rf conftest*
6458 eval "ac_cv_func_$ac_func=no"
6460 rm -f conftest*
6463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6466 cat >> confdefs.h <<EOF
6467 #define $ac_tr_func 1
6470 else
6471 echo "$ac_t""no" 1>&6
6473 done
6475 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6476 echo "configure:6477: checking for putprpwnam in -lsecurity" >&5
6477 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480 else
6481 ac_save_LIBS="$LIBS"
6482 LIBS="-lsecurity $LIBS"
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6489 char putprpwnam();
6491 int main() {
6492 putprpwnam()
6493 ; return 0; }
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 rm -rf conftest*
6497 eval "ac_cv_lib_$ac_lib_var=yes"
6498 else
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6501 rm -rf conftest*
6502 eval "ac_cv_lib_$ac_lib_var=no"
6504 rm -f conftest*
6505 LIBS="$ac_save_LIBS"
6508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6510 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6512 cat >> confdefs.h <<EOF
6513 #define $ac_tr_lib 1
6516 LIBS="-lsecurity $LIBS"
6518 else
6519 echo "$ac_t""no" 1>&6
6522 for ac_func in putprpwnam
6524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6525 echo "configure:6526: checking for $ac_func" >&5
6526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6528 else
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func(); below. */
6534 #include <assert.h>
6535 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6538 char $ac_func();
6540 int main() {
6542 /* The GNU C library defines this for functions which it implements
6543 to always fail with ENOSYS. Some functions are actually named
6544 something starting with __ and the normal name is an alias. */
6545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6546 choke me
6547 #else
6548 $ac_func();
6549 #endif
6551 ; return 0; }
6553 if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6554 rm -rf conftest*
6555 eval "ac_cv_func_$ac_func=yes"
6556 else
6557 echo "configure: failed program was:" >&5
6558 cat conftest.$ac_ext >&5
6559 rm -rf conftest*
6560 eval "ac_cv_func_$ac_func=no"
6562 rm -f conftest*
6565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6566 echo "$ac_t""yes" 1>&6
6567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6568 cat >> confdefs.h <<EOF
6569 #define $ac_tr_func 1
6572 else
6573 echo "$ac_t""no" 1>&6
6575 done
6578 esac
6580 case "$LIBS" in
6581 *-lsec*) for ac_func in putprpwnam
6583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6584 echo "configure:6585: checking for $ac_func" >&5
6585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6587 else
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 /* System header to define __stub macros and hopefully few prototypes,
6592 which can conflict with char $ac_func(); below. */
6593 #include <assert.h>
6594 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6597 char $ac_func();
6599 int main() {
6601 /* The GNU C library defines this for functions which it implements
6602 to always fail with ENOSYS. Some functions are actually named
6603 something starting with __ and the normal name is an alias. */
6604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6605 choke me
6606 #else
6607 $ac_func();
6608 #endif
6610 ; return 0; }
6612 if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 rm -rf conftest*
6614 eval "ac_cv_func_$ac_func=yes"
6615 else
6616 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6618 rm -rf conftest*
6619 eval "ac_cv_func_$ac_func=no"
6621 rm -f conftest*
6624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6625 echo "$ac_t""yes" 1>&6
6626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6627 cat >> confdefs.h <<EOF
6628 #define $ac_tr_func 1
6631 else
6632 echo "$ac_t""no" 1>&6
6634 done
6636 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6637 echo "configure:6638: checking for putprpwnam in -lsec" >&5
6638 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6641 else
6642 ac_save_LIBS="$LIBS"
6643 LIBS="-lsec $LIBS"
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6650 char putprpwnam();
6652 int main() {
6653 putprpwnam()
6654 ; return 0; }
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6657 rm -rf conftest*
6658 eval "ac_cv_lib_$ac_lib_var=yes"
6659 else
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6662 rm -rf conftest*
6663 eval "ac_cv_lib_$ac_lib_var=no"
6665 rm -f conftest*
6666 LIBS="$ac_save_LIBS"
6669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6670 echo "$ac_t""yes" 1>&6
6671 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6673 cat >> confdefs.h <<EOF
6674 #define $ac_tr_lib 1
6677 LIBS="-lsec $LIBS"
6679 else
6680 echo "$ac_t""no" 1>&6
6683 for ac_func in putprpwnam
6685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6686 echo "configure:6687: checking for $ac_func" >&5
6687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6689 else
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* System header to define __stub macros and hopefully few prototypes,
6694 which can conflict with char $ac_func(); below. */
6695 #include <assert.h>
6696 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6699 char $ac_func();
6701 int main() {
6703 /* The GNU C library defines this for functions which it implements
6704 to always fail with ENOSYS. Some functions are actually named
6705 something starting with __ and the normal name is an alias. */
6706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6707 choke me
6708 #else
6709 $ac_func();
6710 #endif
6712 ; return 0; }
6714 if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6715 rm -rf conftest*
6716 eval "ac_cv_func_$ac_func=yes"
6717 else
6718 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6720 rm -rf conftest*
6721 eval "ac_cv_func_$ac_func=no"
6723 rm -f conftest*
6726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6729 cat >> confdefs.h <<EOF
6730 #define $ac_tr_func 1
6733 else
6734 echo "$ac_t""no" 1>&6
6736 done
6739 esac
6742 case "$LIBS" in
6743 *-lsecurity*) for ac_func in set_auth_parameters
6745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6746 echo "configure:6747: checking for $ac_func" >&5
6747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6749 else
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char $ac_func(); below. */
6755 #include <assert.h>
6756 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char $ac_func();
6761 int main() {
6763 /* The GNU C library defines this for functions which it implements
6764 to always fail with ENOSYS. Some functions are actually named
6765 something starting with __ and the normal name is an alias. */
6766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6767 choke me
6768 #else
6769 $ac_func();
6770 #endif
6772 ; return 0; }
6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6775 rm -rf conftest*
6776 eval "ac_cv_func_$ac_func=yes"
6777 else
6778 echo "configure: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6780 rm -rf conftest*
6781 eval "ac_cv_func_$ac_func=no"
6783 rm -f conftest*
6786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6789 cat >> confdefs.h <<EOF
6790 #define $ac_tr_func 1
6793 else
6794 echo "$ac_t""no" 1>&6
6796 done
6798 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6799 echo "configure:6800: checking for set_auth_parameters in -lsecurity" >&5
6800 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6803 else
6804 ac_save_LIBS="$LIBS"
6805 LIBS="-lsecurity $LIBS"
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6812 char set_auth_parameters();
6814 int main() {
6815 set_auth_parameters()
6816 ; return 0; }
6818 if { (eval echo configure:6819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6819 rm -rf conftest*
6820 eval "ac_cv_lib_$ac_lib_var=yes"
6821 else
6822 echo "configure: failed program was:" >&5
6823 cat conftest.$ac_ext >&5
6824 rm -rf conftest*
6825 eval "ac_cv_lib_$ac_lib_var=no"
6827 rm -f conftest*
6828 LIBS="$ac_save_LIBS"
6831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6832 echo "$ac_t""yes" 1>&6
6833 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6834 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6835 cat >> confdefs.h <<EOF
6836 #define $ac_tr_lib 1
6839 LIBS="-lsecurity $LIBS"
6841 else
6842 echo "$ac_t""no" 1>&6
6845 for ac_func in set_auth_parameters
6847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6848 echo "configure:6849: checking for $ac_func" >&5
6849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6851 else
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char $ac_func(); below. */
6857 #include <assert.h>
6858 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6861 char $ac_func();
6863 int main() {
6865 /* The GNU C library defines this for functions which it implements
6866 to always fail with ENOSYS. Some functions are actually named
6867 something starting with __ and the normal name is an alias. */
6868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6869 choke me
6870 #else
6871 $ac_func();
6872 #endif
6874 ; return 0; }
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877 rm -rf conftest*
6878 eval "ac_cv_func_$ac_func=yes"
6879 else
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6882 rm -rf conftest*
6883 eval "ac_cv_func_$ac_func=no"
6885 rm -f conftest*
6888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6889 echo "$ac_t""yes" 1>&6
6890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6891 cat >> confdefs.h <<EOF
6892 #define $ac_tr_func 1
6895 else
6896 echo "$ac_t""no" 1>&6
6898 done
6901 esac
6903 case "$LIBS" in
6904 *-lsec*) for ac_func in set_auth_parameters
6906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6907 echo "configure:6908: checking for $ac_func" >&5
6908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6910 else
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* System header to define __stub macros and hopefully few prototypes,
6915 which can conflict with char $ac_func(); below. */
6916 #include <assert.h>
6917 /* Override any gcc2 internal prototype to avoid an error. */
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6920 char $ac_func();
6922 int main() {
6924 /* The GNU C library defines this for functions which it implements
6925 to always fail with ENOSYS. Some functions are actually named
6926 something starting with __ and the normal name is an alias. */
6927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6928 choke me
6929 #else
6930 $ac_func();
6931 #endif
6933 ; return 0; }
6935 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6936 rm -rf conftest*
6937 eval "ac_cv_func_$ac_func=yes"
6938 else
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6941 rm -rf conftest*
6942 eval "ac_cv_func_$ac_func=no"
6944 rm -f conftest*
6947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6950 cat >> confdefs.h <<EOF
6951 #define $ac_tr_func 1
6954 else
6955 echo "$ac_t""no" 1>&6
6957 done
6959 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6960 echo "configure:6961: checking for set_auth_parameters in -lsec" >&5
6961 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6964 else
6965 ac_save_LIBS="$LIBS"
6966 LIBS="-lsec $LIBS"
6967 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6970 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6973 char set_auth_parameters();
6975 int main() {
6976 set_auth_parameters()
6977 ; return 0; }
6979 if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980 rm -rf conftest*
6981 eval "ac_cv_lib_$ac_lib_var=yes"
6982 else
6983 echo "configure: failed program was:" >&5
6984 cat conftest.$ac_ext >&5
6985 rm -rf conftest*
6986 eval "ac_cv_lib_$ac_lib_var=no"
6988 rm -f conftest*
6989 LIBS="$ac_save_LIBS"
6992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6995 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6996 cat >> confdefs.h <<EOF
6997 #define $ac_tr_lib 1
7000 LIBS="-lsec $LIBS"
7002 else
7003 echo "$ac_t""no" 1>&6
7006 for ac_func in set_auth_parameters
7008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7009 echo "configure:7010: checking for $ac_func" >&5
7010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7012 else
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* System header to define __stub macros and hopefully few prototypes,
7017 which can conflict with char $ac_func(); below. */
7018 #include <assert.h>
7019 /* Override any gcc2 internal prototype to avoid an error. */
7020 /* We use char because int might match the return type of a gcc2
7021 builtin and then its argument prototype would still apply. */
7022 char $ac_func();
7024 int main() {
7026 /* The GNU C library defines this for functions which it implements
7027 to always fail with ENOSYS. Some functions are actually named
7028 something starting with __ and the normal name is an alias. */
7029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7030 choke me
7031 #else
7032 $ac_func();
7033 #endif
7035 ; return 0; }
7037 if { (eval echo configure:7038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7038 rm -rf conftest*
7039 eval "ac_cv_func_$ac_func=yes"
7040 else
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7043 rm -rf conftest*
7044 eval "ac_cv_func_$ac_func=no"
7046 rm -f conftest*
7049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7050 echo "$ac_t""yes" 1>&6
7051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7052 cat >> confdefs.h <<EOF
7053 #define $ac_tr_func 1
7056 else
7057 echo "$ac_t""no" 1>&6
7059 done
7062 esac
7065 # UnixWare 7.x has its getspnam in -lgen
7066 case "$LIBS" in
7067 *-lgen*) for ac_func in getspnam
7069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7070 echo "configure:7071: checking for $ac_func" >&5
7071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7073 else
7074 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 /* System header to define __stub macros and hopefully few prototypes,
7078 which can conflict with char $ac_func(); below. */
7079 #include <assert.h>
7080 /* Override any gcc2 internal prototype to avoid an error. */
7081 /* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7083 char $ac_func();
7085 int main() {
7087 /* The GNU C library defines this for functions which it implements
7088 to always fail with ENOSYS. Some functions are actually named
7089 something starting with __ and the normal name is an alias. */
7090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 choke me
7092 #else
7093 $ac_func();
7094 #endif
7096 ; return 0; }
7098 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7099 rm -rf conftest*
7100 eval "ac_cv_func_$ac_func=yes"
7101 else
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7104 rm -rf conftest*
7105 eval "ac_cv_func_$ac_func=no"
7107 rm -f conftest*
7110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7111 echo "$ac_t""yes" 1>&6
7112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7113 cat >> confdefs.h <<EOF
7114 #define $ac_tr_func 1
7117 else
7118 echo "$ac_t""no" 1>&6
7120 done
7122 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7123 echo "configure:7124: checking for getspnam in -lgen" >&5
7124 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7127 else
7128 ac_save_LIBS="$LIBS"
7129 LIBS="-lgen $LIBS"
7130 cat > conftest.$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7133 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7136 char getspnam();
7138 int main() {
7139 getspnam()
7140 ; return 0; }
7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7143 rm -rf conftest*
7144 eval "ac_cv_lib_$ac_lib_var=yes"
7145 else
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 rm -rf conftest*
7149 eval "ac_cv_lib_$ac_lib_var=no"
7151 rm -f conftest*
7152 LIBS="$ac_save_LIBS"
7155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7156 echo "$ac_t""yes" 1>&6
7157 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7158 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7159 cat >> confdefs.h <<EOF
7160 #define $ac_tr_lib 1
7163 LIBS="-lgen $LIBS"
7165 else
7166 echo "$ac_t""no" 1>&6
7169 for ac_func in getspnam
7171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7172 echo "configure:7173: checking for $ac_func" >&5
7173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7175 else
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 /* System header to define __stub macros and hopefully few prototypes,
7180 which can conflict with char $ac_func(); below. */
7181 #include <assert.h>
7182 /* Override any gcc2 internal prototype to avoid an error. */
7183 /* We use char because int might match the return type of a gcc2
7184 builtin and then its argument prototype would still apply. */
7185 char $ac_func();
7187 int main() {
7189 /* The GNU C library defines this for functions which it implements
7190 to always fail with ENOSYS. Some functions are actually named
7191 something starting with __ and the normal name is an alias. */
7192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7193 choke me
7194 #else
7195 $ac_func();
7196 #endif
7198 ; return 0; }
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7201 rm -rf conftest*
7202 eval "ac_cv_func_$ac_func=yes"
7203 else
7204 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7206 rm -rf conftest*
7207 eval "ac_cv_func_$ac_func=no"
7209 rm -f conftest*
7212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7215 cat >> confdefs.h <<EOF
7216 #define $ac_tr_func 1
7219 else
7220 echo "$ac_t""no" 1>&6
7222 done
7225 esac
7228 case "$LIBS" in
7229 *-lsecurity*) for ac_func in getspnam
7231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_func" >&5
7233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7235 else
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* System header to define __stub macros and hopefully few prototypes,
7240 which can conflict with char $ac_func(); below. */
7241 #include <assert.h>
7242 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7245 char $ac_func();
7247 int main() {
7249 /* The GNU C library defines this for functions which it implements
7250 to always fail with ENOSYS. Some functions are actually named
7251 something starting with __ and the normal name is an alias. */
7252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7253 choke me
7254 #else
7255 $ac_func();
7256 #endif
7258 ; return 0; }
7260 if { (eval echo configure:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7261 rm -rf conftest*
7262 eval "ac_cv_func_$ac_func=yes"
7263 else
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7266 rm -rf conftest*
7267 eval "ac_cv_func_$ac_func=no"
7269 rm -f conftest*
7272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7275 cat >> confdefs.h <<EOF
7276 #define $ac_tr_func 1
7279 else
7280 echo "$ac_t""no" 1>&6
7282 done
7284 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7285 echo "configure:7286: checking for getspnam in -lsecurity" >&5
7286 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7289 else
7290 ac_save_LIBS="$LIBS"
7291 LIBS="-lsecurity $LIBS"
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7298 char getspnam();
7300 int main() {
7301 getspnam()
7302 ; return 0; }
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7305 rm -rf conftest*
7306 eval "ac_cv_lib_$ac_lib_var=yes"
7307 else
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 rm -rf conftest*
7311 eval "ac_cv_lib_$ac_lib_var=no"
7313 rm -f conftest*
7314 LIBS="$ac_save_LIBS"
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7319 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7321 cat >> confdefs.h <<EOF
7322 #define $ac_tr_lib 1
7325 LIBS="-lsecurity $LIBS"
7327 else
7328 echo "$ac_t""no" 1>&6
7331 for ac_func in getspnam
7333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7334 echo "configure:7335: checking for $ac_func" >&5
7335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7337 else
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7341 /* System header to define __stub macros and hopefully few prototypes,
7342 which can conflict with char $ac_func(); below. */
7343 #include <assert.h>
7344 /* Override any gcc2 internal prototype to avoid an error. */
7345 /* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7347 char $ac_func();
7349 int main() {
7351 /* The GNU C library defines this for functions which it implements
7352 to always fail with ENOSYS. Some functions are actually named
7353 something starting with __ and the normal name is an alias. */
7354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7355 choke me
7356 #else
7357 $ac_func();
7358 #endif
7360 ; return 0; }
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363 rm -rf conftest*
7364 eval "ac_cv_func_$ac_func=yes"
7365 else
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 rm -rf conftest*
7369 eval "ac_cv_func_$ac_func=no"
7371 rm -f conftest*
7374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377 cat >> confdefs.h <<EOF
7378 #define $ac_tr_func 1
7381 else
7382 echo "$ac_t""no" 1>&6
7384 done
7387 esac
7389 case "$LIBS" in
7390 *-lsec*) for ac_func in getspnam
7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_func" >&5
7394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7396 else
7397 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char $ac_func(); below. */
7402 #include <assert.h>
7403 /* Override any gcc2 internal prototype to avoid an error. */
7404 /* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7406 char $ac_func();
7408 int main() {
7410 /* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7414 choke me
7415 #else
7416 $ac_func();
7417 #endif
7419 ; return 0; }
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 rm -rf conftest*
7423 eval "ac_cv_func_$ac_func=yes"
7424 else
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7427 rm -rf conftest*
7428 eval "ac_cv_func_$ac_func=no"
7430 rm -f conftest*
7433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7434 echo "$ac_t""yes" 1>&6
7435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7436 cat >> confdefs.h <<EOF
7437 #define $ac_tr_func 1
7440 else
7441 echo "$ac_t""no" 1>&6
7443 done
7445 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7446 echo "configure:7447: checking for getspnam in -lsec" >&5
7447 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7450 else
7451 ac_save_LIBS="$LIBS"
7452 LIBS="-lsec $LIBS"
7453 cat > conftest.$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 /* Override any gcc2 internal prototype to avoid an error. */
7457 /* We use char because int might match the return type of a gcc2
7458 builtin and then its argument prototype would still apply. */
7459 char getspnam();
7461 int main() {
7462 getspnam()
7463 ; return 0; }
7465 if { (eval echo configure:7466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7466 rm -rf conftest*
7467 eval "ac_cv_lib_$ac_lib_var=yes"
7468 else
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7471 rm -rf conftest*
7472 eval "ac_cv_lib_$ac_lib_var=no"
7474 rm -f conftest*
7475 LIBS="$ac_save_LIBS"
7478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7479 echo "$ac_t""yes" 1>&6
7480 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7482 cat >> confdefs.h <<EOF
7483 #define $ac_tr_lib 1
7486 LIBS="-lsec $LIBS"
7488 else
7489 echo "$ac_t""no" 1>&6
7492 for ac_func in getspnam
7494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7495 echo "configure:7496: checking for $ac_func" >&5
7496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7498 else
7499 cat > conftest.$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 /* System header to define __stub macros and hopefully few prototypes,
7503 which can conflict with char $ac_func(); below. */
7504 #include <assert.h>
7505 /* Override any gcc2 internal prototype to avoid an error. */
7506 /* We use char because int might match the return type of a gcc2
7507 builtin and then its argument prototype would still apply. */
7508 char $ac_func();
7510 int main() {
7512 /* The GNU C library defines this for functions which it implements
7513 to always fail with ENOSYS. Some functions are actually named
7514 something starting with __ and the normal name is an alias. */
7515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7516 choke me
7517 #else
7518 $ac_func();
7519 #endif
7521 ; return 0; }
7523 if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7524 rm -rf conftest*
7525 eval "ac_cv_func_$ac_func=yes"
7526 else
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 rm -rf conftest*
7530 eval "ac_cv_func_$ac_func=no"
7532 rm -f conftest*
7535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7536 echo "$ac_t""yes" 1>&6
7537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7538 cat >> confdefs.h <<EOF
7539 #define $ac_tr_func 1
7542 else
7543 echo "$ac_t""no" 1>&6
7545 done
7548 esac
7551 case "$LIBS" in
7552 *-lsecurity*) for ac_func in bigcrypt
7554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7555 echo "configure:7556: checking for $ac_func" >&5
7556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7558 else
7559 cat > conftest.$ac_ext <<EOF
7560 #line 7561 "configure"
7561 #include "confdefs.h"
7562 /* System header to define __stub macros and hopefully few prototypes,
7563 which can conflict with char $ac_func(); below. */
7564 #include <assert.h>
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 /* We use char because int might match the return type of a gcc2
7567 builtin and then its argument prototype would still apply. */
7568 char $ac_func();
7570 int main() {
7572 /* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7576 choke me
7577 #else
7578 $ac_func();
7579 #endif
7581 ; return 0; }
7583 if { (eval echo configure:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7584 rm -rf conftest*
7585 eval "ac_cv_func_$ac_func=yes"
7586 else
7587 echo "configure: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7589 rm -rf conftest*
7590 eval "ac_cv_func_$ac_func=no"
7592 rm -f conftest*
7595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7598 cat >> confdefs.h <<EOF
7599 #define $ac_tr_func 1
7602 else
7603 echo "$ac_t""no" 1>&6
7605 done
7607 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7608 echo "configure:7609: checking for bigcrypt in -lsecurity" >&5
7609 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613 ac_save_LIBS="$LIBS"
7614 LIBS="-lsecurity $LIBS"
7615 cat > conftest.$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7618 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7621 char bigcrypt();
7623 int main() {
7624 bigcrypt()
7625 ; return 0; }
7627 if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7628 rm -rf conftest*
7629 eval "ac_cv_lib_$ac_lib_var=yes"
7630 else
7631 echo "configure: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7633 rm -rf conftest*
7634 eval "ac_cv_lib_$ac_lib_var=no"
7636 rm -f conftest*
7637 LIBS="$ac_save_LIBS"
7640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7641 echo "$ac_t""yes" 1>&6
7642 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7644 cat >> confdefs.h <<EOF
7645 #define $ac_tr_lib 1
7648 LIBS="-lsecurity $LIBS"
7650 else
7651 echo "$ac_t""no" 1>&6
7654 for ac_func in bigcrypt
7656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7657 echo "configure:7658: checking for $ac_func" >&5
7658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7660 else
7661 cat > conftest.$ac_ext <<EOF
7662 #line 7663 "configure"
7663 #include "confdefs.h"
7664 /* System header to define __stub macros and hopefully few prototypes,
7665 which can conflict with char $ac_func(); below. */
7666 #include <assert.h>
7667 /* Override any gcc2 internal prototype to avoid an error. */
7668 /* We use char because int might match the return type of a gcc2
7669 builtin and then its argument prototype would still apply. */
7670 char $ac_func();
7672 int main() {
7674 /* The GNU C library defines this for functions which it implements
7675 to always fail with ENOSYS. Some functions are actually named
7676 something starting with __ and the normal name is an alias. */
7677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7678 choke me
7679 #else
7680 $ac_func();
7681 #endif
7683 ; return 0; }
7685 if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7686 rm -rf conftest*
7687 eval "ac_cv_func_$ac_func=yes"
7688 else
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7691 rm -rf conftest*
7692 eval "ac_cv_func_$ac_func=no"
7694 rm -f conftest*
7697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7698 echo "$ac_t""yes" 1>&6
7699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7700 cat >> confdefs.h <<EOF
7701 #define $ac_tr_func 1
7704 else
7705 echo "$ac_t""no" 1>&6
7707 done
7710 esac
7712 case "$LIBS" in
7713 *-lsec*) for ac_func in bigcrypt
7715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7716 echo "configure:7717: checking for $ac_func" >&5
7717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7719 else
7720 cat > conftest.$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 /* System header to define __stub macros and hopefully few prototypes,
7724 which can conflict with char $ac_func(); below. */
7725 #include <assert.h>
7726 /* Override any gcc2 internal prototype to avoid an error. */
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7729 char $ac_func();
7731 int main() {
7733 /* The GNU C library defines this for functions which it implements
7734 to always fail with ENOSYS. Some functions are actually named
7735 something starting with __ and the normal name is an alias. */
7736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7737 choke me
7738 #else
7739 $ac_func();
7740 #endif
7742 ; return 0; }
7744 if { (eval echo configure:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7745 rm -rf conftest*
7746 eval "ac_cv_func_$ac_func=yes"
7747 else
7748 echo "configure: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7750 rm -rf conftest*
7751 eval "ac_cv_func_$ac_func=no"
7753 rm -f conftest*
7756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7757 echo "$ac_t""yes" 1>&6
7758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7759 cat >> confdefs.h <<EOF
7760 #define $ac_tr_func 1
7763 else
7764 echo "$ac_t""no" 1>&6
7766 done
7768 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7769 echo "configure:7770: checking for bigcrypt in -lsec" >&5
7770 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7772 echo $ac_n "(cached) $ac_c" 1>&6
7773 else
7774 ac_save_LIBS="$LIBS"
7775 LIBS="-lsec $LIBS"
7776 cat > conftest.$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7779 /* Override any gcc2 internal prototype to avoid an error. */
7780 /* We use char because int might match the return type of a gcc2
7781 builtin and then its argument prototype would still apply. */
7782 char bigcrypt();
7784 int main() {
7785 bigcrypt()
7786 ; return 0; }
7788 if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7789 rm -rf conftest*
7790 eval "ac_cv_lib_$ac_lib_var=yes"
7791 else
7792 echo "configure: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7794 rm -rf conftest*
7795 eval "ac_cv_lib_$ac_lib_var=no"
7797 rm -f conftest*
7798 LIBS="$ac_save_LIBS"
7801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7802 echo "$ac_t""yes" 1>&6
7803 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7805 cat >> confdefs.h <<EOF
7806 #define $ac_tr_lib 1
7809 LIBS="-lsec $LIBS"
7811 else
7812 echo "$ac_t""no" 1>&6
7815 for ac_func in bigcrypt
7817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7818 echo "configure:7819: checking for $ac_func" >&5
7819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7821 else
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* System header to define __stub macros and hopefully few prototypes,
7826 which can conflict with char $ac_func(); below. */
7827 #include <assert.h>
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 /* We use char because int might match the return type of a gcc2
7830 builtin and then its argument prototype would still apply. */
7831 char $ac_func();
7833 int main() {
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7839 choke me
7840 #else
7841 $ac_func();
7842 #endif
7844 ; return 0; }
7846 if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7847 rm -rf conftest*
7848 eval "ac_cv_func_$ac_func=yes"
7849 else
7850 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7852 rm -rf conftest*
7853 eval "ac_cv_func_$ac_func=no"
7855 rm -f conftest*
7858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7861 cat >> confdefs.h <<EOF
7862 #define $ac_tr_func 1
7865 else
7866 echo "$ac_t""no" 1>&6
7868 done
7871 esac
7874 case "$LIBS" in
7875 *-lsecurity*) for ac_func in getprpwnam
7877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7878 echo "configure:7879: checking for $ac_func" >&5
7879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7881 else
7882 cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7885 /* System header to define __stub macros and hopefully few prototypes,
7886 which can conflict with char $ac_func(); below. */
7887 #include <assert.h>
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891 char $ac_func();
7893 int main() {
7895 /* The GNU C library defines this for functions which it implements
7896 to always fail with ENOSYS. Some functions are actually named
7897 something starting with __ and the normal name is an alias. */
7898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7899 choke me
7900 #else
7901 $ac_func();
7902 #endif
7904 ; return 0; }
7906 if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7907 rm -rf conftest*
7908 eval "ac_cv_func_$ac_func=yes"
7909 else
7910 echo "configure: failed program was:" >&5
7911 cat conftest.$ac_ext >&5
7912 rm -rf conftest*
7913 eval "ac_cv_func_$ac_func=no"
7915 rm -f conftest*
7918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7921 cat >> confdefs.h <<EOF
7922 #define $ac_tr_func 1
7925 else
7926 echo "$ac_t""no" 1>&6
7928 done
7930 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7931 echo "configure:7932: checking for getprpwnam in -lsecurity" >&5
7932 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7935 else
7936 ac_save_LIBS="$LIBS"
7937 LIBS="-lsecurity $LIBS"
7938 cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 /* Override any gcc2 internal prototype to avoid an error. */
7942 /* We use char because int might match the return type of a gcc2
7943 builtin and then its argument prototype would still apply. */
7944 char getprpwnam();
7946 int main() {
7947 getprpwnam()
7948 ; return 0; }
7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7951 rm -rf conftest*
7952 eval "ac_cv_lib_$ac_lib_var=yes"
7953 else
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7956 rm -rf conftest*
7957 eval "ac_cv_lib_$ac_lib_var=no"
7959 rm -f conftest*
7960 LIBS="$ac_save_LIBS"
7963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7964 echo "$ac_t""yes" 1>&6
7965 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7967 cat >> confdefs.h <<EOF
7968 #define $ac_tr_lib 1
7971 LIBS="-lsecurity $LIBS"
7973 else
7974 echo "$ac_t""no" 1>&6
7977 for ac_func in getprpwnam
7979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7980 echo "configure:7981: checking for $ac_func" >&5
7981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7983 else
7984 cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 /* System header to define __stub macros and hopefully few prototypes,
7988 which can conflict with char $ac_func(); below. */
7989 #include <assert.h>
7990 /* Override any gcc2 internal prototype to avoid an error. */
7991 /* We use char because int might match the return type of a gcc2
7992 builtin and then its argument prototype would still apply. */
7993 char $ac_func();
7995 int main() {
7997 /* The GNU C library defines this for functions which it implements
7998 to always fail with ENOSYS. Some functions are actually named
7999 something starting with __ and the normal name is an alias. */
8000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8001 choke me
8002 #else
8003 $ac_func();
8004 #endif
8006 ; return 0; }
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8009 rm -rf conftest*
8010 eval "ac_cv_func_$ac_func=yes"
8011 else
8012 echo "configure: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8014 rm -rf conftest*
8015 eval "ac_cv_func_$ac_func=no"
8017 rm -f conftest*
8020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8021 echo "$ac_t""yes" 1>&6
8022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8023 cat >> confdefs.h <<EOF
8024 #define $ac_tr_func 1
8027 else
8028 echo "$ac_t""no" 1>&6
8030 done
8033 esac
8035 case "$LIBS" in
8036 *-lsec*) for ac_func in getprpwnam
8038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8039 echo "configure:8040: checking for $ac_func" >&5
8040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8042 else
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* System header to define __stub macros and hopefully few prototypes,
8047 which can conflict with char $ac_func(); below. */
8048 #include <assert.h>
8049 /* Override any gcc2 internal prototype to avoid an error. */
8050 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8052 char $ac_func();
8054 int main() {
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8060 choke me
8061 #else
8062 $ac_func();
8063 #endif
8065 ; return 0; }
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 rm -rf conftest*
8069 eval "ac_cv_func_$ac_func=yes"
8070 else
8071 echo "configure: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8073 rm -rf conftest*
8074 eval "ac_cv_func_$ac_func=no"
8076 rm -f conftest*
8079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8082 cat >> confdefs.h <<EOF
8083 #define $ac_tr_func 1
8086 else
8087 echo "$ac_t""no" 1>&6
8089 done
8091 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8092 echo "configure:8093: checking for getprpwnam in -lsec" >&5
8093 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8096 else
8097 ac_save_LIBS="$LIBS"
8098 LIBS="-lsec $LIBS"
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* Override any gcc2 internal prototype to avoid an error. */
8103 /* We use char because int might match the return type of a gcc2
8104 builtin and then its argument prototype would still apply. */
8105 char getprpwnam();
8107 int main() {
8108 getprpwnam()
8109 ; return 0; }
8111 if { (eval echo configure:8112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8112 rm -rf conftest*
8113 eval "ac_cv_lib_$ac_lib_var=yes"
8114 else
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8117 rm -rf conftest*
8118 eval "ac_cv_lib_$ac_lib_var=no"
8120 rm -f conftest*
8121 LIBS="$ac_save_LIBS"
8124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8125 echo "$ac_t""yes" 1>&6
8126 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8128 cat >> confdefs.h <<EOF
8129 #define $ac_tr_lib 1
8132 LIBS="-lsec $LIBS"
8134 else
8135 echo "$ac_t""no" 1>&6
8138 for ac_func in getprpwnam
8140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8141 echo "configure:8142: checking for $ac_func" >&5
8142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8144 else
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* System header to define __stub macros and hopefully few prototypes,
8149 which can conflict with char $ac_func(); below. */
8150 #include <assert.h>
8151 /* Override any gcc2 internal prototype to avoid an error. */
8152 /* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8154 char $ac_func();
8156 int main() {
8158 /* The GNU C library defines this for functions which it implements
8159 to always fail with ENOSYS. Some functions are actually named
8160 something starting with __ and the normal name is an alias. */
8161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8162 choke me
8163 #else
8164 $ac_func();
8165 #endif
8167 ; return 0; }
8169 if { (eval echo configure:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8170 rm -rf conftest*
8171 eval "ac_cv_func_$ac_func=yes"
8172 else
8173 echo "configure: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 rm -rf conftest*
8176 eval "ac_cv_func_$ac_func=no"
8178 rm -f conftest*
8181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8182 echo "$ac_t""yes" 1>&6
8183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8184 cat >> confdefs.h <<EOF
8185 #define $ac_tr_func 1
8188 else
8189 echo "$ac_t""no" 1>&6
8191 done
8194 esac
8197 # this bit needs to be modified for each OS that is suported by
8198 # smbwrapper. You need to specify how to created a shared library and
8199 # how to compile C code to produce PIC object files
8201 # these are the defaults, good for lots of systems
8202 HOST_OS="$host_os"
8203 LDSHFLAGS="-shared"
8204 PICFLAG=""
8205 SHLIBEXT="so"
8207 # and these are for particular systems
8208 case "$host_os" in
8209 *linux*) cat >> confdefs.h <<\EOF
8210 #define LINUX 1
8213 *solaris*) cat >> confdefs.h <<\EOF
8214 #define SUNOS5 1
8217 LDSHFLAGS="-G"
8219 *sunos*) cat >> confdefs.h <<\EOF
8220 #define SUNOS4 1
8223 LDSHFLAGS=""
8225 *bsd*) LDSHFLAGS="-shared -Bshareable"
8227 *irix*) cat >> confdefs.h <<\EOF
8228 #define IRIX 1
8231 case "$host_os" in
8232 *irix6*) cat >> confdefs.h <<\EOF
8233 #define IRIX6 1
8237 esac
8238 ATTEMPT_WRAP32_BUILD=yes
8240 *aix*) cat >> confdefs.h <<\EOF
8241 #define AIX 1
8244 *hpux*) cat >> confdefs.h <<\EOF
8245 #define HPUX 1
8248 SHLIBEXT="sl"
8249 # Use special PIC flags for the native HP-UX compiler.
8250 if test $ac_cv_prog_cc_Ae = yes; then
8251 LDSHFLAGS="-b"
8252 PICFLAG="+z"
8255 *qnx*) cat >> confdefs.h <<\EOF
8256 #define QNX 1
8259 *osf*) cat >> confdefs.h <<\EOF
8260 #define OSF1 1
8263 *sco*) cat >> confdefs.h <<\EOF
8264 #define SCO 1
8267 *next2*) cat >> confdefs.h <<\EOF
8268 #define NEXT2 1
8271 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8272 set dummy groff; ac_word=$2
8273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8274 echo "configure:8275: checking for $ac_word" >&5
8275 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8277 else
8278 if test -n "$ROFF"; then
8279 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8280 else
8281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8282 ac_dummy="$PATH"
8283 for ac_dir in $ac_dummy; do
8284 test -z "$ac_dir" && ac_dir=.
8285 if test -f $ac_dir/$ac_word; then
8286 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8287 break
8289 done
8290 IFS="$ac_save_ifs"
8293 ROFF="$ac_cv_prog_ROFF"
8294 if test -n "$ROFF"; then
8295 echo "$ac_t""$ROFF" 1>&6
8296 else
8297 echo "$ac_t""no" 1>&6
8300 *sysv4*)
8301 case "$host" in
8302 *-univel-*) if test "$GCC" != yes ; then
8303 cat >> confdefs.h <<\EOF
8304 #define HAVE_MEMSET 1
8308 LDSHFLAGS="-G"
8310 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8311 #define RELIANTUNIX 1
8314 esac
8316 *sysv5*)
8317 if test "$GCC" != yes ; then
8318 cat >> confdefs.h <<\EOF
8319 #define HAVE_MEMSET 1
8323 LDSHFLAGS="-G"
8325 esac
8327 # try to work out how to produce pic code with this compiler
8328 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8329 echo "configure:8330: checking whether ${CC-cc} accepts -fpic" >&5
8330 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8332 else
8333 echo 'void f(){}' > conftest.c
8334 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8335 ac_cv_prog_cc_fpic=yes
8336 else
8337 ac_cv_prog_cc_fpic=no
8339 rm -f conftest*
8343 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8344 if test $ac_cv_prog_cc_fpic = yes; then
8345 PICFLAG="-fpic";
8347 if test x$PICFLAG = x; then
8348 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8349 echo "configure:8350: checking whether ${CC-cc} accepts -Kpic" >&5
8350 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8352 else
8353 echo 'void f(){}' > conftest.c
8354 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8355 ac_cv_prog_cc_Kpic=yes
8356 else
8357 ac_cv_prog_cc_Kpic=no
8359 rm -f conftest*
8363 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8364 if test $ac_cv_prog_cc_Kpic = yes; then
8365 PICFLAG="-Kpic";
8368 if test x$PICFLAG = x; then
8369 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8370 echo "configure:8371: checking whether ${CC-cc} accepts -KPIC" >&5
8371 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8373 else
8374 echo 'void f(){}' > conftest.c
8375 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8376 ac_cv_prog_cc_KPIC=yes
8377 else
8378 ac_cv_prog_cc_KPIC=no
8380 rm -f conftest*
8384 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8385 if test $ac_cv_prog_cc_KPIC = yes; then
8386 PICFLAG="-KPIC";
8390 ################
8392 echo $ac_n "checking for long long""... $ac_c" 1>&6
8393 echo "configure:8394: checking for long long" >&5
8394 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8395 echo $ac_n "(cached) $ac_c" 1>&6
8396 else
8398 if test "$cross_compiling" = yes; then
8399 samba_cv_have_longlong=cross
8400 else
8401 cat > conftest.$ac_ext <<EOF
8402 #line 8403 "configure"
8403 #include "confdefs.h"
8404 #include <stdio.h>
8405 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8407 if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8408 then
8409 samba_cv_have_longlong=yes
8410 else
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8413 rm -fr conftest*
8414 samba_cv_have_longlong=no
8416 rm -fr conftest*
8421 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8422 if test x"$samba_cv_have_longlong" = x"yes"; then
8423 cat >> confdefs.h <<\EOF
8424 #define HAVE_LONGLONG 1
8430 # Check if the compiler supports the LL prefix on long long integers.
8431 # AIX needs this.
8433 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8434 echo "configure:8435: checking for LL suffix on long long integers" >&5
8435 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8436 echo $ac_n "(cached) $ac_c" 1>&6
8437 else
8439 cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 #include <stdio.h>
8443 int main() {
8444 long long i = 0x8000000000LL
8445 ; return 0; }
8447 if { (eval echo configure:8448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8448 rm -rf conftest*
8449 samba_cv_compiler_supports_ll=yes
8450 else
8451 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8453 rm -rf conftest*
8454 samba_cv_compiler_supports_ll=no
8456 rm -f conftest*
8459 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8460 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8461 cat >> confdefs.h <<\EOF
8462 #define COMPILER_SUPPORTS_LL 1
8468 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8469 echo "configure:8470: checking for 64 bit off_t" >&5
8470 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8472 else
8474 if test "$cross_compiling" = yes; then
8475 samba_cv_SIZEOF_OFF_T=cross
8476 else
8477 cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 #include <stdio.h>
8481 #include <sys/stat.h>
8482 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8484 if { (eval echo configure:8485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8485 then
8486 samba_cv_SIZEOF_OFF_T=yes
8487 else
8488 echo "configure: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8490 rm -fr conftest*
8491 samba_cv_SIZEOF_OFF_T=no
8493 rm -fr conftest*
8498 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8499 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8500 cat >> confdefs.h <<\EOF
8501 #define SIZEOF_OFF_T 8
8506 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8507 echo "configure:8508: checking for off64_t" >&5
8508 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
8510 else
8512 if test "$cross_compiling" = yes; then
8513 samba_cv_HAVE_OFF64_T=cross
8514 else
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8519 #if defined(HAVE_UNISTD_H)
8520 #include <unistd.h>
8521 #endif
8522 #include <stdio.h>
8523 #include <sys/stat.h>
8524 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8526 if { (eval echo configure:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8527 then
8528 samba_cv_HAVE_OFF64_T=yes
8529 else
8530 echo "configure: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8532 rm -fr conftest*
8533 samba_cv_HAVE_OFF64_T=no
8535 rm -fr conftest*
8540 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8541 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8542 cat >> confdefs.h <<\EOF
8543 #define HAVE_OFF64_T 1
8548 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8549 echo "configure:8550: checking for 64 bit ino_t" >&5
8550 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8551 echo $ac_n "(cached) $ac_c" 1>&6
8552 else
8554 if test "$cross_compiling" = yes; then
8555 samba_cv_SIZEOF_INO_T=cross
8556 else
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8560 #include <stdio.h>
8561 #include <sys/stat.h>
8562 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8564 if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8565 then
8566 samba_cv_SIZEOF_INO_T=yes
8567 else
8568 echo "configure: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8570 rm -fr conftest*
8571 samba_cv_SIZEOF_INO_T=no
8573 rm -fr conftest*
8578 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8579 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8580 cat >> confdefs.h <<\EOF
8581 #define SIZEOF_INO_T 8
8586 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8587 echo "configure:8588: checking for ino64_t" >&5
8588 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8590 else
8592 if test "$cross_compiling" = yes; then
8593 samba_cv_HAVE_INO64_T=cross
8594 else
8595 cat > conftest.$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8599 #if defined(HAVE_UNISTD_H)
8600 #include <unistd.h>
8601 #endif
8602 #include <stdio.h>
8603 #include <sys/stat.h>
8604 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8607 then
8608 samba_cv_HAVE_INO64_T=yes
8609 else
8610 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5
8612 rm -fr conftest*
8613 samba_cv_HAVE_INO64_T=no
8615 rm -fr conftest*
8620 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8621 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8622 cat >> confdefs.h <<\EOF
8623 #define HAVE_INO64_T 1
8628 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8629 echo "configure:8630: checking for struct dirent64" >&5
8630 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8632 else
8634 cat > conftest.$ac_ext <<EOF
8635 #line 8636 "configure"
8636 #include "confdefs.h"
8638 #if defined(HAVE_UNISTD_H)
8639 #include <unistd.h>
8640 #endif
8641 #include <sys/types.h>
8642 #include <dirent.h>
8643 int main() {
8644 struct dirent64 de;
8645 ; return 0; }
8647 if { (eval echo configure:8648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8648 rm -rf conftest*
8649 samba_cv_HAVE_STRUCT_DIRENT64=yes
8650 else
8651 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8653 rm -rf conftest*
8654 samba_cv_HAVE_STRUCT_DIRENT64=no
8656 rm -f conftest*
8659 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8660 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8661 cat >> confdefs.h <<\EOF
8662 #define HAVE_STRUCT_DIRENT64 1
8667 echo $ac_n "checking for union semun""... $ac_c" 1>&6
8668 echo "configure:8669: checking for union semun" >&5
8669 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8671 else
8673 if test "$cross_compiling" = yes; then
8674 samba_cv_HAVE_UNION_SEMUN=cross
8675 else
8676 cat > conftest.$ac_ext <<EOF
8677 #line 8678 "configure"
8678 #include "confdefs.h"
8680 #include <sys/types.h>
8681 #include <sys/ipc.h>
8682 #include <sys/sem.h>
8683 main() { union semun ss; exit(0); }
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_HAVE_UNION_SEMUN=yes
8688 else
8689 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8691 rm -fr conftest*
8692 samba_cv_HAVE_UNION_SEMUN=no
8694 rm -fr conftest*
8699 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
8700 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
8701 cat >> confdefs.h <<\EOF
8702 #define HAVE_UNION_SEMUN 1
8707 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8708 echo "configure:8709: checking for unsigned char" >&5
8709 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+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_UNSIGNED_CHAR=cross
8715 else
8716 cat > conftest.$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8719 #include <stdio.h>
8720 main() { char c; c=250; exit((c > 0)?0:1); }
8722 if { (eval echo configure:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8723 then
8724 samba_cv_HAVE_UNSIGNED_CHAR=yes
8725 else
8726 echo "configure: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8728 rm -fr conftest*
8729 samba_cv_HAVE_UNSIGNED_CHAR=no
8731 rm -fr conftest*
8736 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8737 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8738 cat >> confdefs.h <<\EOF
8739 #define HAVE_UNSIGNED_CHAR 1
8744 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8745 echo "configure:8746: checking for sin_len in sock" >&5
8746 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8747 echo $ac_n "(cached) $ac_c" 1>&6
8748 else
8750 cat > conftest.$ac_ext <<EOF
8751 #line 8752 "configure"
8752 #include "confdefs.h"
8753 #include <sys/types.h>
8754 #include <sys/socket.h>
8755 #include <netinet/in.h>
8756 int main() {
8757 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8758 ; return 0; }
8760 if { (eval echo configure:8761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8761 rm -rf conftest*
8762 samba_cv_HAVE_SOCK_SIN_LEN=yes
8763 else
8764 echo "configure: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8766 rm -rf conftest*
8767 samba_cv_HAVE_SOCK_SIN_LEN=no
8769 rm -f conftest*
8772 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8773 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8774 cat >> confdefs.h <<\EOF
8775 #define HAVE_SOCK_SIN_LEN 1
8780 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8781 echo "configure:8782: checking whether seekdir returns void" >&5
8782 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8783 echo $ac_n "(cached) $ac_c" 1>&6
8784 else
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 #include <sys/types.h>
8790 #include <dirent.h>
8791 void seekdir(DIR *d, long loc) { return; }
8792 int main() {
8793 return 0;
8794 ; return 0; }
8796 if { (eval echo configure:8797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8797 rm -rf conftest*
8798 samba_cv_SEEKDIR_RETURNS_VOID=yes
8799 else
8800 echo "configure: failed program was:" >&5
8801 cat conftest.$ac_ext >&5
8802 rm -rf conftest*
8803 samba_cv_SEEKDIR_RETURNS_VOID=no
8805 rm -f conftest*
8808 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8809 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8810 cat >> confdefs.h <<\EOF
8811 #define SEEKDIR_RETURNS_VOID 1
8816 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8817 echo "configure:8818: checking for __FILE__ macro" >&5
8818 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8820 else
8822 cat > conftest.$ac_ext <<EOF
8823 #line 8824 "configure"
8824 #include "confdefs.h"
8825 #include <stdio.h>
8826 int main() {
8827 printf("%s\n", __FILE__);
8828 ; return 0; }
8830 if { (eval echo configure:8831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8831 rm -rf conftest*
8832 samba_cv_HAVE_FILE_MACRO=yes
8833 else
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8836 rm -rf conftest*
8837 samba_cv_HAVE_FILE_MACRO=no
8839 rm -f conftest*
8842 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8843 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8844 cat >> confdefs.h <<\EOF
8845 #define HAVE_FILE_MACRO 1
8850 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8851 echo "configure:8852: checking for __FUNCTION__ macro" >&5
8852 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8854 else
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 #include <stdio.h>
8860 int main() {
8861 printf("%s\n", __FUNCTION__);
8862 ; return 0; }
8864 if { (eval echo configure:8865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8865 rm -rf conftest*
8866 samba_cv_HAVE_FUNCTION_MACRO=yes
8867 else
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 rm -rf conftest*
8871 samba_cv_HAVE_FUNCTION_MACRO=no
8873 rm -f conftest*
8876 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8877 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8878 cat >> confdefs.h <<\EOF
8879 #define HAVE_FUNCTION_MACRO 1
8884 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8885 echo "configure:8886: checking if gettimeofday takes tz argument" >&5
8886 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8887 echo $ac_n "(cached) $ac_c" 1>&6
8888 else
8890 if test "$cross_compiling" = yes; then
8891 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8892 else
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8897 #include <sys/time.h>
8898 #include <unistd.h>
8899 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8902 then
8903 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8904 else
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8907 rm -fr conftest*
8908 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8910 rm -fr conftest*
8915 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8916 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8917 cat >> confdefs.h <<\EOF
8918 #define HAVE_GETTIMEOFDAY_TZ 1
8924 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8925 echo "configure:8926: checking for broken readdir" >&5
8926 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
8928 else
8930 if test "$cross_compiling" = yes; then
8931 samba_cv_HAVE_BROKEN_READDIR=cross
8932 else
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 #include <sys/types.h>
8937 #include <dirent.h>
8938 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8939 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8940 di->d_name[0] == 0) exit(0); exit(1);}
8942 if { (eval echo configure:8943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8943 then
8944 samba_cv_HAVE_BROKEN_READDIR=yes
8945 else
8946 echo "configure: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8948 rm -fr conftest*
8949 samba_cv_HAVE_BROKEN_READDIR=no
8951 rm -fr conftest*
8956 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8957 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8958 cat >> confdefs.h <<\EOF
8959 #define HAVE_BROKEN_READDIR 1
8964 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8965 echo "configure:8966: checking for utimbuf" >&5
8966 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
8968 else
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8973 #include <sys/types.h>
8974 #include <utime.h>
8975 int main() {
8976 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8977 ; return 0; }
8979 if { (eval echo configure:8980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8980 rm -rf conftest*
8981 samba_cv_HAVE_UTIMBUF=yes
8982 else
8983 echo "configure: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8985 rm -rf conftest*
8986 samba_cv_HAVE_UTIMBUF=no
8988 rm -f conftest*
8991 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8992 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8993 cat >> confdefs.h <<\EOF
8994 #define HAVE_UTIMBUF 1
8999 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9000 echo "configure:9001: checking for ut_syslen in utmpx" >&5
9001 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9002 echo $ac_n "(cached) $ac_c" 1>&6
9003 else
9005 cat > conftest.$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9008 #include <utmpx.h>
9009 int main() {
9010 struct utmpx ux; ux.ut_syslen = 0;
9011 ; return 0; }
9013 if { (eval echo configure:9014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9014 rm -rf conftest*
9015 samba_cv_HAVE_UX_UT_SYSLEN=yes
9016 else
9017 echo "configure: failed program was:" >&5
9018 cat conftest.$ac_ext >&5
9019 rm -rf conftest*
9020 samba_cv_HAVE_UX_UT_SYSLEN=no
9022 rm -f conftest*
9025 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9026 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9027 cat >> confdefs.h <<\EOF
9028 #define HAVE_UX_UT_SYSLEN 1
9033 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9034 echo "configure:9035: checking for Linux kernel oplocks" >&5
9035 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9037 else
9039 if test "$cross_compiling" = yes; then
9040 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9041 else
9042 cat > conftest.$ac_ext <<EOF
9043 #line 9044 "configure"
9044 #include "confdefs.h"
9046 #include <sys/types.h>
9047 #include <fcntl.h>
9048 #ifndef F_GETLEASE
9049 #define F_GETLEASE 1025
9050 #endif
9051 main() {
9052 int fd = open("/dev/null", O_RDONLY);
9053 return fcntl(fd, F_GETLEASE, 0) == -1;
9057 if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9058 then
9059 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9060 else
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 rm -fr conftest*
9064 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9066 rm -fr conftest*
9071 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9072 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9073 cat >> confdefs.h <<\EOF
9074 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9079 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9080 echo "configure:9081: checking for IRIX kernel oplock type definitions" >&5
9081 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9083 else
9085 cat > conftest.$ac_ext <<EOF
9086 #line 9087 "configure"
9087 #include "confdefs.h"
9088 #include <sys/types.h>
9089 #include <fcntl.h>
9090 int main() {
9091 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9092 ; return 0; }
9094 if { (eval echo configure:9095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9095 rm -rf conftest*
9096 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9097 else
9098 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 rm -rf conftest*
9101 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9103 rm -f conftest*
9106 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9107 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9108 cat >> confdefs.h <<\EOF
9109 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9114 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9115 echo "configure:9116: checking for irix specific capabilities" >&5
9116 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9117 echo $ac_n "(cached) $ac_c" 1>&6
9118 else
9120 if test "$cross_compiling" = yes; then
9121 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9122 else
9123 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure"
9125 #include "confdefs.h"
9126 #include <sys/types.h>
9127 #include <sys/capability.h>
9128 main() {
9129 cap_t cap;
9130 if ((cap = cap_get_proc()) == NULL)
9131 exit(1);
9132 cap->cap_effective |= CAP_NETWORK_MGT;
9133 cap->cap_inheritable |= CAP_NETWORK_MGT;
9134 cap_set_proc(cap);
9135 exit(0);
9139 if { (eval echo configure:9140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9140 then
9141 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9142 else
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9145 rm -fr conftest*
9146 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9148 rm -fr conftest*
9153 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9154 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9155 cat >> confdefs.h <<\EOF
9156 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9162 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9163 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9166 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9167 echo "configure:9168: checking for int16 typedef included by rpc/rpc.h" >&5
9168 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9170 else
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9175 #include <sys/types.h>
9176 #if defined(HAVE_RPC_RPC_H)
9177 #include <rpc/rpc.h>
9178 #endif
9179 int main() {
9180 int16 testvar;
9181 ; return 0; }
9183 if { (eval echo configure:9184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9184 rm -rf conftest*
9185 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9186 else
9187 echo "configure: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9189 rm -rf conftest*
9190 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9192 rm -f conftest*
9195 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9196 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9197 cat >> confdefs.h <<\EOF
9198 #define HAVE_INT16_FROM_RPC_RPC_H 1
9203 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9204 echo "configure:9205: checking for uint16 typedef included by rpc/rpc.h" >&5
9205 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9206 echo $ac_n "(cached) $ac_c" 1>&6
9207 else
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9212 #include <sys/types.h>
9213 #if defined(HAVE_RPC_RPC_H)
9214 #include <rpc/rpc.h>
9215 #endif
9216 int main() {
9217 uint16 testvar;
9218 ; return 0; }
9220 if { (eval echo configure:9221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9221 rm -rf conftest*
9222 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9223 else
9224 echo "configure: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9226 rm -rf conftest*
9227 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9229 rm -f conftest*
9232 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9233 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9234 cat >> confdefs.h <<\EOF
9235 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9240 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9241 echo "configure:9242: checking for int32 typedef included by rpc/rpc.h" >&5
9242 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9243 echo $ac_n "(cached) $ac_c" 1>&6
9244 else
9246 cat > conftest.$ac_ext <<EOF
9247 #line 9248 "configure"
9248 #include "confdefs.h"
9249 #include <sys/types.h>
9250 #if defined(HAVE_RPC_RPC_H)
9251 #include <rpc/rpc.h>
9252 #endif
9253 int main() {
9254 int32 testvar;
9255 ; return 0; }
9257 if { (eval echo configure:9258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9258 rm -rf conftest*
9259 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9260 else
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9263 rm -rf conftest*
9264 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9266 rm -f conftest*
9269 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9270 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9271 cat >> confdefs.h <<\EOF
9272 #define HAVE_INT32_FROM_RPC_RPC_H 1
9277 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9278 echo "configure:9279: checking for uint32 typedef included by rpc/rpc.h" >&5
9279 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281 else
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <sys/types.h>
9287 #if defined(HAVE_RPC_RPC_H)
9288 #include <rpc/rpc.h>
9289 #endif
9290 int main() {
9291 uint32 testvar;
9292 ; return 0; }
9294 if { (eval echo configure:9295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9295 rm -rf conftest*
9296 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9297 else
9298 echo "configure: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 rm -rf conftest*
9301 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9303 rm -f conftest*
9306 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9307 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9308 cat >> confdefs.h <<\EOF
9309 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9315 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9316 echo "configure:9317: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9317 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9318 echo $ac_n "(cached) $ac_c" 1>&6
9319 else
9321 cat > conftest.$ac_ext <<EOF
9322 #line 9323 "configure"
9323 #include "confdefs.h"
9324 #include <sys/types.h>
9325 #ifdef HAVE_SYS_SECURITY_H
9326 #include <sys/security.h>
9327 #include <prot.h>
9328 #endif /* HAVE_SYS_SECURITY_H */
9329 #if defined(HAVE_RPC_RPC_H)
9330 #include <rpc/rpc.h>
9331 #endif
9332 int main() {
9333 int testvar;
9334 ; return 0; }
9336 if { (eval echo configure:9337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9337 rm -rf conftest*
9338 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9339 else
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9342 rm -rf conftest*
9343 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9345 rm -f conftest*
9348 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9349 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9350 cat >> confdefs.h <<\EOF
9351 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9356 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9357 echo "configure:9358: checking for test routines" >&5
9358 if test "$cross_compiling" = yes; then
9359 echo "configure: warning: cannot run when cross-compiling" 1>&2
9360 else
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 #include "${srcdir-.}/tests/trivial.c"
9366 if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9367 then
9368 echo "$ac_t""yes" 1>&6
9369 else
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9372 rm -fr conftest*
9373 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9375 rm -fr conftest*
9379 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9380 echo "configure:9381: checking for ftruncate extend" >&5
9381 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9382 echo $ac_n "(cached) $ac_c" 1>&6
9383 else
9385 if test "$cross_compiling" = yes; then
9386 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9387 else
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include "${srcdir-.}/tests/ftruncate.c"
9393 if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9394 then
9395 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9396 else
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -fr conftest*
9400 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9402 rm -fr conftest*
9407 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9408 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9409 cat >> confdefs.h <<\EOF
9410 #define HAVE_FTRUNCATE_EXTEND 1
9415 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9416 echo "configure:9417: checking for broken getgroups" >&5
9417 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9419 else
9421 if test "$cross_compiling" = yes; then
9422 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9423 else
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 #include "${srcdir-.}/tests/getgroups.c"
9429 if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9430 then
9431 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9432 else
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9435 rm -fr conftest*
9436 samba_cv_HAVE_BROKEN_GETGROUPS=no
9438 rm -fr conftest*
9443 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9444 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9445 cat >> confdefs.h <<\EOF
9446 #define HAVE_BROKEN_GETGROUPS 1
9451 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9452 echo "configure:9453: checking whether getpass should be replaced" >&5
9453 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9455 else
9457 SAVE_CPPFLAGS="$CPPFLAGS"
9458 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9463 #define REPLACE_GETPASS 1
9464 #define NO_CONFIG_H 1
9465 #define main dont_declare_main
9466 #include "${srcdir-.}/lib/getsmbpass.c"
9467 #undef main
9469 int main() {
9471 ; return 0; }
9473 if { (eval echo configure:9474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9474 rm -rf conftest*
9475 samba_cv_REPLACE_GETPASS=yes
9476 else
9477 echo "configure: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 rm -rf conftest*
9480 samba_cv_REPLACE_GETPASS=no
9482 rm -f conftest*
9483 CPPFLAGS="$SAVE_CPPFLAGS"
9487 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9488 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9489 cat >> confdefs.h <<\EOF
9490 #define REPLACE_GETPASS 1
9495 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9496 echo "configure:9497: checking for working fnmatch" >&5
9497 if eval "test \"`echo '$''{'samba_cv_HAVE_FNMATCH'+set}'`\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9499 else
9501 if test "$cross_compiling" = yes; then
9502 samba_cv_HAVE_FNMATCH=cross
9503 else
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <fnmatch.h>
9508 main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9511 then
9512 samba_cv_HAVE_FNMATCH=yes
9513 else
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 rm -fr conftest*
9517 samba_cv_HAVE_FNMATCH=no
9519 rm -fr conftest*
9524 echo "$ac_t""$samba_cv_HAVE_FNMATCH" 1>&6
9525 if test x"$samba_cv_HAVE_FNMATCH" = x"yes"; then
9526 cat >> confdefs.h <<\EOF
9527 #define HAVE_FNMATCH 1
9532 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9533 echo "configure:9534: checking for broken inet_ntoa" >&5
9534 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9536 else
9538 if test "$cross_compiling" = yes; then
9539 samba_cv_REPLACE_INET_NTOA=cross
9540 else
9541 cat > conftest.$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9545 #include <stdio.h>
9546 #include <sys/types.h>
9547 #include <netinet/in.h>
9548 #ifdef HAVE_ARPA_INET_H
9549 #include <arpa/inet.h>
9550 #endif
9551 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9552 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9553 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9554 exit(1);}
9556 if { (eval echo configure:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9557 then
9558 samba_cv_REPLACE_INET_NTOA=yes
9559 else
9560 echo "configure: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9562 rm -fr conftest*
9563 samba_cv_REPLACE_INET_NTOA=no
9565 rm -fr conftest*
9570 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9571 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9572 cat >> confdefs.h <<\EOF
9573 #define REPLACE_INET_NTOA 1
9578 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9579 echo "configure:9580: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9580 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9582 else
9584 if test "$cross_compiling" = yes; then
9585 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9586 else
9587 cat > conftest.$ac_ext <<EOF
9588 #line 9589 "configure"
9589 #include "confdefs.h"
9590 #include <unistd.h>
9591 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9593 if { (eval echo configure:9594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9594 then
9595 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9596 else
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9599 rm -fr conftest*
9600 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9602 rm -fr conftest*
9607 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9608 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9609 cat >> confdefs.h <<\EOF
9610 #define SYSCONF_SC_NGROUPS_MAX 1
9615 echo $ac_n "checking for root""... $ac_c" 1>&6
9616 echo "configure:9617: checking for root" >&5
9617 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9619 else
9621 if test "$cross_compiling" = yes; then
9622 samba_cv_HAVE_ROOT=cross
9623 else
9624 cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 main() { exit(getuid() != 0); }
9629 if { (eval echo configure:9630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9630 then
9631 samba_cv_HAVE_ROOT=yes
9632 else
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 rm -fr conftest*
9636 samba_cv_HAVE_ROOT=no
9638 rm -fr conftest*
9643 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9644 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
9645 cat >> confdefs.h <<\EOF
9646 #define HAVE_ROOT 1
9649 else
9650 echo "configure: warning: running as non-root will disable some tests" 1>&2
9653 ##################
9654 # look for a method of finding the list of network interfaces
9655 iface=no;
9656 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9657 echo "configure:9658: checking for iface AIX" >&5
9658 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9659 echo $ac_n "(cached) $ac_c" 1>&6
9660 else
9662 if test "$cross_compiling" = yes; then
9663 samba_cv_HAVE_IFACE_AIX=cross
9664 else
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9669 #define HAVE_IFACE_AIX 1
9670 #define AUTOCONF_TEST 1
9671 #include "confdefs.h"
9672 #include "${srcdir-.}/lib/interfaces.c"
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9675 then
9676 samba_cv_HAVE_IFACE_AIX=yes
9677 else
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9680 rm -fr conftest*
9681 samba_cv_HAVE_IFACE_AIX=no
9683 rm -fr conftest*
9688 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9689 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
9690 iface=yes;cat >> confdefs.h <<\EOF
9691 #define HAVE_IFACE_AIX 1
9696 if test $iface = no; then
9697 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9698 echo "configure:9699: checking for iface ifconf" >&5
9699 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9700 echo $ac_n "(cached) $ac_c" 1>&6
9701 else
9703 if test "$cross_compiling" = yes; then
9704 samba_cv_HAVE_IFACE_IFCONF=cross
9705 else
9706 cat > conftest.$ac_ext <<EOF
9707 #line 9708 "configure"
9708 #include "confdefs.h"
9710 #define HAVE_IFACE_IFCONF 1
9711 #define AUTOCONF_TEST 1
9712 #include "confdefs.h"
9713 #include "${srcdir-.}/lib/interfaces.c"
9715 if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9716 then
9717 samba_cv_HAVE_IFACE_IFCONF=yes
9718 else
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -fr conftest*
9722 samba_cv_HAVE_IFACE_IFCONF=no
9724 rm -fr conftest*
9729 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9730 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
9731 iface=yes;cat >> confdefs.h <<\EOF
9732 #define HAVE_IFACE_IFCONF 1
9738 if test $iface = no; then
9739 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9740 echo "configure:9741: checking for iface ifreq" >&5
9741 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9742 echo $ac_n "(cached) $ac_c" 1>&6
9743 else
9745 if test "$cross_compiling" = yes; then
9746 samba_cv_HAVE_IFACE_IFREQ=cross
9747 else
9748 cat > conftest.$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9752 #define HAVE_IFACE_IFREQ 1
9753 #define AUTOCONF_TEST 1
9754 #include "confdefs.h"
9755 #include "${srcdir-.}/lib/interfaces.c"
9757 if { (eval echo configure:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9758 then
9759 samba_cv_HAVE_IFACE_IFREQ=yes
9760 else
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 rm -fr conftest*
9764 samba_cv_HAVE_IFACE_IFREQ=no
9766 rm -fr conftest*
9771 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9772 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
9773 iface=yes;cat >> confdefs.h <<\EOF
9774 #define HAVE_IFACE_IFREQ 1
9781 ################################################
9782 # look for a method of setting the effective uid
9783 seteuid=no;
9784 if test $seteuid = no; then
9785 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9786 echo "configure:9787: checking for setresuid" >&5
9787 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9789 else
9791 if test "$cross_compiling" = yes; then
9792 samba_cv_USE_SETRESUID=cross
9793 else
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9798 #define AUTOCONF_TEST 1
9799 #define USE_SETRESUID 1
9800 #include "confdefs.h"
9801 #include "${srcdir-.}/lib/util_sec.c"
9803 if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9804 then
9805 samba_cv_USE_SETRESUID=yes
9806 else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -fr conftest*
9810 samba_cv_USE_SETRESUID=no
9812 rm -fr conftest*
9817 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9818 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
9819 seteuid=yes;cat >> confdefs.h <<\EOF
9820 #define USE_SETRESUID 1
9827 if test $seteuid = no; then
9828 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9829 echo "configure:9830: checking for setreuid" >&5
9830 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9831 echo $ac_n "(cached) $ac_c" 1>&6
9832 else
9834 if test "$cross_compiling" = yes; then
9835 samba_cv_USE_SETREUID=cross
9836 else
9837 cat > conftest.$ac_ext <<EOF
9838 #line 9839 "configure"
9839 #include "confdefs.h"
9841 #define AUTOCONF_TEST 1
9842 #define USE_SETREUID 1
9843 #include "confdefs.h"
9844 #include "${srcdir-.}/lib/util_sec.c"
9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9847 then
9848 samba_cv_USE_SETREUID=yes
9849 else
9850 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9852 rm -fr conftest*
9853 samba_cv_USE_SETREUID=no
9855 rm -fr conftest*
9860 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
9861 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
9862 seteuid=yes;cat >> confdefs.h <<\EOF
9863 #define USE_SETREUID 1
9869 if test $seteuid = no; then
9870 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
9871 echo "configure:9872: checking for seteuid" >&5
9872 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9874 else
9876 if test "$cross_compiling" = yes; then
9877 samba_cv_USE_SETEUID=cross
9878 else
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9883 #define AUTOCONF_TEST 1
9884 #define USE_SETEUID 1
9885 #include "confdefs.h"
9886 #include "${srcdir-.}/lib/util_sec.c"
9888 if { (eval echo configure:9889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9889 then
9890 samba_cv_USE_SETEUID=yes
9891 else
9892 echo "configure: failed program was:" >&5
9893 cat conftest.$ac_ext >&5
9894 rm -fr conftest*
9895 samba_cv_USE_SETEUID=no
9897 rm -fr conftest*
9902 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
9903 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
9904 seteuid=yes;cat >> confdefs.h <<\EOF
9905 #define USE_SETEUID 1
9911 if test $seteuid = no; then
9912 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
9913 echo "configure:9914: checking for setuidx" >&5
9914 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9916 else
9918 if test "$cross_compiling" = yes; then
9919 samba_cv_USE_SETUIDX=cross
9920 else
9921 cat > conftest.$ac_ext <<EOF
9922 #line 9923 "configure"
9923 #include "confdefs.h"
9925 #define AUTOCONF_TEST 1
9926 #define USE_SETUIDX 1
9927 #include "confdefs.h"
9928 #include "${srcdir-.}/lib/util_sec.c"
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9931 then
9932 samba_cv_USE_SETUIDX=yes
9933 else
9934 echo "configure: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9936 rm -fr conftest*
9937 samba_cv_USE_SETUIDX=no
9939 rm -fr conftest*
9944 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
9945 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
9946 seteuid=yes;cat >> confdefs.h <<\EOF
9947 #define USE_SETUIDX 1
9954 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
9955 echo "configure:9956: checking for shared mmap" >&5
9956 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
9957 echo $ac_n "(cached) $ac_c" 1>&6
9958 else
9960 if test "$cross_compiling" = yes; then
9961 samba_cv_HAVE_SHARED_MMAP=cross
9962 else
9963 cat > conftest.$ac_ext <<EOF
9964 #line 9965 "configure"
9965 #include "confdefs.h"
9966 #include "${srcdir-.}/tests/shared_mmap.c"
9968 if { (eval echo configure:9969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9969 then
9970 samba_cv_HAVE_SHARED_MMAP=yes
9971 else
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9974 rm -fr conftest*
9975 samba_cv_HAVE_SHARED_MMAP=no
9977 rm -fr conftest*
9982 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
9983 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
9984 cat >> confdefs.h <<\EOF
9985 #define HAVE_SHARED_MMAP 1
9988 cat >> confdefs.h <<\EOF
9989 #define HAVE_MMAP 1
9994 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9995 echo "configure:9996: checking for ftruncate needs root" >&5
9996 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
9998 else
10000 if test "$cross_compiling" = yes; then
10001 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10002 else
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10005 "configure"
10005 #include "confdefs.h"
10006 #include "${srcdir-.}/tests/ftruncroot.c"
10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10009 then
10010 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10011 else
10012 echo "configure: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 rm -fr conftest*
10015 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10017 rm -fr conftest*
10022 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10023 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10024 cat >> confdefs.h <<\EOF
10025 #define FTRUNCATE_NEEDS_ROOT 1
10030 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10031 echo "configure:10032: checking for fcntl locking" >&5
10032 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10033 echo $ac_n "(cached) $ac_c" 1>&6
10034 else
10036 if test "$cross_compiling" = yes; then
10037 samba_cv_HAVE_FCNTL_LOCK=cross
10038 else
10039 cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include "${srcdir-.}/tests/fcntl_lock.c"
10044 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10045 then
10046 samba_cv_HAVE_FCNTL_LOCK=yes
10047 else
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10050 rm -fr conftest*
10051 samba_cv_HAVE_FCNTL_LOCK=no
10053 rm -fr conftest*
10058 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10059 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10060 cat >> confdefs.h <<\EOF
10061 #define HAVE_FCNTL_LOCK 1
10066 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10067 echo "configure:10068: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10068 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10070 else
10072 if test "$cross_compiling" = yes; then
10073 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10074 else
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 #include "${srcdir-.}/tests/fcntl_lock64.c"
10080 if { (eval echo configure:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10081 then
10082 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10083 else
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 rm -fr conftest*
10087 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10089 rm -fr conftest*
10094 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10095 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10096 cat >> confdefs.h <<\EOF
10097 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10101 else
10104 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10105 echo "configure:10106: checking for 64 bit fcntl locking" >&5
10106 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10108 else
10110 if test "$cross_compiling" = yes; then
10111 samba_cv_HAVE_STRUCT_FLOCK64=cross
10112 else
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10117 #if defined(HAVE_UNISTD_H)
10118 #include <unistd.h>
10119 #endif
10120 #include <stdio.h>
10121 #include <stdlib.h>
10123 #ifdef HAVE_FCNTL_H
10124 #include <fcntl.h>
10125 #endif
10127 #ifdef HAVE_SYS_FCNTL_H
10128 #include <sys/fcntl.h>
10129 #endif
10130 main() { struct flock64 fl64;
10131 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10132 exit(0);
10133 #else
10134 exit(1);
10135 #endif
10138 if { (eval echo configure:10139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10139 then
10140 samba_cv_HAVE_STRUCT_FLOCK64=yes
10141 else
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 rm -fr conftest*
10145 samba_cv_HAVE_STRUCT_FLOCK64=no
10147 rm -fr conftest*
10152 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10154 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10155 cat >> confdefs.h <<\EOF
10156 #define HAVE_STRUCT_FLOCK64 1
10162 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
10163 echo "configure:10164: checking for sysv ipc" >&5
10164 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10166 else
10168 if test "$cross_compiling" = yes; then
10169 samba_cv_HAVE_SYSV_IPC=cross
10170 else
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 #include "${srcdir-.}/tests/sysv_ipc.c"
10176 if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10177 then
10178 samba_cv_HAVE_SYSV_IPC=yes
10179 else
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 rm -fr conftest*
10183 samba_cv_HAVE_SYSV_IPC=no
10185 rm -fr conftest*
10190 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
10191 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
10192 cat >> confdefs.h <<\EOF
10193 #define HAVE_SYSV_IPC 1
10198 echo $ac_n "checking for IRIX sysv ipc semun problem using gcc""... $ac_c" 1>&6
10199 echo "configure:10200: checking for IRIX sysv ipc semun problem using gcc" >&5
10200 if eval "test \"`echo '$''{'samba_cv_NEED_SGI_SEMUN_HACK'+set}'`\" = set"; then
10201 echo $ac_n "(cached) $ac_c" 1>&6
10202 else
10204 if test "$cross_compiling" = yes; then
10205 samba_cv_NEED_SGI_SEMUN_HACK=cross
10206 else
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 #include "${srcdir-.}/tests/sgi_sysv_hack.c"
10212 if { (eval echo configure:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10213 then
10214 samba_cv_NEED_SGI_SEMUN_HACK=yes
10215 else
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 rm -fr conftest*
10219 samba_cv_NEED_SGI_SEMUN_HACK=no
10221 rm -fr conftest*
10226 echo "$ac_t""$samba_cv_NEED_SGI_SEMUN_HACK" 1>&6
10227 if test x"$samba_cv_NEED_SGI_SEMUN_HACK" = x"yes"; then
10228 cat >> confdefs.h <<\EOF
10229 #define NEED_SGI_SEMUN_HACK 1
10234 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10235 echo "configure:10236: checking for a crypt that needs truncated salt" >&5
10236 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10238 else
10240 if test "$cross_compiling" = yes; then
10241 samba_cv_HAVE_TRUNCATED_SALT=cross
10242 else
10243 cat > conftest.$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include "${srcdir-.}/tests/crypttest.c"
10248 if { (eval echo configure:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10249 then
10250 samba_cv_HAVE_TRUNCATED_SALT=no
10251 else
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10254 rm -fr conftest*
10255 samba_cv_HAVE_TRUNCATED_SALT=yes
10257 rm -fr conftest*
10262 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10263 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10264 cat >> confdefs.h <<\EOF
10265 #define HAVE_TRUNCATED_SALT 1
10270 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10271 echo "configure:10272: checking for broken nisplus include files" >&5
10272 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10274 else
10276 cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10279 #include <sys/acl.h>
10280 #if defined(HAVE_RPCSVC_NIS_H)
10281 #include <rpcsvc/nis.h>
10282 #endif
10283 int main() {
10284 return 0;
10285 ; return 0; }
10287 if { (eval echo configure:10288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10288 rm -rf conftest*
10289 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10290 else
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 rm -rf conftest*
10294 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10296 rm -f conftest*
10299 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10300 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10301 cat >> confdefs.h <<\EOF
10302 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10308 #################################################
10309 # check for smbwrapper support
10310 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10311 echo "configure:10312: checking whether to use smbwrapper" >&5
10312 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10313 if test "${with_smbwrapper+set}" = set; then
10314 withval="$with_smbwrapper"
10315 case "$withval" in
10316 yes)
10317 echo "$ac_t""yes" 1>&6
10318 cat >> confdefs.h <<\EOF
10319 #define WITH_SMBWRAPPER 1
10322 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10324 if test x$ATTEMPT_WRAP32_BUILD = x; then
10325 WRAP32=""
10326 else
10327 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10330 # Conditions under which smbwrapper should not be built.
10332 if test x$PICFLAG = x; then
10333 echo No support for PIC code - disabling smbwrapper and smbsh
10334 WRAP=""
10335 WRAP32=""
10336 elif test x$ac_cv_func_syscall = xno; then
10337 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10338 WRAP=""
10339 WRAP32=""
10343 echo "$ac_t""no" 1>&6
10345 esac
10346 else
10347 echo "$ac_t""no" 1>&6
10352 #################################################
10353 # check for the AFS filesystem
10354 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10355 echo "configure:10356: checking whether to use AFS" >&5
10356 # Check whether --with-afs or --without-afs was given.
10357 if test "${with_afs+set}" = set; then
10358 withval="$with_afs"
10359 case "$withval" in
10360 yes)
10361 echo "$ac_t""yes" 1>&6
10362 cat >> confdefs.h <<\EOF
10363 #define WITH_AFS 1
10368 echo "$ac_t""no" 1>&6
10370 esac
10371 else
10372 echo "$ac_t""no" 1>&6
10378 #################################################
10379 # check for the DFS auth system
10380 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10381 echo "configure:10382: checking whether to use DFS auth" >&5
10382 # Check whether --with-dfs or --without-dfs was given.
10383 if test "${with_dfs+set}" = set; then
10384 withval="$with_dfs"
10385 case "$withval" in
10386 yes)
10387 echo "$ac_t""yes" 1>&6
10388 cat >> confdefs.h <<\EOF
10389 #define WITH_DFS 1
10394 echo "$ac_t""no" 1>&6
10396 esac
10397 else
10398 echo "$ac_t""no" 1>&6
10403 #################################################
10404 # check for Kerberos IV auth system
10405 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10406 echo "configure:10407: checking whether to use Kerberos IV" >&5
10407 # Check whether --with-krb4 or --without-krb4 was given.
10408 if test "${with_krb4+set}" = set; then
10409 withval="$with_krb4"
10410 echo "$ac_t""yes" 1>&6
10411 cat >> confdefs.h <<\EOF
10412 #define KRB4_AUTH 1
10415 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10416 echo "configure:10417: checking for dn_expand in -lresolv" >&5
10417 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10420 else
10421 ac_save_LIBS="$LIBS"
10422 LIBS="-lresolv $LIBS"
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10426 /* Override any gcc2 internal prototype to avoid an error. */
10427 /* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10429 char dn_expand();
10431 int main() {
10432 dn_expand()
10433 ; return 0; }
10435 if { (eval echo configure:10436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10436 rm -rf conftest*
10437 eval "ac_cv_lib_$ac_lib_var=yes"
10438 else
10439 echo "configure: failed program was:" >&5
10440 cat conftest.$ac_ext >&5
10441 rm -rf conftest*
10442 eval "ac_cv_lib_$ac_lib_var=no"
10444 rm -f conftest*
10445 LIBS="$ac_save_LIBS"
10448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10449 echo "$ac_t""yes" 1>&6
10450 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10452 cat >> confdefs.h <<EOF
10453 #define $ac_tr_lib 1
10456 LIBS="-lresolv $LIBS"
10458 else
10459 echo "$ac_t""no" 1>&6
10462 LIBS="$LIBS -lkrb -ldes"
10463 CFLAGS="$CFLAGS -I$withval/include"
10464 LDFLAGS="$LDFLAGS -L$withval/lib"
10465 ac_safe=`echo "kerberos/krb.h" | sed 'y%./+-%__p_%'`
10466 echo $ac_n "checking for kerberos/krb.h""... $ac_c" 1>&6
10467 echo "configure:10468: checking for kerberos/krb.h" >&5
10468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10469 echo $ac_n "(cached) $ac_c" 1>&6
10470 else
10471 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10474 #include <kerberos/krb.h>
10476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10477 { (eval echo configure:10478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10479 if test -z "$ac_err"; then
10480 rm -rf conftest*
10481 eval "ac_cv_header_$ac_safe=yes"
10482 else
10483 echo "$ac_err" >&5
10484 echo "configure: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10486 rm -rf conftest*
10487 eval "ac_cv_header_$ac_safe=no"
10489 rm -f conftest*
10491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10492 echo "$ac_t""yes" 1>&6
10493 echo $ac_n "checking whether both krb.h and kerberos/krb.h can be included""... $ac_c" 1>&6
10494 echo "configure:10495: checking whether both krb.h and kerberos/krb.h can be included" >&5
10495 if eval "test \"`echo '$''{'samba_cv_no_kerberos_inconsistency'+set}'`\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10497 else
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 #include<kerberos/krb.h>
10503 #include<krb.h>
10504 int main() {
10506 ; return 0; }
10508 if { (eval echo configure:10509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10509 rm -rf conftest*
10510 samba_cv_no_kerberos_inconsistency=yes
10511 else
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10514 rm -rf conftest*
10515 samba_cv_no_kerberos_inconsistency=no
10517 rm -f conftest*
10521 echo "$ac_t""$samba_cv_no_kerberos_inconsistency" 1>&6
10522 if test x"$samba_cv_no_kerberos_inconsistency" = x"no"; then
10523 echo $ac_n "checking whether a Kerberos define work around is needed""... $ac_c" 1>&6
10524 echo "configure:10525: checking whether a Kerberos define work around is needed" >&5
10525 if eval "test \"`echo '$''{'samba_cv_kerberos_define_workaround'+set}'`\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10527 else
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10532 #define _KERBEROS_KRB_H
10533 #include<kerberos/krb.h>
10534 #include<krb.h>
10535 int main() {
10537 ; return 0; }
10539 if { (eval echo configure:10540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10540 rm -rf conftest*
10541 samba_cv_kerberos_define_workaround=yes
10542 else
10543 echo "configure: failed program was:" >&5
10544 cat conftest.$ac_ext >&5
10545 rm -rf conftest*
10546 samba_cv_kerberos_define_workaround=no
10548 rm -f conftest*
10552 echo "$ac_t""$samba_cv_kerberos_define_workaround" 1>&6
10553 if test x"$samba_cv_kerberos_define_workaround" = x"yes"; then
10554 cat >> confdefs.h <<\EOF
10555 #define USE_KRB4_DEFINE_WORK_AROUND 1
10560 else
10561 echo "$ac_t""no" 1>&6
10564 else
10565 echo "$ac_t""no" 1>&6
10570 #################################################
10571 # check for the AFS tickets from srvtabs
10572 echo $ac_n "checking whether to use AFS tickets from srvtabs""... $ac_c" 1>&6
10573 echo "configure:10574: checking whether to use AFS tickets from srvtabs" >&5
10574 # Check whether --with-srvtab or --without-srvtab was given.
10575 if test "${with_srvtab+set}" = set; then
10576 withval="$with_srvtab"
10577 case "$withval" in
10578 yes)
10579 echo "$ac_t""yes" 1>&6
10580 cat >> confdefs.h <<\EOF
10581 #define USE_RENEWABLE_AFS_TICKET ""
10584 LIBS="$LIBS -lkafs"
10587 echo "$ac_t""no" 1>&6
10590 echo "$ac_t""yes using instance $withval" 1>&6
10591 cat >> confdefs.h <<EOF
10592 #define USE_RENEWABLE_AFS_TICKET $withval
10595 LIBS="$LIBS -lkafs"
10597 esac
10598 else
10599 echo "$ac_t""no" 1>&6
10604 #################################################
10605 # check for Kerberos 5 auth system
10606 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10607 echo "configure:10608: checking whether to use Kerberos 5" >&5
10608 # Check whether --with-krb5 or --without-krb5 was given.
10609 if test "${with_krb5+set}" = set; then
10610 withval="$with_krb5"
10611 echo "$ac_t""yes" 1>&6
10612 cat >> confdefs.h <<\EOF
10613 #define KRB5_AUTH 1
10616 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10617 CFLAGS="$CFLAGS -I$withval/include"
10618 LDFLAGS="$LDFLAGS -L$withval/lib"
10619 else
10620 echo "$ac_t""no" 1>&6
10625 #################################################
10626 # check for automount support
10627 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10628 echo "configure:10629: checking whether to use AUTOMOUNT" >&5
10629 # Check whether --with-automount or --without-automount was given.
10630 if test "${with_automount+set}" = set; then
10631 withval="$with_automount"
10632 case "$withval" in
10633 yes)
10634 echo "$ac_t""yes" 1>&6
10635 cat >> confdefs.h <<\EOF
10636 #define WITH_AUTOMOUNT 1
10641 echo "$ac_t""no" 1>&6
10643 esac
10644 else
10645 echo "$ac_t""no" 1>&6
10650 #################################################
10651 # check for smbmount support
10652 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10653 echo "configure:10654: checking whether to use SMBMOUNT" >&5
10654 # Check whether --with-smbmount or --without-smbmount was given.
10655 if test "${with_smbmount+set}" = set; then
10656 withval="$with_smbmount"
10657 case "$withval" in
10658 yes)
10659 echo "$ac_t""yes" 1>&6
10660 cat >> confdefs.h <<\EOF
10661 #define WITH_SMBMOUNT 1
10664 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10667 echo "$ac_t""no" 1>&6
10668 MPROGS=
10670 esac
10671 else
10672 echo "$ac_t""no" 1>&6
10673 MPROGS=
10679 #################################################
10680 # check for a PAM password database
10681 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10682 echo "configure:10683: checking whether to use PAM password database" >&5
10683 # Check whether --with-pam or --without-pam was given.
10684 if test "${with_pam+set}" = set; then
10685 withval="$with_pam"
10686 case "$withval" in
10687 yes)
10688 echo "$ac_t""yes" 1>&6
10689 cat >> confdefs.h <<\EOF
10690 #define WITH_PAM 1
10693 LIBS="$LIBS -lpam"
10694 pam_modules="$pam_modules nsswitch/$pam_winbind"
10697 echo "$ac_t""no" 1>&6
10699 esac
10700 else
10701 echo "$ac_t""no" 1>&6
10708 #################################################
10709 # check for a LDAP password database
10710 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10711 echo "configure:10712: checking whether to use LDAP password database" >&5
10712 # Check whether --with-ldap or --without-ldap was given.
10713 if test "${with_ldap+set}" = set; then
10714 withval="$with_ldap"
10715 case "$withval" in
10716 yes)
10717 echo "$ac_t""yes" 1>&6
10718 cat >> confdefs.h <<\EOF
10719 #define WITH_LDAP 1
10722 LIBS="$LIBS -lldap -llber"
10725 echo "$ac_t""no" 1>&6
10727 esac
10728 else
10729 echo "$ac_t""no" 1>&6
10734 #################################################
10735 # check for a LDAP password database
10736 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10737 echo "configure:10738: checking whether to use LDAP password database" >&5
10738 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10739 if test "${with_nt5ldap+set}" = set; then
10740 withval="$with_nt5ldap"
10741 case "$withval" in
10742 yes)
10743 echo "$ac_t""yes" 1>&6
10744 cat >> confdefs.h <<\EOF
10745 #define WITH_NT5LDAP 1
10748 LIBS="$LIBS -lldap -llber"
10751 echo "$ac_t""no" 1>&6
10753 esac
10754 else
10755 echo "$ac_t""no" 1>&6
10760 #################################################
10761 # check for a LDAP password database
10762 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10763 echo "configure:10764: checking whether to use LDAP password database" >&5
10764 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10765 if test "${with_nt5ldap+set}" = set; then
10766 withval="$with_nt5ldap"
10767 case "$withval" in
10768 yes)
10769 echo "$ac_t""yes" 1>&6
10770 cat >> confdefs.h <<\EOF
10771 #define WITH_NT5LDAP 1
10774 LIBS="$LIBS -lldap -llber"
10777 echo "$ac_t""no" 1>&6
10779 esac
10780 else
10781 echo "$ac_t""no" 1>&6
10786 #################################################
10787 # check for a NISPLUS password database
10788 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10789 echo "configure:10790: checking whether to use NISPLUS password database" >&5
10790 # Check whether --with-nisplus or --without-nisplus was given.
10791 if test "${with_nisplus+set}" = set; then
10792 withval="$with_nisplus"
10793 case "$withval" in
10794 yes)
10795 echo "$ac_t""yes" 1>&6
10796 cat >> confdefs.h <<\EOF
10797 #define WITH_NISPLUS 1
10802 echo "$ac_t""no" 1>&6
10804 esac
10805 else
10806 echo "$ac_t""no" 1>&6
10811 #################################################
10812 # decide for the default sam-password-database
10813 echo $ac_n "checking which sam password database to use""... $ac_c" 1>&6
10814 echo "configure:10815: checking which sam password database to use" >&5
10815 # Check whether --with-sam_pwdb or --without-sam_pwdb was given.
10816 if test "${with_sam_pwdb+set}" = set; then
10817 withval="$with_sam_pwdb"
10818 case "$withval" in
10819 ""|passdb)
10820 SAM_PWDB_LIB='$(SAMRPASSLIB) $(SMBPWLIB)'
10821 sampwlibname="passdb"
10823 tdb)
10824 SAM_PWDB_LIB='$(SAMRTDBLIB)'
10825 sampwlibname="tdb"
10827 nt5ldap)
10828 SAM_PWDB_LIB='$(SAMRNT5LDAPLIB)'
10829 sampwlibname="nt5ldap (must also specify --with-nt5ldap)"
10832 SAM_PWDB_LIB='$(SAMRPASSLIB)'
10833 sampwlibname="passdb (unknown specified!)"
10835 esac
10836 else
10838 SAM_PWDB_LIB='$(SAMRPASSLIB) $(SMBPWLIB)'
10839 sampwlibname="passdb (default)"
10843 echo "$ac_t""$sampwlibname" 1>&6
10847 #################################################
10848 # check to use a tdb surs database
10849 echo $ac_n "checking whether to use SURS tdb database""... $ac_c" 1>&6
10850 echo "configure:10851: checking whether to use SURS tdb database" >&5
10851 # Check whether --with-surstdb or --without-surstdb was given.
10852 if test "${with_surstdb+set}" = set; then
10853 withval="$with_surstdb"
10854 case "$withval" in
10855 yes)
10856 echo "$ac_t""yes" 1>&6
10857 cat >> confdefs.h <<\EOF
10858 #define WITH_TDBSURS 1
10863 echo "$ac_t""no" 1>&6
10865 esac
10866 else
10867 echo "$ac_t""no" 1>&6
10873 #################################################
10874 # check for a NISPLUS_HOME support
10875 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10876 echo "configure:10877: checking whether to use NISPLUS_HOME" >&5
10877 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10878 if test "${with_nisplus_home+set}" = set; then
10879 withval="$with_nisplus_home"
10880 case "$withval" in
10881 yes)
10882 echo "$ac_t""yes" 1>&6
10883 cat >> confdefs.h <<\EOF
10884 #define WITH_NISPLUS_HOME 1
10889 echo "$ac_t""no" 1>&6
10891 esac
10892 else
10893 echo "$ac_t""no" 1>&6
10898 #################################################
10899 # check for the secure socket layer
10900 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10901 echo "configure:10902: checking whether to use SSL" >&5
10902 # Check whether --with-ssl or --without-ssl was given.
10903 if test "${with_ssl+set}" = set; then
10904 withval="$with_ssl"
10905 case "$withval" in
10906 yes)
10907 echo "$ac_t""yes" 1>&6
10908 cat >> confdefs.h <<\EOF
10909 #define WITH_SSL 1
10912 withval="/usr/local/ssl" # default
10914 if test "${with_sslinc+set}" = set; then
10916 withval="$with_sslinc"
10917 case "$withval" in
10918 yes|no)
10919 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10920 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10921 LIBS="-lssl -lcrypto $LIBS"
10922 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
10925 CFLAGS="-I${withval} $CFLAGS"
10926 LIBS="-lssl -lcrypto $LIBS"
10927 # LDFLAGS="-L${withval}/lib $LDFLAGS"
10929 esac
10931 else
10933 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10934 LIBS="-lssl -lcrypto $LIBS"
10935 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
10939 if test ! -d ${withval}; then
10940 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10941 exit 1
10944 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10948 echo "$ac_t""no" 1>&6
10950 esac
10951 else
10952 echo "$ac_t""no" 1>&6
10957 #################################################
10958 # check for syslog logging
10959 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10960 echo "configure:10961: checking whether to use syslog logging" >&5
10961 # Check whether --with-syslog or --without-syslog was given.
10962 if test "${with_syslog+set}" = set; then
10963 withval="$with_syslog"
10964 case "$withval" in
10965 yes)
10966 echo "$ac_t""yes" 1>&6
10967 cat >> confdefs.h <<\EOF
10968 #define WITH_SYSLOG 1
10973 echo "$ac_t""no" 1>&6
10975 esac
10976 else
10977 echo "$ac_t""no" 1>&6
10982 #################################################
10983 # check for a shared memory profiling support
10984 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10985 echo "configure:10986: checking whether to use profiling" >&5
10986 # Check whether --with-profile or --without-profile was given.
10987 if test "${with_profile+set}" = set; then
10988 withval="$with_profile"
10989 case "$withval" in
10990 yes)
10991 echo "$ac_t""yes" 1>&6
10992 cat >> confdefs.h <<\EOF
10993 #define WITH_PROFILE 1
10998 echo "$ac_t""no" 1>&6
11000 esac
11001 else
11002 echo "$ac_t""no" 1>&6
11008 #################################################
11009 # check for experimental netatalk resource fork support
11010 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11011 echo "configure:11012: checking whether to support netatalk" >&5
11012 # Check whether --with-netatalk or --without-netatalk was given.
11013 if test "${with_netatalk+set}" = set; then
11014 withval="$with_netatalk"
11015 case "$withval" in
11016 yes)
11017 echo "$ac_t""yes" 1>&6
11018 cat >> confdefs.h <<\EOF
11019 #define WITH_NETATALK 1
11024 echo "$ac_t""no" 1>&6
11026 esac
11027 else
11028 echo "$ac_t""no" 1>&6
11033 #################################################
11034 # check for experimental disk-quotas support
11035 QUOTAOBJS=noquotas.o
11037 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11038 echo "configure:11039: checking whether to support disk-quotas" >&5
11039 # Check whether --with-quotas or --without-quotas was given.
11040 if test "${with_quotas+set}" = set; then
11041 withval="$with_quotas"
11042 case "$withval" in
11043 yes)
11044 echo "$ac_t""yes" 1>&6
11045 QUOTAOBJS=quotas.o
11048 echo "$ac_t""no" 1>&6
11050 esac
11051 else
11052 echo "$ac_t""no" 1>&6
11058 #################################################
11059 # check for experimental utmp accounting
11061 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11062 echo "configure:11063: checking whether to support utmp accounting" >&5
11063 # Check whether --with-utmp or --without-utmp was given.
11064 if test "${with_utmp+set}" = set; then
11065 withval="$with_utmp"
11066 case "$withval" in
11067 yes)
11068 echo "$ac_t""yes" 1>&6
11069 cat >> confdefs.h <<\EOF
11070 #define WITH_UTMP 1
11075 echo "$ac_t""no" 1>&6
11077 esac
11078 else
11079 echo "$ac_t""no" 1>&6
11084 #################################################
11085 # check for MS Dfs support
11087 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11088 echo "configure:11089: checking whether to support Microsoft Dfs" >&5
11089 # Check whether --with-msdfs or --without-msdfs was given.
11090 if test "${with_msdfs+set}" = set; then
11091 withval="$with_msdfs"
11092 case "$withval" in
11093 yes)
11094 echo "$ac_t""yes" 1>&6
11095 cat >> confdefs.h <<\EOF
11096 #define WITH_MSDFS 1
11101 echo "$ac_t""no" 1>&6
11103 esac
11104 else
11105 echo "$ac_t""no" 1>&6
11110 #################################################
11111 # set samba configuration directory location
11113 if test "$sysconfdir" = '${prefix}/etc'
11114 then
11115 # default sysconfdir, decide on prefix
11116 case "$prefix" in
11117 *samba*|NONE)
11118 # if the prefix already contains the word samba,
11119 # we don't need to use a subdir for smb.conf
11120 sambaconfdir='${sysconfdir}'
11123 # otherwise, we use a separate dir
11124 sambaconfdir='${sysconfdir}/samba'
11126 esac
11127 else
11128 # sysconfdir given, use that directly
11129 sambaconfdir='${sysconfdir}'
11131 # Check whether --with-sambaconfdir or --without-sambaconfdir was given.
11132 if test "${with_sambaconfdir+set}" = set; then
11133 withval="$with_sambaconfdir"
11134 case "$withval" in
11135 yes)
11136 # Just --with-sambaconfdir, use the new default
11137 # (which has already been "calculated"
11140 # --without-sambaconfdir, use old default
11141 sambaconfdir='${LIBDIR}'
11144 sambaconfdir="$withval"
11146 esac
11148 else
11149 # No --with(out)-sambaconfdir, use old version for some time.
11150 if test "$sysconfdir" = '${prefix}/etc'
11151 then
11152 # sysconfdir not given
11153 sambaconfdir='${LIBDIR}'
11160 #################################################
11161 # set private directory location
11162 # Check whether --with-privatedir or --without-privatedir was given.
11163 if test "${with_privatedir+set}" = set; then
11164 withval="$with_privatedir"
11165 case "$withval" in
11166 yes|no)
11168 # Just in case anybody calls it without argument
11170 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11171 privatedir='${prefix}/private'
11174 privatedir="$withval"
11176 esac
11178 else
11179 privatedir='${prefix}/private'
11185 #################################################
11186 # set lock directory location
11187 # Check whether --with-lockdir or --without-lockdir was given.
11188 if test "${with_lockdir+set}" = set; then
11189 withval="$with_lockdir"
11190 case "$withval" in
11191 yes|no)
11193 # Just in case anybody calls it without argument
11195 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11196 lockdir='${VARDIR}/locks'
11199 lockdir="$withval"
11201 esac
11203 else
11204 lockdir='${VARDIR}/locks'
11210 #################################################
11211 # set SWAT directory location
11212 # Check whether --with-swatdir or --without-swatdir was given.
11213 if test "${with_swatdir+set}" = set; then
11214 withval="$with_swatdir"
11215 case "$withval" in
11216 yes|no)
11218 # Just in case anybody does it
11220 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11221 swatdir='${prefix}/swat'
11224 swatdir="$withval"
11226 esac
11228 else
11229 swatdir='${prefix}/swat'
11235 #################################################
11236 # these tests are taken from the GNU fileutils package
11237 echo "checking how to get filesystem space usage" 1>&6
11238 echo "configure:11239: checking how to get filesystem space usage" >&5
11239 space=no
11241 # Test for statvfs64.
11242 if test $space = no; then
11243 # SVR4
11244 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11245 echo "configure:11246: checking statvfs64 function (SVR4)" >&5
11246 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11248 else
11249 if test "$cross_compiling" = yes; then
11250 fu_cv_sys_stat_statvfs64=cross
11251 else
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11256 #if defined(HAVE_UNISTD_H)
11257 #include <unistd.h>
11258 #endif
11259 #include <sys/types.h>
11260 #include <sys/statvfs.h>
11261 main ()
11263 struct statvfs64 fsd;
11264 exit (statvfs64 (".", &fsd));
11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11268 then
11269 fu_cv_sys_stat_statvfs64=yes
11270 else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -fr conftest*
11274 fu_cv_sys_stat_statvfs64=no
11276 rm -fr conftest*
11281 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11282 if test $fu_cv_sys_stat_statvfs64 = yes; then
11283 space=yes
11284 cat >> confdefs.h <<\EOF
11285 #define STAT_STATVFS64 1
11291 # Perform only the link test since it seems there are no variants of the
11292 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11293 # because that got a false positive on SCO OSR5. Adding the declaration
11294 # of a `struct statvfs' causes this test to fail (as it should) on such
11295 # systems. That system is reported to work fine with STAT_STATFS4 which
11296 # is what it gets when this test fails.
11297 if test $space = no; then
11298 # SVR4
11299 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11300 echo "configure:11301: checking statvfs function (SVR4)" >&5
11301 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303 else
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 #include <sys/types.h>
11308 #include <sys/statvfs.h>
11309 int main() {
11310 struct statvfs fsd; statvfs (0, &fsd);
11311 ; return 0; }
11313 if { (eval echo configure:11314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11314 rm -rf conftest*
11315 fu_cv_sys_stat_statvfs=yes
11316 else
11317 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11319 rm -rf conftest*
11320 fu_cv_sys_stat_statvfs=no
11322 rm -f conftest*
11325 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11326 if test $fu_cv_sys_stat_statvfs = yes; then
11327 space=yes
11328 cat >> confdefs.h <<\EOF
11329 #define STAT_STATVFS 1
11335 if test $space = no; then
11336 # DEC Alpha running OSF/1
11337 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11338 echo "configure:11339: checking for 3-argument statfs function (DEC OSF/1)" >&5
11339 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11341 else
11342 if test "$cross_compiling" = yes; then
11343 fu_cv_sys_stat_statfs3_osf1=no
11344 else
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11349 #include <sys/param.h>
11350 #include <sys/types.h>
11351 #include <sys/mount.h>
11352 main ()
11354 struct statfs fsd;
11355 fsd.f_fsize = 0;
11356 exit (statfs (".", &fsd, sizeof (struct statfs)));
11359 if { (eval echo configure:11360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11360 then
11361 fu_cv_sys_stat_statfs3_osf1=yes
11362 else
11363 echo "configure: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 rm -fr conftest*
11366 fu_cv_sys_stat_statfs3_osf1=no
11368 rm -fr conftest*
11373 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11374 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11375 space=yes
11376 cat >> confdefs.h <<\EOF
11377 #define STAT_STATFS3_OSF1 1
11383 if test $space = no; then
11384 # AIX
11385 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11386 echo "configure:11387: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11387 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11388 echo $ac_n "(cached) $ac_c" 1>&6
11389 else
11390 if test "$cross_compiling" = yes; then
11391 fu_cv_sys_stat_statfs2_bsize=no
11392 else
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11397 #ifdef HAVE_SYS_PARAM_H
11398 #include <sys/param.h>
11399 #endif
11400 #ifdef HAVE_SYS_MOUNT_H
11401 #include <sys/mount.h>
11402 #endif
11403 #ifdef HAVE_SYS_VFS_H
11404 #include <sys/vfs.h>
11405 #endif
11406 main ()
11408 struct statfs fsd;
11409 fsd.f_bsize = 0;
11410 exit (statfs (".", &fsd));
11413 if { (eval echo configure:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11414 then
11415 fu_cv_sys_stat_statfs2_bsize=yes
11416 else
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11419 rm -fr conftest*
11420 fu_cv_sys_stat_statfs2_bsize=no
11422 rm -fr conftest*
11427 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11428 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11429 space=yes
11430 cat >> confdefs.h <<\EOF
11431 #define STAT_STATFS2_BSIZE 1
11437 if test $space = no; then
11438 # SVR3
11439 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11440 echo "configure:11441: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11441 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11442 echo $ac_n "(cached) $ac_c" 1>&6
11443 else
11444 if test "$cross_compiling" = yes; then
11445 fu_cv_sys_stat_statfs4=no
11446 else
11447 cat > conftest.$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11450 #include <sys/types.h>
11451 #include <sys/statfs.h>
11452 main ()
11454 struct statfs fsd;
11455 exit (statfs (".", &fsd, sizeof fsd, 0));
11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11459 then
11460 fu_cv_sys_stat_statfs4=yes
11461 else
11462 echo "configure: failed program was:" >&5
11463 cat conftest.$ac_ext >&5
11464 rm -fr conftest*
11465 fu_cv_sys_stat_statfs4=no
11467 rm -fr conftest*
11472 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11473 if test $fu_cv_sys_stat_statfs4 = yes; then
11474 space=yes
11475 cat >> confdefs.h <<\EOF
11476 #define STAT_STATFS4 1
11482 if test $space = no; then
11483 # 4.4BSD and NetBSD
11484 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11485 echo "configure:11486: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11486 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11487 echo $ac_n "(cached) $ac_c" 1>&6
11488 else
11489 if test "$cross_compiling" = yes; then
11490 fu_cv_sys_stat_statfs2_fsize=no
11491 else
11492 cat > conftest.$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 #include <sys/types.h>
11496 #ifdef HAVE_SYS_PARAM_H
11497 #include <sys/param.h>
11498 #endif
11499 #ifdef HAVE_SYS_MOUNT_H
11500 #include <sys/mount.h>
11501 #endif
11502 main ()
11504 struct statfs fsd;
11505 fsd.f_fsize = 0;
11506 exit (statfs (".", &fsd));
11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11510 then
11511 fu_cv_sys_stat_statfs2_fsize=yes
11512 else
11513 echo "configure: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11515 rm -fr conftest*
11516 fu_cv_sys_stat_statfs2_fsize=no
11518 rm -fr conftest*
11523 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11524 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11525 space=yes
11526 cat >> confdefs.h <<\EOF
11527 #define STAT_STATFS2_FSIZE 1
11533 if test $space = no; then
11534 # Ultrix
11535 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11536 echo "configure:11537: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11537 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11539 else
11540 if test "$cross_compiling" = yes; then
11541 fu_cv_sys_stat_fs_data=no
11542 else
11543 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure"
11545 #include "confdefs.h"
11546 #include <sys/types.h>
11547 #ifdef HAVE_SYS_PARAM_H
11548 #include <sys/param.h>
11549 #endif
11550 #ifdef HAVE_SYS_MOUNT_H
11551 #include <sys/mount.h>
11552 #endif
11553 #ifdef HAVE_SYS_FS_TYPES_H
11554 #include <sys/fs_types.h>
11555 #endif
11556 main ()
11558 struct fs_data fsd;
11559 /* Ultrix's statfs returns 1 for success,
11560 0 for not mounted, -1 for failure. */
11561 exit (statfs (".", &fsd) != 1);
11564 if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11565 then
11566 fu_cv_sys_stat_fs_data=yes
11567 else
11568 echo "configure: failed program was:" >&5
11569 cat conftest.$ac_ext >&5
11570 rm -fr conftest*
11571 fu_cv_sys_stat_fs_data=no
11573 rm -fr conftest*
11578 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11579 if test $fu_cv_sys_stat_fs_data = yes; then
11580 space=yes
11581 cat >> confdefs.h <<\EOF
11582 #define STAT_STATFS2_FS_DATA 1
11589 # As a gating factor for large file support, in order to
11590 # use <4GB files we must have the following minimal support
11591 # available.
11592 # long long, and a 64 bit off_t or off64_t.
11593 # If we don't have all of these then disable large
11594 # file support.
11596 echo "checking if large file support can be enabled"
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11601 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11602 #include <sys/types.h>
11603 #else
11604 __COMPILE_ERROR_
11605 #endif
11607 int main() {
11608 int i
11609 ; return 0; }
11611 if { (eval echo configure:11612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11612 rm -rf conftest*
11613 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
11614 else
11615 echo "configure: failed program was:" >&5
11616 cat conftest.$ac_ext >&5
11617 rm -rf conftest*
11618 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
11620 rm -f conftest*
11621 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
11622 echo "yes"
11623 cat >> confdefs.h <<\EOF
11624 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11627 else
11628 echo "no"
11631 echo "checking configure summary"
11632 if test "$cross_compiling" = yes; then
11634 else
11635 cat > conftest.$ac_ext <<EOF
11636 #line 11637 "configure"
11637 #include "confdefs.h"
11638 #include "${srcdir-.}/tests/summary.c"
11640 if { (eval echo configure:11641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11641 then
11642 echo "configure OK";
11643 else
11644 echo "configure: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11646 rm -fr conftest*
11647 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11649 rm -fr conftest*
11653 builddir=`pwd`
11656 trap '' 1 2 15
11657 cat > confcache <<\EOF
11658 # This file is a shell script that caches the results of configure
11659 # tests run on this system so they can be shared between configure
11660 # scripts and configure runs. It is not useful on other systems.
11661 # If it contains results you don't want to keep, you may remove or edit it.
11663 # By default, configure uses ./config.cache as the cache file,
11664 # creating it if it does not exist already. You can give configure
11665 # the --cache-file=FILE option to use a different cache file; that is
11666 # what configure does when it calls configure scripts in
11667 # subdirectories, so they share the cache.
11668 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11669 # config.status only pays attention to the cache file if you give it the
11670 # --recheck option to rerun configure.
11673 # The following way of writing the cache mishandles newlines in values,
11674 # but we know of no workaround that is simple, portable, and efficient.
11675 # So, don't put newlines in cache variables' values.
11676 # Ultrix sh set writes to stderr and can't be redirected directly,
11677 # and sets the high bit in the cache file unless we assign to the vars.
11678 (set) 2>&1 |
11679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11680 *ac_space=\ *)
11681 # `set' does not quote correctly, so add quotes (double-quote substitution
11682 # turns \\\\ into \\, and sed turns \\ into \).
11683 sed -n \
11684 -e "s/'/'\\\\''/g" \
11685 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11688 # `set' quotes correctly as required by POSIX, so do not add quotes.
11689 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11691 esac >> confcache
11692 if cmp -s $cache_file confcache; then
11694 else
11695 if test -w $cache_file; then
11696 echo "updating cache $cache_file"
11697 cat confcache > $cache_file
11698 else
11699 echo "not updating unwritable cache $cache_file"
11702 rm -f confcache
11704 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11707 # Let make expand exec_prefix.
11708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11710 # Any assignment to VPATH causes Sun make to only execute
11711 # the first set of double-colon rules, so remove it if not needed.
11712 # If there is a colon in the path, we need to keep it.
11713 if test "x$srcdir" = x.; then
11714 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11717 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11719 DEFS=-DHAVE_CONFIG_H
11721 # Without the "./", some shells look in PATH for config.status.
11722 : ${CONFIG_STATUS=./config.status}
11724 echo creating $CONFIG_STATUS
11725 rm -f $CONFIG_STATUS
11726 cat > $CONFIG_STATUS <<EOF
11727 #! /bin/sh
11728 # Generated automatically by configure.
11729 # Run this file to recreate the current configuration.
11730 # This directory was configured as follows,
11731 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11733 # $0 $ac_configure_args
11735 # Compiler output produced by configure, useful for debugging
11736 # configure, is in ./config.log if it exists.
11738 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11739 for ac_option
11741 case "\$ac_option" in
11742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11743 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11744 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11745 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11746 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11747 exit 0 ;;
11748 -help | --help | --hel | --he | --h)
11749 echo "\$ac_cs_usage"; exit 0 ;;
11750 *) echo "\$ac_cs_usage"; exit 1 ;;
11751 esac
11752 done
11754 ac_given_srcdir=$srcdir
11755 ac_given_INSTALL="$INSTALL"
11757 trap 'rm -fr `echo "include/stamp-h Makefile script/samba-init.d include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11759 cat >> $CONFIG_STATUS <<EOF
11761 # Protect against being on the right side of a sed subst in config.status.
11762 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11763 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11764 $ac_vpsub
11765 $extrasub
11766 s%@SHELL@%$SHELL%g
11767 s%@CFLAGS@%$CFLAGS%g
11768 s%@CPPFLAGS@%$CPPFLAGS%g
11769 s%@CXXFLAGS@%$CXXFLAGS%g
11770 s%@FFLAGS@%$FFLAGS%g
11771 s%@DEFS@%$DEFS%g
11772 s%@LDFLAGS@%$LDFLAGS%g
11773 s%@LIBS@%$LIBS%g
11774 s%@exec_prefix@%$exec_prefix%g
11775 s%@prefix@%$prefix%g
11776 s%@program_transform_name@%$program_transform_name%g
11777 s%@bindir@%$bindir%g
11778 s%@sbindir@%$sbindir%g
11779 s%@libexecdir@%$libexecdir%g
11780 s%@datadir@%$datadir%g
11781 s%@sysconfdir@%$sysconfdir%g
11782 s%@sharedstatedir@%$sharedstatedir%g
11783 s%@localstatedir@%$localstatedir%g
11784 s%@libdir@%$libdir%g
11785 s%@includedir@%$includedir%g
11786 s%@oldincludedir@%$oldincludedir%g
11787 s%@infodir@%$infodir%g
11788 s%@mandir@%$mandir%g
11789 s%@RUNPROG@%$RUNPROG%g
11790 s%@MPROGS@%$MPROGS%g
11791 s%@LDSHFLAGS@%$LDSHFLAGS%g
11792 s%@HOST_OS@%$HOST_OS%g
11793 s%@WRAP@%$WRAP%g
11794 s%@WRAP32@%$WRAP32%g
11795 s%@PICFLAG@%$PICFLAG%g
11796 s%@SHLIBEXT@%$SHLIBEXT%g
11797 s%@CC@%$CC%g
11798 s%@CPP@%$CPP%g
11799 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11800 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11801 s%@INSTALL_DATA@%$INSTALL_DATA%g
11802 s%@AWK@%$AWK%g
11803 s%@host@%$host%g
11804 s%@host_alias@%$host_alias%g
11805 s%@host_cpu@%$host_cpu%g
11806 s%@host_vendor@%$host_vendor%g
11807 s%@host_os@%$host_os%g
11808 s%@build@%$build%g
11809 s%@build_alias@%$build_alias%g
11810 s%@build_cpu@%$build_cpu%g
11811 s%@build_vendor@%$build_vendor%g
11812 s%@build_os@%$build_os%g
11813 s%@RANLIB@%$RANLIB%g
11814 s%@LN_S@%$LN_S%g
11815 s%@LIBTOOL@%$LIBTOOL%g
11816 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11817 s%@BROKEN_CC@%$BROKEN_CC%g
11818 s%@target@%$target%g
11819 s%@target_alias@%$target_alias%g
11820 s%@target_cpu@%$target_cpu%g
11821 s%@target_vendor@%$target_vendor%g
11822 s%@target_os@%$target_os%g
11823 s%@MAINT@%$MAINT%g
11824 s%@AUTOCONF@%$AUTOCONF%g
11825 s%@AUTOHEADER@%$AUTOHEADER%g
11826 s%@nssmodule@%$nssmodule%g
11827 s%@pam_winbind@%$pam_winbind%g
11828 s%@LIBOBJS@%$LIBOBJS%g
11829 s%@ROFF@%$ROFF%g
11830 s%@pam_modules@%$pam_modules%g
11831 s%@SAM_PWDB_LIB@%$SAM_PWDB_LIB%g
11832 s%@QUOTAOBJS@%$QUOTAOBJS%g
11833 s%@sambaconfdir@%$sambaconfdir%g
11834 s%@privatedir@%$privatedir%g
11835 s%@lockdir@%$lockdir%g
11836 s%@swatdir@%$swatdir%g
11837 s%@builddir@%$builddir%g
11839 CEOF
11842 cat >> $CONFIG_STATUS <<\EOF
11844 # Split the substitutions into bite-sized pieces for seds with
11845 # small command number limits, like on Digital OSF/1 and HP-UX.
11846 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11847 ac_file=1 # Number of current file.
11848 ac_beg=1 # First line for current file.
11849 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11850 ac_more_lines=:
11851 ac_sed_cmds=""
11852 while $ac_more_lines; do
11853 if test $ac_beg -gt 1; then
11854 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11855 else
11856 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11858 if test ! -s conftest.s$ac_file; then
11859 ac_more_lines=false
11860 rm -f conftest.s$ac_file
11861 else
11862 if test -z "$ac_sed_cmds"; then
11863 ac_sed_cmds="sed -f conftest.s$ac_file"
11864 else
11865 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11867 ac_file=`expr $ac_file + 1`
11868 ac_beg=$ac_end
11869 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11871 done
11872 if test -z "$ac_sed_cmds"; then
11873 ac_sed_cmds=cat
11877 cat >> $CONFIG_STATUS <<EOF
11879 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/samba-init.d"}
11881 cat >> $CONFIG_STATUS <<\EOF
11882 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11883 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11884 case "$ac_file" in
11885 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11886 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11887 *) ac_file_in="${ac_file}.in" ;;
11888 esac
11890 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11892 # Remove last slash and all that follows it. Not all systems have dirname.
11893 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11894 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11895 # The file is in a subdirectory.
11896 test ! -d "$ac_dir" && mkdir "$ac_dir"
11897 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11898 # A "../" for each directory in $ac_dir_suffix.
11899 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11900 else
11901 ac_dir_suffix= ac_dots=
11904 case "$ac_given_srcdir" in
11905 .) srcdir=.
11906 if test -z "$ac_dots"; then top_srcdir=.
11907 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11908 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11909 *) # Relative path.
11910 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11911 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11912 esac
11914 case "$ac_given_INSTALL" in
11915 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11916 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11917 esac
11919 echo creating "$ac_file"
11920 rm -f "$ac_file"
11921 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11922 case "$ac_file" in
11923 *Makefile*) ac_comsub="1i\\
11924 # $configure_input" ;;
11925 *) ac_comsub= ;;
11926 esac
11928 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11929 sed -e "$ac_comsub
11930 s%@configure_input@%$configure_input%g
11931 s%@srcdir@%$srcdir%g
11932 s%@top_srcdir@%$top_srcdir%g
11933 s%@INSTALL@%$INSTALL%g
11934 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11935 fi; done
11936 rm -f conftest.s*
11938 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11939 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11941 # ac_d sets the value in "#define NAME VALUE" lines.
11942 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11943 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11944 ac_dC='\3'
11945 ac_dD='%g'
11946 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11947 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11948 ac_uB='\([ ]\)%\1#\2define\3'
11949 ac_uC=' '
11950 ac_uD='\4%g'
11951 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11952 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11953 ac_eB='$%\1#\2define\3'
11954 ac_eC=' '
11955 ac_eD='%g'
11957 if test "${CONFIG_HEADERS+set}" != set; then
11959 cat >> $CONFIG_STATUS <<EOF
11960 CONFIG_HEADERS="include/config.h"
11962 cat >> $CONFIG_STATUS <<\EOF
11964 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11966 case "$ac_file" in
11967 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11968 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11969 *) ac_file_in="${ac_file}.in" ;;
11970 esac
11972 echo creating $ac_file
11974 rm -f conftest.frag conftest.in conftest.out
11975 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11976 cat $ac_file_inputs > conftest.in
11980 # Transform confdefs.h into a sed script conftest.vals that substitutes
11981 # the proper values into config.h.in to produce config.h. And first:
11982 # Protect against being on the right side of a sed subst in config.status.
11983 # Protect against being in an unquoted here document in config.status.
11984 rm -f conftest.vals
11985 cat > conftest.hdr <<\EOF
11986 s/[\\&%]/\\&/g
11987 s%[\\$`]%\\&%g
11988 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11989 s%ac_d%ac_u%gp
11990 s%ac_u%ac_e%gp
11992 sed -n -f conftest.hdr confdefs.h > conftest.vals
11993 rm -f conftest.hdr
11995 # This sed command replaces #undef with comments. This is necessary, for
11996 # example, in the case of _POSIX_SOURCE, which is predefined and required
11997 # on some systems where configure will not decide to define it.
11998 cat >> conftest.vals <<\EOF
11999 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12002 # Break up conftest.vals because some shells have a limit on
12003 # the size of here documents, and old seds have small limits too.
12005 rm -f conftest.tail
12006 while :
12008 ac_lines=`grep -c . conftest.vals`
12009 # grep -c gives empty output for an empty file on some AIX systems.
12010 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12011 # Write a limited-size here document to conftest.frag.
12012 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12013 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12014 echo 'CEOF
12015 sed -f conftest.frag conftest.in > conftest.out
12016 rm -f conftest.in
12017 mv conftest.out conftest.in
12018 ' >> $CONFIG_STATUS
12019 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12020 rm -f conftest.vals
12021 mv conftest.tail conftest.vals
12022 done
12023 rm -f conftest.vals
12025 cat >> $CONFIG_STATUS <<\EOF
12026 rm -f conftest.frag conftest.h
12027 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12028 cat conftest.in >> conftest.h
12029 rm -f conftest.in
12030 if cmp -s $ac_file conftest.h 2>/dev/null; then
12031 echo "$ac_file is unchanged"
12032 rm -f conftest.h
12033 else
12034 # Remove last slash and all that follows it. Not all systems have dirname.
12035 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12036 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12037 # The file is in a subdirectory.
12038 test ! -d "$ac_dir" && mkdir "$ac_dir"
12040 rm -f $ac_file
12041 mv conftest.h $ac_file
12043 fi; done
12046 cat >> $CONFIG_STATUS <<EOF
12049 cat >> $CONFIG_STATUS <<\EOF
12051 case " $CONFIG_FILES " in
12052 *" script/samba-init.d "*) chmod +x script/samba-init.d
12053 esac
12055 exit 0
12057 chmod +x $CONFIG_STATUS
12058 rm -fr confdefs* $ac_clean_files
12059 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12062 echo ""
12063 echo "prefix : $prefix"
12064 echo "exec_prefix : $exec_prefix"
12065 echo "bindir : $bindir"
12066 echo "sbindir : $sbindir"
12067 echo "libdir : $libdir"
12068 echo "vardir : $localstatedir"
12069 echo "sysconfdir : $sysconfdir"
12070 echo ""
12071 echo "sambaconfdir : $sambaconfdir"
12072 echo "privatedir : $privatedir"
12073 echo "lockdir : $lockdir"
12074 echo "swatdir : $swatdir"
12075 echo ""