Added "oplock break wait time" parameter to help with Win9x oplock related
[Samba/gbeck.git] / source / configure
blob16ad3f930d5e542eb6b51edfbde28d2511c9fb64
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-maintainer-mode enable some make rules for maintainers"
17 ac_help="$ac_help
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
20 ac_help="$ac_help
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
23 ac_help="$ac_help
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
26 ac_help="$ac_help
27 --with-krb4=base-dir Include Kerberos IV support
28 --whithout-krb4 Don't include Kerbers IV support (default)"
29 ac_help="$ac_help
30 --with-krb5=base-dir Include Kerberos 5 support
31 --whithout-krb5 Don't include Kerbers 5 support (default)"
32 ac_help="$ac_help
33 --with-automount Include AUTOMOUNT support
34 --without-automount Don't include AUTOMOUNT support (default)"
35 ac_help="$ac_help
36 --with-smbmount Include SMBMOUNT (Linux only) support
37 --without-smbmount Don't include SMBMOUNT support (default)"
38 ac_help="$ac_help
39 --with-pam Include PAM password database support
40 --without-pam Don't include PAM password database support (default)"
41 ac_help="$ac_help
42 --with-ldap Include LDAP support
43 --without-ldap Don't include LDAP support (default)"
44 ac_help="$ac_help
45 --with-nisplus Include NISPLUS password database support
46 --without-nisplus Don't include NISPLUS password database support (default)"
47 ac_help="$ac_help
48 --with-nisplus-home Include NISPLUS_HOME support
49 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
50 ac_help="$ac_help
51 --with-ssl Include SSL support
52 --without-ssl Don't include SSL support (default)
53 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
54 ac_help="$ac_help
55 --with-mmap Include experimental MMAP support
56 --without-mmap Don't include MMAP support (default)"
57 ac_help="$ac_help
58 --with-syslog Include experimental SYSLOG support
59 --without-syslog Don't include SYSLOG support (default)"
60 ac_help="$ac_help
61 --with-netatalk Include experimental Netatalk support
62 --without-netatalk Don't include experimental Netatalk support (default)"
63 ac_help="$ac_help
64 --with-quotas Include experimental disk-quota support
65 --without-quotas Don't include experimental disk-quota support (default)"
66 ac_help="$ac_help
67 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
68 ac_help="$ac_help
69 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
70 ac_help="$ac_help
71 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
76 build=NONE
77 cache_file=./config.cache
78 exec_prefix=NONE
79 host=NONE
80 no_create=
81 nonopt=NONE
82 no_recursion=
83 prefix=NONE
84 program_prefix=NONE
85 program_suffix=NONE
86 program_transform_name=s,x,x,
87 silent=
88 site=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.12"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=include/includes.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
567 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
569 ac_n= ac_c='
570 ' ac_t=' '
571 else
572 ac_n=-n ac_c= ac_t=
574 else
575 ac_n= ac_c='\c' ac_t=
580 # we want to be compatibe with older versions of Samba
592 # compile with optimisation and without debugging by default
593 CFLAGS=${CFLAGS-"-O"}
595 # Extract the first word of "gcc", so it can be a program name with args.
596 set dummy gcc; ac_word=$2
597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598 echo "configure:599: checking for $ac_word" >&5
599 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
600 echo $ac_n "(cached) $ac_c" 1>&6
601 else
602 if test -n "$CC"; then
603 ac_cv_prog_CC="$CC" # Let the user override the test.
604 else
605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
606 for ac_dir in $PATH; do
607 test -z "$ac_dir" && ac_dir=.
608 if test -f $ac_dir/$ac_word; then
609 ac_cv_prog_CC="gcc"
610 break
612 done
613 IFS="$ac_save_ifs"
616 CC="$ac_cv_prog_CC"
617 if test -n "$CC"; then
618 echo "$ac_t""$CC" 1>&6
619 else
620 echo "$ac_t""no" 1>&6
623 if test -z "$CC"; then
624 # Extract the first word of "cc", so it can be a program name with args.
625 set dummy cc; 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="${IFS}:"
635 ac_prog_rejected=no
636 for ac_dir in $PATH; do
637 test -z "$ac_dir" && ac_dir=.
638 if test -f $ac_dir/$ac_word; then
639 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
640 ac_prog_rejected=yes
641 continue
643 ac_cv_prog_CC="cc"
644 break
646 done
647 IFS="$ac_save_ifs"
648 if test $ac_prog_rejected = yes; then
649 # We found a bogon in the path, so make sure we never use it.
650 set dummy $ac_cv_prog_CC
651 shift
652 if test $# -gt 0; then
653 # We chose a different compiler from the bogus one.
654 # However, it has the same basename, so the bogon will be chosen
655 # first if we set CC to just the basename; use the full file name.
656 shift
657 set dummy "$ac_dir/$ac_word" "$@"
658 shift
659 ac_cv_prog_CC="$@"
664 CC="$ac_cv_prog_CC"
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
667 else
668 echo "$ac_t""no" 1>&6
671 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
674 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
675 echo "configure:676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
677 ac_ext=c
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp='$CPP $CPPFLAGS'
680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling=$ac_cv_prog_cc_cross
684 cat > conftest.$ac_ext <<EOF
685 #line 686 "configure"
686 #include "confdefs.h"
687 main(){return(0);}
689 if { (eval echo configure:690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
690 ac_cv_prog_cc_works=yes
691 # If we can't run a trivial program, we are probably using a cross compiler.
692 if (./conftest; exit) 2>/dev/null; then
693 ac_cv_prog_cc_cross=no
694 else
695 ac_cv_prog_cc_cross=yes
697 else
698 echo "configure: failed program was:" >&5
699 cat conftest.$ac_ext >&5
700 ac_cv_prog_cc_works=no
702 rm -fr conftest*
704 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
705 if test $ac_cv_prog_cc_works = no; then
706 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
708 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
709 echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
710 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
711 cross_compiling=$ac_cv_prog_cc_cross
713 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
714 echo "configure:715: checking whether we are using GNU C" >&5
715 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
717 else
718 cat > conftest.c <<EOF
719 #ifdef __GNUC__
720 yes;
721 #endif
723 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
724 ac_cv_prog_gcc=yes
725 else
726 ac_cv_prog_gcc=no
730 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
732 if test $ac_cv_prog_gcc = yes; then
733 GCC=yes
734 ac_test_CFLAGS="${CFLAGS+set}"
735 ac_save_CFLAGS="$CFLAGS"
736 CFLAGS=
737 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
738 echo "configure:739: checking whether ${CC-cc} accepts -g" >&5
739 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
741 else
742 echo 'void f(){}' > conftest.c
743 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
744 ac_cv_prog_cc_g=yes
745 else
746 ac_cv_prog_cc_g=no
748 rm -f conftest*
752 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
753 if test "$ac_test_CFLAGS" = set; then
754 CFLAGS="$ac_save_CFLAGS"
755 elif test $ac_cv_prog_cc_g = yes; then
756 CFLAGS="-g -O2"
757 else
758 CFLAGS="-O2"
760 else
761 GCC=
762 test "${CFLAGS+set}" = set || CFLAGS="-g"
765 ac_aux_dir=
766 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
767 if test -f $ac_dir/install-sh; then
768 ac_aux_dir=$ac_dir
769 ac_install_sh="$ac_aux_dir/install-sh -c"
770 break
771 elif test -f $ac_dir/install.sh; then
772 ac_aux_dir=$ac_dir
773 ac_install_sh="$ac_aux_dir/install.sh -c"
774 break
776 done
777 if test -z "$ac_aux_dir"; then
778 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
780 ac_config_guess=$ac_aux_dir/config.guess
781 ac_config_sub=$ac_aux_dir/config.sub
782 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
784 # Find a good install program. We prefer a C program (faster),
785 # so one script is as good as another. But avoid the broken or
786 # incompatible versions:
787 # SysV /etc/install, /usr/sbin/install
788 # SunOS /usr/etc/install
789 # IRIX /sbin/install
790 # AIX /bin/install
791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
793 # ./install, which can be erroneously created by make from ./install.sh.
794 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
795 echo "configure:796: checking for a BSD compatible install" >&5
796 if test -z "$INSTALL"; then
797 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
799 else
800 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
801 for ac_dir in $PATH; do
802 # Account for people who put trailing slashes in PATH elements.
803 case "$ac_dir/" in
804 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
806 # OSF1 and SCO ODT 3.0 have their own names for install.
807 for ac_prog in ginstall installbsd scoinst install; do
808 if test -f $ac_dir/$ac_prog; then
809 if test $ac_prog = install &&
810 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
811 # AIX install. It has an incompatible calling convention.
812 # OSF/1 installbsd also uses dspmsg, but is usable.
814 else
815 ac_cv_path_install="$ac_dir/$ac_prog -c"
816 break 2
819 done
821 esac
822 done
823 IFS="$ac_save_IFS"
826 if test "${ac_cv_path_install+set}" = set; then
827 INSTALL="$ac_cv_path_install"
828 else
829 # As a last resort, use the slow shell script. We don't cache a
830 # path for INSTALL within a source directory, because that will
831 # break other packages using the cache if that directory is
832 # removed, or if the path is relative.
833 INSTALL="$ac_install_sh"
836 echo "$ac_t""$INSTALL" 1>&6
838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
839 # It thinks the first close brace ends the variable substitution.
840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
844 for ac_prog in mawk gawk nawk awk
846 # Extract the first word of "$ac_prog", so it can be a program name with args.
847 set dummy $ac_prog; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
852 else
853 if test -n "$AWK"; then
854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
855 else
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
857 for ac_dir in $PATH; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_AWK="$ac_prog"
861 break
863 done
864 IFS="$ac_save_ifs"
867 AWK="$ac_cv_prog_AWK"
868 if test -n "$AWK"; then
869 echo "$ac_t""$AWK" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 test -n "$AWK" && break
875 done
878 if test "x$CC" != xcc; then
879 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
880 echo "configure:881: checking whether $CC and cc understand -c and -o together" >&5
881 else
882 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
883 echo "configure:884: checking whether cc understands -c and -o together" >&5
885 set dummy $CC; ac_cc="`echo $2 |
886 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
887 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889 else
890 echo 'foo(){}' > conftest.c
891 # Make sure it works both with $CC and with simple cc.
892 # We do the test twice because some compilers refuse to overwrite an
893 # existing .o file with -o, though they will create one.
894 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
895 if { (eval echo configure:896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
896 test -f conftest.o && { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
897 then
898 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
899 if test "x$CC" != xcc; then
900 # Test first that cc exists at all.
901 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
902 ac_try='cc -c conftest.c -o conftest.o 1>&5'
903 if { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
904 test -f conftest.o && { (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
905 then
906 # cc works too.
908 else
909 # cc exists but doesn't like -o.
910 eval ac_cv_prog_cc_${ac_cc}_c_o=no
914 else
915 eval ac_cv_prog_cc_${ac_cc}_c_o=no
917 rm -f conftest*
920 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
921 echo "$ac_t""yes" 1>&6
922 else
923 echo "$ac_t""no" 1>&6
924 cat >> confdefs.h <<\EOF
925 #define NO_MINUS_C_MINUS_O 1
930 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
931 BROKEN_CC=
932 else
933 BROKEN_CC=#
937 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
938 echo "configure:939: checking that the C compiler understands volatile" >&5
939 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941 else
943 cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
946 #include <sys/types.h>
947 int main() {
948 volatile int i = 0
949 ; return 0; }
951 if { (eval echo configure:952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
952 rm -rf conftest*
953 samba_cv_volatile=yes
954 else
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 rm -rf conftest*
958 samba_cv_volatile=no
960 rm -f conftest*
963 echo "$ac_t""$samba_cv_volatile" 1>&6
964 if test x"$samba_cv_volatile" = x"yes"; then
965 cat >> confdefs.h <<\EOF
966 #define HAVE_VOLATILE 1
974 # Do some error checking and defaulting for the host and target type.
975 # The inputs are:
976 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
978 # The rules are:
979 # 1. You are not allowed to specify --host, --target, and nonopt at the
980 # same time.
981 # 2. Host defaults to nonopt.
982 # 3. If nonopt is not specified, then host defaults to the current host,
983 # as determined by config.guess.
984 # 4. Target and build default to nonopt.
985 # 5. If nonopt is not specified, then target and build default to host.
987 # The aliases save the names the user supplied, while $host etc.
988 # will get canonicalized.
989 case $host---$target---$nonopt in
990 NONE---*---* | *---NONE---* | *---*---NONE) ;;
991 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
992 esac
995 # Make sure we can run config.sub.
996 if $ac_config_sub sun4 >/dev/null 2>&1; then :
997 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1000 echo $ac_n "checking host system type""... $ac_c" 1>&6
1001 echo "configure:1002: checking host system type" >&5
1003 host_alias=$host
1004 case "$host_alias" in
1005 NONE)
1006 case $nonopt in
1007 NONE)
1008 if host_alias=`$ac_config_guess`; then :
1009 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1010 fi ;;
1011 *) host_alias=$nonopt ;;
1012 esac ;;
1013 esac
1015 host=`$ac_config_sub $host_alias`
1016 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1017 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1018 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1019 echo "$ac_t""$host" 1>&6
1021 echo $ac_n "checking target system type""... $ac_c" 1>&6
1022 echo "configure:1023: checking target system type" >&5
1024 target_alias=$target
1025 case "$target_alias" in
1026 NONE)
1027 case $nonopt in
1028 NONE) target_alias=$host_alias ;;
1029 *) target_alias=$nonopt ;;
1030 esac ;;
1031 esac
1033 target=`$ac_config_sub $target_alias`
1034 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037 echo "$ac_t""$target" 1>&6
1039 echo $ac_n "checking build system type""... $ac_c" 1>&6
1040 echo "configure:1041: checking build system type" >&5
1042 build_alias=$build
1043 case "$build_alias" in
1044 NONE)
1045 case $nonopt in
1046 NONE) build_alias=$host_alias ;;
1047 *) build_alias=$nonopt ;;
1048 esac ;;
1049 esac
1051 build=`$ac_config_sub $build_alias`
1052 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055 echo "$ac_t""$build" 1>&6
1057 test "$host_alias" != "$target_alias" &&
1058 test "$program_prefix$program_suffix$program_transform_name" = \
1059 NONENONEs,x,x, &&
1060 program_prefix=${target_alias}-
1064 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1065 echo "configure:1066: checking config.cache system type" >&5
1066 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1067 test x"$ac_cv_host_system_type" != x"$host"; } ||
1068 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1069 test x"$ac_cv_build_system_type" != x"$build"; } ||
1070 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1071 test x"$ac_cv_target_system_type" != x"$target"; }; then
1072 echo "$ac_t""different" 1>&6
1073 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1074 else
1075 echo "$ac_t""same" 1>&6
1077 ac_cv_host_system_type="$host"
1078 ac_cv_build_system_type="$build"
1079 ac_cv_target_system_type="$target"
1082 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1083 if test "${enable_maintainer_mode+set}" = set; then
1084 enableval="$enable_maintainer_mode"
1085 maint_mode=$enableval
1086 else
1087 maint_mode=no
1090 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1092 # Extract the first word of "autoconf", so it can be a program name with args.
1093 set dummy autoconf; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1098 else
1099 case "$AUTOCONF" in
1101 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1105 for ac_dir in $PATH; do
1106 test -z "$ac_dir" && ac_dir=.
1107 if test -f $ac_dir/$ac_word; then
1108 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1109 break
1111 done
1112 IFS="$ac_save_ifs"
1113 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1115 esac
1117 AUTOCONF="$ac_cv_path_AUTOCONF"
1118 if test -n "$AUTOCONF"; then
1119 echo "$ac_t""$AUTOCONF" 1>&6
1120 else
1121 echo "$ac_t""no" 1>&6
1125 # Extract the first word of "autoheader", so it can be a program name with args.
1126 set dummy autoheader; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131 else
1132 case "$AUTOHEADER" in
1134 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1138 for ac_dir in $PATH; do
1139 test -z "$ac_dir" && ac_dir=.
1140 if test -f $ac_dir/$ac_word; then
1141 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1142 break
1144 done
1145 IFS="$ac_save_ifs"
1146 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1148 esac
1150 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1151 if test -n "$AUTOHEADER"; then
1152 echo "$ac_t""$AUTOHEADER" 1>&6
1153 else
1154 echo "$ac_t""no" 1>&6
1161 # Config CPPFLAG settings for strange OS's that must be set
1162 # before other tests.
1164 case "$host_os" in
1165 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1166 *hpux*)
1167 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1168 echo "configure:1169: checking whether ${CC-cc} accepts -Ae" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1171 else
1172 echo 'void f(){}' > conftest.c
1173 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1174 ac_cv_prog_cc_Ae=yes
1175 else
1176 ac_cv_prog_cc_Ae=no
1178 rm -f conftest*
1182 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1183 if test $ac_cv_prog_cc_Ae = yes; then
1184 CPPFLAGS="$CPPFLAGS -Ae"
1187 # Defines needed for HPUX support.
1188 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1189 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1191 case `uname -r` in
1192 *9*|*10*)
1193 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1194 cat >> confdefs.h <<\EOF
1195 #define USE_BOTH_CRYPT_CALLS 1
1199 *11*)
1200 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1201 cat >> confdefs.h <<\EOF
1202 #define USE_BOTH_CRYPT_CALLS 1
1206 esac
1209 # AIX4.x doesn't even admit to having large
1210 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1212 *aix4*)
1213 echo "$ac_t""enabling large file support" 1>&6
1214 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1217 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1218 # to the existance of large files..
1219 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1220 # recommendations on large file support, however it makes the
1221 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1222 # recommendation makes the compile fail on gcc2.7. JRA.
1224 *solaris*)
1225 case `uname -r` in
1226 5.6*|5.7*)
1227 echo "$ac_t""enabling large file support" 1>&6
1228 if test "$ac_cv_prog_gcc" = yes; then
1229 ${CC-cc} -v >conftest.c 2>&1
1230 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1231 rm -fr conftest.c
1232 case "$ac_cv_gcc_compiler_version_number" in
1233 *"gcc version 2.6"*|*"gcc version 2.7"*)
1234 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1237 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1239 esac
1240 else
1241 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1244 esac
1247 # Tests needed for SINIX large file support.
1249 *sysv4*)
1250 if test $host = mips-sni-sysv4 ; then
1251 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1252 echo "configure:1253: checking for LFS support" >&5
1253 old_CPPFLAGS="$CPPFLAGS"
1254 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1255 if test "$cross_compiling" = yes; then
1256 SINIX_LFS_SUPPORT=cross
1257 else
1258 cat > conftest.$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1262 #include <unistd.h>
1263 main () {
1264 #if _LFS64_LARGEFILE == 1
1265 exit(0);
1266 #else
1267 exit(1);
1268 #endif
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1272 then
1273 SINIX_LFS_SUPPORT=yes
1274 else
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1277 rm -fr conftest*
1278 SINIX_LFS_SUPPORT=no
1280 rm -fr conftest*
1283 CPPFLAGS="$old_CPPFLAGS"
1284 if test x$SINIX_LFS_SUPPORT = xyes ; then
1285 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1286 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1287 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1288 LIBS="`getconf LFS64_LIBS` $LIBS"
1290 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1295 # Tests needed for glibc 2.1 large file support.
1297 *linux*|*hurd*)
1298 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1299 echo "configure:1300: checking for LFS support" >&5
1300 old_CPPFLAGS="$CPPFLAGS"
1301 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1302 if test "$cross_compiling" = yes; then
1303 GLIBC_LFS_SUPPORT=cross
1304 else
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1309 #include <unistd.h>
1310 main () {
1311 #if _LFS64_LARGEFILE == 1
1312 exit(0);
1313 #else
1314 exit(1);
1315 #endif
1318 if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1319 then
1320 GLIBC_LFS_SUPPORT=yes
1321 else
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1324 rm -fr conftest*
1325 GLIBC_LFS_SUPPORT=no
1327 rm -fr conftest*
1330 CPPFLAGS="$old_CPPFLAGS"
1331 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1332 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1334 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1337 esac
1339 echo $ac_n "checking for inline""... $ac_c" 1>&6
1340 echo "configure:1341: checking for inline" >&5
1341 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1343 else
1344 ac_cv_c_inline=no
1345 for ac_kw in inline __inline__ __inline; do
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1350 int main() {
1351 } $ac_kw foo() {
1352 ; return 0; }
1354 if { (eval echo configure:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1355 rm -rf conftest*
1356 ac_cv_c_inline=$ac_kw; break
1357 else
1358 echo "configure: failed program was:" >&5
1359 cat conftest.$ac_ext >&5
1361 rm -f conftest*
1362 done
1366 echo "$ac_t""$ac_cv_c_inline" 1>&6
1367 case "$ac_cv_c_inline" in
1368 inline | yes) ;;
1369 no) cat >> confdefs.h <<\EOF
1370 #define inline
1373 *) cat >> confdefs.h <<EOF
1374 #define inline $ac_cv_c_inline
1377 esac
1379 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1380 echo "configure:1381: checking how to run the C preprocessor" >&5
1381 # On Suns, sometimes $CPP names a directory.
1382 if test -n "$CPP" && test -d "$CPP"; then
1383 CPP=
1385 if test -z "$CPP"; then
1386 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 # This must be in double quotes, not single quotes, because CPP may get
1390 # substituted into the Makefile and "${CC-cc}" will confuse make.
1391 CPP="${CC-cc} -E"
1392 # On the NeXT, cc -E runs the code through the compiler's parser,
1393 # not just through cpp.
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 #include <assert.h>
1398 Syntax Error
1400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1401 { (eval echo configure:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1402 ac_err=`grep -v '^ *+' conftest.out`
1403 if test -z "$ac_err"; then
1405 else
1406 echo "$ac_err" >&5
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1409 rm -rf conftest*
1410 CPP="${CC-cc} -E -traditional-cpp"
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1414 #include <assert.h>
1415 Syntax Error
1417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1418 { (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1419 ac_err=`grep -v '^ *+' conftest.out`
1420 if test -z "$ac_err"; then
1422 else
1423 echo "$ac_err" >&5
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -rf conftest*
1427 CPP=/lib/cpp
1429 rm -f conftest*
1431 rm -f conftest*
1432 ac_cv_prog_CPP="$CPP"
1434 CPP="$ac_cv_prog_CPP"
1435 else
1436 ac_cv_prog_CPP="$CPP"
1438 echo "$ac_t""$CPP" 1>&6
1440 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1441 echo "configure:1442: checking for ANSI C header files" >&5
1442 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 #include <stdlib.h>
1449 #include <stdarg.h>
1450 #include <string.h>
1451 #include <float.h>
1453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1454 { (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1455 ac_err=`grep -v '^ *+' conftest.out`
1456 if test -z "$ac_err"; then
1457 rm -rf conftest*
1458 ac_cv_header_stdc=yes
1459 else
1460 echo "$ac_err" >&5
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1463 rm -rf conftest*
1464 ac_cv_header_stdc=no
1466 rm -f conftest*
1468 if test $ac_cv_header_stdc = yes; then
1469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 #include <string.h>
1475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1476 egrep "memchr" >/dev/null 2>&1; then
1478 else
1479 rm -rf conftest*
1480 ac_cv_header_stdc=no
1482 rm -f conftest*
1486 if test $ac_cv_header_stdc = yes; then
1487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1491 #include <stdlib.h>
1493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1494 egrep "free" >/dev/null 2>&1; then
1496 else
1497 rm -rf conftest*
1498 ac_cv_header_stdc=no
1500 rm -f conftest*
1504 if test $ac_cv_header_stdc = yes; then
1505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1506 if test "$cross_compiling" = yes; then
1508 else
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1512 #include <ctype.h>
1513 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1514 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1516 int main () { int i; for (i = 0; i < 256; i++)
1517 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1518 exit (0); }
1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1522 then
1524 else
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1527 rm -fr conftest*
1528 ac_cv_header_stdc=no
1530 rm -fr conftest*
1536 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1537 if test $ac_cv_header_stdc = yes; then
1538 cat >> confdefs.h <<\EOF
1539 #define STDC_HEADERS 1
1544 ac_header_dirent=no
1545 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1548 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1549 echo "configure:1550: checking for $ac_hdr that defines DIR" >&5
1550 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1552 else
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1556 #include <sys/types.h>
1557 #include <$ac_hdr>
1558 int main() {
1559 DIR *dirp = 0;
1560 ; return 0; }
1562 if { (eval echo configure:1563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1563 rm -rf conftest*
1564 eval "ac_cv_header_dirent_$ac_safe=yes"
1565 else
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1568 rm -rf conftest*
1569 eval "ac_cv_header_dirent_$ac_safe=no"
1571 rm -f conftest*
1573 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1576 cat >> confdefs.h <<EOF
1577 #define $ac_tr_hdr 1
1579 ac_header_dirent=$ac_hdr; break
1580 else
1581 echo "$ac_t""no" 1>&6
1583 done
1584 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1585 if test $ac_header_dirent = dirent.h; then
1586 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1587 echo "configure:1588: checking for opendir in -ldir" >&5
1588 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1591 else
1592 ac_save_LIBS="$LIBS"
1593 LIBS="-ldir $LIBS"
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1597 /* Override any gcc2 internal prototype to avoid an error. */
1598 /* We use char because int might match the return type of a gcc2
1599 builtin and then its argument prototype would still apply. */
1600 char opendir();
1602 int main() {
1603 opendir()
1604 ; return 0; }
1606 if { (eval echo configure:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1607 rm -rf conftest*
1608 eval "ac_cv_lib_$ac_lib_var=yes"
1609 else
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1612 rm -rf conftest*
1613 eval "ac_cv_lib_$ac_lib_var=no"
1615 rm -f conftest*
1616 LIBS="$ac_save_LIBS"
1619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1620 echo "$ac_t""yes" 1>&6
1621 LIBS="$LIBS -ldir"
1622 else
1623 echo "$ac_t""no" 1>&6
1626 else
1627 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1628 echo "configure:1629: checking for opendir in -lx" >&5
1629 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1632 else
1633 ac_save_LIBS="$LIBS"
1634 LIBS="-lx $LIBS"
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1638 /* Override any gcc2 internal prototype to avoid an error. */
1639 /* We use char because int might match the return type of a gcc2
1640 builtin and then its argument prototype would still apply. */
1641 char opendir();
1643 int main() {
1644 opendir()
1645 ; return 0; }
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1648 rm -rf conftest*
1649 eval "ac_cv_lib_$ac_lib_var=yes"
1650 else
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1653 rm -rf conftest*
1654 eval "ac_cv_lib_$ac_lib_var=no"
1656 rm -f conftest*
1657 LIBS="$ac_save_LIBS"
1660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1661 echo "$ac_t""yes" 1>&6
1662 LIBS="$LIBS -lx"
1663 else
1664 echo "$ac_t""no" 1>&6
1669 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether time.h and sys/time.h may both be included" >&5
1671 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1673 else
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 #include <sys/types.h>
1678 #include <sys/time.h>
1679 #include <time.h>
1680 int main() {
1681 struct tm *tp;
1682 ; return 0; }
1684 if { (eval echo configure:1685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1685 rm -rf conftest*
1686 ac_cv_header_time=yes
1687 else
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1690 rm -rf conftest*
1691 ac_cv_header_time=no
1693 rm -f conftest*
1696 echo "$ac_t""$ac_cv_header_time" 1>&6
1697 if test $ac_cv_header_time = yes; then
1698 cat >> confdefs.h <<\EOF
1699 #define TIME_WITH_SYS_TIME 1
1704 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1705 echo "configure:1706: checking for sys/wait.h that is POSIX.1 compatible" >&5
1706 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1708 else
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <sys/types.h>
1713 #include <sys/wait.h>
1714 #ifndef WEXITSTATUS
1715 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1716 #endif
1717 #ifndef WIFEXITED
1718 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1719 #endif
1720 int main() {
1721 int s;
1722 wait (&s);
1723 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1724 ; return 0; }
1726 if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1727 rm -rf conftest*
1728 ac_cv_header_sys_wait_h=yes
1729 else
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1732 rm -rf conftest*
1733 ac_cv_header_sys_wait_h=no
1735 rm -f conftest*
1738 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1739 if test $ac_cv_header_sys_wait_h = yes; then
1740 cat >> confdefs.h <<\EOF
1741 #define HAVE_SYS_WAIT_H 1
1746 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_hdr" >&5
1751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1753 else
1754 cat > conftest.$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1757 #include <$ac_hdr>
1759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1760 { (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1761 ac_err=`grep -v '^ *+' conftest.out`
1762 if test -z "$ac_err"; then
1763 rm -rf conftest*
1764 eval "ac_cv_header_$ac_safe=yes"
1765 else
1766 echo "$ac_err" >&5
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 rm -rf conftest*
1770 eval "ac_cv_header_$ac_safe=no"
1772 rm -f conftest*
1774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1777 cat >> confdefs.h <<EOF
1778 #define $ac_tr_hdr 1
1781 else
1782 echo "$ac_t""no" 1>&6
1784 done
1786 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_hdr" >&5
1791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1793 else
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 #include <$ac_hdr>
1799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1800 { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1801 ac_err=`grep -v '^ *+' conftest.out`
1802 if test -z "$ac_err"; then
1803 rm -rf conftest*
1804 eval "ac_cv_header_$ac_safe=yes"
1805 else
1806 echo "$ac_err" >&5
1807 echo "configure: failed program was:" >&5
1808 cat conftest.$ac_ext >&5
1809 rm -rf conftest*
1810 eval "ac_cv_header_$ac_safe=no"
1812 rm -f conftest*
1814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1815 echo "$ac_t""yes" 1>&6
1816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1817 cat >> confdefs.h <<EOF
1818 #define $ac_tr_hdr 1
1821 else
1822 echo "$ac_t""no" 1>&6
1824 done
1826 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1830 echo "configure:1831: checking for $ac_hdr" >&5
1831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 #include <$ac_hdr>
1839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1840 { (eval echo configure:1841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1841 ac_err=`grep -v '^ *+' conftest.out`
1842 if test -z "$ac_err"; then
1843 rm -rf conftest*
1844 eval "ac_cv_header_$ac_safe=yes"
1845 else
1846 echo "$ac_err" >&5
1847 echo "configure: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1849 rm -rf conftest*
1850 eval "ac_cv_header_$ac_safe=no"
1852 rm -f conftest*
1854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1855 echo "$ac_t""yes" 1>&6
1856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1857 cat >> confdefs.h <<EOF
1858 #define $ac_tr_hdr 1
1861 else
1862 echo "$ac_t""no" 1>&6
1864 done
1866 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1868 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1870 echo "configure:1871: checking for $ac_hdr" >&5
1871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1873 else
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 #include <$ac_hdr>
1879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1880 { (eval echo configure:1881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1881 ac_err=`grep -v '^ *+' conftest.out`
1882 if test -z "$ac_err"; then
1883 rm -rf conftest*
1884 eval "ac_cv_header_$ac_safe=yes"
1885 else
1886 echo "$ac_err" >&5
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 rm -rf conftest*
1890 eval "ac_cv_header_$ac_safe=no"
1892 rm -f conftest*
1894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1897 cat >> confdefs.h <<EOF
1898 #define $ac_tr_hdr 1
1901 else
1902 echo "$ac_t""no" 1>&6
1904 done
1906 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
1908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_hdr" >&5
1911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <$ac_hdr>
1919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1920 { (eval echo configure:1921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1921 ac_err=`grep -v '^ *+' conftest.out`
1922 if test -z "$ac_err"; then
1923 rm -rf conftest*
1924 eval "ac_cv_header_$ac_safe=yes"
1925 else
1926 echo "$ac_err" >&5
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 eval "ac_cv_header_$ac_safe=no"
1932 rm -f conftest*
1934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1937 cat >> confdefs.h <<EOF
1938 #define $ac_tr_hdr 1
1941 else
1942 echo "$ac_t""no" 1>&6
1944 done
1946 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
1948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1950 echo "configure:1951: checking for $ac_hdr" >&5
1951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1953 else
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1957 #include <$ac_hdr>
1959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1960 { (eval echo configure:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1961 ac_err=`grep -v '^ *+' conftest.out`
1962 if test -z "$ac_err"; then
1963 rm -rf conftest*
1964 eval "ac_cv_header_$ac_safe=yes"
1965 else
1966 echo "$ac_err" >&5
1967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1969 rm -rf conftest*
1970 eval "ac_cv_header_$ac_safe=no"
1972 rm -f conftest*
1974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1975 echo "$ac_t""yes" 1>&6
1976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1977 cat >> confdefs.h <<EOF
1978 #define $ac_tr_hdr 1
1981 else
1982 echo "$ac_t""no" 1>&6
1984 done
1986 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_hdr" >&5
1991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1993 else
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 #include <$ac_hdr>
1999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2000 { (eval echo configure:2001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001 ac_err=`grep -v '^ *+' conftest.out`
2002 if test -z "$ac_err"; then
2003 rm -rf conftest*
2004 eval "ac_cv_header_$ac_safe=yes"
2005 else
2006 echo "$ac_err" >&5
2007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2009 rm -rf conftest*
2010 eval "ac_cv_header_$ac_safe=no"
2012 rm -f conftest*
2014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2017 cat >> confdefs.h <<EOF
2018 #define $ac_tr_hdr 1
2021 else
2022 echo "$ac_t""no" 1>&6
2024 done
2027 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2028 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2030 case "$host_os" in
2031 *hpux*)
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 #include <shadow.h>
2036 int main() {
2037 struct spwd testme
2038 ; return 0; }
2040 if { (eval echo configure:2041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2041 rm -rf conftest*
2042 ac_cv_header_shadow_h=yes
2043 else
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2046 rm -rf conftest*
2047 ac_cv_header_shadow_h=no
2049 rm -f conftest*
2050 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2051 cat >> confdefs.h <<\EOF
2052 #define HAVE_SHADOW_H 1
2057 esac
2058 for ac_hdr in shadow.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_hdr" >&5
2063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 #include <$ac_hdr>
2071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2072 { (eval echo configure:2073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2073 ac_err=`grep -v '^ *+' conftest.out`
2074 if test -z "$ac_err"; then
2075 rm -rf conftest*
2076 eval "ac_cv_header_$ac_safe=yes"
2077 else
2078 echo "$ac_err" >&5
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2081 rm -rf conftest*
2082 eval "ac_cv_header_$ac_safe=no"
2084 rm -f conftest*
2086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2087 echo "$ac_t""yes" 1>&6
2088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2089 cat >> confdefs.h <<EOF
2090 #define $ac_tr_hdr 1
2093 else
2094 echo "$ac_t""no" 1>&6
2096 done
2098 for ac_hdr in sys/security.h security/pam_appl.h
2100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_hdr" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #include <$ac_hdr>
2111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2112 { (eval echo configure:2113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2113 ac_err=`grep -v '^ *+' conftest.out`
2114 if test -z "$ac_err"; then
2115 rm -rf conftest*
2116 eval "ac_cv_header_$ac_safe=yes"
2117 else
2118 echo "$ac_err" >&5
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2121 rm -rf conftest*
2122 eval "ac_cv_header_$ac_safe=no"
2124 rm -f conftest*
2126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2127 echo "$ac_t""yes" 1>&6
2128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2129 cat >> confdefs.h <<EOF
2130 #define $ac_tr_hdr 1
2133 else
2134 echo "$ac_t""no" 1>&6
2136 done
2138 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_hdr" >&5
2143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 #include <$ac_hdr>
2151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2152 { (eval echo configure:2153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2153 ac_err=`grep -v '^ *+' conftest.out`
2154 if test -z "$ac_err"; then
2155 rm -rf conftest*
2156 eval "ac_cv_header_$ac_safe=yes"
2157 else
2158 echo "$ac_err" >&5
2159 echo "configure: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2161 rm -rf conftest*
2162 eval "ac_cv_header_$ac_safe=no"
2164 rm -f conftest*
2166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2167 echo "$ac_t""yes" 1>&6
2168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2169 cat >> confdefs.h <<EOF
2170 #define $ac_tr_hdr 1
2173 else
2174 echo "$ac_t""no" 1>&6
2176 done
2178 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_hdr" >&5
2183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2185 else
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2189 #include <$ac_hdr>
2191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2192 { (eval echo configure:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2193 ac_err=`grep -v '^ *+' conftest.out`
2194 if test -z "$ac_err"; then
2195 rm -rf conftest*
2196 eval "ac_cv_header_$ac_safe=yes"
2197 else
2198 echo "$ac_err" >&5
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 rm -rf conftest*
2202 eval "ac_cv_header_$ac_safe=no"
2204 rm -f conftest*
2206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2207 echo "$ac_t""yes" 1>&6
2208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2209 cat >> confdefs.h <<EOF
2210 #define $ac_tr_hdr 1
2213 else
2214 echo "$ac_t""no" 1>&6
2216 done
2218 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_hdr" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <$ac_hdr>
2231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err=`grep -v '^ *+' conftest.out`
2234 if test -z "$ac_err"; then
2235 rm -rf conftest*
2236 eval "ac_cv_header_$ac_safe=yes"
2237 else
2238 echo "$ac_err" >&5
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2241 rm -rf conftest*
2242 eval "ac_cv_header_$ac_safe=no"
2244 rm -f conftest*
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2249 cat >> confdefs.h <<EOF
2250 #define $ac_tr_hdr 1
2253 else
2254 echo "$ac_t""no" 1>&6
2256 done
2259 echo $ac_n "checking size of int""... $ac_c" 1>&6
2260 echo "configure:2261: checking size of int" >&5
2261 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264 if test "$cross_compiling" = yes; then
2265 ac_cv_sizeof_int=cross
2266 else
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 #include <stdio.h>
2271 main()
2273 FILE *f=fopen("conftestval", "w");
2274 if (!f) exit(1);
2275 fprintf(f, "%d\n", sizeof(int));
2276 exit(0);
2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2280 then
2281 ac_cv_sizeof_int=`cat conftestval`
2282 else
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 rm -fr conftest*
2286 ac_cv_sizeof_int=0
2288 rm -fr conftest*
2292 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2293 cat >> confdefs.h <<EOF
2294 #define SIZEOF_INT $ac_cv_sizeof_int
2298 echo $ac_n "checking size of long""... $ac_c" 1>&6
2299 echo "configure:2300: checking size of long" >&5
2300 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 if test "$cross_compiling" = yes; then
2304 ac_cv_sizeof_long=cross
2305 else
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <stdio.h>
2310 main()
2312 FILE *f=fopen("conftestval", "w");
2313 if (!f) exit(1);
2314 fprintf(f, "%d\n", sizeof(long));
2315 exit(0);
2318 if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2319 then
2320 ac_cv_sizeof_long=`cat conftestval`
2321 else
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 rm -fr conftest*
2325 ac_cv_sizeof_long=0
2327 rm -fr conftest*
2331 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2332 cat >> confdefs.h <<EOF
2333 #define SIZEOF_LONG $ac_cv_sizeof_long
2337 echo $ac_n "checking size of short""... $ac_c" 1>&6
2338 echo "configure:2339: checking size of short" >&5
2339 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2342 if test "$cross_compiling" = yes; then
2343 ac_cv_sizeof_short=cross
2344 else
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <stdio.h>
2349 main()
2351 FILE *f=fopen("conftestval", "w");
2352 if (!f) exit(1);
2353 fprintf(f, "%d\n", sizeof(short));
2354 exit(0);
2357 if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2358 then
2359 ac_cv_sizeof_short=`cat conftestval`
2360 else
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 rm -fr conftest*
2364 ac_cv_sizeof_short=0
2366 rm -fr conftest*
2370 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2371 cat >> confdefs.h <<EOF
2372 #define SIZEOF_SHORT $ac_cv_sizeof_short
2377 echo $ac_n "checking for working const""... $ac_c" 1>&6
2378 echo "configure:2379: checking for working const" >&5
2379 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2381 else
2382 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2386 int main() {
2388 /* Ultrix mips cc rejects this. */
2389 typedef int charset[2]; const charset x;
2390 /* SunOS 4.1.1 cc rejects this. */
2391 char const *const *ccp;
2392 char **p;
2393 /* NEC SVR4.0.2 mips cc rejects this. */
2394 struct point {int x, y;};
2395 static struct point const zero = {0,0};
2396 /* AIX XL C 1.02.0.0 rejects this.
2397 It does not let you subtract one const X* pointer from another in an arm
2398 of an if-expression whose if-part is not a constant expression */
2399 const char *g = "string";
2400 ccp = &g + (g ? g-g : 0);
2401 /* HPUX 7.0 cc rejects these. */
2402 ++ccp;
2403 p = (char**) ccp;
2404 ccp = (char const *const *) p;
2405 { /* SCO 3.2v4 cc rejects this. */
2406 char *t;
2407 char const *s = 0 ? (char *) 0 : (char const *) 0;
2409 *t++ = 0;
2411 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2412 int x[] = {25, 17};
2413 const int *foo = &x[0];
2414 ++foo;
2416 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2417 typedef const int *iptr;
2418 iptr p = 0;
2419 ++p;
2421 { /* AIX XL C 1.02.0.0 rejects this saying
2422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2423 struct s { int j; const int *ap[3]; };
2424 struct s *b; b->j = 5;
2426 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2427 const int foo = 10;
2430 ; return 0; }
2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 rm -rf conftest*
2434 ac_cv_c_const=yes
2435 else
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2438 rm -rf conftest*
2439 ac_cv_c_const=no
2441 rm -f conftest*
2444 echo "$ac_t""$ac_cv_c_const" 1>&6
2445 if test $ac_cv_c_const = no; then
2446 cat >> confdefs.h <<\EOF
2447 #define const
2452 echo $ac_n "checking for inline""... $ac_c" 1>&6
2453 echo "configure:2454: checking for inline" >&5
2454 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2456 else
2457 ac_cv_c_inline=no
2458 for ac_kw in inline __inline__ __inline; do
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2463 int main() {
2464 } $ac_kw foo() {
2465 ; return 0; }
2467 if { (eval echo configure:2468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2468 rm -rf conftest*
2469 ac_cv_c_inline=$ac_kw; break
2470 else
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 rm -f conftest*
2475 done
2479 echo "$ac_t""$ac_cv_c_inline" 1>&6
2480 case "$ac_cv_c_inline" in
2481 inline | yes) ;;
2482 no) cat >> confdefs.h <<\EOF
2483 #define inline
2486 *) cat >> confdefs.h <<EOF
2487 #define inline $ac_cv_c_inline
2490 esac
2492 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2493 echo "configure:2494: checking whether byte ordering is bigendian" >&5
2494 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2496 else
2497 ac_cv_c_bigendian=unknown
2498 # See if sys/param.h defines the BYTE_ORDER macro.
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 #include <sys/types.h>
2503 #include <sys/param.h>
2504 int main() {
2506 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2507 bogus endian macros
2508 #endif
2509 ; return 0; }
2511 if { (eval echo configure:2512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 rm -rf conftest*
2513 # It does; now see whether it defined to BIG_ENDIAN or not.
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517 #include <sys/types.h>
2518 #include <sys/param.h>
2519 int main() {
2521 #if BYTE_ORDER != BIG_ENDIAN
2522 not big endian
2523 #endif
2524 ; return 0; }
2526 if { (eval echo configure:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2527 rm -rf conftest*
2528 ac_cv_c_bigendian=yes
2529 else
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 rm -rf conftest*
2533 ac_cv_c_bigendian=no
2535 rm -f conftest*
2536 else
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 rm -f conftest*
2541 if test $ac_cv_c_bigendian = unknown; then
2542 if test "$cross_compiling" = yes; then
2543 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2544 else
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 main () {
2549 /* Are we little or big endian? From Harbison&Steele. */
2550 union
2552 long l;
2553 char c[sizeof (long)];
2554 } u;
2555 u.l = 1;
2556 exit (u.c[sizeof (long) - 1] == 1);
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2560 then
2561 ac_cv_c_bigendian=no
2562 else
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2565 rm -fr conftest*
2566 ac_cv_c_bigendian=yes
2568 rm -fr conftest*
2574 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2575 if test $ac_cv_c_bigendian = yes; then
2576 cat >> confdefs.h <<\EOF
2577 #define WORDS_BIGENDIAN 1
2582 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2583 echo "configure:2584: checking whether char is unsigned" >&5
2584 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 if test "$GCC" = yes; then
2588 # GCC predefines this symbol on systems where it applies.
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 #ifdef __CHAR_UNSIGNED__
2594 #endif
2597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2598 egrep "yes" >/dev/null 2>&1; then
2599 rm -rf conftest*
2600 ac_cv_c_char_unsigned=yes
2601 else
2602 rm -rf conftest*
2603 ac_cv_c_char_unsigned=no
2605 rm -f conftest*
2607 else
2608 if test "$cross_compiling" = yes; then
2609 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2610 else
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2615 #if !defined(__STDC__) || __STDC__ != 1
2616 #define volatile
2617 #endif
2618 main() {
2619 volatile char c = 255; exit(c < 0);
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2623 then
2624 ac_cv_c_char_unsigned=yes
2625 else
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2628 rm -fr conftest*
2629 ac_cv_c_char_unsigned=no
2631 rm -fr conftest*
2637 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2638 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2639 cat >> confdefs.h <<\EOF
2640 #define __CHAR_UNSIGNED__ 1
2646 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2647 echo "configure:2648: checking return type of signal handlers" >&5
2648 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2650 else
2651 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2654 #include <sys/types.h>
2655 #include <signal.h>
2656 #ifdef signal
2657 #undef signal
2658 #endif
2659 #ifdef __cplusplus
2660 extern "C" void (*signal (int, void (*)(int)))(int);
2661 #else
2662 void (*signal ()) ();
2663 #endif
2665 int main() {
2666 int i;
2667 ; return 0; }
2669 if { (eval echo configure:2670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2670 rm -rf conftest*
2671 ac_cv_type_signal=void
2672 else
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 rm -rf conftest*
2676 ac_cv_type_signal=int
2678 rm -f conftest*
2681 echo "$ac_t""$ac_cv_type_signal" 1>&6
2682 cat >> confdefs.h <<EOF
2683 #define RETSIGTYPE $ac_cv_type_signal
2687 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2688 echo "configure:2689: checking for uid_t in sys/types.h" >&5
2689 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2691 else
2692 cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 #include <sys/types.h>
2697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2698 egrep "uid_t" >/dev/null 2>&1; then
2699 rm -rf conftest*
2700 ac_cv_type_uid_t=yes
2701 else
2702 rm -rf conftest*
2703 ac_cv_type_uid_t=no
2705 rm -f conftest*
2709 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2710 if test $ac_cv_type_uid_t = no; then
2711 cat >> confdefs.h <<\EOF
2712 #define uid_t int
2715 cat >> confdefs.h <<\EOF
2716 #define gid_t int
2721 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2722 echo "configure:2723: checking for mode_t" >&5
2723 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2725 else
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 #include <sys/types.h>
2730 #if STDC_HEADERS
2731 #include <stdlib.h>
2732 #include <stddef.h>
2733 #endif
2735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2736 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2737 rm -rf conftest*
2738 ac_cv_type_mode_t=yes
2739 else
2740 rm -rf conftest*
2741 ac_cv_type_mode_t=no
2743 rm -f conftest*
2746 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2747 if test $ac_cv_type_mode_t = no; then
2748 cat >> confdefs.h <<\EOF
2749 #define mode_t int
2754 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2755 echo "configure:2756: checking for off_t" >&5
2756 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2758 else
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2762 #include <sys/types.h>
2763 #if STDC_HEADERS
2764 #include <stdlib.h>
2765 #include <stddef.h>
2766 #endif
2768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2769 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2770 rm -rf conftest*
2771 ac_cv_type_off_t=yes
2772 else
2773 rm -rf conftest*
2774 ac_cv_type_off_t=no
2776 rm -f conftest*
2779 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2780 if test $ac_cv_type_off_t = no; then
2781 cat >> confdefs.h <<\EOF
2782 #define off_t long
2787 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2788 echo "configure:2789: checking for size_t" >&5
2789 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2791 else
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 #include <sys/types.h>
2796 #if STDC_HEADERS
2797 #include <stdlib.h>
2798 #include <stddef.h>
2799 #endif
2801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2802 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2803 rm -rf conftest*
2804 ac_cv_type_size_t=yes
2805 else
2806 rm -rf conftest*
2807 ac_cv_type_size_t=no
2809 rm -f conftest*
2812 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2813 if test $ac_cv_type_size_t = no; then
2814 cat >> confdefs.h <<\EOF
2815 #define size_t unsigned
2820 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2821 echo "configure:2822: checking for pid_t" >&5
2822 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2824 else
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2828 #include <sys/types.h>
2829 #if STDC_HEADERS
2830 #include <stdlib.h>
2831 #include <stddef.h>
2832 #endif
2834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2835 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2836 rm -rf conftest*
2837 ac_cv_type_pid_t=yes
2838 else
2839 rm -rf conftest*
2840 ac_cv_type_pid_t=no
2842 rm -f conftest*
2845 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2846 if test $ac_cv_type_pid_t = no; then
2847 cat >> confdefs.h <<\EOF
2848 #define pid_t int
2853 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2854 echo "configure:2855: checking for st_rdev in struct stat" >&5
2855 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2857 else
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2861 #include <sys/types.h>
2862 #include <sys/stat.h>
2863 int main() {
2864 struct stat s; s.st_rdev;
2865 ; return 0; }
2867 if { (eval echo configure:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2868 rm -rf conftest*
2869 ac_cv_struct_st_rdev=yes
2870 else
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2873 rm -rf conftest*
2874 ac_cv_struct_st_rdev=no
2876 rm -f conftest*
2879 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2880 if test $ac_cv_struct_st_rdev = yes; then
2881 cat >> confdefs.h <<\EOF
2882 #define HAVE_ST_RDEV 1
2887 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2888 echo "configure:2889: checking for d_off in dirent" >&5
2889 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2891 else
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2896 #include <unistd.h>
2897 #include <sys/types.h>
2898 #include <dirent.h>
2899 int main() {
2900 struct dirent d; d.d_off;
2901 ; return 0; }
2903 if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2904 rm -rf conftest*
2905 ac_cv_dirent_d_off=yes
2906 else
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2909 rm -rf conftest*
2910 ac_cv_dirent_d_off=no
2912 rm -f conftest*
2915 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2916 if test $ac_cv_dirent_d_off = yes; then
2917 cat >> confdefs.h <<\EOF
2918 #define HAVE_DIRENT_D_OFF 1
2923 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2924 echo "configure:2925: checking for ino_t" >&5
2925 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2927 else
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 #include <sys/types.h>
2932 #if STDC_HEADERS
2933 #include <stdlib.h>
2934 #include <stddef.h>
2935 #endif
2937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2938 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2939 rm -rf conftest*
2940 ac_cv_type_ino_t=yes
2941 else
2942 rm -rf conftest*
2943 ac_cv_type_ino_t=no
2945 rm -f conftest*
2948 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2949 if test $ac_cv_type_ino_t = no; then
2950 cat >> confdefs.h <<\EOF
2951 #define ino_t unsigned
2956 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2957 echo "configure:2958: checking for loff_t" >&5
2958 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2960 else
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <sys/types.h>
2965 #if STDC_HEADERS
2966 #include <stdlib.h>
2967 #include <stddef.h>
2968 #endif
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2972 rm -rf conftest*
2973 ac_cv_type_loff_t=yes
2974 else
2975 rm -rf conftest*
2976 ac_cv_type_loff_t=no
2978 rm -f conftest*
2981 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2982 if test $ac_cv_type_loff_t = no; then
2983 cat >> confdefs.h <<\EOF
2984 #define loff_t off_t
2989 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2990 echo "configure:2991: checking for offset_t" >&5
2991 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2993 else
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 #include <sys/types.h>
2998 #if STDC_HEADERS
2999 #include <stdlib.h>
3000 #include <stddef.h>
3001 #endif
3003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3005 rm -rf conftest*
3006 ac_cv_type_offset_t=yes
3007 else
3008 rm -rf conftest*
3009 ac_cv_type_offset_t=no
3011 rm -f conftest*
3014 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3015 if test $ac_cv_type_offset_t = no; then
3016 cat >> confdefs.h <<\EOF
3017 #define offset_t loff_t
3022 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3023 echo "configure:3024: checking for ssize_t" >&5
3024 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3026 else
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 #include <sys/types.h>
3031 #if STDC_HEADERS
3032 #include <stdlib.h>
3033 #include <stddef.h>
3034 #endif
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3038 rm -rf conftest*
3039 ac_cv_type_ssize_t=yes
3040 else
3041 rm -rf conftest*
3042 ac_cv_type_ssize_t=no
3044 rm -f conftest*
3047 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3048 if test $ac_cv_type_ssize_t = no; then
3049 cat >> confdefs.h <<\EOF
3050 #define ssize_t int
3056 # we need libdl for PAM and the new VFS code
3057 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3058 echo "configure:3059: checking for main in -ldl" >&5
3059 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3062 else
3063 ac_save_LIBS="$LIBS"
3064 LIBS="-ldl $LIBS"
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3069 int main() {
3070 main()
3071 ; return 0; }
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3074 rm -rf conftest*
3075 eval "ac_cv_lib_$ac_lib_var=yes"
3076 else
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3079 rm -rf conftest*
3080 eval "ac_cv_lib_$ac_lib_var=no"
3082 rm -f conftest*
3083 LIBS="$ac_save_LIBS"
3086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3087 echo "$ac_t""yes" 1>&6
3088 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3090 cat >> confdefs.h <<EOF
3091 #define $ac_tr_lib 1
3094 LIBS="-ldl $LIBS"
3096 else
3097 echo "$ac_t""no" 1>&6
3101 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3102 echo "configure:3103: checking for sig_atomic_t type" >&5
3103 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3111 #include <sys/types.h>
3112 #if STDC_HEADERS
3113 #include <stdlib.h>
3114 #include <stddef.h>
3115 #endif
3116 #include <signal.h>
3117 int main() {
3118 sig_atomic_t i = 0
3119 ; return 0; }
3121 if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3122 rm -rf conftest*
3123 samba_cv_sig_atomic_t=yes
3124 else
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 rm -rf conftest*
3128 samba_cv_sig_atomic_t=no
3130 rm -f conftest*
3133 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3134 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3135 cat >> confdefs.h <<\EOF
3136 #define HAVE_SIG_ATOMIC_T_TYPE 1
3141 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3142 echo "configure:3143: checking for errno in errno.h" >&5
3143 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3145 else
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150 #include <errno.h>
3151 int main() {
3152 int i = errno
3153 ; return 0; }
3155 if { (eval echo configure:3156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3156 rm -rf conftest*
3157 samba_cv_errno=yes
3158 else
3159 echo "configure: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 rm -rf conftest*
3162 samba_cv_have_errno=no
3164 rm -f conftest*
3167 echo "$ac_t""$samba_cv_errno" 1>&6
3168 if test x"$samba_cv_errno" = x"yes"; then
3169 cat >> confdefs.h <<\EOF
3170 #define HAVE_ERRNO_DECL 1
3175 # stupid glibc has the functions but no declaration. grrrr.
3176 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3177 echo "configure:3178: checking for setresuid declaration" >&5
3178 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3180 else
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 #include <unistd.h>
3186 int main() {
3187 int i = (int)setresuid
3188 ; return 0; }
3190 if { (eval echo configure:3191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 rm -rf conftest*
3192 samba_cv_have_setresuid_decl=yes
3193 else
3194 echo "configure: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3196 rm -rf conftest*
3197 samba_cv_have_setresuid_decl=no
3199 rm -f conftest*
3202 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3203 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3204 cat >> confdefs.h <<\EOF
3205 #define HAVE_SETRESUID_DECL 1
3210 # stupid glibc has the functions but no declaration. grrrr.
3211 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3212 echo "configure:3213: checking for setresgid declaration" >&5
3213 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3215 else
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 #include <unistd.h>
3221 int main() {
3222 int i = (int)setresgid
3223 ; return 0; }
3225 if { (eval echo configure:3226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3226 rm -rf conftest*
3227 samba_cv_have_setresgid_decl=yes
3228 else
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3231 rm -rf conftest*
3232 samba_cv_have_setresgid_decl=no
3234 rm -f conftest*
3237 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3238 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3239 cat >> confdefs.h <<\EOF
3240 #define HAVE_SETRESGID_DECL 1
3245 # stupid glibc has the functions but no declaration. grrrr.
3246 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
3247 echo "configure:3248: checking for crypt declaration" >&5
3248 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3250 else
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 #include <unistd.h>
3256 int main() {
3257 int i = (int)crypt
3258 ; return 0; }
3260 if { (eval echo configure:3261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3261 rm -rf conftest*
3262 samba_cv_have_crypt_decl=yes
3263 else
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 rm -rf conftest*
3267 samba_cv_have_crypt_decl=no
3269 rm -f conftest*
3272 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
3273 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
3274 cat >> confdefs.h <<\EOF
3275 #define HAVE_CRYPT_DECL 1
3280 # and glibc has setresuid under linux but the function does
3281 # nothing until kernel 2.1.44! very dumb.
3282 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3283 echo "configure:3284: checking for real setresuid" >&5
3284 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3286 else
3288 if test "$cross_compiling" = yes; then
3289 samba_cv_have_setresuid=cross
3290 else
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <errno.h>
3295 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3297 if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3298 then
3299 samba_cv_have_setresuid=yes
3300 else
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3303 rm -fr conftest*
3304 samba_cv_have_setresuid=no
3306 rm -fr conftest*
3311 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3312 if test x"$samba_cv_have_setresuid" = x"yes"; then
3313 cat >> confdefs.h <<\EOF
3314 #define HAVE_SETRESUID 1
3319 # Do the same check for setresguid...
3321 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3322 echo "configure:3323: checking for real setresgid" >&5
3323 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3325 else
3327 if test "$cross_compiling" = yes; then
3328 samba_cv_have_setresgid=cross
3329 else
3330 cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 #include <unistd.h>
3334 #include <errno.h>
3335 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3337 if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3338 then
3339 samba_cv_have_setresgid=yes
3340 else
3341 echo "configure: failed program was:" >&5
3342 cat conftest.$ac_ext >&5
3343 rm -fr conftest*
3344 samba_cv_have_setresgid=no
3346 rm -fr conftest*
3351 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3352 if test x"$samba_cv_have_setresgid" = x"yes"; then
3353 cat >> confdefs.h <<\EOF
3354 #define HAVE_SETRESGID 1
3359 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3360 echo "configure:3361: checking for 8-bit clean memcmp" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 if test "$cross_compiling" = yes; then
3365 ac_cv_func_memcmp_clean=no
3366 else
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3371 main()
3373 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3374 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3378 if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3379 then
3380 ac_cv_func_memcmp_clean=yes
3381 else
3382 echo "configure: failed program was:" >&5
3383 cat conftest.$ac_ext >&5
3384 rm -fr conftest*
3385 ac_cv_func_memcmp_clean=no
3387 rm -fr conftest*
3392 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3393 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3396 ###############################################
3397 # test for where we get crypt() from
3398 for ac_func in crypt
3400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_func" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3404 else
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* System header to define __stub macros and hopefully few prototypes,
3409 which can conflict with char $ac_func(); below. */
3410 #include <assert.h>
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3414 char $ac_func();
3416 int main() {
3418 /* The GNU C library defines this for functions which it implements
3419 to always fail with ENOSYS. Some functions are actually named
3420 something starting with __ and the normal name is an alias. */
3421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3422 choke me
3423 #else
3424 $ac_func();
3425 #endif
3427 ; return 0; }
3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3430 rm -rf conftest*
3431 eval "ac_cv_func_$ac_func=yes"
3432 else
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3435 rm -rf conftest*
3436 eval "ac_cv_func_$ac_func=no"
3438 rm -f conftest*
3441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3444 cat >> confdefs.h <<EOF
3445 #define $ac_tr_func 1
3448 else
3449 echo "$ac_t""no" 1>&6
3451 done
3453 if test x"$ac_cv_func_crypt" = x"no"; then
3454 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3455 echo "configure:3456: checking for crypt in -lcrypt" >&5
3456 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3459 else
3460 ac_save_LIBS="$LIBS"
3461 LIBS="-lcrypt $LIBS"
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3468 char crypt();
3470 int main() {
3471 crypt()
3472 ; return 0; }
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3475 rm -rf conftest*
3476 eval "ac_cv_lib_$ac_lib_var=yes"
3477 else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 eval "ac_cv_lib_$ac_lib_var=no"
3483 rm -f conftest*
3484 LIBS="$ac_save_LIBS"
3487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 LIBS="$LIBS -lcrypt";
3490 cat >> confdefs.h <<\EOF
3491 #define HAVE_CRYPT 1
3494 else
3495 echo "$ac_t""no" 1>&6
3501 ###############################################
3502 # test for where we get readline() from
3503 if test "$ac_cv_header_readline_h" = "yes" ||
3504 test "$ac_cv_header_readline_readline_h" = "yes"; then
3505 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3506 echo "configure:3507: checking for readline in -lreadline" >&5
3507 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3510 else
3511 ac_save_LIBS="$LIBS"
3512 LIBS="-lreadline $LIBS"
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 /* Override any gcc2 internal prototype to avoid an error. */
3517 /* We use char because int might match the return type of a gcc2
3518 builtin and then its argument prototype would still apply. */
3519 char readline();
3521 int main() {
3522 readline()
3523 ; return 0; }
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3526 rm -rf conftest*
3527 eval "ac_cv_lib_$ac_lib_var=yes"
3528 else
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3531 rm -rf conftest*
3532 eval "ac_cv_lib_$ac_lib_var=no"
3534 rm -f conftest*
3535 LIBS="$ac_save_LIBS"
3538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3540 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3542 cat >> confdefs.h <<EOF
3543 #define $ac_tr_lib 1
3546 LIBS="-lreadline $LIBS"
3548 else
3549 echo "$ac_t""no" 1>&6
3555 # The following test taken from the cvs sources
3556 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3557 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3558 # libsocket.so which has a bad implementation of gethostbyname (it
3559 # only looks in /etc/hosts), so we only look for -lsocket if we need
3560 # it.
3561 for ac_func in connect
3563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_func" >&5
3565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567 else
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* System header to define __stub macros and hopefully few prototypes,
3572 which can conflict with char $ac_func(); below. */
3573 #include <assert.h>
3574 /* Override any gcc2 internal prototype to avoid an error. */
3575 /* We use char because int might match the return type of a gcc2
3576 builtin and then its argument prototype would still apply. */
3577 char $ac_func();
3579 int main() {
3581 /* The GNU C library defines this for functions which it implements
3582 to always fail with ENOSYS. Some functions are actually named
3583 something starting with __ and the normal name is an alias. */
3584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3585 choke me
3586 #else
3587 $ac_func();
3588 #endif
3590 ; return 0; }
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3593 rm -rf conftest*
3594 eval "ac_cv_func_$ac_func=yes"
3595 else
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3598 rm -rf conftest*
3599 eval "ac_cv_func_$ac_func=no"
3601 rm -f conftest*
3604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3605 echo "$ac_t""yes" 1>&6
3606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3607 cat >> confdefs.h <<EOF
3608 #define $ac_tr_func 1
3611 else
3612 echo "$ac_t""no" 1>&6
3614 done
3616 if test x"$ac_cv_func_connect" = x"no"; then
3617 case "$LIBS" in
3618 *-lnsl*) ;;
3619 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3620 echo "configure:3621: checking for printf in -lnsl_s" >&5
3621 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3624 else
3625 ac_save_LIBS="$LIBS"
3626 LIBS="-lnsl_s $LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3633 char printf();
3635 int main() {
3636 printf()
3637 ; return 0; }
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3640 rm -rf conftest*
3641 eval "ac_cv_lib_$ac_lib_var=yes"
3642 else
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3645 rm -rf conftest*
3646 eval "ac_cv_lib_$ac_lib_var=no"
3648 rm -f conftest*
3649 LIBS="$ac_save_LIBS"
3652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3653 echo "$ac_t""yes" 1>&6
3654 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3656 cat >> confdefs.h <<EOF
3657 #define $ac_tr_lib 1
3660 LIBS="-lnsl_s $LIBS"
3662 else
3663 echo "$ac_t""no" 1>&6
3666 esac
3667 case "$LIBS" in
3668 *-lnsl*) ;;
3669 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3670 echo "configure:3671: checking for printf in -lnsl" >&5
3671 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3674 else
3675 ac_save_LIBS="$LIBS"
3676 LIBS="-lnsl $LIBS"
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* Override any gcc2 internal prototype to avoid an error. */
3681 /* We use char because int might match the return type of a gcc2
3682 builtin and then its argument prototype would still apply. */
3683 char printf();
3685 int main() {
3686 printf()
3687 ; return 0; }
3689 if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3690 rm -rf conftest*
3691 eval "ac_cv_lib_$ac_lib_var=yes"
3692 else
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3695 rm -rf conftest*
3696 eval "ac_cv_lib_$ac_lib_var=no"
3698 rm -f conftest*
3699 LIBS="$ac_save_LIBS"
3702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3703 echo "$ac_t""yes" 1>&6
3704 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3705 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3706 cat >> confdefs.h <<EOF
3707 #define $ac_tr_lib 1
3710 LIBS="-lnsl $LIBS"
3712 else
3713 echo "$ac_t""no" 1>&6
3716 esac
3717 case "$LIBS" in
3718 *-lsocket*) ;;
3719 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3720 echo "configure:3721: checking for connect in -lsocket" >&5
3721 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3724 else
3725 ac_save_LIBS="$LIBS"
3726 LIBS="-lsocket $LIBS"
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3733 char connect();
3735 int main() {
3736 connect()
3737 ; return 0; }
3739 if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3740 rm -rf conftest*
3741 eval "ac_cv_lib_$ac_lib_var=yes"
3742 else
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3745 rm -rf conftest*
3746 eval "ac_cv_lib_$ac_lib_var=no"
3748 rm -f conftest*
3749 LIBS="$ac_save_LIBS"
3752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3753 echo "$ac_t""yes" 1>&6
3754 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3756 cat >> confdefs.h <<EOF
3757 #define $ac_tr_lib 1
3760 LIBS="-lsocket $LIBS"
3762 else
3763 echo "$ac_t""no" 1>&6
3766 esac
3767 case "$LIBS" in
3768 *-linet*) ;;
3769 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3770 echo "configure:3771: checking for connect in -linet" >&5
3771 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3774 else
3775 ac_save_LIBS="$LIBS"
3776 LIBS="-linet $LIBS"
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3780 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3783 char connect();
3785 int main() {
3786 connect()
3787 ; return 0; }
3789 if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3790 rm -rf conftest*
3791 eval "ac_cv_lib_$ac_lib_var=yes"
3792 else
3793 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3795 rm -rf conftest*
3796 eval "ac_cv_lib_$ac_lib_var=no"
3798 rm -f conftest*
3799 LIBS="$ac_save_LIBS"
3802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3803 echo "$ac_t""yes" 1>&6
3804 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3805 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3806 cat >> confdefs.h <<EOF
3807 #define $ac_tr_lib 1
3810 LIBS="-linet $LIBS"
3812 else
3813 echo "$ac_t""no" 1>&6
3816 esac
3817 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3818 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3819 # ac_cv_func_connect=yes
3820 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3821 cat >> confdefs.h <<\EOF
3822 #define HAVE_CONNECT 1
3828 # Check if we have execl, if not we need to compile smbrun.
3829 for ac_func in execl
3831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3832 echo "configure:3833: checking for $ac_func" >&5
3833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3835 else
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* System header to define __stub macros and hopefully few prototypes,
3840 which can conflict with char $ac_func(); below. */
3841 #include <assert.h>
3842 /* Override any gcc2 internal prototype to avoid an error. */
3843 /* We use char because int might match the return type of a gcc2
3844 builtin and then its argument prototype would still apply. */
3845 char $ac_func();
3847 int main() {
3849 /* The GNU C library defines this for functions which it implements
3850 to always fail with ENOSYS. Some functions are actually named
3851 something starting with __ and the normal name is an alias. */
3852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3853 choke me
3854 #else
3855 $ac_func();
3856 #endif
3858 ; return 0; }
3860 if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3861 rm -rf conftest*
3862 eval "ac_cv_func_$ac_func=yes"
3863 else
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3866 rm -rf conftest*
3867 eval "ac_cv_func_$ac_func=no"
3869 rm -f conftest*
3872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3875 cat >> confdefs.h <<EOF
3876 #define $ac_tr_func 1
3879 else
3880 echo "$ac_t""no" 1>&6
3882 done
3884 if test x"$ac_cv_func_execl" = x"no"; then
3885 RUNPROG="bin/smbrun"
3886 else
3887 RUNPROG=""
3890 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
3892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3893 echo "configure:3894: checking for $ac_func" >&5
3894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3896 else
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* System header to define __stub macros and hopefully few prototypes,
3901 which can conflict with char $ac_func(); below. */
3902 #include <assert.h>
3903 /* Override any gcc2 internal prototype to avoid an error. */
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3906 char $ac_func();
3908 int main() {
3910 /* The GNU C library defines this for functions which it implements
3911 to always fail with ENOSYS. Some functions are actually named
3912 something starting with __ and the normal name is an alias. */
3913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3914 choke me
3915 #else
3916 $ac_func();
3917 #endif
3919 ; return 0; }
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3922 rm -rf conftest*
3923 eval "ac_cv_func_$ac_func=yes"
3924 else
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 rm -rf conftest*
3928 eval "ac_cv_func_$ac_func=no"
3930 rm -f conftest*
3933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3936 cat >> confdefs.h <<EOF
3937 #define $ac_tr_func 1
3940 else
3941 echo "$ac_t""no" 1>&6
3943 done
3945 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
3947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3948 echo "configure:3949: checking for $ac_func" >&5
3949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3951 else
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char $ac_func(); below. */
3957 #include <assert.h>
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3961 char $ac_func();
3963 int main() {
3965 /* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3969 choke me
3970 #else
3971 $ac_func();
3972 #endif
3974 ; return 0; }
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3977 rm -rf conftest*
3978 eval "ac_cv_func_$ac_func=yes"
3979 else
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3982 rm -rf conftest*
3983 eval "ac_cv_func_$ac_func=no"
3985 rm -f conftest*
3988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3991 cat >> confdefs.h <<EOF
3992 #define $ac_tr_func 1
3995 else
3996 echo "$ac_t""no" 1>&6
3998 done
4000 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4003 echo "configure:4004: checking for $ac_func" >&5
4004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4006 else
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 /* System header to define __stub macros and hopefully few prototypes,
4011 which can conflict with char $ac_func(); below. */
4012 #include <assert.h>
4013 /* Override any gcc2 internal prototype to avoid an error. */
4014 /* We use char because int might match the return type of a gcc2
4015 builtin and then its argument prototype would still apply. */
4016 char $ac_func();
4018 int main() {
4020 /* The GNU C library defines this for functions which it implements
4021 to always fail with ENOSYS. Some functions are actually named
4022 something starting with __ and the normal name is an alias. */
4023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4024 choke me
4025 #else
4026 $ac_func();
4027 #endif
4029 ; return 0; }
4031 if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4032 rm -rf conftest*
4033 eval "ac_cv_func_$ac_func=yes"
4034 else
4035 echo "configure: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4037 rm -rf conftest*
4038 eval "ac_cv_func_$ac_func=no"
4040 rm -f conftest*
4043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4044 echo "$ac_t""yes" 1>&6
4045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4046 cat >> confdefs.h <<EOF
4047 #define $ac_tr_func 1
4050 else
4051 echo "$ac_t""no" 1>&6
4053 done
4055 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4058 echo "configure:4059: checking for $ac_func" >&5
4059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4061 else
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 /* System header to define __stub macros and hopefully few prototypes,
4066 which can conflict with char $ac_func(); below. */
4067 #include <assert.h>
4068 /* Override any gcc2 internal prototype to avoid an error. */
4069 /* We use char because int might match the return type of a gcc2
4070 builtin and then its argument prototype would still apply. */
4071 char $ac_func();
4073 int main() {
4075 /* The GNU C library defines this for functions which it implements
4076 to always fail with ENOSYS. Some functions are actually named
4077 something starting with __ and the normal name is an alias. */
4078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4079 choke me
4080 #else
4081 $ac_func();
4082 #endif
4084 ; return 0; }
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4087 rm -rf conftest*
4088 eval "ac_cv_func_$ac_func=yes"
4089 else
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4092 rm -rf conftest*
4093 eval "ac_cv_func_$ac_func=no"
4095 rm -f conftest*
4098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4099 echo "$ac_t""yes" 1>&6
4100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4101 cat >> confdefs.h <<EOF
4102 #define $ac_tr_func 1
4105 else
4106 echo "$ac_t""no" 1>&6
4108 done
4110 for ac_func in initgroups select rdchk getgrnam pathconf setreuid setregid seteuid setegid
4112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4113 echo "configure:4114: checking for $ac_func" >&5
4114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4116 else
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* System header to define __stub macros and hopefully few prototypes,
4121 which can conflict with char $ac_func(); below. */
4122 #include <assert.h>
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4126 char $ac_func();
4128 int main() {
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4134 choke me
4135 #else
4136 $ac_func();
4137 #endif
4139 ; return 0; }
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4142 rm -rf conftest*
4143 eval "ac_cv_func_$ac_func=yes"
4144 else
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4147 rm -rf conftest*
4148 eval "ac_cv_func_$ac_func=no"
4150 rm -f conftest*
4153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4156 cat >> confdefs.h <<EOF
4157 #define $ac_tr_func 1
4160 else
4161 echo "$ac_t""no" 1>&6
4163 done
4165 for ac_func in setpriv setgidx setuidx setgroups mktime rename ftruncate stat64 fstat64
4167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4168 echo "configure:4169: checking for $ac_func" >&5
4169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4171 else
4172 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4175 /* System header to define __stub macros and hopefully few prototypes,
4176 which can conflict with char $ac_func(); below. */
4177 #include <assert.h>
4178 /* Override any gcc2 internal prototype to avoid an error. */
4179 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */
4181 char $ac_func();
4183 int main() {
4185 /* The GNU C library defines this for functions which it implements
4186 to always fail with ENOSYS. Some functions are actually named
4187 something starting with __ and the normal name is an alias. */
4188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4189 choke me
4190 #else
4191 $ac_func();
4192 #endif
4194 ; return 0; }
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4197 rm -rf conftest*
4198 eval "ac_cv_func_$ac_func=yes"
4199 else
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 rm -rf conftest*
4203 eval "ac_cv_func_$ac_func=no"
4205 rm -f conftest*
4208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4211 cat >> confdefs.h <<EOF
4212 #define $ac_tr_func 1
4215 else
4216 echo "$ac_t""no" 1>&6
4218 done
4220 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_func" >&5
4224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4226 else
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 /* System header to define __stub macros and hopefully few prototypes,
4231 which can conflict with char $ac_func(); below. */
4232 #include <assert.h>
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4236 char $ac_func();
4238 int main() {
4240 /* The GNU C library defines this for functions which it implements
4241 to always fail with ENOSYS. Some functions are actually named
4242 something starting with __ and the normal name is an alias. */
4243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4244 choke me
4245 #else
4246 $ac_func();
4247 #endif
4249 ; return 0; }
4251 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4252 rm -rf conftest*
4253 eval "ac_cv_func_$ac_func=yes"
4254 else
4255 echo "configure: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4257 rm -rf conftest*
4258 eval "ac_cv_func_$ac_func=no"
4260 rm -f conftest*
4263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4264 echo "$ac_t""yes" 1>&6
4265 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4266 cat >> confdefs.h <<EOF
4267 #define $ac_tr_func 1
4270 else
4271 echo "$ac_t""no" 1>&6
4273 done
4275 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4278 echo "configure:4279: checking for $ac_func" >&5
4279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4281 else
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* System header to define __stub macros and hopefully few prototypes,
4286 which can conflict with char $ac_func(); below. */
4287 #include <assert.h>
4288 /* Override any gcc2 internal prototype to avoid an error. */
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4291 char $ac_func();
4293 int main() {
4295 /* The GNU C library defines this for functions which it implements
4296 to always fail with ENOSYS. Some functions are actually named
4297 something starting with __ and the normal name is an alias. */
4298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4299 choke me
4300 #else
4301 $ac_func();
4302 #endif
4304 ; return 0; }
4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4307 rm -rf conftest*
4308 eval "ac_cv_func_$ac_func=yes"
4309 else
4310 echo "configure: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4312 rm -rf conftest*
4313 eval "ac_cv_func_$ac_func=no"
4315 rm -f conftest*
4318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4321 cat >> confdefs.h <<EOF
4322 #define $ac_tr_func 1
4325 else
4326 echo "$ac_t""no" 1>&6
4328 done
4330 for ac_func in srandom random srand rand setenv usleep mmap64 strcasecmp
4332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_func" >&5
4334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336 else
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 /* System header to define __stub macros and hopefully few prototypes,
4341 which can conflict with char $ac_func(); below. */
4342 #include <assert.h>
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */
4346 char $ac_func();
4348 int main() {
4350 /* The GNU C library defines this for functions which it implements
4351 to always fail with ENOSYS. Some functions are actually named
4352 something starting with __ and the normal name is an alias. */
4353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4354 choke me
4355 #else
4356 $ac_func();
4357 #endif
4359 ; return 0; }
4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4362 rm -rf conftest*
4363 eval "ac_cv_func_$ac_func=yes"
4364 else
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4367 rm -rf conftest*
4368 eval "ac_cv_func_$ac_func=no"
4370 rm -f conftest*
4373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4374 echo "$ac_t""yes" 1>&6
4375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4376 cat >> confdefs.h <<EOF
4377 #define $ac_tr_func 1
4380 else
4381 echo "$ac_t""no" 1>&6
4383 done
4386 # syscall() is needed for smbwrapper.
4387 for ac_func in syscall
4389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_func" >&5
4391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4393 else
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char $ac_func(); below. */
4399 #include <assert.h>
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4403 char $ac_func();
4405 int main() {
4407 /* The GNU C library defines this for functions which it implements
4408 to always fail with ENOSYS. Some functions are actually named
4409 something starting with __ and the normal name is an alias. */
4410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4411 choke me
4412 #else
4413 $ac_func();
4414 #endif
4416 ; return 0; }
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4419 rm -rf conftest*
4420 eval "ac_cv_func_$ac_func=yes"
4421 else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
4425 eval "ac_cv_func_$ac_func=no"
4427 rm -f conftest*
4430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4433 cat >> confdefs.h <<EOF
4434 #define $ac_tr_func 1
4437 else
4438 echo "$ac_t""no" 1>&6
4440 done
4443 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_func" >&5
4447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 /* System header to define __stub macros and hopefully few prototypes,
4454 which can conflict with char $ac_func(); below. */
4455 #include <assert.h>
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4459 char $ac_func();
4461 int main() {
4463 /* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4467 choke me
4468 #else
4469 $ac_func();
4470 #endif
4472 ; return 0; }
4474 if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4475 rm -rf conftest*
4476 eval "ac_cv_func_$ac_func=yes"
4477 else
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4480 rm -rf conftest*
4481 eval "ac_cv_func_$ac_func=no"
4483 rm -f conftest*
4486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4489 cat >> confdefs.h <<EOF
4490 #define $ac_tr_func 1
4493 else
4494 echo "$ac_t""no" 1>&6
4496 done
4498 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4501 echo "configure:4502: checking for $ac_func" >&5
4502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4504 else
4505 cat > conftest.$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4508 /* System header to define __stub macros and hopefully few prototypes,
4509 which can conflict with char $ac_func(); below. */
4510 #include <assert.h>
4511 /* Override any gcc2 internal prototype to avoid an error. */
4512 /* We use char because int might match the return type of a gcc2
4513 builtin and then its argument prototype would still apply. */
4514 char $ac_func();
4516 int main() {
4518 /* The GNU C library defines this for functions which it implements
4519 to always fail with ENOSYS. Some functions are actually named
4520 something starting with __ and the normal name is an alias. */
4521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4522 choke me
4523 #else
4524 $ac_func();
4525 #endif
4527 ; return 0; }
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4530 rm -rf conftest*
4531 eval "ac_cv_func_$ac_func=yes"
4532 else
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4535 rm -rf conftest*
4536 eval "ac_cv_func_$ac_func=no"
4538 rm -f conftest*
4541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4542 echo "$ac_t""yes" 1>&6
4543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4544 cat >> confdefs.h <<EOF
4545 #define $ac_tr_func 1
4548 else
4549 echo "$ac_t""no" 1>&6
4551 done
4553 for ac_func in __getcwd _getcwd
4555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4556 echo "configure:4557: checking for $ac_func" >&5
4557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4559 else
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* System header to define __stub macros and hopefully few prototypes,
4564 which can conflict with char $ac_func(); below. */
4565 #include <assert.h>
4566 /* Override any gcc2 internal prototype to avoid an error. */
4567 /* We use char because int might match the return type of a gcc2
4568 builtin and then its argument prototype would still apply. */
4569 char $ac_func();
4571 int main() {
4573 /* The GNU C library defines this for functions which it implements
4574 to always fail with ENOSYS. Some functions are actually named
4575 something starting with __ and the normal name is an alias. */
4576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4577 choke me
4578 #else
4579 $ac_func();
4580 #endif
4582 ; return 0; }
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4585 rm -rf conftest*
4586 eval "ac_cv_func_$ac_func=yes"
4587 else
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4590 rm -rf conftest*
4591 eval "ac_cv_func_$ac_func=no"
4593 rm -f conftest*
4596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6
4598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4599 cat >> confdefs.h <<EOF
4600 #define $ac_tr_func 1
4603 else
4604 echo "$ac_t""no" 1>&6
4606 done
4608 for ac_func in __xstat __fxstat __lxstat
4610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4611 echo "configure:4612: checking for $ac_func" >&5
4612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4614 else
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* System header to define __stub macros and hopefully few prototypes,
4619 which can conflict with char $ac_func(); below. */
4620 #include <assert.h>
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4624 char $ac_func();
4626 int main() {
4628 /* The GNU C library defines this for functions which it implements
4629 to always fail with ENOSYS. Some functions are actually named
4630 something starting with __ and the normal name is an alias. */
4631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4632 choke me
4633 #else
4634 $ac_func();
4635 #endif
4637 ; return 0; }
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4640 rm -rf conftest*
4641 eval "ac_cv_func_$ac_func=yes"
4642 else
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4645 rm -rf conftest*
4646 eval "ac_cv_func_$ac_func=no"
4648 rm -f conftest*
4651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4654 cat >> confdefs.h <<EOF
4655 #define $ac_tr_func 1
4658 else
4659 echo "$ac_t""no" 1>&6
4661 done
4663 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4666 echo "configure:4667: checking for $ac_func" >&5
4667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4669 else
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 /* System header to define __stub macros and hopefully few prototypes,
4674 which can conflict with char $ac_func(); below. */
4675 #include <assert.h>
4676 /* Override any gcc2 internal prototype to avoid an error. */
4677 /* We use char because int might match the return type of a gcc2
4678 builtin and then its argument prototype would still apply. */
4679 char $ac_func();
4681 int main() {
4683 /* The GNU C library defines this for functions which it implements
4684 to always fail with ENOSYS. Some functions are actually named
4685 something starting with __ and the normal name is an alias. */
4686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4687 choke me
4688 #else
4689 $ac_func();
4690 #endif
4692 ; return 0; }
4694 if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4695 rm -rf conftest*
4696 eval "ac_cv_func_$ac_func=yes"
4697 else
4698 echo "configure: failed program was:" >&5
4699 cat conftest.$ac_ext >&5
4700 rm -rf conftest*
4701 eval "ac_cv_func_$ac_func=no"
4703 rm -f conftest*
4706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4709 cat >> confdefs.h <<EOF
4710 #define $ac_tr_func 1
4713 else
4714 echo "$ac_t""no" 1>&6
4716 done
4718 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4721 echo "configure:4722: checking for $ac_func" >&5
4722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4724 else
4725 cat > conftest.$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* System header to define __stub macros and hopefully few prototypes,
4729 which can conflict with char $ac_func(); below. */
4730 #include <assert.h>
4731 /* Override any gcc2 internal prototype to avoid an error. */
4732 /* We use char because int might match the return type of a gcc2
4733 builtin and then its argument prototype would still apply. */
4734 char $ac_func();
4736 int main() {
4738 /* The GNU C library defines this for functions which it implements
4739 to always fail with ENOSYS. Some functions are actually named
4740 something starting with __ and the normal name is an alias. */
4741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4742 choke me
4743 #else
4744 $ac_func();
4745 #endif
4747 ; return 0; }
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4750 rm -rf conftest*
4751 eval "ac_cv_func_$ac_func=yes"
4752 else
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 rm -rf conftest*
4756 eval "ac_cv_func_$ac_func=no"
4758 rm -f conftest*
4761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4764 cat >> confdefs.h <<EOF
4765 #define $ac_tr_func 1
4768 else
4769 echo "$ac_t""no" 1>&6
4771 done
4773 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_func" >&5
4777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4779 else
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4783 /* System header to define __stub macros and hopefully few prototypes,
4784 which can conflict with char $ac_func(); below. */
4785 #include <assert.h>
4786 /* Override any gcc2 internal prototype to avoid an error. */
4787 /* We use char because int might match the return type of a gcc2
4788 builtin and then its argument prototype would still apply. */
4789 char $ac_func();
4791 int main() {
4793 /* The GNU C library defines this for functions which it implements
4794 to always fail with ENOSYS. Some functions are actually named
4795 something starting with __ and the normal name is an alias. */
4796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4797 choke me
4798 #else
4799 $ac_func();
4800 #endif
4802 ; return 0; }
4804 if { (eval echo configure:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4805 rm -rf conftest*
4806 eval "ac_cv_func_$ac_func=yes"
4807 else
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 rm -rf conftest*
4811 eval "ac_cv_func_$ac_func=no"
4813 rm -f conftest*
4816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4819 cat >> confdefs.h <<EOF
4820 #define $ac_tr_func 1
4823 else
4824 echo "$ac_t""no" 1>&6
4826 done
4828 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4831 echo "configure:4832: checking for $ac_func" >&5
4832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4834 else
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 /* System header to define __stub macros and hopefully few prototypes,
4839 which can conflict with char $ac_func(); below. */
4840 #include <assert.h>
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4844 char $ac_func();
4846 int main() {
4848 /* The GNU C library defines this for functions which it implements
4849 to always fail with ENOSYS. Some functions are actually named
4850 something starting with __ and the normal name is an alias. */
4851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4852 choke me
4853 #else
4854 $ac_func();
4855 #endif
4857 ; return 0; }
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4860 rm -rf conftest*
4861 eval "ac_cv_func_$ac_func=yes"
4862 else
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 rm -rf conftest*
4866 eval "ac_cv_func_$ac_func=no"
4868 rm -f conftest*
4871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4874 cat >> confdefs.h <<EOF
4875 #define $ac_tr_func 1
4878 else
4879 echo "$ac_t""no" 1>&6
4881 done
4883 for ac_func in _write __write _fork __fork
4885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_func" >&5
4887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4889 else
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 /* System header to define __stub macros and hopefully few prototypes,
4894 which can conflict with char $ac_func(); below. */
4895 #include <assert.h>
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4899 char $ac_func();
4901 int main() {
4903 /* The GNU C library defines this for functions which it implements
4904 to always fail with ENOSYS. Some functions are actually named
4905 something starting with __ and the normal name is an alias. */
4906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4907 choke me
4908 #else
4909 $ac_func();
4910 #endif
4912 ; return 0; }
4914 if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4915 rm -rf conftest*
4916 eval "ac_cv_func_$ac_func=yes"
4917 else
4918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
4920 rm -rf conftest*
4921 eval "ac_cv_func_$ac_func=no"
4923 rm -f conftest*
4926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4929 cat >> confdefs.h <<EOF
4930 #define $ac_tr_func 1
4933 else
4934 echo "$ac_t""no" 1>&6
4936 done
4938 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4941 echo "configure:4942: checking for $ac_func" >&5
4942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* System header to define __stub macros and hopefully few prototypes,
4949 which can conflict with char $ac_func(); below. */
4950 #include <assert.h>
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4954 char $ac_func();
4956 int main() {
4958 /* The GNU C library defines this for functions which it implements
4959 to always fail with ENOSYS. Some functions are actually named
4960 something starting with __ and the normal name is an alias. */
4961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4962 choke me
4963 #else
4964 $ac_func();
4965 #endif
4967 ; return 0; }
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4970 rm -rf conftest*
4971 eval "ac_cv_func_$ac_func=yes"
4972 else
4973 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4975 rm -rf conftest*
4976 eval "ac_cv_func_$ac_func=no"
4978 rm -f conftest*
4981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4982 echo "$ac_t""yes" 1>&6
4983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4984 cat >> confdefs.h <<EOF
4985 #define $ac_tr_func 1
4988 else
4989 echo "$ac_t""no" 1>&6
4991 done
4993 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4996 echo "configure:4997: checking for $ac_func" >&5
4997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
4999 else
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 /* System header to define __stub macros and hopefully few prototypes,
5004 which can conflict with char $ac_func(); below. */
5005 #include <assert.h>
5006 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5009 char $ac_func();
5011 int main() {
5013 /* The GNU C library defines this for functions which it implements
5014 to always fail with ENOSYS. Some functions are actually named
5015 something starting with __ and the normal name is an alias. */
5016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5017 choke me
5018 #else
5019 $ac_func();
5020 #endif
5022 ; return 0; }
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5025 rm -rf conftest*
5026 eval "ac_cv_func_$ac_func=yes"
5027 else
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5030 rm -rf conftest*
5031 eval "ac_cv_func_$ac_func=no"
5033 rm -f conftest*
5036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5039 cat >> confdefs.h <<EOF
5040 #define $ac_tr_func 1
5043 else
5044 echo "$ac_t""no" 1>&6
5046 done
5048 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5051 echo "configure:5052: checking for $ac_func" >&5
5052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5054 else
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* System header to define __stub macros and hopefully few prototypes,
5059 which can conflict with char $ac_func(); below. */
5060 #include <assert.h>
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5064 char $ac_func();
5066 int main() {
5068 /* The GNU C library defines this for functions which it implements
5069 to always fail with ENOSYS. Some functions are actually named
5070 something starting with __ and the normal name is an alias. */
5071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5072 choke me
5073 #else
5074 $ac_func();
5075 #endif
5077 ; return 0; }
5079 if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5080 rm -rf conftest*
5081 eval "ac_cv_func_$ac_func=yes"
5082 else
5083 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 rm -rf conftest*
5086 eval "ac_cv_func_$ac_func=no"
5088 rm -f conftest*
5091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5094 cat >> confdefs.h <<EOF
5095 #define $ac_tr_func 1
5098 else
5099 echo "$ac_t""no" 1>&6
5101 done
5103 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_func" >&5
5107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5109 else
5110 cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 /* System header to define __stub macros and hopefully few prototypes,
5114 which can conflict with char $ac_func(); below. */
5115 #include <assert.h>
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5119 char $ac_func();
5121 int main() {
5123 /* The GNU C library defines this for functions which it implements
5124 to always fail with ENOSYS. Some functions are actually named
5125 something starting with __ and the normal name is an alias. */
5126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5127 choke me
5128 #else
5129 $ac_func();
5130 #endif
5132 ; return 0; }
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5135 rm -rf conftest*
5136 eval "ac_cv_func_$ac_func=yes"
5137 else
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 rm -rf conftest*
5141 eval "ac_cv_func_$ac_func=no"
5143 rm -f conftest*
5146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5147 echo "$ac_t""yes" 1>&6
5148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5149 cat >> confdefs.h <<EOF
5150 #define $ac_tr_func 1
5153 else
5154 echo "$ac_t""no" 1>&6
5156 done
5158 for ac_func in open64 _open64 __open64 creat64
5160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5161 echo "configure:5162: checking for $ac_func" >&5
5162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5164 else
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 /* System header to define __stub macros and hopefully few prototypes,
5169 which can conflict with char $ac_func(); below. */
5170 #include <assert.h>
5171 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174 char $ac_func();
5176 int main() {
5178 /* The GNU C library defines this for functions which it implements
5179 to always fail with ENOSYS. Some functions are actually named
5180 something starting with __ and the normal name is an alias. */
5181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5182 choke me
5183 #else
5184 $ac_func();
5185 #endif
5187 ; return 0; }
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5190 rm -rf conftest*
5191 eval "ac_cv_func_$ac_func=yes"
5192 else
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5195 rm -rf conftest*
5196 eval "ac_cv_func_$ac_func=no"
5198 rm -f conftest*
5201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5204 cat >> confdefs.h <<EOF
5205 #define $ac_tr_func 1
5208 else
5209 echo "$ac_t""no" 1>&6
5211 done
5215 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5218 if test x$ac_cv_func_stat64 = xno ; then
5219 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5220 echo "configure:5221: checking for stat64 in <sys/stat.h>" >&5
5221 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5225 #if defined(HAVE_UNISTD_H)
5226 #include <unistd.h>
5227 #endif
5228 #include <sys/stat.h>
5230 int main() {
5231 struct stat64 st64; exit(stat64(".",&st64));
5232 ; return 0; }
5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5235 rm -rf conftest*
5236 ac_cv_func_stat64=yes
5237 else
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5241 rm -f conftest*
5242 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5243 if test x$ac_cv_func_stat64 = xyes ; then
5244 cat >> confdefs.h <<\EOF
5245 #define HAVE_STAT64 1
5251 if test x$ac_cv_func_lstat64 = xno ; then
5252 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5253 echo "configure:5254: checking for lstat64 in <sys/stat.h>" >&5
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5258 #if defined(HAVE_UNISTD_H)
5259 #include <unistd.h>
5260 #endif
5261 #include <sys/stat.h>
5263 int main() {
5264 struct stat64 st64; exit(lstat64(".",&st64));
5265 ; return 0; }
5267 if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5268 rm -rf conftest*
5269 ac_cv_func_lstat64=yes
5270 else
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5274 rm -f conftest*
5275 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5276 if test x$ac_cv_func_lstat64 = xyes ; then
5277 cat >> confdefs.h <<\EOF
5278 #define HAVE_LSTAT64 1
5284 if test x$ac_cv_func_fstat64 = xno ; then
5285 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5286 echo "configure:5287: checking for fstat64 in <sys/stat.h>" >&5
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5291 #if defined(HAVE_UNISTD_H)
5292 #include <unistd.h>
5293 #endif
5294 #include <sys/stat.h>
5296 int main() {
5297 struct stat64 st64; exit(fstat64(0,&st64));
5298 ; return 0; }
5300 if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5301 rm -rf conftest*
5302 ac_cv_func_fstat64=yes
5303 else
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5307 rm -f conftest*
5308 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5309 if test x$ac_cv_func_fstat64 = xyes ; then
5310 cat >> confdefs.h <<\EOF
5311 #define HAVE_FSTAT64 1
5318 # If no strcasecmp, check for it in some known places
5319 # It is in -lresolv on ReliantUNIX and UnixWare
5320 # -lresolve *must* follow -lnsl for name resolution to work properly
5323 if test x$ac_cv_func_strcasecmp = xno ; then
5324 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5325 echo "configure:5326: checking for strcasecmp in -lresolv" >&5
5326 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5329 else
5330 ac_save_LIBS="$LIBS"
5331 LIBS="-lresolv $LIBS"
5332 cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5335 /* Override any gcc2 internal prototype to avoid an error. */
5336 /* We use char because int might match the return type of a gcc2
5337 builtin and then its argument prototype would still apply. */
5338 char strcasecmp();
5340 int main() {
5341 strcasecmp()
5342 ; return 0; }
5344 if { (eval echo configure:5345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5345 rm -rf conftest*
5346 eval "ac_cv_lib_$ac_lib_var=yes"
5347 else
5348 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5
5350 rm -rf conftest*
5351 eval "ac_cv_lib_$ac_lib_var=no"
5353 rm -f conftest*
5354 LIBS="$ac_save_LIBS"
5357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5358 echo "$ac_t""yes" 1>&6
5359 LIBS="$LIBS -lresolv"
5360 cat >> confdefs.h <<\EOF
5361 #define HAVE_STRCASECMP 1
5364 else
5365 echo "$ac_t""no" 1>&6
5371 # Check for the functions putprpwnam, set_auth_parameters,
5372 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5373 # Needed for OSF1 and HPUX.
5376 case "$LIBS" in
5377 *-lsecurity*) for ac_func in putprpwnam
5379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5380 echo "configure:5381: checking for $ac_func" >&5
5381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5383 else
5384 cat > conftest.$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5387 /* System header to define __stub macros and hopefully few prototypes,
5388 which can conflict with char $ac_func(); below. */
5389 #include <assert.h>
5390 /* Override any gcc2 internal prototype to avoid an error. */
5391 /* We use char because int might match the return type of a gcc2
5392 builtin and then its argument prototype would still apply. */
5393 char $ac_func();
5395 int main() {
5397 /* The GNU C library defines this for functions which it implements
5398 to always fail with ENOSYS. Some functions are actually named
5399 something starting with __ and the normal name is an alias. */
5400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5401 choke me
5402 #else
5403 $ac_func();
5404 #endif
5406 ; return 0; }
5408 if { (eval echo configure:5409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5409 rm -rf conftest*
5410 eval "ac_cv_func_$ac_func=yes"
5411 else
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5414 rm -rf conftest*
5415 eval "ac_cv_func_$ac_func=no"
5417 rm -f conftest*
5420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5421 echo "$ac_t""yes" 1>&6
5422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5423 cat >> confdefs.h <<EOF
5424 #define $ac_tr_func 1
5427 else
5428 echo "$ac_t""no" 1>&6
5430 done
5432 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5433 echo "configure:5434: checking for putprpwnam in -lsecurity" >&5
5434 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5437 else
5438 ac_save_LIBS="$LIBS"
5439 LIBS="-lsecurity $LIBS"
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5446 char putprpwnam();
5448 int main() {
5449 putprpwnam()
5450 ; return 0; }
5452 if { (eval echo configure:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5453 rm -rf conftest*
5454 eval "ac_cv_lib_$ac_lib_var=yes"
5455 else
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5458 rm -rf conftest*
5459 eval "ac_cv_lib_$ac_lib_var=no"
5461 rm -f conftest*
5462 LIBS="$ac_save_LIBS"
5465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5466 echo "$ac_t""yes" 1>&6
5467 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5468 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5469 cat >> confdefs.h <<EOF
5470 #define $ac_tr_lib 1
5473 LIBS="-lsecurity $LIBS"
5475 else
5476 echo "$ac_t""no" 1>&6
5479 for ac_func in putprpwnam
5481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_func" >&5
5483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5485 else
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char $ac_func(); below. */
5491 #include <assert.h>
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5495 char $ac_func();
5497 int main() {
5499 /* The GNU C library defines this for functions which it implements
5500 to always fail with ENOSYS. Some functions are actually named
5501 something starting with __ and the normal name is an alias. */
5502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5503 choke me
5504 #else
5505 $ac_func();
5506 #endif
5508 ; return 0; }
5510 if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5511 rm -rf conftest*
5512 eval "ac_cv_func_$ac_func=yes"
5513 else
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 rm -rf conftest*
5517 eval "ac_cv_func_$ac_func=no"
5519 rm -f conftest*
5522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5525 cat >> confdefs.h <<EOF
5526 #define $ac_tr_func 1
5529 else
5530 echo "$ac_t""no" 1>&6
5532 done
5535 esac
5537 case "$LIBS" in
5538 *-lsec*) for ac_func in putprpwnam
5540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_func" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char $ac_func(); below. */
5550 #include <assert.h>
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5554 char $ac_func();
5556 int main() {
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5562 choke me
5563 #else
5564 $ac_func();
5565 #endif
5567 ; return 0; }
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5570 rm -rf conftest*
5571 eval "ac_cv_func_$ac_func=yes"
5572 else
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5575 rm -rf conftest*
5576 eval "ac_cv_func_$ac_func=no"
5578 rm -f conftest*
5581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5584 cat >> confdefs.h <<EOF
5585 #define $ac_tr_func 1
5588 else
5589 echo "$ac_t""no" 1>&6
5591 done
5593 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5594 echo "configure:5595: checking for putprpwnam in -lsec" >&5
5595 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5598 else
5599 ac_save_LIBS="$LIBS"
5600 LIBS="-lsec $LIBS"
5601 cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5607 char putprpwnam();
5609 int main() {
5610 putprpwnam()
5611 ; return 0; }
5613 if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5614 rm -rf conftest*
5615 eval "ac_cv_lib_$ac_lib_var=yes"
5616 else
5617 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 rm -rf conftest*
5620 eval "ac_cv_lib_$ac_lib_var=no"
5622 rm -f conftest*
5623 LIBS="$ac_save_LIBS"
5626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5628 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5629 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5630 cat >> confdefs.h <<EOF
5631 #define $ac_tr_lib 1
5634 LIBS="-lsec $LIBS"
5636 else
5637 echo "$ac_t""no" 1>&6
5640 for ac_func in putprpwnam
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5646 else
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5652 #include <assert.h>
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656 char $ac_func();
5658 int main() {
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5664 choke me
5665 #else
5666 $ac_func();
5667 #endif
5669 ; return 0; }
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5672 rm -rf conftest*
5673 eval "ac_cv_func_$ac_func=yes"
5674 else
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 rm -rf conftest*
5678 eval "ac_cv_func_$ac_func=no"
5680 rm -f conftest*
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h <<EOF
5687 #define $ac_tr_func 1
5690 else
5691 echo "$ac_t""no" 1>&6
5693 done
5696 esac
5699 case "$LIBS" in
5700 *-lsecurity*) for ac_func in set_auth_parameters
5702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_func" >&5
5704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5706 else
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 /* System header to define __stub macros and hopefully few prototypes,
5711 which can conflict with char $ac_func(); below. */
5712 #include <assert.h>
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5716 char $ac_func();
5718 int main() {
5720 /* The GNU C library defines this for functions which it implements
5721 to always fail with ENOSYS. Some functions are actually named
5722 something starting with __ and the normal name is an alias. */
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 choke me
5725 #else
5726 $ac_func();
5727 #endif
5729 ; return 0; }
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5732 rm -rf conftest*
5733 eval "ac_cv_func_$ac_func=yes"
5734 else
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 rm -rf conftest*
5738 eval "ac_cv_func_$ac_func=no"
5740 rm -f conftest*
5743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5746 cat >> confdefs.h <<EOF
5747 #define $ac_tr_func 1
5750 else
5751 echo "$ac_t""no" 1>&6
5753 done
5755 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5756 echo "configure:5757: checking for set_auth_parameters in -lsecurity" >&5
5757 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5760 else
5761 ac_save_LIBS="$LIBS"
5762 LIBS="-lsecurity $LIBS"
5763 cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5766 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5769 char set_auth_parameters();
5771 int main() {
5772 set_auth_parameters()
5773 ; return 0; }
5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5776 rm -rf conftest*
5777 eval "ac_cv_lib_$ac_lib_var=yes"
5778 else
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 rm -rf conftest*
5782 eval "ac_cv_lib_$ac_lib_var=no"
5784 rm -f conftest*
5785 LIBS="$ac_save_LIBS"
5788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5789 echo "$ac_t""yes" 1>&6
5790 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5791 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5792 cat >> confdefs.h <<EOF
5793 #define $ac_tr_lib 1
5796 LIBS="-lsecurity $LIBS"
5798 else
5799 echo "$ac_t""no" 1>&6
5802 for ac_func in set_auth_parameters
5804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5805 echo "configure:5806: checking for $ac_func" >&5
5806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5808 else
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 /* System header to define __stub macros and hopefully few prototypes,
5813 which can conflict with char $ac_func(); below. */
5814 #include <assert.h>
5815 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5818 char $ac_func();
5820 int main() {
5822 /* The GNU C library defines this for functions which it implements
5823 to always fail with ENOSYS. Some functions are actually named
5824 something starting with __ and the normal name is an alias. */
5825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5826 choke me
5827 #else
5828 $ac_func();
5829 #endif
5831 ; return 0; }
5833 if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5834 rm -rf conftest*
5835 eval "ac_cv_func_$ac_func=yes"
5836 else
5837 echo "configure: failed program was:" >&5
5838 cat conftest.$ac_ext >&5
5839 rm -rf conftest*
5840 eval "ac_cv_func_$ac_func=no"
5842 rm -f conftest*
5845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5846 echo "$ac_t""yes" 1>&6
5847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5848 cat >> confdefs.h <<EOF
5849 #define $ac_tr_func 1
5852 else
5853 echo "$ac_t""no" 1>&6
5855 done
5858 esac
5860 case "$LIBS" in
5861 *-lsec*) for ac_func in set_auth_parameters
5863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5864 echo "configure:5865: checking for $ac_func" >&5
5865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5867 else
5868 cat > conftest.$ac_ext <<EOF
5869 #line 5870 "configure"
5870 #include "confdefs.h"
5871 /* System header to define __stub macros and hopefully few prototypes,
5872 which can conflict with char $ac_func(); below. */
5873 #include <assert.h>
5874 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5877 char $ac_func();
5879 int main() {
5881 /* The GNU C library defines this for functions which it implements
5882 to always fail with ENOSYS. Some functions are actually named
5883 something starting with __ and the normal name is an alias. */
5884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5885 choke me
5886 #else
5887 $ac_func();
5888 #endif
5890 ; return 0; }
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5893 rm -rf conftest*
5894 eval "ac_cv_func_$ac_func=yes"
5895 else
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 rm -rf conftest*
5899 eval "ac_cv_func_$ac_func=no"
5901 rm -f conftest*
5904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5905 echo "$ac_t""yes" 1>&6
5906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5907 cat >> confdefs.h <<EOF
5908 #define $ac_tr_func 1
5911 else
5912 echo "$ac_t""no" 1>&6
5914 done
5916 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5917 echo "configure:5918: checking for set_auth_parameters in -lsec" >&5
5918 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922 ac_save_LIBS="$LIBS"
5923 LIBS="-lsec $LIBS"
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 /* Override any gcc2 internal prototype to avoid an error. */
5928 /* We use char because int might match the return type of a gcc2
5929 builtin and then its argument prototype would still apply. */
5930 char set_auth_parameters();
5932 int main() {
5933 set_auth_parameters()
5934 ; return 0; }
5936 if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5937 rm -rf conftest*
5938 eval "ac_cv_lib_$ac_lib_var=yes"
5939 else
5940 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5942 rm -rf conftest*
5943 eval "ac_cv_lib_$ac_lib_var=no"
5945 rm -f conftest*
5946 LIBS="$ac_save_LIBS"
5949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5950 echo "$ac_t""yes" 1>&6
5951 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5953 cat >> confdefs.h <<EOF
5954 #define $ac_tr_lib 1
5957 LIBS="-lsec $LIBS"
5959 else
5960 echo "$ac_t""no" 1>&6
5963 for ac_func in set_auth_parameters
5965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_func" >&5
5967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5969 else
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 /* System header to define __stub macros and hopefully few prototypes,
5974 which can conflict with char $ac_func(); below. */
5975 #include <assert.h>
5976 /* Override any gcc2 internal prototype to avoid an error. */
5977 /* We use char because int might match the return type of a gcc2
5978 builtin and then its argument prototype would still apply. */
5979 char $ac_func();
5981 int main() {
5983 /* The GNU C library defines this for functions which it implements
5984 to always fail with ENOSYS. Some functions are actually named
5985 something starting with __ and the normal name is an alias. */
5986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5987 choke me
5988 #else
5989 $ac_func();
5990 #endif
5992 ; return 0; }
5994 if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5995 rm -rf conftest*
5996 eval "ac_cv_func_$ac_func=yes"
5997 else
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 rm -rf conftest*
6001 eval "ac_cv_func_$ac_func=no"
6003 rm -f conftest*
6006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6007 echo "$ac_t""yes" 1>&6
6008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6009 cat >> confdefs.h <<EOF
6010 #define $ac_tr_func 1
6013 else
6014 echo "$ac_t""no" 1>&6
6016 done
6019 esac
6022 case "$LIBS" in
6023 *-lsecurity*) for ac_func in getspnam
6025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_func" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6029 else
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func(); below. */
6035 #include <assert.h>
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6039 char $ac_func();
6041 int main() {
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6047 choke me
6048 #else
6049 $ac_func();
6050 #endif
6052 ; return 0; }
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6055 rm -rf conftest*
6056 eval "ac_cv_func_$ac_func=yes"
6057 else
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6060 rm -rf conftest*
6061 eval "ac_cv_func_$ac_func=no"
6063 rm -f conftest*
6066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h <<EOF
6070 #define $ac_tr_func 1
6073 else
6074 echo "$ac_t""no" 1>&6
6076 done
6078 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6079 echo "configure:6080: checking for getspnam in -lsecurity" >&5
6080 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6084 ac_save_LIBS="$LIBS"
6085 LIBS="-lsecurity $LIBS"
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6092 char getspnam();
6094 int main() {
6095 getspnam()
6096 ; return 0; }
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6099 rm -rf conftest*
6100 eval "ac_cv_lib_$ac_lib_var=yes"
6101 else
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6104 rm -rf conftest*
6105 eval "ac_cv_lib_$ac_lib_var=no"
6107 rm -f conftest*
6108 LIBS="$ac_save_LIBS"
6111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6113 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6115 cat >> confdefs.h <<EOF
6116 #define $ac_tr_lib 1
6119 LIBS="-lsecurity $LIBS"
6121 else
6122 echo "$ac_t""no" 1>&6
6125 for ac_func in getspnam
6127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6128 echo "configure:6129: checking for $ac_func" >&5
6129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6131 else
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 /* System header to define __stub macros and hopefully few prototypes,
6136 which can conflict with char $ac_func(); below. */
6137 #include <assert.h>
6138 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6141 char $ac_func();
6143 int main() {
6145 /* The GNU C library defines this for functions which it implements
6146 to always fail with ENOSYS. Some functions are actually named
6147 something starting with __ and the normal name is an alias. */
6148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6149 choke me
6150 #else
6151 $ac_func();
6152 #endif
6154 ; return 0; }
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6157 rm -rf conftest*
6158 eval "ac_cv_func_$ac_func=yes"
6159 else
6160 echo "configure: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6162 rm -rf conftest*
6163 eval "ac_cv_func_$ac_func=no"
6165 rm -f conftest*
6168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6171 cat >> confdefs.h <<EOF
6172 #define $ac_tr_func 1
6175 else
6176 echo "$ac_t""no" 1>&6
6178 done
6181 esac
6183 case "$LIBS" in
6184 *-lsec*) for ac_func in getspnam
6186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6187 echo "configure:6188: checking for $ac_func" >&5
6188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6190 else
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6194 /* System header to define __stub macros and hopefully few prototypes,
6195 which can conflict with char $ac_func(); below. */
6196 #include <assert.h>
6197 /* Override any gcc2 internal prototype to avoid an error. */
6198 /* We use char because int might match the return type of a gcc2
6199 builtin and then its argument prototype would still apply. */
6200 char $ac_func();
6202 int main() {
6204 /* The GNU C library defines this for functions which it implements
6205 to always fail with ENOSYS. Some functions are actually named
6206 something starting with __ and the normal name is an alias. */
6207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6208 choke me
6209 #else
6210 $ac_func();
6211 #endif
6213 ; return 0; }
6215 if { (eval echo configure:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6216 rm -rf conftest*
6217 eval "ac_cv_func_$ac_func=yes"
6218 else
6219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6221 rm -rf conftest*
6222 eval "ac_cv_func_$ac_func=no"
6224 rm -f conftest*
6227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6228 echo "$ac_t""yes" 1>&6
6229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6230 cat >> confdefs.h <<EOF
6231 #define $ac_tr_func 1
6234 else
6235 echo "$ac_t""no" 1>&6
6237 done
6239 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6240 echo "configure:6241: checking for getspnam in -lsec" >&5
6241 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6243 echo $ac_n "(cached) $ac_c" 1>&6
6244 else
6245 ac_save_LIBS="$LIBS"
6246 LIBS="-lsec $LIBS"
6247 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 /* Override any gcc2 internal prototype to avoid an error. */
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6253 char getspnam();
6255 int main() {
6256 getspnam()
6257 ; return 0; }
6259 if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6260 rm -rf conftest*
6261 eval "ac_cv_lib_$ac_lib_var=yes"
6262 else
6263 echo "configure: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 rm -rf conftest*
6266 eval "ac_cv_lib_$ac_lib_var=no"
6268 rm -f conftest*
6269 LIBS="$ac_save_LIBS"
6272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6273 echo "$ac_t""yes" 1>&6
6274 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6276 cat >> confdefs.h <<EOF
6277 #define $ac_tr_lib 1
6280 LIBS="-lsec $LIBS"
6282 else
6283 echo "$ac_t""no" 1>&6
6286 for ac_func in getspnam
6288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6289 echo "configure:6290: checking for $ac_func" >&5
6290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6292 else
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 /* System header to define __stub macros and hopefully few prototypes,
6297 which can conflict with char $ac_func(); below. */
6298 #include <assert.h>
6299 /* Override any gcc2 internal prototype to avoid an error. */
6300 /* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6302 char $ac_func();
6304 int main() {
6306 /* The GNU C library defines this for functions which it implements
6307 to always fail with ENOSYS. Some functions are actually named
6308 something starting with __ and the normal name is an alias. */
6309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6310 choke me
6311 #else
6312 $ac_func();
6313 #endif
6315 ; return 0; }
6317 if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6318 rm -rf conftest*
6319 eval "ac_cv_func_$ac_func=yes"
6320 else
6321 echo "configure: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6323 rm -rf conftest*
6324 eval "ac_cv_func_$ac_func=no"
6326 rm -f conftest*
6329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6332 cat >> confdefs.h <<EOF
6333 #define $ac_tr_func 1
6336 else
6337 echo "$ac_t""no" 1>&6
6339 done
6342 esac
6345 case "$LIBS" in
6346 *-lsecurity*) for ac_func in bigcrypt
6348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6349 echo "configure:6350: checking for $ac_func" >&5
6350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6352 else
6353 cat > conftest.$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6356 /* System header to define __stub macros and hopefully few prototypes,
6357 which can conflict with char $ac_func(); below. */
6358 #include <assert.h>
6359 /* Override any gcc2 internal prototype to avoid an error. */
6360 /* We use char because int might match the return type of a gcc2
6361 builtin and then its argument prototype would still apply. */
6362 char $ac_func();
6364 int main() {
6366 /* The GNU C library defines this for functions which it implements
6367 to always fail with ENOSYS. Some functions are actually named
6368 something starting with __ and the normal name is an alias. */
6369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6370 choke me
6371 #else
6372 $ac_func();
6373 #endif
6375 ; return 0; }
6377 if { (eval echo configure:6378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6378 rm -rf conftest*
6379 eval "ac_cv_func_$ac_func=yes"
6380 else
6381 echo "configure: failed program was:" >&5
6382 cat conftest.$ac_ext >&5
6383 rm -rf conftest*
6384 eval "ac_cv_func_$ac_func=no"
6386 rm -f conftest*
6389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6390 echo "$ac_t""yes" 1>&6
6391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6392 cat >> confdefs.h <<EOF
6393 #define $ac_tr_func 1
6396 else
6397 echo "$ac_t""no" 1>&6
6399 done
6401 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6402 echo "configure:6403: checking for bigcrypt in -lsecurity" >&5
6403 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6406 else
6407 ac_save_LIBS="$LIBS"
6408 LIBS="-lsecurity $LIBS"
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure"
6411 #include "confdefs.h"
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char bigcrypt();
6417 int main() {
6418 bigcrypt()
6419 ; return 0; }
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6422 rm -rf conftest*
6423 eval "ac_cv_lib_$ac_lib_var=yes"
6424 else
6425 echo "configure: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 rm -rf conftest*
6428 eval "ac_cv_lib_$ac_lib_var=no"
6430 rm -f conftest*
6431 LIBS="$ac_save_LIBS"
6434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6435 echo "$ac_t""yes" 1>&6
6436 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6438 cat >> confdefs.h <<EOF
6439 #define $ac_tr_lib 1
6442 LIBS="-lsecurity $LIBS"
6444 else
6445 echo "$ac_t""no" 1>&6
6448 for ac_func in bigcrypt
6450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6451 echo "configure:6452: checking for $ac_func" >&5
6452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6454 else
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 /* System header to define __stub macros and hopefully few prototypes,
6459 which can conflict with char $ac_func(); below. */
6460 #include <assert.h>
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6464 char $ac_func();
6466 int main() {
6468 /* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6472 choke me
6473 #else
6474 $ac_func();
6475 #endif
6477 ; return 0; }
6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6480 rm -rf conftest*
6481 eval "ac_cv_func_$ac_func=yes"
6482 else
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6485 rm -rf conftest*
6486 eval "ac_cv_func_$ac_func=no"
6488 rm -f conftest*
6491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6494 cat >> confdefs.h <<EOF
6495 #define $ac_tr_func 1
6498 else
6499 echo "$ac_t""no" 1>&6
6501 done
6504 esac
6506 case "$LIBS" in
6507 *-lsec*) for ac_func in bigcrypt
6509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6510 echo "configure:6511: checking for $ac_func" >&5
6511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6513 else
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6517 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char $ac_func(); below. */
6519 #include <assert.h>
6520 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6523 char $ac_func();
6525 int main() {
6527 /* The GNU C library defines this for functions which it implements
6528 to always fail with ENOSYS. Some functions are actually named
6529 something starting with __ and the normal name is an alias. */
6530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6531 choke me
6532 #else
6533 $ac_func();
6534 #endif
6536 ; return 0; }
6538 if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6539 rm -rf conftest*
6540 eval "ac_cv_func_$ac_func=yes"
6541 else
6542 echo "configure: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6544 rm -rf conftest*
6545 eval "ac_cv_func_$ac_func=no"
6547 rm -f conftest*
6550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6551 echo "$ac_t""yes" 1>&6
6552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6553 cat >> confdefs.h <<EOF
6554 #define $ac_tr_func 1
6557 else
6558 echo "$ac_t""no" 1>&6
6560 done
6562 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6563 echo "configure:6564: checking for bigcrypt in -lsec" >&5
6564 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6567 else
6568 ac_save_LIBS="$LIBS"
6569 LIBS="-lsec $LIBS"
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char bigcrypt();
6578 int main() {
6579 bigcrypt()
6580 ; return 0; }
6582 if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6583 rm -rf conftest*
6584 eval "ac_cv_lib_$ac_lib_var=yes"
6585 else
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 rm -rf conftest*
6589 eval "ac_cv_lib_$ac_lib_var=no"
6591 rm -f conftest*
6592 LIBS="$ac_save_LIBS"
6595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6596 echo "$ac_t""yes" 1>&6
6597 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6599 cat >> confdefs.h <<EOF
6600 #define $ac_tr_lib 1
6603 LIBS="-lsec $LIBS"
6605 else
6606 echo "$ac_t""no" 1>&6
6609 for ac_func in bigcrypt
6611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6612 echo "configure:6613: checking for $ac_func" >&5
6613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6614 echo $ac_n "(cached) $ac_c" 1>&6
6615 else
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6619 /* System header to define __stub macros and hopefully few prototypes,
6620 which can conflict with char $ac_func(); below. */
6621 #include <assert.h>
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char $ac_func();
6627 int main() {
6629 /* The GNU C library defines this for functions which it implements
6630 to always fail with ENOSYS. Some functions are actually named
6631 something starting with __ and the normal name is an alias. */
6632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6633 choke me
6634 #else
6635 $ac_func();
6636 #endif
6638 ; return 0; }
6640 if { (eval echo configure:6641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6641 rm -rf conftest*
6642 eval "ac_cv_func_$ac_func=yes"
6643 else
6644 echo "configure: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6646 rm -rf conftest*
6647 eval "ac_cv_func_$ac_func=no"
6649 rm -f conftest*
6652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6653 echo "$ac_t""yes" 1>&6
6654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6655 cat >> confdefs.h <<EOF
6656 #define $ac_tr_func 1
6659 else
6660 echo "$ac_t""no" 1>&6
6662 done
6665 esac
6668 case "$LIBS" in
6669 *-lsecurity*) for ac_func in getprpwnam
6671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6672 echo "configure:6673: checking for $ac_func" >&5
6673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6675 else
6676 cat > conftest.$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6679 /* System header to define __stub macros and hopefully few prototypes,
6680 which can conflict with char $ac_func(); below. */
6681 #include <assert.h>
6682 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6685 char $ac_func();
6687 int main() {
6689 /* The GNU C library defines this for functions which it implements
6690 to always fail with ENOSYS. Some functions are actually named
6691 something starting with __ and the normal name is an alias. */
6692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6693 choke me
6694 #else
6695 $ac_func();
6696 #endif
6698 ; return 0; }
6700 if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6701 rm -rf conftest*
6702 eval "ac_cv_func_$ac_func=yes"
6703 else
6704 echo "configure: failed program was:" >&5
6705 cat conftest.$ac_ext >&5
6706 rm -rf conftest*
6707 eval "ac_cv_func_$ac_func=no"
6709 rm -f conftest*
6712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6713 echo "$ac_t""yes" 1>&6
6714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6715 cat >> confdefs.h <<EOF
6716 #define $ac_tr_func 1
6719 else
6720 echo "$ac_t""no" 1>&6
6722 done
6724 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6725 echo "configure:6726: checking for getprpwnam in -lsecurity" >&5
6726 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6729 else
6730 ac_save_LIBS="$LIBS"
6731 LIBS="-lsecurity $LIBS"
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6738 char getprpwnam();
6740 int main() {
6741 getprpwnam()
6742 ; return 0; }
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6745 rm -rf conftest*
6746 eval "ac_cv_lib_$ac_lib_var=yes"
6747 else
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6750 rm -rf conftest*
6751 eval "ac_cv_lib_$ac_lib_var=no"
6753 rm -f conftest*
6754 LIBS="$ac_save_LIBS"
6757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6758 echo "$ac_t""yes" 1>&6
6759 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6761 cat >> confdefs.h <<EOF
6762 #define $ac_tr_lib 1
6765 LIBS="-lsecurity $LIBS"
6767 else
6768 echo "$ac_t""no" 1>&6
6771 for ac_func in getprpwnam
6773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6774 echo "configure:6775: checking for $ac_func" >&5
6775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6777 else
6778 cat > conftest.$ac_ext <<EOF
6779 #line 6780 "configure"
6780 #include "confdefs.h"
6781 /* System header to define __stub macros and hopefully few prototypes,
6782 which can conflict with char $ac_func(); below. */
6783 #include <assert.h>
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6787 char $ac_func();
6789 int main() {
6791 /* The GNU C library defines this for functions which it implements
6792 to always fail with ENOSYS. Some functions are actually named
6793 something starting with __ and the normal name is an alias. */
6794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6795 choke me
6796 #else
6797 $ac_func();
6798 #endif
6800 ; return 0; }
6802 if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6803 rm -rf conftest*
6804 eval "ac_cv_func_$ac_func=yes"
6805 else
6806 echo "configure: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6808 rm -rf conftest*
6809 eval "ac_cv_func_$ac_func=no"
6811 rm -f conftest*
6814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6815 echo "$ac_t""yes" 1>&6
6816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6817 cat >> confdefs.h <<EOF
6818 #define $ac_tr_func 1
6821 else
6822 echo "$ac_t""no" 1>&6
6824 done
6827 esac
6829 case "$LIBS" in
6830 *-lsec*) for ac_func in getprpwnam
6832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6833 echo "configure:6834: checking for $ac_func" >&5
6834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6836 else
6837 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6840 /* System header to define __stub macros and hopefully few prototypes,
6841 which can conflict with char $ac_func(); below. */
6842 #include <assert.h>
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6846 char $ac_func();
6848 int main() {
6850 /* The GNU C library defines this for functions which it implements
6851 to always fail with ENOSYS. Some functions are actually named
6852 something starting with __ and the normal name is an alias. */
6853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6854 choke me
6855 #else
6856 $ac_func();
6857 #endif
6859 ; return 0; }
6861 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6862 rm -rf conftest*
6863 eval "ac_cv_func_$ac_func=yes"
6864 else
6865 echo "configure: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6867 rm -rf conftest*
6868 eval "ac_cv_func_$ac_func=no"
6870 rm -f conftest*
6873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6876 cat >> confdefs.h <<EOF
6877 #define $ac_tr_func 1
6880 else
6881 echo "$ac_t""no" 1>&6
6883 done
6885 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6886 echo "configure:6887: checking for getprpwnam in -lsec" >&5
6887 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6890 else
6891 ac_save_LIBS="$LIBS"
6892 LIBS="-lsec $LIBS"
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6899 char getprpwnam();
6901 int main() {
6902 getprpwnam()
6903 ; return 0; }
6905 if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6906 rm -rf conftest*
6907 eval "ac_cv_lib_$ac_lib_var=yes"
6908 else
6909 echo "configure: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6911 rm -rf conftest*
6912 eval "ac_cv_lib_$ac_lib_var=no"
6914 rm -f conftest*
6915 LIBS="$ac_save_LIBS"
6918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6919 echo "$ac_t""yes" 1>&6
6920 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6922 cat >> confdefs.h <<EOF
6923 #define $ac_tr_lib 1
6926 LIBS="-lsec $LIBS"
6928 else
6929 echo "$ac_t""no" 1>&6
6932 for ac_func in getprpwnam
6934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6935 echo "configure:6936: checking for $ac_func" >&5
6936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6938 else
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func(); below. */
6944 #include <assert.h>
6945 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6948 char $ac_func();
6950 int main() {
6952 /* The GNU C library defines this for functions which it implements
6953 to always fail with ENOSYS. Some functions are actually named
6954 something starting with __ and the normal name is an alias. */
6955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6956 choke me
6957 #else
6958 $ac_func();
6959 #endif
6961 ; return 0; }
6963 if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6964 rm -rf conftest*
6965 eval "ac_cv_func_$ac_func=yes"
6966 else
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6969 rm -rf conftest*
6970 eval "ac_cv_func_$ac_func=no"
6972 rm -f conftest*
6975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6976 echo "$ac_t""yes" 1>&6
6977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6978 cat >> confdefs.h <<EOF
6979 #define $ac_tr_func 1
6982 else
6983 echo "$ac_t""no" 1>&6
6985 done
6988 esac
6991 # this bit needs to be modified for each OS that is suported by
6992 # smbwrapper. You need to specify how to created a shared library and
6993 # how to compile C code to produce PIC object files
6995 # these are the defaults, good for lots of systems
6996 HOST_OS="$host_os"
6997 LDSHFLAGS="-shared"
6999 # and these are for particular systems
7000 case "$host_os" in
7001 *linux*) cat >> confdefs.h <<\EOF
7002 #define LINUX 1
7005 *solaris*) cat >> confdefs.h <<\EOF
7006 #define SUNOS5 1
7009 LDSHFLAGS="-G"
7011 *sunos*) cat >> confdefs.h <<\EOF
7012 #define SUNOS4 1
7015 LDSHFLAGS=""
7017 *bsd*) LDSHFLAGS="-shared -Bshareable"
7019 *irix*) cat >> confdefs.h <<\EOF
7020 #define IRIX 1
7023 case "$host_os" in
7024 *irix6*) cat >> confdefs.h <<\EOF
7025 #define IRIX6 1
7029 esac
7030 ATTEMPT_WRAP32_BUILD=yes
7032 *aix*) cat >> confdefs.h <<\EOF
7033 #define AIX 1
7036 *hpux*) cat >> confdefs.h <<\EOF
7037 #define HPUX 1
7040 *qnx*) cat >> confdefs.h <<\EOF
7041 #define QNX 1
7044 *osf*) cat >> confdefs.h <<\EOF
7045 #define OSF1 1
7048 *sco*) cat >> confdefs.h <<\EOF
7049 #define SCO 1
7052 *next2*) cat >> confdefs.h <<\EOF
7053 #define NEXT2 1
7056 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7057 set dummy groff; ac_word=$2
7058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7059 echo "configure:7060: checking for $ac_word" >&5
7060 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7061 echo $ac_n "(cached) $ac_c" 1>&6
7062 else
7063 if test -n "$ROFF"; then
7064 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7065 else
7066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7067 for ac_dir in $PATH; do
7068 test -z "$ac_dir" && ac_dir=.
7069 if test -f $ac_dir/$ac_word; then
7070 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7071 break
7073 done
7074 IFS="$ac_save_ifs"
7077 ROFF="$ac_cv_prog_ROFF"
7078 if test -n "$ROFF"; then
7079 echo "$ac_t""$ROFF" 1>&6
7080 else
7081 echo "$ac_t""no" 1>&6
7084 *sysv4*)
7085 case "$host" in
7086 *-univel-*) if test "$GCC" != yes ; then
7087 cat >> confdefs.h <<\EOF
7088 #define HAVE_MEMSET 1
7092 LDSHFLAGS="-G"
7094 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
7095 #define RELIANTUNIX 1
7098 esac
7100 *sysv5*)
7101 if test "$GCC" != yes ; then
7102 cat >> confdefs.h <<\EOF
7103 #define HAVE_MEMSET 1
7107 LDSHFLAGS="-G"
7109 esac
7111 # try to work out how to produce pic code with this compiler
7112 PICFLAG=""
7113 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7114 echo "configure:7115: checking whether ${CC-cc} accepts -fpic" >&5
7115 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7117 else
7118 echo 'void f(){}' > conftest.c
7119 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7120 ac_cv_prog_cc_fpic=yes
7121 else
7122 ac_cv_prog_cc_fpic=no
7124 rm -f conftest*
7128 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7129 if test $ac_cv_prog_cc_fpic = yes; then
7130 PICFLAG="-fpic";
7132 if test x$PICFLAG = x; then
7133 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7134 echo "configure:7135: checking whether ${CC-cc} accepts -Kpic" >&5
7135 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7137 else
7138 echo 'void f(){}' > conftest.c
7139 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7140 ac_cv_prog_cc_Kpic=yes
7141 else
7142 ac_cv_prog_cc_Kpic=no
7144 rm -f conftest*
7148 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7149 if test $ac_cv_prog_cc_Kpic = yes; then
7150 PICFLAG="-Kpic";
7153 if test x$PICFLAG = x; then
7154 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7155 echo "configure:7156: checking whether ${CC-cc} accepts -KPIC" >&5
7156 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7158 else
7159 echo 'void f(){}' > conftest.c
7160 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7161 ac_cv_prog_cc_KPIC=yes
7162 else
7163 ac_cv_prog_cc_KPIC=no
7165 rm -f conftest*
7169 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7170 if test $ac_cv_prog_cc_KPIC = yes; then
7171 PICFLAG="-KPIC";
7175 ################
7177 echo $ac_n "checking for long long""... $ac_c" 1>&6
7178 echo "configure:7179: checking for long long" >&5
7179 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7180 echo $ac_n "(cached) $ac_c" 1>&6
7181 else
7183 if test "$cross_compiling" = yes; then
7184 samba_cv_have_longlong=cross
7185 else
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 #include <stdio.h>
7190 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7193 then
7194 samba_cv_have_longlong=yes
7195 else
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7198 rm -fr conftest*
7199 samba_cv_have_longlong=no
7201 rm -fr conftest*
7206 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7207 if test x"$samba_cv_have_longlong" = x"yes"; then
7208 cat >> confdefs.h <<\EOF
7209 #define HAVE_LONGLONG 1
7214 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7215 echo "configure:7216: checking for 64 bit off_t" >&5
7216 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
7217 echo $ac_n "(cached) $ac_c" 1>&6
7218 else
7220 if test "$cross_compiling" = yes; then
7221 samba_cv_SIZEOF_OFF_T=cross
7222 else
7223 cat > conftest.$ac_ext <<EOF
7224 #line 7225 "configure"
7225 #include "confdefs.h"
7226 #include <stdio.h>
7227 #include <sys/stat.h>
7228 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7231 then
7232 samba_cv_SIZEOF_OFF_T=yes
7233 else
7234 echo "configure: failed program was:" >&5
7235 cat conftest.$ac_ext >&5
7236 rm -fr conftest*
7237 samba_cv_SIZEOF_OFF_T=no
7239 rm -fr conftest*
7244 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
7245 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
7246 cat >> confdefs.h <<\EOF
7247 #define SIZEOF_OFF_T 8
7252 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7253 echo "configure:7254: checking for off64_t" >&5
7254 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7256 else
7258 if test "$cross_compiling" = yes; then
7259 samba_cv_HAVE_OFF64_T=cross
7260 else
7261 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7265 #if defined(HAVE_UNISTD_H)
7266 #include <unistd.h>
7267 #endif
7268 #include <stdio.h>
7269 #include <sys/stat.h>
7270 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7273 then
7274 samba_cv_HAVE_OFF64_T=yes
7275 else
7276 echo "configure: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7278 rm -fr conftest*
7279 samba_cv_HAVE_OFF64_T=no
7281 rm -fr conftest*
7286 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7287 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
7288 cat >> confdefs.h <<\EOF
7289 #define HAVE_OFF64_T 1
7294 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7295 echo "configure:7296: checking for 64 bit ino_t" >&5
7296 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7298 else
7300 if test "$cross_compiling" = yes; then
7301 samba_cv_SIZEOF_INO_T=cross
7302 else
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306 #include <stdio.h>
7307 #include <sys/stat.h>
7308 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7311 then
7312 samba_cv_SIZEOF_INO_T=yes
7313 else
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7316 rm -fr conftest*
7317 samba_cv_SIZEOF_INO_T=no
7319 rm -fr conftest*
7324 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7325 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
7326 cat >> confdefs.h <<\EOF
7327 #define SIZEOF_INO_T 8
7332 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7333 echo "configure:7334: checking for ino64_t" >&5
7334 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7336 else
7338 if test "$cross_compiling" = yes; then
7339 samba_cv_HAVE_INO64_T=cross
7340 else
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7345 #if defined(HAVE_UNISTD_H)
7346 #include <unistd.h>
7347 #endif
7348 #include <stdio.h>
7349 #include <sys/stat.h>
7350 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7353 then
7354 samba_cv_HAVE_INO64_T=yes
7355 else
7356 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7358 rm -fr conftest*
7359 samba_cv_HAVE_INO64_T=no
7361 rm -fr conftest*
7366 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7367 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
7368 cat >> confdefs.h <<\EOF
7369 #define HAVE_INO64_T 1
7374 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
7375 echo "configure:7376: checking for struct dirent64" >&5
7376 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7378 else
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7384 #if defined(HAVE_UNISTD_H)
7385 #include <unistd.h>
7386 #endif
7387 #include <sys/types.h>
7388 #include <dirent.h>
7389 int main() {
7390 struct dirent64 de;
7391 ; return 0; }
7393 if { (eval echo configure:7394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7394 rm -rf conftest*
7395 samba_cv_HAVE_STRUCT_DIRENT64=yes
7396 else
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7399 rm -rf conftest*
7400 samba_cv_HAVE_STRUCT_DIRENT64=no
7402 rm -f conftest*
7405 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
7406 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
7407 cat >> confdefs.h <<\EOF
7408 #define HAVE_STRUCT_DIRENT64 1
7413 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7414 echo "configure:7415: checking for union semun" >&5
7415 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7417 else
7419 if test "$cross_compiling" = yes; then
7420 samba_cv_HAVE_UNION_SEMUN=cross
7421 else
7422 cat > conftest.$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7426 #include <sys/types.h>
7427 #include <sys/ipc.h>
7428 #include <sys/sem.h>
7429 main() { union semun ss; exit(0); }
7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7432 then
7433 samba_cv_HAVE_UNION_SEMUN=yes
7434 else
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 rm -fr conftest*
7438 samba_cv_HAVE_UNION_SEMUN=no
7440 rm -fr conftest*
7445 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7446 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
7447 cat >> confdefs.h <<\EOF
7448 #define HAVE_UNION_SEMUN 1
7453 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7454 echo "configure:7455: checking for unsigned char" >&5
7455 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7457 else
7459 if test "$cross_compiling" = yes; then
7460 samba_cv_HAVE_UNSIGNED_CHAR=cross
7461 else
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 #include <stdio.h>
7466 main() { char c; c=250; exit((c > 0)?0:1); }
7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7469 then
7470 samba_cv_HAVE_UNSIGNED_CHAR=yes
7471 else
7472 echo "configure: failed program was:" >&5
7473 cat conftest.$ac_ext >&5
7474 rm -fr conftest*
7475 samba_cv_HAVE_UNSIGNED_CHAR=no
7477 rm -fr conftest*
7482 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7483 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
7484 cat >> confdefs.h <<\EOF
7485 #define HAVE_UNSIGNED_CHAR 1
7490 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7491 echo "configure:7492: checking for sin_len in sock" >&5
7492 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7494 else
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 #include <sys/types.h>
7500 #include <sys/socket.h>
7501 #include <netinet/in.h>
7502 int main() {
7503 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7504 ; return 0; }
7506 if { (eval echo configure:7507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7507 rm -rf conftest*
7508 samba_cv_HAVE_SOCK_SIN_LEN=yes
7509 else
7510 echo "configure: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7512 rm -rf conftest*
7513 samba_cv_HAVE_SOCK_SIN_LEN=no
7515 rm -f conftest*
7518 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7519 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
7520 cat >> confdefs.h <<\EOF
7521 #define HAVE_SOCK_SIN_LEN 1
7526 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7527 echo "configure:7528: checking whether seekdir returns void" >&5
7528 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7530 else
7532 cat > conftest.$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7535 #include <sys/types.h>
7536 #include <dirent.h>
7537 void seekdir(DIR *d, long loc) { return; }
7538 int main() {
7539 return 0;
7540 ; return 0; }
7542 if { (eval echo configure:7543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7543 rm -rf conftest*
7544 samba_cv_SEEKDIR_RETURNS_VOID=yes
7545 else
7546 echo "configure: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7548 rm -rf conftest*
7549 samba_cv_SEEKDIR_RETURNS_VOID=no
7551 rm -f conftest*
7554 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7555 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7556 cat >> confdefs.h <<\EOF
7557 #define SEEKDIR_RETURNS_VOID 1
7562 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7563 echo "configure:7564: checking for __FILE__ macro" >&5
7564 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7566 else
7568 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7571 #include <stdio.h>
7572 int main() {
7573 printf("%s\n", __FILE__);
7574 ; return 0; }
7576 if { (eval echo configure:7577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7577 rm -rf conftest*
7578 samba_cv_HAVE_FILE_MACRO=yes
7579 else
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 rm -rf conftest*
7583 samba_cv_HAVE_FILE_MACRO=no
7585 rm -f conftest*
7588 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7589 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7590 cat >> confdefs.h <<\EOF
7591 #define HAVE_FILE_MACRO 1
7596 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7597 echo "configure:7598: checking for __FUNCTION__ macro" >&5
7598 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7600 else
7602 cat > conftest.$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7605 #include <stdio.h>
7606 int main() {
7607 printf("%s\n", __FUNCTION__);
7608 ; return 0; }
7610 if { (eval echo configure:7611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7611 rm -rf conftest*
7612 samba_cv_HAVE_FUNCTION_MACRO=yes
7613 else
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 rm -rf conftest*
7617 samba_cv_HAVE_FUNCTION_MACRO=no
7619 rm -f conftest*
7622 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7623 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7624 cat >> confdefs.h <<\EOF
7625 #define HAVE_FUNCTION_MACRO 1
7630 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7631 echo "configure:7632: checking if gettimeofday takes tz argument" >&5
7632 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7634 else
7636 if test "$cross_compiling" = yes; then
7637 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7638 else
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7643 #include <sys/time.h>
7644 #include <unistd.h>
7645 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7647 if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7648 then
7649 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
7650 else
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7653 rm -fr conftest*
7654 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
7656 rm -fr conftest*
7661 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7662 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
7663 cat >> confdefs.h <<\EOF
7664 #define HAVE_GETTIMEOFDAY_TZ 1
7670 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7671 echo "configure:7672: checking for broken readdir" >&5
7672 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7674 else
7676 if test "$cross_compiling" = yes; then
7677 samba_cv_HAVE_BROKEN_READDIR=cross
7678 else
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 #include <sys/types.h>
7683 #include <dirent.h>
7684 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7685 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7686 di->d_name[0] == 0) exit(0); exit(1);}
7688 if { (eval echo configure:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7689 then
7690 samba_cv_HAVE_BROKEN_READDIR=yes
7691 else
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 rm -fr conftest*
7695 samba_cv_HAVE_BROKEN_READDIR=no
7697 rm -fr conftest*
7702 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7703 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7704 cat >> confdefs.h <<\EOF
7705 #define HAVE_BROKEN_READDIR 1
7710 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7711 echo "configure:7712: checking for utimbuf" >&5
7712 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7714 else
7716 cat > conftest.$ac_ext <<EOF
7717 #line 7718 "configure"
7718 #include "confdefs.h"
7719 #include <sys/types.h>
7720 #include <utime.h>
7721 int main() {
7722 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7723 ; return 0; }
7725 if { (eval echo configure:7726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7726 rm -rf conftest*
7727 samba_cv_HAVE_UTIMBUF=yes
7728 else
7729 echo "configure: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7731 rm -rf conftest*
7732 samba_cv_HAVE_UTIMBUF=no
7734 rm -f conftest*
7737 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7738 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
7739 cat >> confdefs.h <<\EOF
7740 #define HAVE_UTIMBUF 1
7745 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7746 echo "configure:7747: checking for kernel oplock type definitions" >&5
7747 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7749 else
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 #include <sys/types.h>
7755 #include <fcntl.h>
7756 int main() {
7757 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7758 ; return 0; }
7760 if { (eval echo configure:7761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7761 rm -rf conftest*
7762 samba_cv_HAVE_KERNEL_OPLOCKS=yes
7763 else
7764 echo "configure: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7766 rm -rf conftest*
7767 samba_cv_HAVE_KERNEL_OPLOCKS=no
7769 rm -f conftest*
7772 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7773 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
7774 cat >> confdefs.h <<\EOF
7775 #define HAVE_KERNEL_OPLOCKS 1
7780 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7781 echo "configure:7782: checking for irix specific capabilities" >&5
7782 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7784 else
7786 if test "$cross_compiling" = yes; then
7787 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
7788 else
7789 cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7792 #include <sys/types.h>
7793 #include <sys/capability.h>
7794 main() {
7795 cap_t cap;
7796 if ((cap = cap_get_proc()) == NULL)
7797 exit(1);
7798 cap->cap_effective |= CAP_NETWORK_MGT;
7799 cap->cap_inheritable |= CAP_NETWORK_MGT;
7800 cap_set_proc(cap);
7801 exit(0);
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7806 then
7807 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
7808 else
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 rm -fr conftest*
7812 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
7814 rm -fr conftest*
7819 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7820 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
7821 cat >> confdefs.h <<\EOF
7822 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7828 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7829 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7832 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7833 echo "configure:7834: checking for int16 typedef included by rpc/rpc.h" >&5
7834 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7836 else
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 #include <sys/types.h>
7842 #if defined(HAVE_RPC_RPC_H)
7843 #include <rpc/rpc.h>
7844 #endif
7845 int main() {
7846 int16 testvar;
7847 ; return 0; }
7849 if { (eval echo configure:7850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7850 rm -rf conftest*
7851 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
7852 else
7853 echo "configure: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 rm -rf conftest*
7856 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
7858 rm -f conftest*
7861 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7862 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
7863 cat >> confdefs.h <<\EOF
7864 #define HAVE_INT16_FROM_RPC_RPC_H 1
7869 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7870 echo "configure:7871: checking for uint16 typedef included by rpc/rpc.h" >&5
7871 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7873 else
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 #include <sys/types.h>
7879 #if defined(HAVE_RPC_RPC_H)
7880 #include <rpc/rpc.h>
7881 #endif
7882 int main() {
7883 uint16 testvar;
7884 ; return 0; }
7886 if { (eval echo configure:7887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7887 rm -rf conftest*
7888 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
7889 else
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7892 rm -rf conftest*
7893 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
7895 rm -f conftest*
7898 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7899 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
7900 cat >> confdefs.h <<\EOF
7901 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7906 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7907 echo "configure:7908: checking for int32 typedef included by rpc/rpc.h" >&5
7908 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7910 else
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 #include <sys/types.h>
7916 #if defined(HAVE_RPC_RPC_H)
7917 #include <rpc/rpc.h>
7918 #endif
7919 int main() {
7920 int32 testvar;
7921 ; return 0; }
7923 if { (eval echo configure:7924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7924 rm -rf conftest*
7925 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
7926 else
7927 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7929 rm -rf conftest*
7930 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
7932 rm -f conftest*
7935 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7936 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
7937 cat >> confdefs.h <<\EOF
7938 #define HAVE_INT32_FROM_RPC_RPC_H 1
7943 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7944 echo "configure:7945: checking for uint32 typedef included by rpc/rpc.h" >&5
7945 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7947 else
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7952 #include <sys/types.h>
7953 #if defined(HAVE_RPC_RPC_H)
7954 #include <rpc/rpc.h>
7955 #endif
7956 int main() {
7957 uint32 testvar;
7958 ; return 0; }
7960 if { (eval echo configure:7961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7961 rm -rf conftest*
7962 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
7963 else
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 rm -rf conftest*
7967 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
7969 rm -f conftest*
7972 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
7973 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
7974 cat >> confdefs.h <<\EOF
7975 #define HAVE_UINT32_FROM_RPC_RPC_H 1
7981 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
7982 echo "configure:7983: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
7983 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 #include <sys/types.h>
7991 #ifdef HAVE_SYS_SECURITY_H
7992 #include <sys/security.h>
7993 #include <prot.h>
7994 #endif /* HAVE_SYS_SECURITY_H */
7995 #if defined(HAVE_RPC_RPC_H)
7996 #include <rpc/rpc.h>
7997 #endif
7998 int main() {
7999 int testvar;
8000 ; return 0; }
8002 if { (eval echo configure:8003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8003 rm -rf conftest*
8004 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
8005 else
8006 echo "configure: failed program was:" >&5
8007 cat conftest.$ac_ext >&5
8008 rm -rf conftest*
8009 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
8011 rm -f conftest*
8014 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
8015 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
8016 cat >> confdefs.h <<\EOF
8017 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
8022 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8023 echo "configure:8024: checking for test routines" >&5
8024 if test "$cross_compiling" = yes; then
8025 echo "configure: warning: cannot run when cross-compiling" 1>&2
8026 else
8027 cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8030 #include "${srcdir-.}/tests/trivial.c"
8032 if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8033 then
8034 echo "$ac_t""yes" 1>&6
8035 else
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8038 rm -fr conftest*
8039 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8041 rm -fr conftest*
8045 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8046 echo "configure:8047: checking for ftruncate extend" >&5
8047 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8049 else
8051 if test "$cross_compiling" = yes; then
8052 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
8053 else
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 #include "${srcdir-.}/tests/ftruncate.c"
8059 if { (eval echo configure:8060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8060 then
8061 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
8062 else
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8065 rm -fr conftest*
8066 samba_cv_HAVE_FTRUNCATE_EXTEND=no
8068 rm -fr conftest*
8073 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8074 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
8075 cat >> confdefs.h <<\EOF
8076 #define HAVE_FTRUNCATE_EXTEND 1
8081 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
8082 echo "configure:8083: checking for broken getgroups" >&5
8083 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8085 else
8087 if test "$cross_compiling" = yes; then
8088 samba_cv_HAVE_BROKEN_GETGROUPS=cross
8089 else
8090 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8093 #include "${srcdir-.}/tests/getgroups.c"
8095 if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8096 then
8097 samba_cv_HAVE_BROKEN_GETGROUPS=yes
8098 else
8099 echo "configure: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8101 rm -fr conftest*
8102 samba_cv_HAVE_BROKEN_GETGROUPS=no
8104 rm -fr conftest*
8109 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
8110 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
8111 cat >> confdefs.h <<\EOF
8112 #define HAVE_BROKEN_GETGROUPS 1
8117 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
8118 echo "configure:8119: checking whether getpass should be replaced" >&5
8119 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8121 else
8123 SAVE_CPPFLAGS="$CPPFLAGS"
8124 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8129 #define REPLACE_GETPASS 1
8130 #define NO_CONFIG_H 1
8131 #define main dont_declare_main
8132 #include "${srcdir-.}/lib/getsmbpass.c"
8133 #undef main
8135 int main() {
8137 ; return 0; }
8139 if { (eval echo configure:8140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8140 rm -rf conftest*
8141 samba_cv_REPLACE_GETPASS=yes
8142 else
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8145 rm -rf conftest*
8146 samba_cv_REPLACE_GETPASS=no
8148 rm -f conftest*
8149 CPPFLAGS="$SAVE_CPPFLAGS"
8153 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
8154 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
8155 cat >> confdefs.h <<\EOF
8156 #define REPLACE_GETPASS 1
8161 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
8162 echo "configure:8163: checking for broken inet_ntoa" >&5
8163 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8165 else
8167 if test "$cross_compiling" = yes; then
8168 samba_cv_REPLACE_INET_NTOA=cross
8169 else
8170 cat > conftest.$ac_ext <<EOF
8171 #line 8172 "configure"
8172 #include "confdefs.h"
8174 #include <stdio.h>
8175 #include <sys/types.h>
8176 #include <netinet/in.h>
8177 #ifdef HAVE_ARPA_INET_H
8178 #include <arpa/inet.h>
8179 #endif
8180 main() { struct in_addr ip; ip.s_addr = 0x12345678;
8181 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
8182 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
8183 exit(1);}
8185 if { (eval echo configure:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8186 then
8187 samba_cv_REPLACE_INET_NTOA=yes
8188 else
8189 echo "configure: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 rm -fr conftest*
8192 samba_cv_REPLACE_INET_NTOA=no
8194 rm -fr conftest*
8199 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
8200 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
8201 cat >> confdefs.h <<\EOF
8202 #define REPLACE_INET_NTOA 1
8207 echo $ac_n "checking for root""... $ac_c" 1>&6
8208 echo "configure:8209: checking for root" >&5
8209 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8211 else
8213 if test "$cross_compiling" = yes; then
8214 samba_cv_HAVE_ROOT=cross
8215 else
8216 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 main() { exit(getuid() != 0); }
8221 if { (eval echo configure:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8222 then
8223 samba_cv_HAVE_ROOT=yes
8224 else
8225 echo "configure: failed program was:" >&5
8226 cat conftest.$ac_ext >&5
8227 rm -fr conftest*
8228 samba_cv_HAVE_ROOT=no
8230 rm -fr conftest*
8235 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
8236 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
8237 cat >> confdefs.h <<\EOF
8238 #define HAVE_ROOT 1
8241 else
8242 echo "configure: warning: running as non-root will disable some tests" 1>&2
8245 netmask=no;
8246 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
8247 echo "configure:8248: checking for netmask ifconf" >&5
8248 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8250 else
8252 if test "$cross_compiling" = yes; then
8253 samba_cv_HAVE_NETMASK_IFCONF=cross
8254 else
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8259 #define HAVE_NETMASK_IFCONF 1
8260 #define AUTOCONF 1
8261 #include "confdefs.h"
8262 #include "${srcdir-.}/lib/netmask.c"
8264 if { (eval echo configure:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8265 then
8266 samba_cv_HAVE_NETMASK_IFCONF=yes
8267 else
8268 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8270 rm -fr conftest*
8271 samba_cv_HAVE_NETMASK_IFCONF=no
8273 rm -fr conftest*
8278 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
8279 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
8280 netmask=yes;cat >> confdefs.h <<\EOF
8281 #define HAVE_NETMASK_IFCONF 1
8286 if test $netmask = no; then
8287 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
8288 echo "configure:8289: checking for netmask ifreq" >&5
8289 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
8290 echo $ac_n "(cached) $ac_c" 1>&6
8291 else
8293 if test "$cross_compiling" = yes; then
8294 samba_cv_HAVE_NETMASK_IFREQ=cross
8295 else
8296 cat > conftest.$ac_ext <<EOF
8297 #line 8298 "configure"
8298 #include "confdefs.h"
8300 #define HAVE_NETMASK_IFREQ 1
8301 #define AUTOCONF 1
8302 #include "confdefs.h"
8303 #include "${srcdir-.}/lib/netmask.c"
8305 if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8306 then
8307 samba_cv_HAVE_NETMASK_IFREQ=yes
8308 else
8309 echo "configure: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 rm -fr conftest*
8312 samba_cv_HAVE_NETMASK_IFREQ=no
8314 rm -fr conftest*
8319 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
8320 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
8321 netmask=yes;cat >> confdefs.h <<\EOF
8322 #define HAVE_NETMASK_IFREQ 1
8328 if test $netmask = no; then
8329 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
8330 echo "configure:8331: checking for netmask AIX" >&5
8331 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8333 else
8335 if test "$cross_compiling" = yes; then
8336 samba_cv_HAVE_NETMASK_AIX=cross
8337 else
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8342 #define HAVE_NETMASK_AIX 1
8343 #define AUTOCONF 1
8344 #include "confdefs.h"
8345 #include "${srcdir-.}/lib/netmask.c"
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8348 then
8349 samba_cv_HAVE_NETMASK_AIX=yes
8350 else
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 rm -fr conftest*
8354 samba_cv_HAVE_NETMASK_AIX=no
8356 rm -fr conftest*
8361 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
8362 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
8363 netmask=yes;cat >> confdefs.h <<\EOF
8364 #define HAVE_NETMASK_AIX 1
8370 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
8371 echo "configure:8372: checking for trapdoor seteuid" >&5
8372 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8374 else
8376 if test "$cross_compiling" = yes; then
8378 else
8379 cat > conftest.$ac_ext <<EOF
8380 #line 8381 "configure"
8381 #include "confdefs.h"
8382 #include "${srcdir-.}/tests/trapdoor.c"
8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8385 then
8386 samba_cv_HAVE_TRAPDOOR_UID=no
8387 else
8388 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8390 rm -fr conftest*
8391 samba_cv_HAVE_TRAPDOOR_UID=yes
8393 rm -fr conftest*
8398 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
8399 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
8400 cat >> confdefs.h <<\EOF
8401 #define HAVE_TRAPDOOR_UID 1
8406 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8407 echo "configure:8408: checking for shared mmap" >&5
8408 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8409 echo $ac_n "(cached) $ac_c" 1>&6
8410 else
8412 if test "$cross_compiling" = yes; then
8413 samba_cv_HAVE_SHARED_MMAP=cross
8414 else
8415 cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 #include "${srcdir-.}/tests/shared_mmap.c"
8420 if { (eval echo configure:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8421 then
8422 samba_cv_HAVE_SHARED_MMAP=yes
8423 else
8424 echo "configure: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8426 rm -fr conftest*
8427 samba_cv_HAVE_SHARED_MMAP=no
8429 rm -fr conftest*
8434 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
8435 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
8436 cat >> confdefs.h <<\EOF
8437 #define HAVE_SHARED_MMAP 1
8440 cat >> confdefs.h <<\EOF
8441 #define HAVE_MMAP 1
8446 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
8447 echo "configure:8448: checking for ftruncate needs root" >&5
8448 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8450 else
8452 if test "$cross_compiling" = yes; then
8453 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
8454 else
8455 cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 #include "${srcdir-.}/tests/ftruncroot.c"
8460 if { (eval echo configure:8461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8461 then
8462 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
8463 else
8464 echo "configure: failed program was:" >&5
8465 cat conftest.$ac_ext >&5
8466 rm -fr conftest*
8467 samba_cv_FTRUNCATE_NEEDS_ROOT=no
8469 rm -fr conftest*
8474 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
8475 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
8476 cat >> confdefs.h <<\EOF
8477 #define FTRUNCATE_NEEDS_ROOT 1
8482 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
8483 echo "configure:8484: checking for fcntl locking" >&5
8484 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8486 else
8488 if test "$cross_compiling" = yes; then
8489 samba_cv_HAVE_FCNTL_LOCK=cross
8490 else
8491 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8494 #include "${srcdir-.}/tests/fcntl_lock.c"
8496 if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8497 then
8498 samba_cv_HAVE_FCNTL_LOCK=yes
8499 else
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8502 rm -fr conftest*
8503 samba_cv_HAVE_FCNTL_LOCK=no
8505 rm -fr conftest*
8510 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8511 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
8512 cat >> confdefs.h <<\EOF
8513 #define HAVE_FCNTL_LOCK 1
8518 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8519 echo "configure:8520: checking for 64 bit fcntl locking" >&5
8520 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8522 else
8524 if test "$cross_compiling" = yes; then
8525 samba_cv_HAVE_STRUCT_FLOCK64=cross
8526 else
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8531 #if defined(HAVE_UNISTD_H)
8532 #include <unistd.h>
8533 #endif
8534 #include <stdio.h>
8535 #include <stdlib.h>
8537 #ifdef HAVE_FCNTL_H
8538 #include <fcntl.h>
8539 #endif
8541 #ifdef HAVE_SYS_FCNTL_H
8542 #include <sys/fcntl.h>
8543 #endif
8544 main() { struct flock64 fl64;
8545 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8546 exit(0);
8547 #else
8548 exit(1);
8549 #endif
8552 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8553 then
8554 samba_cv_HAVE_STRUCT_FLOCK64=yes
8555 else
8556 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5
8558 rm -fr conftest*
8559 samba_cv_HAVE_STRUCT_FLOCK64=no
8561 rm -fr conftest*
8566 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8567 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
8568 cat >> confdefs.h <<\EOF
8569 #define HAVE_STRUCT_FLOCK64 1
8574 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8575 echo "configure:8576: checking for sysv ipc" >&5
8576 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8578 else
8580 if test "$cross_compiling" = yes; then
8581 samba_cv_HAVE_SYSV_IPC=cross
8582 else
8583 cat > conftest.$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8586 #include "${srcdir-.}/tests/sysv_ipc.c"
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8589 then
8590 samba_cv_HAVE_SYSV_IPC=yes
8591 else
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 rm -fr conftest*
8595 samba_cv_HAVE_SYSV_IPC=no
8597 rm -fr conftest*
8602 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8603 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
8604 cat >> confdefs.h <<\EOF
8605 #define HAVE_SYSV_IPC 1
8610 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
8611 echo "configure:8612: checking for a crypt that needs truncated salt" >&5
8612 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8614 else
8616 if test "$cross_compiling" = yes; then
8617 samba_cv_HAVE_TRUNCATED_SALT=cross
8618 else
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8622 #include "${srcdir-.}/tests/crypttest.c"
8624 if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8625 then
8626 samba_cv_HAVE_TRUNCATED_SALT=no
8627 else
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 rm -fr conftest*
8631 samba_cv_HAVE_TRUNCATED_SALT=yes
8633 rm -fr conftest*
8638 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
8639 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
8640 cat >> confdefs.h <<\EOF
8641 #define HAVE_TRUNCATED_SALT 1
8646 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
8647 echo "configure:8648: checking for broken nisplus include files" >&5
8648 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8650 else
8652 cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8655 #include <sys/acl.h>
8656 #if defined(HAVE_RPCSVC_NIS_H)
8657 #include <rpcsvc/nis.h>
8658 #endif
8659 int main() {
8660 return 0;
8661 ; return 0; }
8663 if { (eval echo configure:8664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8664 rm -rf conftest*
8665 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
8666 else
8667 echo "configure: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 rm -rf conftest*
8670 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
8672 rm -f conftest*
8675 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
8676 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
8677 cat >> confdefs.h <<\EOF
8678 #define BROKEN_NISPLUS_INCLUDE_FILES 1
8684 #################################################
8685 # check for smbwrapper support
8686 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8687 echo "configure:8688: checking whether to use smbwrapper" >&5
8688 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8689 if test "${with_smbwrapper+set}" = set; then
8690 withval="$with_smbwrapper"
8691 case "$withval" in
8692 yes)
8693 echo "$ac_t""yes" 1>&6
8694 cat >> confdefs.h <<\EOF
8695 #define WITH_SMBWRAPPER 1
8698 WRAP="bin/smbsh bin/smbwrapper.so"
8700 if test x$ATTEMPT_WRAP32_BUILD = x; then
8701 WRAP32=""
8702 else
8703 WRAP32=bin/smbwrapper.32.so
8706 # Conditions under which smbwrapper should not be built.
8708 if test x$PICFLAG = x; then
8709 echo No support for PIC code - disabling smbwrapper and smbsh
8710 WRAP=""
8711 WRAP32=""
8712 elif test x$ac_cv_func_syscall = xno; then
8713 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8714 WRAP=""
8715 WRAP32=""
8719 echo "$ac_t""no" 1>&6
8721 esac
8722 else
8723 echo "$ac_t""no" 1>&6
8728 #################################################
8729 # check for the AFS filesystem
8730 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8731 echo "configure:8732: checking whether to use AFS" >&5
8732 # Check whether --with-afs or --without-afs was given.
8733 if test "${with_afs+set}" = set; then
8734 withval="$with_afs"
8735 case "$withval" in
8736 yes)
8737 echo "$ac_t""yes" 1>&6
8738 cat >> confdefs.h <<\EOF
8739 #define WITH_AFS 1
8744 echo "$ac_t""no" 1>&6
8746 esac
8747 else
8748 echo "$ac_t""no" 1>&6
8754 #################################################
8755 # check for the DFS auth system
8756 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8757 echo "configure:8758: checking whether to use DFS auth" >&5
8758 # Check whether --with-dfs or --without-dfs was given.
8759 if test "${with_dfs+set}" = set; then
8760 withval="$with_dfs"
8761 case "$withval" in
8762 yes)
8763 echo "$ac_t""yes" 1>&6
8764 cat >> confdefs.h <<\EOF
8765 #define WITH_DFS 1
8770 echo "$ac_t""no" 1>&6
8772 esac
8773 else
8774 echo "$ac_t""no" 1>&6
8779 #################################################
8780 # check for Kerberos IV auth system
8781 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8782 echo "configure:8783: checking whether to use Kerberos IV" >&5
8783 # Check whether --with-krb4 or --without-krb4 was given.
8784 if test "${with_krb4+set}" = set; then
8785 withval="$with_krb4"
8786 echo "$ac_t""yes" 1>&6
8787 cat >> confdefs.h <<\EOF
8788 #define KRB4_AUTH 1
8791 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8792 echo "configure:8793: checking for dn_expand in -lresolv" >&5
8793 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8795 echo $ac_n "(cached) $ac_c" 1>&6
8796 else
8797 ac_save_LIBS="$LIBS"
8798 LIBS="-lresolv $LIBS"
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8805 char dn_expand();
8807 int main() {
8808 dn_expand()
8809 ; return 0; }
8811 if { (eval echo configure:8812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8812 rm -rf conftest*
8813 eval "ac_cv_lib_$ac_lib_var=yes"
8814 else
8815 echo "configure: failed program was:" >&5
8816 cat conftest.$ac_ext >&5
8817 rm -rf conftest*
8818 eval "ac_cv_lib_$ac_lib_var=no"
8820 rm -f conftest*
8821 LIBS="$ac_save_LIBS"
8824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8825 echo "$ac_t""yes" 1>&6
8826 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8828 cat >> confdefs.h <<EOF
8829 #define $ac_tr_lib 1
8832 LIBS="-lresolv $LIBS"
8834 else
8835 echo "$ac_t""no" 1>&6
8838 LIBS="$LIBS -lkrb -ldes"
8839 CFLAGS="$CFLAGS -I$withval/include"
8840 LDFLAGS="$LDFLAGS -L$withval/lib"
8841 else
8842 echo "$ac_t""no" 1>&6
8847 #################################################
8848 # check for Kerberos 5 auth system
8849 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
8850 echo "configure:8851: checking whether to use Kerberos 5" >&5
8851 # Check whether --with-krb5 or --without-krb5 was given.
8852 if test "${with_krb5+set}" = set; then
8853 withval="$with_krb5"
8854 echo "$ac_t""yes" 1>&6
8855 cat >> confdefs.h <<\EOF
8856 #define KRB5_AUTH 1
8859 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
8860 CFLAGS="$CFLAGS -I$withval/include"
8861 LDFLAGS="$LDFLAGS -L$withval/lib"
8862 else
8863 echo "$ac_t""no" 1>&6
8868 #################################################
8869 # check for automount support
8870 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8871 echo "configure:8872: checking whether to use AUTOMOUNT" >&5
8872 # Check whether --with-automount or --without-automount was given.
8873 if test "${with_automount+set}" = set; then
8874 withval="$with_automount"
8875 case "$withval" in
8876 yes)
8877 echo "$ac_t""yes" 1>&6
8878 cat >> confdefs.h <<\EOF
8879 #define WITH_AUTOMOUNT 1
8884 echo "$ac_t""no" 1>&6
8886 esac
8887 else
8888 echo "$ac_t""no" 1>&6
8893 #################################################
8894 # check for smbmount support
8895 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8896 echo "configure:8897: checking whether to use SMBMOUNT" >&5
8897 # Check whether --with-smbmount or --without-smbmount was given.
8898 if test "${with_smbmount+set}" = set; then
8899 withval="$with_smbmount"
8900 case "$withval" in
8901 yes)
8902 echo "$ac_t""yes" 1>&6
8903 cat >> confdefs.h <<\EOF
8904 #define WITH_SMBMOUNT 1
8907 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
8910 echo "$ac_t""no" 1>&6
8911 MPROGS=
8913 esac
8914 else
8915 echo "$ac_t""no" 1>&6
8916 MPROGS=
8922 #################################################
8923 # check for a PAM password database
8924 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
8925 echo "configure:8926: checking whether to use PAM password database" >&5
8926 # Check whether --with-pam or --without-pam was given.
8927 if test "${with_pam+set}" = set; then
8928 withval="$with_pam"
8929 case "$withval" in
8930 yes)
8931 echo "$ac_t""yes" 1>&6
8932 cat >> confdefs.h <<\EOF
8933 #define WITH_PAM 1
8936 LIBS="$LIBS -lpam"
8939 echo "$ac_t""no" 1>&6
8941 esac
8942 else
8943 echo "$ac_t""no" 1>&6
8949 #################################################
8950 # check for a LDAP password database
8951 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8952 echo "configure:8953: checking whether to use LDAP password database" >&5
8953 # Check whether --with-ldap or --without-ldap was given.
8954 if test "${with_ldap+set}" = set; then
8955 withval="$with_ldap"
8956 case "$withval" in
8957 yes)
8958 echo "$ac_t""yes" 1>&6
8959 cat >> confdefs.h <<\EOF
8960 #define WITH_LDAP 1
8965 echo "$ac_t""no" 1>&6
8967 esac
8968 else
8969 echo "$ac_t""no" 1>&6
8974 #################################################
8975 # check for a NISPLUS password database
8976 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
8977 echo "configure:8978: checking whether to use NISPLUS password database" >&5
8978 # Check whether --with-nisplus or --without-nisplus was given.
8979 if test "${with_nisplus+set}" = set; then
8980 withval="$with_nisplus"
8981 case "$withval" in
8982 yes)
8983 echo "$ac_t""yes" 1>&6
8984 cat >> confdefs.h <<\EOF
8985 #define WITH_NISPLUS 1
8990 echo "$ac_t""no" 1>&6
8992 esac
8993 else
8994 echo "$ac_t""no" 1>&6
8999 #################################################
9000 # check for a NISPLUS_HOME support
9001 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
9002 echo "configure:9003: checking whether to use NISPLUS_HOME" >&5
9003 # Check whether --with-nisplus-home or --without-nisplus-home was given.
9004 if test "${with_nisplus_home+set}" = set; then
9005 withval="$with_nisplus_home"
9006 case "$withval" in
9007 yes)
9008 echo "$ac_t""yes" 1>&6
9009 cat >> confdefs.h <<\EOF
9010 #define WITH_NISPLUS_HOME 1
9015 echo "$ac_t""no" 1>&6
9017 esac
9018 else
9019 echo "$ac_t""no" 1>&6
9024 #################################################
9025 # check for the secure socket layer
9026 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
9027 echo "configure:9028: checking whether to use SSL" >&5
9028 # Check whether --with-ssl or --without-ssl was given.
9029 if test "${with_ssl+set}" = set; then
9030 withval="$with_ssl"
9031 case "$withval" in
9032 yes)
9033 echo "$ac_t""yes" 1>&6
9034 cat >> confdefs.h <<\EOF
9035 #define WITH_SSL 1
9038 withval="/usr/local/ssl" # default
9040 if test "${with_sslinc+set}" = set; then
9042 withval="$with_sslinc"
9043 case "$withval" in
9044 yes|no)
9045 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
9046 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
9047 LIBS="-lssl -lcrypto $LIBS"
9048 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
9051 CFLAGS="-I${withval}/include $CFLAGS"
9052 LIBS="-lssl -l crypto $LIBS"
9053 LDFLAGS="-L${withval}/lib $LDFLAGS"
9055 esac
9057 else
9059 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
9060 LIBS="-lssl -lcrypto $LIBS"
9061 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
9065 if test ! -d ${withval}; then
9066 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
9067 exit 1
9070 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
9074 echo "$ac_t""no" 1>&6
9076 esac
9077 else
9078 echo "$ac_t""no" 1>&6
9083 #################################################
9084 # check for experimental mmap support
9085 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
9086 echo "configure:9087: checking whether to use MMAP" >&5
9087 # Check whether --with-mmap or --without-mmap was given.
9088 if test "${with_mmap+set}" = set; then
9089 withval="$with_mmap"
9090 case "$withval" in
9091 yes)
9092 echo "$ac_t""yes" 1>&6
9093 cat >> confdefs.h <<\EOF
9094 #define WITH_MMAP 1
9099 echo "$ac_t""no" 1>&6
9101 esac
9102 else
9103 echo "$ac_t""no" 1>&6
9108 #################################################
9109 # check for syslog logging
9110 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
9111 echo "configure:9112: checking whether to use syslog logging" >&5
9112 # Check whether --with-syslog or --without-syslog was given.
9113 if test "${with_syslog+set}" = set; then
9114 withval="$with_syslog"
9115 case "$withval" in
9116 yes)
9117 echo "$ac_t""yes" 1>&6
9118 cat >> confdefs.h <<\EOF
9119 #define WITH_SYSLOG 1
9124 echo "$ac_t""no" 1>&6
9126 esac
9127 else
9128 echo "$ac_t""no" 1>&6
9133 #################################################
9134 # check for experimental netatalk resource fork support
9135 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
9136 echo "configure:9137: checking whether to support netatalk" >&5
9137 # Check whether --with-netatalk or --without-netatalk was given.
9138 if test "${with_netatalk+set}" = set; then
9139 withval="$with_netatalk"
9140 case "$withval" in
9141 yes)
9142 echo "$ac_t""yes" 1>&6
9143 cat >> confdefs.h <<\EOF
9144 #define WITH_NETATALK 1
9149 echo "$ac_t""no" 1>&6
9151 esac
9152 else
9153 echo "$ac_t""no" 1>&6
9158 #################################################
9159 # check for experimental disk-quotas support
9160 QUOTAOBJS=noquotas.o
9162 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
9163 echo "configure:9164: checking whether to support disk-quotas" >&5
9164 # Check whether --with-quotas or --without-quotas was given.
9165 if test "${with_quotas+set}" = set; then
9166 withval="$with_quotas"
9167 case "$withval" in
9168 yes)
9169 echo "$ac_t""yes" 1>&6
9170 QUOTAOBJS=quotas.o
9173 echo "$ac_t""no" 1>&6
9175 esac
9176 else
9177 echo "$ac_t""no" 1>&6
9183 #################################################
9184 # set private directory location
9185 # Check whether --with-privatedir or --without-privatedir was given.
9186 if test "${with_privatedir+set}" = set; then
9187 withval="$with_privatedir"
9188 case "$withval" in
9189 yes|no)
9191 # Just in case anybody calls it without argument
9193 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
9194 privatedir='${prefix}/private'
9197 privatedir="$withval"
9199 esac
9201 else
9202 privatedir='${prefix}/private'
9208 #################################################
9209 # set lock directory location
9210 # Check whether --with-lockdir or --without-lockdir was given.
9211 if test "${with_lockdir+set}" = set; then
9212 withval="$with_lockdir"
9213 case "$withval" in
9214 yes|no)
9216 # Just in case anybody calls it without argument
9218 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
9219 lockdir='$(VARDIR)/locks'
9222 lockdir="$withval"
9224 esac
9226 else
9227 lockdir='$(VARDIR)/locks'
9233 #################################################
9234 # set SWAT directory location
9235 # Check whether --with-swatdir or --without-swatdir was given.
9236 if test "${with_swatdir+set}" = set; then
9237 withval="$with_swatdir"
9238 case "$withval" in
9239 yes|no)
9241 # Just in case anybody does it
9243 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
9244 swatdir='${prefix}/swat'
9247 swatdir="$withval"
9249 esac
9251 else
9252 swatdir='${prefix}/swat'
9258 #################################################
9259 # these tests are taken from the GNU fileutils package
9260 echo "checking how to get filesystem space usage" 1>&6
9261 echo "configure:9262: checking how to get filesystem space usage" >&5
9262 space=no
9264 # Test for statvfs64.
9265 if test $space = no; then
9266 # SVR4
9267 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
9268 echo "configure:9269: checking statvfs64 function (SVR4)" >&5
9269 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
9270 echo $ac_n "(cached) $ac_c" 1>&6
9271 else
9272 if test "$cross_compiling" = yes; then
9273 fu_cv_sys_stat_statvfs64=cross
9274 else
9275 cat > conftest.$ac_ext <<EOF
9276 #line 9277 "configure"
9277 #include "confdefs.h"
9279 #if defined(HAVE_UNISTD_H)
9280 #include <unistd.h>
9281 #endif
9282 #include <sys/types.h>
9283 #include <sys/statvfs.h>
9284 main ()
9286 struct statvfs64 fsd;
9287 exit (statvfs64 (".", &fsd));
9290 if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9291 then
9292 fu_cv_sys_stat_statvfs64=yes
9293 else
9294 echo "configure: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9296 rm -fr conftest*
9297 fu_cv_sys_stat_statvfs64=no
9299 rm -fr conftest*
9304 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
9305 if test $fu_cv_sys_stat_statvfs64 = yes; then
9306 space=yes
9307 cat >> confdefs.h <<\EOF
9308 #define STAT_STATVFS64 1
9314 # Perform only the link test since it seems there are no variants of the
9315 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
9316 # because that got a false positive on SCO OSR5. Adding the declaration
9317 # of a `struct statvfs' causes this test to fail (as it should) on such
9318 # systems. That system is reported to work fine with STAT_STATFS4 which
9319 # is what it gets when this test fails.
9320 if test $space = no; then
9321 # SVR4
9322 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
9323 echo "configure:9324: checking statvfs function (SVR4)" >&5
9324 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326 else
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 #include <sys/types.h>
9331 #include <sys/statvfs.h>
9332 int main() {
9333 struct statvfs fsd; statvfs (0, &fsd);
9334 ; return 0; }
9336 if { (eval echo configure:9337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9337 rm -rf conftest*
9338 fu_cv_sys_stat_statvfs=yes
9339 else
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9342 rm -rf conftest*
9343 fu_cv_sys_stat_statvfs=no
9345 rm -f conftest*
9348 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
9349 if test $fu_cv_sys_stat_statvfs = yes; then
9350 space=yes
9351 cat >> confdefs.h <<\EOF
9352 #define STAT_STATVFS 1
9358 if test $space = no; then
9359 # DEC Alpha running OSF/1
9360 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
9361 echo "configure:9362: checking for 3-argument statfs function (DEC OSF/1)" >&5
9362 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9364 else
9365 if test "$cross_compiling" = yes; then
9366 fu_cv_sys_stat_statfs3_osf1=no
9367 else
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9372 #include <sys/param.h>
9373 #include <sys/types.h>
9374 #include <sys/mount.h>
9375 main ()
9377 struct statfs fsd;
9378 fsd.f_fsize = 0;
9379 exit (statfs (".", &fsd, sizeof (struct statfs)));
9382 if { (eval echo configure:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9383 then
9384 fu_cv_sys_stat_statfs3_osf1=yes
9385 else
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9388 rm -fr conftest*
9389 fu_cv_sys_stat_statfs3_osf1=no
9391 rm -fr conftest*
9396 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
9397 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9398 space=yes
9399 cat >> confdefs.h <<\EOF
9400 #define STAT_STATFS3_OSF1 1
9406 if test $space = no; then
9407 # AIX
9408 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
9409 echo "configure:9410: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9410 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9412 else
9413 if test "$cross_compiling" = yes; then
9414 fu_cv_sys_stat_statfs2_bsize=no
9415 else
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9420 #ifdef HAVE_SYS_PARAM_H
9421 #include <sys/param.h>
9422 #endif
9423 #ifdef HAVE_SYS_MOUNT_H
9424 #include <sys/mount.h>
9425 #endif
9426 #ifdef HAVE_SYS_VFS_H
9427 #include <sys/vfs.h>
9428 #endif
9429 main ()
9431 struct statfs fsd;
9432 fsd.f_bsize = 0;
9433 exit (statfs (".", &fsd));
9436 if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9437 then
9438 fu_cv_sys_stat_statfs2_bsize=yes
9439 else
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9442 rm -fr conftest*
9443 fu_cv_sys_stat_statfs2_bsize=no
9445 rm -fr conftest*
9450 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
9451 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9452 space=yes
9453 cat >> confdefs.h <<\EOF
9454 #define STAT_STATFS2_BSIZE 1
9460 if test $space = no; then
9461 # SVR3
9462 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
9463 echo "configure:9464: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9464 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9466 else
9467 if test "$cross_compiling" = yes; then
9468 fu_cv_sys_stat_statfs4=no
9469 else
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 #include <sys/types.h>
9474 #include <sys/statfs.h>
9475 main ()
9477 struct statfs fsd;
9478 exit (statfs (".", &fsd, sizeof fsd, 0));
9481 if { (eval echo configure:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9482 then
9483 fu_cv_sys_stat_statfs4=yes
9484 else
9485 echo "configure: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9487 rm -fr conftest*
9488 fu_cv_sys_stat_statfs4=no
9490 rm -fr conftest*
9495 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
9496 if test $fu_cv_sys_stat_statfs4 = yes; then
9497 space=yes
9498 cat >> confdefs.h <<\EOF
9499 #define STAT_STATFS4 1
9505 if test $space = no; then
9506 # 4.4BSD and NetBSD
9507 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
9508 echo "configure:9509: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9509 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9511 else
9512 if test "$cross_compiling" = yes; then
9513 fu_cv_sys_stat_statfs2_fsize=no
9514 else
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 #include <sys/types.h>
9519 #ifdef HAVE_SYS_PARAM_H
9520 #include <sys/param.h>
9521 #endif
9522 #ifdef HAVE_SYS_MOUNT_H
9523 #include <sys/mount.h>
9524 #endif
9525 main ()
9527 struct statfs fsd;
9528 fsd.f_fsize = 0;
9529 exit (statfs (".", &fsd));
9532 if { (eval echo configure:9533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9533 then
9534 fu_cv_sys_stat_statfs2_fsize=yes
9535 else
9536 echo "configure: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9538 rm -fr conftest*
9539 fu_cv_sys_stat_statfs2_fsize=no
9541 rm -fr conftest*
9546 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
9547 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9548 space=yes
9549 cat >> confdefs.h <<\EOF
9550 #define STAT_STATFS2_FSIZE 1
9556 if test $space = no; then
9557 # Ultrix
9558 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
9559 echo "configure:9560: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9560 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
9561 echo $ac_n "(cached) $ac_c" 1>&6
9562 else
9563 if test "$cross_compiling" = yes; then
9564 fu_cv_sys_stat_fs_data=no
9565 else
9566 cat > conftest.$ac_ext <<EOF
9567 #line 9568 "configure"
9568 #include "confdefs.h"
9569 #include <sys/types.h>
9570 #ifdef HAVE_SYS_PARAM_H
9571 #include <sys/param.h>
9572 #endif
9573 #ifdef HAVE_SYS_MOUNT_H
9574 #include <sys/mount.h>
9575 #endif
9576 #ifdef HAVE_SYS_FS_TYPES_H
9577 #include <sys/fs_types.h>
9578 #endif
9579 main ()
9581 struct fs_data fsd;
9582 /* Ultrix's statfs returns 1 for success,
9583 0 for not mounted, -1 for failure. */
9584 exit (statfs (".", &fsd) != 1);
9587 if { (eval echo configure:9588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9588 then
9589 fu_cv_sys_stat_fs_data=yes
9590 else
9591 echo "configure: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9593 rm -fr conftest*
9594 fu_cv_sys_stat_fs_data=no
9596 rm -fr conftest*
9601 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
9602 if test $fu_cv_sys_stat_fs_data = yes; then
9603 space=yes
9604 cat >> confdefs.h <<\EOF
9605 #define STAT_STATFS2_FS_DATA 1
9612 # As a gating factor for large file support, in order to
9613 # use <4GB files we must have the following minimal support
9614 # available.
9615 # long long, and a 64 bit off_t or off64_t.
9616 # If we don't have all of these then disable large
9617 # file support.
9619 echo "checking if large file support can be enabled"
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9624 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
9625 #include <sys/types.h>
9626 #else
9627 __COMPILE_ERROR_
9628 #endif
9630 int main() {
9631 int i
9632 ; return 0; }
9634 if { (eval echo configure:9635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9635 rm -rf conftest*
9636 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
9637 else
9638 echo "configure: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9640 rm -rf conftest*
9641 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
9643 rm -f conftest*
9644 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
9645 echo "yes"
9646 cat >> confdefs.h <<\EOF
9647 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
9650 else
9651 echo "no"
9654 echo "checking configure summary"
9655 if test "$cross_compiling" = yes; then
9657 else
9658 cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661 #include "${srcdir-.}/tests/summary.c"
9663 if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9664 then
9665 echo "configure OK";
9666 else
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9669 rm -fr conftest*
9670 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
9672 rm -fr conftest*
9676 builddir=`pwd`
9679 trap '' 1 2 15
9680 cat > confcache <<\EOF
9681 # This file is a shell script that caches the results of configure
9682 # tests run on this system so they can be shared between configure
9683 # scripts and configure runs. It is not useful on other systems.
9684 # If it contains results you don't want to keep, you may remove or edit it.
9686 # By default, configure uses ./config.cache as the cache file,
9687 # creating it if it does not exist already. You can give configure
9688 # the --cache-file=FILE option to use a different cache file; that is
9689 # what configure does when it calls configure scripts in
9690 # subdirectories, so they share the cache.
9691 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9692 # config.status only pays attention to the cache file if you give it the
9693 # --recheck option to rerun configure.
9696 # The following way of writing the cache mishandles newlines in values,
9697 # but we know of no workaround that is simple, portable, and efficient.
9698 # So, don't put newlines in cache variables' values.
9699 # Ultrix sh set writes to stderr and can't be redirected directly,
9700 # and sets the high bit in the cache file unless we assign to the vars.
9701 (set) 2>&1 |
9702 case `(ac_space=' '; set) 2>&1` in
9703 *ac_space=\ *)
9704 # `set' does not quote correctly, so add quotes (double-quote substitution
9705 # turns \\\\ into \\, and sed turns \\ into \).
9706 sed -n \
9707 -e "s/'/'\\\\''/g" \
9708 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9711 # `set' quotes correctly as required by POSIX, so do not add quotes.
9712 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9714 esac >> confcache
9715 if cmp -s $cache_file confcache; then
9717 else
9718 if test -w $cache_file; then
9719 echo "updating cache $cache_file"
9720 cat confcache > $cache_file
9721 else
9722 echo "not updating unwritable cache $cache_file"
9725 rm -f confcache
9727 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9730 # Let make expand exec_prefix.
9731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9733 # Any assignment to VPATH causes Sun make to only execute
9734 # the first set of double-colon rules, so remove it if not needed.
9735 # If there is a colon in the path, we need to keep it.
9736 if test "x$srcdir" = x.; then
9737 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9740 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9742 DEFS=-DHAVE_CONFIG_H
9744 # Without the "./", some shells look in PATH for config.status.
9745 : ${CONFIG_STATUS=./config.status}
9747 echo creating $CONFIG_STATUS
9748 rm -f $CONFIG_STATUS
9749 cat > $CONFIG_STATUS <<EOF
9750 #! /bin/sh
9751 # Generated automatically by configure.
9752 # Run this file to recreate the current configuration.
9753 # This directory was configured as follows,
9754 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9756 # $0 $ac_configure_args
9758 # Compiler output produced by configure, useful for debugging
9759 # configure, is in ./config.log if it exists.
9761 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9762 for ac_option
9764 case "\$ac_option" in
9765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9766 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9767 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9768 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9769 echo "$CONFIG_STATUS generated by autoconf version 2.12"
9770 exit 0 ;;
9771 -help | --help | --hel | --he | --h)
9772 echo "\$ac_cs_usage"; exit 0 ;;
9773 *) echo "\$ac_cs_usage"; exit 1 ;;
9774 esac
9775 done
9777 ac_given_srcdir=$srcdir
9778 ac_given_INSTALL="$INSTALL"
9780 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9782 cat >> $CONFIG_STATUS <<EOF
9784 # Protect against being on the right side of a sed subst in config.status.
9785 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9786 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9787 $ac_vpsub
9788 $extrasub
9789 s%@CFLAGS@%$CFLAGS%g
9790 s%@CPPFLAGS@%$CPPFLAGS%g
9791 s%@CXXFLAGS@%$CXXFLAGS%g
9792 s%@DEFS@%$DEFS%g
9793 s%@LDFLAGS@%$LDFLAGS%g
9794 s%@LIBS@%$LIBS%g
9795 s%@exec_prefix@%$exec_prefix%g
9796 s%@prefix@%$prefix%g
9797 s%@program_transform_name@%$program_transform_name%g
9798 s%@bindir@%$bindir%g
9799 s%@sbindir@%$sbindir%g
9800 s%@libexecdir@%$libexecdir%g
9801 s%@datadir@%$datadir%g
9802 s%@sysconfdir@%$sysconfdir%g
9803 s%@sharedstatedir@%$sharedstatedir%g
9804 s%@localstatedir@%$localstatedir%g
9805 s%@libdir@%$libdir%g
9806 s%@includedir@%$includedir%g
9807 s%@oldincludedir@%$oldincludedir%g
9808 s%@infodir@%$infodir%g
9809 s%@mandir@%$mandir%g
9810 s%@SHELL@%$SHELL%g
9811 s%@RUNPROG@%$RUNPROG%g
9812 s%@MPROGS@%$MPROGS%g
9813 s%@LDSHFLAGS@%$LDSHFLAGS%g
9814 s%@HOST_OS@%$HOST_OS%g
9815 s%@WRAP@%$WRAP%g
9816 s%@WRAP32@%$WRAP32%g
9817 s%@PICFLAG@%$PICFLAG%g
9818 s%@CC@%$CC%g
9819 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9820 s%@INSTALL_DATA@%$INSTALL_DATA%g
9821 s%@AWK@%$AWK%g
9822 s%@BROKEN_CC@%$BROKEN_CC%g
9823 s%@host@%$host%g
9824 s%@host_alias@%$host_alias%g
9825 s%@host_cpu@%$host_cpu%g
9826 s%@host_vendor@%$host_vendor%g
9827 s%@host_os@%$host_os%g
9828 s%@target@%$target%g
9829 s%@target_alias@%$target_alias%g
9830 s%@target_cpu@%$target_cpu%g
9831 s%@target_vendor@%$target_vendor%g
9832 s%@target_os@%$target_os%g
9833 s%@build@%$build%g
9834 s%@build_alias@%$build_alias%g
9835 s%@build_cpu@%$build_cpu%g
9836 s%@build_vendor@%$build_vendor%g
9837 s%@build_os@%$build_os%g
9838 s%@MAINT@%$MAINT%g
9839 s%@AUTOCONF@%$AUTOCONF%g
9840 s%@AUTOHEADER@%$AUTOHEADER%g
9841 s%@CPP@%$CPP%g
9842 s%@LIBOBJS@%$LIBOBJS%g
9843 s%@ROFF@%$ROFF%g
9844 s%@QUOTAOBJS@%$QUOTAOBJS%g
9845 s%@privatedir@%$privatedir%g
9846 s%@lockdir@%$lockdir%g
9847 s%@swatdir@%$swatdir%g
9848 s%@builddir@%$builddir%g
9850 CEOF
9853 cat >> $CONFIG_STATUS <<\EOF
9855 # Split the substitutions into bite-sized pieces for seds with
9856 # small command number limits, like on Digital OSF/1 and HP-UX.
9857 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9858 ac_file=1 # Number of current file.
9859 ac_beg=1 # First line for current file.
9860 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9861 ac_more_lines=:
9862 ac_sed_cmds=""
9863 while $ac_more_lines; do
9864 if test $ac_beg -gt 1; then
9865 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9866 else
9867 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9869 if test ! -s conftest.s$ac_file; then
9870 ac_more_lines=false
9871 rm -f conftest.s$ac_file
9872 else
9873 if test -z "$ac_sed_cmds"; then
9874 ac_sed_cmds="sed -f conftest.s$ac_file"
9875 else
9876 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9878 ac_file=`expr $ac_file + 1`
9879 ac_beg=$ac_end
9880 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9882 done
9883 if test -z "$ac_sed_cmds"; then
9884 ac_sed_cmds=cat
9888 cat >> $CONFIG_STATUS <<EOF
9890 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
9892 cat >> $CONFIG_STATUS <<\EOF
9893 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9894 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9895 case "$ac_file" in
9896 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9897 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9898 *) ac_file_in="${ac_file}.in" ;;
9899 esac
9901 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9903 # Remove last slash and all that follows it. Not all systems have dirname.
9904 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9905 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9906 # The file is in a subdirectory.
9907 test ! -d "$ac_dir" && mkdir "$ac_dir"
9908 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9909 # A "../" for each directory in $ac_dir_suffix.
9910 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9911 else
9912 ac_dir_suffix= ac_dots=
9915 case "$ac_given_srcdir" in
9916 .) srcdir=.
9917 if test -z "$ac_dots"; then top_srcdir=.
9918 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9919 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9920 *) # Relative path.
9921 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9922 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9923 esac
9925 case "$ac_given_INSTALL" in
9926 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9927 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9928 esac
9930 echo creating "$ac_file"
9931 rm -f "$ac_file"
9932 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9933 case "$ac_file" in
9934 *Makefile*) ac_comsub="1i\\
9935 # $configure_input" ;;
9936 *) ac_comsub= ;;
9937 esac
9939 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9940 sed -e "$ac_comsub
9941 s%@configure_input@%$configure_input%g
9942 s%@srcdir@%$srcdir%g
9943 s%@top_srcdir@%$top_srcdir%g
9944 s%@INSTALL@%$INSTALL%g
9945 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9946 fi; done
9947 rm -f conftest.s*
9949 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9950 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9952 # ac_d sets the value in "#define NAME VALUE" lines.
9953 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9954 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9955 ac_dC='\3'
9956 ac_dD='%g'
9957 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9958 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9959 ac_uB='\([ ]\)%\1#\2define\3'
9960 ac_uC=' '
9961 ac_uD='\4%g'
9962 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9963 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9964 ac_eB='$%\1#\2define\3'
9965 ac_eC=' '
9966 ac_eD='%g'
9968 if test "${CONFIG_HEADERS+set}" != set; then
9970 cat >> $CONFIG_STATUS <<EOF
9971 CONFIG_HEADERS="include/config.h"
9973 cat >> $CONFIG_STATUS <<\EOF
9975 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9977 case "$ac_file" in
9978 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9979 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9980 *) ac_file_in="${ac_file}.in" ;;
9981 esac
9983 echo creating $ac_file
9985 rm -f conftest.frag conftest.in conftest.out
9986 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9987 cat $ac_file_inputs > conftest.in
9991 # Transform confdefs.h into a sed script conftest.vals that substitutes
9992 # the proper values into config.h.in to produce config.h. And first:
9993 # Protect against being on the right side of a sed subst in config.status.
9994 # Protect against being in an unquoted here document in config.status.
9995 rm -f conftest.vals
9996 cat > conftest.hdr <<\EOF
9997 s/[\\&%]/\\&/g
9998 s%[\\$`]%\\&%g
9999 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10000 s%ac_d%ac_u%gp
10001 s%ac_u%ac_e%gp
10003 sed -n -f conftest.hdr confdefs.h > conftest.vals
10004 rm -f conftest.hdr
10006 # This sed command replaces #undef with comments. This is necessary, for
10007 # example, in the case of _POSIX_SOURCE, which is predefined and required
10008 # on some systems where configure will not decide to define it.
10009 cat >> conftest.vals <<\EOF
10010 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10013 # Break up conftest.vals because some shells have a limit on
10014 # the size of here documents, and old seds have small limits too.
10016 rm -f conftest.tail
10017 while :
10019 ac_lines=`grep -c . conftest.vals`
10020 # grep -c gives empty output for an empty file on some AIX systems.
10021 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10022 # Write a limited-size here document to conftest.frag.
10023 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10024 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10025 echo 'CEOF
10026 sed -f conftest.frag conftest.in > conftest.out
10027 rm -f conftest.in
10028 mv conftest.out conftest.in
10029 ' >> $CONFIG_STATUS
10030 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10031 rm -f conftest.vals
10032 mv conftest.tail conftest.vals
10033 done
10034 rm -f conftest.vals
10036 cat >> $CONFIG_STATUS <<\EOF
10037 rm -f conftest.frag conftest.h
10038 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10039 cat conftest.in >> conftest.h
10040 rm -f conftest.in
10041 if cmp -s $ac_file conftest.h 2>/dev/null; then
10042 echo "$ac_file is unchanged"
10043 rm -f conftest.h
10044 else
10045 # Remove last slash and all that follows it. Not all systems have dirname.
10046 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10047 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10048 # The file is in a subdirectory.
10049 test ! -d "$ac_dir" && mkdir "$ac_dir"
10051 rm -f $ac_file
10052 mv conftest.h $ac_file
10054 fi; done
10057 cat >> $CONFIG_STATUS <<EOF
10060 cat >> $CONFIG_STATUS <<\EOF
10062 exit 0
10064 chmod +x $CONFIG_STATUS
10065 rm -fr confdefs* $ac_clean_files
10066 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1