Removal of unused code - always a good thing :-).
[Samba.git] / source / configure
blob3127c65949777337ce51909125406967c7802707
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-shared[=PKGS] build shared libraries [default=yes]"
17 ac_help="$ac_help
18 --enable-static[=PKGS] build static 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 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
28 ac_help="$ac_help
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
31 ac_help="$ac_help
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
34 ac_help="$ac_help
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
37 ac_help="$ac_help
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
40 ac_help="$ac_help
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
43 ac_help="$ac_help
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
46 ac_help="$ac_help
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
49 ac_help="$ac_help
50 --with-tdbpwd Include TDB password database
51 --without-tdbpwd Don't include TDB password database (default)"
52 ac_help="$ac_help
53 --with-ldap Include LDAP support
54 --without-ldap Don't include LDAP support (default)"
55 ac_help="$ac_help
56 --with-nisplus Include NISPLUS password database support
57 --without-nisplus Don't include NISPLUS password database support (default)"
58 ac_help="$ac_help
59 --with-nisplus-home Include NISPLUS_HOME support
60 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
61 ac_help="$ac_help
62 --with-ssl Include SSL support
63 --without-ssl Don't include SSL support (default)
64 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
65 ac_help="$ac_help
66 --with-syslog Include experimental SYSLOG support
67 --without-syslog Don't include SYSLOG support (default)"
68 ac_help="$ac_help
69 --with-profile Include profile support
70 --without-profile Don't include profile support (default)"
71 ac_help="$ac_help
72 --with-netatalk Include experimental Netatalk support
73 --without-netatalk Don't include experimental Netatalk support (default)"
74 ac_help="$ac_help
75 --with-quotas Include experimental disk-quota support
76 --without-quotas Don't include experimental disk-quota support (default)"
77 ac_help="$ac_help
78 --with-utmp Include experimental utmp accounting
79 --without-utmp Don't include experimental utmp accounting (default)"
80 ac_help="$ac_help
81 --with-msdfs Include MS Dfs support
82 --without-msdfs Don't include MS Dfs support (default)"
83 ac_help="$ac_help
84 --with-vfs Include Samba vfs support
85 --without-vfs Don't include Samba vfs support (default)"
86 ac_help="$ac_help
87 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
88 ac_help="$ac_help
89 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
90 ac_help="$ac_help
91 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
92 ac_help="$ac_help
93 --with-spinlocks use spin locks instead of fcntl locks "
94 ac_help="$ac_help
95 --with-posix-acls Include POSIX ACL support
96 --without-posix-acls Don't include POSIX ACL support (default)"
98 # Initialize some variables set by options.
99 # The variables have the same names as the options, with
100 # dashes changed to underlines.
101 build=NONE
102 cache_file=./config.cache
103 exec_prefix=NONE
104 host=NONE
105 no_create=
106 nonopt=NONE
107 no_recursion=
108 prefix=NONE
109 program_prefix=NONE
110 program_suffix=NONE
111 program_transform_name=s,x,x,
112 silent=
113 site=
114 srcdir=
115 target=NONE
116 verbose=
117 x_includes=NONE
118 x_libraries=NONE
119 bindir='${exec_prefix}/bin'
120 sbindir='${exec_prefix}/sbin'
121 libexecdir='${exec_prefix}/libexec'
122 datadir='${prefix}/share'
123 sysconfdir='${prefix}/etc'
124 sharedstatedir='${prefix}/com'
125 localstatedir='${prefix}/var'
126 libdir='${exec_prefix}/lib'
127 includedir='${prefix}/include'
128 oldincludedir='/usr/include'
129 infodir='${prefix}/info'
130 mandir='${prefix}/man'
132 # Initialize some other variables.
133 subdirs=
134 MFLAGS= MAKEFLAGS=
135 SHELL=${CONFIG_SHELL-/bin/sh}
136 # Maximum number of lines to put in a shell here document.
137 ac_max_here_lines=12
139 ac_prev=
140 for ac_option
143 # If the previous option needs an argument, assign it.
144 if test -n "$ac_prev"; then
145 eval "$ac_prev=\$ac_option"
146 ac_prev=
147 continue
150 case "$ac_option" in
151 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
152 *) ac_optarg= ;;
153 esac
155 # Accept the important Cygnus configure options, so we can diagnose typos.
157 case "$ac_option" in
159 -bindir | --bindir | --bindi | --bind | --bin | --bi)
160 ac_prev=bindir ;;
161 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
162 bindir="$ac_optarg" ;;
164 -build | --build | --buil | --bui | --bu)
165 ac_prev=build ;;
166 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
167 build="$ac_optarg" ;;
169 -cache-file | --cache-file | --cache-fil | --cache-fi \
170 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
171 ac_prev=cache_file ;;
172 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
173 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
174 cache_file="$ac_optarg" ;;
176 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
177 ac_prev=datadir ;;
178 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
179 | --da=*)
180 datadir="$ac_optarg" ;;
182 -disable-* | --disable-*)
183 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}=no" ;;
191 -enable-* | --enable-*)
192 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
193 # Reject names that are not valid shell variable names.
194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
198 case "$ac_option" in
199 *=*) ;;
200 *) ac_optarg=yes ;;
201 esac
202 eval "enable_${ac_feature}='$ac_optarg'" ;;
204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
206 | --exec | --exe | --ex)
207 ac_prev=exec_prefix ;;
208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
210 | --exec=* | --exe=* | --ex=*)
211 exec_prefix="$ac_optarg" ;;
213 -gas | --gas | --ga | --g)
214 # Obsolete; use --with-gas.
215 with_gas=yes ;;
217 -help | --help | --hel | --he)
218 # Omit some internal or obsolete options to make the list less imposing.
219 # This message is too long to be a string in the A/UX 3.1 sh.
220 cat << EOF
221 Usage: configure [options] [host]
222 Options: [defaults in brackets after descriptions]
223 Configuration:
224 --cache-file=FILE cache test results in FILE
225 --help print this message
226 --no-create do not create output files
227 --quiet, --silent do not print \`checking...' messages
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
231 [$ac_default_prefix]
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
233 [same as prefix]
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
238 [PREFIX/share]
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
241 [PREFIX/com]
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
254 cat << EOF
255 Host type:
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
270 exit 0 ;;
272 -host | --host | --hos | --ho)
273 ac_prev=host ;;
274 -host=* | --host=* | --hos=* | --ho=*)
275 host="$ac_optarg" ;;
277 -includedir | --includedir | --includedi | --included | --include \
278 | --includ | --inclu | --incl | --inc)
279 ac_prev=includedir ;;
280 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
281 | --includ=* | --inclu=* | --incl=* | --inc=*)
282 includedir="$ac_optarg" ;;
284 -infodir | --infodir | --infodi | --infod | --info | --inf)
285 ac_prev=infodir ;;
286 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
287 infodir="$ac_optarg" ;;
289 -libdir | --libdir | --libdi | --libd)
290 ac_prev=libdir ;;
291 -libdir=* | --libdir=* | --libdi=* | --libd=*)
292 libdir="$ac_optarg" ;;
294 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
295 | --libexe | --libex | --libe)
296 ac_prev=libexecdir ;;
297 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
298 | --libexe=* | --libex=* | --libe=*)
299 libexecdir="$ac_optarg" ;;
301 -localstatedir | --localstatedir | --localstatedi | --localstated \
302 | --localstate | --localstat | --localsta | --localst \
303 | --locals | --local | --loca | --loc | --lo)
304 ac_prev=localstatedir ;;
305 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
306 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
307 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
308 localstatedir="$ac_optarg" ;;
310 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
311 ac_prev=mandir ;;
312 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
313 mandir="$ac_optarg" ;;
315 -nfp | --nfp | --nf)
316 # Obsolete; use --without-fp.
317 with_fp=no ;;
319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
320 | --no-cr | --no-c)
321 no_create=yes ;;
323 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
324 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 no_recursion=yes ;;
327 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
328 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
329 | --oldin | --oldi | --old | --ol | --o)
330 ac_prev=oldincludedir ;;
331 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
332 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
333 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
334 oldincludedir="$ac_optarg" ;;
336 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
337 ac_prev=prefix ;;
338 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
339 prefix="$ac_optarg" ;;
341 -program-prefix | --program-prefix | --program-prefi | --program-pref \
342 | --program-pre | --program-pr | --program-p)
343 ac_prev=program_prefix ;;
344 -program-prefix=* | --program-prefix=* | --program-prefi=* \
345 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
346 program_prefix="$ac_optarg" ;;
348 -program-suffix | --program-suffix | --program-suffi | --program-suff \
349 | --program-suf | --program-su | --program-s)
350 ac_prev=program_suffix ;;
351 -program-suffix=* | --program-suffix=* | --program-suffi=* \
352 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
353 program_suffix="$ac_optarg" ;;
355 -program-transform-name | --program-transform-name \
356 | --program-transform-nam | --program-transform-na \
357 | --program-transform-n | --program-transform- \
358 | --program-transform | --program-transfor \
359 | --program-transfo | --program-transf \
360 | --program-trans | --program-tran \
361 | --progr-tra | --program-tr | --program-t)
362 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
373 | -silent | --silent | --silen | --sile | --sil)
374 silent=yes ;;
376 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
377 ac_prev=sbindir ;;
378 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
379 | --sbi=* | --sb=*)
380 sbindir="$ac_optarg" ;;
382 -sharedstatedir | --sharedstatedir | --sharedstatedi \
383 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
384 | --sharedst | --shareds | --shared | --share | --shar \
385 | --sha | --sh)
386 ac_prev=sharedstatedir ;;
387 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
388 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
389 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
390 | --sha=* | --sh=*)
391 sharedstatedir="$ac_optarg" ;;
393 -site | --site | --sit)
394 ac_prev=site ;;
395 -site=* | --site=* | --sit=*)
396 site="$ac_optarg" ;;
398 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
399 ac_prev=srcdir ;;
400 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
401 srcdir="$ac_optarg" ;;
403 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
404 | --syscon | --sysco | --sysc | --sys | --sy)
405 ac_prev=sysconfdir ;;
406 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
407 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
408 sysconfdir="$ac_optarg" ;;
410 -target | --target | --targe | --targ | --tar | --ta | --t)
411 ac_prev=target ;;
412 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
413 target="$ac_optarg" ;;
415 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 verbose=yes ;;
418 -version | --version | --versio | --versi | --vers)
419 echo "configure generated by autoconf version 2.13"
420 exit 0 ;;
422 -with-* | --with-*)
423 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 case "$ac_option" in
430 *=*) ;;
431 *) ac_optarg=yes ;;
432 esac
433 eval "with_${ac_package}='$ac_optarg'" ;;
435 -without-* | --without-*)
436 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package=`echo $ac_package| sed 's/-/_/g'`
442 eval "with_${ac_package}=no" ;;
444 --x)
445 # Obsolete; use --with-x.
446 with_x=yes ;;
448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449 | --x-incl | --x-inc | --x-in | --x-i)
450 ac_prev=x_includes ;;
451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
453 x_includes="$ac_optarg" ;;
455 -x-libraries | --x-libraries | --x-librarie | --x-librari \
456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457 ac_prev=x_libraries ;;
458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
460 x_libraries="$ac_optarg" ;;
462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472 nonopt="$ac_option"
475 esac
476 done
478 if test -n "$ac_prev"; then
479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484 # File descriptor usage:
485 # 0 standard input
486 # 1 file creation
487 # 2 errors and warnings
488 # 3 some systems may open it to /dev/tty
489 # 4 used on the Kubota Titan
490 # 6 checking for... messages and results
491 # 5 compiler messages saved in config.log
492 if test "$silent" = yes; then
493 exec 6>/dev/null
494 else
495 exec 6>&1
497 exec 5>./config.log
499 echo "\
500 This file contains any messages produced by compilers while
501 running configure, to aid debugging if configure makes a mistake.
502 " 1>&5
504 # Strip out --no-create and --no-recursion so they do not pile up.
505 # Also quote any args containing shell metacharacters.
506 ac_configure_args=
507 for ac_arg
509 case "$ac_arg" in
510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
511 | --no-cr | --no-c) ;;
512 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
513 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
515 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
516 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
517 esac
518 done
520 # NLS nuisances.
521 # Only set these to C if already set. These must not be set unconditionally
522 # because not all systems understand e.g. LANG=C (notably SCO).
523 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
524 # Non-C LC_CTYPE values break the ctype check.
525 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
526 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
527 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
528 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
531 rm -rf conftest* confdefs.h
532 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 echo > confdefs.h
535 # A filename unique to this package, relative to the directory that
536 # configure is in, which we can look for to find out if srcdir is correct.
537 ac_unique_file=include/includes.h
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted=yes
542 # Try the directory containing this script, then its parent.
543 ac_prog=$0
544 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
546 srcdir=$ac_confdir
547 if test ! -r $srcdir/$ac_unique_file; then
548 srcdir=..
550 else
551 ac_srcdir_defaulted=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
556 else
557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562 # Prefer explicitly selected file to automatically selected ones.
563 if test -z "$CONFIG_SITE"; then
564 if test "x$prefix" != xNONE; then
565 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
566 else
567 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 for ac_site_file in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
573 . "$ac_site_file"
575 done
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
579 . $cache_file
580 else
581 echo "creating cache $cache_file"
582 > $cache_file
585 ac_ext=c
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp='$CPP $CPPFLAGS'
588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling=$ac_cv_prog_cc_cross
592 ac_exeext=
593 ac_objext=o
594 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
597 ac_n= ac_c='
598 ' ac_t=' '
599 else
600 ac_n=-n ac_c= ac_t=
602 else
603 ac_n= ac_c='\c' ac_t=
608 # we want to be compatibe with older versions of Samba
621 # compile with optimisation and without debugging by default
622 CFLAGS=${CFLAGS-"-O"}
624 # Extract the first word of "gcc", so it can be a program name with args.
625 set dummy gcc; ac_word=$2
626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
627 echo "configure:628: checking for $ac_word" >&5
628 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
630 else
631 if test -n "$CC"; then
632 ac_cv_prog_CC="$CC" # Let the user override the test.
633 else
634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
635 ac_dummy="$PATH"
636 for ac_dir in $ac_dummy; do
637 test -z "$ac_dir" && ac_dir=.
638 if test -f $ac_dir/$ac_word; then
639 ac_cv_prog_CC="gcc"
640 break
642 done
643 IFS="$ac_save_ifs"
646 CC="$ac_cv_prog_CC"
647 if test -n "$CC"; then
648 echo "$ac_t""$CC" 1>&6
649 else
650 echo "$ac_t""no" 1>&6
653 if test -z "$CC"; then
654 # Extract the first word of "cc", so it can be a program name with args.
655 set dummy cc; ac_word=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
660 else
661 if test -n "$CC"; then
662 ac_cv_prog_CC="$CC" # Let the user override the test.
663 else
664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
665 ac_prog_rejected=no
666 ac_dummy="$PATH"
667 for ac_dir in $ac_dummy; do
668 test -z "$ac_dir" && ac_dir=.
669 if test -f $ac_dir/$ac_word; then
670 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
671 ac_prog_rejected=yes
672 continue
674 ac_cv_prog_CC="cc"
675 break
677 done
678 IFS="$ac_save_ifs"
679 if test $ac_prog_rejected = yes; then
680 # We found a bogon in the path, so make sure we never use it.
681 set dummy $ac_cv_prog_CC
682 shift
683 if test $# -gt 0; then
684 # We chose a different compiler from the bogus one.
685 # However, it has the same basename, so the bogon will be chosen
686 # first if we set CC to just the basename; use the full file name.
687 shift
688 set dummy "$ac_dir/$ac_word" "$@"
689 shift
690 ac_cv_prog_CC="$@"
695 CC="$ac_cv_prog_CC"
696 if test -n "$CC"; then
697 echo "$ac_t""$CC" 1>&6
698 else
699 echo "$ac_t""no" 1>&6
702 if test -z "$CC"; then
703 case "`uname -s`" in
704 *win32* | *WIN32*)
705 # Extract the first word of "cl", so it can be a program name with args.
706 set dummy cl; ac_word=$2
707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
708 echo "configure:709: checking for $ac_word" >&5
709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
711 else
712 if test -n "$CC"; then
713 ac_cv_prog_CC="$CC" # Let the user override the test.
714 else
715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
716 ac_dummy="$PATH"
717 for ac_dir in $ac_dummy; do
718 test -z "$ac_dir" && ac_dir=.
719 if test -f $ac_dir/$ac_word; then
720 ac_cv_prog_CC="cl"
721 break
723 done
724 IFS="$ac_save_ifs"
727 CC="$ac_cv_prog_CC"
728 if test -n "$CC"; then
729 echo "$ac_t""$CC" 1>&6
730 else
731 echo "$ac_t""no" 1>&6
734 esac
736 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
739 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
740 echo "configure:741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
742 ac_ext=c
743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
744 ac_cpp='$CPP $CPPFLAGS'
745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
747 cross_compiling=$ac_cv_prog_cc_cross
749 cat > conftest.$ac_ext << EOF
751 #line 752 "configure"
752 #include "confdefs.h"
754 main(){return(0);}
756 if { (eval echo configure:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
757 ac_cv_prog_cc_works=yes
758 # If we can't run a trivial program, we are probably using a cross compiler.
759 if (./conftest; exit) 2>/dev/null; then
760 ac_cv_prog_cc_cross=no
761 else
762 ac_cv_prog_cc_cross=yes
764 else
765 echo "configure: failed program was:" >&5
766 cat conftest.$ac_ext >&5
767 ac_cv_prog_cc_works=no
769 rm -fr conftest*
770 ac_ext=c
771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
772 ac_cpp='$CPP $CPPFLAGS'
773 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
774 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
775 cross_compiling=$ac_cv_prog_cc_cross
777 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
778 if test $ac_cv_prog_cc_works = no; then
779 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
783 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
784 cross_compiling=$ac_cv_prog_cc_cross
786 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
787 echo "configure:788: checking whether we are using GNU C" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
790 else
791 cat > conftest.c <<EOF
792 #ifdef __GNUC__
793 yes;
794 #endif
796 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
797 ac_cv_prog_gcc=yes
798 else
799 ac_cv_prog_gcc=no
803 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
805 if test $ac_cv_prog_gcc = yes; then
806 GCC=yes
807 else
808 GCC=
811 ac_test_CFLAGS="${CFLAGS+set}"
812 ac_save_CFLAGS="$CFLAGS"
813 CFLAGS=
814 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
815 echo "configure:816: checking whether ${CC-cc} accepts -g" >&5
816 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
818 else
819 echo 'void f(){}' > conftest.c
820 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
821 ac_cv_prog_cc_g=yes
822 else
823 ac_cv_prog_cc_g=no
825 rm -f conftest*
829 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
830 if test "$ac_test_CFLAGS" = set; then
831 CFLAGS="$ac_save_CFLAGS"
832 elif test $ac_cv_prog_cc_g = yes; then
833 if test "$GCC" = yes; then
834 CFLAGS="-g -O2"
835 else
836 CFLAGS="-g"
838 else
839 if test "$GCC" = yes; then
840 CFLAGS="-O2"
841 else
842 CFLAGS=
846 ac_aux_dir=
847 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
848 if test -f $ac_dir/install-sh; then
849 ac_aux_dir=$ac_dir
850 ac_install_sh="$ac_aux_dir/install-sh -c"
851 break
852 elif test -f $ac_dir/install.sh; then
853 ac_aux_dir=$ac_dir
854 ac_install_sh="$ac_aux_dir/install.sh -c"
855 break
857 done
858 if test -z "$ac_aux_dir"; then
859 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
861 ac_config_guess=$ac_aux_dir/config.guess
862 ac_config_sub=$ac_aux_dir/config.sub
863 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
865 # Find a good install program. We prefer a C program (faster),
866 # so one script is as good as another. But avoid the broken or
867 # incompatible versions:
868 # SysV /etc/install, /usr/sbin/install
869 # SunOS /usr/etc/install
870 # IRIX /sbin/install
871 # AIX /bin/install
872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
875 # ./install, which can be erroneously created by make from ./install.sh.
876 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
877 echo "configure:878: checking for a BSD compatible install" >&5
878 if test -z "$INSTALL"; then
879 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
883 for ac_dir in $PATH; do
884 # Account for people who put trailing slashes in PATH elements.
885 case "$ac_dir/" in
886 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
888 # OSF1 and SCO ODT 3.0 have their own names for install.
889 # Don't use installbsd from OSF since it installs stuff as root
890 # by default.
891 for ac_prog in ginstall scoinst install; do
892 if test -f $ac_dir/$ac_prog; then
893 if test $ac_prog = install &&
894 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
895 # AIX install. It has an incompatible calling convention.
897 else
898 ac_cv_path_install="$ac_dir/$ac_prog -c"
899 break 2
902 done
904 esac
905 done
906 IFS="$ac_save_IFS"
909 if test "${ac_cv_path_install+set}" = set; then
910 INSTALL="$ac_cv_path_install"
911 else
912 # As a last resort, use the slow shell script. We don't cache a
913 # path for INSTALL within a source directory, because that will
914 # break other packages using the cache if that directory is
915 # removed, or if the path is relative.
916 INSTALL="$ac_install_sh"
919 echo "$ac_t""$INSTALL" 1>&6
921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
922 # It thinks the first close brace ends the variable substitution.
923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
929 for ac_prog in gawk mawk nawk awk
931 # Extract the first word of "$ac_prog", so it can be a program name with args.
932 set dummy $ac_prog; ac_word=$2
933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
934 echo "configure:935: checking for $ac_word" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
937 else
938 if test -n "$AWK"; then
939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
940 else
941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
942 ac_dummy="$PATH"
943 for ac_dir in $ac_dummy; do
944 test -z "$ac_dir" && ac_dir=.
945 if test -f $ac_dir/$ac_word; then
946 ac_cv_prog_AWK="$ac_prog"
947 break
949 done
950 IFS="$ac_save_ifs"
953 AWK="$ac_cv_prog_AWK"
954 if test -n "$AWK"; then
955 echo "$ac_t""$AWK" 1>&6
956 else
957 echo "$ac_t""no" 1>&6
960 test -n "$AWK" && break
961 done
963 # Check whether --enable-shared or --disable-shared was given.
964 if test "${enable_shared+set}" = set; then
965 enableval="$enable_shared"
966 p=${PACKAGE-default}
967 case "$enableval" in
968 yes) enable_shared=yes ;;
969 no) enable_shared=no ;;
971 enable_shared=no
972 # Look at the argument we got. We use all the common list separators.
973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
974 for pkg in $enableval; do
975 if test "X$pkg" = "X$p"; then
976 enable_shared=yes
978 done
979 IFS="$ac_save_ifs"
981 esac
982 else
983 enable_shared=yes
986 # Check whether --enable-static or --disable-static was given.
987 if test "${enable_static+set}" = set; then
988 enableval="$enable_static"
989 p=${PACKAGE-default}
990 case "$enableval" in
991 yes) enable_static=yes ;;
992 no) enable_static=no ;;
994 enable_static=no
995 # Look at the argument we got. We use all the common list separators.
996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
997 for pkg in $enableval; do
998 if test "X$pkg" = "X$p"; then
999 enable_static=yes
1001 done
1002 IFS="$ac_save_ifs"
1004 esac
1005 else
1006 enable_static=yes
1009 # Check whether --enable-fast-install or --disable-fast-install was given.
1010 if test "${enable_fast_install+set}" = set; then
1011 enableval="$enable_fast_install"
1012 p=${PACKAGE-default}
1013 case "$enableval" in
1014 yes) enable_fast_install=yes ;;
1015 no) enable_fast_install=no ;;
1017 enable_fast_install=no
1018 # Look at the argument we got. We use all the common list separators.
1019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1020 for pkg in $enableval; do
1021 if test "X$pkg" = "X$p"; then
1022 enable_fast_install=yes
1024 done
1025 IFS="$ac_save_ifs"
1027 esac
1028 else
1029 enable_fast_install=yes
1033 # Make sure we can run config.sub.
1034 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1035 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1038 echo $ac_n "checking host system type""... $ac_c" 1>&6
1039 echo "configure:1040: checking host system type" >&5
1041 host_alias=$host
1042 case "$host_alias" in
1043 NONE)
1044 case $nonopt in
1045 NONE)
1046 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1047 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1048 fi ;;
1049 *) host_alias=$nonopt ;;
1050 esac ;;
1051 esac
1053 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1054 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$host" 1>&6
1059 echo $ac_n "checking build system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking build system type" >&5
1062 build_alias=$build
1063 case "$build_alias" in
1064 NONE)
1065 case $nonopt in
1066 NONE) build_alias=$host_alias ;;
1067 *) build_alias=$nonopt ;;
1068 esac ;;
1069 esac
1071 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$build" 1>&6
1077 # Extract the first word of "ranlib", so it can be a program name with args.
1078 set dummy ranlib; ac_word=$2
1079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1080 echo "configure:1081: checking for $ac_word" >&5
1081 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1084 if test -n "$RANLIB"; then
1085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1086 else
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1088 ac_dummy="$PATH"
1089 for ac_dir in $ac_dummy; do
1090 test -z "$ac_dir" && ac_dir=.
1091 if test -f $ac_dir/$ac_word; then
1092 ac_cv_prog_RANLIB="ranlib"
1093 break
1095 done
1096 IFS="$ac_save_ifs"
1097 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1100 RANLIB="$ac_cv_prog_RANLIB"
1101 if test -n "$RANLIB"; then
1102 echo "$ac_t""$RANLIB" 1>&6
1103 else
1104 echo "$ac_t""no" 1>&6
1107 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1108 if test "${with_gnu_ld+set}" = set; then
1109 withval="$with_gnu_ld"
1110 test "$withval" = no || with_gnu_ld=yes
1111 else
1112 with_gnu_ld=no
1115 ac_prog=ld
1116 if test "$ac_cv_prog_gcc" = yes; then
1117 # Check if gcc -print-prog-name=ld gives a path.
1118 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1119 echo "configure:1120: checking for ld used by GCC" >&5
1120 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1121 case "$ac_prog" in
1122 # Accept absolute paths.
1123 [\\/]* | [A-Za-z]:[\\/]*)
1124 re_direlt='/[^/][^/]*/\.\./'
1125 # Canonicalize the path of ld
1126 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1127 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1128 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1129 done
1130 test -z "$LD" && LD="$ac_prog"
1133 # If it fails, then pretend we aren't using GCC.
1134 ac_prog=ld
1137 # If it is relative, then search for the first ld in PATH.
1138 with_gnu_ld=unknown
1140 esac
1141 elif test "$with_gnu_ld" = yes; then
1142 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1143 echo "configure:1144: checking for GNU ld" >&5
1144 else
1145 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1146 echo "configure:1147: checking for non-GNU ld" >&5
1148 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151 if test -z "$LD"; then
1152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1153 for ac_dir in $PATH; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1156 ac_cv_path_LD="$ac_dir/$ac_prog"
1157 # Check to see if the program is GNU ld. I'd rather use --version,
1158 # but apparently some GNU ld's only accept -v.
1159 # Break only if it was the GNU/non-GNU ld that we prefer.
1160 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1161 test "$with_gnu_ld" != no && break
1162 else
1163 test "$with_gnu_ld" != yes && break
1166 done
1167 IFS="$ac_save_ifs"
1168 else
1169 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1173 LD="$ac_cv_path_LD"
1174 if test -n "$LD"; then
1175 echo "$ac_t""$LD" 1>&6
1176 else
1177 echo "$ac_t""no" 1>&6
1179 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1180 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1181 echo "configure:1182: checking if the linker ($LD) is GNU ld" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1184 else
1185 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1186 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1187 ac_cv_prog_gnu_ld=yes
1188 else
1189 ac_cv_prog_gnu_ld=no
1193 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1196 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1197 echo "configure:1198: checking for BSD-compatible nm" >&5
1198 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 if test -n "$NM"; then
1202 # Let the user override the test.
1203 ac_cv_path_NM="$NM"
1204 else
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1206 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1207 test -z "$ac_dir" && ac_dir=.
1208 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1209 # Check to see if the nm accepts a BSD-compat flag.
1210 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1211 # nm: unknown option "B" ignored
1212 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1213 ac_cv_path_NM="$ac_dir/nm -B"
1214 break
1215 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1216 ac_cv_path_NM="$ac_dir/nm -p"
1217 break
1218 else
1219 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1220 continue # so that we can try to find one that supports BSD flags
1223 done
1224 IFS="$ac_save_ifs"
1225 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1229 NM="$ac_cv_path_NM"
1230 echo "$ac_t""$NM" 1>&6
1232 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether ln -s works" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237 rm -f conftestdata
1238 if ln -s X conftestdata 2>/dev/null
1239 then
1240 rm -f conftestdata
1241 ac_cv_prog_LN_S="ln -s"
1242 else
1243 ac_cv_prog_LN_S=ln
1246 LN_S="$ac_cv_prog_LN_S"
1247 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1248 echo "$ac_t""yes" 1>&6
1249 else
1250 echo "$ac_t""no" 1>&6
1254 case "$target" in
1255 NONE) lt_target="$host" ;;
1256 *) lt_target="$target" ;;
1257 esac
1259 # Check for any special flags to pass to ltconfig.
1260 libtool_flags="--cache-file=$cache_file"
1261 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1262 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1263 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1264 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1265 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1268 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1269 if test "${enable_libtool_lock+set}" = set; then
1270 enableval="$enable_libtool_lock"
1274 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1275 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1277 # Some flags need to be propagated to the compiler or linker for good
1278 # libtool support.
1279 case "$lt_target" in
1280 *-*-irix6*)
1281 # Find out which ABI we are using.
1282 echo '#line 1283 "configure"' > conftest.$ac_ext
1283 if { (eval echo configure:1284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1284 case "`/usr/bin/file conftest.o`" in
1285 *32-bit*)
1286 LD="${LD-ld} -32"
1288 *N32*)
1289 LD="${LD-ld} -n32"
1291 *64-bit*)
1292 LD="${LD-ld} -64"
1294 esac
1296 rm -rf conftest*
1299 *-*-sco3.2v5*)
1300 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1301 SAVE_CFLAGS="$CFLAGS"
1302 CFLAGS="$CFLAGS -belf"
1303 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether the C compiler needs -belf" >&5
1305 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1312 int main() {
1314 ; return 0; }
1316 if { (eval echo configure:1317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1317 rm -rf conftest*
1318 lt_cv_cc_needs_belf=yes
1319 else
1320 echo "configure: failed program was:" >&5
1321 cat conftest.$ac_ext >&5
1322 rm -rf conftest*
1323 lt_cv_cc_needs_belf=no
1325 rm -f conftest*
1328 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1329 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1331 CFLAGS="$SAVE_CFLAGS"
1336 esac
1339 # Save cache, so that ltconfig can load it
1340 cat > confcache <<\EOF
1341 # This file is a shell script that caches the results of configure
1342 # tests run on this system so they can be shared between configure
1343 # scripts and configure runs. It is not useful on other systems.
1344 # If it contains results you don't want to keep, you may remove or edit it.
1346 # By default, configure uses ./config.cache as the cache file,
1347 # creating it if it does not exist already. You can give configure
1348 # the --cache-file=FILE option to use a different cache file; that is
1349 # what configure does when it calls configure scripts in
1350 # subdirectories, so they share the cache.
1351 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1352 # config.status only pays attention to the cache file if you give it the
1353 # --recheck option to rerun configure.
1356 # The following way of writing the cache mishandles newlines in values,
1357 # but we know of no workaround that is simple, portable, and efficient.
1358 # So, don't put newlines in cache variables' values.
1359 # Ultrix sh set writes to stderr and can't be redirected directly,
1360 # and sets the high bit in the cache file unless we assign to the vars.
1361 (set) 2>&1 |
1362 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1363 *ac_space=\ *)
1364 # `set' does not quote correctly, so add quotes (double-quote substitution
1365 # turns \\\\ into \\, and sed turns \\ into \).
1366 sed -n \
1367 -e "s/'/'\\\\''/g" \
1368 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1371 # `set' quotes correctly as required by POSIX, so do not add quotes.
1372 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1374 esac >> confcache
1375 if cmp -s $cache_file confcache; then
1377 else
1378 if test -w $cache_file; then
1379 echo "updating cache $cache_file"
1380 cat confcache > $cache_file
1381 else
1382 echo "not updating unwritable cache $cache_file"
1385 rm -f confcache
1388 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1389 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1390 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1391 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1392 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1393 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1394 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1395 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1397 # Reload cache, that may have been modified by ltconfig
1398 if test -r "$cache_file"; then
1399 echo "loading cache $cache_file"
1400 . $cache_file
1401 else
1402 echo "creating cache $cache_file"
1403 > $cache_file
1407 # This can be used to rebuild libtool when needed
1408 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1410 # Always use our own libtool.
1411 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1413 # Redirect the config.log output again, so that the ltconfig log is not
1414 # clobbered by the next message.
1415 exec 5>>./config.log
1419 if test "x$CC" != xcc; then
1420 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether $CC and cc understand -c and -o together" >&5
1422 else
1423 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1424 echo "configure:1425: checking whether cc understands -c and -o together" >&5
1426 set dummy $CC; ac_cc="`echo $2 |
1427 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1428 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1430 else
1431 echo 'foo(){}' > conftest.c
1432 # Make sure it works both with $CC and with simple cc.
1433 # We do the test twice because some compilers refuse to overwrite an
1434 # existing .o file with -o, though they will create one.
1435 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1436 if { (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1437 test -f conftest.o && { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1438 then
1439 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1440 if test "x$CC" != xcc; then
1441 # Test first that cc exists at all.
1442 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1443 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1444 if { (eval echo configure:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1445 test -f conftest.o && { (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1446 then
1447 # cc works too.
1449 else
1450 # cc exists but doesn't like -o.
1451 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1455 else
1456 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1458 rm -f conftest*
1461 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1462 echo "$ac_t""yes" 1>&6
1463 else
1464 echo "$ac_t""no" 1>&6
1465 cat >> confdefs.h <<\EOF
1466 #define NO_MINUS_C_MINUS_O 1
1471 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1472 BROKEN_CC=
1473 else
1474 BROKEN_CC=#
1478 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1479 echo "configure:1480: checking that the C compiler understands volatile" >&5
1480 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 #include <sys/types.h>
1488 int main() {
1489 volatile int i = 0
1490 ; return 0; }
1492 if { (eval echo configure:1493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1493 rm -rf conftest*
1494 samba_cv_volatile=yes
1495 else
1496 echo "configure: failed program was:" >&5
1497 cat conftest.$ac_ext >&5
1498 rm -rf conftest*
1499 samba_cv_volatile=no
1501 rm -f conftest*
1504 echo "$ac_t""$samba_cv_volatile" 1>&6
1505 if test x"$samba_cv_volatile" = x"yes"; then
1506 cat >> confdefs.h <<\EOF
1507 #define HAVE_VOLATILE 1
1515 # Do some error checking and defaulting for the host and target type.
1516 # The inputs are:
1517 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1519 # The rules are:
1520 # 1. You are not allowed to specify --host, --target, and nonopt at the
1521 # same time.
1522 # 2. Host defaults to nonopt.
1523 # 3. If nonopt is not specified, then host defaults to the current host,
1524 # as determined by config.guess.
1525 # 4. Target and build default to nonopt.
1526 # 5. If nonopt is not specified, then target and build default to host.
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 case $host---$target---$nonopt in
1531 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1532 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1533 esac
1536 # Make sure we can run config.sub.
1537 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1538 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1541 echo $ac_n "checking host system type""... $ac_c" 1>&6
1542 echo "configure:1543: checking host system type" >&5
1544 host_alias=$host
1545 case "$host_alias" in
1546 NONE)
1547 case $nonopt in
1548 NONE)
1549 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1550 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1551 fi ;;
1552 *) host_alias=$nonopt ;;
1553 esac ;;
1554 esac
1556 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1557 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1558 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1559 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560 echo "$ac_t""$host" 1>&6
1562 echo $ac_n "checking target system type""... $ac_c" 1>&6
1563 echo "configure:1564: checking target system type" >&5
1565 target_alias=$target
1566 case "$target_alias" in
1567 NONE)
1568 case $nonopt in
1569 NONE) target_alias=$host_alias ;;
1570 *) target_alias=$nonopt ;;
1571 esac ;;
1572 esac
1574 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1575 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578 echo "$ac_t""$target" 1>&6
1580 echo $ac_n "checking build system type""... $ac_c" 1>&6
1581 echo "configure:1582: checking build system type" >&5
1583 build_alias=$build
1584 case "$build_alias" in
1585 NONE)
1586 case $nonopt in
1587 NONE) build_alias=$host_alias ;;
1588 *) build_alias=$nonopt ;;
1589 esac ;;
1590 esac
1592 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1593 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596 echo "$ac_t""$build" 1>&6
1598 test "$host_alias" != "$target_alias" &&
1599 test "$program_prefix$program_suffix$program_transform_name" = \
1600 NONENONEs,x,x, &&
1601 program_prefix=${target_alias}-
1604 case "$host_os" in
1605 *irix*) cat >> confdefs.h <<\EOF
1606 #include <standards.h>
1610 esac
1614 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1615 echo "configure:1616: checking config.cache system type" >&5
1616 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1617 test x"$ac_cv_host_system_type" != x"$host"; } ||
1618 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1619 test x"$ac_cv_build_system_type" != x"$build"; } ||
1620 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1621 test x"$ac_cv_target_system_type" != x"$target"; }; then
1622 echo "$ac_t""different" 1>&6
1623 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1624 else
1625 echo "$ac_t""same" 1>&6
1627 ac_cv_host_system_type="$host"
1628 ac_cv_build_system_type="$build"
1629 ac_cv_target_system_type="$target"
1633 # Config CPPFLAG settings for strange OS's that must be set
1634 # before other tests.
1636 case "$host_os" in
1637 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1638 *hpux*)
1639 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1640 echo "configure:1641: checking whether ${CC-cc} accepts -Ae" >&5
1641 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1643 else
1644 echo 'void f(){}' > conftest.c
1645 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1646 ac_cv_prog_cc_Ae=yes
1647 else
1648 ac_cv_prog_cc_Ae=no
1650 rm -f conftest*
1654 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1655 if test $ac_cv_prog_cc_Ae = yes; then
1656 CPPFLAGS="$CPPFLAGS -Ae"
1659 # Defines needed for HPUX support.
1660 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1661 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1663 case `uname -r` in
1664 *9*|*10*)
1665 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1666 cat >> confdefs.h <<\EOF
1667 #define USE_BOTH_CRYPT_CALLS 1
1671 *11*)
1672 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1673 cat >> confdefs.h <<\EOF
1674 #define USE_BOTH_CRYPT_CALLS 1
1678 esac
1681 # AIX4.x doesn't even admit to having large
1682 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1684 *aix4*)
1685 echo "$ac_t""enabling large file support" 1>&6
1686 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1689 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1690 # to the existance of large files..
1691 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1692 # recommendations on large file support, however it makes the
1693 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1694 # recommendation makes the compile fail on gcc2.7. JRA.
1696 *solaris*)
1697 case `uname -r` in
1698 5.6*|5.7*)
1699 echo "$ac_t""enabling large file support" 1>&6
1700 if test "$ac_cv_prog_gcc" = yes; then
1701 ${CC-cc} -v >conftest.c 2>&1
1702 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1703 rm -fr conftest.c
1704 case "$ac_cv_gcc_compiler_version_number" in
1705 *"gcc version 2.6"*|*"gcc version 2.7"*)
1706 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1709 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1711 esac
1712 else
1713 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1716 esac
1719 # Tests needed for SINIX large file support.
1721 *sysv4*)
1722 if test $host = mips-sni-sysv4 ; then
1723 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1724 echo "configure:1725: checking for LFS support" >&5
1725 old_CPPFLAGS="$CPPFLAGS"
1726 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1727 if test "$cross_compiling" = yes; then
1728 SINIX_LFS_SUPPORT=cross
1729 else
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1734 #include <unistd.h>
1735 main () {
1736 #if _LFS64_LARGEFILE == 1
1737 exit(0);
1738 #else
1739 exit(1);
1740 #endif
1743 if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1744 then
1745 SINIX_LFS_SUPPORT=yes
1746 else
1747 echo "configure: failed program was:" >&5
1748 cat conftest.$ac_ext >&5
1749 rm -fr conftest*
1750 SINIX_LFS_SUPPORT=no
1752 rm -fr conftest*
1755 CPPFLAGS="$old_CPPFLAGS"
1756 if test x$SINIX_LFS_SUPPORT = xyes ; then
1757 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1758 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1759 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1760 LIBS="`getconf LFS64_LIBS` $LIBS"
1762 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1767 # Tests needed for glibc 2.1 large file support.
1769 *linux*)
1770 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1772 *hurd*)
1773 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1774 echo "configure:1775: checking for LFS support" >&5
1775 old_CPPFLAGS="$CPPFLAGS"
1776 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1777 if test "$cross_compiling" = yes; then
1778 GLIBC_LFS_SUPPORT=cross
1779 else
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1784 #include <unistd.h>
1785 main () {
1786 #if _LFS64_LARGEFILE == 1
1787 exit(0);
1788 #else
1789 exit(1);
1790 #endif
1793 if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1794 then
1795 GLIBC_LFS_SUPPORT=yes
1796 else
1797 echo "configure: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1799 rm -fr conftest*
1800 GLIBC_LFS_SUPPORT=no
1802 rm -fr conftest*
1805 CPPFLAGS="$old_CPPFLAGS"
1806 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1807 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1809 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1812 esac
1814 echo $ac_n "checking for inline""... $ac_c" 1>&6
1815 echo "configure:1816: checking for inline" >&5
1816 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 ac_cv_c_inline=no
1820 for ac_kw in inline __inline__ __inline; do
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1825 int main() {
1826 } $ac_kw foo() {
1827 ; return 0; }
1829 if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1830 rm -rf conftest*
1831 ac_cv_c_inline=$ac_kw; break
1832 else
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1836 rm -f conftest*
1837 done
1841 echo "$ac_t""$ac_cv_c_inline" 1>&6
1842 case "$ac_cv_c_inline" in
1843 inline | yes) ;;
1844 no) cat >> confdefs.h <<\EOF
1845 #define inline
1848 *) cat >> confdefs.h <<EOF
1849 #define inline $ac_cv_c_inline
1852 esac
1854 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1855 echo "configure:1856: checking how to run the C preprocessor" >&5
1856 # On Suns, sometimes $CPP names a directory.
1857 if test -n "$CPP" && test -d "$CPP"; then
1858 CPP=
1860 if test -z "$CPP"; then
1861 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864 # This must be in double quotes, not single quotes, because CPP may get
1865 # substituted into the Makefile and "${CC-cc}" will confuse make.
1866 CPP="${CC-cc} -E"
1867 # On the NeXT, cc -E runs the code through the compiler's parser,
1868 # not just through cpp.
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1871 "configure"
1871 #include "confdefs.h"
1872 #include <assert.h>
1873 Syntax Error
1875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1876 { (eval echo configure:1877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1878 if test -z "$ac_err"; then
1880 else
1881 echo "$ac_err" >&5
1882 echo "configure: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 rm -rf conftest*
1885 CPP="${CC-cc} -E -traditional-cpp"
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1889 #include <assert.h>
1890 Syntax Error
1892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1897 else
1898 echo "$ac_err" >&5
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1901 rm -rf conftest*
1902 CPP="${CC-cc} -nologo -E"
1903 cat > conftest.$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1906 #include <assert.h>
1907 Syntax Error
1909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1910 { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1912 if test -z "$ac_err"; then
1914 else
1915 echo "$ac_err" >&5
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1918 rm -rf conftest*
1919 CPP=/lib/cpp
1921 rm -f conftest*
1923 rm -f conftest*
1925 rm -f conftest*
1926 ac_cv_prog_CPP="$CPP"
1928 CPP="$ac_cv_prog_CPP"
1929 else
1930 ac_cv_prog_CPP="$CPP"
1932 echo "$ac_t""$CPP" 1>&6
1934 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1935 echo "configure:1936: checking for ANSI C header files" >&5
1936 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1938 else
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 #include <stdlib.h>
1943 #include <stdarg.h>
1944 #include <string.h>
1945 #include <float.h>
1947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1948 { (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1950 if test -z "$ac_err"; then
1951 rm -rf conftest*
1952 ac_cv_header_stdc=yes
1953 else
1954 echo "$ac_err" >&5
1955 echo "configure: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1957 rm -rf conftest*
1958 ac_cv_header_stdc=no
1960 rm -f conftest*
1962 if test $ac_cv_header_stdc = yes; then
1963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 #include <string.h>
1969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1970 egrep "memchr" >/dev/null 2>&1; then
1972 else
1973 rm -rf conftest*
1974 ac_cv_header_stdc=no
1976 rm -f conftest*
1980 if test $ac_cv_header_stdc = yes; then
1981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1982 cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985 #include <stdlib.h>
1987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1988 egrep "free" >/dev/null 2>&1; then
1990 else
1991 rm -rf conftest*
1992 ac_cv_header_stdc=no
1994 rm -f conftest*
1998 if test $ac_cv_header_stdc = yes; then
1999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2000 if test "$cross_compiling" = yes; then
2002 else
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 #include <ctype.h>
2007 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2008 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2009 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2010 int main () { int i; for (i = 0; i < 256; i++)
2011 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2012 exit (0); }
2015 if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2016 then
2018 else
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 rm -fr conftest*
2022 ac_cv_header_stdc=no
2024 rm -fr conftest*
2030 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2031 if test $ac_cv_header_stdc = yes; then
2032 cat >> confdefs.h <<\EOF
2033 #define STDC_HEADERS 1
2038 ac_header_dirent=no
2039 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2042 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_hdr that defines DIR" >&5
2044 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046 else
2047 cat > conftest.$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2050 #include <sys/types.h>
2051 #include <$ac_hdr>
2052 int main() {
2053 DIR *dirp = 0;
2054 ; return 0; }
2056 if { (eval echo configure:2057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2057 rm -rf conftest*
2058 eval "ac_cv_header_dirent_$ac_safe=yes"
2059 else
2060 echo "configure: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2062 rm -rf conftest*
2063 eval "ac_cv_header_dirent_$ac_safe=no"
2065 rm -f conftest*
2067 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2070 cat >> confdefs.h <<EOF
2071 #define $ac_tr_hdr 1
2073 ac_header_dirent=$ac_hdr; break
2074 else
2075 echo "$ac_t""no" 1>&6
2077 done
2078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2079 if test $ac_header_dirent = dirent.h; then
2080 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2081 echo "configure:2082: checking for opendir in -ldir" >&5
2082 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2085 else
2086 ac_save_LIBS="$LIBS"
2087 LIBS="-ldir $LIBS"
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* Override any gcc2 internal prototype to avoid an error. */
2092 /* We use char because int might match the return type of a gcc2
2093 builtin and then its argument prototype would still apply. */
2094 char opendir();
2096 int main() {
2097 opendir()
2098 ; return 0; }
2100 if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2101 rm -rf conftest*
2102 eval "ac_cv_lib_$ac_lib_var=yes"
2103 else
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 rm -rf conftest*
2107 eval "ac_cv_lib_$ac_lib_var=no"
2109 rm -f conftest*
2110 LIBS="$ac_save_LIBS"
2113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2114 echo "$ac_t""yes" 1>&6
2115 LIBS="$LIBS -ldir"
2116 else
2117 echo "$ac_t""no" 1>&6
2120 else
2121 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2122 echo "configure:2123: checking for opendir in -lx" >&5
2123 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 ac_save_LIBS="$LIBS"
2128 LIBS="-lx $LIBS"
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* Override any gcc2 internal prototype to avoid an error. */
2133 /* We use char because int might match the return type of a gcc2
2134 builtin and then its argument prototype would still apply. */
2135 char opendir();
2137 int main() {
2138 opendir()
2139 ; return 0; }
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142 rm -rf conftest*
2143 eval "ac_cv_lib_$ac_lib_var=yes"
2144 else
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 rm -rf conftest*
2148 eval "ac_cv_lib_$ac_lib_var=no"
2150 rm -f conftest*
2151 LIBS="$ac_save_LIBS"
2154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2155 echo "$ac_t""yes" 1>&6
2156 LIBS="$LIBS -lx"
2157 else
2158 echo "$ac_t""no" 1>&6
2163 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2164 echo "configure:2165: checking whether time.h and sys/time.h may both be included" >&5
2165 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2167 else
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 #include <sys/types.h>
2172 #include <sys/time.h>
2173 #include <time.h>
2174 int main() {
2175 struct tm *tp;
2176 ; return 0; }
2178 if { (eval echo configure:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2179 rm -rf conftest*
2180 ac_cv_header_time=yes
2181 else
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 rm -rf conftest*
2185 ac_cv_header_time=no
2187 rm -f conftest*
2190 echo "$ac_t""$ac_cv_header_time" 1>&6
2191 if test $ac_cv_header_time = yes; then
2192 cat >> confdefs.h <<\EOF
2193 #define TIME_WITH_SYS_TIME 1
2198 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2199 echo "configure:2200: checking for sys/wait.h that is POSIX.1 compatible" >&5
2200 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203 cat > conftest.$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 #include <sys/types.h>
2207 #include <sys/wait.h>
2208 #ifndef WEXITSTATUS
2209 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2210 #endif
2211 #ifndef WIFEXITED
2212 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2213 #endif
2214 int main() {
2215 int s;
2216 wait (&s);
2217 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2218 ; return 0; }
2220 if { (eval echo configure:2221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2221 rm -rf conftest*
2222 ac_cv_header_sys_wait_h=yes
2223 else
2224 echo "configure: failed program was:" >&5
2225 cat conftest.$ac_ext >&5
2226 rm -rf conftest*
2227 ac_cv_header_sys_wait_h=no
2229 rm -f conftest*
2232 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2233 if test $ac_cv_header_sys_wait_h = yes; then
2234 cat >> confdefs.h <<\EOF
2235 #define HAVE_SYS_WAIT_H 1
2240 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_hdr" >&5
2245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2247 else
2248 cat > conftest.$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2251 #include <$ac_hdr>
2253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2254 { (eval echo configure:2255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2256 if test -z "$ac_err"; then
2257 rm -rf conftest*
2258 eval "ac_cv_header_$ac_safe=yes"
2259 else
2260 echo "$ac_err" >&5
2261 echo "configure: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2263 rm -rf conftest*
2264 eval "ac_cv_header_$ac_safe=no"
2266 rm -f conftest*
2268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2271 cat >> confdefs.h <<EOF
2272 #define $ac_tr_hdr 1
2275 else
2276 echo "$ac_t""no" 1>&6
2278 done
2280 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_hdr" >&5
2285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2287 else
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 #include <$ac_hdr>
2293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2294 { (eval echo configure:2295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2296 if test -z "$ac_err"; then
2297 rm -rf conftest*
2298 eval "ac_cv_header_$ac_safe=yes"
2299 else
2300 echo "$ac_err" >&5
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2303 rm -rf conftest*
2304 eval "ac_cv_header_$ac_safe=no"
2306 rm -f conftest*
2308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2309 echo "$ac_t""yes" 1>&6
2310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2311 cat >> confdefs.h <<EOF
2312 #define $ac_tr_hdr 1
2315 else
2316 echo "$ac_t""no" 1>&6
2318 done
2320 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_hdr" >&5
2325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2327 else
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 #include <$ac_hdr>
2333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2334 { (eval echo configure:2335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2336 if test -z "$ac_err"; then
2337 rm -rf conftest*
2338 eval "ac_cv_header_$ac_safe=yes"
2339 else
2340 echo "$ac_err" >&5
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 rm -rf conftest*
2344 eval "ac_cv_header_$ac_safe=no"
2346 rm -f conftest*
2348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2349 echo "$ac_t""yes" 1>&6
2350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2351 cat >> confdefs.h <<EOF
2352 #define $ac_tr_hdr 1
2355 else
2356 echo "$ac_t""no" 1>&6
2358 done
2360 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2364 echo "configure:2365: checking for $ac_hdr" >&5
2365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2367 else
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 #include <$ac_hdr>
2373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2374 { (eval echo configure:2375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2376 if test -z "$ac_err"; then
2377 rm -rf conftest*
2378 eval "ac_cv_header_$ac_safe=yes"
2379 else
2380 echo "$ac_err" >&5
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 rm -rf conftest*
2384 eval "ac_cv_header_$ac_safe=no"
2386 rm -f conftest*
2388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2389 echo "$ac_t""yes" 1>&6
2390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2391 cat >> confdefs.h <<EOF
2392 #define $ac_tr_hdr 1
2395 else
2396 echo "$ac_t""no" 1>&6
2398 done
2400 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_hdr" >&5
2405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2407 else
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 #include <$ac_hdr>
2413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2414 { (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2416 if test -z "$ac_err"; then
2417 rm -rf conftest*
2418 eval "ac_cv_header_$ac_safe=yes"
2419 else
2420 echo "$ac_err" >&5
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 rm -rf conftest*
2424 eval "ac_cv_header_$ac_safe=no"
2426 rm -f conftest*
2428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2431 cat >> confdefs.h <<EOF
2432 #define $ac_tr_hdr 1
2435 else
2436 echo "$ac_t""no" 1>&6
2438 done
2440 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_hdr" >&5
2445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2447 else
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451 #include <$ac_hdr>
2453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2454 { (eval echo configure:2455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2456 if test -z "$ac_err"; then
2457 rm -rf conftest*
2458 eval "ac_cv_header_$ac_safe=yes"
2459 else
2460 echo "$ac_err" >&5
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2463 rm -rf conftest*
2464 eval "ac_cv_header_$ac_safe=no"
2466 rm -f conftest*
2468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2469 echo "$ac_t""yes" 1>&6
2470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2471 cat >> confdefs.h <<EOF
2472 #define $ac_tr_hdr 1
2475 else
2476 echo "$ac_t""no" 1>&6
2478 done
2480 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2484 echo "configure:2485: checking for $ac_hdr" >&5
2485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2487 else
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 #include <$ac_hdr>
2493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2494 { (eval echo configure:2495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2496 if test -z "$ac_err"; then
2497 rm -rf conftest*
2498 eval "ac_cv_header_$ac_safe=yes"
2499 else
2500 echo "$ac_err" >&5
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2503 rm -rf conftest*
2504 eval "ac_cv_header_$ac_safe=no"
2506 rm -f conftest*
2508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2511 cat >> confdefs.h <<EOF
2512 #define $ac_tr_hdr 1
2515 else
2516 echo "$ac_t""no" 1>&6
2518 done
2521 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2522 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2524 case "$host_os" in
2525 *hpux*)
2526 cat > conftest.$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2529 #include <shadow.h>
2530 int main() {
2531 struct spwd testme
2532 ; return 0; }
2534 if { (eval echo configure:2535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2535 rm -rf conftest*
2536 ac_cv_header_shadow_h=yes
2537 else
2538 echo "configure: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2540 rm -rf conftest*
2541 ac_cv_header_shadow_h=no
2543 rm -f conftest*
2544 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2545 cat >> confdefs.h <<\EOF
2546 #define HAVE_SHADOW_H 1
2551 esac
2552 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2556 echo "configure:2557: checking for $ac_hdr" >&5
2557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2559 else
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 #include <$ac_hdr>
2565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2566 { (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2568 if test -z "$ac_err"; then
2569 rm -rf conftest*
2570 eval "ac_cv_header_$ac_safe=yes"
2571 else
2572 echo "$ac_err" >&5
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2575 rm -rf conftest*
2576 eval "ac_cv_header_$ac_safe=no"
2578 rm -f conftest*
2580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2583 cat >> confdefs.h <<EOF
2584 #define $ac_tr_hdr 1
2587 else
2588 echo "$ac_t""no" 1>&6
2590 done
2592 for ac_hdr in nss.h sys/security.h security/pam_appl.h
2594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2596 echo "configure:2597: checking for $ac_hdr" >&5
2597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2599 else
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 #include <$ac_hdr>
2605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2606 { (eval echo configure:2607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2608 if test -z "$ac_err"; then
2609 rm -rf conftest*
2610 eval "ac_cv_header_$ac_safe=yes"
2611 else
2612 echo "$ac_err" >&5
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 rm -rf conftest*
2616 eval "ac_cv_header_$ac_safe=no"
2618 rm -f conftest*
2620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2623 cat >> confdefs.h <<EOF
2624 #define $ac_tr_hdr 1
2627 else
2628 echo "$ac_t""no" 1>&6
2630 done
2632 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_hdr" >&5
2637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 #include <$ac_hdr>
2645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2646 { (eval echo configure:2647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2648 if test -z "$ac_err"; then
2649 rm -rf conftest*
2650 eval "ac_cv_header_$ac_safe=yes"
2651 else
2652 echo "$ac_err" >&5
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2655 rm -rf conftest*
2656 eval "ac_cv_header_$ac_safe=no"
2658 rm -f conftest*
2660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2661 echo "$ac_t""yes" 1>&6
2662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2663 cat >> confdefs.h <<EOF
2664 #define $ac_tr_hdr 1
2667 else
2668 echo "$ac_t""no" 1>&6
2670 done
2672 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2676 echo "configure:2677: checking for $ac_hdr" >&5
2677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2679 else
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 #include <$ac_hdr>
2685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686 { (eval echo configure:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688 if test -z "$ac_err"; then
2689 rm -rf conftest*
2690 eval "ac_cv_header_$ac_safe=yes"
2691 else
2692 echo "$ac_err" >&5
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2695 rm -rf conftest*
2696 eval "ac_cv_header_$ac_safe=no"
2698 rm -f conftest*
2700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2703 cat >> confdefs.h <<EOF
2704 #define $ac_tr_hdr 1
2707 else
2708 echo "$ac_t""no" 1>&6
2710 done
2712 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2716 echo "configure:2717: checking for $ac_hdr" >&5
2717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2719 else
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 #include <$ac_hdr>
2725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2726 { (eval echo configure:2727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2728 if test -z "$ac_err"; then
2729 rm -rf conftest*
2730 eval "ac_cv_header_$ac_safe=yes"
2731 else
2732 echo "$ac_err" >&5
2733 echo "configure: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2735 rm -rf conftest*
2736 eval "ac_cv_header_$ac_safe=no"
2738 rm -f conftest*
2740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2743 cat >> confdefs.h <<EOF
2744 #define $ac_tr_hdr 1
2747 else
2748 echo "$ac_t""no" 1>&6
2750 done
2753 # For experimental utmp support (lastlog on some BSD-like systems)
2754 for ac_hdr in utmp.h utmpx.h lastlog.h
2756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_hdr" >&5
2759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2761 else
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 #include <$ac_hdr>
2767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2771 rm -rf conftest*
2772 eval "ac_cv_header_$ac_safe=yes"
2773 else
2774 echo "$ac_err" >&5
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 rm -rf conftest*
2778 eval "ac_cv_header_$ac_safe=no"
2780 rm -f conftest*
2782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2785 cat >> confdefs.h <<EOF
2786 #define $ac_tr_hdr 1
2789 else
2790 echo "$ac_t""no" 1>&6
2792 done
2795 # For quotas on Veritas VxFS filesystems
2796 for ac_hdr in sys/fs/vx_quota.h
2798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2800 echo "configure:2801: checking for $ac_hdr" >&5
2801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2803 else
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 #include <$ac_hdr>
2809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2810 { (eval echo configure:2811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2812 if test -z "$ac_err"; then
2813 rm -rf conftest*
2814 eval "ac_cv_header_$ac_safe=yes"
2815 else
2816 echo "$ac_err" >&5
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2819 rm -rf conftest*
2820 eval "ac_cv_header_$ac_safe=no"
2822 rm -f conftest*
2824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2827 cat >> confdefs.h <<EOF
2828 #define $ac_tr_hdr 1
2831 else
2832 echo "$ac_t""no" 1>&6
2834 done
2837 echo $ac_n "checking size of int""... $ac_c" 1>&6
2838 echo "configure:2839: checking size of int" >&5
2839 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2841 else
2842 if test "$cross_compiling" = yes; then
2843 ac_cv_sizeof_int=cross
2844 else
2845 cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2848 #include <stdio.h>
2849 main()
2851 FILE *f=fopen("conftestval", "w");
2852 if (!f) exit(1);
2853 fprintf(f, "%d\n", sizeof(int));
2854 exit(0);
2857 if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2858 then
2859 ac_cv_sizeof_int=`cat conftestval`
2860 else
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2863 rm -fr conftest*
2864 ac_cv_sizeof_int=0
2866 rm -fr conftest*
2870 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2871 cat >> confdefs.h <<EOF
2872 #define SIZEOF_INT $ac_cv_sizeof_int
2876 echo $ac_n "checking size of long""... $ac_c" 1>&6
2877 echo "configure:2878: checking size of long" >&5
2878 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2880 else
2881 if test "$cross_compiling" = yes; then
2882 ac_cv_sizeof_long=cross
2883 else
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2887 #include <stdio.h>
2888 main()
2890 FILE *f=fopen("conftestval", "w");
2891 if (!f) exit(1);
2892 fprintf(f, "%d\n", sizeof(long));
2893 exit(0);
2896 if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2897 then
2898 ac_cv_sizeof_long=`cat conftestval`
2899 else
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2902 rm -fr conftest*
2903 ac_cv_sizeof_long=0
2905 rm -fr conftest*
2909 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2910 cat >> confdefs.h <<EOF
2911 #define SIZEOF_LONG $ac_cv_sizeof_long
2915 echo $ac_n "checking size of short""... $ac_c" 1>&6
2916 echo "configure:2917: checking size of short" >&5
2917 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2919 else
2920 if test "$cross_compiling" = yes; then
2921 ac_cv_sizeof_short=cross
2922 else
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 #include <stdio.h>
2927 main()
2929 FILE *f=fopen("conftestval", "w");
2930 if (!f) exit(1);
2931 fprintf(f, "%d\n", sizeof(short));
2932 exit(0);
2935 if { (eval echo configure:2936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2936 then
2937 ac_cv_sizeof_short=`cat conftestval`
2938 else
2939 echo "configure: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2941 rm -fr conftest*
2942 ac_cv_sizeof_short=0
2944 rm -fr conftest*
2948 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2949 cat >> confdefs.h <<EOF
2950 #define SIZEOF_SHORT $ac_cv_sizeof_short
2955 echo $ac_n "checking for working const""... $ac_c" 1>&6
2956 echo "configure:2957: checking for working const" >&5
2957 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2964 int main() {
2966 /* Ultrix mips cc rejects this. */
2967 typedef int charset[2]; const charset x;
2968 /* SunOS 4.1.1 cc rejects this. */
2969 char const *const *ccp;
2970 char **p;
2971 /* NEC SVR4.0.2 mips cc rejects this. */
2972 struct point {int x, y;};
2973 static struct point const zero = {0,0};
2974 /* AIX XL C 1.02.0.0 rejects this.
2975 It does not let you subtract one const X* pointer from another in an arm
2976 of an if-expression whose if-part is not a constant expression */
2977 const char *g = "string";
2978 ccp = &g + (g ? g-g : 0);
2979 /* HPUX 7.0 cc rejects these. */
2980 ++ccp;
2981 p = (char**) ccp;
2982 ccp = (char const *const *) p;
2983 { /* SCO 3.2v4 cc rejects this. */
2984 char *t;
2985 char const *s = 0 ? (char *) 0 : (char const *) 0;
2987 *t++ = 0;
2989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2990 int x[] = {25, 17};
2991 const int *foo = &x[0];
2992 ++foo;
2994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2995 typedef const int *iptr;
2996 iptr p = 0;
2997 ++p;
2999 { /* AIX XL C 1.02.0.0 rejects this saying
3000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3001 struct s { int j; const int *ap[3]; };
3002 struct s *b; b->j = 5;
3004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3005 const int foo = 10;
3008 ; return 0; }
3010 if { (eval echo configure:3011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3011 rm -rf conftest*
3012 ac_cv_c_const=yes
3013 else
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 rm -rf conftest*
3017 ac_cv_c_const=no
3019 rm -f conftest*
3022 echo "$ac_t""$ac_cv_c_const" 1>&6
3023 if test $ac_cv_c_const = no; then
3024 cat >> confdefs.h <<\EOF
3025 #define const
3030 echo $ac_n "checking for inline""... $ac_c" 1>&6
3031 echo "configure:3032: checking for inline" >&5
3032 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3034 else
3035 ac_cv_c_inline=no
3036 for ac_kw in inline __inline__ __inline; do
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3041 int main() {
3042 } $ac_kw foo() {
3043 ; return 0; }
3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3046 rm -rf conftest*
3047 ac_cv_c_inline=$ac_kw; break
3048 else
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3052 rm -f conftest*
3053 done
3057 echo "$ac_t""$ac_cv_c_inline" 1>&6
3058 case "$ac_cv_c_inline" in
3059 inline | yes) ;;
3060 no) cat >> confdefs.h <<\EOF
3061 #define inline
3064 *) cat >> confdefs.h <<EOF
3065 #define inline $ac_cv_c_inline
3068 esac
3070 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3071 echo "configure:3072: checking whether byte ordering is bigendian" >&5
3072 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3074 else
3075 ac_cv_c_bigendian=unknown
3076 # See if sys/param.h defines the BYTE_ORDER macro.
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <sys/types.h>
3081 #include <sys/param.h>
3082 int main() {
3084 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3085 bogus endian macros
3086 #endif
3087 ; return 0; }
3089 if { (eval echo configure:3090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3090 rm -rf conftest*
3091 # It does; now see whether it defined to BIG_ENDIAN or not.
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 #include <sys/types.h>
3096 #include <sys/param.h>
3097 int main() {
3099 #if BYTE_ORDER != BIG_ENDIAN
3100 not big endian
3101 #endif
3102 ; return 0; }
3104 if { (eval echo configure:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3105 rm -rf conftest*
3106 ac_cv_c_bigendian=yes
3107 else
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3110 rm -rf conftest*
3111 ac_cv_c_bigendian=no
3113 rm -f conftest*
3114 else
3115 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3118 rm -f conftest*
3119 if test $ac_cv_c_bigendian = unknown; then
3120 if test "$cross_compiling" = yes; then
3121 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3122 else
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 main () {
3127 /* Are we little or big endian? From Harbison&Steele. */
3128 union
3130 long l;
3131 char c[sizeof (long)];
3132 } u;
3133 u.l = 1;
3134 exit (u.c[sizeof (long) - 1] == 1);
3137 if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3138 then
3139 ac_cv_c_bigendian=no
3140 else
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3143 rm -fr conftest*
3144 ac_cv_c_bigendian=yes
3146 rm -fr conftest*
3152 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3153 if test $ac_cv_c_bigendian = yes; then
3154 cat >> confdefs.h <<\EOF
3155 #define WORDS_BIGENDIAN 1
3160 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3161 echo "configure:3162: checking whether char is unsigned" >&5
3162 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 if test "$GCC" = yes; then
3166 # GCC predefines this symbol on systems where it applies.
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #ifdef __CHAR_UNSIGNED__
3172 #endif
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 egrep "yes" >/dev/null 2>&1; then
3177 rm -rf conftest*
3178 ac_cv_c_char_unsigned=yes
3179 else
3180 rm -rf conftest*
3181 ac_cv_c_char_unsigned=no
3183 rm -f conftest*
3185 else
3186 if test "$cross_compiling" = yes; then
3187 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3188 else
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3193 #if !defined(__STDC__) || __STDC__ != 1
3194 #define volatile
3195 #endif
3196 main() {
3197 volatile char c = 255; exit(c < 0);
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3201 then
3202 ac_cv_c_char_unsigned=yes
3203 else
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 rm -fr conftest*
3207 ac_cv_c_char_unsigned=no
3209 rm -fr conftest*
3215 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3216 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3217 cat >> confdefs.h <<\EOF
3218 #define __CHAR_UNSIGNED__ 1
3224 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3225 echo "configure:3226: checking return type of signal handlers" >&5
3226 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3228 else
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <sys/types.h>
3233 #include <signal.h>
3234 #ifdef signal
3235 #undef signal
3236 #endif
3237 #ifdef __cplusplus
3238 extern "C" void (*signal (int, void (*)(int)))(int);
3239 #else
3240 void (*signal ()) ();
3241 #endif
3243 int main() {
3244 int i;
3245 ; return 0; }
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248 rm -rf conftest*
3249 ac_cv_type_signal=void
3250 else
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3253 rm -rf conftest*
3254 ac_cv_type_signal=int
3256 rm -f conftest*
3259 echo "$ac_t""$ac_cv_type_signal" 1>&6
3260 cat >> confdefs.h <<EOF
3261 #define RETSIGTYPE $ac_cv_type_signal
3265 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3266 echo "configure:3267: checking for uid_t in sys/types.h" >&5
3267 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <sys/types.h>
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 egrep "uid_t" >/dev/null 2>&1; then
3277 rm -rf conftest*
3278 ac_cv_type_uid_t=yes
3279 else
3280 rm -rf conftest*
3281 ac_cv_type_uid_t=no
3283 rm -f conftest*
3287 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3288 if test $ac_cv_type_uid_t = no; then
3289 cat >> confdefs.h <<\EOF
3290 #define uid_t int
3293 cat >> confdefs.h <<\EOF
3294 #define gid_t int
3299 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3300 echo "configure:3301: checking for mode_t" >&5
3301 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3303 else
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 #include <sys/types.h>
3308 #if STDC_HEADERS
3309 #include <stdlib.h>
3310 #include <stddef.h>
3311 #endif
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3315 rm -rf conftest*
3316 ac_cv_type_mode_t=yes
3317 else
3318 rm -rf conftest*
3319 ac_cv_type_mode_t=no
3321 rm -f conftest*
3324 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3325 if test $ac_cv_type_mode_t = no; then
3326 cat >> confdefs.h <<\EOF
3327 #define mode_t int
3332 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3333 echo "configure:3334: checking for off_t" >&5
3334 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3336 else
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3341 #if STDC_HEADERS
3342 #include <stdlib.h>
3343 #include <stddef.h>
3344 #endif
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3348 rm -rf conftest*
3349 ac_cv_type_off_t=yes
3350 else
3351 rm -rf conftest*
3352 ac_cv_type_off_t=no
3354 rm -f conftest*
3357 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3358 if test $ac_cv_type_off_t = no; then
3359 cat >> confdefs.h <<\EOF
3360 #define off_t long
3365 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3366 echo "configure:3367: checking for size_t" >&5
3367 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3369 else
3370 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 #include <sys/types.h>
3374 #if STDC_HEADERS
3375 #include <stdlib.h>
3376 #include <stddef.h>
3377 #endif
3379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3380 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3381 rm -rf conftest*
3382 ac_cv_type_size_t=yes
3383 else
3384 rm -rf conftest*
3385 ac_cv_type_size_t=no
3387 rm -f conftest*
3390 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3391 if test $ac_cv_type_size_t = no; then
3392 cat >> confdefs.h <<\EOF
3393 #define size_t unsigned
3398 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3399 echo "configure:3400: checking for pid_t" >&5
3400 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402 else
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <sys/types.h>
3407 #if STDC_HEADERS
3408 #include <stdlib.h>
3409 #include <stddef.h>
3410 #endif
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3414 rm -rf conftest*
3415 ac_cv_type_pid_t=yes
3416 else
3417 rm -rf conftest*
3418 ac_cv_type_pid_t=no
3420 rm -f conftest*
3423 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3424 if test $ac_cv_type_pid_t = no; then
3425 cat >> confdefs.h <<\EOF
3426 #define pid_t int
3431 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3432 echo "configure:3433: checking for st_rdev in struct stat" >&5
3433 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3435 else
3436 cat > conftest.$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 #include <sys/types.h>
3440 #include <sys/stat.h>
3441 int main() {
3442 struct stat s; s.st_rdev;
3443 ; return 0; }
3445 if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3446 rm -rf conftest*
3447 ac_cv_struct_st_rdev=yes
3448 else
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 rm -rf conftest*
3452 ac_cv_struct_st_rdev=no
3454 rm -f conftest*
3457 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3458 if test $ac_cv_struct_st_rdev = yes; then
3459 cat >> confdefs.h <<\EOF
3460 #define HAVE_ST_RDEV 1
3465 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3466 echo "configure:3467: checking for d_off in dirent" >&5
3467 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3469 else
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3474 #include <unistd.h>
3475 #include <sys/types.h>
3476 #include <dirent.h>
3477 int main() {
3478 struct dirent d; d.d_off;
3479 ; return 0; }
3481 if { (eval echo configure:3482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3482 rm -rf conftest*
3483 ac_cv_dirent_d_off=yes
3484 else
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3487 rm -rf conftest*
3488 ac_cv_dirent_d_off=no
3490 rm -f conftest*
3493 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3494 if test $ac_cv_dirent_d_off = yes; then
3495 cat >> confdefs.h <<\EOF
3496 #define HAVE_DIRENT_D_OFF 1
3501 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3502 echo "configure:3503: checking for ino_t" >&5
3503 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3505 else
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 #include <sys/types.h>
3510 #if STDC_HEADERS
3511 #include <stdlib.h>
3512 #include <stddef.h>
3513 #endif
3515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3517 rm -rf conftest*
3518 ac_cv_type_ino_t=yes
3519 else
3520 rm -rf conftest*
3521 ac_cv_type_ino_t=no
3523 rm -f conftest*
3526 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3527 if test $ac_cv_type_ino_t = no; then
3528 cat >> confdefs.h <<\EOF
3529 #define ino_t unsigned
3534 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3535 echo "configure:3536: checking for loff_t" >&5
3536 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3538 else
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3543 #if STDC_HEADERS
3544 #include <stdlib.h>
3545 #include <stddef.h>
3546 #endif
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3550 rm -rf conftest*
3551 ac_cv_type_loff_t=yes
3552 else
3553 rm -rf conftest*
3554 ac_cv_type_loff_t=no
3556 rm -f conftest*
3559 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3560 if test $ac_cv_type_loff_t = no; then
3561 cat >> confdefs.h <<\EOF
3562 #define loff_t off_t
3567 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3568 echo "configure:3569: checking for offset_t" >&5
3569 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3571 else
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 #include <sys/types.h>
3576 #if STDC_HEADERS
3577 #include <stdlib.h>
3578 #include <stddef.h>
3579 #endif
3581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3582 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3583 rm -rf conftest*
3584 ac_cv_type_offset_t=yes
3585 else
3586 rm -rf conftest*
3587 ac_cv_type_offset_t=no
3589 rm -f conftest*
3592 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3593 if test $ac_cv_type_offset_t = no; then
3594 cat >> confdefs.h <<\EOF
3595 #define offset_t loff_t
3600 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3601 echo "configure:3602: checking for ssize_t" >&5
3602 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3604 else
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 #include <sys/types.h>
3609 #if STDC_HEADERS
3610 #include <stdlib.h>
3611 #include <stddef.h>
3612 #endif
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3616 rm -rf conftest*
3617 ac_cv_type_ssize_t=yes
3618 else
3619 rm -rf conftest*
3620 ac_cv_type_ssize_t=no
3622 rm -f conftest*
3625 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3626 if test $ac_cv_type_ssize_t = no; then
3627 cat >> confdefs.h <<\EOF
3628 #define ssize_t int
3633 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3634 echo "configure:3635: checking for wchar_t" >&5
3635 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <sys/types.h>
3642 #if STDC_HEADERS
3643 #include <stdlib.h>
3644 #include <stddef.h>
3645 #endif
3647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3648 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3649 rm -rf conftest*
3650 ac_cv_type_wchar_t=yes
3651 else
3652 rm -rf conftest*
3653 ac_cv_type_wchar_t=no
3655 rm -f conftest*
3658 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3659 if test $ac_cv_type_wchar_t = no; then
3660 cat >> confdefs.h <<\EOF
3661 #define wchar_t unsigned short
3667 # we need libcups for CUPS support...
3668 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3669 echo "configure:3670: checking for httpConnect in -lcups" >&5
3670 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3673 else
3674 ac_save_LIBS="$LIBS"
3675 LIBS="-lcups $LIBS"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* Override any gcc2 internal prototype to avoid an error. */
3680 /* We use char because int might match the return type of a gcc2
3681 builtin and then its argument prototype would still apply. */
3682 char httpConnect();
3684 int main() {
3685 httpConnect()
3686 ; return 0; }
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 rm -rf conftest*
3690 eval "ac_cv_lib_$ac_lib_var=yes"
3691 else
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 rm -rf conftest*
3695 eval "ac_cv_lib_$ac_lib_var=no"
3697 rm -f conftest*
3698 LIBS="$ac_save_LIBS"
3701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3704 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3705 cat >> confdefs.h <<EOF
3706 #define $ac_tr_lib 1
3709 LIBS="-lcups $LIBS"
3711 else
3712 echo "$ac_t""no" 1>&6
3716 # we need libdl for PAM and the new VFS code
3717 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3718 echo "configure:3719: checking for dlopen in -ldl" >&5
3719 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3722 else
3723 ac_save_LIBS="$LIBS"
3724 LIBS="-ldl $LIBS"
3725 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3728 /* Override any gcc2 internal prototype to avoid an error. */
3729 /* We use char because int might match the return type of a gcc2
3730 builtin and then its argument prototype would still apply. */
3731 char dlopen();
3733 int main() {
3734 dlopen()
3735 ; return 0; }
3737 if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3738 rm -rf conftest*
3739 eval "ac_cv_lib_$ac_lib_var=yes"
3740 else
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3743 rm -rf conftest*
3744 eval "ac_cv_lib_$ac_lib_var=no"
3746 rm -f conftest*
3747 LIBS="$ac_save_LIBS"
3750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3752 LIBS="$LIBS -ldl";
3753 cat >> confdefs.h <<\EOF
3754 #define HAVE_LIBDL 1
3757 else
3758 echo "$ac_t""no" 1>&6
3762 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3763 echo "configure:3764: checking for sig_atomic_t type" >&5
3764 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3766 else
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3772 #include <sys/types.h>
3773 #if STDC_HEADERS
3774 #include <stdlib.h>
3775 #include <stddef.h>
3776 #endif
3777 #include <signal.h>
3778 int main() {
3779 sig_atomic_t i = 0
3780 ; return 0; }
3782 if { (eval echo configure:3783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783 rm -rf conftest*
3784 samba_cv_sig_atomic_t=yes
3785 else
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3788 rm -rf conftest*
3789 samba_cv_sig_atomic_t=no
3791 rm -f conftest*
3794 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3795 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3796 cat >> confdefs.h <<\EOF
3797 #define HAVE_SIG_ATOMIC_T_TYPE 1
3802 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3803 echo "configure:3804: checking for errno in errno.h" >&5
3804 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3806 else
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 #include <errno.h>
3812 int main() {
3813 int i = errno
3814 ; return 0; }
3816 if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3817 rm -rf conftest*
3818 samba_cv_errno=yes
3819 else
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3822 rm -rf conftest*
3823 samba_cv_have_errno=no
3825 rm -f conftest*
3828 echo "$ac_t""$samba_cv_errno" 1>&6
3829 if test x"$samba_cv_errno" = x"yes"; then
3830 cat >> confdefs.h <<\EOF
3831 #define HAVE_ERRNO_DECL 1
3836 # stupid glibc has the functions but no declaration. grrrr.
3837 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3838 echo "configure:3839: checking for setresuid declaration" >&5
3839 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3841 else
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 #include <unistd.h>
3847 int main() {
3848 int i = (int)setresuid
3849 ; return 0; }
3851 if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3852 rm -rf conftest*
3853 samba_cv_have_setresuid_decl=yes
3854 else
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857 rm -rf conftest*
3858 samba_cv_have_setresuid_decl=no
3860 rm -f conftest*
3863 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3864 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3865 cat >> confdefs.h <<\EOF
3866 #define HAVE_SETRESUID_DECL 1
3871 # stupid glibc has the functions but no declaration. grrrr.
3872 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3873 echo "configure:3874: checking for setresgid declaration" >&5
3874 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3876 else
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 #include <unistd.h>
3882 int main() {
3883 int i = (int)setresgid
3884 ; return 0; }
3886 if { (eval echo configure:3887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3887 rm -rf conftest*
3888 samba_cv_have_setresgid_decl=yes
3889 else
3890 echo "configure: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3892 rm -rf conftest*
3893 samba_cv_have_setresgid_decl=no
3895 rm -f conftest*
3898 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3899 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3900 cat >> confdefs.h <<\EOF
3901 #define HAVE_SETRESGID_DECL 1
3906 # and glibc has setresuid under linux but the function does
3907 # nothing until kernel 2.1.44! very dumb.
3908 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3909 echo "configure:3910: checking for real setresuid" >&5
3910 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3912 else
3914 if test "$cross_compiling" = yes; then
3915 samba_cv_have_setresuid=cross
3916 else
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <errno.h>
3921 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3924 then
3925 samba_cv_have_setresuid=yes
3926 else
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 rm -fr conftest*
3930 samba_cv_have_setresuid=no
3932 rm -fr conftest*
3937 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3938 if test x"$samba_cv_have_setresuid" = x"yes"; then
3939 cat >> confdefs.h <<\EOF
3940 #define HAVE_SETRESUID 1
3945 # Do the same check for setresguid...
3947 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3948 echo "configure:3949: checking for real setresgid" >&5
3949 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3951 else
3953 if test "$cross_compiling" = yes; then
3954 samba_cv_have_setresgid=cross
3955 else
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #include <unistd.h>
3960 #include <errno.h>
3961 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3964 then
3965 samba_cv_have_setresgid=yes
3966 else
3967 echo "configure: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3969 rm -fr conftest*
3970 samba_cv_have_setresgid=no
3972 rm -fr conftest*
3977 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3978 if test x"$samba_cv_have_setresgid" = x"yes"; then
3979 cat >> confdefs.h <<\EOF
3980 #define HAVE_SETRESGID 1
3985 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3986 echo "configure:3987: checking for 8-bit clean memcmp" >&5
3987 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3989 else
3990 if test "$cross_compiling" = yes; then
3991 ac_cv_func_memcmp_clean=no
3992 else
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3997 main()
3999 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4000 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4005 then
4006 ac_cv_func_memcmp_clean=yes
4007 else
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4010 rm -fr conftest*
4011 ac_cv_func_memcmp_clean=no
4013 rm -fr conftest*
4018 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4019 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4022 ###############################################
4023 # test for where we get crypt() from
4024 for ac_func in crypt
4026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_func" >&5
4028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 /* System header to define __stub macros and hopefully few prototypes,
4035 which can conflict with char $ac_func(); below. */
4036 #include <assert.h>
4037 /* Override any gcc2 internal prototype to avoid an error. */
4038 /* We use char because int might match the return type of a gcc2
4039 builtin and then its argument prototype would still apply. */
4040 char $ac_func();
4042 int main() {
4044 /* The GNU C library defines this for functions which it implements
4045 to always fail with ENOSYS. Some functions are actually named
4046 something starting with __ and the normal name is an alias. */
4047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4048 choke me
4049 #else
4050 $ac_func();
4051 #endif
4053 ; return 0; }
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4056 rm -rf conftest*
4057 eval "ac_cv_func_$ac_func=yes"
4058 else
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 eval "ac_cv_func_$ac_func=no"
4064 rm -f conftest*
4067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4070 cat >> confdefs.h <<EOF
4071 #define $ac_tr_func 1
4074 else
4075 echo "$ac_t""no" 1>&6
4077 done
4079 if test x"$ac_cv_func_crypt" = x"no"; then
4080 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4081 echo "configure:4082: checking for crypt in -lcrypt" >&5
4082 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4085 else
4086 ac_save_LIBS="$LIBS"
4087 LIBS="-lcrypt $LIBS"
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 /* Override any gcc2 internal prototype to avoid an error. */
4092 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */
4094 char crypt();
4096 int main() {
4097 crypt()
4098 ; return 0; }
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4101 rm -rf conftest*
4102 eval "ac_cv_lib_$ac_lib_var=yes"
4103 else
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4106 rm -rf conftest*
4107 eval "ac_cv_lib_$ac_lib_var=no"
4109 rm -f conftest*
4110 LIBS="$ac_save_LIBS"
4113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 LIBS="$LIBS -lcrypt";
4116 cat >> confdefs.h <<\EOF
4117 #define HAVE_CRYPT 1
4120 else
4121 echo "$ac_t""no" 1>&6
4127 ###############################################
4128 # test for where we get readline() from
4129 if test "$ac_cv_header_readline_h" = "yes" ||
4130 test "$ac_cv_header_readline_readline_h" = "yes"; then
4131 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4132 echo "configure:4133: checking for readline in -lreadline" >&5
4133 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4137 ac_save_LIBS="$LIBS"
4138 LIBS="-lreadline $LIBS"
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4145 char readline();
4147 int main() {
4148 readline()
4149 ; return 0; }
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4152 rm -rf conftest*
4153 eval "ac_cv_lib_$ac_lib_var=yes"
4154 else
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4157 rm -rf conftest*
4158 eval "ac_cv_lib_$ac_lib_var=no"
4160 rm -f conftest*
4161 LIBS="$ac_save_LIBS"
4164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4165 echo "$ac_t""yes" 1>&6
4166 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4168 cat >> confdefs.h <<EOF
4169 #define $ac_tr_lib 1
4172 LIBS="-lreadline $LIBS"
4174 else
4175 echo "$ac_t""no" 1>&6
4181 # The following test taken from the cvs sources
4182 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4183 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4184 # libsocket.so which has a bad implementation of gethostbyname (it
4185 # only looks in /etc/hosts), so we only look for -lsocket if we need
4186 # it.
4187 for ac_func in connect
4189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_func" >&5
4191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4193 else
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* System header to define __stub macros and hopefully few prototypes,
4198 which can conflict with char $ac_func(); below. */
4199 #include <assert.h>
4200 /* Override any gcc2 internal prototype to avoid an error. */
4201 /* We use char because int might match the return type of a gcc2
4202 builtin and then its argument prototype would still apply. */
4203 char $ac_func();
4205 int main() {
4207 /* The GNU C library defines this for functions which it implements
4208 to always fail with ENOSYS. Some functions are actually named
4209 something starting with __ and the normal name is an alias. */
4210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4211 choke me
4212 #else
4213 $ac_func();
4214 #endif
4216 ; return 0; }
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4219 rm -rf conftest*
4220 eval "ac_cv_func_$ac_func=yes"
4221 else
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 rm -rf conftest*
4225 eval "ac_cv_func_$ac_func=no"
4227 rm -f conftest*
4230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233 cat >> confdefs.h <<EOF
4234 #define $ac_tr_func 1
4237 else
4238 echo "$ac_t""no" 1>&6
4240 done
4242 if test x"$ac_cv_func_connect" = x"no"; then
4243 case "$LIBS" in
4244 *-lnsl*) ;;
4245 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4246 echo "configure:4247: checking for printf in -lnsl_s" >&5
4247 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4250 else
4251 ac_save_LIBS="$LIBS"
4252 LIBS="-lnsl_s $LIBS"
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 /* Override any gcc2 internal prototype to avoid an error. */
4257 /* We use char because int might match the return type of a gcc2
4258 builtin and then its argument prototype would still apply. */
4259 char printf();
4261 int main() {
4262 printf()
4263 ; return 0; }
4265 if { (eval echo configure:4266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4266 rm -rf conftest*
4267 eval "ac_cv_lib_$ac_lib_var=yes"
4268 else
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4271 rm -rf conftest*
4272 eval "ac_cv_lib_$ac_lib_var=no"
4274 rm -f conftest*
4275 LIBS="$ac_save_LIBS"
4278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4280 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4281 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4282 cat >> confdefs.h <<EOF
4283 #define $ac_tr_lib 1
4286 LIBS="-lnsl_s $LIBS"
4288 else
4289 echo "$ac_t""no" 1>&6
4292 esac
4293 case "$LIBS" in
4294 *-lnsl*) ;;
4295 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4296 echo "configure:4297: checking for printf in -lnsl" >&5
4297 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4300 else
4301 ac_save_LIBS="$LIBS"
4302 LIBS="-lnsl $LIBS"
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 /* Override any gcc2 internal prototype to avoid an error. */
4307 /* We use char because int might match the return type of a gcc2
4308 builtin and then its argument prototype would still apply. */
4309 char printf();
4311 int main() {
4312 printf()
4313 ; return 0; }
4315 if { (eval echo configure:4316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4316 rm -rf conftest*
4317 eval "ac_cv_lib_$ac_lib_var=yes"
4318 else
4319 echo "configure: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 rm -rf conftest*
4322 eval "ac_cv_lib_$ac_lib_var=no"
4324 rm -f conftest*
4325 LIBS="$ac_save_LIBS"
4328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4329 echo "$ac_t""yes" 1>&6
4330 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4332 cat >> confdefs.h <<EOF
4333 #define $ac_tr_lib 1
4336 LIBS="-lnsl $LIBS"
4338 else
4339 echo "$ac_t""no" 1>&6
4342 esac
4343 case "$LIBS" in
4344 *-lsocket*) ;;
4345 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4346 echo "configure:4347: checking for connect in -lsocket" >&5
4347 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4350 else
4351 ac_save_LIBS="$LIBS"
4352 LIBS="-lsocket $LIBS"
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4359 char connect();
4361 int main() {
4362 connect()
4363 ; return 0; }
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4366 rm -rf conftest*
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4368 else
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 rm -rf conftest*
4372 eval "ac_cv_lib_$ac_lib_var=no"
4374 rm -f conftest*
4375 LIBS="$ac_save_LIBS"
4378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4380 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4382 cat >> confdefs.h <<EOF
4383 #define $ac_tr_lib 1
4386 LIBS="-lsocket $LIBS"
4388 else
4389 echo "$ac_t""no" 1>&6
4392 esac
4393 case "$LIBS" in
4394 *-linet*) ;;
4395 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4396 echo "configure:4397: checking for connect in -linet" >&5
4397 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4400 else
4401 ac_save_LIBS="$LIBS"
4402 LIBS="-linet $LIBS"
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4409 char connect();
4411 int main() {
4412 connect()
4413 ; return 0; }
4415 if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416 rm -rf conftest*
4417 eval "ac_cv_lib_$ac_lib_var=yes"
4418 else
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4421 rm -rf conftest*
4422 eval "ac_cv_lib_$ac_lib_var=no"
4424 rm -f conftest*
4425 LIBS="$ac_save_LIBS"
4428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4429 echo "$ac_t""yes" 1>&6
4430 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4431 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4432 cat >> confdefs.h <<EOF
4433 #define $ac_tr_lib 1
4436 LIBS="-linet $LIBS"
4438 else
4439 echo "$ac_t""no" 1>&6
4442 esac
4443 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4444 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4445 # ac_cv_func_connect=yes
4446 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4447 cat >> confdefs.h <<\EOF
4448 #define HAVE_CONNECT 1
4454 ###############################################
4455 # test for where we get get_yp_default_domain() from
4456 for ac_func in yp_get_default_domain
4458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_func" >&5
4460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* System header to define __stub macros and hopefully few prototypes,
4467 which can conflict with char $ac_func(); below. */
4468 #include <assert.h>
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4472 char $ac_func();
4474 int main() {
4476 /* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4480 choke me
4481 #else
4482 $ac_func();
4483 #endif
4485 ; return 0; }
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4488 rm -rf conftest*
4489 eval "ac_cv_func_$ac_func=yes"
4490 else
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4493 rm -rf conftest*
4494 eval "ac_cv_func_$ac_func=no"
4496 rm -f conftest*
4499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4502 cat >> confdefs.h <<EOF
4503 #define $ac_tr_func 1
4506 else
4507 echo "$ac_t""no" 1>&6
4509 done
4511 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4512 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4513 echo "configure:4514: checking for yp_get_default_domain in -lnsl" >&5
4514 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4517 else
4518 ac_save_LIBS="$LIBS"
4519 LIBS="-lnsl $LIBS"
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 /* Override any gcc2 internal prototype to avoid an error. */
4524 /* We use char because int might match the return type of a gcc2
4525 builtin and then its argument prototype would still apply. */
4526 char yp_get_default_domain();
4528 int main() {
4529 yp_get_default_domain()
4530 ; return 0; }
4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4533 rm -rf conftest*
4534 eval "ac_cv_lib_$ac_lib_var=yes"
4535 else
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4538 rm -rf conftest*
4539 eval "ac_cv_lib_$ac_lib_var=no"
4541 rm -f conftest*
4542 LIBS="$ac_save_LIBS"
4545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4546 echo "$ac_t""yes" 1>&6
4547 LIBS="$LIBS -lnsl";
4548 cat >> confdefs.h <<\EOF
4549 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4552 else
4553 echo "$ac_t""no" 1>&6
4558 # Check if we have execl, if not we need to compile smbrun.
4559 for ac_func in execl
4561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4562 echo "configure:4563: checking for $ac_func" >&5
4563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4565 else
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 /* System header to define __stub macros and hopefully few prototypes,
4570 which can conflict with char $ac_func(); below. */
4571 #include <assert.h>
4572 /* Override any gcc2 internal prototype to avoid an error. */
4573 /* We use char because int might match the return type of a gcc2
4574 builtin and then its argument prototype would still apply. */
4575 char $ac_func();
4577 int main() {
4579 /* The GNU C library defines this for functions which it implements
4580 to always fail with ENOSYS. Some functions are actually named
4581 something starting with __ and the normal name is an alias. */
4582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4583 choke me
4584 #else
4585 $ac_func();
4586 #endif
4588 ; return 0; }
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4591 rm -rf conftest*
4592 eval "ac_cv_func_$ac_func=yes"
4593 else
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4596 rm -rf conftest*
4597 eval "ac_cv_func_$ac_func=no"
4599 rm -f conftest*
4602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4605 cat >> confdefs.h <<EOF
4606 #define $ac_tr_func 1
4609 else
4610 echo "$ac_t""no" 1>&6
4612 done
4614 if test x"$ac_cv_func_execl" = x"no"; then
4615 RUNPROG="bin/smbrun"
4616 else
4617 RUNPROG=""
4620 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4623 echo "configure:4624: checking for $ac_func" >&5
4624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4626 else
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* System header to define __stub macros and hopefully few prototypes,
4631 which can conflict with char $ac_func(); below. */
4632 #include <assert.h>
4633 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
4636 char $ac_func();
4638 int main() {
4640 /* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4644 choke me
4645 #else
4646 $ac_func();
4647 #endif
4649 ; return 0; }
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4652 rm -rf conftest*
4653 eval "ac_cv_func_$ac_func=yes"
4654 else
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4657 rm -rf conftest*
4658 eval "ac_cv_func_$ac_func=no"
4660 rm -f conftest*
4663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4666 cat >> confdefs.h <<EOF
4667 #define $ac_tr_func 1
4670 else
4671 echo "$ac_t""no" 1>&6
4673 done
4675 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_func" >&5
4679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4681 else
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func(); below. */
4687 #include <assert.h>
4688 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4691 char $ac_func();
4693 int main() {
4695 /* The GNU C library defines this for functions which it implements
4696 to always fail with ENOSYS. Some functions are actually named
4697 something starting with __ and the normal name is an alias. */
4698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4699 choke me
4700 #else
4701 $ac_func();
4702 #endif
4704 ; return 0; }
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4707 rm -rf conftest*
4708 eval "ac_cv_func_$ac_func=yes"
4709 else
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4712 rm -rf conftest*
4713 eval "ac_cv_func_$ac_func=no"
4715 rm -f conftest*
4718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4721 cat >> confdefs.h <<EOF
4722 #define $ac_tr_func 1
4725 else
4726 echo "$ac_t""no" 1>&6
4728 done
4730 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4733 echo "configure:4734: checking for $ac_func" >&5
4734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4736 else
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func(); below. */
4742 #include <assert.h>
4743 /* Override any gcc2 internal prototype to avoid an error. */
4744 /* We use char because int might match the return type of a gcc2
4745 builtin and then its argument prototype would still apply. */
4746 char $ac_func();
4748 int main() {
4750 /* The GNU C library defines this for functions which it implements
4751 to always fail with ENOSYS. Some functions are actually named
4752 something starting with __ and the normal name is an alias. */
4753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4754 choke me
4755 #else
4756 $ac_func();
4757 #endif
4759 ; return 0; }
4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4762 rm -rf conftest*
4763 eval "ac_cv_func_$ac_func=yes"
4764 else
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4767 rm -rf conftest*
4768 eval "ac_cv_func_$ac_func=no"
4770 rm -f conftest*
4773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4774 echo "$ac_t""yes" 1>&6
4775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4776 cat >> confdefs.h <<EOF
4777 #define $ac_tr_func 1
4780 else
4781 echo "$ac_t""no" 1>&6
4783 done
4785 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_func" >&5
4789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* System header to define __stub macros and hopefully few prototypes,
4796 which can conflict with char $ac_func(); below. */
4797 #include <assert.h>
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4801 char $ac_func();
4803 int main() {
4805 /* The GNU C library defines this for functions which it implements
4806 to always fail with ENOSYS. Some functions are actually named
4807 something starting with __ and the normal name is an alias. */
4808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4809 choke me
4810 #else
4811 $ac_func();
4812 #endif
4814 ; return 0; }
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817 rm -rf conftest*
4818 eval "ac_cv_func_$ac_func=yes"
4819 else
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4822 rm -rf conftest*
4823 eval "ac_cv_func_$ac_func=no"
4825 rm -f conftest*
4828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4831 cat >> confdefs.h <<EOF
4832 #define $ac_tr_func 1
4835 else
4836 echo "$ac_t""no" 1>&6
4838 done
4840 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
4842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4843 echo "configure:4844: checking for $ac_func" >&5
4844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4846 else
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 /* System header to define __stub macros and hopefully few prototypes,
4851 which can conflict with char $ac_func(); below. */
4852 #include <assert.h>
4853 /* Override any gcc2 internal prototype to avoid an error. */
4854 /* We use char because int might match the return type of a gcc2
4855 builtin and then its argument prototype would still apply. */
4856 char $ac_func();
4858 int main() {
4860 /* The GNU C library defines this for functions which it implements
4861 to always fail with ENOSYS. Some functions are actually named
4862 something starting with __ and the normal name is an alias. */
4863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4864 choke me
4865 #else
4866 $ac_func();
4867 #endif
4869 ; return 0; }
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4872 rm -rf conftest*
4873 eval "ac_cv_func_$ac_func=yes"
4874 else
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4877 rm -rf conftest*
4878 eval "ac_cv_func_$ac_func=no"
4880 rm -f conftest*
4883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4886 cat >> confdefs.h <<EOF
4887 #define $ac_tr_func 1
4890 else
4891 echo "$ac_t""no" 1>&6
4893 done
4895 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4898 echo "configure:4899: checking for $ac_func" >&5
4899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4901 else
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 /* System header to define __stub macros and hopefully few prototypes,
4906 which can conflict with char $ac_func(); below. */
4907 #include <assert.h>
4908 /* Override any gcc2 internal prototype to avoid an error. */
4909 /* We use char because int might match the return type of a gcc2
4910 builtin and then its argument prototype would still apply. */
4911 char $ac_func();
4913 int main() {
4915 /* The GNU C library defines this for functions which it implements
4916 to always fail with ENOSYS. Some functions are actually named
4917 something starting with __ and the normal name is an alias. */
4918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4919 choke me
4920 #else
4921 $ac_func();
4922 #endif
4924 ; return 0; }
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927 rm -rf conftest*
4928 eval "ac_cv_func_$ac_func=yes"
4929 else
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4932 rm -rf conftest*
4933 eval "ac_cv_func_$ac_func=no"
4935 rm -f conftest*
4938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4941 cat >> confdefs.h <<EOF
4942 #define $ac_tr_func 1
4945 else
4946 echo "$ac_t""no" 1>&6
4948 done
4950 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4953 echo "configure:4954: checking for $ac_func" >&5
4954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4956 else
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 /* System header to define __stub macros and hopefully few prototypes,
4961 which can conflict with char $ac_func(); below. */
4962 #include <assert.h>
4963 /* Override any gcc2 internal prototype to avoid an error. */
4964 /* We use char because int might match the return type of a gcc2
4965 builtin and then its argument prototype would still apply. */
4966 char $ac_func();
4968 int main() {
4970 /* The GNU C library defines this for functions which it implements
4971 to always fail with ENOSYS. Some functions are actually named
4972 something starting with __ and the normal name is an alias. */
4973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4974 choke me
4975 #else
4976 $ac_func();
4977 #endif
4979 ; return 0; }
4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4982 rm -rf conftest*
4983 eval "ac_cv_func_$ac_func=yes"
4984 else
4985 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4987 rm -rf conftest*
4988 eval "ac_cv_func_$ac_func=no"
4990 rm -f conftest*
4993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4996 cat >> confdefs.h <<EOF
4997 #define $ac_tr_func 1
5000 else
5001 echo "$ac_t""no" 1>&6
5003 done
5005 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
5007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5008 echo "configure:5009: checking for $ac_func" >&5
5009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5011 else
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 /* System header to define __stub macros and hopefully few prototypes,
5016 which can conflict with char $ac_func(); below. */
5017 #include <assert.h>
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5021 char $ac_func();
5023 int main() {
5025 /* The GNU C library defines this for functions which it implements
5026 to always fail with ENOSYS. Some functions are actually named
5027 something starting with __ and the normal name is an alias. */
5028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5029 choke me
5030 #else
5031 $ac_func();
5032 #endif
5034 ; return 0; }
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5037 rm -rf conftest*
5038 eval "ac_cv_func_$ac_func=yes"
5039 else
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 rm -rf conftest*
5043 eval "ac_cv_func_$ac_func=no"
5045 rm -f conftest*
5048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5051 cat >> confdefs.h <<EOF
5052 #define $ac_tr_func 1
5055 else
5056 echo "$ac_t""no" 1>&6
5058 done
5060 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_func" >&5
5064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5066 else
5067 cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 /* System header to define __stub macros and hopefully few prototypes,
5071 which can conflict with char $ac_func(); below. */
5072 #include <assert.h>
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5076 char $ac_func();
5078 int main() {
5080 /* The GNU C library defines this for functions which it implements
5081 to always fail with ENOSYS. Some functions are actually named
5082 something starting with __ and the normal name is an alias. */
5083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5084 choke me
5085 #else
5086 $ac_func();
5087 #endif
5089 ; return 0; }
5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5092 rm -rf conftest*
5093 eval "ac_cv_func_$ac_func=yes"
5094 else
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5097 rm -rf conftest*
5098 eval "ac_cv_func_$ac_func=no"
5100 rm -f conftest*
5103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5106 cat >> confdefs.h <<EOF
5107 #define $ac_tr_func 1
5110 else
5111 echo "$ac_t""no" 1>&6
5113 done
5116 # syscall() is needed for smbwrapper.
5117 for ac_func in syscall
5119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_func" >&5
5121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5123 else
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128 which can conflict with char $ac_func(); below. */
5129 #include <assert.h>
5130 /* Override any gcc2 internal prototype to avoid an error. */
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5133 char $ac_func();
5135 int main() {
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5141 choke me
5142 #else
5143 $ac_func();
5144 #endif
5146 ; return 0; }
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 rm -rf conftest*
5150 eval "ac_cv_func_$ac_func=yes"
5151 else
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5154 rm -rf conftest*
5155 eval "ac_cv_func_$ac_func=no"
5157 rm -f conftest*
5160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5163 cat >> confdefs.h <<EOF
5164 #define $ac_tr_func 1
5167 else
5168 echo "$ac_t""no" 1>&6
5170 done
5173 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5176 echo "configure:5177: checking for $ac_func" >&5
5177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5179 else
5180 cat > conftest.$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5183 /* System header to define __stub macros and hopefully few prototypes,
5184 which can conflict with char $ac_func(); below. */
5185 #include <assert.h>
5186 /* Override any gcc2 internal prototype to avoid an error. */
5187 /* We use char because int might match the return type of a gcc2
5188 builtin and then its argument prototype would still apply. */
5189 char $ac_func();
5191 int main() {
5193 /* The GNU C library defines this for functions which it implements
5194 to always fail with ENOSYS. Some functions are actually named
5195 something starting with __ and the normal name is an alias. */
5196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5197 choke me
5198 #else
5199 $ac_func();
5200 #endif
5202 ; return 0; }
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5205 rm -rf conftest*
5206 eval "ac_cv_func_$ac_func=yes"
5207 else
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5210 rm -rf conftest*
5211 eval "ac_cv_func_$ac_func=no"
5213 rm -f conftest*
5216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5217 echo "$ac_t""yes" 1>&6
5218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5219 cat >> confdefs.h <<EOF
5220 #define $ac_tr_func 1
5223 else
5224 echo "$ac_t""no" 1>&6
5226 done
5228 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5231 echo "configure:5232: checking for $ac_func" >&5
5232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5234 else
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5238 /* System header to define __stub macros and hopefully few prototypes,
5239 which can conflict with char $ac_func(); below. */
5240 #include <assert.h>
5241 /* Override any gcc2 internal prototype to avoid an error. */
5242 /* We use char because int might match the return type of a gcc2
5243 builtin and then its argument prototype would still apply. */
5244 char $ac_func();
5246 int main() {
5248 /* The GNU C library defines this for functions which it implements
5249 to always fail with ENOSYS. Some functions are actually named
5250 something starting with __ and the normal name is an alias. */
5251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5252 choke me
5253 #else
5254 $ac_func();
5255 #endif
5257 ; return 0; }
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260 rm -rf conftest*
5261 eval "ac_cv_func_$ac_func=yes"
5262 else
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 rm -rf conftest*
5266 eval "ac_cv_func_$ac_func=no"
5268 rm -f conftest*
5271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5272 echo "$ac_t""yes" 1>&6
5273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5274 cat >> confdefs.h <<EOF
5275 #define $ac_tr_func 1
5278 else
5279 echo "$ac_t""no" 1>&6
5281 done
5283 for ac_func in __getcwd _getcwd
5285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5286 echo "configure:5287: checking for $ac_func" >&5
5287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5289 else
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5293 /* System header to define __stub macros and hopefully few prototypes,
5294 which can conflict with char $ac_func(); below. */
5295 #include <assert.h>
5296 /* Override any gcc2 internal prototype to avoid an error. */
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5299 char $ac_func();
5301 int main() {
5303 /* The GNU C library defines this for functions which it implements
5304 to always fail with ENOSYS. Some functions are actually named
5305 something starting with __ and the normal name is an alias. */
5306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5307 choke me
5308 #else
5309 $ac_func();
5310 #endif
5312 ; return 0; }
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5315 rm -rf conftest*
5316 eval "ac_cv_func_$ac_func=yes"
5317 else
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5320 rm -rf conftest*
5321 eval "ac_cv_func_$ac_func=no"
5323 rm -f conftest*
5326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5327 echo "$ac_t""yes" 1>&6
5328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5329 cat >> confdefs.h <<EOF
5330 #define $ac_tr_func 1
5333 else
5334 echo "$ac_t""no" 1>&6
5336 done
5338 for ac_func in __xstat __fxstat __lxstat
5340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5341 echo "configure:5342: checking for $ac_func" >&5
5342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5344 else
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 /* System header to define __stub macros and hopefully few prototypes,
5349 which can conflict with char $ac_func(); below. */
5350 #include <assert.h>
5351 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5354 char $ac_func();
5356 int main() {
5358 /* The GNU C library defines this for functions which it implements
5359 to always fail with ENOSYS. Some functions are actually named
5360 something starting with __ and the normal name is an alias. */
5361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5362 choke me
5363 #else
5364 $ac_func();
5365 #endif
5367 ; return 0; }
5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5370 rm -rf conftest*
5371 eval "ac_cv_func_$ac_func=yes"
5372 else
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5375 rm -rf conftest*
5376 eval "ac_cv_func_$ac_func=no"
5378 rm -f conftest*
5381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5382 echo "$ac_t""yes" 1>&6
5383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5384 cat >> confdefs.h <<EOF
5385 #define $ac_tr_func 1
5388 else
5389 echo "$ac_t""no" 1>&6
5391 done
5393 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5396 echo "configure:5397: checking for $ac_func" >&5
5397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5399 else
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5403 /* System header to define __stub macros and hopefully few prototypes,
5404 which can conflict with char $ac_func(); below. */
5405 #include <assert.h>
5406 /* Override any gcc2 internal prototype to avoid an error. */
5407 /* We use char because int might match the return type of a gcc2
5408 builtin and then its argument prototype would still apply. */
5409 char $ac_func();
5411 int main() {
5413 /* The GNU C library defines this for functions which it implements
5414 to always fail with ENOSYS. Some functions are actually named
5415 something starting with __ and the normal name is an alias. */
5416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5417 choke me
5418 #else
5419 $ac_func();
5420 #endif
5422 ; return 0; }
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5425 rm -rf conftest*
5426 eval "ac_cv_func_$ac_func=yes"
5427 else
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5430 rm -rf conftest*
5431 eval "ac_cv_func_$ac_func=no"
5433 rm -f conftest*
5436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5437 echo "$ac_t""yes" 1>&6
5438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5439 cat >> confdefs.h <<EOF
5440 #define $ac_tr_func 1
5443 else
5444 echo "$ac_t""no" 1>&6
5446 done
5448 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5451 echo "configure:5452: checking for $ac_func" >&5
5452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5454 else
5455 cat > conftest.$ac_ext <<EOF
5456 #line 5457 "configure"
5457 #include "confdefs.h"
5458 /* System header to define __stub macros and hopefully few prototypes,
5459 which can conflict with char $ac_func(); below. */
5460 #include <assert.h>
5461 /* Override any gcc2 internal prototype to avoid an error. */
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5464 char $ac_func();
5466 int main() {
5468 /* The GNU C library defines this for functions which it implements
5469 to always fail with ENOSYS. Some functions are actually named
5470 something starting with __ and the normal name is an alias. */
5471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5472 choke me
5473 #else
5474 $ac_func();
5475 #endif
5477 ; return 0; }
5479 if { (eval echo configure:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5480 rm -rf conftest*
5481 eval "ac_cv_func_$ac_func=yes"
5482 else
5483 echo "configure: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5485 rm -rf conftest*
5486 eval "ac_cv_func_$ac_func=no"
5488 rm -f conftest*
5491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5492 echo "$ac_t""yes" 1>&6
5493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5494 cat >> confdefs.h <<EOF
5495 #define $ac_tr_func 1
5498 else
5499 echo "$ac_t""no" 1>&6
5501 done
5503 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5506 echo "configure:5507: checking for $ac_func" >&5
5507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5509 else
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 /* System header to define __stub macros and hopefully few prototypes,
5514 which can conflict with char $ac_func(); below. */
5515 #include <assert.h>
5516 /* Override any gcc2 internal prototype to avoid an error. */
5517 /* We use char because int might match the return type of a gcc2
5518 builtin and then its argument prototype would still apply. */
5519 char $ac_func();
5521 int main() {
5523 /* The GNU C library defines this for functions which it implements
5524 to always fail with ENOSYS. Some functions are actually named
5525 something starting with __ and the normal name is an alias. */
5526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5527 choke me
5528 #else
5529 $ac_func();
5530 #endif
5532 ; return 0; }
5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5535 rm -rf conftest*
5536 eval "ac_cv_func_$ac_func=yes"
5537 else
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 rm -rf conftest*
5541 eval "ac_cv_func_$ac_func=no"
5543 rm -f conftest*
5546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5547 echo "$ac_t""yes" 1>&6
5548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5549 cat >> confdefs.h <<EOF
5550 #define $ac_tr_func 1
5553 else
5554 echo "$ac_t""no" 1>&6
5556 done
5558 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5561 echo "configure:5562: checking for $ac_func" >&5
5562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5564 else
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5568 /* System header to define __stub macros and hopefully few prototypes,
5569 which can conflict with char $ac_func(); below. */
5570 #include <assert.h>
5571 /* Override any gcc2 internal prototype to avoid an error. */
5572 /* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */
5574 char $ac_func();
5576 int main() {
5578 /* The GNU C library defines this for functions which it implements
5579 to always fail with ENOSYS. Some functions are actually named
5580 something starting with __ and the normal name is an alias. */
5581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5582 choke me
5583 #else
5584 $ac_func();
5585 #endif
5587 ; return 0; }
5589 if { (eval echo configure:5590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5590 rm -rf conftest*
5591 eval "ac_cv_func_$ac_func=yes"
5592 else
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5595 rm -rf conftest*
5596 eval "ac_cv_func_$ac_func=no"
5598 rm -f conftest*
5601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5602 echo "$ac_t""yes" 1>&6
5603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5604 cat >> confdefs.h <<EOF
5605 #define $ac_tr_func 1
5608 else
5609 echo "$ac_t""no" 1>&6
5611 done
5613 for ac_func in _write __write _fork __fork
5615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5616 echo "configure:5617: checking for $ac_func" >&5
5617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5619 else
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5623 /* System header to define __stub macros and hopefully few prototypes,
5624 which can conflict with char $ac_func(); below. */
5625 #include <assert.h>
5626 /* Override any gcc2 internal prototype to avoid an error. */
5627 /* We use char because int might match the return type of a gcc2
5628 builtin and then its argument prototype would still apply. */
5629 char $ac_func();
5631 int main() {
5633 /* The GNU C library defines this for functions which it implements
5634 to always fail with ENOSYS. Some functions are actually named
5635 something starting with __ and the normal name is an alias. */
5636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5637 choke me
5638 #else
5639 $ac_func();
5640 #endif
5642 ; return 0; }
5644 if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5645 rm -rf conftest*
5646 eval "ac_cv_func_$ac_func=yes"
5647 else
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 rm -rf conftest*
5651 eval "ac_cv_func_$ac_func=no"
5653 rm -f conftest*
5656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5657 echo "$ac_t""yes" 1>&6
5658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5659 cat >> confdefs.h <<EOF
5660 #define $ac_tr_func 1
5663 else
5664 echo "$ac_t""no" 1>&6
5666 done
5668 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5671 echo "configure:5672: checking for $ac_func" >&5
5672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5674 else
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 /* System header to define __stub macros and hopefully few prototypes,
5679 which can conflict with char $ac_func(); below. */
5680 #include <assert.h>
5681 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5684 char $ac_func();
5686 int main() {
5688 /* The GNU C library defines this for functions which it implements
5689 to always fail with ENOSYS. Some functions are actually named
5690 something starting with __ and the normal name is an alias. */
5691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5692 choke me
5693 #else
5694 $ac_func();
5695 #endif
5697 ; return 0; }
5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5700 rm -rf conftest*
5701 eval "ac_cv_func_$ac_func=yes"
5702 else
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5705 rm -rf conftest*
5706 eval "ac_cv_func_$ac_func=no"
5708 rm -f conftest*
5711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5714 cat >> confdefs.h <<EOF
5715 #define $ac_tr_func 1
5718 else
5719 echo "$ac_t""no" 1>&6
5721 done
5723 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5726 echo "configure:5727: checking for $ac_func" >&5
5727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5729 else
5730 cat > conftest.$ac_ext <<EOF
5731 #line 5732 "configure"
5732 #include "confdefs.h"
5733 /* System header to define __stub macros and hopefully few prototypes,
5734 which can conflict with char $ac_func(); below. */
5735 #include <assert.h>
5736 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5739 char $ac_func();
5741 int main() {
5743 /* The GNU C library defines this for functions which it implements
5744 to always fail with ENOSYS. Some functions are actually named
5745 something starting with __ and the normal name is an alias. */
5746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5747 choke me
5748 #else
5749 $ac_func();
5750 #endif
5752 ; return 0; }
5754 if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5755 rm -rf conftest*
5756 eval "ac_cv_func_$ac_func=yes"
5757 else
5758 echo "configure: failed program was:" >&5
5759 cat conftest.$ac_ext >&5
5760 rm -rf conftest*
5761 eval "ac_cv_func_$ac_func=no"
5763 rm -f conftest*
5766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5767 echo "$ac_t""yes" 1>&6
5768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5769 cat >> confdefs.h <<EOF
5770 #define $ac_tr_func 1
5773 else
5774 echo "$ac_t""no" 1>&6
5776 done
5778 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5781 echo "configure:5782: checking for $ac_func" >&5
5782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5784 else
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 /* System header to define __stub macros and hopefully few prototypes,
5789 which can conflict with char $ac_func(); below. */
5790 #include <assert.h>
5791 /* Override any gcc2 internal prototype to avoid an error. */
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5794 char $ac_func();
5796 int main() {
5798 /* The GNU C library defines this for functions which it implements
5799 to always fail with ENOSYS. Some functions are actually named
5800 something starting with __ and the normal name is an alias. */
5801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5802 choke me
5803 #else
5804 $ac_func();
5805 #endif
5807 ; return 0; }
5809 if { (eval echo configure:5810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5810 rm -rf conftest*
5811 eval "ac_cv_func_$ac_func=yes"
5812 else
5813 echo "configure: failed program was:" >&5
5814 cat conftest.$ac_ext >&5
5815 rm -rf conftest*
5816 eval "ac_cv_func_$ac_func=no"
5818 rm -f conftest*
5821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5822 echo "$ac_t""yes" 1>&6
5823 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5824 cat >> confdefs.h <<EOF
5825 #define $ac_tr_func 1
5828 else
5829 echo "$ac_t""no" 1>&6
5831 done
5833 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5836 echo "configure:5837: checking for $ac_func" >&5
5837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5838 echo $ac_n "(cached) $ac_c" 1>&6
5839 else
5840 cat > conftest.$ac_ext <<EOF
5841 #line 5842 "configure"
5842 #include "confdefs.h"
5843 /* System header to define __stub macros and hopefully few prototypes,
5844 which can conflict with char $ac_func(); below. */
5845 #include <assert.h>
5846 /* Override any gcc2 internal prototype to avoid an error. */
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5849 char $ac_func();
5851 int main() {
5853 /* The GNU C library defines this for functions which it implements
5854 to always fail with ENOSYS. Some functions are actually named
5855 something starting with __ and the normal name is an alias. */
5856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5857 choke me
5858 #else
5859 $ac_func();
5860 #endif
5862 ; return 0; }
5864 if { (eval echo configure:5865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5865 rm -rf conftest*
5866 eval "ac_cv_func_$ac_func=yes"
5867 else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 rm -rf conftest*
5871 eval "ac_cv_func_$ac_func=no"
5873 rm -f conftest*
5876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5877 echo "$ac_t""yes" 1>&6
5878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5879 cat >> confdefs.h <<EOF
5880 #define $ac_tr_func 1
5883 else
5884 echo "$ac_t""no" 1>&6
5886 done
5888 for ac_func in open64 _open64 __open64 creat64
5890 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5891 echo "configure:5892: checking for $ac_func" >&5
5892 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5894 else
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5898 /* System header to define __stub macros and hopefully few prototypes,
5899 which can conflict with char $ac_func(); below. */
5900 #include <assert.h>
5901 /* Override any gcc2 internal prototype to avoid an error. */
5902 /* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5904 char $ac_func();
5906 int main() {
5908 /* The GNU C library defines this for functions which it implements
5909 to always fail with ENOSYS. Some functions are actually named
5910 something starting with __ and the normal name is an alias. */
5911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5912 choke me
5913 #else
5914 $ac_func();
5915 #endif
5917 ; return 0; }
5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5920 rm -rf conftest*
5921 eval "ac_cv_func_$ac_func=yes"
5922 else
5923 echo "configure: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5925 rm -rf conftest*
5926 eval "ac_cv_func_$ac_func=no"
5928 rm -f conftest*
5931 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5932 echo "$ac_t""yes" 1>&6
5933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5934 cat >> confdefs.h <<EOF
5935 #define $ac_tr_func 1
5938 else
5939 echo "$ac_t""no" 1>&6
5941 done
5945 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5948 if test x$ac_cv_func_stat64 = xno ; then
5949 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5950 echo "configure:5951: checking for stat64 in <sys/stat.h>" >&5
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5955 #if defined(HAVE_UNISTD_H)
5956 #include <unistd.h>
5957 #endif
5958 #include <sys/stat.h>
5960 int main() {
5961 struct stat64 st64; exit(stat64(".",&st64));
5962 ; return 0; }
5964 if { (eval echo configure:5965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5965 rm -rf conftest*
5966 ac_cv_func_stat64=yes
5967 else
5968 echo "configure: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5971 rm -f conftest*
5972 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5973 if test x$ac_cv_func_stat64 = xyes ; then
5974 cat >> confdefs.h <<\EOF
5975 #define HAVE_STAT64 1
5981 if test x$ac_cv_func_lstat64 = xno ; then
5982 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5983 echo "configure:5984: checking for lstat64 in <sys/stat.h>" >&5
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5988 #if defined(HAVE_UNISTD_H)
5989 #include <unistd.h>
5990 #endif
5991 #include <sys/stat.h>
5993 int main() {
5994 struct stat64 st64; exit(lstat64(".",&st64));
5995 ; return 0; }
5997 if { (eval echo configure:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5998 rm -rf conftest*
5999 ac_cv_func_lstat64=yes
6000 else
6001 echo "configure: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6004 rm -f conftest*
6005 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6006 if test x$ac_cv_func_lstat64 = xyes ; then
6007 cat >> confdefs.h <<\EOF
6008 #define HAVE_LSTAT64 1
6014 if test x$ac_cv_func_fstat64 = xno ; then
6015 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6016 echo "configure:6017: checking for fstat64 in <sys/stat.h>" >&5
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6021 #if defined(HAVE_UNISTD_H)
6022 #include <unistd.h>
6023 #endif
6024 #include <sys/stat.h>
6026 int main() {
6027 struct stat64 st64; exit(fstat64(0,&st64));
6028 ; return 0; }
6030 if { (eval echo configure:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6031 rm -rf conftest*
6032 ac_cv_func_fstat64=yes
6033 else
6034 echo "configure: failed program was:" >&5
6035 cat conftest.$ac_ext >&5
6037 rm -f conftest*
6038 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6039 if test x$ac_cv_func_fstat64 = xyes ; then
6040 cat >> confdefs.h <<\EOF
6041 #define HAVE_FSTAT64 1
6048 # If no strcasecmp, check for it in some known places
6049 # It is in -lresolv on ReliantUNIX and UnixWare
6050 # -lresolve *must* follow -lnsl for name resolution to work properly
6053 if test x$ac_cv_func_strcasecmp = xno ; then
6054 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6055 echo "configure:6056: checking for strcasecmp in -lresolv" >&5
6056 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6059 else
6060 ac_save_LIBS="$LIBS"
6061 LIBS="-lresolv $LIBS"
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6068 char strcasecmp();
6070 int main() {
6071 strcasecmp()
6072 ; return 0; }
6074 if { (eval echo configure:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6075 rm -rf conftest*
6076 eval "ac_cv_lib_$ac_lib_var=yes"
6077 else
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 rm -rf conftest*
6081 eval "ac_cv_lib_$ac_lib_var=no"
6083 rm -f conftest*
6084 LIBS="$ac_save_LIBS"
6087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6088 echo "$ac_t""yes" 1>&6
6089 LIBS="$LIBS -lresolv"
6090 cat >> confdefs.h <<\EOF
6091 #define HAVE_STRCASECMP 1
6094 else
6095 echo "$ac_t""no" 1>&6
6101 # Check for the functions putprpwnam, set_auth_parameters,
6102 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6103 # Needed for OSF1 and HPUX.
6106 case "$LIBS" in
6107 *-lsecurity*) for ac_func in putprpwnam
6109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_func" >&5
6111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6113 else
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6119 #include <assert.h>
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6123 char $ac_func();
6125 int main() {
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6131 choke me
6132 #else
6133 $ac_func();
6134 #endif
6136 ; return 0; }
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 rm -rf conftest*
6140 eval "ac_cv_func_$ac_func=yes"
6141 else
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6144 rm -rf conftest*
6145 eval "ac_cv_func_$ac_func=no"
6147 rm -f conftest*
6150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6153 cat >> confdefs.h <<EOF
6154 #define $ac_tr_func 1
6157 else
6158 echo "$ac_t""no" 1>&6
6160 done
6162 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6163 echo "configure:6164: checking for putprpwnam in -lsecurity" >&5
6164 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6167 else
6168 ac_save_LIBS="$LIBS"
6169 LIBS="-lsecurity $LIBS"
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* Override any gcc2 internal prototype to avoid an error. */
6174 /* We use char because int might match the return type of a gcc2
6175 builtin and then its argument prototype would still apply. */
6176 char putprpwnam();
6178 int main() {
6179 putprpwnam()
6180 ; return 0; }
6182 if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183 rm -rf conftest*
6184 eval "ac_cv_lib_$ac_lib_var=yes"
6185 else
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6188 rm -rf conftest*
6189 eval "ac_cv_lib_$ac_lib_var=no"
6191 rm -f conftest*
6192 LIBS="$ac_save_LIBS"
6195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6197 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6199 cat >> confdefs.h <<EOF
6200 #define $ac_tr_lib 1
6203 LIBS="-lsecurity $LIBS"
6205 else
6206 echo "$ac_t""no" 1>&6
6209 for ac_func in putprpwnam
6211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6212 echo "configure:6213: checking for $ac_func" >&5
6213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6215 else
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* System header to define __stub macros and hopefully few prototypes,
6220 which can conflict with char $ac_func(); below. */
6221 #include <assert.h>
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6225 char $ac_func();
6227 int main() {
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6233 choke me
6234 #else
6235 $ac_func();
6236 #endif
6238 ; return 0; }
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6241 rm -rf conftest*
6242 eval "ac_cv_func_$ac_func=yes"
6243 else
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6246 rm -rf conftest*
6247 eval "ac_cv_func_$ac_func=no"
6249 rm -f conftest*
6252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6255 cat >> confdefs.h <<EOF
6256 #define $ac_tr_func 1
6259 else
6260 echo "$ac_t""no" 1>&6
6262 done
6265 esac
6267 case "$LIBS" in
6268 *-lsec*) for ac_func in putprpwnam
6270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_func" >&5
6272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6274 else
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* System header to define __stub macros and hopefully few prototypes,
6279 which can conflict with char $ac_func(); below. */
6280 #include <assert.h>
6281 /* Override any gcc2 internal prototype to avoid an error. */
6282 /* We use char because int might match the return type of a gcc2
6283 builtin and then its argument prototype would still apply. */
6284 char $ac_func();
6286 int main() {
6288 /* The GNU C library defines this for functions which it implements
6289 to always fail with ENOSYS. Some functions are actually named
6290 something starting with __ and the normal name is an alias. */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6292 choke me
6293 #else
6294 $ac_func();
6295 #endif
6297 ; return 0; }
6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6300 rm -rf conftest*
6301 eval "ac_cv_func_$ac_func=yes"
6302 else
6303 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6305 rm -rf conftest*
6306 eval "ac_cv_func_$ac_func=no"
6308 rm -f conftest*
6311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6314 cat >> confdefs.h <<EOF
6315 #define $ac_tr_func 1
6318 else
6319 echo "$ac_t""no" 1>&6
6321 done
6323 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6324 echo "configure:6325: checking for putprpwnam in -lsec" >&5
6325 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6327 echo $ac_n "(cached) $ac_c" 1>&6
6328 else
6329 ac_save_LIBS="$LIBS"
6330 LIBS="-lsec $LIBS"
6331 cat > conftest.$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6337 char putprpwnam();
6339 int main() {
6340 putprpwnam()
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 eval "ac_cv_lib_$ac_lib_var=yes"
6346 else
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6349 rm -rf conftest*
6350 eval "ac_cv_lib_$ac_lib_var=no"
6352 rm -f conftest*
6353 LIBS="$ac_save_LIBS"
6356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6358 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6360 cat >> confdefs.h <<EOF
6361 #define $ac_tr_lib 1
6364 LIBS="-lsec $LIBS"
6366 else
6367 echo "$ac_t""no" 1>&6
6370 for ac_func in putprpwnam
6372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6373 echo "configure:6374: checking for $ac_func" >&5
6374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6376 else
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6380 /* System header to define __stub macros and hopefully few prototypes,
6381 which can conflict with char $ac_func(); below. */
6382 #include <assert.h>
6383 /* Override any gcc2 internal prototype to avoid an error. */
6384 /* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6386 char $ac_func();
6388 int main() {
6390 /* The GNU C library defines this for functions which it implements
6391 to always fail with ENOSYS. Some functions are actually named
6392 something starting with __ and the normal name is an alias. */
6393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6394 choke me
6395 #else
6396 $ac_func();
6397 #endif
6399 ; return 0; }
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6402 rm -rf conftest*
6403 eval "ac_cv_func_$ac_func=yes"
6404 else
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6407 rm -rf conftest*
6408 eval "ac_cv_func_$ac_func=no"
6410 rm -f conftest*
6413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6414 echo "$ac_t""yes" 1>&6
6415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6416 cat >> confdefs.h <<EOF
6417 #define $ac_tr_func 1
6420 else
6421 echo "$ac_t""no" 1>&6
6423 done
6426 esac
6429 case "$LIBS" in
6430 *-lsecurity*) for ac_func in set_auth_parameters
6432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6433 echo "configure:6434: checking for $ac_func" >&5
6434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6436 else
6437 cat > conftest.$ac_ext <<EOF
6438 #line 6439 "configure"
6439 #include "confdefs.h"
6440 /* System header to define __stub macros and hopefully few prototypes,
6441 which can conflict with char $ac_func(); below. */
6442 #include <assert.h>
6443 /* Override any gcc2 internal prototype to avoid an error. */
6444 /* We use char because int might match the return type of a gcc2
6445 builtin and then its argument prototype would still apply. */
6446 char $ac_func();
6448 int main() {
6450 /* The GNU C library defines this for functions which it implements
6451 to always fail with ENOSYS. Some functions are actually named
6452 something starting with __ and the normal name is an alias. */
6453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6454 choke me
6455 #else
6456 $ac_func();
6457 #endif
6459 ; return 0; }
6461 if { (eval echo configure:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6462 rm -rf conftest*
6463 eval "ac_cv_func_$ac_func=yes"
6464 else
6465 echo "configure: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6467 rm -rf conftest*
6468 eval "ac_cv_func_$ac_func=no"
6470 rm -f conftest*
6473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6474 echo "$ac_t""yes" 1>&6
6475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6476 cat >> confdefs.h <<EOF
6477 #define $ac_tr_func 1
6480 else
6481 echo "$ac_t""no" 1>&6
6483 done
6485 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6486 echo "configure:6487: checking for set_auth_parameters in -lsecurity" >&5
6487 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6490 else
6491 ac_save_LIBS="$LIBS"
6492 LIBS="-lsecurity $LIBS"
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char set_auth_parameters();
6501 int main() {
6502 set_auth_parameters()
6503 ; return 0; }
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 rm -rf conftest*
6507 eval "ac_cv_lib_$ac_lib_var=yes"
6508 else
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6511 rm -rf conftest*
6512 eval "ac_cv_lib_$ac_lib_var=no"
6514 rm -f conftest*
6515 LIBS="$ac_save_LIBS"
6518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6522 cat >> confdefs.h <<EOF
6523 #define $ac_tr_lib 1
6526 LIBS="-lsecurity $LIBS"
6528 else
6529 echo "$ac_t""no" 1>&6
6532 for ac_func in set_auth_parameters
6534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6535 echo "configure:6536: checking for $ac_func" >&5
6536 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6538 else
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6542 /* System header to define __stub macros and hopefully few prototypes,
6543 which can conflict with char $ac_func(); below. */
6544 #include <assert.h>
6545 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6548 char $ac_func();
6550 int main() {
6552 /* The GNU C library defines this for functions which it implements
6553 to always fail with ENOSYS. Some functions are actually named
6554 something starting with __ and the normal name is an alias. */
6555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6556 choke me
6557 #else
6558 $ac_func();
6559 #endif
6561 ; return 0; }
6563 if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6564 rm -rf conftest*
6565 eval "ac_cv_func_$ac_func=yes"
6566 else
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6569 rm -rf conftest*
6570 eval "ac_cv_func_$ac_func=no"
6572 rm -f conftest*
6575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6576 echo "$ac_t""yes" 1>&6
6577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6578 cat >> confdefs.h <<EOF
6579 #define $ac_tr_func 1
6582 else
6583 echo "$ac_t""no" 1>&6
6585 done
6588 esac
6590 case "$LIBS" in
6591 *-lsec*) for ac_func in set_auth_parameters
6593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6594 echo "configure:6595: checking for $ac_func" >&5
6595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6596 echo $ac_n "(cached) $ac_c" 1>&6
6597 else
6598 cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6601 /* System header to define __stub macros and hopefully few prototypes,
6602 which can conflict with char $ac_func(); below. */
6603 #include <assert.h>
6604 /* Override any gcc2 internal prototype to avoid an error. */
6605 /* We use char because int might match the return type of a gcc2
6606 builtin and then its argument prototype would still apply. */
6607 char $ac_func();
6609 int main() {
6611 /* The GNU C library defines this for functions which it implements
6612 to always fail with ENOSYS. Some functions are actually named
6613 something starting with __ and the normal name is an alias. */
6614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6615 choke me
6616 #else
6617 $ac_func();
6618 #endif
6620 ; return 0; }
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6623 rm -rf conftest*
6624 eval "ac_cv_func_$ac_func=yes"
6625 else
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6628 rm -rf conftest*
6629 eval "ac_cv_func_$ac_func=no"
6631 rm -f conftest*
6634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6635 echo "$ac_t""yes" 1>&6
6636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6637 cat >> confdefs.h <<EOF
6638 #define $ac_tr_func 1
6641 else
6642 echo "$ac_t""no" 1>&6
6644 done
6646 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6647 echo "configure:6648: checking for set_auth_parameters in -lsec" >&5
6648 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6651 else
6652 ac_save_LIBS="$LIBS"
6653 LIBS="-lsec $LIBS"
6654 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6657 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6660 char set_auth_parameters();
6662 int main() {
6663 set_auth_parameters()
6664 ; return 0; }
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 rm -rf conftest*
6668 eval "ac_cv_lib_$ac_lib_var=yes"
6669 else
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 rm -rf conftest*
6673 eval "ac_cv_lib_$ac_lib_var=no"
6675 rm -f conftest*
6676 LIBS="$ac_save_LIBS"
6679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6680 echo "$ac_t""yes" 1>&6
6681 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6683 cat >> confdefs.h <<EOF
6684 #define $ac_tr_lib 1
6687 LIBS="-lsec $LIBS"
6689 else
6690 echo "$ac_t""no" 1>&6
6693 for ac_func in set_auth_parameters
6695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6696 echo "configure:6697: checking for $ac_func" >&5
6697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6699 else
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char $ac_func(); below. */
6705 #include <assert.h>
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6709 char $ac_func();
6711 int main() {
6713 /* The GNU C library defines this for functions which it implements
6714 to always fail with ENOSYS. Some functions are actually named
6715 something starting with __ and the normal name is an alias. */
6716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6717 choke me
6718 #else
6719 $ac_func();
6720 #endif
6722 ; return 0; }
6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6725 rm -rf conftest*
6726 eval "ac_cv_func_$ac_func=yes"
6727 else
6728 echo "configure: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 rm -rf conftest*
6731 eval "ac_cv_func_$ac_func=no"
6733 rm -f conftest*
6736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6739 cat >> confdefs.h <<EOF
6740 #define $ac_tr_func 1
6743 else
6744 echo "$ac_t""no" 1>&6
6746 done
6749 esac
6752 # UnixWare 7.x has its getspnam in -lgen
6753 case "$LIBS" in
6754 *-lgen*) for ac_func in getspnam
6756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6757 echo "configure:6758: checking for $ac_func" >&5
6758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6759 echo $ac_n "(cached) $ac_c" 1>&6
6760 else
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 /* System header to define __stub macros and hopefully few prototypes,
6765 which can conflict with char $ac_func(); below. */
6766 #include <assert.h>
6767 /* Override any gcc2 internal prototype to avoid an error. */
6768 /* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6770 char $ac_func();
6772 int main() {
6774 /* The GNU C library defines this for functions which it implements
6775 to always fail with ENOSYS. Some functions are actually named
6776 something starting with __ and the normal name is an alias. */
6777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6778 choke me
6779 #else
6780 $ac_func();
6781 #endif
6783 ; return 0; }
6785 if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6786 rm -rf conftest*
6787 eval "ac_cv_func_$ac_func=yes"
6788 else
6789 echo "configure: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 rm -rf conftest*
6792 eval "ac_cv_func_$ac_func=no"
6794 rm -f conftest*
6797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6800 cat >> confdefs.h <<EOF
6801 #define $ac_tr_func 1
6804 else
6805 echo "$ac_t""no" 1>&6
6807 done
6809 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6810 echo "configure:6811: checking for getspnam in -lgen" >&5
6811 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6814 else
6815 ac_save_LIBS="$LIBS"
6816 LIBS="-lgen $LIBS"
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6823 char getspnam();
6825 int main() {
6826 getspnam()
6827 ; return 0; }
6829 if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6830 rm -rf conftest*
6831 eval "ac_cv_lib_$ac_lib_var=yes"
6832 else
6833 echo "configure: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6835 rm -rf conftest*
6836 eval "ac_cv_lib_$ac_lib_var=no"
6838 rm -f conftest*
6839 LIBS="$ac_save_LIBS"
6842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6845 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6846 cat >> confdefs.h <<EOF
6847 #define $ac_tr_lib 1
6850 LIBS="-lgen $LIBS"
6852 else
6853 echo "$ac_t""no" 1>&6
6856 for ac_func in getspnam
6858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6859 echo "configure:6860: checking for $ac_func" >&5
6860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6862 else
6863 cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 /* System header to define __stub macros and hopefully few prototypes,
6867 which can conflict with char $ac_func(); below. */
6868 #include <assert.h>
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char $ac_func();
6874 int main() {
6876 /* The GNU C library defines this for functions which it implements
6877 to always fail with ENOSYS. Some functions are actually named
6878 something starting with __ and the normal name is an alias. */
6879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6880 choke me
6881 #else
6882 $ac_func();
6883 #endif
6885 ; return 0; }
6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6888 rm -rf conftest*
6889 eval "ac_cv_func_$ac_func=yes"
6890 else
6891 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6893 rm -rf conftest*
6894 eval "ac_cv_func_$ac_func=no"
6896 rm -f conftest*
6899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6900 echo "$ac_t""yes" 1>&6
6901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6902 cat >> confdefs.h <<EOF
6903 #define $ac_tr_func 1
6906 else
6907 echo "$ac_t""no" 1>&6
6909 done
6912 esac
6915 case "$LIBS" in
6916 *-lsecurity*) for ac_func in getspnam
6918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6919 echo "configure:6920: checking for $ac_func" >&5
6920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6922 else
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6926 /* System header to define __stub macros and hopefully few prototypes,
6927 which can conflict with char $ac_func(); below. */
6928 #include <assert.h>
6929 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6932 char $ac_func();
6934 int main() {
6936 /* The GNU C library defines this for functions which it implements
6937 to always fail with ENOSYS. Some functions are actually named
6938 something starting with __ and the normal name is an alias. */
6939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6940 choke me
6941 #else
6942 $ac_func();
6943 #endif
6945 ; return 0; }
6947 if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6948 rm -rf conftest*
6949 eval "ac_cv_func_$ac_func=yes"
6950 else
6951 echo "configure: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6953 rm -rf conftest*
6954 eval "ac_cv_func_$ac_func=no"
6956 rm -f conftest*
6959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6960 echo "$ac_t""yes" 1>&6
6961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6962 cat >> confdefs.h <<EOF
6963 #define $ac_tr_func 1
6966 else
6967 echo "$ac_t""no" 1>&6
6969 done
6971 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6972 echo "configure:6973: checking for getspnam in -lsecurity" >&5
6973 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6976 else
6977 ac_save_LIBS="$LIBS"
6978 LIBS="-lsecurity $LIBS"
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6982 /* Override any gcc2 internal prototype to avoid an error. */
6983 /* We use char because int might match the return type of a gcc2
6984 builtin and then its argument prototype would still apply. */
6985 char getspnam();
6987 int main() {
6988 getspnam()
6989 ; return 0; }
6991 if { (eval echo configure:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6992 rm -rf conftest*
6993 eval "ac_cv_lib_$ac_lib_var=yes"
6994 else
6995 echo "configure: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 rm -rf conftest*
6998 eval "ac_cv_lib_$ac_lib_var=no"
7000 rm -f conftest*
7001 LIBS="$ac_save_LIBS"
7004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7005 echo "$ac_t""yes" 1>&6
7006 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7008 cat >> confdefs.h <<EOF
7009 #define $ac_tr_lib 1
7012 LIBS="-lsecurity $LIBS"
7014 else
7015 echo "$ac_t""no" 1>&6
7018 for ac_func in getspnam
7020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7021 echo "configure:7022: checking for $ac_func" >&5
7022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7024 else
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 /* System header to define __stub macros and hopefully few prototypes,
7029 which can conflict with char $ac_func(); below. */
7030 #include <assert.h>
7031 /* Override any gcc2 internal prototype to avoid an error. */
7032 /* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7034 char $ac_func();
7036 int main() {
7038 /* The GNU C library defines this for functions which it implements
7039 to always fail with ENOSYS. Some functions are actually named
7040 something starting with __ and the normal name is an alias. */
7041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7042 choke me
7043 #else
7044 $ac_func();
7045 #endif
7047 ; return 0; }
7049 if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7050 rm -rf conftest*
7051 eval "ac_cv_func_$ac_func=yes"
7052 else
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 rm -rf conftest*
7056 eval "ac_cv_func_$ac_func=no"
7058 rm -f conftest*
7061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7062 echo "$ac_t""yes" 1>&6
7063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7064 cat >> confdefs.h <<EOF
7065 #define $ac_tr_func 1
7068 else
7069 echo "$ac_t""no" 1>&6
7071 done
7074 esac
7076 case "$LIBS" in
7077 *-lsec*) for ac_func in getspnam
7079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7080 echo "configure:7081: checking for $ac_func" >&5
7081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7082 echo $ac_n "(cached) $ac_c" 1>&6
7083 else
7084 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7087 /* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func(); below. */
7089 #include <assert.h>
7090 /* Override any gcc2 internal prototype to avoid an error. */
7091 /* We use char because int might match the return type of a gcc2
7092 builtin and then its argument prototype would still apply. */
7093 char $ac_func();
7095 int main() {
7097 /* The GNU C library defines this for functions which it implements
7098 to always fail with ENOSYS. Some functions are actually named
7099 something starting with __ and the normal name is an alias. */
7100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7101 choke me
7102 #else
7103 $ac_func();
7104 #endif
7106 ; return 0; }
7108 if { (eval echo configure:7109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7109 rm -rf conftest*
7110 eval "ac_cv_func_$ac_func=yes"
7111 else
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7114 rm -rf conftest*
7115 eval "ac_cv_func_$ac_func=no"
7117 rm -f conftest*
7120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7121 echo "$ac_t""yes" 1>&6
7122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7123 cat >> confdefs.h <<EOF
7124 #define $ac_tr_func 1
7127 else
7128 echo "$ac_t""no" 1>&6
7130 done
7132 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7133 echo "configure:7134: checking for getspnam in -lsec" >&5
7134 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7137 else
7138 ac_save_LIBS="$LIBS"
7139 LIBS="-lsec $LIBS"
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char getspnam();
7148 int main() {
7149 getspnam()
7150 ; return 0; }
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7153 rm -rf conftest*
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7155 else
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 rm -rf conftest*
7159 eval "ac_cv_lib_$ac_lib_var=no"
7161 rm -f conftest*
7162 LIBS="$ac_save_LIBS"
7165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7169 cat >> confdefs.h <<EOF
7170 #define $ac_tr_lib 1
7173 LIBS="-lsec $LIBS"
7175 else
7176 echo "$ac_t""no" 1>&6
7179 for ac_func in getspnam
7181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7182 echo "configure:7183: checking for $ac_func" >&5
7183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7185 else
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* System header to define __stub macros and hopefully few prototypes,
7190 which can conflict with char $ac_func(); below. */
7191 #include <assert.h>
7192 /* Override any gcc2 internal prototype to avoid an error. */
7193 /* We use char because int might match the return type of a gcc2
7194 builtin and then its argument prototype would still apply. */
7195 char $ac_func();
7197 int main() {
7199 /* The GNU C library defines this for functions which it implements
7200 to always fail with ENOSYS. Some functions are actually named
7201 something starting with __ and the normal name is an alias. */
7202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7203 choke me
7204 #else
7205 $ac_func();
7206 #endif
7208 ; return 0; }
7210 if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7211 rm -rf conftest*
7212 eval "ac_cv_func_$ac_func=yes"
7213 else
7214 echo "configure: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 rm -rf conftest*
7217 eval "ac_cv_func_$ac_func=no"
7219 rm -f conftest*
7222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7223 echo "$ac_t""yes" 1>&6
7224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7225 cat >> confdefs.h <<EOF
7226 #define $ac_tr_func 1
7229 else
7230 echo "$ac_t""no" 1>&6
7232 done
7235 esac
7238 case "$LIBS" in
7239 *-lsecurity*) for ac_func in bigcrypt
7241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_func" >&5
7243 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7245 else
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char $ac_func(); below. */
7251 #include <assert.h>
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255 char $ac_func();
7257 int main() {
7259 /* The GNU C library defines this for functions which it implements
7260 to always fail with ENOSYS. Some functions are actually named
7261 something starting with __ and the normal name is an alias. */
7262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 choke me
7264 #else
7265 $ac_func();
7266 #endif
7268 ; return 0; }
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 rm -rf conftest*
7272 eval "ac_cv_func_$ac_func=yes"
7273 else
7274 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 rm -rf conftest*
7277 eval "ac_cv_func_$ac_func=no"
7279 rm -f conftest*
7282 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7283 echo "$ac_t""yes" 1>&6
7284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7285 cat >> confdefs.h <<EOF
7286 #define $ac_tr_func 1
7289 else
7290 echo "$ac_t""no" 1>&6
7292 done
7294 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7295 echo "configure:7296: checking for bigcrypt in -lsecurity" >&5
7296 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7299 else
7300 ac_save_LIBS="$LIBS"
7301 LIBS="-lsecurity $LIBS"
7302 cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7305 /* Override any gcc2 internal prototype to avoid an error. */
7306 /* We use char because int might match the return type of a gcc2
7307 builtin and then its argument prototype would still apply. */
7308 char bigcrypt();
7310 int main() {
7311 bigcrypt()
7312 ; return 0; }
7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315 rm -rf conftest*
7316 eval "ac_cv_lib_$ac_lib_var=yes"
7317 else
7318 echo "configure: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7320 rm -rf conftest*
7321 eval "ac_cv_lib_$ac_lib_var=no"
7323 rm -f conftest*
7324 LIBS="$ac_save_LIBS"
7327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7329 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7330 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7331 cat >> confdefs.h <<EOF
7332 #define $ac_tr_lib 1
7335 LIBS="-lsecurity $LIBS"
7337 else
7338 echo "$ac_t""no" 1>&6
7341 for ac_func in bigcrypt
7343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7344 echo "configure:7345: checking for $ac_func" >&5
7345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7347 else
7348 cat > conftest.$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 /* System header to define __stub macros and hopefully few prototypes,
7352 which can conflict with char $ac_func(); below. */
7353 #include <assert.h>
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7357 char $ac_func();
7359 int main() {
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7365 choke me
7366 #else
7367 $ac_func();
7368 #endif
7370 ; return 0; }
7372 if { (eval echo configure:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7373 rm -rf conftest*
7374 eval "ac_cv_func_$ac_func=yes"
7375 else
7376 echo "configure: failed program was:" >&5
7377 cat conftest.$ac_ext >&5
7378 rm -rf conftest*
7379 eval "ac_cv_func_$ac_func=no"
7381 rm -f conftest*
7384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7385 echo "$ac_t""yes" 1>&6
7386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7387 cat >> confdefs.h <<EOF
7388 #define $ac_tr_func 1
7391 else
7392 echo "$ac_t""no" 1>&6
7394 done
7397 esac
7399 case "$LIBS" in
7400 *-lsec*) for ac_func in bigcrypt
7402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7403 echo "configure:7404: checking for $ac_func" >&5
7404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7406 else
7407 cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 /* System header to define __stub macros and hopefully few prototypes,
7411 which can conflict with char $ac_func(); below. */
7412 #include <assert.h>
7413 /* Override any gcc2 internal prototype to avoid an error. */
7414 /* We use char because int might match the return type of a gcc2
7415 builtin and then its argument prototype would still apply. */
7416 char $ac_func();
7418 int main() {
7420 /* The GNU C library defines this for functions which it implements
7421 to always fail with ENOSYS. Some functions are actually named
7422 something starting with __ and the normal name is an alias. */
7423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7424 choke me
7425 #else
7426 $ac_func();
7427 #endif
7429 ; return 0; }
7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7432 rm -rf conftest*
7433 eval "ac_cv_func_$ac_func=yes"
7434 else
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 rm -rf conftest*
7438 eval "ac_cv_func_$ac_func=no"
7440 rm -f conftest*
7443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7444 echo "$ac_t""yes" 1>&6
7445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7446 cat >> confdefs.h <<EOF
7447 #define $ac_tr_func 1
7450 else
7451 echo "$ac_t""no" 1>&6
7453 done
7455 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7456 echo "configure:7457: checking for bigcrypt in -lsec" >&5
7457 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7460 else
7461 ac_save_LIBS="$LIBS"
7462 LIBS="-lsec $LIBS"
7463 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7466 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7469 char bigcrypt();
7471 int main() {
7472 bigcrypt()
7473 ; return 0; }
7475 if { (eval echo configure:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476 rm -rf conftest*
7477 eval "ac_cv_lib_$ac_lib_var=yes"
7478 else
7479 echo "configure: failed program was:" >&5
7480 cat conftest.$ac_ext >&5
7481 rm -rf conftest*
7482 eval "ac_cv_lib_$ac_lib_var=no"
7484 rm -f conftest*
7485 LIBS="$ac_save_LIBS"
7488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7489 echo "$ac_t""yes" 1>&6
7490 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7491 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7492 cat >> confdefs.h <<EOF
7493 #define $ac_tr_lib 1
7496 LIBS="-lsec $LIBS"
7498 else
7499 echo "$ac_t""no" 1>&6
7502 for ac_func in bigcrypt
7504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7505 echo "configure:7506: checking for $ac_func" >&5
7506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7508 else
7509 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7512 /* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char $ac_func(); below. */
7514 #include <assert.h>
7515 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7518 char $ac_func();
7520 int main() {
7522 /* The GNU C library defines this for functions which it implements
7523 to always fail with ENOSYS. Some functions are actually named
7524 something starting with __ and the normal name is an alias. */
7525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7526 choke me
7527 #else
7528 $ac_func();
7529 #endif
7531 ; return 0; }
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7534 rm -rf conftest*
7535 eval "ac_cv_func_$ac_func=yes"
7536 else
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7539 rm -rf conftest*
7540 eval "ac_cv_func_$ac_func=no"
7542 rm -f conftest*
7545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7548 cat >> confdefs.h <<EOF
7549 #define $ac_tr_func 1
7552 else
7553 echo "$ac_t""no" 1>&6
7555 done
7558 esac
7561 case "$LIBS" in
7562 *-lsecurity*) for ac_func in getprpwnam
7564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7565 echo "configure:7566: checking for $ac_func" >&5
7566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7568 else
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* System header to define __stub macros and hopefully few prototypes,
7573 which can conflict with char $ac_func(); below. */
7574 #include <assert.h>
7575 /* Override any gcc2 internal prototype to avoid an error. */
7576 /* We use char because int might match the return type of a gcc2
7577 builtin and then its argument prototype would still apply. */
7578 char $ac_func();
7580 int main() {
7582 /* The GNU C library defines this for functions which it implements
7583 to always fail with ENOSYS. Some functions are actually named
7584 something starting with __ and the normal name is an alias. */
7585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7586 choke me
7587 #else
7588 $ac_func();
7589 #endif
7591 ; return 0; }
7593 if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7594 rm -rf conftest*
7595 eval "ac_cv_func_$ac_func=yes"
7596 else
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7599 rm -rf conftest*
7600 eval "ac_cv_func_$ac_func=no"
7602 rm -f conftest*
7605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7608 cat >> confdefs.h <<EOF
7609 #define $ac_tr_func 1
7612 else
7613 echo "$ac_t""no" 1>&6
7615 done
7617 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7618 echo "configure:7619: checking for getprpwnam in -lsecurity" >&5
7619 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7622 else
7623 ac_save_LIBS="$LIBS"
7624 LIBS="-lsecurity $LIBS"
7625 cat > conftest.$ac_ext <<EOF
7626 #line 7627 "configure"
7627 #include "confdefs.h"
7628 /* Override any gcc2 internal prototype to avoid an error. */
7629 /* We use char because int might match the return type of a gcc2
7630 builtin and then its argument prototype would still apply. */
7631 char getprpwnam();
7633 int main() {
7634 getprpwnam()
7635 ; return 0; }
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7638 rm -rf conftest*
7639 eval "ac_cv_lib_$ac_lib_var=yes"
7640 else
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7643 rm -rf conftest*
7644 eval "ac_cv_lib_$ac_lib_var=no"
7646 rm -f conftest*
7647 LIBS="$ac_save_LIBS"
7650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7651 echo "$ac_t""yes" 1>&6
7652 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7653 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7654 cat >> confdefs.h <<EOF
7655 #define $ac_tr_lib 1
7658 LIBS="-lsecurity $LIBS"
7660 else
7661 echo "$ac_t""no" 1>&6
7664 for ac_func in getprpwnam
7666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7667 echo "configure:7668: checking for $ac_func" >&5
7668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7670 else
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* System header to define __stub macros and hopefully few prototypes,
7675 which can conflict with char $ac_func(); below. */
7676 #include <assert.h>
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7680 char $ac_func();
7682 int main() {
7684 /* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7688 choke me
7689 #else
7690 $ac_func();
7691 #endif
7693 ; return 0; }
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696 rm -rf conftest*
7697 eval "ac_cv_func_$ac_func=yes"
7698 else
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7701 rm -rf conftest*
7702 eval "ac_cv_func_$ac_func=no"
7704 rm -f conftest*
7707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7708 echo "$ac_t""yes" 1>&6
7709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7710 cat >> confdefs.h <<EOF
7711 #define $ac_tr_func 1
7714 else
7715 echo "$ac_t""no" 1>&6
7717 done
7720 esac
7722 case "$LIBS" in
7723 *-lsec*) for ac_func in getprpwnam
7725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7726 echo "configure:7727: checking for $ac_func" >&5
7727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7730 cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 /* System header to define __stub macros and hopefully few prototypes,
7734 which can conflict with char $ac_func(); below. */
7735 #include <assert.h>
7736 /* Override any gcc2 internal prototype to avoid an error. */
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7739 char $ac_func();
7741 int main() {
7743 /* The GNU C library defines this for functions which it implements
7744 to always fail with ENOSYS. Some functions are actually named
7745 something starting with __ and the normal name is an alias. */
7746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7747 choke me
7748 #else
7749 $ac_func();
7750 #endif
7752 ; return 0; }
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7755 rm -rf conftest*
7756 eval "ac_cv_func_$ac_func=yes"
7757 else
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7760 rm -rf conftest*
7761 eval "ac_cv_func_$ac_func=no"
7763 rm -f conftest*
7766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7767 echo "$ac_t""yes" 1>&6
7768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7769 cat >> confdefs.h <<EOF
7770 #define $ac_tr_func 1
7773 else
7774 echo "$ac_t""no" 1>&6
7776 done
7778 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7779 echo "configure:7780: checking for getprpwnam in -lsec" >&5
7780 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7783 else
7784 ac_save_LIBS="$LIBS"
7785 LIBS="-lsec $LIBS"
7786 cat > conftest.$ac_ext <<EOF
7787 #line 7788 "configure"
7788 #include "confdefs.h"
7789 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7792 char getprpwnam();
7794 int main() {
7795 getprpwnam()
7796 ; return 0; }
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7799 rm -rf conftest*
7800 eval "ac_cv_lib_$ac_lib_var=yes"
7801 else
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7804 rm -rf conftest*
7805 eval "ac_cv_lib_$ac_lib_var=no"
7807 rm -f conftest*
7808 LIBS="$ac_save_LIBS"
7811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7812 echo "$ac_t""yes" 1>&6
7813 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7815 cat >> confdefs.h <<EOF
7816 #define $ac_tr_lib 1
7819 LIBS="-lsec $LIBS"
7821 else
7822 echo "$ac_t""no" 1>&6
7825 for ac_func in getprpwnam
7827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7828 echo "configure:7829: checking for $ac_func" >&5
7829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7831 else
7832 cat > conftest.$ac_ext <<EOF
7833 #line 7834 "configure"
7834 #include "confdefs.h"
7835 /* System header to define __stub macros and hopefully few prototypes,
7836 which can conflict with char $ac_func(); below. */
7837 #include <assert.h>
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841 char $ac_func();
7843 int main() {
7845 /* The GNU C library defines this for functions which it implements
7846 to always fail with ENOSYS. Some functions are actually named
7847 something starting with __ and the normal name is an alias. */
7848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7849 choke me
7850 #else
7851 $ac_func();
7852 #endif
7854 ; return 0; }
7856 if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7857 rm -rf conftest*
7858 eval "ac_cv_func_$ac_func=yes"
7859 else
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7862 rm -rf conftest*
7863 eval "ac_cv_func_$ac_func=no"
7865 rm -f conftest*
7868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7871 cat >> confdefs.h <<EOF
7872 #define $ac_tr_func 1
7875 else
7876 echo "$ac_t""no" 1>&6
7878 done
7881 esac
7884 # this bit needs to be modified for each OS that is suported by
7885 # smbwrapper. You need to specify how to created a shared library and
7886 # how to compile C code to produce PIC object files
7888 # these are the defaults, good for lots of systems
7889 HOST_OS="$host_os"
7890 LDSHFLAGS="-shared"
7891 PICFLAG=""
7892 SHLIBEXT="so"
7894 # and these are for particular systems
7895 case "$host_os" in
7896 *linux*) cat >> confdefs.h <<\EOF
7897 #define LINUX 1
7900 *solaris*) cat >> confdefs.h <<\EOF
7901 #define SUNOS5 1
7904 LDSHFLAGS="-G"
7906 *sunos*) cat >> confdefs.h <<\EOF
7907 #define SUNOS4 1
7910 LDSHFLAGS=""
7912 *bsd*) LDSHFLAGS="-shared -Bshareable"
7914 *irix*) cat >> confdefs.h <<\EOF
7915 #define IRIX 1
7918 case "$host_os" in
7919 *irix6*) cat >> confdefs.h <<\EOF
7920 #define IRIX6 1
7924 esac
7925 ATTEMPT_WRAP32_BUILD=yes
7927 *aix*) cat >> confdefs.h <<\EOF
7928 #define AIX 1
7931 *hpux*) cat >> confdefs.h <<\EOF
7932 #define HPUX 1
7935 SHLIBEXT="sl"
7936 # Use special PIC flags for the native HP-UX compiler.
7937 if test $ac_cv_prog_cc_Ae = yes; then
7938 LDSHFLAGS="-b"
7939 PICFLAG="+z"
7942 *qnx*) cat >> confdefs.h <<\EOF
7943 #define QNX 1
7946 *osf*) cat >> confdefs.h <<\EOF
7947 #define OSF1 1
7950 *sco*) cat >> confdefs.h <<\EOF
7951 #define SCO 1
7954 *next2*) cat >> confdefs.h <<\EOF
7955 #define NEXT2 1
7958 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7959 set dummy groff; ac_word=$2
7960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7961 echo "configure:7962: checking for $ac_word" >&5
7962 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7964 else
7965 if test -n "$ROFF"; then
7966 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7967 else
7968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7969 ac_dummy="$PATH"
7970 for ac_dir in $ac_dummy; do
7971 test -z "$ac_dir" && ac_dir=.
7972 if test -f $ac_dir/$ac_word; then
7973 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7974 break
7976 done
7977 IFS="$ac_save_ifs"
7980 ROFF="$ac_cv_prog_ROFF"
7981 if test -n "$ROFF"; then
7982 echo "$ac_t""$ROFF" 1>&6
7983 else
7984 echo "$ac_t""no" 1>&6
7987 *sysv4*)
7988 case "$host" in
7989 *-univel-*) if test "$GCC" != yes ; then
7990 cat >> confdefs.h <<\EOF
7991 #define HAVE_MEMSET 1
7995 LDSHFLAGS="-G"
7997 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
7998 #define RELIANTUNIX 1
8001 esac
8003 *sysv5*)
8004 if test "$GCC" != yes ; then
8005 cat >> confdefs.h <<\EOF
8006 #define HAVE_MEMSET 1
8010 LDSHFLAGS="-G"
8012 esac
8014 # try to work out how to produce pic code with this compiler
8015 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8016 echo "configure:8017: checking whether ${CC-cc} accepts -fpic" >&5
8017 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8019 else
8020 echo 'void f(){}' > conftest.c
8021 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8022 ac_cv_prog_cc_fpic=yes
8023 else
8024 ac_cv_prog_cc_fpic=no
8026 rm -f conftest*
8030 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8031 if test $ac_cv_prog_cc_fpic = yes; then
8032 PICFLAG="-fpic";
8034 if test x$PICFLAG = x; then
8035 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8036 echo "configure:8037: checking whether ${CC-cc} accepts -Kpic" >&5
8037 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8038 echo $ac_n "(cached) $ac_c" 1>&6
8039 else
8040 echo 'void f(){}' > conftest.c
8041 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8042 ac_cv_prog_cc_Kpic=yes
8043 else
8044 ac_cv_prog_cc_Kpic=no
8046 rm -f conftest*
8050 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8051 if test $ac_cv_prog_cc_Kpic = yes; then
8052 PICFLAG="-Kpic";
8055 if test x$PICFLAG = x; then
8056 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8057 echo "configure:8058: checking whether ${CC-cc} accepts -KPIC" >&5
8058 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8060 else
8061 echo 'void f(){}' > conftest.c
8062 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8063 ac_cv_prog_cc_KPIC=yes
8064 else
8065 ac_cv_prog_cc_KPIC=no
8067 rm -f conftest*
8071 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8072 if test $ac_cv_prog_cc_KPIC = yes; then
8073 PICFLAG="-KPIC";
8077 ################
8079 echo $ac_n "checking for long long""... $ac_c" 1>&6
8080 echo "configure:8081: checking for long long" >&5
8081 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8083 else
8085 if test "$cross_compiling" = yes; then
8086 samba_cv_have_longlong=cross
8087 else
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 #include <stdio.h>
8092 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8094 if { (eval echo configure:8095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8095 then
8096 samba_cv_have_longlong=yes
8097 else
8098 echo "configure: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8100 rm -fr conftest*
8101 samba_cv_have_longlong=no
8103 rm -fr conftest*
8108 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8109 if test x"$samba_cv_have_longlong" = x"yes"; then
8110 cat >> confdefs.h <<\EOF
8111 #define HAVE_LONGLONG 1
8117 # Check if the compiler supports the LL prefix on long long integers.
8118 # AIX needs this.
8120 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8121 echo "configure:8122: checking for LL suffix on long long integers" >&5
8122 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8124 else
8126 cat > conftest.$ac_ext <<EOF
8127 #line 8128 "configure"
8128 #include "confdefs.h"
8129 #include <stdio.h>
8130 int main() {
8131 long long i = 0x8000000000LL
8132 ; return 0; }
8134 if { (eval echo configure:8135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8135 rm -rf conftest*
8136 samba_cv_compiler_supports_ll=yes
8137 else
8138 echo "configure: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 rm -rf conftest*
8141 samba_cv_compiler_supports_ll=no
8143 rm -f conftest*
8146 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8147 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8148 cat >> confdefs.h <<\EOF
8149 #define COMPILER_SUPPORTS_LL 1
8155 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8156 echo "configure:8157: checking for 64 bit off_t" >&5
8157 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8158 echo $ac_n "(cached) $ac_c" 1>&6
8159 else
8161 if test "$cross_compiling" = yes; then
8162 samba_cv_SIZEOF_OFF_T=cross
8163 else
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8167 #include <stdio.h>
8168 #include <sys/stat.h>
8169 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8171 if { (eval echo configure:8172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8172 then
8173 samba_cv_SIZEOF_OFF_T=yes
8174 else
8175 echo "configure: failed program was:" >&5
8176 cat conftest.$ac_ext >&5
8177 rm -fr conftest*
8178 samba_cv_SIZEOF_OFF_T=no
8180 rm -fr conftest*
8185 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8186 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8187 cat >> confdefs.h <<\EOF
8188 #define SIZEOF_OFF_T 8
8193 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8194 echo "configure:8195: checking for off64_t" >&5
8195 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8196 echo $ac_n "(cached) $ac_c" 1>&6
8197 else
8199 if test "$cross_compiling" = yes; then
8200 samba_cv_HAVE_OFF64_T=cross
8201 else
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8206 #if defined(HAVE_UNISTD_H)
8207 #include <unistd.h>
8208 #endif
8209 #include <stdio.h>
8210 #include <sys/stat.h>
8211 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8213 if { (eval echo configure:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8214 then
8215 samba_cv_HAVE_OFF64_T=yes
8216 else
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 rm -fr conftest*
8220 samba_cv_HAVE_OFF64_T=no
8222 rm -fr conftest*
8227 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8228 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8229 cat >> confdefs.h <<\EOF
8230 #define HAVE_OFF64_T 1
8235 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8236 echo "configure:8237: checking for 64 bit ino_t" >&5
8237 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8239 else
8241 if test "$cross_compiling" = yes; then
8242 samba_cv_SIZEOF_INO_T=cross
8243 else
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8247 #include <stdio.h>
8248 #include <sys/stat.h>
8249 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8251 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8252 then
8253 samba_cv_SIZEOF_INO_T=yes
8254 else
8255 echo "configure: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8257 rm -fr conftest*
8258 samba_cv_SIZEOF_INO_T=no
8260 rm -fr conftest*
8265 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8266 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8267 cat >> confdefs.h <<\EOF
8268 #define SIZEOF_INO_T 8
8273 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8274 echo "configure:8275: checking for ino64_t" >&5
8275 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8277 else
8279 if test "$cross_compiling" = yes; then
8280 samba_cv_HAVE_INO64_T=cross
8281 else
8282 cat > conftest.$ac_ext <<EOF
8283 #line 8284 "configure"
8284 #include "confdefs.h"
8286 #if defined(HAVE_UNISTD_H)
8287 #include <unistd.h>
8288 #endif
8289 #include <stdio.h>
8290 #include <sys/stat.h>
8291 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8293 if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8294 then
8295 samba_cv_HAVE_INO64_T=yes
8296 else
8297 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 rm -fr conftest*
8300 samba_cv_HAVE_INO64_T=no
8302 rm -fr conftest*
8307 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8308 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8309 cat >> confdefs.h <<\EOF
8310 #define HAVE_INO64_T 1
8315 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8316 echo "configure:8317: checking for struct dirent64" >&5
8317 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8319 else
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8325 #if defined(HAVE_UNISTD_H)
8326 #include <unistd.h>
8327 #endif
8328 #include <sys/types.h>
8329 #include <dirent.h>
8330 int main() {
8331 struct dirent64 de;
8332 ; return 0; }
8334 if { (eval echo configure:8335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8335 rm -rf conftest*
8336 samba_cv_HAVE_STRUCT_DIRENT64=yes
8337 else
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 rm -rf conftest*
8341 samba_cv_HAVE_STRUCT_DIRENT64=no
8343 rm -f conftest*
8346 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8347 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8348 cat >> confdefs.h <<\EOF
8349 #define HAVE_STRUCT_DIRENT64 1
8354 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8355 echo "configure:8356: checking for unsigned char" >&5
8356 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8358 else
8360 if test "$cross_compiling" = yes; then
8361 samba_cv_HAVE_UNSIGNED_CHAR=cross
8362 else
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 #include <stdio.h>
8367 main() { char c; c=250; exit((c > 0)?0:1); }
8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8370 then
8371 samba_cv_HAVE_UNSIGNED_CHAR=yes
8372 else
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 rm -fr conftest*
8376 samba_cv_HAVE_UNSIGNED_CHAR=no
8378 rm -fr conftest*
8383 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8384 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8385 cat >> confdefs.h <<\EOF
8386 #define HAVE_UNSIGNED_CHAR 1
8391 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8392 echo "configure:8393: checking for sin_len in sock" >&5
8393 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8395 else
8397 cat > conftest.$ac_ext <<EOF
8398 #line 8399 "configure"
8399 #include "confdefs.h"
8400 #include <sys/types.h>
8401 #include <sys/socket.h>
8402 #include <netinet/in.h>
8403 int main() {
8404 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8405 ; return 0; }
8407 if { (eval echo configure:8408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8408 rm -rf conftest*
8409 samba_cv_HAVE_SOCK_SIN_LEN=yes
8410 else
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8413 rm -rf conftest*
8414 samba_cv_HAVE_SOCK_SIN_LEN=no
8416 rm -f conftest*
8419 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8420 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8421 cat >> confdefs.h <<\EOF
8422 #define HAVE_SOCK_SIN_LEN 1
8427 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8428 echo "configure:8429: checking whether seekdir returns void" >&5
8429 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8430 echo $ac_n "(cached) $ac_c" 1>&6
8431 else
8433 cat > conftest.$ac_ext <<EOF
8434 #line 8435 "configure"
8435 #include "confdefs.h"
8436 #include <sys/types.h>
8437 #include <dirent.h>
8438 void seekdir(DIR *d, long loc) { return; }
8439 int main() {
8440 return 0;
8441 ; return 0; }
8443 if { (eval echo configure:8444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8444 rm -rf conftest*
8445 samba_cv_SEEKDIR_RETURNS_VOID=yes
8446 else
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8449 rm -rf conftest*
8450 samba_cv_SEEKDIR_RETURNS_VOID=no
8452 rm -f conftest*
8455 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8456 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8457 cat >> confdefs.h <<\EOF
8458 #define SEEKDIR_RETURNS_VOID 1
8463 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8464 echo "configure:8465: checking for __FILE__ macro" >&5
8465 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8467 else
8469 cat > conftest.$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8472 #include <stdio.h>
8473 int main() {
8474 printf("%s\n", __FILE__);
8475 ; return 0; }
8477 if { (eval echo configure:8478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8478 rm -rf conftest*
8479 samba_cv_HAVE_FILE_MACRO=yes
8480 else
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8483 rm -rf conftest*
8484 samba_cv_HAVE_FILE_MACRO=no
8486 rm -f conftest*
8489 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8490 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8491 cat >> confdefs.h <<\EOF
8492 #define HAVE_FILE_MACRO 1
8497 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8498 echo "configure:8499: checking for __FUNCTION__ macro" >&5
8499 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8500 echo $ac_n "(cached) $ac_c" 1>&6
8501 else
8503 cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 #include <stdio.h>
8507 int main() {
8508 printf("%s\n", __FUNCTION__);
8509 ; return 0; }
8511 if { (eval echo configure:8512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8512 rm -rf conftest*
8513 samba_cv_HAVE_FUNCTION_MACRO=yes
8514 else
8515 echo "configure: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8517 rm -rf conftest*
8518 samba_cv_HAVE_FUNCTION_MACRO=no
8520 rm -f conftest*
8523 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8524 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8525 cat >> confdefs.h <<\EOF
8526 #define HAVE_FUNCTION_MACRO 1
8531 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8532 echo "configure:8533: checking if gettimeofday takes tz argument" >&5
8533 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8534 echo $ac_n "(cached) $ac_c" 1>&6
8535 else
8537 if test "$cross_compiling" = yes; then
8538 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8539 else
8540 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8544 #include <sys/time.h>
8545 #include <unistd.h>
8546 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8548 if { (eval echo configure:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8549 then
8550 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8551 else
8552 echo "configure: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8554 rm -fr conftest*
8555 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8557 rm -fr conftest*
8562 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8563 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8564 cat >> confdefs.h <<\EOF
8565 #define HAVE_GETTIMEOFDAY_TZ 1
8571 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8572 echo "configure:8573: checking for broken readdir" >&5
8573 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8575 else
8577 if test "$cross_compiling" = yes; then
8578 samba_cv_HAVE_BROKEN_READDIR=cross
8579 else
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8583 #include <sys/types.h>
8584 #include <dirent.h>
8585 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8586 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8587 di->d_name[0] == 0) exit(0); exit(1);}
8589 if { (eval echo configure:8590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8590 then
8591 samba_cv_HAVE_BROKEN_READDIR=yes
8592 else
8593 echo "configure: failed program was:" >&5
8594 cat conftest.$ac_ext >&5
8595 rm -fr conftest*
8596 samba_cv_HAVE_BROKEN_READDIR=no
8598 rm -fr conftest*
8603 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8604 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8605 cat >> confdefs.h <<\EOF
8606 #define HAVE_BROKEN_READDIR 1
8611 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8612 echo "configure:8613: checking for utimbuf" >&5
8613 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8615 else
8617 cat > conftest.$ac_ext <<EOF
8618 #line 8619 "configure"
8619 #include "confdefs.h"
8620 #include <sys/types.h>
8621 #include <utime.h>
8622 int main() {
8623 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8624 ; return 0; }
8626 if { (eval echo configure:8627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8627 rm -rf conftest*
8628 samba_cv_HAVE_UTIMBUF=yes
8629 else
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 rm -rf conftest*
8633 samba_cv_HAVE_UTIMBUF=no
8635 rm -f conftest*
8638 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8639 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8640 cat >> confdefs.h <<\EOF
8641 #define HAVE_UTIMBUF 1
8647 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
8649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8650 echo "configure:8651: checking for $ac_func" >&5
8651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8653 else
8654 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8657 /* System header to define __stub macros and hopefully few prototypes,
8658 which can conflict with char $ac_func(); below. */
8659 #include <assert.h>
8660 /* Override any gcc2 internal prototype to avoid an error. */
8661 /* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8663 char $ac_func();
8665 int main() {
8667 /* The GNU C library defines this for functions which it implements
8668 to always fail with ENOSYS. Some functions are actually named
8669 something starting with __ and the normal name is an alias. */
8670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8671 choke me
8672 #else
8673 $ac_func();
8674 #endif
8676 ; return 0; }
8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8679 rm -rf conftest*
8680 eval "ac_cv_func_$ac_func=yes"
8681 else
8682 echo "configure: failed program was:" >&5
8683 cat conftest.$ac_ext >&5
8684 rm -rf conftest*
8685 eval "ac_cv_func_$ac_func=no"
8687 rm -f conftest*
8690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8691 echo "$ac_t""yes" 1>&6
8692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8693 cat >> confdefs.h <<EOF
8694 #define $ac_tr_func 1
8697 else
8698 echo "$ac_t""no" 1>&6
8700 done
8703 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8704 echo "configure:8705: checking for ut_name in utmp" >&5
8705 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
8707 else
8709 cat > conftest.$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8712 #include <sys/types.h>
8713 #include <utmp.h>
8714 int main() {
8715 struct utmp ut; ut.ut_name[0] = 'a';
8716 ; return 0; }
8718 if { (eval echo configure:8719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8719 rm -rf conftest*
8720 samba_cv_HAVE_UT_UT_NAME=yes
8721 else
8722 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5
8724 rm -rf conftest*
8725 samba_cv_HAVE_UT_UT_NAME=no
8727 rm -f conftest*
8730 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8731 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
8732 cat >> confdefs.h <<\EOF
8733 #define HAVE_UT_UT_NAME 1
8738 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8739 echo "configure:8740: checking for ut_user in utmp" >&5
8740 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8742 else
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8747 #include <sys/types.h>
8748 #include <utmp.h>
8749 int main() {
8750 struct utmp ut; ut.ut_user[0] = 'a';
8751 ; return 0; }
8753 if { (eval echo configure:8754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8754 rm -rf conftest*
8755 samba_cv_HAVE_UT_UT_USER=yes
8756 else
8757 echo "configure: failed program was:" >&5
8758 cat conftest.$ac_ext >&5
8759 rm -rf conftest*
8760 samba_cv_HAVE_UT_UT_USER=no
8762 rm -f conftest*
8765 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8766 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
8767 cat >> confdefs.h <<\EOF
8768 #define HAVE_UT_UT_USER 1
8773 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
8774 echo "configure:8775: checking for ut_id in utmp" >&5
8775 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8777 else
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8782 #include <sys/types.h>
8783 #include <utmp.h>
8784 int main() {
8785 struct utmp ut; ut.ut_id[0] = 'a';
8786 ; return 0; }
8788 if { (eval echo configure:8789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8789 rm -rf conftest*
8790 samba_cv_HAVE_UT_UT_ID=yes
8791 else
8792 echo "configure: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8794 rm -rf conftest*
8795 samba_cv_HAVE_UT_UT_ID=no
8797 rm -f conftest*
8800 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
8801 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
8802 cat >> confdefs.h <<\EOF
8803 #define HAVE_UT_UT_ID 1
8808 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
8809 echo "configure:8810: checking for ut_host in utmp" >&5
8810 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8812 else
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 #include <sys/types.h>
8818 #include <utmp.h>
8819 int main() {
8820 struct utmp ut; ut.ut_host[0] = 'a';
8821 ; return 0; }
8823 if { (eval echo configure:8824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8824 rm -rf conftest*
8825 samba_cv_HAVE_UT_UT_HOST=yes
8826 else
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8829 rm -rf conftest*
8830 samba_cv_HAVE_UT_UT_HOST=no
8832 rm -f conftest*
8835 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
8836 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
8837 cat >> confdefs.h <<\EOF
8838 #define HAVE_UT_UT_HOST 1
8843 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
8844 echo "configure:8845: checking for ut_time in utmp" >&5
8845 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8847 else
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 #include <sys/types.h>
8853 #include <utmp.h>
8854 int main() {
8855 struct utmp ut; time_t t; ut.ut_time = t;
8856 ; return 0; }
8858 if { (eval echo configure:8859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8859 rm -rf conftest*
8860 samba_cv_HAVE_UT_UT_TIME=yes
8861 else
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8864 rm -rf conftest*
8865 samba_cv_HAVE_UT_UT_TIME=no
8867 rm -f conftest*
8870 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
8871 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
8872 cat >> confdefs.h <<\EOF
8873 #define HAVE_UT_UT_TIME 1
8878 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
8879 echo "configure:8880: checking for ut_tv in utmp" >&5
8880 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8882 else
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 #include <sys/types.h>
8888 #include <utmp.h>
8889 int main() {
8890 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
8891 ; return 0; }
8893 if { (eval echo configure:8894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8894 rm -rf conftest*
8895 samba_cv_HAVE_UT_UT_TV=yes
8896 else
8897 echo "configure: failed program was:" >&5
8898 cat conftest.$ac_ext >&5
8899 rm -rf conftest*
8900 samba_cv_HAVE_UT_UT_TV=no
8902 rm -f conftest*
8905 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
8906 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
8907 cat >> confdefs.h <<\EOF
8908 #define HAVE_UT_UT_TV 1
8913 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
8914 echo "configure:8915: checking for ut_type in utmp" >&5
8915 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8917 else
8919 cat > conftest.$ac_ext <<EOF
8920 #line 8921 "configure"
8921 #include "confdefs.h"
8922 #include <sys/types.h>
8923 #include <utmp.h>
8924 int main() {
8925 struct utmp ut; ut.ut_type = 0;
8926 ; return 0; }
8928 if { (eval echo configure:8929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8929 rm -rf conftest*
8930 samba_cv_HAVE_UT_UT_TYPE=yes
8931 else
8932 echo "configure: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8934 rm -rf conftest*
8935 samba_cv_HAVE_UT_UT_TYPE=no
8937 rm -f conftest*
8940 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
8941 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
8942 cat >> confdefs.h <<\EOF
8943 #define HAVE_UT_UT_TYPE 1
8948 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
8949 echo "configure:8950: checking for ut_pid in utmp" >&5
8950 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
8951 echo $ac_n "(cached) $ac_c" 1>&6
8952 else
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 #include <sys/types.h>
8958 #include <utmp.h>
8959 int main() {
8960 struct utmp ut; ut.ut_pid = 0;
8961 ; return 0; }
8963 if { (eval echo configure:8964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8964 rm -rf conftest*
8965 samba_cv_HAVE_UT_UT_PID=yes
8966 else
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 rm -rf conftest*
8970 samba_cv_HAVE_UT_UT_PID=no
8972 rm -f conftest*
8975 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
8976 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
8977 cat >> confdefs.h <<\EOF
8978 #define HAVE_UT_UT_PID 1
8983 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
8984 echo "configure:8985: checking for ut_exit in utmp" >&5
8985 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8987 else
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 #include <sys/types.h>
8993 #include <utmp.h>
8994 int main() {
8995 struct utmp ut; ut.ut_exit.e_exit = 0;
8996 ; return 0; }
8998 if { (eval echo configure:8999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8999 rm -rf conftest*
9000 samba_cv_HAVE_UT_UT_EXIT=yes
9001 else
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9004 rm -rf conftest*
9005 samba_cv_HAVE_UT_UT_EXIT=no
9007 rm -f conftest*
9010 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9011 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9012 cat >> confdefs.h <<\EOF
9013 #define HAVE_UT_UT_EXIT 1
9018 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9019 echo "configure:9020: checking for ut_addr in utmp" >&5
9020 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9022 else
9024 cat > conftest.$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9027 #include <sys/types.h>
9028 #include <utmp.h>
9029 int main() {
9030 struct utmp ut; ut.ut_addr = 0;
9031 ; return 0; }
9033 if { (eval echo configure:9034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9034 rm -rf conftest*
9035 samba_cv_HAVE_UT_UT_ADDR=yes
9036 else
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9039 rm -rf conftest*
9040 samba_cv_HAVE_UT_UT_ADDR=no
9042 rm -f conftest*
9045 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9046 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9047 cat >> confdefs.h <<\EOF
9048 #define HAVE_UT_UT_ADDR 1
9053 if test x$ac_cv_func_pututline = xyes ; then
9054 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9055 echo "configure:9056: checking whether pututline returns pointer" >&5
9056 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9058 else
9060 cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063 #include <sys/types.h>
9064 #include <utmp.h>
9065 int main() {
9066 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9067 ; return 0; }
9069 if { (eval echo configure:9070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9070 rm -rf conftest*
9071 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9072 else
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9075 rm -rf conftest*
9076 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9078 rm -f conftest*
9081 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9082 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9083 cat >> confdefs.h <<\EOF
9084 #define PUTUTLINE_RETURNS_UTMP 1
9090 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9091 echo "configure:9092: checking for ut_syslen in utmpx" >&5
9092 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9094 else
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 #include <sys/types.h>
9100 #include <utmpx.h>
9101 int main() {
9102 struct utmpx ux; ux.ut_syslen = 0;
9103 ; return 0; }
9105 if { (eval echo configure:9106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9106 rm -rf conftest*
9107 samba_cv_HAVE_UX_UT_SYSLEN=yes
9108 else
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -rf conftest*
9112 samba_cv_HAVE_UX_UT_SYSLEN=no
9114 rm -f conftest*
9117 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9118 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9119 cat >> confdefs.h <<\EOF
9120 #define HAVE_UX_UT_SYSLEN 1
9125 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9126 echo "configure:9127: checking for Linux kernel oplocks" >&5
9127 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9129 else
9131 if test "$cross_compiling" = yes; then
9132 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9133 else
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9138 #include <sys/types.h>
9139 #include <fcntl.h>
9140 #ifndef F_GETLEASE
9141 #define F_GETLEASE 1025
9142 #endif
9143 main() {
9144 int fd = open("/dev/null", O_RDONLY);
9145 return fcntl(fd, F_GETLEASE, 0) == -1;
9149 if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9150 then
9151 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9152 else
9153 echo "configure: failed program was:" >&5
9154 cat conftest.$ac_ext >&5
9155 rm -fr conftest*
9156 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9158 rm -fr conftest*
9163 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9164 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9165 cat >> confdefs.h <<\EOF
9166 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9171 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9172 echo "configure:9173: checking for kernel change notify support" >&5
9173 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9174 echo $ac_n "(cached) $ac_c" 1>&6
9175 else
9177 if test "$cross_compiling" = yes; then
9178 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9179 else
9180 cat > conftest.$ac_ext <<EOF
9181 #line 9182 "configure"
9182 #include "confdefs.h"
9184 #include <sys/types.h>
9185 #include <fcntl.h>
9186 #include <signal.h>
9187 #ifndef F_NOTIFY
9188 #define F_NOTIFY 1026
9189 #endif
9190 main() {
9191 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9196 then
9197 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9198 else
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 rm -fr conftest*
9202 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9204 rm -fr conftest*
9209 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9210 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9211 cat >> confdefs.h <<\EOF
9212 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9217 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9218 echo "configure:9219: checking for kernel share modes" >&5
9219 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9220 echo $ac_n "(cached) $ac_c" 1>&6
9221 else
9223 if test "$cross_compiling" = yes; then
9224 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9225 else
9226 cat > conftest.$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9230 #include <sys/types.h>
9231 #include <fcntl.h>
9232 #include <signal.h>
9233 #include <sys/file.h>
9234 #ifndef LOCK_MAND
9235 #define LOCK_MAND 32
9236 #define LOCK_READ 64
9237 #endif
9238 main() {
9239 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9243 if { (eval echo configure:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9244 then
9245 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9246 else
9247 echo "configure: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9249 rm -fr conftest*
9250 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9252 rm -fr conftest*
9257 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9258 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9259 cat >> confdefs.h <<\EOF
9260 #define HAVE_KERNEL_SHARE_MODES 1
9268 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9269 echo "configure:9270: checking for IRIX kernel oplock type definitions" >&5
9270 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9272 else
9274 cat > conftest.$ac_ext <<EOF
9275 #line 9276 "configure"
9276 #include "confdefs.h"
9277 #include <sys/types.h>
9278 #include <fcntl.h>
9279 int main() {
9280 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9281 ; return 0; }
9283 if { (eval echo configure:9284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9284 rm -rf conftest*
9285 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9286 else
9287 echo "configure: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 rm -rf conftest*
9290 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9292 rm -f conftest*
9295 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9296 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9297 cat >> confdefs.h <<\EOF
9298 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9303 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9304 echo "configure:9305: checking for irix specific capabilities" >&5
9305 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9306 echo $ac_n "(cached) $ac_c" 1>&6
9307 else
9309 if test "$cross_compiling" = yes; then
9310 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9311 else
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9315 #include <sys/types.h>
9316 #include <sys/capability.h>
9317 main() {
9318 cap_t cap;
9319 if ((cap = cap_get_proc()) == NULL)
9320 exit(1);
9321 cap->cap_effective |= CAP_NETWORK_MGT;
9322 cap->cap_inheritable |= CAP_NETWORK_MGT;
9323 cap_set_proc(cap);
9324 exit(0);
9328 if { (eval echo configure:9329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9329 then
9330 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9331 else
9332 echo "configure: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9334 rm -fr conftest*
9335 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9337 rm -fr conftest*
9342 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9343 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9344 cat >> confdefs.h <<\EOF
9345 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9351 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9352 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9355 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9356 echo "configure:9357: checking for int16 typedef included by rpc/rpc.h" >&5
9357 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9359 else
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 #include <sys/types.h>
9365 #if defined(HAVE_RPC_RPC_H)
9366 #include <rpc/rpc.h>
9367 #endif
9368 int main() {
9369 int16 testvar;
9370 ; return 0; }
9372 if { (eval echo configure:9373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9373 rm -rf conftest*
9374 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9375 else
9376 echo "configure: failed program was:" >&5
9377 cat conftest.$ac_ext >&5
9378 rm -rf conftest*
9379 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9381 rm -f conftest*
9384 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9385 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9386 cat >> confdefs.h <<\EOF
9387 #define HAVE_INT16_FROM_RPC_RPC_H 1
9392 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9393 echo "configure:9394: checking for uint16 typedef included by rpc/rpc.h" >&5
9394 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396 else
9398 cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 #include <sys/types.h>
9402 #if defined(HAVE_RPC_RPC_H)
9403 #include <rpc/rpc.h>
9404 #endif
9405 int main() {
9406 uint16 testvar;
9407 ; return 0; }
9409 if { (eval echo configure:9410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9410 rm -rf conftest*
9411 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9412 else
9413 echo "configure: failed program was:" >&5
9414 cat conftest.$ac_ext >&5
9415 rm -rf conftest*
9416 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9418 rm -f conftest*
9421 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9422 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9423 cat >> confdefs.h <<\EOF
9424 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9429 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9430 echo "configure:9431: checking for int32 typedef included by rpc/rpc.h" >&5
9431 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9433 else
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9438 #include <sys/types.h>
9439 #if defined(HAVE_RPC_RPC_H)
9440 #include <rpc/rpc.h>
9441 #endif
9442 int main() {
9443 int32 testvar;
9444 ; return 0; }
9446 if { (eval echo configure:9447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9447 rm -rf conftest*
9448 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9449 else
9450 echo "configure: failed program was:" >&5
9451 cat conftest.$ac_ext >&5
9452 rm -rf conftest*
9453 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9455 rm -f conftest*
9458 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9459 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9460 cat >> confdefs.h <<\EOF
9461 #define HAVE_INT32_FROM_RPC_RPC_H 1
9466 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9467 echo "configure:9468: checking for uint32 typedef included by rpc/rpc.h" >&5
9468 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9470 else
9472 cat > conftest.$ac_ext <<EOF
9473 #line 9474 "configure"
9474 #include "confdefs.h"
9475 #include <sys/types.h>
9476 #if defined(HAVE_RPC_RPC_H)
9477 #include <rpc/rpc.h>
9478 #endif
9479 int main() {
9480 uint32 testvar;
9481 ; return 0; }
9483 if { (eval echo configure:9484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9484 rm -rf conftest*
9485 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9486 else
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9489 rm -rf conftest*
9490 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9492 rm -f conftest*
9495 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9496 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9497 cat >> confdefs.h <<\EOF
9498 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9504 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9505 echo "configure:9506: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9506 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9508 else
9510 cat > conftest.$ac_ext <<EOF
9511 #line 9512 "configure"
9512 #include "confdefs.h"
9513 #include <sys/types.h>
9514 #ifdef HAVE_SYS_SECURITY_H
9515 #include <sys/security.h>
9516 #include <prot.h>
9517 #endif /* HAVE_SYS_SECURITY_H */
9518 #if defined(HAVE_RPC_RPC_H)
9519 #include <rpc/rpc.h>
9520 #endif
9521 int main() {
9522 int testvar;
9523 ; return 0; }
9525 if { (eval echo configure:9526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9526 rm -rf conftest*
9527 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9528 else
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 rm -rf conftest*
9532 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9534 rm -f conftest*
9537 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9538 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9539 cat >> confdefs.h <<\EOF
9540 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9545 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9546 echo "configure:9547: checking for test routines" >&5
9547 if test "$cross_compiling" = yes; then
9548 echo "configure: warning: cannot run when cross-compiling" 1>&2
9549 else
9550 cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 #include "${srcdir-.}/tests/trivial.c"
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9556 then
9557 echo "$ac_t""yes" 1>&6
9558 else
9559 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9561 rm -fr conftest*
9562 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9564 rm -fr conftest*
9568 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9569 echo "configure:9570: checking for ftruncate extend" >&5
9570 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9571 echo $ac_n "(cached) $ac_c" 1>&6
9572 else
9574 if test "$cross_compiling" = yes; then
9575 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9576 else
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9580 #include "${srcdir-.}/tests/ftruncate.c"
9582 if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9583 then
9584 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9585 else
9586 echo "configure: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9588 rm -fr conftest*
9589 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9591 rm -fr conftest*
9596 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9597 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9598 cat >> confdefs.h <<\EOF
9599 #define HAVE_FTRUNCATE_EXTEND 1
9604 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9605 echo "configure:9606: checking for broken getgroups" >&5
9606 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9607 echo $ac_n "(cached) $ac_c" 1>&6
9608 else
9610 if test "$cross_compiling" = yes; then
9611 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9612 else
9613 cat > conftest.$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include "${srcdir-.}/tests/getgroups.c"
9618 if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9619 then
9620 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9621 else
9622 echo "configure: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9624 rm -fr conftest*
9625 samba_cv_HAVE_BROKEN_GETGROUPS=no
9627 rm -fr conftest*
9632 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9633 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9634 cat >> confdefs.h <<\EOF
9635 #define HAVE_BROKEN_GETGROUPS 1
9640 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9641 echo "configure:9642: checking whether getpass should be replaced" >&5
9642 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9644 else
9646 SAVE_CPPFLAGS="$CPPFLAGS"
9647 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9648 cat > conftest.$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9652 #define REPLACE_GETPASS 1
9653 #define NO_CONFIG_H 1
9654 #define main dont_declare_main
9655 #include "${srcdir-.}/lib/getsmbpass.c"
9656 #undef main
9658 int main() {
9660 ; return 0; }
9662 if { (eval echo configure:9663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9663 rm -rf conftest*
9664 samba_cv_REPLACE_GETPASS=yes
9665 else
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9668 rm -rf conftest*
9669 samba_cv_REPLACE_GETPASS=no
9671 rm -f conftest*
9672 CPPFLAGS="$SAVE_CPPFLAGS"
9676 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9677 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9678 cat >> confdefs.h <<\EOF
9679 #define REPLACE_GETPASS 1
9684 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9685 echo "configure:9686: checking for broken inet_ntoa" >&5
9686 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9688 else
9690 if test "$cross_compiling" = yes; then
9691 samba_cv_REPLACE_INET_NTOA=cross
9692 else
9693 cat > conftest.$ac_ext <<EOF
9694 #line 9695 "configure"
9695 #include "confdefs.h"
9697 #include <stdio.h>
9698 #include <sys/types.h>
9699 #include <netinet/in.h>
9700 #ifdef HAVE_ARPA_INET_H
9701 #include <arpa/inet.h>
9702 #endif
9703 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9704 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9705 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9706 exit(1);}
9708 if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9709 then
9710 samba_cv_REPLACE_INET_NTOA=yes
9711 else
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 rm -fr conftest*
9715 samba_cv_REPLACE_INET_NTOA=no
9717 rm -fr conftest*
9722 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9723 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9724 cat >> confdefs.h <<\EOF
9725 #define REPLACE_INET_NTOA 1
9730 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9731 echo "configure:9732: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9732 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734 else
9736 if test "$cross_compiling" = yes; then
9737 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9738 else
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9742 #include <unistd.h>
9743 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9745 if { (eval echo configure:9746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9746 then
9747 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9748 else
9749 echo "configure: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9751 rm -fr conftest*
9752 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9754 rm -fr conftest*
9759 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9760 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9761 cat >> confdefs.h <<\EOF
9762 #define SYSCONF_SC_NGROUPS_MAX 1
9767 echo $ac_n "checking for root""... $ac_c" 1>&6
9768 echo "configure:9769: checking for root" >&5
9769 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771 else
9773 if test "$cross_compiling" = yes; then
9774 samba_cv_HAVE_ROOT=cross
9775 else
9776 cat > conftest.$ac_ext <<EOF
9777 #line 9778 "configure"
9778 #include "confdefs.h"
9779 main() { exit(getuid() != 0); }
9781 if { (eval echo configure:9782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9782 then
9783 samba_cv_HAVE_ROOT=yes
9784 else
9785 echo "configure: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9787 rm -fr conftest*
9788 samba_cv_HAVE_ROOT=no
9790 rm -fr conftest*
9795 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9796 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
9797 cat >> confdefs.h <<\EOF
9798 #define HAVE_ROOT 1
9801 else
9802 echo "configure: warning: running as non-root will disable some tests" 1>&2
9805 ##################
9806 # look for a method of finding the list of network interfaces
9807 iface=no;
9808 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9809 echo "configure:9810: checking for iface AIX" >&5
9810 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9812 else
9814 if test "$cross_compiling" = yes; then
9815 samba_cv_HAVE_IFACE_AIX=cross
9816 else
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9821 #define HAVE_IFACE_AIX 1
9822 #define AUTOCONF_TEST 1
9823 #include "confdefs.h"
9824 #include "${srcdir-.}/lib/interfaces.c"
9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9827 then
9828 samba_cv_HAVE_IFACE_AIX=yes
9829 else
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9832 rm -fr conftest*
9833 samba_cv_HAVE_IFACE_AIX=no
9835 rm -fr conftest*
9840 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9841 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
9842 iface=yes;cat >> confdefs.h <<\EOF
9843 #define HAVE_IFACE_AIX 1
9848 if test $iface = no; then
9849 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9850 echo "configure:9851: checking for iface ifconf" >&5
9851 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9853 else
9855 if test "$cross_compiling" = yes; then
9856 samba_cv_HAVE_IFACE_IFCONF=cross
9857 else
9858 cat > conftest.$ac_ext <<EOF
9859 #line 9860 "configure"
9860 #include "confdefs.h"
9862 #define HAVE_IFACE_IFCONF 1
9863 #define AUTOCONF_TEST 1
9864 #include "confdefs.h"
9865 #include "${srcdir-.}/lib/interfaces.c"
9867 if { (eval echo configure:9868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9868 then
9869 samba_cv_HAVE_IFACE_IFCONF=yes
9870 else
9871 echo "configure: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9873 rm -fr conftest*
9874 samba_cv_HAVE_IFACE_IFCONF=no
9876 rm -fr conftest*
9881 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9882 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
9883 iface=yes;cat >> confdefs.h <<\EOF
9884 #define HAVE_IFACE_IFCONF 1
9890 if test $iface = no; then
9891 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9892 echo "configure:9893: checking for iface ifreq" >&5
9893 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9895 else
9897 if test "$cross_compiling" = yes; then
9898 samba_cv_HAVE_IFACE_IFREQ=cross
9899 else
9900 cat > conftest.$ac_ext <<EOF
9901 #line 9902 "configure"
9902 #include "confdefs.h"
9904 #define HAVE_IFACE_IFREQ 1
9905 #define AUTOCONF_TEST 1
9906 #include "confdefs.h"
9907 #include "${srcdir-.}/lib/interfaces.c"
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9910 then
9911 samba_cv_HAVE_IFACE_IFREQ=yes
9912 else
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 rm -fr conftest*
9916 samba_cv_HAVE_IFACE_IFREQ=no
9918 rm -fr conftest*
9923 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9924 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
9925 iface=yes;cat >> confdefs.h <<\EOF
9926 #define HAVE_IFACE_IFREQ 1
9933 ################################################
9934 # look for a method of setting the effective uid
9935 seteuid=no;
9936 if test $seteuid = no; then
9937 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9938 echo "configure:9939: checking for setresuid" >&5
9939 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9941 else
9943 if test "$cross_compiling" = yes; then
9944 samba_cv_USE_SETRESUID=cross
9945 else
9946 cat > conftest.$ac_ext <<EOF
9947 #line 9948 "configure"
9948 #include "confdefs.h"
9950 #define AUTOCONF_TEST 1
9951 #define USE_SETRESUID 1
9952 #include "confdefs.h"
9953 #include "${srcdir-.}/lib/util_sec.c"
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9956 then
9957 samba_cv_USE_SETRESUID=yes
9958 else
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 rm -fr conftest*
9962 samba_cv_USE_SETRESUID=no
9964 rm -fr conftest*
9969 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9970 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
9971 seteuid=yes;cat >> confdefs.h <<\EOF
9972 #define USE_SETRESUID 1
9979 if test $seteuid = no; then
9980 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9981 echo "configure:9982: checking for setreuid" >&5
9982 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9984 else
9986 if test "$cross_compiling" = yes; then
9987 samba_cv_USE_SETREUID=cross
9988 else
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9993 #define AUTOCONF_TEST 1
9994 #define USE_SETREUID 1
9995 #include "confdefs.h"
9996 #include "${srcdir-.}/lib/util_sec.c"
9998 if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9999 then
10000 samba_cv_USE_SETREUID=yes
10001 else
10002 echo "configure: failed program was:" >&5
10003 cat conftest.$ac_ext >&5
10004 rm -fr conftest*
10005 samba_cv_USE_SETREUID=no
10007 rm -fr conftest*
10012 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10013 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10014 seteuid=yes;cat >> confdefs.h <<\EOF
10015 #define USE_SETREUID 1
10021 if test $seteuid = no; then
10022 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10023 echo "configure:10024: checking for seteuid" >&5
10024 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10026 else
10028 if test "$cross_compiling" = yes; then
10029 samba_cv_USE_SETEUID=cross
10030 else
10031 cat > conftest.$ac_ext <<EOF
10032 #line 10033 "configure"
10033 #include "confdefs.h"
10035 #define AUTOCONF_TEST 1
10036 #define USE_SETEUID 1
10037 #include "confdefs.h"
10038 #include "${srcdir-.}/lib/util_sec.c"
10040 if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10041 then
10042 samba_cv_USE_SETEUID=yes
10043 else
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 rm -fr conftest*
10047 samba_cv_USE_SETEUID=no
10049 rm -fr conftest*
10054 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10055 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10056 seteuid=yes;cat >> confdefs.h <<\EOF
10057 #define USE_SETEUID 1
10063 if test $seteuid = no; then
10064 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10065 echo "configure:10066: checking for setuidx" >&5
10066 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068 else
10070 if test "$cross_compiling" = yes; then
10071 samba_cv_USE_SETUIDX=cross
10072 else
10073 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10077 #define AUTOCONF_TEST 1
10078 #define USE_SETUIDX 1
10079 #include "confdefs.h"
10080 #include "${srcdir-.}/lib/util_sec.c"
10082 if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10083 then
10084 samba_cv_USE_SETUIDX=yes
10085 else
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 rm -fr conftest*
10089 samba_cv_USE_SETUIDX=no
10091 rm -fr conftest*
10096 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10097 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10098 seteuid=yes;cat >> confdefs.h <<\EOF
10099 #define USE_SETUIDX 1
10106 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10107 echo "configure:10108: checking for working mmap" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110 else
10112 if test "$cross_compiling" = yes; then
10113 samba_cv_HAVE_MMAP=cross
10114 else
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 #include "${srcdir-.}/tests/shared_mmap.c"
10120 if { (eval echo configure:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10121 then
10122 samba_cv_HAVE_MMAP=yes
10123 else
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 rm -fr conftest*
10127 samba_cv_HAVE_MMAP=no
10129 rm -fr conftest*
10134 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10135 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10136 cat >> confdefs.h <<\EOF
10137 #define HAVE_MMAP 1
10142 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10143 echo "configure:10144: checking for ftruncate needs root" >&5
10144 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10146 else
10148 if test "$cross_compiling" = yes; then
10149 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10150 else
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 #include "${srcdir-.}/tests/ftruncroot.c"
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10157 then
10158 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10159 else
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -fr conftest*
10163 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10165 rm -fr conftest*
10170 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10171 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10172 cat >> confdefs.h <<\EOF
10173 #define FTRUNCATE_NEEDS_ROOT 1
10178 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10179 echo "configure:10180: checking for fcntl locking" >&5
10180 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10182 else
10184 if test "$cross_compiling" = yes; then
10185 samba_cv_HAVE_FCNTL_LOCK=cross
10186 else
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 #include "${srcdir-.}/tests/fcntl_lock.c"
10192 if { (eval echo configure:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10193 then
10194 samba_cv_HAVE_FCNTL_LOCK=yes
10195 else
10196 echo "configure: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10198 rm -fr conftest*
10199 samba_cv_HAVE_FCNTL_LOCK=no
10201 rm -fr conftest*
10206 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10207 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10208 cat >> confdefs.h <<\EOF
10209 #define HAVE_FCNTL_LOCK 1
10214 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10215 echo "configure:10216: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10216 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10217 echo $ac_n "(cached) $ac_c" 1>&6
10218 else
10220 if test "$cross_compiling" = yes; then
10221 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10222 else
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 #include "${srcdir-.}/tests/fcntl_lock64.c"
10228 if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10229 then
10230 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10231 else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -fr conftest*
10235 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10237 rm -fr conftest*
10242 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10243 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10244 cat >> confdefs.h <<\EOF
10245 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10249 else
10252 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10253 echo "configure:10254: checking for 64 bit fcntl locking" >&5
10254 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10256 else
10258 if test "$cross_compiling" = yes; then
10259 samba_cv_HAVE_STRUCT_FLOCK64=cross
10260 else
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10265 #if defined(HAVE_UNISTD_H)
10266 #include <unistd.h>
10267 #endif
10268 #include <stdio.h>
10269 #include <stdlib.h>
10271 #ifdef HAVE_FCNTL_H
10272 #include <fcntl.h>
10273 #endif
10275 #ifdef HAVE_SYS_FCNTL_H
10276 #include <sys/fcntl.h>
10277 #endif
10278 main() { struct flock64 fl64;
10279 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10280 exit(0);
10281 #else
10282 exit(1);
10283 #endif
10286 if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10287 then
10288 samba_cv_HAVE_STRUCT_FLOCK64=yes
10289 else
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10292 rm -fr conftest*
10293 samba_cv_HAVE_STRUCT_FLOCK64=no
10295 rm -fr conftest*
10300 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10302 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10303 cat >> confdefs.h <<\EOF
10304 #define HAVE_STRUCT_FLOCK64 1
10310 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10311 echo "configure:10312: checking for a crypt that needs truncated salt" >&5
10312 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10314 else
10316 if test "$cross_compiling" = yes; then
10317 samba_cv_HAVE_TRUNCATED_SALT=cross
10318 else
10319 cat > conftest.$ac_ext <<EOF
10320 #line 10321 "configure"
10321 #include "confdefs.h"
10322 #include "${srcdir-.}/tests/crypttest.c"
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10325 then
10326 samba_cv_HAVE_TRUNCATED_SALT=no
10327 else
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10330 rm -fr conftest*
10331 samba_cv_HAVE_TRUNCATED_SALT=yes
10333 rm -fr conftest*
10338 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10339 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10340 cat >> confdefs.h <<\EOF
10341 #define HAVE_TRUNCATED_SALT 1
10346 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10347 echo "configure:10348: checking for broken nisplus include files" >&5
10348 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10350 else
10352 cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 #include <sys/acl.h>
10356 #if defined(HAVE_RPCSVC_NIS_H)
10357 #include <rpcsvc/nis.h>
10358 #endif
10359 int main() {
10360 return 0;
10361 ; return 0; }
10363 if { (eval echo configure:10364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10364 rm -rf conftest*
10365 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10366 else
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10369 rm -rf conftest*
10370 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10372 rm -f conftest*
10375 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10376 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10377 cat >> confdefs.h <<\EOF
10378 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10384 #################################################
10385 # check for smbwrapper support
10386 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10387 echo "configure:10388: checking whether to use smbwrapper" >&5
10388 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10389 if test "${with_smbwrapper+set}" = set; then
10390 withval="$with_smbwrapper"
10391 case "$withval" in
10392 yes)
10393 echo "$ac_t""yes" 1>&6
10394 cat >> confdefs.h <<\EOF
10395 #define WITH_SMBWRAPPER 1
10398 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10400 if test x$ATTEMPT_WRAP32_BUILD = x; then
10401 WRAP32=""
10402 else
10403 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10406 # Conditions under which smbwrapper should not be built.
10408 if test x$PICFLAG = x; then
10409 echo No support for PIC code - disabling smbwrapper and smbsh
10410 WRAP=""
10411 WRAP32=""
10412 elif test x$ac_cv_func_syscall = xno; then
10413 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10414 WRAP=""
10415 WRAP32=""
10419 echo "$ac_t""no" 1>&6
10421 esac
10422 else
10423 echo "$ac_t""no" 1>&6
10428 #################################################
10429 # check for the AFS filesystem
10430 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10431 echo "configure:10432: checking whether to use AFS" >&5
10432 # Check whether --with-afs or --without-afs was given.
10433 if test "${with_afs+set}" = set; then
10434 withval="$with_afs"
10435 case "$withval" in
10436 yes)
10437 echo "$ac_t""yes" 1>&6
10438 cat >> confdefs.h <<\EOF
10439 #define WITH_AFS 1
10444 echo "$ac_t""no" 1>&6
10446 esac
10447 else
10448 echo "$ac_t""no" 1>&6
10454 #################################################
10455 # check for the DFS auth system
10456 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10457 echo "configure:10458: checking whether to use DFS auth" >&5
10458 # Check whether --with-dfs or --without-dfs was given.
10459 if test "${with_dfs+set}" = set; then
10460 withval="$with_dfs"
10461 case "$withval" in
10462 yes)
10463 echo "$ac_t""yes" 1>&6
10464 cat >> confdefs.h <<\EOF
10465 #define WITH_DFS 1
10470 echo "$ac_t""no" 1>&6
10472 esac
10473 else
10474 echo "$ac_t""no" 1>&6
10479 #################################################
10480 # check for Kerberos IV auth system
10481 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10482 echo "configure:10483: checking whether to use Kerberos IV" >&5
10483 # Check whether --with-krb4 or --without-krb4 was given.
10484 if test "${with_krb4+set}" = set; then
10485 withval="$with_krb4"
10486 echo "$ac_t""yes" 1>&6
10487 cat >> confdefs.h <<\EOF
10488 #define KRB4_AUTH 1
10491 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10492 echo "configure:10493: checking for dn_expand in -lresolv" >&5
10493 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10496 else
10497 ac_save_LIBS="$LIBS"
10498 LIBS="-lresolv $LIBS"
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 /* We use char because int might match the return type of a gcc2
10504 builtin and then its argument prototype would still apply. */
10505 char dn_expand();
10507 int main() {
10508 dn_expand()
10509 ; return 0; }
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10512 rm -rf conftest*
10513 eval "ac_cv_lib_$ac_lib_var=yes"
10514 else
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10517 rm -rf conftest*
10518 eval "ac_cv_lib_$ac_lib_var=no"
10520 rm -f conftest*
10521 LIBS="$ac_save_LIBS"
10524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10525 echo "$ac_t""yes" 1>&6
10526 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10528 cat >> confdefs.h <<EOF
10529 #define $ac_tr_lib 1
10532 LIBS="-lresolv $LIBS"
10534 else
10535 echo "$ac_t""no" 1>&6
10538 LIBS="$LIBS -lkrb -ldes"
10539 CFLAGS="$CFLAGS -I$withval/include"
10540 LDFLAGS="$LDFLAGS -L$withval/lib"
10541 else
10542 echo "$ac_t""no" 1>&6
10547 #################################################
10548 # check for Kerberos 5 auth system
10549 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10550 echo "configure:10551: checking whether to use Kerberos 5" >&5
10551 # Check whether --with-krb5 or --without-krb5 was given.
10552 if test "${with_krb5+set}" = set; then
10553 withval="$with_krb5"
10554 echo "$ac_t""yes" 1>&6
10555 cat >> confdefs.h <<\EOF
10556 #define KRB5_AUTH 1
10559 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10560 CFLAGS="$CFLAGS -I$withval/include"
10561 LDFLAGS="$LDFLAGS -L$withval/lib"
10562 else
10563 echo "$ac_t""no" 1>&6
10568 #################################################
10569 # check for automount support
10570 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10571 echo "configure:10572: checking whether to use AUTOMOUNT" >&5
10572 # Check whether --with-automount or --without-automount was given.
10573 if test "${with_automount+set}" = set; then
10574 withval="$with_automount"
10575 case "$withval" in
10576 yes)
10577 echo "$ac_t""yes" 1>&6
10578 cat >> confdefs.h <<\EOF
10579 #define WITH_AUTOMOUNT 1
10584 echo "$ac_t""no" 1>&6
10586 esac
10587 else
10588 echo "$ac_t""no" 1>&6
10593 #################################################
10594 # check for smbmount support
10595 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10596 echo "configure:10597: checking whether to use SMBMOUNT" >&5
10597 # Check whether --with-smbmount or --without-smbmount was given.
10598 if test "${with_smbmount+set}" = set; then
10599 withval="$with_smbmount"
10600 case "$withval" in
10601 yes)
10602 echo "$ac_t""yes" 1>&6
10603 cat >> confdefs.h <<\EOF
10604 #define WITH_SMBMOUNT 1
10607 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10610 echo "$ac_t""no" 1>&6
10611 MPROGS=
10613 esac
10614 else
10615 echo "$ac_t""no" 1>&6
10616 MPROGS=
10622 #################################################
10623 # check for a PAM password database
10624 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10625 echo "configure:10626: checking whether to use PAM password database" >&5
10626 # Check whether --with-pam or --without-pam was given.
10627 if test "${with_pam+set}" = set; then
10628 withval="$with_pam"
10629 case "$withval" in
10630 yes)
10631 echo "$ac_t""yes" 1>&6
10632 cat >> confdefs.h <<\EOF
10633 #define WITH_PAM 1
10636 LIBS="$LIBS -lpam"
10639 echo "$ac_t""no" 1>&6
10641 esac
10642 else
10643 echo "$ac_t""no" 1>&6
10648 #################################################
10649 # check for a TDB password database
10650 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10651 echo "configure:10652: checking whether to use TDB password database" >&5
10652 # Check whether --with-tdbpwd or --without-tdbpwd was given.
10653 if test "${with_tdbpwd+set}" = set; then
10654 withval="$with_tdbpwd"
10655 case "$withval" in
10656 yes)
10657 echo "$ac_t""yes" 1>&6
10658 cat >> confdefs.h <<\EOF
10659 #define WITH_TDBPWD 1
10662 # AC_MSG_ERROR([TDB password database not supported in this version.])
10665 echo "$ac_t""no" 1>&6
10667 esac
10668 else
10669 echo "$ac_t""no" 1>&6
10674 #################################################
10675 # check for a LDAP password database
10676 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10677 echo "configure:10678: checking whether to use LDAP password database" >&5
10678 # Check whether --with-ldap or --without-ldap was given.
10679 if test "${with_ldap+set}" = set; then
10680 withval="$with_ldap"
10681 case "$withval" in
10682 yes)
10683 echo "$ac_t""yes" 1>&6
10684 cat >> confdefs.h <<\EOF
10685 #define WITH_LDAP 1
10688 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10691 echo "$ac_t""no" 1>&6
10693 esac
10694 else
10695 echo "$ac_t""no" 1>&6
10700 #################################################
10701 # check for a NISPLUS password database
10702 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10703 echo "configure:10704: checking whether to use NISPLUS password database" >&5
10704 # Check whether --with-nisplus or --without-nisplus was given.
10705 if test "${with_nisplus+set}" = set; then
10706 withval="$with_nisplus"
10707 case "$withval" in
10708 yes)
10709 echo "$ac_t""yes" 1>&6
10710 cat >> confdefs.h <<\EOF
10711 #define WITH_NISPLUS 1
10716 echo "$ac_t""no" 1>&6
10718 esac
10719 else
10720 echo "$ac_t""no" 1>&6
10725 #################################################
10726 # check for a NISPLUS_HOME support
10727 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10728 echo "configure:10729: checking whether to use NISPLUS_HOME" >&5
10729 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10730 if test "${with_nisplus_home+set}" = set; then
10731 withval="$with_nisplus_home"
10732 case "$withval" in
10733 yes)
10734 echo "$ac_t""yes" 1>&6
10735 cat >> confdefs.h <<\EOF
10736 #define WITH_NISPLUS_HOME 1
10741 echo "$ac_t""no" 1>&6
10743 esac
10744 else
10745 echo "$ac_t""no" 1>&6
10750 #################################################
10751 # check for the secure socket layer
10752 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10753 echo "configure:10754: checking whether to use SSL" >&5
10754 # Check whether --with-ssl or --without-ssl was given.
10755 if test "${with_ssl+set}" = set; then
10756 withval="$with_ssl"
10757 case "$withval" in
10758 yes)
10759 echo "$ac_t""yes" 1>&6
10760 cat >> confdefs.h <<\EOF
10761 #define WITH_SSL 1
10764 withval="/usr/local/ssl" # default
10766 if test "${with_sslinc+set}" = set; then
10768 withval="$with_sslinc"
10769 case "$withval" in
10770 yes|no)
10771 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10772 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10773 LIBS="-lssl -lcrypto $LIBS"
10774 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
10777 CFLAGS="-I${withval}/include $CFLAGS"
10778 LIBS="-lssl -lcrypto $LIBS"
10779 LDFLAGS="-L${withval}/lib $LDFLAGS"
10781 esac
10783 else
10785 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10786 LIBS="-lssl -lcrypto $LIBS"
10787 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
10791 if test ! -d ${withval}; then
10792 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10793 exit 1
10796 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10800 echo "$ac_t""no" 1>&6
10802 esac
10803 else
10804 echo "$ac_t""no" 1>&6
10809 #################################################
10810 # check for syslog logging
10811 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10812 echo "configure:10813: checking whether to use syslog logging" >&5
10813 # Check whether --with-syslog or --without-syslog was given.
10814 if test "${with_syslog+set}" = set; then
10815 withval="$with_syslog"
10816 case "$withval" in
10817 yes)
10818 echo "$ac_t""yes" 1>&6
10819 cat >> confdefs.h <<\EOF
10820 #define WITH_SYSLOG 1
10825 echo "$ac_t""no" 1>&6
10827 esac
10828 else
10829 echo "$ac_t""no" 1>&6
10834 #################################################
10835 # check for a shared memory profiling support
10836 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10837 echo "configure:10838: checking whether to use profiling" >&5
10838 # Check whether --with-profile or --without-profile was given.
10839 if test "${with_profile+set}" = set; then
10840 withval="$with_profile"
10841 case "$withval" in
10842 yes)
10843 echo "$ac_t""yes" 1>&6
10844 cat >> confdefs.h <<\EOF
10845 #define WITH_PROFILE 1
10850 echo "$ac_t""no" 1>&6
10852 esac
10853 else
10854 echo "$ac_t""no" 1>&6
10860 #################################################
10861 # check for experimental netatalk resource fork support
10862 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10863 echo "configure:10864: checking whether to support netatalk" >&5
10864 # Check whether --with-netatalk or --without-netatalk was given.
10865 if test "${with_netatalk+set}" = set; then
10866 withval="$with_netatalk"
10867 case "$withval" in
10868 yes)
10869 echo "$ac_t""yes" 1>&6
10870 cat >> confdefs.h <<\EOF
10871 #define WITH_NETATALK 1
10876 echo "$ac_t""no" 1>&6
10878 esac
10879 else
10880 echo "$ac_t""no" 1>&6
10885 #################################################
10886 # check for experimental disk-quotas support
10887 QUOTAOBJS=smbd/noquotas.o
10889 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10890 echo "configure:10891: checking whether to support disk-quotas" >&5
10891 # Check whether --with-quotas or --without-quotas was given.
10892 if test "${with_quotas+set}" = set; then
10893 withval="$with_quotas"
10894 case "$withval" in
10895 yes)
10896 echo "$ac_t""yes" 1>&6
10897 QUOTAOBJS=smbd/quotas.o
10900 echo "$ac_t""no" 1>&6
10902 esac
10903 else
10904 echo "$ac_t""no" 1>&6
10910 #################################################
10911 # check for experimental utmp accounting
10913 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10914 echo "configure:10915: checking whether to support utmp accounting" >&5
10915 # Check whether --with-utmp or --without-utmp was given.
10916 if test "${with_utmp+set}" = set; then
10917 withval="$with_utmp"
10918 case "$withval" in
10919 yes)
10920 echo "$ac_t""yes" 1>&6
10921 cat >> confdefs.h <<\EOF
10922 #define WITH_UTMP 1
10927 echo "$ac_t""no" 1>&6
10929 esac
10930 else
10931 echo "$ac_t""no" 1>&6
10936 #################################################
10937 # check for MS Dfs support
10939 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
10940 echo "configure:10941: checking whether to support Microsoft Dfs" >&5
10941 # Check whether --with-msdfs or --without-msdfs was given.
10942 if test "${with_msdfs+set}" = set; then
10943 withval="$with_msdfs"
10944 case "$withval" in
10945 yes)
10946 echo "$ac_t""yes" 1>&6
10947 cat >> confdefs.h <<\EOF
10948 #define WITH_MSDFS 1
10953 echo "$ac_t""no" 1>&6
10955 esac
10956 else
10957 echo "$ac_t""no" 1>&6
10962 #################################################
10963 # check for Samba VFS support
10965 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
10966 echo "configure:10967: checking whether to support the experimantal Samba vfs" >&5
10967 # Check whether --with-vfs or --without-vfs was given.
10968 if test "${with_vfs+set}" = set; then
10969 withval="$with_vfs"
10970 case "$withval" in
10971 yes)
10972 echo "$ac_t""yes" 1>&6
10973 cat >> confdefs.h <<\EOF
10974 #define WITH_VFS 1
10979 echo "$ac_t""no" 1>&6
10981 esac
10982 else
10983 echo "$ac_t""no" 1>&6
10988 #################################################
10989 #################################################
10990 # set private directory location
10991 # Check whether --with-privatedir or --without-privatedir was given.
10992 if test "${with_privatedir+set}" = set; then
10993 withval="$with_privatedir"
10994 case "$withval" in
10995 yes|no)
10997 # Just in case anybody calls it without argument
10999 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11000 privatedir='${prefix}/private'
11003 privatedir="$withval"
11005 esac
11007 else
11008 privatedir='${prefix}/private'
11014 #################################################
11015 # set lock directory location
11016 # Check whether --with-lockdir or --without-lockdir was given.
11017 if test "${with_lockdir+set}" = set; then
11018 withval="$with_lockdir"
11019 case "$withval" in
11020 yes|no)
11022 # Just in case anybody calls it without argument
11024 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11025 lockdir='$(VARDIR)/locks'
11028 lockdir="$withval"
11030 esac
11032 else
11033 lockdir='$(VARDIR)/locks'
11039 #################################################
11040 # set SWAT directory location
11041 # Check whether --with-swatdir or --without-swatdir was given.
11042 if test "${with_swatdir+set}" = set; then
11043 withval="$with_swatdir"
11044 case "$withval" in
11045 yes|no)
11047 # Just in case anybody does it
11049 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11050 swatdir='${prefix}/swat'
11053 swatdir="$withval"
11055 esac
11057 else
11058 swatdir='${prefix}/swat'
11064 #################################################
11065 # these tests are taken from the GNU fileutils package
11066 echo "checking how to get filesystem space usage" 1>&6
11067 echo "configure:11068: checking how to get filesystem space usage" >&5
11068 space=no
11070 # Test for statvfs64.
11071 if test $space = no; then
11072 # SVR4
11073 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11074 echo "configure:11075: checking statvfs64 function (SVR4)" >&5
11075 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11077 else
11078 if test "$cross_compiling" = yes; then
11079 fu_cv_sys_stat_statvfs64=cross
11080 else
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11085 #if defined(HAVE_UNISTD_H)
11086 #include <unistd.h>
11087 #endif
11088 #include <sys/types.h>
11089 #include <sys/statvfs.h>
11090 main ()
11092 struct statvfs64 fsd;
11093 exit (statvfs64 (".", &fsd));
11096 if { (eval echo configure:11097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11097 then
11098 fu_cv_sys_stat_statvfs64=yes
11099 else
11100 echo "configure: failed program was:" >&5
11101 cat conftest.$ac_ext >&5
11102 rm -fr conftest*
11103 fu_cv_sys_stat_statvfs64=no
11105 rm -fr conftest*
11110 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11111 if test $fu_cv_sys_stat_statvfs64 = yes; then
11112 space=yes
11113 cat >> confdefs.h <<\EOF
11114 #define STAT_STATVFS64 1
11120 # Perform only the link test since it seems there are no variants of the
11121 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11122 # because that got a false positive on SCO OSR5. Adding the declaration
11123 # of a `struct statvfs' causes this test to fail (as it should) on such
11124 # systems. That system is reported to work fine with STAT_STATFS4 which
11125 # is what it gets when this test fails.
11126 if test $space = no; then
11127 # SVR4
11128 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11129 echo "configure:11130: checking statvfs function (SVR4)" >&5
11130 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11132 else
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 #include <sys/types.h>
11137 #include <sys/statvfs.h>
11138 int main() {
11139 struct statvfs fsd; statvfs (0, &fsd);
11140 ; return 0; }
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11143 rm -rf conftest*
11144 fu_cv_sys_stat_statvfs=yes
11145 else
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11148 rm -rf conftest*
11149 fu_cv_sys_stat_statvfs=no
11151 rm -f conftest*
11154 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11155 if test $fu_cv_sys_stat_statvfs = yes; then
11156 space=yes
11157 cat >> confdefs.h <<\EOF
11158 #define STAT_STATVFS 1
11164 if test $space = no; then
11165 # DEC Alpha running OSF/1
11166 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11167 echo "configure:11168: checking for 3-argument statfs function (DEC OSF/1)" >&5
11168 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11169 echo $ac_n "(cached) $ac_c" 1>&6
11170 else
11171 if test "$cross_compiling" = yes; then
11172 fu_cv_sys_stat_statfs3_osf1=no
11173 else
11174 cat > conftest.$ac_ext <<EOF
11175 #line 11176 "configure"
11176 #include "confdefs.h"
11178 #include <sys/param.h>
11179 #include <sys/types.h>
11180 #include <sys/mount.h>
11181 main ()
11183 struct statfs fsd;
11184 fsd.f_fsize = 0;
11185 exit (statfs (".", &fsd, sizeof (struct statfs)));
11188 if { (eval echo configure:11189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11189 then
11190 fu_cv_sys_stat_statfs3_osf1=yes
11191 else
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 rm -fr conftest*
11195 fu_cv_sys_stat_statfs3_osf1=no
11197 rm -fr conftest*
11202 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11203 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11204 space=yes
11205 cat >> confdefs.h <<\EOF
11206 #define STAT_STATFS3_OSF1 1
11212 if test $space = no; then
11213 # AIX
11214 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11215 echo "configure:11216: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11216 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11218 else
11219 if test "$cross_compiling" = yes; then
11220 fu_cv_sys_stat_statfs2_bsize=no
11221 else
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11226 #ifdef HAVE_SYS_PARAM_H
11227 #include <sys/param.h>
11228 #endif
11229 #ifdef HAVE_SYS_MOUNT_H
11230 #include <sys/mount.h>
11231 #endif
11232 #ifdef HAVE_SYS_VFS_H
11233 #include <sys/vfs.h>
11234 #endif
11235 main ()
11237 struct statfs fsd;
11238 fsd.f_bsize = 0;
11239 exit (statfs (".", &fsd));
11242 if { (eval echo configure:11243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11243 then
11244 fu_cv_sys_stat_statfs2_bsize=yes
11245 else
11246 echo "configure: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11248 rm -fr conftest*
11249 fu_cv_sys_stat_statfs2_bsize=no
11251 rm -fr conftest*
11256 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11257 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11258 space=yes
11259 cat >> confdefs.h <<\EOF
11260 #define STAT_STATFS2_BSIZE 1
11266 if test $space = no; then
11267 # SVR3
11268 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11269 echo "configure:11270: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11270 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11271 echo $ac_n "(cached) $ac_c" 1>&6
11272 else
11273 if test "$cross_compiling" = yes; then
11274 fu_cv_sys_stat_statfs4=no
11275 else
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure"
11278 #include "confdefs.h"
11279 #include <sys/types.h>
11280 #include <sys/statfs.h>
11281 main ()
11283 struct statfs fsd;
11284 exit (statfs (".", &fsd, sizeof fsd, 0));
11287 if { (eval echo configure:11288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11288 then
11289 fu_cv_sys_stat_statfs4=yes
11290 else
11291 echo "configure: failed program was:" >&5
11292 cat conftest.$ac_ext >&5
11293 rm -fr conftest*
11294 fu_cv_sys_stat_statfs4=no
11296 rm -fr conftest*
11301 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11302 if test $fu_cv_sys_stat_statfs4 = yes; then
11303 space=yes
11304 cat >> confdefs.h <<\EOF
11305 #define STAT_STATFS4 1
11311 if test $space = no; then
11312 # 4.4BSD and NetBSD
11313 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11314 echo "configure:11315: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11315 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11316 echo $ac_n "(cached) $ac_c" 1>&6
11317 else
11318 if test "$cross_compiling" = yes; then
11319 fu_cv_sys_stat_statfs2_fsize=no
11320 else
11321 cat > conftest.$ac_ext <<EOF
11322 #line 11323 "configure"
11323 #include "confdefs.h"
11324 #include <sys/types.h>
11325 #ifdef HAVE_SYS_PARAM_H
11326 #include <sys/param.h>
11327 #endif
11328 #ifdef HAVE_SYS_MOUNT_H
11329 #include <sys/mount.h>
11330 #endif
11331 main ()
11333 struct statfs fsd;
11334 fsd.f_fsize = 0;
11335 exit (statfs (".", &fsd));
11338 if { (eval echo configure:11339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11339 then
11340 fu_cv_sys_stat_statfs2_fsize=yes
11341 else
11342 echo "configure: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11344 rm -fr conftest*
11345 fu_cv_sys_stat_statfs2_fsize=no
11347 rm -fr conftest*
11352 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11353 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11354 space=yes
11355 cat >> confdefs.h <<\EOF
11356 #define STAT_STATFS2_FSIZE 1
11362 if test $space = no; then
11363 # Ultrix
11364 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11365 echo "configure:11366: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11366 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11367 echo $ac_n "(cached) $ac_c" 1>&6
11368 else
11369 if test "$cross_compiling" = yes; then
11370 fu_cv_sys_stat_fs_data=no
11371 else
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11375 #include <sys/types.h>
11376 #ifdef HAVE_SYS_PARAM_H
11377 #include <sys/param.h>
11378 #endif
11379 #ifdef HAVE_SYS_MOUNT_H
11380 #include <sys/mount.h>
11381 #endif
11382 #ifdef HAVE_SYS_FS_TYPES_H
11383 #include <sys/fs_types.h>
11384 #endif
11385 main ()
11387 struct fs_data fsd;
11388 /* Ultrix's statfs returns 1 for success,
11389 0 for not mounted, -1 for failure. */
11390 exit (statfs (".", &fsd) != 1);
11393 if { (eval echo configure:11394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11394 then
11395 fu_cv_sys_stat_fs_data=yes
11396 else
11397 echo "configure: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 rm -fr conftest*
11400 fu_cv_sys_stat_fs_data=no
11402 rm -fr conftest*
11407 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11408 if test $fu_cv_sys_stat_fs_data = yes; then
11409 space=yes
11410 cat >> confdefs.h <<\EOF
11411 #define STAT_STATFS2_FS_DATA 1
11418 # As a gating factor for large file support, in order to
11419 # use <4GB files we must have the following minimal support
11420 # available.
11421 # long long, and a 64 bit off_t or off64_t.
11422 # If we don't have all of these then disable large
11423 # file support.
11425 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
11426 echo "configure:11427: checking checking if large file support can be enabled" >&5
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11431 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11432 #include <sys/types.h>
11433 #else
11434 __COMPILE_ERROR_
11435 #endif
11437 int main() {
11438 int i
11439 ; return 0; }
11441 if { (eval echo configure:11442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11442 rm -rf conftest*
11443 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
11444 else
11445 echo "configure: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 rm -rf conftest*
11448 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
11450 rm -f conftest*
11451 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
11452 echo "yes"
11453 cat >> confdefs.h <<\EOF
11454 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11457 else
11458 echo "no"
11461 # Check whether --with-spinlocks or --without-spinlocks was given.
11462 if test "${with_spinlocks+set}" = set; then
11463 withval="$with_spinlocks"
11467 if test "x$with_spinlocks" = "xyes"; then
11468 cat >> confdefs.h <<\EOF
11469 #define USE_SPINLOCKS 1
11473 case "$host_cpu" in
11474 sparc)
11475 cat >> confdefs.h <<\EOF
11476 #define SPARC_SPINLOCKS 1
11481 i386|i486|i586|i686)
11482 cat >> confdefs.h <<\EOF
11483 #define INTEL_SPINLOCKS 1
11488 mips)
11489 cat >> confdefs.h <<\EOF
11490 #define MIPS_SPINLOCKS 1
11495 powerpc)
11496 cat >> confdefs.h <<\EOF
11497 #define POWERPC_SPINLOCKS 1
11501 esac
11504 #################################################
11505 # check for POSIX ACL support
11507 echo $ac_n "checking whether to support POSIX ACLs""... $ac_c" 1>&6
11508 echo "configure:11509: checking whether to support POSIX ACLs" >&5
11509 # Check whether --with-posix-acls or --without-posix-acls was given.
11510 if test "${with_posix_acls+set}" = set; then
11511 withval="$with_posix_acls"
11512 case "$withval" in
11513 yes)
11515 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
11516 echo "configure:11517: checking for acl_get_file in -lacl" >&5
11517 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
11518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11520 else
11521 ac_save_LIBS="$LIBS"
11522 LIBS="-lacl $LIBS"
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 /* Override any gcc2 internal prototype to avoid an error. */
11527 /* We use char because int might match the return type of a gcc2
11528 builtin and then its argument prototype would still apply. */
11529 char acl_get_file();
11531 int main() {
11532 acl_get_file()
11533 ; return 0; }
11535 if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11536 rm -rf conftest*
11537 eval "ac_cv_lib_$ac_lib_var=yes"
11538 else
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542 eval "ac_cv_lib_$ac_lib_var=no"
11544 rm -f conftest*
11545 LIBS="$ac_save_LIBS"
11548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11549 echo "$ac_t""yes" 1>&6
11550 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11552 cat >> confdefs.h <<EOF
11553 #define $ac_tr_lib 1
11556 LIBS="-lacl $LIBS"
11558 else
11559 echo "$ac_t""no" 1>&6
11562 echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6
11563 echo "configure:11564: checking for POSIX ACL support" >&5
11564 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
11565 echo $ac_n "(cached) $ac_c" 1>&6
11566 else
11568 cat > conftest.$ac_ext <<EOF
11569 #line 11570 "configure"
11570 #include "confdefs.h"
11571 #include <sys/types.h>
11572 #include <sys/acl.h>
11573 int main() {
11574 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
11575 ; return 0; }
11577 if { (eval echo configure:11578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11578 rm -rf conftest*
11579 samba_cv_HAVE_POSIX_ACLS=yes
11580 else
11581 echo "configure: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11583 rm -rf conftest*
11584 samba_cv_HAVE_POSIX_ACLS=no
11586 rm -f conftest*
11589 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
11590 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
11591 echo "$ac_t""yes" 1>&6
11592 cat >> confdefs.h <<\EOF
11593 #define HAVE_POSIX_ACLS 1
11599 echo "$ac_t""no" 1>&6
11600 cat >> confdefs.h <<\EOF
11601 #define HAVE_NO_ACLS 1
11605 esac
11606 else
11607 cat >> confdefs.h <<\EOF
11608 #define HAVE_NO_ACLS 1
11611 echo "$ac_t""no" 1>&6
11615 echo "checking configure summary"
11616 if test "$cross_compiling" = yes; then
11618 else
11619 cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 #include "${srcdir-.}/tests/summary.c"
11624 if { (eval echo configure:11625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11625 then
11626 echo "configure OK";
11627 else
11628 echo "configure: failed program was:" >&5
11629 cat conftest.$ac_ext >&5
11630 rm -fr conftest*
11631 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11633 rm -fr conftest*
11637 builddir=`pwd`
11640 trap '' 1 2 15
11641 cat > confcache <<\EOF
11642 # This file is a shell script that caches the results of configure
11643 # tests run on this system so they can be shared between configure
11644 # scripts and configure runs. It is not useful on other systems.
11645 # If it contains results you don't want to keep, you may remove or edit it.
11647 # By default, configure uses ./config.cache as the cache file,
11648 # creating it if it does not exist already. You can give configure
11649 # the --cache-file=FILE option to use a different cache file; that is
11650 # what configure does when it calls configure scripts in
11651 # subdirectories, so they share the cache.
11652 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11653 # config.status only pays attention to the cache file if you give it the
11654 # --recheck option to rerun configure.
11657 # The following way of writing the cache mishandles newlines in values,
11658 # but we know of no workaround that is simple, portable, and efficient.
11659 # So, don't put newlines in cache variables' values.
11660 # Ultrix sh set writes to stderr and can't be redirected directly,
11661 # and sets the high bit in the cache file unless we assign to the vars.
11662 (set) 2>&1 |
11663 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11664 *ac_space=\ *)
11665 # `set' does not quote correctly, so add quotes (double-quote substitution
11666 # turns \\\\ into \\, and sed turns \\ into \).
11667 sed -n \
11668 -e "s/'/'\\\\''/g" \
11669 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11672 # `set' quotes correctly as required by POSIX, so do not add quotes.
11673 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11675 esac >> confcache
11676 if cmp -s $cache_file confcache; then
11678 else
11679 if test -w $cache_file; then
11680 echo "updating cache $cache_file"
11681 cat confcache > $cache_file
11682 else
11683 echo "not updating unwritable cache $cache_file"
11686 rm -f confcache
11688 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11691 # Let make expand exec_prefix.
11692 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11694 # Any assignment to VPATH causes Sun make to only execute
11695 # the first set of double-colon rules, so remove it if not needed.
11696 # If there is a colon in the path, we need to keep it.
11697 if test "x$srcdir" = x.; then
11698 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11701 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11703 DEFS=-DHAVE_CONFIG_H
11705 # Without the "./", some shells look in PATH for config.status.
11706 : ${CONFIG_STATUS=./config.status}
11708 echo creating $CONFIG_STATUS
11709 rm -f $CONFIG_STATUS
11710 cat > $CONFIG_STATUS <<EOF
11711 #! /bin/sh
11712 # Generated automatically by configure.
11713 # Run this file to recreate the current configuration.
11714 # This directory was configured as follows,
11715 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11717 # $0 $ac_configure_args
11719 # Compiler output produced by configure, useful for debugging
11720 # configure, is in ./config.log if it exists.
11722 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11723 for ac_option
11725 case "\$ac_option" in
11726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11727 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11728 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11729 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11730 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11731 exit 0 ;;
11732 -help | --help | --hel | --he | --h)
11733 echo "\$ac_cs_usage"; exit 0 ;;
11734 *) echo "\$ac_cs_usage"; exit 1 ;;
11735 esac
11736 done
11738 ac_given_srcdir=$srcdir
11739 ac_given_INSTALL="$INSTALL"
11741 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11743 cat >> $CONFIG_STATUS <<EOF
11745 # Protect against being on the right side of a sed subst in config.status.
11746 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11747 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11748 $ac_vpsub
11749 $extrasub
11750 s%@SHELL@%$SHELL%g
11751 s%@CFLAGS@%$CFLAGS%g
11752 s%@CPPFLAGS@%$CPPFLAGS%g
11753 s%@CXXFLAGS@%$CXXFLAGS%g
11754 s%@FFLAGS@%$FFLAGS%g
11755 s%@DEFS@%$DEFS%g
11756 s%@LDFLAGS@%$LDFLAGS%g
11757 s%@LIBS@%$LIBS%g
11758 s%@exec_prefix@%$exec_prefix%g
11759 s%@prefix@%$prefix%g
11760 s%@program_transform_name@%$program_transform_name%g
11761 s%@bindir@%$bindir%g
11762 s%@sbindir@%$sbindir%g
11763 s%@libexecdir@%$libexecdir%g
11764 s%@datadir@%$datadir%g
11765 s%@sysconfdir@%$sysconfdir%g
11766 s%@sharedstatedir@%$sharedstatedir%g
11767 s%@localstatedir@%$localstatedir%g
11768 s%@libdir@%$libdir%g
11769 s%@includedir@%$includedir%g
11770 s%@oldincludedir@%$oldincludedir%g
11771 s%@infodir@%$infodir%g
11772 s%@mandir@%$mandir%g
11773 s%@RUNPROG@%$RUNPROG%g
11774 s%@MPROGS@%$MPROGS%g
11775 s%@LDSHFLAGS@%$LDSHFLAGS%g
11776 s%@HOST_OS@%$HOST_OS%g
11777 s%@WRAP@%$WRAP%g
11778 s%@WRAP32@%$WRAP32%g
11779 s%@PICFLAG@%$PICFLAG%g
11780 s%@SHLIBEXT@%$SHLIBEXT%g
11781 s%@CC@%$CC%g
11782 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11783 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11784 s%@INSTALL_DATA@%$INSTALL_DATA%g
11785 s%@AWK@%$AWK%g
11786 s%@host@%$host%g
11787 s%@host_alias@%$host_alias%g
11788 s%@host_cpu@%$host_cpu%g
11789 s%@host_vendor@%$host_vendor%g
11790 s%@host_os@%$host_os%g
11791 s%@build@%$build%g
11792 s%@build_alias@%$build_alias%g
11793 s%@build_cpu@%$build_cpu%g
11794 s%@build_vendor@%$build_vendor%g
11795 s%@build_os@%$build_os%g
11796 s%@RANLIB@%$RANLIB%g
11797 s%@LN_S@%$LN_S%g
11798 s%@LIBTOOL@%$LIBTOOL%g
11799 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11800 s%@BROKEN_CC@%$BROKEN_CC%g
11801 s%@target@%$target%g
11802 s%@target_alias@%$target_alias%g
11803 s%@target_cpu@%$target_cpu%g
11804 s%@target_vendor@%$target_vendor%g
11805 s%@target_os@%$target_os%g
11806 s%@CPP@%$CPP%g
11807 s%@LIBOBJS@%$LIBOBJS%g
11808 s%@ROFF@%$ROFF%g
11809 s%@QUOTAOBJS@%$QUOTAOBJS%g
11810 s%@privatedir@%$privatedir%g
11811 s%@lockdir@%$lockdir%g
11812 s%@swatdir@%$swatdir%g
11813 s%@builddir@%$builddir%g
11815 CEOF
11818 cat >> $CONFIG_STATUS <<\EOF
11820 # Split the substitutions into bite-sized pieces for seds with
11821 # small command number limits, like on Digital OSF/1 and HP-UX.
11822 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11823 ac_file=1 # Number of current file.
11824 ac_beg=1 # First line for current file.
11825 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11826 ac_more_lines=:
11827 ac_sed_cmds=""
11828 while $ac_more_lines; do
11829 if test $ac_beg -gt 1; then
11830 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11831 else
11832 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11834 if test ! -s conftest.s$ac_file; then
11835 ac_more_lines=false
11836 rm -f conftest.s$ac_file
11837 else
11838 if test -z "$ac_sed_cmds"; then
11839 ac_sed_cmds="sed -f conftest.s$ac_file"
11840 else
11841 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11843 ac_file=`expr $ac_file + 1`
11844 ac_beg=$ac_end
11845 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11847 done
11848 if test -z "$ac_sed_cmds"; then
11849 ac_sed_cmds=cat
11853 cat >> $CONFIG_STATUS <<EOF
11855 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11857 cat >> $CONFIG_STATUS <<\EOF
11858 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11859 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11860 case "$ac_file" in
11861 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11862 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11863 *) ac_file_in="${ac_file}.in" ;;
11864 esac
11866 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11868 # Remove last slash and all that follows it. Not all systems have dirname.
11869 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11870 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11871 # The file is in a subdirectory.
11872 test ! -d "$ac_dir" && mkdir "$ac_dir"
11873 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11874 # A "../" for each directory in $ac_dir_suffix.
11875 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11876 else
11877 ac_dir_suffix= ac_dots=
11880 case "$ac_given_srcdir" in
11881 .) srcdir=.
11882 if test -z "$ac_dots"; then top_srcdir=.
11883 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11884 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11885 *) # Relative path.
11886 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11887 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11888 esac
11890 case "$ac_given_INSTALL" in
11891 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11892 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11893 esac
11895 echo creating "$ac_file"
11896 rm -f "$ac_file"
11897 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11898 case "$ac_file" in
11899 *Makefile*) ac_comsub="1i\\
11900 # $configure_input" ;;
11901 *) ac_comsub= ;;
11902 esac
11904 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11905 sed -e "$ac_comsub
11906 s%@configure_input@%$configure_input%g
11907 s%@srcdir@%$srcdir%g
11908 s%@top_srcdir@%$top_srcdir%g
11909 s%@INSTALL@%$INSTALL%g
11910 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11911 fi; done
11912 rm -f conftest.s*
11914 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11915 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11917 # ac_d sets the value in "#define NAME VALUE" lines.
11918 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11919 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11920 ac_dC='\3'
11921 ac_dD='%g'
11922 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11923 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11924 ac_uB='\([ ]\)%\1#\2define\3'
11925 ac_uC=' '
11926 ac_uD='\4%g'
11927 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11928 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11929 ac_eB='$%\1#\2define\3'
11930 ac_eC=' '
11931 ac_eD='%g'
11933 if test "${CONFIG_HEADERS+set}" != set; then
11935 cat >> $CONFIG_STATUS <<EOF
11936 CONFIG_HEADERS="include/config.h"
11938 cat >> $CONFIG_STATUS <<\EOF
11940 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11942 case "$ac_file" in
11943 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11944 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11945 *) ac_file_in="${ac_file}.in" ;;
11946 esac
11948 echo creating $ac_file
11950 rm -f conftest.frag conftest.in conftest.out
11951 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11952 cat $ac_file_inputs > conftest.in
11956 # Transform confdefs.h into a sed script conftest.vals that substitutes
11957 # the proper values into config.h.in to produce config.h. And first:
11958 # Protect against being on the right side of a sed subst in config.status.
11959 # Protect against being in an unquoted here document in config.status.
11960 rm -f conftest.vals
11961 cat > conftest.hdr <<\EOF
11962 s/[\\&%]/\\&/g
11963 s%[\\$`]%\\&%g
11964 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11965 s%ac_d%ac_u%gp
11966 s%ac_u%ac_e%gp
11968 sed -n -f conftest.hdr confdefs.h > conftest.vals
11969 rm -f conftest.hdr
11971 # This sed command replaces #undef with comments. This is necessary, for
11972 # example, in the case of _POSIX_SOURCE, which is predefined and required
11973 # on some systems where configure will not decide to define it.
11974 cat >> conftest.vals <<\EOF
11975 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11978 # Break up conftest.vals because some shells have a limit on
11979 # the size of here documents, and old seds have small limits too.
11981 rm -f conftest.tail
11982 while :
11984 ac_lines=`grep -c . conftest.vals`
11985 # grep -c gives empty output for an empty file on some AIX systems.
11986 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11987 # Write a limited-size here document to conftest.frag.
11988 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11989 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11990 echo 'CEOF
11991 sed -f conftest.frag conftest.in > conftest.out
11992 rm -f conftest.in
11993 mv conftest.out conftest.in
11994 ' >> $CONFIG_STATUS
11995 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11996 rm -f conftest.vals
11997 mv conftest.tail conftest.vals
11998 done
11999 rm -f conftest.vals
12001 cat >> $CONFIG_STATUS <<\EOF
12002 rm -f conftest.frag conftest.h
12003 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12004 cat conftest.in >> conftest.h
12005 rm -f conftest.in
12006 if cmp -s $ac_file conftest.h 2>/dev/null; then
12007 echo "$ac_file is unchanged"
12008 rm -f conftest.h
12009 else
12010 # Remove last slash and all that follows it. Not all systems have dirname.
12011 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12012 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12013 # The file is in a subdirectory.
12014 test ! -d "$ac_dir" && mkdir "$ac_dir"
12016 rm -f $ac_file
12017 mv conftest.h $ac_file
12019 fi; done
12022 cat >> $CONFIG_STATUS <<EOF
12025 cat >> $CONFIG_STATUS <<\EOF
12027 exit 0
12029 chmod +x $CONFIG_STATUS
12030 rm -fr confdefs* $ac_clean_files
12031 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1