Added lib/util_list.[c|o] to Makefile.in
[Samba.git] / source / configure
blobc1412b7faccf5a63ecbf5c3df63c72a3837fa73f
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 ac_help="$ac_help
18 --enable-static[=PKGS] build static libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 ac_help="$ac_help
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 ac_help="$ac_help
24 --disable-libtool-lock avoid locking (might break parallel builds)"
25 ac_help="$ac_help
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
28 ac_help="$ac_help
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
31 ac_help="$ac_help
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
34 ac_help="$ac_help
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
37 ac_help="$ac_help
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
40 ac_help="$ac_help
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
43 ac_help="$ac_help
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
46 ac_help="$ac_help
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
49 ac_help="$ac_help
50 --with-ldap Include LDAP support
51 --without-ldap Don't include LDAP support (default)"
52 ac_help="$ac_help
53 --with-nisplus Include NISPLUS password database support
54 --without-nisplus Don't include NISPLUS password database support (default)"
55 ac_help="$ac_help
56 --with-nisplus-home Include NISPLUS_HOME support
57 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
58 ac_help="$ac_help
59 --with-ssl Include SSL support
60 --without-ssl Don't include SSL support (default)
61 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
62 ac_help="$ac_help
63 --with-syslog Include experimental SYSLOG support
64 --without-syslog Don't include SYSLOG support (default)"
65 ac_help="$ac_help
66 --with-profile Include profile support
67 --without-profile Don't include profile support (default)"
68 ac_help="$ac_help
69 --with-netatalk Include experimental Netatalk support
70 --without-netatalk Don't include experimental Netatalk support (default)"
71 ac_help="$ac_help
72 --with-quotas Include experimental disk-quota support
73 --without-quotas Don't include experimental disk-quota support (default)"
74 ac_help="$ac_help
75 --with-utmp Include experimental utmp accounting
76 --without-utmp Don't include experimental utmp accounting (default)"
77 ac_help="$ac_help
78 --with-msdfs Include MS Dfs support
79 --without-msdfs Don't include MS Dfs support (default)"
80 ac_help="$ac_help
81 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
82 ac_help="$ac_help
83 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
84 ac_help="$ac_help
85 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
90 build=NONE
91 cache_file=./config.cache
92 exec_prefix=NONE
93 host=NONE
94 no_create=
95 nonopt=NONE
96 no_recursion=
97 prefix=NONE
98 program_prefix=NONE
99 program_suffix=NONE
100 program_transform_name=s,x,x,
101 silent=
102 site=
103 srcdir=
104 target=NONE
105 verbose=
106 x_includes=NONE
107 x_libraries=NONE
108 bindir='${exec_prefix}/bin'
109 sbindir='${exec_prefix}/sbin'
110 libexecdir='${exec_prefix}/libexec'
111 datadir='${prefix}/share'
112 sysconfdir='${prefix}/etc'
113 sharedstatedir='${prefix}/com'
114 localstatedir='${prefix}/var'
115 libdir='${exec_prefix}/lib'
116 includedir='${prefix}/include'
117 oldincludedir='/usr/include'
118 infodir='${prefix}/info'
119 mandir='${prefix}/man'
121 # Initialize some other variables.
122 subdirs=
123 MFLAGS= MAKEFLAGS=
124 SHELL=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
126 ac_max_here_lines=12
128 ac_prev=
129 for ac_option
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
135 ac_prev=
136 continue
139 case "$ac_option" in
140 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 *) ac_optarg= ;;
142 esac
144 # Accept the important Cygnus configure options, so we can diagnose typos.
146 case "$ac_option" in
148 -bindir | --bindir | --bindi | --bind | --bin | --bi)
149 ac_prev=bindir ;;
150 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
151 bindir="$ac_optarg" ;;
153 -build | --build | --buil | --bui | --bu)
154 ac_prev=build ;;
155 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
156 build="$ac_optarg" ;;
158 -cache-file | --cache-file | --cache-fil | --cache-fi \
159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
160 ac_prev=cache_file ;;
161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
163 cache_file="$ac_optarg" ;;
165 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
166 ac_prev=datadir ;;
167 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
168 | --da=*)
169 datadir="$ac_optarg" ;;
171 -disable-* | --disable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* | --enable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 case "$ac_option" in
188 *=*) ;;
189 *) ac_optarg=yes ;;
190 esac
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
195 | --exec | --exe | --ex)
196 ac_prev=exec_prefix ;;
197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
199 | --exec=* | --exe=* | --ex=*)
200 exec_prefix="$ac_optarg" ;;
202 -gas | --gas | --ga | --g)
203 # Obsolete; use --with-gas.
204 with_gas=yes ;;
206 -help | --help | --hel | --he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
209 cat << EOF
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
212 Configuration:
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
220 [$ac_default_prefix]
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 [same as prefix]
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
227 [PREFIX/share]
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 [PREFIX/com]
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
243 cat << EOF
244 Host type:
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
259 exit 0 ;;
261 -host | --host | --hos | --ho)
262 ac_prev=host ;;
263 -host=* | --host=* | --hos=* | --ho=*)
264 host="$ac_optarg" ;;
266 -includedir | --includedir | --includedi | --included | --include \
267 | --includ | --inclu | --incl | --inc)
268 ac_prev=includedir ;;
269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
270 | --includ=* | --inclu=* | --incl=* | --inc=*)
271 includedir="$ac_optarg" ;;
273 -infodir | --infodir | --infodi | --infod | --info | --inf)
274 ac_prev=infodir ;;
275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
276 infodir="$ac_optarg" ;;
278 -libdir | --libdir | --libdi | --libd)
279 ac_prev=libdir ;;
280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
281 libdir="$ac_optarg" ;;
283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
284 | --libexe | --libex | --libe)
285 ac_prev=libexecdir ;;
286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
287 | --libexe=* | --libex=* | --libe=*)
288 libexecdir="$ac_optarg" ;;
290 -localstatedir | --localstatedir | --localstatedi | --localstated \
291 | --localstate | --localstat | --localsta | --localst \
292 | --locals | --local | --loca | --loc | --lo)
293 ac_prev=localstatedir ;;
294 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
295 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
296 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
297 localstatedir="$ac_optarg" ;;
299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
300 ac_prev=mandir ;;
301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 mandir="$ac_optarg" ;;
304 -nfp | --nfp | --nf)
305 # Obsolete; use --without-fp.
306 with_fp=no ;;
308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
309 | --no-cr | --no-c)
310 no_create=yes ;;
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
314 no_recursion=yes ;;
316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
318 | --oldin | --oldi | --old | --ol | --o)
319 ac_prev=oldincludedir ;;
320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
323 oldincludedir="$ac_optarg" ;;
325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
326 ac_prev=prefix ;;
327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
328 prefix="$ac_optarg" ;;
330 -program-prefix | --program-prefix | --program-prefi | --program-pref \
331 | --program-pre | --program-pr | --program-p)
332 ac_prev=program_prefix ;;
333 -program-prefix=* | --program-prefix=* | --program-prefi=* \
334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
335 program_prefix="$ac_optarg" ;;
337 -program-suffix | --program-suffix | --program-suffi | --program-suff \
338 | --program-suf | --program-su | --program-s)
339 ac_prev=program_suffix ;;
340 -program-suffix=* | --program-suffix=* | --program-suffi=* \
341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
342 program_suffix="$ac_optarg" ;;
344 -program-transform-name | --program-transform-name \
345 | --program-transform-nam | --program-transform-na \
346 | --program-transform-n | --program-transform- \
347 | --program-transform | --program-transfor \
348 | --program-transfo | --program-transf \
349 | --program-trans | --program-tran \
350 | --progr-tra | --program-tr | --program-t)
351 ac_prev=program_transform_name ;;
352 -program-transform-name=* | --program-transform-name=* \
353 | --program-transform-nam=* | --program-transform-na=* \
354 | --program-transform-n=* | --program-transform-=* \
355 | --program-transform=* | --program-transfor=* \
356 | --program-transfo=* | --program-transf=* \
357 | --program-trans=* | --program-tran=* \
358 | --progr-tra=* | --program-tr=* | --program-t=*)
359 program_transform_name="$ac_optarg" ;;
361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
362 | -silent | --silent | --silen | --sile | --sil)
363 silent=yes ;;
365 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
366 ac_prev=sbindir ;;
367 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
368 | --sbi=* | --sb=*)
369 sbindir="$ac_optarg" ;;
371 -sharedstatedir | --sharedstatedir | --sharedstatedi \
372 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
373 | --sharedst | --shareds | --shared | --share | --shar \
374 | --sha | --sh)
375 ac_prev=sharedstatedir ;;
376 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
377 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
378 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
379 | --sha=* | --sh=*)
380 sharedstatedir="$ac_optarg" ;;
382 -site | --site | --sit)
383 ac_prev=site ;;
384 -site=* | --site=* | --sit=*)
385 site="$ac_optarg" ;;
387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
388 ac_prev=srcdir ;;
389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
390 srcdir="$ac_optarg" ;;
392 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
393 | --syscon | --sysco | --sysc | --sys | --sy)
394 ac_prev=sysconfdir ;;
395 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
396 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
397 sysconfdir="$ac_optarg" ;;
399 -target | --target | --targe | --targ | --tar | --ta | --t)
400 ac_prev=target ;;
401 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
402 target="$ac_optarg" ;;
404 -v | -verbose | --verbose | --verbos | --verbo | --verb)
405 verbose=yes ;;
407 -version | --version | --versio | --versi | --vers)
408 echo "configure generated by autoconf version 2.13"
409 exit 0 ;;
411 -with-* | --with-*)
412 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 case "$ac_option" in
419 *=*) ;;
420 *) ac_optarg=yes ;;
421 esac
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* | --without-*)
425 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
433 --x)
434 # Obsolete; use --with-x.
435 with_x=yes ;;
437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
438 | --x-incl | --x-inc | --x-in | --x-i)
439 ac_prev=x_includes ;;
440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
442 x_includes="$ac_optarg" ;;
444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
446 ac_prev=x_libraries ;;
447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
449 x_libraries="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 nonopt="$ac_option"
464 esac
465 done
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
474 # 0 standard input
475 # 1 file creation
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
482 exec 6>/dev/null
483 else
484 exec 6>&1
486 exec 5>./config.log
488 echo "\
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
491 " 1>&5
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
495 ac_configure_args=
496 for ac_arg
498 case "$ac_arg" in
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c) ;;
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
506 esac
507 done
509 # NLS nuisances.
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
522 echo > confdefs.h
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file=include/includes.h
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted=yes
531 # Try the directory containing this script, then its parent.
532 ac_prog=$0
533 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
535 srcdir=$ac_confdir
536 if test ! -r $srcdir/$ac_unique_file; then
537 srcdir=..
539 else
540 ac_srcdir_defaulted=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 else
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE; then
554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
555 else
556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
562 . "$ac_site_file"
564 done
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
568 . $cache_file
569 else
570 echo "creating cache $cache_file"
571 > $cache_file
574 ac_ext=c
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp='$CPP $CPPFLAGS'
577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling=$ac_cv_prog_cc_cross
581 ac_exeext=
582 ac_objext=o
583 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='
587 ' ac_t=' '
588 else
589 ac_n=-n ac_c= ac_t=
591 else
592 ac_n= ac_c='\c' ac_t=
597 # we want to be compatibe with older versions of Samba
610 # compile with optimisation and without debugging by default
611 CFLAGS=${CFLAGS-"-O"}
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
619 else
620 if test -n "$CC"; then
621 ac_cv_prog_CC="$CC" # Let the user override the test.
622 else
623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
624 ac_dummy="$PATH"
625 for ac_dir in $ac_dummy; do
626 test -z "$ac_dir" && ac_dir=.
627 if test -f $ac_dir/$ac_word; then
628 ac_cv_prog_CC="gcc"
629 break
631 done
632 IFS="$ac_save_ifs"
635 CC="$ac_cv_prog_CC"
636 if test -n "$CC"; then
637 echo "$ac_t""$CC" 1>&6
638 else
639 echo "$ac_t""no" 1>&6
642 if test -z "$CC"; then
643 # Extract the first word of "cc", so it can be a program name with args.
644 set dummy cc; ac_word=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
649 else
650 if test -n "$CC"; then
651 ac_cv_prog_CC="$CC" # Let the user override the test.
652 else
653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
654 ac_prog_rejected=no
655 ac_dummy="$PATH"
656 for ac_dir in $ac_dummy; do
657 test -z "$ac_dir" && ac_dir=.
658 if test -f $ac_dir/$ac_word; then
659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
660 ac_prog_rejected=yes
661 continue
663 ac_cv_prog_CC="cc"
664 break
666 done
667 IFS="$ac_save_ifs"
668 if test $ac_prog_rejected = yes; then
669 # We found a bogon in the path, so make sure we never use it.
670 set dummy $ac_cv_prog_CC
671 shift
672 if test $# -gt 0; then
673 # We chose a different compiler from the bogus one.
674 # However, it has the same basename, so the bogon will be chosen
675 # first if we set CC to just the basename; use the full file name.
676 shift
677 set dummy "$ac_dir/$ac_word" "$@"
678 shift
679 ac_cv_prog_CC="$@"
684 CC="$ac_cv_prog_CC"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
687 else
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 case "`uname -s`" in
693 *win32* | *WIN32*)
694 # Extract the first word of "cl", so it can be a program name with args.
695 set dummy cl; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700 else
701 if test -n "$CC"; then
702 ac_cv_prog_CC="$CC" # Let the user override the test.
703 else
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
705 ac_dummy="$PATH"
706 for ac_dir in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
709 ac_cv_prog_CC="cl"
710 break
712 done
713 IFS="$ac_save_ifs"
716 CC="$ac_cv_prog_CC"
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
719 else
720 echo "$ac_t""no" 1>&6
723 esac
725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
731 ac_ext=c
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp='$CPP $CPPFLAGS'
734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling=$ac_cv_prog_cc_cross
738 cat > conftest.$ac_ext << EOF
740 #line 741 "configure"
741 #include "confdefs.h"
743 main(){return(0);}
745 if { (eval echo configure:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
746 ac_cv_prog_cc_works=yes
747 # If we can't run a trivial program, we are probably using a cross compiler.
748 if (./conftest; exit) 2>/dev/null; then
749 ac_cv_prog_cc_cross=no
750 else
751 ac_cv_prog_cc_cross=yes
753 else
754 echo "configure: failed program was:" >&5
755 cat conftest.$ac_ext >&5
756 ac_cv_prog_cc_works=no
758 rm -fr conftest*
759 ac_ext=c
760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761 ac_cpp='$CPP $CPPFLAGS'
762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764 cross_compiling=$ac_cv_prog_cc_cross
766 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
767 if test $ac_cv_prog_cc_works = no; then
768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
772 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
773 cross_compiling=$ac_cv_prog_cc_cross
775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
776 echo "configure:777: checking whether we are using GNU C" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779 else
780 cat > conftest.c <<EOF
781 #ifdef __GNUC__
782 yes;
783 #endif
785 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
786 ac_cv_prog_gcc=yes
787 else
788 ac_cv_prog_gcc=no
792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
794 if test $ac_cv_prog_gcc = yes; then
795 GCC=yes
796 else
797 GCC=
800 ac_test_CFLAGS="${CFLAGS+set}"
801 ac_save_CFLAGS="$CFLAGS"
802 CFLAGS=
803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
807 else
808 echo 'void f(){}' > conftest.c
809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
810 ac_cv_prog_cc_g=yes
811 else
812 ac_cv_prog_cc_g=no
814 rm -f conftest*
818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
819 if test "$ac_test_CFLAGS" = set; then
820 CFLAGS="$ac_save_CFLAGS"
821 elif test $ac_cv_prog_cc_g = yes; then
822 if test "$GCC" = yes; then
823 CFLAGS="-g -O2"
824 else
825 CFLAGS="-g"
827 else
828 if test "$GCC" = yes; then
829 CFLAGS="-O2"
830 else
831 CFLAGS=
835 ac_aux_dir=
836 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
837 if test -f $ac_dir/install-sh; then
838 ac_aux_dir=$ac_dir
839 ac_install_sh="$ac_aux_dir/install-sh -c"
840 break
841 elif test -f $ac_dir/install.sh; then
842 ac_aux_dir=$ac_dir
843 ac_install_sh="$ac_aux_dir/install.sh -c"
844 break
846 done
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
850 ac_config_guess=$ac_aux_dir/config.guess
851 ac_config_sub=$ac_aux_dir/config.sub
852 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
854 # Find a good install program. We prefer a C program (faster),
855 # so one script is as good as another. But avoid the broken or
856 # incompatible versions:
857 # SysV /etc/install, /usr/sbin/install
858 # SunOS /usr/etc/install
859 # IRIX /sbin/install
860 # AIX /bin/install
861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
864 # ./install, which can be erroneously created by make from ./install.sh.
865 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
866 echo "configure:867: checking for a BSD compatible install" >&5
867 if test -z "$INSTALL"; then
868 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870 else
871 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
872 for ac_dir in $PATH; do
873 # Account for people who put trailing slashes in PATH elements.
874 case "$ac_dir/" in
875 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
877 # OSF1 and SCO ODT 3.0 have their own names for install.
878 # Don't use installbsd from OSF since it installs stuff as root
879 # by default.
880 for ac_prog in ginstall scoinst install; do
881 if test -f $ac_dir/$ac_prog; then
882 if test $ac_prog = install &&
883 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
884 # AIX install. It has an incompatible calling convention.
886 else
887 ac_cv_path_install="$ac_dir/$ac_prog -c"
888 break 2
891 done
893 esac
894 done
895 IFS="$ac_save_IFS"
898 if test "${ac_cv_path_install+set}" = set; then
899 INSTALL="$ac_cv_path_install"
900 else
901 # As a last resort, use the slow shell script. We don't cache a
902 # path for INSTALL within a source directory, because that will
903 # break other packages using the cache if that directory is
904 # removed, or if the path is relative.
905 INSTALL="$ac_install_sh"
908 echo "$ac_t""$INSTALL" 1>&6
910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
911 # It thinks the first close brace ends the variable substitution.
912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
918 for ac_prog in gawk mawk nawk awk
920 # Extract the first word of "$ac_prog", so it can be a program name with args.
921 set dummy $ac_prog; ac_word=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926 else
927 if test -n "$AWK"; then
928 ac_cv_prog_AWK="$AWK" # Let the user override the test.
929 else
930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
931 ac_dummy="$PATH"
932 for ac_dir in $ac_dummy; do
933 test -z "$ac_dir" && ac_dir=.
934 if test -f $ac_dir/$ac_word; then
935 ac_cv_prog_AWK="$ac_prog"
936 break
938 done
939 IFS="$ac_save_ifs"
942 AWK="$ac_cv_prog_AWK"
943 if test -n "$AWK"; then
944 echo "$ac_t""$AWK" 1>&6
945 else
946 echo "$ac_t""no" 1>&6
949 test -n "$AWK" && break
950 done
952 # Check whether --enable-shared or --disable-shared was given.
953 if test "${enable_shared+set}" = set; then
954 enableval="$enable_shared"
955 p=${PACKAGE-default}
956 case "$enableval" in
957 yes) enable_shared=yes ;;
958 no) enable_shared=no ;;
960 enable_shared=no
961 # Look at the argument we got. We use all the common list separators.
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
963 for pkg in $enableval; do
964 if test "X$pkg" = "X$p"; then
965 enable_shared=yes
967 done
968 IFS="$ac_save_ifs"
970 esac
971 else
972 enable_shared=yes
975 # Check whether --enable-static or --disable-static was given.
976 if test "${enable_static+set}" = set; then
977 enableval="$enable_static"
978 p=${PACKAGE-default}
979 case "$enableval" in
980 yes) enable_static=yes ;;
981 no) enable_static=no ;;
983 enable_static=no
984 # Look at the argument we got. We use all the common list separators.
985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
986 for pkg in $enableval; do
987 if test "X$pkg" = "X$p"; then
988 enable_static=yes
990 done
991 IFS="$ac_save_ifs"
993 esac
994 else
995 enable_static=yes
998 # Check whether --enable-fast-install or --disable-fast-install was given.
999 if test "${enable_fast_install+set}" = set; then
1000 enableval="$enable_fast_install"
1001 p=${PACKAGE-default}
1002 case "$enableval" in
1003 yes) enable_fast_install=yes ;;
1004 no) enable_fast_install=no ;;
1006 enable_fast_install=no
1007 # Look at the argument we got. We use all the common list separators.
1008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1009 for pkg in $enableval; do
1010 if test "X$pkg" = "X$p"; then
1011 enable_fast_install=yes
1013 done
1014 IFS="$ac_save_ifs"
1016 esac
1017 else
1018 enable_fast_install=yes
1022 # Make sure we can run config.sub.
1023 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1024 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1027 echo $ac_n "checking host system type""... $ac_c" 1>&6
1028 echo "configure:1029: checking host system type" >&5
1030 host_alias=$host
1031 case "$host_alias" in
1032 NONE)
1033 case $nonopt in
1034 NONE)
1035 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1036 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1037 fi ;;
1038 *) host_alias=$nonopt ;;
1039 esac ;;
1040 esac
1042 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1043 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046 echo "$ac_t""$host" 1>&6
1048 echo $ac_n "checking build system type""... $ac_c" 1>&6
1049 echo "configure:1050: checking build system type" >&5
1051 build_alias=$build
1052 case "$build_alias" in
1053 NONE)
1054 case $nonopt in
1055 NONE) build_alias=$host_alias ;;
1056 *) build_alias=$nonopt ;;
1057 esac ;;
1058 esac
1060 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1061 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1062 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1063 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 echo "$ac_t""$build" 1>&6
1066 # Extract the first word of "ranlib", so it can be a program name with args.
1067 set dummy ranlib; ac_word=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1072 else
1073 if test -n "$RANLIB"; then
1074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1075 else
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1077 ac_dummy="$PATH"
1078 for ac_dir in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_prog_RANLIB="ranlib"
1082 break
1084 done
1085 IFS="$ac_save_ifs"
1086 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1089 RANLIB="$ac_cv_prog_RANLIB"
1090 if test -n "$RANLIB"; then
1091 echo "$ac_t""$RANLIB" 1>&6
1092 else
1093 echo "$ac_t""no" 1>&6
1096 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1097 if test "${with_gnu_ld+set}" = set; then
1098 withval="$with_gnu_ld"
1099 test "$withval" = no || with_gnu_ld=yes
1100 else
1101 with_gnu_ld=no
1104 ac_prog=ld
1105 if test "$ac_cv_prog_gcc" = yes; then
1106 # Check if gcc -print-prog-name=ld gives a path.
1107 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1108 echo "configure:1109: checking for ld used by GCC" >&5
1109 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1110 case "$ac_prog" in
1111 # Accept absolute paths.
1112 [\\/]* | [A-Za-z]:[\\/]*)
1113 re_direlt='/[^/][^/]*/\.\./'
1114 # Canonicalize the path of ld
1115 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1117 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1118 done
1119 test -z "$LD" && LD="$ac_prog"
1122 # If it fails, then pretend we aren't using GCC.
1123 ac_prog=ld
1126 # If it is relative, then search for the first ld in PATH.
1127 with_gnu_ld=unknown
1129 esac
1130 elif test "$with_gnu_ld" = yes; then
1131 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1132 echo "configure:1133: checking for GNU ld" >&5
1133 else
1134 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1135 echo "configure:1136: checking for non-GNU ld" >&5
1137 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140 if test -z "$LD"; then
1141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1142 for ac_dir in $PATH; do
1143 test -z "$ac_dir" && ac_dir=.
1144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1145 ac_cv_path_LD="$ac_dir/$ac_prog"
1146 # Check to see if the program is GNU ld. I'd rather use --version,
1147 # but apparently some GNU ld's only accept -v.
1148 # Break only if it was the GNU/non-GNU ld that we prefer.
1149 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1150 test "$with_gnu_ld" != no && break
1151 else
1152 test "$with_gnu_ld" != yes && break
1155 done
1156 IFS="$ac_save_ifs"
1157 else
1158 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1162 LD="$ac_cv_path_LD"
1163 if test -n "$LD"; then
1164 echo "$ac_t""$LD" 1>&6
1165 else
1166 echo "$ac_t""no" 1>&6
1168 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1169 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1170 echo "configure:1171: checking if the linker ($LD) is GNU ld" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173 else
1174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1175 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1176 ac_cv_prog_gnu_ld=yes
1177 else
1178 ac_cv_prog_gnu_ld=no
1182 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1185 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1186 echo "configure:1187: checking for BSD-compatible nm" >&5
1187 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189 else
1190 if test -n "$NM"; then
1191 # Let the user override the test.
1192 ac_cv_path_NM="$NM"
1193 else
1194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1195 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1196 test -z "$ac_dir" && ac_dir=.
1197 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1198 # Check to see if the nm accepts a BSD-compat flag.
1199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1200 # nm: unknown option "B" ignored
1201 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1202 ac_cv_path_NM="$ac_dir/nm -B"
1203 break
1204 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1205 ac_cv_path_NM="$ac_dir/nm -p"
1206 break
1207 else
1208 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1209 continue # so that we can try to find one that supports BSD flags
1212 done
1213 IFS="$ac_save_ifs"
1214 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1218 NM="$ac_cv_path_NM"
1219 echo "$ac_t""$NM" 1>&6
1221 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ln -s works" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1225 else
1226 rm -f conftestdata
1227 if ln -s X conftestdata 2>/dev/null
1228 then
1229 rm -f conftestdata
1230 ac_cv_prog_LN_S="ln -s"
1231 else
1232 ac_cv_prog_LN_S=ln
1235 LN_S="$ac_cv_prog_LN_S"
1236 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1237 echo "$ac_t""yes" 1>&6
1238 else
1239 echo "$ac_t""no" 1>&6
1243 case "$target" in
1244 NONE) lt_target="$host" ;;
1245 *) lt_target="$target" ;;
1246 esac
1248 # Check for any special flags to pass to ltconfig.
1249 libtool_flags="--cache-file=$cache_file"
1250 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1251 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1252 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1253 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1254 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1257 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1258 if test "${enable_libtool_lock+set}" = set; then
1259 enableval="$enable_libtool_lock"
1263 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1264 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1266 # Some flags need to be propagated to the compiler or linker for good
1267 # libtool support.
1268 case "$lt_target" in
1269 *-*-irix6*)
1270 # Find out which ABI we are using.
1271 echo '#line 1272 "configure"' > conftest.$ac_ext
1272 if { (eval echo configure:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1273 case "`/usr/bin/file conftest.o`" in
1274 *32-bit*)
1275 LD="${LD-ld} -32"
1277 *N32*)
1278 LD="${LD-ld} -n32"
1280 *64-bit*)
1281 LD="${LD-ld} -64"
1283 esac
1285 rm -rf conftest*
1288 *-*-sco3.2v5*)
1289 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1290 SAVE_CFLAGS="$CFLAGS"
1291 CFLAGS="$CFLAGS -belf"
1292 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether the C compiler needs -belf" >&5
1294 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1296 else
1297 cat > conftest.$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1301 int main() {
1303 ; return 0; }
1305 if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1306 rm -rf conftest*
1307 lt_cv_cc_needs_belf=yes
1308 else
1309 echo "configure: failed program was:" >&5
1310 cat conftest.$ac_ext >&5
1311 rm -rf conftest*
1312 lt_cv_cc_needs_belf=no
1314 rm -f conftest*
1317 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1318 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1319 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1320 CFLAGS="$SAVE_CFLAGS"
1325 esac
1328 # Save cache, so that ltconfig can load it
1329 cat > confcache <<\EOF
1330 # This file is a shell script that caches the results of configure
1331 # tests run on this system so they can be shared between configure
1332 # scripts and configure runs. It is not useful on other systems.
1333 # If it contains results you don't want to keep, you may remove or edit it.
1335 # By default, configure uses ./config.cache as the cache file,
1336 # creating it if it does not exist already. You can give configure
1337 # the --cache-file=FILE option to use a different cache file; that is
1338 # what configure does when it calls configure scripts in
1339 # subdirectories, so they share the cache.
1340 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1341 # config.status only pays attention to the cache file if you give it the
1342 # --recheck option to rerun configure.
1345 # The following way of writing the cache mishandles newlines in values,
1346 # but we know of no workaround that is simple, portable, and efficient.
1347 # So, don't put newlines in cache variables' values.
1348 # Ultrix sh set writes to stderr and can't be redirected directly,
1349 # and sets the high bit in the cache file unless we assign to the vars.
1350 (set) 2>&1 |
1351 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1352 *ac_space=\ *)
1353 # `set' does not quote correctly, so add quotes (double-quote substitution
1354 # turns \\\\ into \\, and sed turns \\ into \).
1355 sed -n \
1356 -e "s/'/'\\\\''/g" \
1357 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1360 # `set' quotes correctly as required by POSIX, so do not add quotes.
1361 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1363 esac >> confcache
1364 if cmp -s $cache_file confcache; then
1366 else
1367 if test -w $cache_file; then
1368 echo "updating cache $cache_file"
1369 cat confcache > $cache_file
1370 else
1371 echo "not updating unwritable cache $cache_file"
1374 rm -f confcache
1377 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1378 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1379 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1380 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1381 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1382 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1383 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1384 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1386 # Reload cache, that may have been modified by ltconfig
1387 if test -r "$cache_file"; then
1388 echo "loading cache $cache_file"
1389 . $cache_file
1390 else
1391 echo "creating cache $cache_file"
1392 > $cache_file
1396 # This can be used to rebuild libtool when needed
1397 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1399 # Always use our own libtool.
1400 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1402 # Redirect the config.log output again, so that the ltconfig log is not
1403 # clobbered by the next message.
1404 exec 5>>./config.log
1408 if test "x$CC" != xcc; then
1409 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1410 echo "configure:1411: checking whether $CC and cc understand -c and -o together" >&5
1411 else
1412 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1413 echo "configure:1414: checking whether cc understands -c and -o together" >&5
1415 set dummy $CC; ac_cc="`echo $2 |
1416 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1417 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1419 else
1420 echo 'foo(){}' > conftest.c
1421 # Make sure it works both with $CC and with simple cc.
1422 # We do the test twice because some compilers refuse to overwrite an
1423 # existing .o file with -o, though they will create one.
1424 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1425 if { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1426 test -f conftest.o && { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1427 then
1428 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1429 if test "x$CC" != xcc; then
1430 # Test first that cc exists at all.
1431 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1432 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1433 if { (eval echo configure:1434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1434 test -f conftest.o && { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1435 then
1436 # cc works too.
1438 else
1439 # cc exists but doesn't like -o.
1440 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1444 else
1445 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1447 rm -f conftest*
1450 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1452 else
1453 echo "$ac_t""no" 1>&6
1454 cat >> confdefs.h <<\EOF
1455 #define NO_MINUS_C_MINUS_O 1
1460 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1461 BROKEN_CC=
1462 else
1463 BROKEN_CC=#
1467 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1468 echo "configure:1469: checking that the C compiler understands volatile" >&5
1469 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 #include <sys/types.h>
1477 int main() {
1478 volatile int i = 0
1479 ; return 0; }
1481 if { (eval echo configure:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1482 rm -rf conftest*
1483 samba_cv_volatile=yes
1484 else
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1487 rm -rf conftest*
1488 samba_cv_volatile=no
1490 rm -f conftest*
1493 echo "$ac_t""$samba_cv_volatile" 1>&6
1494 if test x"$samba_cv_volatile" = x"yes"; then
1495 cat >> confdefs.h <<\EOF
1496 #define HAVE_VOLATILE 1
1504 # Do some error checking and defaulting for the host and target type.
1505 # The inputs are:
1506 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1508 # The rules are:
1509 # 1. You are not allowed to specify --host, --target, and nonopt at the
1510 # same time.
1511 # 2. Host defaults to nonopt.
1512 # 3. If nonopt is not specified, then host defaults to the current host,
1513 # as determined by config.guess.
1514 # 4. Target and build default to nonopt.
1515 # 5. If nonopt is not specified, then target and build default to host.
1517 # The aliases save the names the user supplied, while $host etc.
1518 # will get canonicalized.
1519 case $host---$target---$nonopt in
1520 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1521 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1522 esac
1525 # Make sure we can run config.sub.
1526 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1527 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1530 echo $ac_n "checking host system type""... $ac_c" 1>&6
1531 echo "configure:1532: checking host system type" >&5
1533 host_alias=$host
1534 case "$host_alias" in
1535 NONE)
1536 case $nonopt in
1537 NONE)
1538 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1539 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1540 fi ;;
1541 *) host_alias=$nonopt ;;
1542 esac ;;
1543 esac
1545 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1546 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549 echo "$ac_t""$host" 1>&6
1551 echo $ac_n "checking target system type""... $ac_c" 1>&6
1552 echo "configure:1553: checking target system type" >&5
1554 target_alias=$target
1555 case "$target_alias" in
1556 NONE)
1557 case $nonopt in
1558 NONE) target_alias=$host_alias ;;
1559 *) target_alias=$nonopt ;;
1560 esac ;;
1561 esac
1563 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1564 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 echo "$ac_t""$target" 1>&6
1569 echo $ac_n "checking build system type""... $ac_c" 1>&6
1570 echo "configure:1571: checking build system type" >&5
1572 build_alias=$build
1573 case "$build_alias" in
1574 NONE)
1575 case $nonopt in
1576 NONE) build_alias=$host_alias ;;
1577 *) build_alias=$nonopt ;;
1578 esac ;;
1579 esac
1581 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1582 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585 echo "$ac_t""$build" 1>&6
1587 test "$host_alias" != "$target_alias" &&
1588 test "$program_prefix$program_suffix$program_transform_name" = \
1589 NONENONEs,x,x, &&
1590 program_prefix=${target_alias}-
1593 case "$host_os" in
1594 *irix*) cat >> confdefs.h <<\EOF
1595 #include <standards.h>
1599 esac
1603 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1604 echo "configure:1605: checking config.cache system type" >&5
1605 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1606 test x"$ac_cv_host_system_type" != x"$host"; } ||
1607 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1608 test x"$ac_cv_build_system_type" != x"$build"; } ||
1609 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1610 test x"$ac_cv_target_system_type" != x"$target"; }; then
1611 echo "$ac_t""different" 1>&6
1612 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1613 else
1614 echo "$ac_t""same" 1>&6
1616 ac_cv_host_system_type="$host"
1617 ac_cv_build_system_type="$build"
1618 ac_cv_target_system_type="$target"
1622 # Config CPPFLAG settings for strange OS's that must be set
1623 # before other tests.
1625 case "$host_os" in
1626 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1627 *hpux*)
1628 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1629 echo "configure:1630: checking whether ${CC-cc} accepts -Ae" >&5
1630 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1632 else
1633 echo 'void f(){}' > conftest.c
1634 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1635 ac_cv_prog_cc_Ae=yes
1636 else
1637 ac_cv_prog_cc_Ae=no
1639 rm -f conftest*
1643 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1644 if test $ac_cv_prog_cc_Ae = yes; then
1645 CPPFLAGS="$CPPFLAGS -Ae"
1648 # Defines needed for HPUX support.
1649 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1650 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1652 case `uname -r` in
1653 *9*|*10*)
1654 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1655 cat >> confdefs.h <<\EOF
1656 #define USE_BOTH_CRYPT_CALLS 1
1660 *11*)
1661 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1662 cat >> confdefs.h <<\EOF
1663 #define USE_BOTH_CRYPT_CALLS 1
1667 esac
1670 # AIX4.x doesn't even admit to having large
1671 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1673 *aix4*)
1674 echo "$ac_t""enabling large file support" 1>&6
1675 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1678 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1679 # to the existance of large files..
1680 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1681 # recommendations on large file support, however it makes the
1682 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1683 # recommendation makes the compile fail on gcc2.7. JRA.
1685 *solaris*)
1686 case `uname -r` in
1687 5.6*|5.7*)
1688 echo "$ac_t""enabling large file support" 1>&6
1689 if test "$ac_cv_prog_gcc" = yes; then
1690 ${CC-cc} -v >conftest.c 2>&1
1691 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1692 rm -fr conftest.c
1693 case "$ac_cv_gcc_compiler_version_number" in
1694 *"gcc version 2.6"*|*"gcc version 2.7"*)
1695 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1698 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1700 esac
1701 else
1702 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1705 esac
1708 # Tests needed for SINIX large file support.
1710 *sysv4*)
1711 if test $host = mips-sni-sysv4 ; then
1712 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1713 echo "configure:1714: checking for LFS support" >&5
1714 old_CPPFLAGS="$CPPFLAGS"
1715 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1716 if test "$cross_compiling" = yes; then
1717 SINIX_LFS_SUPPORT=cross
1718 else
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1723 #include <unistd.h>
1724 main () {
1725 #if _LFS64_LARGEFILE == 1
1726 exit(0);
1727 #else
1728 exit(1);
1729 #endif
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1733 then
1734 SINIX_LFS_SUPPORT=yes
1735 else
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1738 rm -fr conftest*
1739 SINIX_LFS_SUPPORT=no
1741 rm -fr conftest*
1744 CPPFLAGS="$old_CPPFLAGS"
1745 if test x$SINIX_LFS_SUPPORT = xyes ; then
1746 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1747 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1748 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1749 LIBS="`getconf LFS64_LIBS` $LIBS"
1751 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1756 # Tests needed for glibc 2.1 large file support.
1758 *linux*)
1759 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1761 *hurd*)
1762 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1763 echo "configure:1764: checking for LFS support" >&5
1764 old_CPPFLAGS="$CPPFLAGS"
1765 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1766 if test "$cross_compiling" = yes; then
1767 GLIBC_LFS_SUPPORT=cross
1768 else
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1773 #include <unistd.h>
1774 main () {
1775 #if _LFS64_LARGEFILE == 1
1776 exit(0);
1777 #else
1778 exit(1);
1779 #endif
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1783 then
1784 GLIBC_LFS_SUPPORT=yes
1785 else
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1788 rm -fr conftest*
1789 GLIBC_LFS_SUPPORT=no
1791 rm -fr conftest*
1794 CPPFLAGS="$old_CPPFLAGS"
1795 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1796 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1798 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1801 esac
1803 echo $ac_n "checking for inline""... $ac_c" 1>&6
1804 echo "configure:1805: checking for inline" >&5
1805 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1807 else
1808 ac_cv_c_inline=no
1809 for ac_kw in inline __inline__ __inline; do
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1814 int main() {
1815 } $ac_kw foo() {
1816 ; return 0; }
1818 if { (eval echo configure:1819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819 rm -rf conftest*
1820 ac_cv_c_inline=$ac_kw; break
1821 else
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 rm -f conftest*
1826 done
1830 echo "$ac_t""$ac_cv_c_inline" 1>&6
1831 case "$ac_cv_c_inline" in
1832 inline | yes) ;;
1833 no) cat >> confdefs.h <<\EOF
1834 #define inline
1837 *) cat >> confdefs.h <<EOF
1838 #define inline $ac_cv_c_inline
1841 esac
1843 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1844 echo "configure:1845: checking how to run the C preprocessor" >&5
1845 # On Suns, sometimes $CPP names a directory.
1846 if test -n "$CPP" && test -d "$CPP"; then
1847 CPP=
1849 if test -z "$CPP"; then
1850 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 # This must be in double quotes, not single quotes, because CPP may get
1854 # substituted into the Makefile and "${CC-cc}" will confuse make.
1855 CPP="${CC-cc} -E"
1856 # On the NeXT, cc -E runs the code through the compiler's parser,
1857 # not just through cpp.
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 #include <assert.h>
1862 Syntax Error
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1869 else
1870 echo "$ac_err" >&5
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 rm -rf conftest*
1874 CPP="${CC-cc} -E -traditional-cpp"
1875 cat > conftest.$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1878 #include <assert.h>
1879 Syntax Error
1881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1882 { (eval echo configure:1883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1884 if test -z "$ac_err"; then
1886 else
1887 echo "$ac_err" >&5
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1890 rm -rf conftest*
1891 CPP="${CC-cc} -nologo -E"
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 #include <assert.h>
1896 Syntax Error
1898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1899 { (eval echo configure:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1901 if test -z "$ac_err"; then
1903 else
1904 echo "$ac_err" >&5
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 CPP=/lib/cpp
1910 rm -f conftest*
1912 rm -f conftest*
1914 rm -f conftest*
1915 ac_cv_prog_CPP="$CPP"
1917 CPP="$ac_cv_prog_CPP"
1918 else
1919 ac_cv_prog_CPP="$CPP"
1921 echo "$ac_t""$CPP" 1>&6
1923 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1924 echo "configure:1925: checking for ANSI C header files" >&5
1925 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1927 else
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 #include <stdlib.h>
1932 #include <stdarg.h>
1933 #include <string.h>
1934 #include <float.h>
1936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1937 { (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1939 if test -z "$ac_err"; then
1940 rm -rf conftest*
1941 ac_cv_header_stdc=yes
1942 else
1943 echo "$ac_err" >&5
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1946 rm -rf conftest*
1947 ac_cv_header_stdc=no
1949 rm -f conftest*
1951 if test $ac_cv_header_stdc = yes; then
1952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 #include <string.h>
1958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1959 egrep "memchr" >/dev/null 2>&1; then
1961 else
1962 rm -rf conftest*
1963 ac_cv_header_stdc=no
1965 rm -f conftest*
1969 if test $ac_cv_header_stdc = yes; then
1970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1974 #include <stdlib.h>
1976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1977 egrep "free" >/dev/null 2>&1; then
1979 else
1980 rm -rf conftest*
1981 ac_cv_header_stdc=no
1983 rm -f conftest*
1987 if test $ac_cv_header_stdc = yes; then
1988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1989 if test "$cross_compiling" = yes; then
1991 else
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 #include <ctype.h>
1996 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1997 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1999 int main () { int i; for (i = 0; i < 256; i++)
2000 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2001 exit (0); }
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2005 then
2007 else
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2010 rm -fr conftest*
2011 ac_cv_header_stdc=no
2013 rm -fr conftest*
2019 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2020 if test $ac_cv_header_stdc = yes; then
2021 cat >> confdefs.h <<\EOF
2022 #define STDC_HEADERS 1
2027 ac_header_dirent=no
2028 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2031 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2032 echo "configure:2033: checking for $ac_hdr that defines DIR" >&5
2033 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2035 else
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <sys/types.h>
2040 #include <$ac_hdr>
2041 int main() {
2042 DIR *dirp = 0;
2043 ; return 0; }
2045 if { (eval echo configure:2046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2046 rm -rf conftest*
2047 eval "ac_cv_header_dirent_$ac_safe=yes"
2048 else
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2051 rm -rf conftest*
2052 eval "ac_cv_header_dirent_$ac_safe=no"
2054 rm -f conftest*
2056 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2057 echo "$ac_t""yes" 1>&6
2058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2059 cat >> confdefs.h <<EOF
2060 #define $ac_tr_hdr 1
2062 ac_header_dirent=$ac_hdr; break
2063 else
2064 echo "$ac_t""no" 1>&6
2066 done
2067 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2068 if test $ac_header_dirent = dirent.h; then
2069 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2070 echo "configure:2071: checking for opendir in -ldir" >&5
2071 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 ac_save_LIBS="$LIBS"
2076 LIBS="-ldir $LIBS"
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 /* Override any gcc2 internal prototype to avoid an error. */
2081 /* We use char because int might match the return type of a gcc2
2082 builtin and then its argument prototype would still apply. */
2083 char opendir();
2085 int main() {
2086 opendir()
2087 ; return 0; }
2089 if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2090 rm -rf conftest*
2091 eval "ac_cv_lib_$ac_lib_var=yes"
2092 else
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2095 rm -rf conftest*
2096 eval "ac_cv_lib_$ac_lib_var=no"
2098 rm -f conftest*
2099 LIBS="$ac_save_LIBS"
2102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2104 LIBS="$LIBS -ldir"
2105 else
2106 echo "$ac_t""no" 1>&6
2109 else
2110 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2111 echo "configure:2112: checking for opendir in -lx" >&5
2112 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2115 else
2116 ac_save_LIBS="$LIBS"
2117 LIBS="-lx $LIBS"
2118 cat > conftest.$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 /* Override any gcc2 internal prototype to avoid an error. */
2122 /* We use char because int might match the return type of a gcc2
2123 builtin and then its argument prototype would still apply. */
2124 char opendir();
2126 int main() {
2127 opendir()
2128 ; return 0; }
2130 if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2131 rm -rf conftest*
2132 eval "ac_cv_lib_$ac_lib_var=yes"
2133 else
2134 echo "configure: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2136 rm -rf conftest*
2137 eval "ac_cv_lib_$ac_lib_var=no"
2139 rm -f conftest*
2140 LIBS="$ac_save_LIBS"
2143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2144 echo "$ac_t""yes" 1>&6
2145 LIBS="$LIBS -lx"
2146 else
2147 echo "$ac_t""no" 1>&6
2152 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2153 echo "configure:2154: checking whether time.h and sys/time.h may both be included" >&5
2154 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156 else
2157 cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2160 #include <sys/types.h>
2161 #include <sys/time.h>
2162 #include <time.h>
2163 int main() {
2164 struct tm *tp;
2165 ; return 0; }
2167 if { (eval echo configure:2168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2168 rm -rf conftest*
2169 ac_cv_header_time=yes
2170 else
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2173 rm -rf conftest*
2174 ac_cv_header_time=no
2176 rm -f conftest*
2179 echo "$ac_t""$ac_cv_header_time" 1>&6
2180 if test $ac_cv_header_time = yes; then
2181 cat >> confdefs.h <<\EOF
2182 #define TIME_WITH_SYS_TIME 1
2187 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2188 echo "configure:2189: checking for sys/wait.h that is POSIX.1 compatible" >&5
2189 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2191 else
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 #include <sys/types.h>
2196 #include <sys/wait.h>
2197 #ifndef WEXITSTATUS
2198 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2199 #endif
2200 #ifndef WIFEXITED
2201 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2202 #endif
2203 int main() {
2204 int s;
2205 wait (&s);
2206 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2207 ; return 0; }
2209 if { (eval echo configure:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2210 rm -rf conftest*
2211 ac_cv_header_sys_wait_h=yes
2212 else
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2215 rm -rf conftest*
2216 ac_cv_header_sys_wait_h=no
2218 rm -f conftest*
2221 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2222 if test $ac_cv_header_sys_wait_h = yes; then
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_SYS_WAIT_H 1
2229 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_hdr" >&5
2234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 #include <$ac_hdr>
2242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2243 { (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2245 if test -z "$ac_err"; then
2246 rm -rf conftest*
2247 eval "ac_cv_header_$ac_safe=yes"
2248 else
2249 echo "$ac_err" >&5
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 rm -rf conftest*
2253 eval "ac_cv_header_$ac_safe=no"
2255 rm -f conftest*
2257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2260 cat >> confdefs.h <<EOF
2261 #define $ac_tr_hdr 1
2264 else
2265 echo "$ac_t""no" 1>&6
2267 done
2269 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2273 echo "configure:2274: checking for $ac_hdr" >&5
2274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2276 else
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <$ac_hdr>
2282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2283 { (eval echo configure:2284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2285 if test -z "$ac_err"; then
2286 rm -rf conftest*
2287 eval "ac_cv_header_$ac_safe=yes"
2288 else
2289 echo "$ac_err" >&5
2290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2292 rm -rf conftest*
2293 eval "ac_cv_header_$ac_safe=no"
2295 rm -f conftest*
2297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2298 echo "$ac_t""yes" 1>&6
2299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2300 cat >> confdefs.h <<EOF
2301 #define $ac_tr_hdr 1
2304 else
2305 echo "$ac_t""no" 1>&6
2307 done
2309 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2313 echo "configure:2314: checking for $ac_hdr" >&5
2314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2320 #include <$ac_hdr>
2322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2323 { (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2325 if test -z "$ac_err"; then
2326 rm -rf conftest*
2327 eval "ac_cv_header_$ac_safe=yes"
2328 else
2329 echo "$ac_err" >&5
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2332 rm -rf conftest*
2333 eval "ac_cv_header_$ac_safe=no"
2335 rm -f conftest*
2337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2340 cat >> confdefs.h <<EOF
2341 #define $ac_tr_hdr 1
2344 else
2345 echo "$ac_t""no" 1>&6
2347 done
2349 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2351 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2352 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_hdr" >&5
2354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2356 else
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 #include <$ac_hdr>
2362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2363 { (eval echo configure:2364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2365 if test -z "$ac_err"; then
2366 rm -rf conftest*
2367 eval "ac_cv_header_$ac_safe=yes"
2368 else
2369 echo "$ac_err" >&5
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 eval "ac_cv_header_$ac_safe=no"
2375 rm -f conftest*
2377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2380 cat >> confdefs.h <<EOF
2381 #define $ac_tr_hdr 1
2384 else
2385 echo "$ac_t""no" 1>&6
2387 done
2389 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2393 echo "configure:2394: checking for $ac_hdr" >&5
2394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2396 else
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 #include <$ac_hdr>
2402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2403 { (eval echo configure:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2405 if test -z "$ac_err"; then
2406 rm -rf conftest*
2407 eval "ac_cv_header_$ac_safe=yes"
2408 else
2409 echo "$ac_err" >&5
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2412 rm -rf conftest*
2413 eval "ac_cv_header_$ac_safe=no"
2415 rm -f conftest*
2417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2418 echo "$ac_t""yes" 1>&6
2419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2420 cat >> confdefs.h <<EOF
2421 #define $ac_tr_hdr 1
2424 else
2425 echo "$ac_t""no" 1>&6
2427 done
2429 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2433 echo "configure:2434: checking for $ac_hdr" >&5
2434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2436 else
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2440 #include <$ac_hdr>
2442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2443 { (eval echo configure:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2445 if test -z "$ac_err"; then
2446 rm -rf conftest*
2447 eval "ac_cv_header_$ac_safe=yes"
2448 else
2449 echo "$ac_err" >&5
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2452 rm -rf conftest*
2453 eval "ac_cv_header_$ac_safe=no"
2455 rm -f conftest*
2457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2460 cat >> confdefs.h <<EOF
2461 #define $ac_tr_hdr 1
2464 else
2465 echo "$ac_t""no" 1>&6
2467 done
2469 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_hdr" >&5
2474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 #include <$ac_hdr>
2482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2483 { (eval echo configure:2484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2485 if test -z "$ac_err"; then
2486 rm -rf conftest*
2487 eval "ac_cv_header_$ac_safe=yes"
2488 else
2489 echo "$ac_err" >&5
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_header_$ac_safe=no"
2495 rm -f conftest*
2497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2498 echo "$ac_t""yes" 1>&6
2499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2500 cat >> confdefs.h <<EOF
2501 #define $ac_tr_hdr 1
2504 else
2505 echo "$ac_t""no" 1>&6
2507 done
2510 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2511 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2513 case "$host_os" in
2514 *hpux*)
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 #include <shadow.h>
2519 int main() {
2520 struct spwd testme
2521 ; return 0; }
2523 if { (eval echo configure:2524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2524 rm -rf conftest*
2525 ac_cv_header_shadow_h=yes
2526 else
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 rm -rf conftest*
2530 ac_cv_header_shadow_h=no
2532 rm -f conftest*
2533 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2534 cat >> confdefs.h <<\EOF
2535 #define HAVE_SHADOW_H 1
2540 esac
2541 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2545 echo "configure:2546: checking for $ac_hdr" >&5
2546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2548 else
2549 cat > conftest.$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 #include <$ac_hdr>
2554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2555 { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2557 if test -z "$ac_err"; then
2558 rm -rf conftest*
2559 eval "ac_cv_header_$ac_safe=yes"
2560 else
2561 echo "$ac_err" >&5
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 rm -rf conftest*
2565 eval "ac_cv_header_$ac_safe=no"
2567 rm -f conftest*
2569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2570 echo "$ac_t""yes" 1>&6
2571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2572 cat >> confdefs.h <<EOF
2573 #define $ac_tr_hdr 1
2576 else
2577 echo "$ac_t""no" 1>&6
2579 done
2581 for ac_hdr in nss.h sys/security.h security/pam_appl.h
2583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2585 echo "configure:2586: checking for $ac_hdr" >&5
2586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2588 else
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 #include <$ac_hdr>
2594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2595 { (eval echo configure:2596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2597 if test -z "$ac_err"; then
2598 rm -rf conftest*
2599 eval "ac_cv_header_$ac_safe=yes"
2600 else
2601 echo "$ac_err" >&5
2602 echo "configure: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 rm -rf conftest*
2605 eval "ac_cv_header_$ac_safe=no"
2607 rm -f conftest*
2609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2610 echo "$ac_t""yes" 1>&6
2611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2612 cat >> confdefs.h <<EOF
2613 #define $ac_tr_hdr 1
2616 else
2617 echo "$ac_t""no" 1>&6
2619 done
2621 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_hdr" >&5
2626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2628 else
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <$ac_hdr>
2634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2635 { (eval echo configure:2636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2637 if test -z "$ac_err"; then
2638 rm -rf conftest*
2639 eval "ac_cv_header_$ac_safe=yes"
2640 else
2641 echo "$ac_err" >&5
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 rm -rf conftest*
2645 eval "ac_cv_header_$ac_safe=no"
2647 rm -f conftest*
2649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2652 cat >> confdefs.h <<EOF
2653 #define $ac_tr_hdr 1
2656 else
2657 echo "$ac_t""no" 1>&6
2659 done
2661 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2665 echo "configure:2666: checking for $ac_hdr" >&5
2666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2668 else
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 #include <$ac_hdr>
2674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2675 { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2677 if test -z "$ac_err"; then
2678 rm -rf conftest*
2679 eval "ac_cv_header_$ac_safe=yes"
2680 else
2681 echo "$ac_err" >&5
2682 echo "configure: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 rm -rf conftest*
2685 eval "ac_cv_header_$ac_safe=no"
2687 rm -f conftest*
2689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2692 cat >> confdefs.h <<EOF
2693 #define $ac_tr_hdr 1
2696 else
2697 echo "$ac_t""no" 1>&6
2699 done
2701 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2705 echo "configure:2706: checking for $ac_hdr" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2712 #include <$ac_hdr>
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2718 rm -rf conftest*
2719 eval "ac_cv_header_$ac_safe=yes"
2720 else
2721 echo "$ac_err" >&5
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2724 rm -rf conftest*
2725 eval "ac_cv_header_$ac_safe=no"
2727 rm -f conftest*
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2732 cat >> confdefs.h <<EOF
2733 #define $ac_tr_hdr 1
2736 else
2737 echo "$ac_t""no" 1>&6
2739 done
2742 # For experimental utmp support
2743 for ac_hdr in utmp.h utmpx.h
2745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_hdr" >&5
2748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <$ac_hdr>
2756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=yes"
2762 else
2763 echo "$ac_err" >&5
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2766 rm -rf conftest*
2767 eval "ac_cv_header_$ac_safe=no"
2769 rm -f conftest*
2771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2774 cat >> confdefs.h <<EOF
2775 #define $ac_tr_hdr 1
2778 else
2779 echo "$ac_t""no" 1>&6
2781 done
2784 echo $ac_n "checking size of int""... $ac_c" 1>&6
2785 echo "configure:2786: checking size of int" >&5
2786 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789 if test "$cross_compiling" = yes; then
2790 ac_cv_sizeof_int=cross
2791 else
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 #include <stdio.h>
2796 main()
2798 FILE *f=fopen("conftestval", "w");
2799 if (!f) exit(1);
2800 fprintf(f, "%d\n", sizeof(int));
2801 exit(0);
2804 if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2805 then
2806 ac_cv_sizeof_int=`cat conftestval`
2807 else
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 rm -fr conftest*
2811 ac_cv_sizeof_int=0
2813 rm -fr conftest*
2817 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2818 cat >> confdefs.h <<EOF
2819 #define SIZEOF_INT $ac_cv_sizeof_int
2823 echo $ac_n "checking size of long""... $ac_c" 1>&6
2824 echo "configure:2825: checking size of long" >&5
2825 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2827 else
2828 if test "$cross_compiling" = yes; then
2829 ac_cv_sizeof_long=cross
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <stdio.h>
2835 main()
2837 FILE *f=fopen("conftestval", "w");
2838 if (!f) exit(1);
2839 fprintf(f, "%d\n", sizeof(long));
2840 exit(0);
2843 if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2844 then
2845 ac_cv_sizeof_long=`cat conftestval`
2846 else
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -fr conftest*
2850 ac_cv_sizeof_long=0
2852 rm -fr conftest*
2856 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2857 cat >> confdefs.h <<EOF
2858 #define SIZEOF_LONG $ac_cv_sizeof_long
2862 echo $ac_n "checking size of short""... $ac_c" 1>&6
2863 echo "configure:2864: checking size of short" >&5
2864 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2866 else
2867 if test "$cross_compiling" = yes; then
2868 ac_cv_sizeof_short=cross
2869 else
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873 #include <stdio.h>
2874 main()
2876 FILE *f=fopen("conftestval", "w");
2877 if (!f) exit(1);
2878 fprintf(f, "%d\n", sizeof(short));
2879 exit(0);
2882 if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2883 then
2884 ac_cv_sizeof_short=`cat conftestval`
2885 else
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2888 rm -fr conftest*
2889 ac_cv_sizeof_short=0
2891 rm -fr conftest*
2895 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2896 cat >> confdefs.h <<EOF
2897 #define SIZEOF_SHORT $ac_cv_sizeof_short
2902 echo $ac_n "checking for working const""... $ac_c" 1>&6
2903 echo "configure:2904: checking for working const" >&5
2904 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2911 int main() {
2913 /* Ultrix mips cc rejects this. */
2914 typedef int charset[2]; const charset x;
2915 /* SunOS 4.1.1 cc rejects this. */
2916 char const *const *ccp;
2917 char **p;
2918 /* NEC SVR4.0.2 mips cc rejects this. */
2919 struct point {int x, y;};
2920 static struct point const zero = {0,0};
2921 /* AIX XL C 1.02.0.0 rejects this.
2922 It does not let you subtract one const X* pointer from another in an arm
2923 of an if-expression whose if-part is not a constant expression */
2924 const char *g = "string";
2925 ccp = &g + (g ? g-g : 0);
2926 /* HPUX 7.0 cc rejects these. */
2927 ++ccp;
2928 p = (char**) ccp;
2929 ccp = (char const *const *) p;
2930 { /* SCO 3.2v4 cc rejects this. */
2931 char *t;
2932 char const *s = 0 ? (char *) 0 : (char const *) 0;
2934 *t++ = 0;
2936 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2937 int x[] = {25, 17};
2938 const int *foo = &x[0];
2939 ++foo;
2941 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2942 typedef const int *iptr;
2943 iptr p = 0;
2944 ++p;
2946 { /* AIX XL C 1.02.0.0 rejects this saying
2947 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2948 struct s { int j; const int *ap[3]; };
2949 struct s *b; b->j = 5;
2951 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2952 const int foo = 10;
2955 ; return 0; }
2957 if { (eval echo configure:2958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2958 rm -rf conftest*
2959 ac_cv_c_const=yes
2960 else
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 rm -rf conftest*
2964 ac_cv_c_const=no
2966 rm -f conftest*
2969 echo "$ac_t""$ac_cv_c_const" 1>&6
2970 if test $ac_cv_c_const = no; then
2971 cat >> confdefs.h <<\EOF
2972 #define const
2977 echo $ac_n "checking for inline""... $ac_c" 1>&6
2978 echo "configure:2979: checking for inline" >&5
2979 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 ac_cv_c_inline=no
2983 for ac_kw in inline __inline__ __inline; do
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2988 int main() {
2989 } $ac_kw foo() {
2990 ; return 0; }
2992 if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2993 rm -rf conftest*
2994 ac_cv_c_inline=$ac_kw; break
2995 else
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 rm -f conftest*
3000 done
3004 echo "$ac_t""$ac_cv_c_inline" 1>&6
3005 case "$ac_cv_c_inline" in
3006 inline | yes) ;;
3007 no) cat >> confdefs.h <<\EOF
3008 #define inline
3011 *) cat >> confdefs.h <<EOF
3012 #define inline $ac_cv_c_inline
3015 esac
3017 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3018 echo "configure:3019: checking whether byte ordering is bigendian" >&5
3019 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3021 else
3022 ac_cv_c_bigendian=unknown
3023 # See if sys/param.h defines the BYTE_ORDER macro.
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 #include <sys/types.h>
3028 #include <sys/param.h>
3029 int main() {
3031 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3032 bogus endian macros
3033 #endif
3034 ; return 0; }
3036 if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3037 rm -rf conftest*
3038 # It does; now see whether it defined to BIG_ENDIAN or not.
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 #include <sys/types.h>
3043 #include <sys/param.h>
3044 int main() {
3046 #if BYTE_ORDER != BIG_ENDIAN
3047 not big endian
3048 #endif
3049 ; return 0; }
3051 if { (eval echo configure:3052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3052 rm -rf conftest*
3053 ac_cv_c_bigendian=yes
3054 else
3055 echo "configure: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 rm -rf conftest*
3058 ac_cv_c_bigendian=no
3060 rm -f conftest*
3061 else
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 rm -f conftest*
3066 if test $ac_cv_c_bigendian = unknown; then
3067 if test "$cross_compiling" = yes; then
3068 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3069 else
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 main () {
3074 /* Are we little or big endian? From Harbison&Steele. */
3075 union
3077 long l;
3078 char c[sizeof (long)];
3079 } u;
3080 u.l = 1;
3081 exit (u.c[sizeof (long) - 1] == 1);
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3085 then
3086 ac_cv_c_bigendian=no
3087 else
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 rm -fr conftest*
3091 ac_cv_c_bigendian=yes
3093 rm -fr conftest*
3099 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3100 if test $ac_cv_c_bigendian = yes; then
3101 cat >> confdefs.h <<\EOF
3102 #define WORDS_BIGENDIAN 1
3107 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3108 echo "configure:3109: checking whether char is unsigned" >&5
3109 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3111 else
3112 if test "$GCC" = yes; then
3113 # GCC predefines this symbol on systems where it applies.
3114 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3117 #ifdef __CHAR_UNSIGNED__
3119 #endif
3122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3123 egrep "yes" >/dev/null 2>&1; then
3124 rm -rf conftest*
3125 ac_cv_c_char_unsigned=yes
3126 else
3127 rm -rf conftest*
3128 ac_cv_c_char_unsigned=no
3130 rm -f conftest*
3132 else
3133 if test "$cross_compiling" = yes; then
3134 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3135 else
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3140 #if !defined(__STDC__) || __STDC__ != 1
3141 #define volatile
3142 #endif
3143 main() {
3144 volatile char c = 255; exit(c < 0);
3147 if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3148 then
3149 ac_cv_c_char_unsigned=yes
3150 else
3151 echo "configure: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3153 rm -fr conftest*
3154 ac_cv_c_char_unsigned=no
3156 rm -fr conftest*
3162 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3163 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3164 cat >> confdefs.h <<\EOF
3165 #define __CHAR_UNSIGNED__ 1
3171 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3172 echo "configure:3173: checking return type of signal handlers" >&5
3173 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3175 else
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 #include <sys/types.h>
3180 #include <signal.h>
3181 #ifdef signal
3182 #undef signal
3183 #endif
3184 #ifdef __cplusplus
3185 extern "C" void (*signal (int, void (*)(int)))(int);
3186 #else
3187 void (*signal ()) ();
3188 #endif
3190 int main() {
3191 int i;
3192 ; return 0; }
3194 if { (eval echo configure:3195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 rm -rf conftest*
3196 ac_cv_type_signal=void
3197 else
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 rm -rf conftest*
3201 ac_cv_type_signal=int
3203 rm -f conftest*
3206 echo "$ac_t""$ac_cv_type_signal" 1>&6
3207 cat >> confdefs.h <<EOF
3208 #define RETSIGTYPE $ac_cv_type_signal
3212 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3213 echo "configure:3214: checking for uid_t in sys/types.h" >&5
3214 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3216 else
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 #include <sys/types.h>
3222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 egrep "uid_t" >/dev/null 2>&1; then
3224 rm -rf conftest*
3225 ac_cv_type_uid_t=yes
3226 else
3227 rm -rf conftest*
3228 ac_cv_type_uid_t=no
3230 rm -f conftest*
3234 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3235 if test $ac_cv_type_uid_t = no; then
3236 cat >> confdefs.h <<\EOF
3237 #define uid_t int
3240 cat >> confdefs.h <<\EOF
3241 #define gid_t int
3246 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3247 echo "configure:3248: checking for mode_t" >&5
3248 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3250 else
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <sys/types.h>
3255 #if STDC_HEADERS
3256 #include <stdlib.h>
3257 #include <stddef.h>
3258 #endif
3260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3261 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3262 rm -rf conftest*
3263 ac_cv_type_mode_t=yes
3264 else
3265 rm -rf conftest*
3266 ac_cv_type_mode_t=no
3268 rm -f conftest*
3271 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3272 if test $ac_cv_type_mode_t = no; then
3273 cat >> confdefs.h <<\EOF
3274 #define mode_t int
3279 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3280 echo "configure:3281: checking for off_t" >&5
3281 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3283 else
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 #include <sys/types.h>
3288 #if STDC_HEADERS
3289 #include <stdlib.h>
3290 #include <stddef.h>
3291 #endif
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3295 rm -rf conftest*
3296 ac_cv_type_off_t=yes
3297 else
3298 rm -rf conftest*
3299 ac_cv_type_off_t=no
3301 rm -f conftest*
3304 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3305 if test $ac_cv_type_off_t = no; then
3306 cat >> confdefs.h <<\EOF
3307 #define off_t long
3312 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3313 echo "configure:3314: checking for size_t" >&5
3314 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3316 else
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 #include <sys/types.h>
3321 #if STDC_HEADERS
3322 #include <stdlib.h>
3323 #include <stddef.h>
3324 #endif
3326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3327 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3328 rm -rf conftest*
3329 ac_cv_type_size_t=yes
3330 else
3331 rm -rf conftest*
3332 ac_cv_type_size_t=no
3334 rm -f conftest*
3337 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3338 if test $ac_cv_type_size_t = no; then
3339 cat >> confdefs.h <<\EOF
3340 #define size_t unsigned
3345 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3346 echo "configure:3347: checking for pid_t" >&5
3347 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3349 else
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3353 #include <sys/types.h>
3354 #if STDC_HEADERS
3355 #include <stdlib.h>
3356 #include <stddef.h>
3357 #endif
3359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3360 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3361 rm -rf conftest*
3362 ac_cv_type_pid_t=yes
3363 else
3364 rm -rf conftest*
3365 ac_cv_type_pid_t=no
3367 rm -f conftest*
3370 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3371 if test $ac_cv_type_pid_t = no; then
3372 cat >> confdefs.h <<\EOF
3373 #define pid_t int
3378 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3379 echo "configure:3380: checking for st_rdev in struct stat" >&5
3380 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3382 else
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <sys/types.h>
3387 #include <sys/stat.h>
3388 int main() {
3389 struct stat s; s.st_rdev;
3390 ; return 0; }
3392 if { (eval echo configure:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393 rm -rf conftest*
3394 ac_cv_struct_st_rdev=yes
3395 else
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3398 rm -rf conftest*
3399 ac_cv_struct_st_rdev=no
3401 rm -f conftest*
3404 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3405 if test $ac_cv_struct_st_rdev = yes; then
3406 cat >> confdefs.h <<\EOF
3407 #define HAVE_ST_RDEV 1
3412 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3413 echo "configure:3414: checking for d_off in dirent" >&5
3414 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3416 else
3417 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3421 #include <unistd.h>
3422 #include <sys/types.h>
3423 #include <dirent.h>
3424 int main() {
3425 struct dirent d; d.d_off;
3426 ; return 0; }
3428 if { (eval echo configure:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3429 rm -rf conftest*
3430 ac_cv_dirent_d_off=yes
3431 else
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3434 rm -rf conftest*
3435 ac_cv_dirent_d_off=no
3437 rm -f conftest*
3440 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3441 if test $ac_cv_dirent_d_off = yes; then
3442 cat >> confdefs.h <<\EOF
3443 #define HAVE_DIRENT_D_OFF 1
3448 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3449 echo "configure:3450: checking for ino_t" >&5
3450 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3452 else
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 #include <sys/types.h>
3457 #if STDC_HEADERS
3458 #include <stdlib.h>
3459 #include <stddef.h>
3460 #endif
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3464 rm -rf conftest*
3465 ac_cv_type_ino_t=yes
3466 else
3467 rm -rf conftest*
3468 ac_cv_type_ino_t=no
3470 rm -f conftest*
3473 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3474 if test $ac_cv_type_ino_t = no; then
3475 cat >> confdefs.h <<\EOF
3476 #define ino_t unsigned
3481 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3482 echo "configure:3483: checking for loff_t" >&5
3483 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3485 else
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3490 #if STDC_HEADERS
3491 #include <stdlib.h>
3492 #include <stddef.h>
3493 #endif
3495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3496 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3497 rm -rf conftest*
3498 ac_cv_type_loff_t=yes
3499 else
3500 rm -rf conftest*
3501 ac_cv_type_loff_t=no
3503 rm -f conftest*
3506 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3507 if test $ac_cv_type_loff_t = no; then
3508 cat >> confdefs.h <<\EOF
3509 #define loff_t off_t
3514 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3515 echo "configure:3516: checking for offset_t" >&5
3516 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3518 else
3519 cat > conftest.$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3522 #include <sys/types.h>
3523 #if STDC_HEADERS
3524 #include <stdlib.h>
3525 #include <stddef.h>
3526 #endif
3528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3529 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3530 rm -rf conftest*
3531 ac_cv_type_offset_t=yes
3532 else
3533 rm -rf conftest*
3534 ac_cv_type_offset_t=no
3536 rm -f conftest*
3539 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3540 if test $ac_cv_type_offset_t = no; then
3541 cat >> confdefs.h <<\EOF
3542 #define offset_t loff_t
3547 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3548 echo "configure:3549: checking for ssize_t" >&5
3549 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3551 else
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include <sys/types.h>
3556 #if STDC_HEADERS
3557 #include <stdlib.h>
3558 #include <stddef.h>
3559 #endif
3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3563 rm -rf conftest*
3564 ac_cv_type_ssize_t=yes
3565 else
3566 rm -rf conftest*
3567 ac_cv_type_ssize_t=no
3569 rm -f conftest*
3572 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3573 if test $ac_cv_type_ssize_t = no; then
3574 cat >> confdefs.h <<\EOF
3575 #define ssize_t int
3580 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3581 echo "configure:3582: checking for wchar_t" >&5
3582 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3584 else
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <sys/types.h>
3589 #if STDC_HEADERS
3590 #include <stdlib.h>
3591 #include <stddef.h>
3592 #endif
3594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3595 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3596 rm -rf conftest*
3597 ac_cv_type_wchar_t=yes
3598 else
3599 rm -rf conftest*
3600 ac_cv_type_wchar_t=no
3602 rm -f conftest*
3605 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3606 if test $ac_cv_type_wchar_t = no; then
3607 cat >> confdefs.h <<\EOF
3608 #define wchar_t unsigned short
3614 # we need libcups for CUPS support...
3615 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3616 echo "configure:3617: checking for httpConnect in -lcups" >&5
3617 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3620 else
3621 ac_save_LIBS="$LIBS"
3622 LIBS="-lcups $LIBS"
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* Override any gcc2 internal prototype to avoid an error. */
3627 /* We use char because int might match the return type of a gcc2
3628 builtin and then its argument prototype would still apply. */
3629 char httpConnect();
3631 int main() {
3632 httpConnect()
3633 ; return 0; }
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636 rm -rf conftest*
3637 eval "ac_cv_lib_$ac_lib_var=yes"
3638 else
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3641 rm -rf conftest*
3642 eval "ac_cv_lib_$ac_lib_var=no"
3644 rm -f conftest*
3645 LIBS="$ac_save_LIBS"
3648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3650 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3652 cat >> confdefs.h <<EOF
3653 #define $ac_tr_lib 1
3656 LIBS="-lcups $LIBS"
3658 else
3659 echo "$ac_t""no" 1>&6
3663 # we need libdl for PAM and the new VFS code
3664 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3665 echo "configure:3666: checking for dlopen in -ldl" >&5
3666 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3669 else
3670 ac_save_LIBS="$LIBS"
3671 LIBS="-ldl $LIBS"
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3678 char dlopen();
3680 int main() {
3681 dlopen()
3682 ; return 0; }
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 rm -rf conftest*
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3687 else
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 rm -rf conftest*
3691 eval "ac_cv_lib_$ac_lib_var=no"
3693 rm -f conftest*
3694 LIBS="$ac_save_LIBS"
3697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3699 LIBS="$LIBS -ldl";
3700 cat >> confdefs.h <<\EOF
3701 #define HAVE_LIBDL 1
3704 else
3705 echo "$ac_t""no" 1>&6
3709 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3710 echo "configure:3711: checking for sig_atomic_t type" >&5
3711 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3713 else
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3719 #include <sys/types.h>
3720 #if STDC_HEADERS
3721 #include <stdlib.h>
3722 #include <stddef.h>
3723 #endif
3724 #include <signal.h>
3725 int main() {
3726 sig_atomic_t i = 0
3727 ; return 0; }
3729 if { (eval echo configure:3730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3730 rm -rf conftest*
3731 samba_cv_sig_atomic_t=yes
3732 else
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 rm -rf conftest*
3736 samba_cv_sig_atomic_t=no
3738 rm -f conftest*
3741 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3742 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3743 cat >> confdefs.h <<\EOF
3744 #define HAVE_SIG_ATOMIC_T_TYPE 1
3749 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3750 echo "configure:3751: checking for errno in errno.h" >&5
3751 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3753 else
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 #include <errno.h>
3759 int main() {
3760 int i = errno
3761 ; return 0; }
3763 if { (eval echo configure:3764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3764 rm -rf conftest*
3765 samba_cv_errno=yes
3766 else
3767 echo "configure: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3769 rm -rf conftest*
3770 samba_cv_have_errno=no
3772 rm -f conftest*
3775 echo "$ac_t""$samba_cv_errno" 1>&6
3776 if test x"$samba_cv_errno" = x"yes"; then
3777 cat >> confdefs.h <<\EOF
3778 #define HAVE_ERRNO_DECL 1
3783 # stupid glibc has the functions but no declaration. grrrr.
3784 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3785 echo "configure:3786: checking for setresuid declaration" >&5
3786 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3788 else
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 #include <unistd.h>
3794 int main() {
3795 int i = (int)setresuid
3796 ; return 0; }
3798 if { (eval echo configure:3799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3799 rm -rf conftest*
3800 samba_cv_have_setresuid_decl=yes
3801 else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -rf conftest*
3805 samba_cv_have_setresuid_decl=no
3807 rm -f conftest*
3810 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3811 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_SETRESUID_DECL 1
3818 # stupid glibc has the functions but no declaration. grrrr.
3819 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3820 echo "configure:3821: checking for setresgid declaration" >&5
3821 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3823 else
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 #include <unistd.h>
3829 int main() {
3830 int i = (int)setresgid
3831 ; return 0; }
3833 if { (eval echo configure:3834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3834 rm -rf conftest*
3835 samba_cv_have_setresgid_decl=yes
3836 else
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3839 rm -rf conftest*
3840 samba_cv_have_setresgid_decl=no
3842 rm -f conftest*
3845 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3846 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3847 cat >> confdefs.h <<\EOF
3848 #define HAVE_SETRESGID_DECL 1
3853 # and glibc has setresuid under linux but the function does
3854 # nothing until kernel 2.1.44! very dumb.
3855 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3856 echo "configure:3857: checking for real setresuid" >&5
3857 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3859 else
3861 if test "$cross_compiling" = yes; then
3862 samba_cv_have_setresuid=cross
3863 else
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 #include <errno.h>
3868 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3871 then
3872 samba_cv_have_setresuid=yes
3873 else
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3876 rm -fr conftest*
3877 samba_cv_have_setresuid=no
3879 rm -fr conftest*
3884 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3885 if test x"$samba_cv_have_setresuid" = x"yes"; then
3886 cat >> confdefs.h <<\EOF
3887 #define HAVE_SETRESUID 1
3892 # Do the same check for setresguid...
3894 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3895 echo "configure:3896: checking for real setresgid" >&5
3896 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3898 else
3900 if test "$cross_compiling" = yes; then
3901 samba_cv_have_setresgid=cross
3902 else
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 #include <unistd.h>
3907 #include <errno.h>
3908 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3911 then
3912 samba_cv_have_setresgid=yes
3913 else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -fr conftest*
3917 samba_cv_have_setresgid=no
3919 rm -fr conftest*
3924 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3925 if test x"$samba_cv_have_setresgid" = x"yes"; then
3926 cat >> confdefs.h <<\EOF
3927 #define HAVE_SETRESGID 1
3932 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3933 echo "configure:3934: checking for 8-bit clean memcmp" >&5
3934 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3936 else
3937 if test "$cross_compiling" = yes; then
3938 ac_cv_func_memcmp_clean=no
3939 else
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3944 main()
3946 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3947 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3951 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3952 then
3953 ac_cv_func_memcmp_clean=yes
3954 else
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3957 rm -fr conftest*
3958 ac_cv_func_memcmp_clean=no
3960 rm -fr conftest*
3965 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3966 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3969 ###############################################
3970 # test for where we get crypt() from
3971 for ac_func in crypt
3973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3974 echo "configure:3975: checking for $ac_func" >&5
3975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3977 else
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 /* System header to define __stub macros and hopefully few prototypes,
3982 which can conflict with char $ac_func(); below. */
3983 #include <assert.h>
3984 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3987 char $ac_func();
3989 int main() {
3991 /* The GNU C library defines this for functions which it implements
3992 to always fail with ENOSYS. Some functions are actually named
3993 something starting with __ and the normal name is an alias. */
3994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3995 choke me
3996 #else
3997 $ac_func();
3998 #endif
4000 ; return 0; }
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 rm -rf conftest*
4004 eval "ac_cv_func_$ac_func=yes"
4005 else
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4008 rm -rf conftest*
4009 eval "ac_cv_func_$ac_func=no"
4011 rm -f conftest*
4014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4017 cat >> confdefs.h <<EOF
4018 #define $ac_tr_func 1
4021 else
4022 echo "$ac_t""no" 1>&6
4024 done
4026 if test x"$ac_cv_func_crypt" = x"no"; then
4027 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4028 echo "configure:4029: checking for crypt in -lcrypt" >&5
4029 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4032 else
4033 ac_save_LIBS="$LIBS"
4034 LIBS="-lcrypt $LIBS"
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 /* Override any gcc2 internal prototype to avoid an error. */
4039 /* We use char because int might match the return type of a gcc2
4040 builtin and then its argument prototype would still apply. */
4041 char crypt();
4043 int main() {
4044 crypt()
4045 ; return 0; }
4047 if { (eval echo configure:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4048 rm -rf conftest*
4049 eval "ac_cv_lib_$ac_lib_var=yes"
4050 else
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4053 rm -rf conftest*
4054 eval "ac_cv_lib_$ac_lib_var=no"
4056 rm -f conftest*
4057 LIBS="$ac_save_LIBS"
4060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 LIBS="$LIBS -lcrypt";
4063 cat >> confdefs.h <<\EOF
4064 #define HAVE_CRYPT 1
4067 else
4068 echo "$ac_t""no" 1>&6
4074 ###############################################
4075 # test for where we get readline() from
4076 if test "$ac_cv_header_readline_h" = "yes" ||
4077 test "$ac_cv_header_readline_readline_h" = "yes"; then
4078 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4079 echo "configure:4080: checking for readline in -lreadline" >&5
4080 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4083 else
4084 ac_save_LIBS="$LIBS"
4085 LIBS="-lreadline $LIBS"
4086 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4089 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4092 char readline();
4094 int main() {
4095 readline()
4096 ; return 0; }
4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4099 rm -rf conftest*
4100 eval "ac_cv_lib_$ac_lib_var=yes"
4101 else
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4104 rm -rf conftest*
4105 eval "ac_cv_lib_$ac_lib_var=no"
4107 rm -f conftest*
4108 LIBS="$ac_save_LIBS"
4111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4112 echo "$ac_t""yes" 1>&6
4113 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4115 cat >> confdefs.h <<EOF
4116 #define $ac_tr_lib 1
4119 LIBS="-lreadline $LIBS"
4121 else
4122 echo "$ac_t""no" 1>&6
4128 # The following test taken from the cvs sources
4129 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4130 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4131 # libsocket.so which has a bad implementation of gethostbyname (it
4132 # only looks in /etc/hosts), so we only look for -lsocket if we need
4133 # it.
4134 for ac_func in connect
4136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4137 echo "configure:4138: checking for $ac_func" >&5
4138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4140 else
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* System header to define __stub macros and hopefully few prototypes,
4145 which can conflict with char $ac_func(); below. */
4146 #include <assert.h>
4147 /* Override any gcc2 internal prototype to avoid an error. */
4148 /* We use char because int might match the return type of a gcc2
4149 builtin and then its argument prototype would still apply. */
4150 char $ac_func();
4152 int main() {
4154 /* The GNU C library defines this for functions which it implements
4155 to always fail with ENOSYS. Some functions are actually named
4156 something starting with __ and the normal name is an alias. */
4157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4158 choke me
4159 #else
4160 $ac_func();
4161 #endif
4163 ; return 0; }
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4166 rm -rf conftest*
4167 eval "ac_cv_func_$ac_func=yes"
4168 else
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 rm -rf conftest*
4172 eval "ac_cv_func_$ac_func=no"
4174 rm -f conftest*
4177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4178 echo "$ac_t""yes" 1>&6
4179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4180 cat >> confdefs.h <<EOF
4181 #define $ac_tr_func 1
4184 else
4185 echo "$ac_t""no" 1>&6
4187 done
4189 if test x"$ac_cv_func_connect" = x"no"; then
4190 case "$LIBS" in
4191 *-lnsl*) ;;
4192 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4193 echo "configure:4194: checking for printf in -lnsl_s" >&5
4194 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4197 else
4198 ac_save_LIBS="$LIBS"
4199 LIBS="-lnsl_s $LIBS"
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4203 /* Override any gcc2 internal prototype to avoid an error. */
4204 /* We use char because int might match the return type of a gcc2
4205 builtin and then its argument prototype would still apply. */
4206 char printf();
4208 int main() {
4209 printf()
4210 ; return 0; }
4212 if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4213 rm -rf conftest*
4214 eval "ac_cv_lib_$ac_lib_var=yes"
4215 else
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4218 rm -rf conftest*
4219 eval "ac_cv_lib_$ac_lib_var=no"
4221 rm -f conftest*
4222 LIBS="$ac_save_LIBS"
4225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4226 echo "$ac_t""yes" 1>&6
4227 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4229 cat >> confdefs.h <<EOF
4230 #define $ac_tr_lib 1
4233 LIBS="-lnsl_s $LIBS"
4235 else
4236 echo "$ac_t""no" 1>&6
4239 esac
4240 case "$LIBS" in
4241 *-lnsl*) ;;
4242 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4243 echo "configure:4244: checking for printf in -lnsl" >&5
4244 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4247 else
4248 ac_save_LIBS="$LIBS"
4249 LIBS="-lnsl $LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4256 char printf();
4258 int main() {
4259 printf()
4260 ; return 0; }
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263 rm -rf conftest*
4264 eval "ac_cv_lib_$ac_lib_var=yes"
4265 else
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4268 rm -rf conftest*
4269 eval "ac_cv_lib_$ac_lib_var=no"
4271 rm -f conftest*
4272 LIBS="$ac_save_LIBS"
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4277 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4278 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4279 cat >> confdefs.h <<EOF
4280 #define $ac_tr_lib 1
4283 LIBS="-lnsl $LIBS"
4285 else
4286 echo "$ac_t""no" 1>&6
4289 esac
4290 case "$LIBS" in
4291 *-lsocket*) ;;
4292 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4293 echo "configure:4294: checking for connect in -lsocket" >&5
4294 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4297 else
4298 ac_save_LIBS="$LIBS"
4299 LIBS="-lsocket $LIBS"
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4303 /* Override any gcc2 internal prototype to avoid an error. */
4304 /* We use char because int might match the return type of a gcc2
4305 builtin and then its argument prototype would still apply. */
4306 char connect();
4308 int main() {
4309 connect()
4310 ; return 0; }
4312 if { (eval echo configure:4313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313 rm -rf conftest*
4314 eval "ac_cv_lib_$ac_lib_var=yes"
4315 else
4316 echo "configure: failed program was:" >&5
4317 cat conftest.$ac_ext >&5
4318 rm -rf conftest*
4319 eval "ac_cv_lib_$ac_lib_var=no"
4321 rm -f conftest*
4322 LIBS="$ac_save_LIBS"
4325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4326 echo "$ac_t""yes" 1>&6
4327 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4329 cat >> confdefs.h <<EOF
4330 #define $ac_tr_lib 1
4333 LIBS="-lsocket $LIBS"
4335 else
4336 echo "$ac_t""no" 1>&6
4339 esac
4340 case "$LIBS" in
4341 *-linet*) ;;
4342 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4343 echo "configure:4344: checking for connect in -linet" >&5
4344 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4347 else
4348 ac_save_LIBS="$LIBS"
4349 LIBS="-linet $LIBS"
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 /* Override any gcc2 internal prototype to avoid an error. */
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4356 char connect();
4358 int main() {
4359 connect()
4360 ; return 0; }
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4363 rm -rf conftest*
4364 eval "ac_cv_lib_$ac_lib_var=yes"
4365 else
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4368 rm -rf conftest*
4369 eval "ac_cv_lib_$ac_lib_var=no"
4371 rm -f conftest*
4372 LIBS="$ac_save_LIBS"
4375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4377 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4378 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4379 cat >> confdefs.h <<EOF
4380 #define $ac_tr_lib 1
4383 LIBS="-linet $LIBS"
4385 else
4386 echo "$ac_t""no" 1>&6
4389 esac
4390 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4391 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4392 # ac_cv_func_connect=yes
4393 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4394 cat >> confdefs.h <<\EOF
4395 #define HAVE_CONNECT 1
4401 # Check if we have execl, if not we need to compile smbrun.
4402 for ac_func in execl
4404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4405 echo "configure:4406: checking for $ac_func" >&5
4406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4408 else
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* System header to define __stub macros and hopefully few prototypes,
4413 which can conflict with char $ac_func(); below. */
4414 #include <assert.h>
4415 /* Override any gcc2 internal prototype to avoid an error. */
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4418 char $ac_func();
4420 int main() {
4422 /* The GNU C library defines this for functions which it implements
4423 to always fail with ENOSYS. Some functions are actually named
4424 something starting with __ and the normal name is an alias. */
4425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4426 choke me
4427 #else
4428 $ac_func();
4429 #endif
4431 ; return 0; }
4433 if { (eval echo configure:4434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4434 rm -rf conftest*
4435 eval "ac_cv_func_$ac_func=yes"
4436 else
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 rm -rf conftest*
4440 eval "ac_cv_func_$ac_func=no"
4442 rm -f conftest*
4445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4446 echo "$ac_t""yes" 1>&6
4447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4448 cat >> confdefs.h <<EOF
4449 #define $ac_tr_func 1
4452 else
4453 echo "$ac_t""no" 1>&6
4455 done
4457 if test x"$ac_cv_func_execl" = x"no"; then
4458 RUNPROG="bin/smbrun"
4459 else
4460 RUNPROG=""
4463 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4466 echo "configure:4467: checking for $ac_func" >&5
4467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4469 else
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* System header to define __stub macros and hopefully few prototypes,
4474 which can conflict with char $ac_func(); below. */
4475 #include <assert.h>
4476 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4479 char $ac_func();
4481 int main() {
4483 /* The GNU C library defines this for functions which it implements
4484 to always fail with ENOSYS. Some functions are actually named
4485 something starting with __ and the normal name is an alias. */
4486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4487 choke me
4488 #else
4489 $ac_func();
4490 #endif
4492 ; return 0; }
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 rm -rf conftest*
4496 eval "ac_cv_func_$ac_func=yes"
4497 else
4498 echo "configure: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 rm -rf conftest*
4501 eval "ac_cv_func_$ac_func=no"
4503 rm -f conftest*
4506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4507 echo "$ac_t""yes" 1>&6
4508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4509 cat >> confdefs.h <<EOF
4510 #define $ac_tr_func 1
4513 else
4514 echo "$ac_t""no" 1>&6
4516 done
4518 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4521 echo "configure:4522: checking for $ac_func" >&5
4522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4524 else
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 /* System header to define __stub macros and hopefully few prototypes,
4529 which can conflict with char $ac_func(); below. */
4530 #include <assert.h>
4531 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4534 char $ac_func();
4536 int main() {
4538 /* The GNU C library defines this for functions which it implements
4539 to always fail with ENOSYS. Some functions are actually named
4540 something starting with __ and the normal name is an alias. */
4541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4542 choke me
4543 #else
4544 $ac_func();
4545 #endif
4547 ; return 0; }
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 rm -rf conftest*
4551 eval "ac_cv_func_$ac_func=yes"
4552 else
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4555 rm -rf conftest*
4556 eval "ac_cv_func_$ac_func=no"
4558 rm -f conftest*
4561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_func 1
4568 else
4569 echo "$ac_t""no" 1>&6
4571 done
4573 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_func" >&5
4577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4579 else
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 /* System header to define __stub macros and hopefully few prototypes,
4584 which can conflict with char $ac_func(); below. */
4585 #include <assert.h>
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4589 char $ac_func();
4591 int main() {
4593 /* The GNU C library defines this for functions which it implements
4594 to always fail with ENOSYS. Some functions are actually named
4595 something starting with __ and the normal name is an alias. */
4596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4597 choke me
4598 #else
4599 $ac_func();
4600 #endif
4602 ; return 0; }
4604 if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4605 rm -rf conftest*
4606 eval "ac_cv_func_$ac_func=yes"
4607 else
4608 echo "configure: failed program was:" >&5
4609 cat conftest.$ac_ext >&5
4610 rm -rf conftest*
4611 eval "ac_cv_func_$ac_func=no"
4613 rm -f conftest*
4616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4619 cat >> confdefs.h <<EOF
4620 #define $ac_tr_func 1
4623 else
4624 echo "$ac_t""no" 1>&6
4626 done
4628 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4631 echo "configure:4632: checking for $ac_func" >&5
4632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4634 else
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4638 /* System header to define __stub macros and hopefully few prototypes,
4639 which can conflict with char $ac_func(); below. */
4640 #include <assert.h>
4641 /* Override any gcc2 internal prototype to avoid an error. */
4642 /* We use char because int might match the return type of a gcc2
4643 builtin and then its argument prototype would still apply. */
4644 char $ac_func();
4646 int main() {
4648 /* The GNU C library defines this for functions which it implements
4649 to always fail with ENOSYS. Some functions are actually named
4650 something starting with __ and the normal name is an alias. */
4651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4652 choke me
4653 #else
4654 $ac_func();
4655 #endif
4657 ; return 0; }
4659 if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 rm -rf conftest*
4661 eval "ac_cv_func_$ac_func=yes"
4662 else
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4665 rm -rf conftest*
4666 eval "ac_cv_func_$ac_func=no"
4668 rm -f conftest*
4671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4674 cat >> confdefs.h <<EOF
4675 #define $ac_tr_func 1
4678 else
4679 echo "$ac_t""no" 1>&6
4681 done
4683 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
4685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4686 echo "configure:4687: checking for $ac_func" >&5
4687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4689 else
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 /* System header to define __stub macros and hopefully few prototypes,
4694 which can conflict with char $ac_func(); below. */
4695 #include <assert.h>
4696 /* Override any gcc2 internal prototype to avoid an error. */
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699 char $ac_func();
4701 int main() {
4703 /* The GNU C library defines this for functions which it implements
4704 to always fail with ENOSYS. Some functions are actually named
4705 something starting with __ and the normal name is an alias. */
4706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4707 choke me
4708 #else
4709 $ac_func();
4710 #endif
4712 ; return 0; }
4714 if { (eval echo configure:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4715 rm -rf conftest*
4716 eval "ac_cv_func_$ac_func=yes"
4717 else
4718 echo "configure: failed program was:" >&5
4719 cat conftest.$ac_ext >&5
4720 rm -rf conftest*
4721 eval "ac_cv_func_$ac_func=no"
4723 rm -f conftest*
4726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4727 echo "$ac_t""yes" 1>&6
4728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4729 cat >> confdefs.h <<EOF
4730 #define $ac_tr_func 1
4733 else
4734 echo "$ac_t""no" 1>&6
4736 done
4738 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4741 echo "configure:4742: checking for $ac_func" >&5
4742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4744 else
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4748 /* System header to define __stub macros and hopefully few prototypes,
4749 which can conflict with char $ac_func(); below. */
4750 #include <assert.h>
4751 /* Override any gcc2 internal prototype to avoid an error. */
4752 /* We use char because int might match the return type of a gcc2
4753 builtin and then its argument prototype would still apply. */
4754 char $ac_func();
4756 int main() {
4758 /* The GNU C library defines this for functions which it implements
4759 to always fail with ENOSYS. Some functions are actually named
4760 something starting with __ and the normal name is an alias. */
4761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4762 choke me
4763 #else
4764 $ac_func();
4765 #endif
4767 ; return 0; }
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4770 rm -rf conftest*
4771 eval "ac_cv_func_$ac_func=yes"
4772 else
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 rm -rf conftest*
4776 eval "ac_cv_func_$ac_func=no"
4778 rm -f conftest*
4781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4782 echo "$ac_t""yes" 1>&6
4783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4784 cat >> confdefs.h <<EOF
4785 #define $ac_tr_func 1
4788 else
4789 echo "$ac_t""no" 1>&6
4791 done
4793 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4796 echo "configure:4797: checking for $ac_func" >&5
4797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4799 else
4800 cat > conftest.$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4803 /* System header to define __stub macros and hopefully few prototypes,
4804 which can conflict with char $ac_func(); below. */
4805 #include <assert.h>
4806 /* Override any gcc2 internal prototype to avoid an error. */
4807 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */
4809 char $ac_func();
4811 int main() {
4813 /* The GNU C library defines this for functions which it implements
4814 to always fail with ENOSYS. Some functions are actually named
4815 something starting with __ and the normal name is an alias. */
4816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4817 choke me
4818 #else
4819 $ac_func();
4820 #endif
4822 ; return 0; }
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4825 rm -rf conftest*
4826 eval "ac_cv_func_$ac_func=yes"
4827 else
4828 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 rm -rf conftest*
4831 eval "ac_cv_func_$ac_func=no"
4833 rm -f conftest*
4836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4839 cat >> confdefs.h <<EOF
4840 #define $ac_tr_func 1
4843 else
4844 echo "$ac_t""no" 1>&6
4846 done
4848 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4851 echo "configure:4852: checking for $ac_func" >&5
4852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4854 else
4855 cat > conftest.$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 /* System header to define __stub macros and hopefully few prototypes,
4859 which can conflict with char $ac_func(); below. */
4860 #include <assert.h>
4861 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4864 char $ac_func();
4866 int main() {
4868 /* The GNU C library defines this for functions which it implements
4869 to always fail with ENOSYS. Some functions are actually named
4870 something starting with __ and the normal name is an alias. */
4871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4872 choke me
4873 #else
4874 $ac_func();
4875 #endif
4877 ; return 0; }
4879 if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 rm -rf conftest*
4881 eval "ac_cv_func_$ac_func=yes"
4882 else
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 rm -rf conftest*
4886 eval "ac_cv_func_$ac_func=no"
4888 rm -f conftest*
4891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4894 cat >> confdefs.h <<EOF
4895 #define $ac_tr_func 1
4898 else
4899 echo "$ac_t""no" 1>&6
4901 done
4903 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
4905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_func" >&5
4907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4909 else
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* System header to define __stub macros and hopefully few prototypes,
4914 which can conflict with char $ac_func(); below. */
4915 #include <assert.h>
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4919 char $ac_func();
4921 int main() {
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4927 choke me
4928 #else
4929 $ac_func();
4930 #endif
4932 ; return 0; }
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4935 rm -rf conftest*
4936 eval "ac_cv_func_$ac_func=yes"
4937 else
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4940 rm -rf conftest*
4941 eval "ac_cv_func_$ac_func=no"
4943 rm -f conftest*
4946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4947 echo "$ac_t""yes" 1>&6
4948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4949 cat >> confdefs.h <<EOF
4950 #define $ac_tr_func 1
4953 else
4954 echo "$ac_t""no" 1>&6
4956 done
4959 # syscall() is needed for smbwrapper.
4960 for ac_func in syscall
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4966 else
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971 which can conflict with char $ac_func(); below. */
4972 #include <assert.h>
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4976 char $ac_func();
4978 int main() {
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4984 choke me
4985 #else
4986 $ac_func();
4987 #endif
4989 ; return 0; }
4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4992 rm -rf conftest*
4993 eval "ac_cv_func_$ac_func=yes"
4994 else
4995 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4997 rm -rf conftest*
4998 eval "ac_cv_func_$ac_func=no"
5000 rm -f conftest*
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5006 cat >> confdefs.h <<EOF
5007 #define $ac_tr_func 1
5010 else
5011 echo "$ac_t""no" 1>&6
5013 done
5016 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5019 echo "configure:5020: checking for $ac_func" >&5
5020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5022 else
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027 which can conflict with char $ac_func(); below. */
5028 #include <assert.h>
5029 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5032 char $ac_func();
5034 int main() {
5036 /* The GNU C library defines this for functions which it implements
5037 to always fail with ENOSYS. Some functions are actually named
5038 something starting with __ and the normal name is an alias. */
5039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5040 choke me
5041 #else
5042 $ac_func();
5043 #endif
5045 ; return 0; }
5047 if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 rm -rf conftest*
5049 eval "ac_cv_func_$ac_func=yes"
5050 else
5051 echo "configure: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 rm -rf conftest*
5054 eval "ac_cv_func_$ac_func=no"
5056 rm -f conftest*
5059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5062 cat >> confdefs.h <<EOF
5063 #define $ac_tr_func 1
5066 else
5067 echo "$ac_t""no" 1>&6
5069 done
5071 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5074 echo "configure:5075: checking for $ac_func" >&5
5075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5077 else
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5081 /* System header to define __stub macros and hopefully few prototypes,
5082 which can conflict with char $ac_func(); below. */
5083 #include <assert.h>
5084 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5087 char $ac_func();
5089 int main() {
5091 /* The GNU C library defines this for functions which it implements
5092 to always fail with ENOSYS. Some functions are actually named
5093 something starting with __ and the normal name is an alias. */
5094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5095 choke me
5096 #else
5097 $ac_func();
5098 #endif
5100 ; return 0; }
5102 if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5103 rm -rf conftest*
5104 eval "ac_cv_func_$ac_func=yes"
5105 else
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5108 rm -rf conftest*
5109 eval "ac_cv_func_$ac_func=no"
5111 rm -f conftest*
5114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5115 echo "$ac_t""yes" 1>&6
5116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5117 cat >> confdefs.h <<EOF
5118 #define $ac_tr_func 1
5121 else
5122 echo "$ac_t""no" 1>&6
5124 done
5126 for ac_func in __getcwd _getcwd
5128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5129 echo "configure:5130: checking for $ac_func" >&5
5130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5132 else
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 /* System header to define __stub macros and hopefully few prototypes,
5137 which can conflict with char $ac_func(); below. */
5138 #include <assert.h>
5139 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5142 char $ac_func();
5144 int main() {
5146 /* The GNU C library defines this for functions which it implements
5147 to always fail with ENOSYS. Some functions are actually named
5148 something starting with __ and the normal name is an alias. */
5149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5150 choke me
5151 #else
5152 $ac_func();
5153 #endif
5155 ; return 0; }
5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5158 rm -rf conftest*
5159 eval "ac_cv_func_$ac_func=yes"
5160 else
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5163 rm -rf conftest*
5164 eval "ac_cv_func_$ac_func=no"
5166 rm -f conftest*
5169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5170 echo "$ac_t""yes" 1>&6
5171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5172 cat >> confdefs.h <<EOF
5173 #define $ac_tr_func 1
5176 else
5177 echo "$ac_t""no" 1>&6
5179 done
5181 for ac_func in __xstat __fxstat __lxstat
5183 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5184 echo "configure:5185: checking for $ac_func" >&5
5185 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5187 else
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func(); below. */
5193 #include <assert.h>
5194 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5197 char $ac_func();
5199 int main() {
5201 /* The GNU C library defines this for functions which it implements
5202 to always fail with ENOSYS. Some functions are actually named
5203 something starting with __ and the normal name is an alias. */
5204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5205 choke me
5206 #else
5207 $ac_func();
5208 #endif
5210 ; return 0; }
5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5213 rm -rf conftest*
5214 eval "ac_cv_func_$ac_func=yes"
5215 else
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5218 rm -rf conftest*
5219 eval "ac_cv_func_$ac_func=no"
5221 rm -f conftest*
5224 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5225 echo "$ac_t""yes" 1>&6
5226 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5227 cat >> confdefs.h <<EOF
5228 #define $ac_tr_func 1
5231 else
5232 echo "$ac_t""no" 1>&6
5234 done
5236 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5239 echo "configure:5240: checking for $ac_func" >&5
5240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5241 echo $ac_n "(cached) $ac_c" 1>&6
5242 else
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5246 /* System header to define __stub macros and hopefully few prototypes,
5247 which can conflict with char $ac_func(); below. */
5248 #include <assert.h>
5249 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5252 char $ac_func();
5254 int main() {
5256 /* The GNU C library defines this for functions which it implements
5257 to always fail with ENOSYS. Some functions are actually named
5258 something starting with __ and the normal name is an alias. */
5259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5260 choke me
5261 #else
5262 $ac_func();
5263 #endif
5265 ; return 0; }
5267 if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5268 rm -rf conftest*
5269 eval "ac_cv_func_$ac_func=yes"
5270 else
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5273 rm -rf conftest*
5274 eval "ac_cv_func_$ac_func=no"
5276 rm -f conftest*
5279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5280 echo "$ac_t""yes" 1>&6
5281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5282 cat >> confdefs.h <<EOF
5283 #define $ac_tr_func 1
5286 else
5287 echo "$ac_t""no" 1>&6
5289 done
5291 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5294 echo "configure:5295: checking for $ac_func" >&5
5295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5297 else
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 /* System header to define __stub macros and hopefully few prototypes,
5302 which can conflict with char $ac_func(); below. */
5303 #include <assert.h>
5304 /* Override any gcc2 internal prototype to avoid an error. */
5305 /* We use char because int might match the return type of a gcc2
5306 builtin and then its argument prototype would still apply. */
5307 char $ac_func();
5309 int main() {
5311 /* The GNU C library defines this for functions which it implements
5312 to always fail with ENOSYS. Some functions are actually named
5313 something starting with __ and the normal name is an alias. */
5314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5315 choke me
5316 #else
5317 $ac_func();
5318 #endif
5320 ; return 0; }
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 rm -rf conftest*
5324 eval "ac_cv_func_$ac_func=yes"
5325 else
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5328 rm -rf conftest*
5329 eval "ac_cv_func_$ac_func=no"
5331 rm -f conftest*
5334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5335 echo "$ac_t""yes" 1>&6
5336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5337 cat >> confdefs.h <<EOF
5338 #define $ac_tr_func 1
5341 else
5342 echo "$ac_t""no" 1>&6
5344 done
5346 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5349 echo "configure:5350: checking for $ac_func" >&5
5350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5352 else
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 /* System header to define __stub macros and hopefully few prototypes,
5357 which can conflict with char $ac_func(); below. */
5358 #include <assert.h>
5359 /* Override any gcc2 internal prototype to avoid an error. */
5360 /* We use char because int might match the return type of a gcc2
5361 builtin and then its argument prototype would still apply. */
5362 char $ac_func();
5364 int main() {
5366 /* The GNU C library defines this for functions which it implements
5367 to always fail with ENOSYS. Some functions are actually named
5368 something starting with __ and the normal name is an alias. */
5369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5370 choke me
5371 #else
5372 $ac_func();
5373 #endif
5375 ; return 0; }
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 rm -rf conftest*
5379 eval "ac_cv_func_$ac_func=yes"
5380 else
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 rm -rf conftest*
5384 eval "ac_cv_func_$ac_func=no"
5386 rm -f conftest*
5389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5390 echo "$ac_t""yes" 1>&6
5391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5392 cat >> confdefs.h <<EOF
5393 #define $ac_tr_func 1
5396 else
5397 echo "$ac_t""no" 1>&6
5399 done
5401 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5404 echo "configure:5405: checking for $ac_func" >&5
5405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5407 else
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411 /* System header to define __stub macros and hopefully few prototypes,
5412 which can conflict with char $ac_func(); below. */
5413 #include <assert.h>
5414 /* Override any gcc2 internal prototype to avoid an error. */
5415 /* We use char because int might match the return type of a gcc2
5416 builtin and then its argument prototype would still apply. */
5417 char $ac_func();
5419 int main() {
5421 /* The GNU C library defines this for functions which it implements
5422 to always fail with ENOSYS. Some functions are actually named
5423 something starting with __ and the normal name is an alias. */
5424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5425 choke me
5426 #else
5427 $ac_func();
5428 #endif
5430 ; return 0; }
5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433 rm -rf conftest*
5434 eval "ac_cv_func_$ac_func=yes"
5435 else
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 rm -rf conftest*
5439 eval "ac_cv_func_$ac_func=no"
5441 rm -f conftest*
5444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5445 echo "$ac_t""yes" 1>&6
5446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5447 cat >> confdefs.h <<EOF
5448 #define $ac_tr_func 1
5451 else
5452 echo "$ac_t""no" 1>&6
5454 done
5456 for ac_func in _write __write _fork __fork
5458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5459 echo "configure:5460: checking for $ac_func" >&5
5460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5462 else
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 /* System header to define __stub macros and hopefully few prototypes,
5467 which can conflict with char $ac_func(); below. */
5468 #include <assert.h>
5469 /* Override any gcc2 internal prototype to avoid an error. */
5470 /* We use char because int might match the return type of a gcc2
5471 builtin and then its argument prototype would still apply. */
5472 char $ac_func();
5474 int main() {
5476 /* The GNU C library defines this for functions which it implements
5477 to always fail with ENOSYS. Some functions are actually named
5478 something starting with __ and the normal name is an alias. */
5479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5480 choke me
5481 #else
5482 $ac_func();
5483 #endif
5485 ; return 0; }
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5488 rm -rf conftest*
5489 eval "ac_cv_func_$ac_func=yes"
5490 else
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5493 rm -rf conftest*
5494 eval "ac_cv_func_$ac_func=no"
5496 rm -f conftest*
5499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5500 echo "$ac_t""yes" 1>&6
5501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5502 cat >> confdefs.h <<EOF
5503 #define $ac_tr_func 1
5506 else
5507 echo "$ac_t""no" 1>&6
5509 done
5511 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5514 echo "configure:5515: checking for $ac_func" >&5
5515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5517 else
5518 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure"
5520 #include "confdefs.h"
5521 /* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char $ac_func(); below. */
5523 #include <assert.h>
5524 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5527 char $ac_func();
5529 int main() {
5531 /* The GNU C library defines this for functions which it implements
5532 to always fail with ENOSYS. Some functions are actually named
5533 something starting with __ and the normal name is an alias. */
5534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5535 choke me
5536 #else
5537 $ac_func();
5538 #endif
5540 ; return 0; }
5542 if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5543 rm -rf conftest*
5544 eval "ac_cv_func_$ac_func=yes"
5545 else
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5548 rm -rf conftest*
5549 eval "ac_cv_func_$ac_func=no"
5551 rm -f conftest*
5554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5557 cat >> confdefs.h <<EOF
5558 #define $ac_tr_func 1
5561 else
5562 echo "$ac_t""no" 1>&6
5564 done
5566 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5569 echo "configure:5570: checking for $ac_func" >&5
5570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5572 else
5573 cat > conftest.$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5576 /* System header to define __stub macros and hopefully few prototypes,
5577 which can conflict with char $ac_func(); below. */
5578 #include <assert.h>
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 /* We use char because int might match the return type of a gcc2
5581 builtin and then its argument prototype would still apply. */
5582 char $ac_func();
5584 int main() {
5586 /* The GNU C library defines this for functions which it implements
5587 to always fail with ENOSYS. Some functions are actually named
5588 something starting with __ and the normal name is an alias. */
5589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5590 choke me
5591 #else
5592 $ac_func();
5593 #endif
5595 ; return 0; }
5597 if { (eval echo configure:5598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5598 rm -rf conftest*
5599 eval "ac_cv_func_$ac_func=yes"
5600 else
5601 echo "configure: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5603 rm -rf conftest*
5604 eval "ac_cv_func_$ac_func=no"
5606 rm -f conftest*
5609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5610 echo "$ac_t""yes" 1>&6
5611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5612 cat >> confdefs.h <<EOF
5613 #define $ac_tr_func 1
5616 else
5617 echo "$ac_t""no" 1>&6
5619 done
5621 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5624 echo "configure:5625: checking for $ac_func" >&5
5625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5627 else
5628 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5631 /* System header to define __stub macros and hopefully few prototypes,
5632 which can conflict with char $ac_func(); below. */
5633 #include <assert.h>
5634 /* Override any gcc2 internal prototype to avoid an error. */
5635 /* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5637 char $ac_func();
5639 int main() {
5641 /* The GNU C library defines this for functions which it implements
5642 to always fail with ENOSYS. Some functions are actually named
5643 something starting with __ and the normal name is an alias. */
5644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5645 choke me
5646 #else
5647 $ac_func();
5648 #endif
5650 ; return 0; }
5652 if { (eval echo configure:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5653 rm -rf conftest*
5654 eval "ac_cv_func_$ac_func=yes"
5655 else
5656 echo "configure: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5658 rm -rf conftest*
5659 eval "ac_cv_func_$ac_func=no"
5661 rm -f conftest*
5664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5667 cat >> confdefs.h <<EOF
5668 #define $ac_tr_func 1
5671 else
5672 echo "$ac_t""no" 1>&6
5674 done
5676 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5678 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5679 echo "configure:5680: checking for $ac_func" >&5
5680 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5682 else
5683 cat > conftest.$ac_ext <<EOF
5684 #line 5685 "configure"
5685 #include "confdefs.h"
5686 /* System header to define __stub macros and hopefully few prototypes,
5687 which can conflict with char $ac_func(); below. */
5688 #include <assert.h>
5689 /* Override any gcc2 internal prototype to avoid an error. */
5690 /* We use char because int might match the return type of a gcc2
5691 builtin and then its argument prototype would still apply. */
5692 char $ac_func();
5694 int main() {
5696 /* The GNU C library defines this for functions which it implements
5697 to always fail with ENOSYS. Some functions are actually named
5698 something starting with __ and the normal name is an alias. */
5699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5700 choke me
5701 #else
5702 $ac_func();
5703 #endif
5705 ; return 0; }
5707 if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5708 rm -rf conftest*
5709 eval "ac_cv_func_$ac_func=yes"
5710 else
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5713 rm -rf conftest*
5714 eval "ac_cv_func_$ac_func=no"
5716 rm -f conftest*
5719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5720 echo "$ac_t""yes" 1>&6
5721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5722 cat >> confdefs.h <<EOF
5723 #define $ac_tr_func 1
5726 else
5727 echo "$ac_t""no" 1>&6
5729 done
5731 for ac_func in open64 _open64 __open64 creat64
5733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5734 echo "configure:5735: checking for $ac_func" >&5
5735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5737 else
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char $ac_func(); below. */
5743 #include <assert.h>
5744 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5747 char $ac_func();
5749 int main() {
5751 /* The GNU C library defines this for functions which it implements
5752 to always fail with ENOSYS. Some functions are actually named
5753 something starting with __ and the normal name is an alias. */
5754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5755 choke me
5756 #else
5757 $ac_func();
5758 #endif
5760 ; return 0; }
5762 if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 rm -rf conftest*
5764 eval "ac_cv_func_$ac_func=yes"
5765 else
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5768 rm -rf conftest*
5769 eval "ac_cv_func_$ac_func=no"
5771 rm -f conftest*
5774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5775 echo "$ac_t""yes" 1>&6
5776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5777 cat >> confdefs.h <<EOF
5778 #define $ac_tr_func 1
5781 else
5782 echo "$ac_t""no" 1>&6
5784 done
5788 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5791 if test x$ac_cv_func_stat64 = xno ; then
5792 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5793 echo "configure:5794: checking for stat64 in <sys/stat.h>" >&5
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5798 #if defined(HAVE_UNISTD_H)
5799 #include <unistd.h>
5800 #endif
5801 #include <sys/stat.h>
5803 int main() {
5804 struct stat64 st64; exit(stat64(".",&st64));
5805 ; return 0; }
5807 if { (eval echo configure:5808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5808 rm -rf conftest*
5809 ac_cv_func_stat64=yes
5810 else
5811 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5814 rm -f conftest*
5815 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5816 if test x$ac_cv_func_stat64 = xyes ; then
5817 cat >> confdefs.h <<\EOF
5818 #define HAVE_STAT64 1
5824 if test x$ac_cv_func_lstat64 = xno ; then
5825 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5826 echo "configure:5827: checking for lstat64 in <sys/stat.h>" >&5
5827 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5831 #if defined(HAVE_UNISTD_H)
5832 #include <unistd.h>
5833 #endif
5834 #include <sys/stat.h>
5836 int main() {
5837 struct stat64 st64; exit(lstat64(".",&st64));
5838 ; return 0; }
5840 if { (eval echo configure:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5841 rm -rf conftest*
5842 ac_cv_func_lstat64=yes
5843 else
5844 echo "configure: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5847 rm -f conftest*
5848 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5849 if test x$ac_cv_func_lstat64 = xyes ; then
5850 cat >> confdefs.h <<\EOF
5851 #define HAVE_LSTAT64 1
5857 if test x$ac_cv_func_fstat64 = xno ; then
5858 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5859 echo "configure:5860: checking for fstat64 in <sys/stat.h>" >&5
5860 cat > conftest.$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5864 #if defined(HAVE_UNISTD_H)
5865 #include <unistd.h>
5866 #endif
5867 #include <sys/stat.h>
5869 int main() {
5870 struct stat64 st64; exit(fstat64(0,&st64));
5871 ; return 0; }
5873 if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5874 rm -rf conftest*
5875 ac_cv_func_fstat64=yes
5876 else
5877 echo "configure: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5880 rm -f conftest*
5881 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5882 if test x$ac_cv_func_fstat64 = xyes ; then
5883 cat >> confdefs.h <<\EOF
5884 #define HAVE_FSTAT64 1
5891 # If no strcasecmp, check for it in some known places
5892 # It is in -lresolv on ReliantUNIX and UnixWare
5893 # -lresolve *must* follow -lnsl for name resolution to work properly
5896 if test x$ac_cv_func_strcasecmp = xno ; then
5897 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5898 echo "configure:5899: checking for strcasecmp in -lresolv" >&5
5899 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5902 else
5903 ac_save_LIBS="$LIBS"
5904 LIBS="-lresolv $LIBS"
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5911 char strcasecmp();
5913 int main() {
5914 strcasecmp()
5915 ; return 0; }
5917 if { (eval echo configure:5918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5918 rm -rf conftest*
5919 eval "ac_cv_lib_$ac_lib_var=yes"
5920 else
5921 echo "configure: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 rm -rf conftest*
5924 eval "ac_cv_lib_$ac_lib_var=no"
5926 rm -f conftest*
5927 LIBS="$ac_save_LIBS"
5930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5932 LIBS="$LIBS -lresolv"
5933 cat >> confdefs.h <<\EOF
5934 #define HAVE_STRCASECMP 1
5937 else
5938 echo "$ac_t""no" 1>&6
5944 # Check for the functions putprpwnam, set_auth_parameters,
5945 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5946 # Needed for OSF1 and HPUX.
5949 case "$LIBS" in
5950 *-lsecurity*) for ac_func in putprpwnam
5952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5953 echo "configure:5954: checking for $ac_func" >&5
5954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5956 else
5957 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func(); below. */
5962 #include <assert.h>
5963 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5966 char $ac_func();
5968 int main() {
5970 /* The GNU C library defines this for functions which it implements
5971 to always fail with ENOSYS. Some functions are actually named
5972 something starting with __ and the normal name is an alias. */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5974 choke me
5975 #else
5976 $ac_func();
5977 #endif
5979 ; return 0; }
5981 if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5982 rm -rf conftest*
5983 eval "ac_cv_func_$ac_func=yes"
5984 else
5985 echo "configure: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5987 rm -rf conftest*
5988 eval "ac_cv_func_$ac_func=no"
5990 rm -f conftest*
5993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5996 cat >> confdefs.h <<EOF
5997 #define $ac_tr_func 1
6000 else
6001 echo "$ac_t""no" 1>&6
6003 done
6005 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6006 echo "configure:6007: checking for putprpwnam in -lsecurity" >&5
6007 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6
6010 else
6011 ac_save_LIBS="$LIBS"
6012 LIBS="-lsecurity $LIBS"
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6016 /* Override any gcc2 internal prototype to avoid an error. */
6017 /* We use char because int might match the return type of a gcc2
6018 builtin and then its argument prototype would still apply. */
6019 char putprpwnam();
6021 int main() {
6022 putprpwnam()
6023 ; return 0; }
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 rm -rf conftest*
6027 eval "ac_cv_lib_$ac_lib_var=yes"
6028 else
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 rm -rf conftest*
6032 eval "ac_cv_lib_$ac_lib_var=no"
6034 rm -f conftest*
6035 LIBS="$ac_save_LIBS"
6038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6039 echo "$ac_t""yes" 1>&6
6040 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6042 cat >> confdefs.h <<EOF
6043 #define $ac_tr_lib 1
6046 LIBS="-lsecurity $LIBS"
6048 else
6049 echo "$ac_t""no" 1>&6
6052 for ac_func in putprpwnam
6054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_func" >&5
6056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6058 else
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char $ac_func(); below. */
6064 #include <assert.h>
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6068 char $ac_func();
6070 int main() {
6072 /* The GNU C library defines this for functions which it implements
6073 to always fail with ENOSYS. Some functions are actually named
6074 something starting with __ and the normal name is an alias. */
6075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6076 choke me
6077 #else
6078 $ac_func();
6079 #endif
6081 ; return 0; }
6083 if { (eval echo configure:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6084 rm -rf conftest*
6085 eval "ac_cv_func_$ac_func=yes"
6086 else
6087 echo "configure: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6089 rm -rf conftest*
6090 eval "ac_cv_func_$ac_func=no"
6092 rm -f conftest*
6095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6096 echo "$ac_t""yes" 1>&6
6097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6098 cat >> confdefs.h <<EOF
6099 #define $ac_tr_func 1
6102 else
6103 echo "$ac_t""no" 1>&6
6105 done
6108 esac
6110 case "$LIBS" in
6111 *-lsec*) for ac_func in putprpwnam
6113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6114 echo "configure:6115: checking for $ac_func" >&5
6115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6116 echo $ac_n "(cached) $ac_c" 1>&6
6117 else
6118 cat > conftest.$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6121 /* System header to define __stub macros and hopefully few prototypes,
6122 which can conflict with char $ac_func(); below. */
6123 #include <assert.h>
6124 /* Override any gcc2 internal prototype to avoid an error. */
6125 /* We use char because int might match the return type of a gcc2
6126 builtin and then its argument prototype would still apply. */
6127 char $ac_func();
6129 int main() {
6131 /* The GNU C library defines this for functions which it implements
6132 to always fail with ENOSYS. Some functions are actually named
6133 something starting with __ and the normal name is an alias. */
6134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6135 choke me
6136 #else
6137 $ac_func();
6138 #endif
6140 ; return 0; }
6142 if { (eval echo configure:6143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6143 rm -rf conftest*
6144 eval "ac_cv_func_$ac_func=yes"
6145 else
6146 echo "configure: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6148 rm -rf conftest*
6149 eval "ac_cv_func_$ac_func=no"
6151 rm -f conftest*
6154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6157 cat >> confdefs.h <<EOF
6158 #define $ac_tr_func 1
6161 else
6162 echo "$ac_t""no" 1>&6
6164 done
6166 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6167 echo "configure:6168: checking for putprpwnam in -lsec" >&5
6168 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6171 else
6172 ac_save_LIBS="$LIBS"
6173 LIBS="-lsec $LIBS"
6174 cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6177 /* Override any gcc2 internal prototype to avoid an error. */
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6180 char putprpwnam();
6182 int main() {
6183 putprpwnam()
6184 ; return 0; }
6186 if { (eval echo configure:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6187 rm -rf conftest*
6188 eval "ac_cv_lib_$ac_lib_var=yes"
6189 else
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6192 rm -rf conftest*
6193 eval "ac_cv_lib_$ac_lib_var=no"
6195 rm -f conftest*
6196 LIBS="$ac_save_LIBS"
6199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6203 cat >> confdefs.h <<EOF
6204 #define $ac_tr_lib 1
6207 LIBS="-lsec $LIBS"
6209 else
6210 echo "$ac_t""no" 1>&6
6213 for ac_func in putprpwnam
6215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_func" >&5
6217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6219 else
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6225 #include <assert.h>
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6229 char $ac_func();
6231 int main() {
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 choke me
6238 #else
6239 $ac_func();
6240 #endif
6242 ; return 0; }
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6245 rm -rf conftest*
6246 eval "ac_cv_func_$ac_func=yes"
6247 else
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6250 rm -rf conftest*
6251 eval "ac_cv_func_$ac_func=no"
6253 rm -f conftest*
6256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6259 cat >> confdefs.h <<EOF
6260 #define $ac_tr_func 1
6263 else
6264 echo "$ac_t""no" 1>&6
6266 done
6269 esac
6272 case "$LIBS" in
6273 *-lsecurity*) for ac_func in set_auth_parameters
6275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6276 echo "configure:6277: checking for $ac_func" >&5
6277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6279 else
6280 cat > conftest.$ac_ext <<EOF
6281 #line 6282 "configure"
6282 #include "confdefs.h"
6283 /* System header to define __stub macros and hopefully few prototypes,
6284 which can conflict with char $ac_func(); below. */
6285 #include <assert.h>
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6289 char $ac_func();
6291 int main() {
6293 /* The GNU C library defines this for functions which it implements
6294 to always fail with ENOSYS. Some functions are actually named
6295 something starting with __ and the normal name is an alias. */
6296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6297 choke me
6298 #else
6299 $ac_func();
6300 #endif
6302 ; return 0; }
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 rm -rf conftest*
6306 eval "ac_cv_func_$ac_func=yes"
6307 else
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6310 rm -rf conftest*
6311 eval "ac_cv_func_$ac_func=no"
6313 rm -f conftest*
6316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6319 cat >> confdefs.h <<EOF
6320 #define $ac_tr_func 1
6323 else
6324 echo "$ac_t""no" 1>&6
6326 done
6328 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6329 echo "configure:6330: checking for set_auth_parameters in -lsecurity" >&5
6330 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6333 else
6334 ac_save_LIBS="$LIBS"
6335 LIBS="-lsecurity $LIBS"
6336 cat > conftest.$ac_ext <<EOF
6337 #line 6338 "configure"
6338 #include "confdefs.h"
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6342 char set_auth_parameters();
6344 int main() {
6345 set_auth_parameters()
6346 ; return 0; }
6348 if { (eval echo configure:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6349 rm -rf conftest*
6350 eval "ac_cv_lib_$ac_lib_var=yes"
6351 else
6352 echo "configure: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6354 rm -rf conftest*
6355 eval "ac_cv_lib_$ac_lib_var=no"
6357 rm -f conftest*
6358 LIBS="$ac_save_LIBS"
6361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6362 echo "$ac_t""yes" 1>&6
6363 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6364 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6365 cat >> confdefs.h <<EOF
6366 #define $ac_tr_lib 1
6369 LIBS="-lsecurity $LIBS"
6371 else
6372 echo "$ac_t""no" 1>&6
6375 for ac_func in set_auth_parameters
6377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_func" >&5
6379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6381 else
6382 cat > conftest.$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6385 /* System header to define __stub macros and hopefully few prototypes,
6386 which can conflict with char $ac_func(); below. */
6387 #include <assert.h>
6388 /* Override any gcc2 internal prototype to avoid an error. */
6389 /* We use char because int might match the return type of a gcc2
6390 builtin and then its argument prototype would still apply. */
6391 char $ac_func();
6393 int main() {
6395 /* The GNU C library defines this for functions which it implements
6396 to always fail with ENOSYS. Some functions are actually named
6397 something starting with __ and the normal name is an alias. */
6398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6399 choke me
6400 #else
6401 $ac_func();
6402 #endif
6404 ; return 0; }
6406 if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6407 rm -rf conftest*
6408 eval "ac_cv_func_$ac_func=yes"
6409 else
6410 echo "configure: failed program was:" >&5
6411 cat conftest.$ac_ext >&5
6412 rm -rf conftest*
6413 eval "ac_cv_func_$ac_func=no"
6415 rm -f conftest*
6418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6421 cat >> confdefs.h <<EOF
6422 #define $ac_tr_func 1
6425 else
6426 echo "$ac_t""no" 1>&6
6428 done
6431 esac
6433 case "$LIBS" in
6434 *-lsec*) for ac_func in set_auth_parameters
6436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_func" >&5
6438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6440 else
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char $ac_func(); below. */
6446 #include <assert.h>
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6450 char $ac_func();
6452 int main() {
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6458 choke me
6459 #else
6460 $ac_func();
6461 #endif
6463 ; return 0; }
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 rm -rf conftest*
6467 eval "ac_cv_func_$ac_func=yes"
6468 else
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6471 rm -rf conftest*
6472 eval "ac_cv_func_$ac_func=no"
6474 rm -f conftest*
6477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6480 cat >> confdefs.h <<EOF
6481 #define $ac_tr_func 1
6484 else
6485 echo "$ac_t""no" 1>&6
6487 done
6489 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6490 echo "configure:6491: checking for set_auth_parameters in -lsec" >&5
6491 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6494 else
6495 ac_save_LIBS="$LIBS"
6496 LIBS="-lsec $LIBS"
6497 cat > conftest.$ac_ext <<EOF
6498 #line 6499 "configure"
6499 #include "confdefs.h"
6500 /* Override any gcc2 internal prototype to avoid an error. */
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503 char set_auth_parameters();
6505 int main() {
6506 set_auth_parameters()
6507 ; return 0; }
6509 if { (eval echo configure:6510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6510 rm -rf conftest*
6511 eval "ac_cv_lib_$ac_lib_var=yes"
6512 else
6513 echo "configure: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6515 rm -rf conftest*
6516 eval "ac_cv_lib_$ac_lib_var=no"
6518 rm -f conftest*
6519 LIBS="$ac_save_LIBS"
6522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6523 echo "$ac_t""yes" 1>&6
6524 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6526 cat >> confdefs.h <<EOF
6527 #define $ac_tr_lib 1
6530 LIBS="-lsec $LIBS"
6532 else
6533 echo "$ac_t""no" 1>&6
6536 for ac_func in set_auth_parameters
6538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6539 echo "configure:6540: checking for $ac_func" >&5
6540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6542 else
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* System header to define __stub macros and hopefully few prototypes,
6547 which can conflict with char $ac_func(); below. */
6548 #include <assert.h>
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6552 char $ac_func();
6554 int main() {
6556 /* The GNU C library defines this for functions which it implements
6557 to always fail with ENOSYS. Some functions are actually named
6558 something starting with __ and the normal name is an alias. */
6559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6560 choke me
6561 #else
6562 $ac_func();
6563 #endif
6565 ; return 0; }
6567 if { (eval echo configure:6568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6568 rm -rf conftest*
6569 eval "ac_cv_func_$ac_func=yes"
6570 else
6571 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6573 rm -rf conftest*
6574 eval "ac_cv_func_$ac_func=no"
6576 rm -f conftest*
6579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6582 cat >> confdefs.h <<EOF
6583 #define $ac_tr_func 1
6586 else
6587 echo "$ac_t""no" 1>&6
6589 done
6592 esac
6595 # UnixWare 7.x has its getspnam in -lgen
6596 case "$LIBS" in
6597 *-lgen*) for ac_func in getspnam
6599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6600 echo "configure:6601: checking for $ac_func" >&5
6601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6603 else
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607 /* System header to define __stub macros and hopefully few prototypes,
6608 which can conflict with char $ac_func(); below. */
6609 #include <assert.h>
6610 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6613 char $ac_func();
6615 int main() {
6617 /* The GNU C library defines this for functions which it implements
6618 to always fail with ENOSYS. Some functions are actually named
6619 something starting with __ and the normal name is an alias. */
6620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6621 choke me
6622 #else
6623 $ac_func();
6624 #endif
6626 ; return 0; }
6628 if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6629 rm -rf conftest*
6630 eval "ac_cv_func_$ac_func=yes"
6631 else
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6634 rm -rf conftest*
6635 eval "ac_cv_func_$ac_func=no"
6637 rm -f conftest*
6640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6641 echo "$ac_t""yes" 1>&6
6642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6643 cat >> confdefs.h <<EOF
6644 #define $ac_tr_func 1
6647 else
6648 echo "$ac_t""no" 1>&6
6650 done
6652 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6653 echo "configure:6654: checking for getspnam in -lgen" >&5
6654 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6657 else
6658 ac_save_LIBS="$LIBS"
6659 LIBS="-lgen $LIBS"
6660 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666 char getspnam();
6668 int main() {
6669 getspnam()
6670 ; return 0; }
6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 rm -rf conftest*
6674 eval "ac_cv_lib_$ac_lib_var=yes"
6675 else
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6678 rm -rf conftest*
6679 eval "ac_cv_lib_$ac_lib_var=no"
6681 rm -f conftest*
6682 LIBS="$ac_save_LIBS"
6685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6686 echo "$ac_t""yes" 1>&6
6687 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6688 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6689 cat >> confdefs.h <<EOF
6690 #define $ac_tr_lib 1
6693 LIBS="-lgen $LIBS"
6695 else
6696 echo "$ac_t""no" 1>&6
6699 for ac_func in getspnam
6701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_func" >&5
6703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6705 else
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* System header to define __stub macros and hopefully few prototypes,
6710 which can conflict with char $ac_func(); below. */
6711 #include <assert.h>
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6715 char $ac_func();
6717 int main() {
6719 /* The GNU C library defines this for functions which it implements
6720 to always fail with ENOSYS. Some functions are actually named
6721 something starting with __ and the normal name is an alias. */
6722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6723 choke me
6724 #else
6725 $ac_func();
6726 #endif
6728 ; return 0; }
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 rm -rf conftest*
6732 eval "ac_cv_func_$ac_func=yes"
6733 else
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6736 rm -rf conftest*
6737 eval "ac_cv_func_$ac_func=no"
6739 rm -f conftest*
6742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6743 echo "$ac_t""yes" 1>&6
6744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6745 cat >> confdefs.h <<EOF
6746 #define $ac_tr_func 1
6749 else
6750 echo "$ac_t""no" 1>&6
6752 done
6755 esac
6758 case "$LIBS" in
6759 *-lsecurity*) for ac_func in getspnam
6761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6762 echo "configure:6763: checking for $ac_func" >&5
6763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6765 else
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* System header to define __stub macros and hopefully few prototypes,
6770 which can conflict with char $ac_func(); below. */
6771 #include <assert.h>
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6775 char $ac_func();
6777 int main() {
6779 /* The GNU C library defines this for functions which it implements
6780 to always fail with ENOSYS. Some functions are actually named
6781 something starting with __ and the normal name is an alias. */
6782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6783 choke me
6784 #else
6785 $ac_func();
6786 #endif
6788 ; return 0; }
6790 if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6791 rm -rf conftest*
6792 eval "ac_cv_func_$ac_func=yes"
6793 else
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6796 rm -rf conftest*
6797 eval "ac_cv_func_$ac_func=no"
6799 rm -f conftest*
6802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6803 echo "$ac_t""yes" 1>&6
6804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6805 cat >> confdefs.h <<EOF
6806 #define $ac_tr_func 1
6809 else
6810 echo "$ac_t""no" 1>&6
6812 done
6814 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6815 echo "configure:6816: checking for getspnam in -lsecurity" >&5
6816 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6819 else
6820 ac_save_LIBS="$LIBS"
6821 LIBS="-lsecurity $LIBS"
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6828 char getspnam();
6830 int main() {
6831 getspnam()
6832 ; return 0; }
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 rm -rf conftest*
6836 eval "ac_cv_lib_$ac_lib_var=yes"
6837 else
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 rm -rf conftest*
6841 eval "ac_cv_lib_$ac_lib_var=no"
6843 rm -f conftest*
6844 LIBS="$ac_save_LIBS"
6847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6848 echo "$ac_t""yes" 1>&6
6849 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6851 cat >> confdefs.h <<EOF
6852 #define $ac_tr_lib 1
6855 LIBS="-lsecurity $LIBS"
6857 else
6858 echo "$ac_t""no" 1>&6
6861 for ac_func in getspnam
6863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6864 echo "configure:6865: checking for $ac_func" >&5
6865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6867 else
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func(); below. */
6873 #include <assert.h>
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6877 char $ac_func();
6879 int main() {
6881 /* The GNU C library defines this for functions which it implements
6882 to always fail with ENOSYS. Some functions are actually named
6883 something starting with __ and the normal name is an alias. */
6884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6885 choke me
6886 #else
6887 $ac_func();
6888 #endif
6890 ; return 0; }
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 rm -rf conftest*
6894 eval "ac_cv_func_$ac_func=yes"
6895 else
6896 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6898 rm -rf conftest*
6899 eval "ac_cv_func_$ac_func=no"
6901 rm -f conftest*
6904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6905 echo "$ac_t""yes" 1>&6
6906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6907 cat >> confdefs.h <<EOF
6908 #define $ac_tr_func 1
6911 else
6912 echo "$ac_t""no" 1>&6
6914 done
6917 esac
6919 case "$LIBS" in
6920 *-lsec*) for ac_func in getspnam
6922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6923 echo "configure:6924: checking for $ac_func" >&5
6924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6926 else
6927 cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure"
6929 #include "confdefs.h"
6930 /* System header to define __stub macros and hopefully few prototypes,
6931 which can conflict with char $ac_func(); below. */
6932 #include <assert.h>
6933 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char $ac_func();
6938 int main() {
6940 /* The GNU C library defines this for functions which it implements
6941 to always fail with ENOSYS. Some functions are actually named
6942 something starting with __ and the normal name is an alias. */
6943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6944 choke me
6945 #else
6946 $ac_func();
6947 #endif
6949 ; return 0; }
6951 if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6952 rm -rf conftest*
6953 eval "ac_cv_func_$ac_func=yes"
6954 else
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6957 rm -rf conftest*
6958 eval "ac_cv_func_$ac_func=no"
6960 rm -f conftest*
6963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6964 echo "$ac_t""yes" 1>&6
6965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6966 cat >> confdefs.h <<EOF
6967 #define $ac_tr_func 1
6970 else
6971 echo "$ac_t""no" 1>&6
6973 done
6975 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6976 echo "configure:6977: checking for getspnam in -lsec" >&5
6977 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6980 else
6981 ac_save_LIBS="$LIBS"
6982 LIBS="-lsec $LIBS"
6983 cat > conftest.$ac_ext <<EOF
6984 #line 6985 "configure"
6985 #include "confdefs.h"
6986 /* Override any gcc2 internal prototype to avoid an error. */
6987 /* We use char because int might match the return type of a gcc2
6988 builtin and then its argument prototype would still apply. */
6989 char getspnam();
6991 int main() {
6992 getspnam()
6993 ; return 0; }
6995 if { (eval echo configure:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 rm -rf conftest*
6997 eval "ac_cv_lib_$ac_lib_var=yes"
6998 else
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7001 rm -rf conftest*
7002 eval "ac_cv_lib_$ac_lib_var=no"
7004 rm -f conftest*
7005 LIBS="$ac_save_LIBS"
7008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7009 echo "$ac_t""yes" 1>&6
7010 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7012 cat >> confdefs.h <<EOF
7013 #define $ac_tr_lib 1
7016 LIBS="-lsec $LIBS"
7018 else
7019 echo "$ac_t""no" 1>&6
7022 for ac_func in getspnam
7024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7025 echo "configure:7026: checking for $ac_func" >&5
7026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7028 else
7029 cat > conftest.$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char $ac_func(); below. */
7034 #include <assert.h>
7035 /* Override any gcc2 internal prototype to avoid an error. */
7036 /* We use char because int might match the return type of a gcc2
7037 builtin and then its argument prototype would still apply. */
7038 char $ac_func();
7040 int main() {
7042 /* The GNU C library defines this for functions which it implements
7043 to always fail with ENOSYS. Some functions are actually named
7044 something starting with __ and the normal name is an alias. */
7045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7046 choke me
7047 #else
7048 $ac_func();
7049 #endif
7051 ; return 0; }
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7054 rm -rf conftest*
7055 eval "ac_cv_func_$ac_func=yes"
7056 else
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7059 rm -rf conftest*
7060 eval "ac_cv_func_$ac_func=no"
7062 rm -f conftest*
7065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7068 cat >> confdefs.h <<EOF
7069 #define $ac_tr_func 1
7072 else
7073 echo "$ac_t""no" 1>&6
7075 done
7078 esac
7081 case "$LIBS" in
7082 *-lsecurity*) for ac_func in bigcrypt
7084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7085 echo "configure:7086: checking for $ac_func" >&5
7086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7088 else
7089 cat > conftest.$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7092 /* System header to define __stub macros and hopefully few prototypes,
7093 which can conflict with char $ac_func(); below. */
7094 #include <assert.h>
7095 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7098 char $ac_func();
7100 int main() {
7102 /* The GNU C library defines this for functions which it implements
7103 to always fail with ENOSYS. Some functions are actually named
7104 something starting with __ and the normal name is an alias. */
7105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7106 choke me
7107 #else
7108 $ac_func();
7109 #endif
7111 ; return 0; }
7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7114 rm -rf conftest*
7115 eval "ac_cv_func_$ac_func=yes"
7116 else
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7119 rm -rf conftest*
7120 eval "ac_cv_func_$ac_func=no"
7122 rm -f conftest*
7125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7128 cat >> confdefs.h <<EOF
7129 #define $ac_tr_func 1
7132 else
7133 echo "$ac_t""no" 1>&6
7135 done
7137 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7138 echo "configure:7139: checking for bigcrypt in -lsecurity" >&5
7139 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7142 else
7143 ac_save_LIBS="$LIBS"
7144 LIBS="-lsecurity $LIBS"
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* Override any gcc2 internal prototype to avoid an error. */
7149 /* We use char because int might match the return type of a gcc2
7150 builtin and then its argument prototype would still apply. */
7151 char bigcrypt();
7153 int main() {
7154 bigcrypt()
7155 ; return 0; }
7157 if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7158 rm -rf conftest*
7159 eval "ac_cv_lib_$ac_lib_var=yes"
7160 else
7161 echo "configure: failed program was:" >&5
7162 cat conftest.$ac_ext >&5
7163 rm -rf conftest*
7164 eval "ac_cv_lib_$ac_lib_var=no"
7166 rm -f conftest*
7167 LIBS="$ac_save_LIBS"
7170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7174 cat >> confdefs.h <<EOF
7175 #define $ac_tr_lib 1
7178 LIBS="-lsecurity $LIBS"
7180 else
7181 echo "$ac_t""no" 1>&6
7184 for ac_func in bigcrypt
7186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7187 echo "configure:7188: checking for $ac_func" >&5
7188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7190 else
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* System header to define __stub macros and hopefully few prototypes,
7195 which can conflict with char $ac_func(); below. */
7196 #include <assert.h>
7197 /* Override any gcc2 internal prototype to avoid an error. */
7198 /* We use char because int might match the return type of a gcc2
7199 builtin and then its argument prototype would still apply. */
7200 char $ac_func();
7202 int main() {
7204 /* The GNU C library defines this for functions which it implements
7205 to always fail with ENOSYS. Some functions are actually named
7206 something starting with __ and the normal name is an alias. */
7207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7208 choke me
7209 #else
7210 $ac_func();
7211 #endif
7213 ; return 0; }
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7216 rm -rf conftest*
7217 eval "ac_cv_func_$ac_func=yes"
7218 else
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 rm -rf conftest*
7222 eval "ac_cv_func_$ac_func=no"
7224 rm -f conftest*
7227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7230 cat >> confdefs.h <<EOF
7231 #define $ac_tr_func 1
7234 else
7235 echo "$ac_t""no" 1>&6
7237 done
7240 esac
7242 case "$LIBS" in
7243 *-lsec*) for ac_func in bigcrypt
7245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7246 echo "configure:7247: checking for $ac_func" >&5
7247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7249 else
7250 cat > conftest.$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7253 /* System header to define __stub macros and hopefully few prototypes,
7254 which can conflict with char $ac_func(); below. */
7255 #include <assert.h>
7256 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7259 char $ac_func();
7261 int main() {
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7267 choke me
7268 #else
7269 $ac_func();
7270 #endif
7272 ; return 0; }
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7275 rm -rf conftest*
7276 eval "ac_cv_func_$ac_func=yes"
7277 else
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 rm -rf conftest*
7281 eval "ac_cv_func_$ac_func=no"
7283 rm -f conftest*
7286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7289 cat >> confdefs.h <<EOF
7290 #define $ac_tr_func 1
7293 else
7294 echo "$ac_t""no" 1>&6
7296 done
7298 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7299 echo "configure:7300: checking for bigcrypt in -lsec" >&5
7300 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7303 else
7304 ac_save_LIBS="$LIBS"
7305 LIBS="-lsec $LIBS"
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 /* Override any gcc2 internal prototype to avoid an error. */
7310 /* We use char because int might match the return type of a gcc2
7311 builtin and then its argument prototype would still apply. */
7312 char bigcrypt();
7314 int main() {
7315 bigcrypt()
7316 ; return 0; }
7318 if { (eval echo configure:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7319 rm -rf conftest*
7320 eval "ac_cv_lib_$ac_lib_var=yes"
7321 else
7322 echo "configure: failed program was:" >&5
7323 cat conftest.$ac_ext >&5
7324 rm -rf conftest*
7325 eval "ac_cv_lib_$ac_lib_var=no"
7327 rm -f conftest*
7328 LIBS="$ac_save_LIBS"
7331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7332 echo "$ac_t""yes" 1>&6
7333 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7335 cat >> confdefs.h <<EOF
7336 #define $ac_tr_lib 1
7339 LIBS="-lsec $LIBS"
7341 else
7342 echo "$ac_t""no" 1>&6
7345 for ac_func in bigcrypt
7347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7348 echo "configure:7349: checking for $ac_func" >&5
7349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7351 else
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 /* System header to define __stub macros and hopefully few prototypes,
7356 which can conflict with char $ac_func(); below. */
7357 #include <assert.h>
7358 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7361 char $ac_func();
7363 int main() {
7365 /* The GNU C library defines this for functions which it implements
7366 to always fail with ENOSYS. Some functions are actually named
7367 something starting with __ and the normal name is an alias. */
7368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7369 choke me
7370 #else
7371 $ac_func();
7372 #endif
7374 ; return 0; }
7376 if { (eval echo configure:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7377 rm -rf conftest*
7378 eval "ac_cv_func_$ac_func=yes"
7379 else
7380 echo "configure: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7382 rm -rf conftest*
7383 eval "ac_cv_func_$ac_func=no"
7385 rm -f conftest*
7388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7389 echo "$ac_t""yes" 1>&6
7390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7391 cat >> confdefs.h <<EOF
7392 #define $ac_tr_func 1
7395 else
7396 echo "$ac_t""no" 1>&6
7398 done
7401 esac
7404 case "$LIBS" in
7405 *-lsecurity*) for ac_func in getprpwnam
7407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7408 echo "configure:7409: checking for $ac_func" >&5
7409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7411 else
7412 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7415 /* System header to define __stub macros and hopefully few prototypes,
7416 which can conflict with char $ac_func(); below. */
7417 #include <assert.h>
7418 /* Override any gcc2 internal prototype to avoid an error. */
7419 /* We use char because int might match the return type of a gcc2
7420 builtin and then its argument prototype would still apply. */
7421 char $ac_func();
7423 int main() {
7425 /* The GNU C library defines this for functions which it implements
7426 to always fail with ENOSYS. Some functions are actually named
7427 something starting with __ and the normal name is an alias. */
7428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7429 choke me
7430 #else
7431 $ac_func();
7432 #endif
7434 ; return 0; }
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 rm -rf conftest*
7438 eval "ac_cv_func_$ac_func=yes"
7439 else
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7442 rm -rf conftest*
7443 eval "ac_cv_func_$ac_func=no"
7445 rm -f conftest*
7448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7451 cat >> confdefs.h <<EOF
7452 #define $ac_tr_func 1
7455 else
7456 echo "$ac_t""no" 1>&6
7458 done
7460 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7461 echo "configure:7462: checking for getprpwnam in -lsecurity" >&5
7462 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7465 else
7466 ac_save_LIBS="$LIBS"
7467 LIBS="-lsecurity $LIBS"
7468 cat > conftest.$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */
7474 char getprpwnam();
7476 int main() {
7477 getprpwnam()
7478 ; return 0; }
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7481 rm -rf conftest*
7482 eval "ac_cv_lib_$ac_lib_var=yes"
7483 else
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7486 rm -rf conftest*
7487 eval "ac_cv_lib_$ac_lib_var=no"
7489 rm -f conftest*
7490 LIBS="$ac_save_LIBS"
7493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7497 cat >> confdefs.h <<EOF
7498 #define $ac_tr_lib 1
7501 LIBS="-lsecurity $LIBS"
7503 else
7504 echo "$ac_t""no" 1>&6
7507 for ac_func in getprpwnam
7509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_func" >&5
7511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7513 else
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 /* System header to define __stub macros and hopefully few prototypes,
7518 which can conflict with char $ac_func(); below. */
7519 #include <assert.h>
7520 /* Override any gcc2 internal prototype to avoid an error. */
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7523 char $ac_func();
7525 int main() {
7527 /* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7531 choke me
7532 #else
7533 $ac_func();
7534 #endif
7536 ; return 0; }
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7539 rm -rf conftest*
7540 eval "ac_cv_func_$ac_func=yes"
7541 else
7542 echo "configure: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7544 rm -rf conftest*
7545 eval "ac_cv_func_$ac_func=no"
7547 rm -f conftest*
7550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7553 cat >> confdefs.h <<EOF
7554 #define $ac_tr_func 1
7557 else
7558 echo "$ac_t""no" 1>&6
7560 done
7563 esac
7565 case "$LIBS" in
7566 *-lsec*) for ac_func in getprpwnam
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7572 else
7573 cat > conftest.$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7578 #include <assert.h>
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7582 char $ac_func();
7584 int main() {
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7590 choke me
7591 #else
7592 $ac_func();
7593 #endif
7595 ; return 0; }
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 rm -rf conftest*
7599 eval "ac_cv_func_$ac_func=yes"
7600 else
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 rm -rf conftest*
7604 eval "ac_cv_func_$ac_func=no"
7606 rm -f conftest*
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h <<EOF
7613 #define $ac_tr_func 1
7616 else
7617 echo "$ac_t""no" 1>&6
7619 done
7621 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7622 echo "configure:7623: checking for getprpwnam in -lsec" >&5
7623 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7626 else
7627 ac_save_LIBS="$LIBS"
7628 LIBS="-lsec $LIBS"
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7635 char getprpwnam();
7637 int main() {
7638 getprpwnam()
7639 ; return 0; }
7641 if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7642 rm -rf conftest*
7643 eval "ac_cv_lib_$ac_lib_var=yes"
7644 else
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7647 rm -rf conftest*
7648 eval "ac_cv_lib_$ac_lib_var=no"
7650 rm -f conftest*
7651 LIBS="$ac_save_LIBS"
7654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7658 cat >> confdefs.h <<EOF
7659 #define $ac_tr_lib 1
7662 LIBS="-lsec $LIBS"
7664 else
7665 echo "$ac_t""no" 1>&6
7668 for ac_func in getprpwnam
7670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7671 echo "configure:7672: checking for $ac_func" >&5
7672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7674 else
7675 cat > conftest.$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func(); below. */
7680 #include <assert.h>
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char $ac_func();
7686 int main() {
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7692 choke me
7693 #else
7694 $ac_func();
7695 #endif
7697 ; return 0; }
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7700 rm -rf conftest*
7701 eval "ac_cv_func_$ac_func=yes"
7702 else
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7705 rm -rf conftest*
7706 eval "ac_cv_func_$ac_func=no"
7708 rm -f conftest*
7711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7714 cat >> confdefs.h <<EOF
7715 #define $ac_tr_func 1
7718 else
7719 echo "$ac_t""no" 1>&6
7721 done
7724 esac
7727 # this bit needs to be modified for each OS that is suported by
7728 # smbwrapper. You need to specify how to created a shared library and
7729 # how to compile C code to produce PIC object files
7731 # these are the defaults, good for lots of systems
7732 HOST_OS="$host_os"
7733 LDSHFLAGS="-shared"
7734 PICFLAG=""
7735 SHLIBEXT="so"
7737 # and these are for particular systems
7738 case "$host_os" in
7739 *linux*) cat >> confdefs.h <<\EOF
7740 #define LINUX 1
7743 *solaris*) cat >> confdefs.h <<\EOF
7744 #define SUNOS5 1
7747 LDSHFLAGS="-G"
7749 *sunos*) cat >> confdefs.h <<\EOF
7750 #define SUNOS4 1
7753 LDSHFLAGS=""
7755 *bsd*) LDSHFLAGS="-shared -Bshareable"
7757 *irix*) cat >> confdefs.h <<\EOF
7758 #define IRIX 1
7761 case "$host_os" in
7762 *irix6*) cat >> confdefs.h <<\EOF
7763 #define IRIX6 1
7767 esac
7768 ATTEMPT_WRAP32_BUILD=yes
7770 *aix*) cat >> confdefs.h <<\EOF
7771 #define AIX 1
7774 *hpux*) cat >> confdefs.h <<\EOF
7775 #define HPUX 1
7778 SHLIBEXT="sl"
7779 # Use special PIC flags for the native HP-UX compiler.
7780 if test $ac_cv_prog_cc_Ae = yes; then
7781 LDSHFLAGS="-b"
7782 PICFLAG="+z"
7785 *qnx*) cat >> confdefs.h <<\EOF
7786 #define QNX 1
7789 *osf*) cat >> confdefs.h <<\EOF
7790 #define OSF1 1
7793 *sco*) cat >> confdefs.h <<\EOF
7794 #define SCO 1
7797 *next2*) cat >> confdefs.h <<\EOF
7798 #define NEXT2 1
7801 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7802 set dummy groff; ac_word=$2
7803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_word" >&5
7805 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7807 else
7808 if test -n "$ROFF"; then
7809 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7810 else
7811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7812 ac_dummy="$PATH"
7813 for ac_dir in $ac_dummy; do
7814 test -z "$ac_dir" && ac_dir=.
7815 if test -f $ac_dir/$ac_word; then
7816 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7817 break
7819 done
7820 IFS="$ac_save_ifs"
7823 ROFF="$ac_cv_prog_ROFF"
7824 if test -n "$ROFF"; then
7825 echo "$ac_t""$ROFF" 1>&6
7826 else
7827 echo "$ac_t""no" 1>&6
7830 *sysv4*)
7831 case "$host" in
7832 *-univel-*) if test "$GCC" != yes ; then
7833 cat >> confdefs.h <<\EOF
7834 #define HAVE_MEMSET 1
7838 LDSHFLAGS="-G"
7840 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
7841 #define RELIANTUNIX 1
7844 esac
7846 *sysv5*)
7847 if test "$GCC" != yes ; then
7848 cat >> confdefs.h <<\EOF
7849 #define HAVE_MEMSET 1
7853 LDSHFLAGS="-G"
7855 esac
7857 # try to work out how to produce pic code with this compiler
7858 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7859 echo "configure:7860: checking whether ${CC-cc} accepts -fpic" >&5
7860 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862 else
7863 echo 'void f(){}' > conftest.c
7864 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7865 ac_cv_prog_cc_fpic=yes
7866 else
7867 ac_cv_prog_cc_fpic=no
7869 rm -f conftest*
7873 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7874 if test $ac_cv_prog_cc_fpic = yes; then
7875 PICFLAG="-fpic";
7877 if test x$PICFLAG = x; then
7878 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7879 echo "configure:7880: checking whether ${CC-cc} accepts -Kpic" >&5
7880 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7882 else
7883 echo 'void f(){}' > conftest.c
7884 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7885 ac_cv_prog_cc_Kpic=yes
7886 else
7887 ac_cv_prog_cc_Kpic=no
7889 rm -f conftest*
7893 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7894 if test $ac_cv_prog_cc_Kpic = yes; then
7895 PICFLAG="-Kpic";
7898 if test x$PICFLAG = x; then
7899 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7900 echo "configure:7901: checking whether ${CC-cc} accepts -KPIC" >&5
7901 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7903 else
7904 echo 'void f(){}' > conftest.c
7905 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7906 ac_cv_prog_cc_KPIC=yes
7907 else
7908 ac_cv_prog_cc_KPIC=no
7910 rm -f conftest*
7914 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7915 if test $ac_cv_prog_cc_KPIC = yes; then
7916 PICFLAG="-KPIC";
7920 ################
7922 echo $ac_n "checking for long long""... $ac_c" 1>&6
7923 echo "configure:7924: checking for long long" >&5
7924 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7926 else
7928 if test "$cross_compiling" = yes; then
7929 samba_cv_have_longlong=cross
7930 else
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7934 #include <stdio.h>
7935 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7937 if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7938 then
7939 samba_cv_have_longlong=yes
7940 else
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7943 rm -fr conftest*
7944 samba_cv_have_longlong=no
7946 rm -fr conftest*
7951 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7952 if test x"$samba_cv_have_longlong" = x"yes"; then
7953 cat >> confdefs.h <<\EOF
7954 #define HAVE_LONGLONG 1
7960 # Check if the compiler supports the LL prefix on long long integers.
7961 # AIX needs this.
7963 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
7964 echo "configure:7965: checking for LL suffix on long long integers" >&5
7965 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7967 else
7969 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7972 #include <stdio.h>
7973 int main() {
7974 long long i = 0x8000000000LL
7975 ; return 0; }
7977 if { (eval echo configure:7978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7978 rm -rf conftest*
7979 samba_cv_compiler_supports_ll=yes
7980 else
7981 echo "configure: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 rm -rf conftest*
7984 samba_cv_compiler_supports_ll=no
7986 rm -f conftest*
7989 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
7990 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
7991 cat >> confdefs.h <<\EOF
7992 #define COMPILER_SUPPORTS_LL 1
7998 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7999 echo "configure:8000: checking for 64 bit off_t" >&5
8000 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8002 else
8004 if test "$cross_compiling" = yes; then
8005 samba_cv_SIZEOF_OFF_T=cross
8006 else
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 #include <stdio.h>
8011 #include <sys/stat.h>
8012 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8015 then
8016 samba_cv_SIZEOF_OFF_T=yes
8017 else
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8020 rm -fr conftest*
8021 samba_cv_SIZEOF_OFF_T=no
8023 rm -fr conftest*
8028 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8029 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8030 cat >> confdefs.h <<\EOF
8031 #define SIZEOF_OFF_T 8
8036 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8037 echo "configure:8038: checking for off64_t" >&5
8038 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8039 echo $ac_n "(cached) $ac_c" 1>&6
8040 else
8042 if test "$cross_compiling" = yes; then
8043 samba_cv_HAVE_OFF64_T=cross
8044 else
8045 cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8049 #if defined(HAVE_UNISTD_H)
8050 #include <unistd.h>
8051 #endif
8052 #include <stdio.h>
8053 #include <sys/stat.h>
8054 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8057 then
8058 samba_cv_HAVE_OFF64_T=yes
8059 else
8060 echo "configure: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
8062 rm -fr conftest*
8063 samba_cv_HAVE_OFF64_T=no
8065 rm -fr conftest*
8070 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8071 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8072 cat >> confdefs.h <<\EOF
8073 #define HAVE_OFF64_T 1
8078 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8079 echo "configure:8080: checking for 64 bit ino_t" >&5
8080 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8082 else
8084 if test "$cross_compiling" = yes; then
8085 samba_cv_SIZEOF_INO_T=cross
8086 else
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 #include <stdio.h>
8091 #include <sys/stat.h>
8092 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8094 if { (eval echo configure:8095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8095 then
8096 samba_cv_SIZEOF_INO_T=yes
8097 else
8098 echo "configure: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8100 rm -fr conftest*
8101 samba_cv_SIZEOF_INO_T=no
8103 rm -fr conftest*
8108 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8109 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8110 cat >> confdefs.h <<\EOF
8111 #define SIZEOF_INO_T 8
8116 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8117 echo "configure:8118: checking for ino64_t" >&5
8118 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8120 else
8122 if test "$cross_compiling" = yes; then
8123 samba_cv_HAVE_INO64_T=cross
8124 else
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8129 #if defined(HAVE_UNISTD_H)
8130 #include <unistd.h>
8131 #endif
8132 #include <stdio.h>
8133 #include <sys/stat.h>
8134 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8136 if { (eval echo configure:8137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8137 then
8138 samba_cv_HAVE_INO64_T=yes
8139 else
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8142 rm -fr conftest*
8143 samba_cv_HAVE_INO64_T=no
8145 rm -fr conftest*
8150 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8151 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8152 cat >> confdefs.h <<\EOF
8153 #define HAVE_INO64_T 1
8158 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8159 echo "configure:8160: checking for struct dirent64" >&5
8160 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8161 echo $ac_n "(cached) $ac_c" 1>&6
8162 else
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8168 #if defined(HAVE_UNISTD_H)
8169 #include <unistd.h>
8170 #endif
8171 #include <sys/types.h>
8172 #include <dirent.h>
8173 int main() {
8174 struct dirent64 de;
8175 ; return 0; }
8177 if { (eval echo configure:8178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8178 rm -rf conftest*
8179 samba_cv_HAVE_STRUCT_DIRENT64=yes
8180 else
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8183 rm -rf conftest*
8184 samba_cv_HAVE_STRUCT_DIRENT64=no
8186 rm -f conftest*
8189 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8190 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8191 cat >> confdefs.h <<\EOF
8192 #define HAVE_STRUCT_DIRENT64 1
8197 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8198 echo "configure:8199: checking for unsigned char" >&5
8199 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8201 else
8203 if test "$cross_compiling" = yes; then
8204 samba_cv_HAVE_UNSIGNED_CHAR=cross
8205 else
8206 cat > conftest.$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8209 #include <stdio.h>
8210 main() { char c; c=250; exit((c > 0)?0:1); }
8212 if { (eval echo configure:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8213 then
8214 samba_cv_HAVE_UNSIGNED_CHAR=yes
8215 else
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8218 rm -fr conftest*
8219 samba_cv_HAVE_UNSIGNED_CHAR=no
8221 rm -fr conftest*
8226 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8227 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8228 cat >> confdefs.h <<\EOF
8229 #define HAVE_UNSIGNED_CHAR 1
8234 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8235 echo "configure:8236: checking for sin_len in sock" >&5
8236 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8237 echo $ac_n "(cached) $ac_c" 1>&6
8238 else
8240 cat > conftest.$ac_ext <<EOF
8241 #line 8242 "configure"
8242 #include "confdefs.h"
8243 #include <sys/types.h>
8244 #include <sys/socket.h>
8245 #include <netinet/in.h>
8246 int main() {
8247 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8248 ; return 0; }
8250 if { (eval echo configure:8251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8251 rm -rf conftest*
8252 samba_cv_HAVE_SOCK_SIN_LEN=yes
8253 else
8254 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 rm -rf conftest*
8257 samba_cv_HAVE_SOCK_SIN_LEN=no
8259 rm -f conftest*
8262 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8263 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8264 cat >> confdefs.h <<\EOF
8265 #define HAVE_SOCK_SIN_LEN 1
8270 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8271 echo "configure:8272: checking whether seekdir returns void" >&5
8272 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8274 else
8276 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279 #include <sys/types.h>
8280 #include <dirent.h>
8281 void seekdir(DIR *d, long loc) { return; }
8282 int main() {
8283 return 0;
8284 ; return 0; }
8286 if { (eval echo configure:8287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8287 rm -rf conftest*
8288 samba_cv_SEEKDIR_RETURNS_VOID=yes
8289 else
8290 echo "configure: failed program was:" >&5
8291 cat conftest.$ac_ext >&5
8292 rm -rf conftest*
8293 samba_cv_SEEKDIR_RETURNS_VOID=no
8295 rm -f conftest*
8298 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8299 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8300 cat >> confdefs.h <<\EOF
8301 #define SEEKDIR_RETURNS_VOID 1
8306 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8307 echo "configure:8308: checking for __FILE__ macro" >&5
8308 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6
8310 else
8312 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8315 #include <stdio.h>
8316 int main() {
8317 printf("%s\n", __FILE__);
8318 ; return 0; }
8320 if { (eval echo configure:8321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8321 rm -rf conftest*
8322 samba_cv_HAVE_FILE_MACRO=yes
8323 else
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8326 rm -rf conftest*
8327 samba_cv_HAVE_FILE_MACRO=no
8329 rm -f conftest*
8332 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8333 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8334 cat >> confdefs.h <<\EOF
8335 #define HAVE_FILE_MACRO 1
8340 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8341 echo "configure:8342: checking for __FUNCTION__ macro" >&5
8342 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8344 else
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 #include <stdio.h>
8350 int main() {
8351 printf("%s\n", __FUNCTION__);
8352 ; return 0; }
8354 if { (eval echo configure:8355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8355 rm -rf conftest*
8356 samba_cv_HAVE_FUNCTION_MACRO=yes
8357 else
8358 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5
8360 rm -rf conftest*
8361 samba_cv_HAVE_FUNCTION_MACRO=no
8363 rm -f conftest*
8366 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8367 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8368 cat >> confdefs.h <<\EOF
8369 #define HAVE_FUNCTION_MACRO 1
8374 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8375 echo "configure:8376: checking if gettimeofday takes tz argument" >&5
8376 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8377 echo $ac_n "(cached) $ac_c" 1>&6
8378 else
8380 if test "$cross_compiling" = yes; then
8381 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8382 else
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8387 #include <sys/time.h>
8388 #include <unistd.h>
8389 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8392 then
8393 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8394 else
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8397 rm -fr conftest*
8398 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8400 rm -fr conftest*
8405 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8406 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8407 cat >> confdefs.h <<\EOF
8408 #define HAVE_GETTIMEOFDAY_TZ 1
8414 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8415 echo "configure:8416: checking for broken readdir" >&5
8416 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8418 else
8420 if test "$cross_compiling" = yes; then
8421 samba_cv_HAVE_BROKEN_READDIR=cross
8422 else
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 #include <sys/types.h>
8427 #include <dirent.h>
8428 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8429 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8430 di->d_name[0] == 0) exit(0); exit(1);}
8432 if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8433 then
8434 samba_cv_HAVE_BROKEN_READDIR=yes
8435 else
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8438 rm -fr conftest*
8439 samba_cv_HAVE_BROKEN_READDIR=no
8441 rm -fr conftest*
8446 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8447 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8448 cat >> confdefs.h <<\EOF
8449 #define HAVE_BROKEN_READDIR 1
8454 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8455 echo "configure:8456: checking for utimbuf" >&5
8456 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8458 else
8460 cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 #include <sys/types.h>
8464 #include <utime.h>
8465 int main() {
8466 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8467 ; return 0; }
8469 if { (eval echo configure:8470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8470 rm -rf conftest*
8471 samba_cv_HAVE_UTIMBUF=yes
8472 else
8473 echo "configure: failed program was:" >&5
8474 cat conftest.$ac_ext >&5
8475 rm -rf conftest*
8476 samba_cv_HAVE_UTIMBUF=no
8478 rm -f conftest*
8481 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8482 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8483 cat >> confdefs.h <<\EOF
8484 #define HAVE_UTIMBUF 1
8489 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
8490 echo "configure:8491: checking for ut_syslen in utmpx" >&5
8491 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8493 else
8495 cat > conftest.$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8498 #include <utmpx.h>
8499 int main() {
8500 struct utmpx ux; ux.ut_syslen = 0;
8501 ; return 0; }
8503 if { (eval echo configure:8504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8504 rm -rf conftest*
8505 samba_cv_HAVE_UX_UT_SYSLEN=yes
8506 else
8507 echo "configure: failed program was:" >&5
8508 cat conftest.$ac_ext >&5
8509 rm -rf conftest*
8510 samba_cv_HAVE_UX_UT_SYSLEN=no
8512 rm -f conftest*
8515 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
8516 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
8517 cat >> confdefs.h <<\EOF
8518 #define HAVE_UX_UT_SYSLEN 1
8523 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
8524 echo "configure:8525: checking for Linux kernel oplocks" >&5
8525 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8527 else
8529 if test "$cross_compiling" = yes; then
8530 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
8531 else
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8536 #include <sys/types.h>
8537 #include <fcntl.h>
8538 #ifndef F_GETLEASE
8539 #define F_GETLEASE 1025
8540 #endif
8541 main() {
8542 int fd = open("/dev/null", O_RDONLY);
8543 return fcntl(fd, F_GETLEASE, 0) == -1;
8547 if { (eval echo configure:8548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8548 then
8549 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
8550 else
8551 echo "configure: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8553 rm -fr conftest*
8554 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
8556 rm -fr conftest*
8561 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
8562 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
8563 cat >> confdefs.h <<\EOF
8564 #define HAVE_KERNEL_OPLOCKS_LINUX 1
8569 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
8570 echo "configure:8571: checking for kernel change notify support" >&5
8571 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8573 else
8575 if test "$cross_compiling" = yes; then
8576 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
8577 else
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8582 #include <sys/types.h>
8583 #include <fcntl.h>
8584 #include <signal.h>
8585 #ifndef F_NOTIFY
8586 #define F_NOTIFY 1026
8587 #endif
8588 main() {
8589 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
8593 if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8594 then
8595 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
8596 else
8597 echo "configure: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 rm -fr conftest*
8600 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
8602 rm -fr conftest*
8607 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
8608 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
8609 cat >> confdefs.h <<\EOF
8610 #define HAVE_KERNEL_CHANGE_NOTIFY 1
8615 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
8616 echo "configure:8617: checking for kernel share modes" >&5
8617 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
8619 else
8621 if test "$cross_compiling" = yes; then
8622 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
8623 else
8624 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8628 #include <sys/types.h>
8629 #include <fcntl.h>
8630 #include <signal.h>
8631 #include <sys/file.h>
8632 #ifndef LOCK_MAND
8633 #define LOCK_MAND 32
8634 #define LOCK_READ 64
8635 #endif
8636 main() {
8637 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
8641 if { (eval echo configure:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8642 then
8643 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
8644 else
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8647 rm -fr conftest*
8648 samba_cv_HAVE_KERNEL_SHARE_MODES=no
8650 rm -fr conftest*
8655 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
8656 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
8657 cat >> confdefs.h <<\EOF
8658 #define HAVE_KERNEL_SHARE_MODES 1
8666 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
8667 echo "configure:8668: checking for IRIX kernel oplock type definitions" >&5
8668 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8670 else
8672 cat > conftest.$ac_ext <<EOF
8673 #line 8674 "configure"
8674 #include "confdefs.h"
8675 #include <sys/types.h>
8676 #include <fcntl.h>
8677 int main() {
8678 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
8679 ; return 0; }
8681 if { (eval echo configure:8682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8682 rm -rf conftest*
8683 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
8684 else
8685 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8687 rm -rf conftest*
8688 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
8690 rm -f conftest*
8693 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
8694 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
8695 cat >> confdefs.h <<\EOF
8696 #define HAVE_KERNEL_OPLOCKS_IRIX 1
8701 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
8702 echo "configure:8703: checking for irix specific capabilities" >&5
8703 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8705 else
8707 if test "$cross_compiling" = yes; then
8708 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
8709 else
8710 cat > conftest.$ac_ext <<EOF
8711 #line 8712 "configure"
8712 #include "confdefs.h"
8713 #include <sys/types.h>
8714 #include <sys/capability.h>
8715 main() {
8716 cap_t cap;
8717 if ((cap = cap_get_proc()) == NULL)
8718 exit(1);
8719 cap->cap_effective |= CAP_NETWORK_MGT;
8720 cap->cap_inheritable |= CAP_NETWORK_MGT;
8721 cap_set_proc(cap);
8722 exit(0);
8726 if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8727 then
8728 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
8729 else
8730 echo "configure: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8732 rm -fr conftest*
8733 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
8735 rm -fr conftest*
8740 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
8741 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
8742 cat >> confdefs.h <<\EOF
8743 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
8749 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
8750 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
8753 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8754 echo "configure:8755: checking for int16 typedef included by rpc/rpc.h" >&5
8755 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8756 echo $ac_n "(cached) $ac_c" 1>&6
8757 else
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 #include <sys/types.h>
8763 #if defined(HAVE_RPC_RPC_H)
8764 #include <rpc/rpc.h>
8765 #endif
8766 int main() {
8767 int16 testvar;
8768 ; return 0; }
8770 if { (eval echo configure:8771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8771 rm -rf conftest*
8772 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
8773 else
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8776 rm -rf conftest*
8777 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
8779 rm -f conftest*
8782 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8783 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
8784 cat >> confdefs.h <<\EOF
8785 #define HAVE_INT16_FROM_RPC_RPC_H 1
8790 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8791 echo "configure:8792: checking for uint16 typedef included by rpc/rpc.h" >&5
8792 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8793 echo $ac_n "(cached) $ac_c" 1>&6
8794 else
8796 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure"
8798 #include "confdefs.h"
8799 #include <sys/types.h>
8800 #if defined(HAVE_RPC_RPC_H)
8801 #include <rpc/rpc.h>
8802 #endif
8803 int main() {
8804 uint16 testvar;
8805 ; return 0; }
8807 if { (eval echo configure:8808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8808 rm -rf conftest*
8809 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
8810 else
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -rf conftest*
8814 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
8816 rm -f conftest*
8819 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8820 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
8821 cat >> confdefs.h <<\EOF
8822 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8827 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8828 echo "configure:8829: checking for int32 typedef included by rpc/rpc.h" >&5
8829 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8831 else
8833 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 #include <sys/types.h>
8837 #if defined(HAVE_RPC_RPC_H)
8838 #include <rpc/rpc.h>
8839 #endif
8840 int main() {
8841 int32 testvar;
8842 ; return 0; }
8844 if { (eval echo configure:8845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8845 rm -rf conftest*
8846 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
8847 else
8848 echo "configure: failed program was:" >&5
8849 cat conftest.$ac_ext >&5
8850 rm -rf conftest*
8851 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
8853 rm -f conftest*
8856 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8857 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
8858 cat >> confdefs.h <<\EOF
8859 #define HAVE_INT32_FROM_RPC_RPC_H 1
8864 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8865 echo "configure:8866: checking for uint32 typedef included by rpc/rpc.h" >&5
8866 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8868 else
8870 cat > conftest.$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8873 #include <sys/types.h>
8874 #if defined(HAVE_RPC_RPC_H)
8875 #include <rpc/rpc.h>
8876 #endif
8877 int main() {
8878 uint32 testvar;
8879 ; return 0; }
8881 if { (eval echo configure:8882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8882 rm -rf conftest*
8883 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
8884 else
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8887 rm -rf conftest*
8888 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
8890 rm -f conftest*
8893 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8894 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
8895 cat >> confdefs.h <<\EOF
8896 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8902 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8903 echo "configure:8904: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8904 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
8905 echo $ac_n "(cached) $ac_c" 1>&6
8906 else
8908 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 #include <sys/types.h>
8912 #ifdef HAVE_SYS_SECURITY_H
8913 #include <sys/security.h>
8914 #include <prot.h>
8915 #endif /* HAVE_SYS_SECURITY_H */
8916 #if defined(HAVE_RPC_RPC_H)
8917 #include <rpc/rpc.h>
8918 #endif
8919 int main() {
8920 int testvar;
8921 ; return 0; }
8923 if { (eval echo configure:8924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8924 rm -rf conftest*
8925 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
8926 else
8927 echo "configure: failed program was:" >&5
8928 cat conftest.$ac_ext >&5
8929 rm -rf conftest*
8930 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
8932 rm -f conftest*
8935 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
8936 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
8937 cat >> confdefs.h <<\EOF
8938 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
8943 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8944 echo "configure:8945: checking for test routines" >&5
8945 if test "$cross_compiling" = yes; then
8946 echo "configure: warning: cannot run when cross-compiling" 1>&2
8947 else
8948 cat > conftest.$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8951 #include "${srcdir-.}/tests/trivial.c"
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8954 then
8955 echo "$ac_t""yes" 1>&6
8956 else
8957 echo "configure: failed program was:" >&5
8958 cat conftest.$ac_ext >&5
8959 rm -fr conftest*
8960 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8962 rm -fr conftest*
8966 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8967 echo "configure:8968: checking for ftruncate extend" >&5
8968 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8970 else
8972 if test "$cross_compiling" = yes; then
8973 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
8974 else
8975 cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8978 #include "${srcdir-.}/tests/ftruncate.c"
8980 if { (eval echo configure:8981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8981 then
8982 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
8983 else
8984 echo "configure: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8986 rm -fr conftest*
8987 samba_cv_HAVE_FTRUNCATE_EXTEND=no
8989 rm -fr conftest*
8994 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8995 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
8996 cat >> confdefs.h <<\EOF
8997 #define HAVE_FTRUNCATE_EXTEND 1
9002 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9003 echo "configure:9004: checking for broken getgroups" >&5
9004 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9005 echo $ac_n "(cached) $ac_c" 1>&6
9006 else
9008 if test "$cross_compiling" = yes; then
9009 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9010 else
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 #include "${srcdir-.}/tests/getgroups.c"
9016 if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9017 then
9018 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9019 else
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 rm -fr conftest*
9023 samba_cv_HAVE_BROKEN_GETGROUPS=no
9025 rm -fr conftest*
9030 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9031 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9032 cat >> confdefs.h <<\EOF
9033 #define HAVE_BROKEN_GETGROUPS 1
9038 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9039 echo "configure:9040: checking whether getpass should be replaced" >&5
9040 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9041 echo $ac_n "(cached) $ac_c" 1>&6
9042 else
9044 SAVE_CPPFLAGS="$CPPFLAGS"
9045 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9046 cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9050 #define REPLACE_GETPASS 1
9051 #define NO_CONFIG_H 1
9052 #define main dont_declare_main
9053 #include "${srcdir-.}/lib/getsmbpass.c"
9054 #undef main
9056 int main() {
9058 ; return 0; }
9060 if { (eval echo configure:9061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9061 rm -rf conftest*
9062 samba_cv_REPLACE_GETPASS=yes
9063 else
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 rm -rf conftest*
9067 samba_cv_REPLACE_GETPASS=no
9069 rm -f conftest*
9070 CPPFLAGS="$SAVE_CPPFLAGS"
9074 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9075 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9076 cat >> confdefs.h <<\EOF
9077 #define REPLACE_GETPASS 1
9082 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9083 echo "configure:9084: checking for broken inet_ntoa" >&5
9084 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9086 else
9088 if test "$cross_compiling" = yes; then
9089 samba_cv_REPLACE_INET_NTOA=cross
9090 else
9091 cat > conftest.$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9095 #include <stdio.h>
9096 #include <sys/types.h>
9097 #include <netinet/in.h>
9098 #ifdef HAVE_ARPA_INET_H
9099 #include <arpa/inet.h>
9100 #endif
9101 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9102 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9103 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9104 exit(1);}
9106 if { (eval echo configure:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9107 then
9108 samba_cv_REPLACE_INET_NTOA=yes
9109 else
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9112 rm -fr conftest*
9113 samba_cv_REPLACE_INET_NTOA=no
9115 rm -fr conftest*
9120 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9121 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9122 cat >> confdefs.h <<\EOF
9123 #define REPLACE_INET_NTOA 1
9128 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9129 echo "configure:9130: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9130 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9132 else
9134 if test "$cross_compiling" = yes; then
9135 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9136 else
9137 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9140 #include <unistd.h>
9141 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9143 if { (eval echo configure:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9144 then
9145 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9146 else
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9149 rm -fr conftest*
9150 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9152 rm -fr conftest*
9157 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9158 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9159 cat >> confdefs.h <<\EOF
9160 #define SYSCONF_SC_NGROUPS_MAX 1
9165 echo $ac_n "checking for root""... $ac_c" 1>&6
9166 echo "configure:9167: checking for root" >&5
9167 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9169 else
9171 if test "$cross_compiling" = yes; then
9172 samba_cv_HAVE_ROOT=cross
9173 else
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9177 main() { exit(getuid() != 0); }
9179 if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9180 then
9181 samba_cv_HAVE_ROOT=yes
9182 else
9183 echo "configure: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9185 rm -fr conftest*
9186 samba_cv_HAVE_ROOT=no
9188 rm -fr conftest*
9193 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9194 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
9195 cat >> confdefs.h <<\EOF
9196 #define HAVE_ROOT 1
9199 else
9200 echo "configure: warning: running as non-root will disable some tests" 1>&2
9203 ##################
9204 # look for a method of finding the list of network interfaces
9205 iface=no;
9206 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9207 echo "configure:9208: checking for iface AIX" >&5
9208 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9210 else
9212 if test "$cross_compiling" = yes; then
9213 samba_cv_HAVE_IFACE_AIX=cross
9214 else
9215 cat > conftest.$ac_ext <<EOF
9216 #line 9217 "configure"
9217 #include "confdefs.h"
9219 #define HAVE_IFACE_AIX 1
9220 #define AUTOCONF_TEST 1
9221 #include "confdefs.h"
9222 #include "${srcdir-.}/lib/interfaces.c"
9224 if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9225 then
9226 samba_cv_HAVE_IFACE_AIX=yes
9227 else
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9230 rm -fr conftest*
9231 samba_cv_HAVE_IFACE_AIX=no
9233 rm -fr conftest*
9238 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9239 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
9240 iface=yes;cat >> confdefs.h <<\EOF
9241 #define HAVE_IFACE_AIX 1
9246 if test $iface = no; then
9247 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9248 echo "configure:9249: checking for iface ifconf" >&5
9249 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
9251 else
9253 if test "$cross_compiling" = yes; then
9254 samba_cv_HAVE_IFACE_IFCONF=cross
9255 else
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9260 #define HAVE_IFACE_IFCONF 1
9261 #define AUTOCONF_TEST 1
9262 #include "confdefs.h"
9263 #include "${srcdir-.}/lib/interfaces.c"
9265 if { (eval echo configure:9266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9266 then
9267 samba_cv_HAVE_IFACE_IFCONF=yes
9268 else
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9271 rm -fr conftest*
9272 samba_cv_HAVE_IFACE_IFCONF=no
9274 rm -fr conftest*
9279 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9280 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
9281 iface=yes;cat >> confdefs.h <<\EOF
9282 #define HAVE_IFACE_IFCONF 1
9288 if test $iface = no; then
9289 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9290 echo "configure:9291: checking for iface ifreq" >&5
9291 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9292 echo $ac_n "(cached) $ac_c" 1>&6
9293 else
9295 if test "$cross_compiling" = yes; then
9296 samba_cv_HAVE_IFACE_IFREQ=cross
9297 else
9298 cat > conftest.$ac_ext <<EOF
9299 #line 9300 "configure"
9300 #include "confdefs.h"
9302 #define HAVE_IFACE_IFREQ 1
9303 #define AUTOCONF_TEST 1
9304 #include "confdefs.h"
9305 #include "${srcdir-.}/lib/interfaces.c"
9307 if { (eval echo configure:9308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9308 then
9309 samba_cv_HAVE_IFACE_IFREQ=yes
9310 else
9311 echo "configure: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9313 rm -fr conftest*
9314 samba_cv_HAVE_IFACE_IFREQ=no
9316 rm -fr conftest*
9321 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9322 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
9323 iface=yes;cat >> confdefs.h <<\EOF
9324 #define HAVE_IFACE_IFREQ 1
9331 ################################################
9332 # look for a method of setting the effective uid
9333 seteuid=no;
9334 if test $seteuid = no; then
9335 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9336 echo "configure:9337: checking for setresuid" >&5
9337 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9338 echo $ac_n "(cached) $ac_c" 1>&6
9339 else
9341 if test "$cross_compiling" = yes; then
9342 samba_cv_USE_SETRESUID=cross
9343 else
9344 cat > conftest.$ac_ext <<EOF
9345 #line 9346 "configure"
9346 #include "confdefs.h"
9348 #define AUTOCONF_TEST 1
9349 #define USE_SETRESUID 1
9350 #include "confdefs.h"
9351 #include "${srcdir-.}/lib/util_sec.c"
9353 if { (eval echo configure:9354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9354 then
9355 samba_cv_USE_SETRESUID=yes
9356 else
9357 echo "configure: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 rm -fr conftest*
9360 samba_cv_USE_SETRESUID=no
9362 rm -fr conftest*
9367 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9368 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
9369 seteuid=yes;cat >> confdefs.h <<\EOF
9370 #define USE_SETRESUID 1
9377 if test $seteuid = no; then
9378 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9379 echo "configure:9380: checking for setreuid" >&5
9380 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9381 echo $ac_n "(cached) $ac_c" 1>&6
9382 else
9384 if test "$cross_compiling" = yes; then
9385 samba_cv_USE_SETREUID=cross
9386 else
9387 cat > conftest.$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9391 #define AUTOCONF_TEST 1
9392 #define USE_SETREUID 1
9393 #include "confdefs.h"
9394 #include "${srcdir-.}/lib/util_sec.c"
9396 if { (eval echo configure:9397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9397 then
9398 samba_cv_USE_SETREUID=yes
9399 else
9400 echo "configure: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9402 rm -fr conftest*
9403 samba_cv_USE_SETREUID=no
9405 rm -fr conftest*
9410 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
9411 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
9412 seteuid=yes;cat >> confdefs.h <<\EOF
9413 #define USE_SETREUID 1
9419 if test $seteuid = no; then
9420 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
9421 echo "configure:9422: checking for seteuid" >&5
9422 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
9423 echo $ac_n "(cached) $ac_c" 1>&6
9424 else
9426 if test "$cross_compiling" = yes; then
9427 samba_cv_USE_SETEUID=cross
9428 else
9429 cat > conftest.$ac_ext <<EOF
9430 #line 9431 "configure"
9431 #include "confdefs.h"
9433 #define AUTOCONF_TEST 1
9434 #define USE_SETEUID 1
9435 #include "confdefs.h"
9436 #include "${srcdir-.}/lib/util_sec.c"
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9439 then
9440 samba_cv_USE_SETEUID=yes
9441 else
9442 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9444 rm -fr conftest*
9445 samba_cv_USE_SETEUID=no
9447 rm -fr conftest*
9452 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
9453 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
9454 seteuid=yes;cat >> confdefs.h <<\EOF
9455 #define USE_SETEUID 1
9461 if test $seteuid = no; then
9462 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
9463 echo "configure:9464: checking for setuidx" >&5
9464 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9466 else
9468 if test "$cross_compiling" = yes; then
9469 samba_cv_USE_SETUIDX=cross
9470 else
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9475 #define AUTOCONF_TEST 1
9476 #define USE_SETUIDX 1
9477 #include "confdefs.h"
9478 #include "${srcdir-.}/lib/util_sec.c"
9480 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9481 then
9482 samba_cv_USE_SETUIDX=yes
9483 else
9484 echo "configure: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9486 rm -fr conftest*
9487 samba_cv_USE_SETUIDX=no
9489 rm -fr conftest*
9494 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
9495 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
9496 seteuid=yes;cat >> confdefs.h <<\EOF
9497 #define USE_SETUIDX 1
9504 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9505 echo "configure:9506: checking for working mmap" >&5
9506 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9508 else
9510 if test "$cross_compiling" = yes; then
9511 samba_cv_HAVE_MMAP=cross
9512 else
9513 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516 #include "${srcdir-.}/tests/shared_mmap.c"
9518 if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9519 then
9520 samba_cv_HAVE_MMAP=yes
9521 else
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 rm -fr conftest*
9525 samba_cv_HAVE_MMAP=no
9527 rm -fr conftest*
9532 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
9533 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
9534 cat >> confdefs.h <<\EOF
9535 #define HAVE_MMAP 1
9540 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9541 echo "configure:9542: checking for ftruncate needs root" >&5
9542 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9544 else
9546 if test "$cross_compiling" = yes; then
9547 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
9548 else
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 #include "${srcdir-.}/tests/ftruncroot.c"
9554 if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9555 then
9556 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
9557 else
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9560 rm -fr conftest*
9561 samba_cv_FTRUNCATE_NEEDS_ROOT=no
9563 rm -fr conftest*
9568 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
9569 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
9570 cat >> confdefs.h <<\EOF
9571 #define FTRUNCATE_NEEDS_ROOT 1
9576 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
9577 echo "configure:9578: checking for fcntl locking" >&5
9578 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9580 else
9582 if test "$cross_compiling" = yes; then
9583 samba_cv_HAVE_FCNTL_LOCK=cross
9584 else
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9588 #include "${srcdir-.}/tests/fcntl_lock.c"
9590 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9591 then
9592 samba_cv_HAVE_FCNTL_LOCK=yes
9593 else
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -fr conftest*
9597 samba_cv_HAVE_FCNTL_LOCK=no
9599 rm -fr conftest*
9604 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
9605 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
9606 cat >> confdefs.h <<\EOF
9607 #define HAVE_FCNTL_LOCK 1
9612 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
9613 echo "configure:9614: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
9614 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9616 else
9618 if test "$cross_compiling" = yes; then
9619 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
9620 else
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 #include "${srcdir-.}/tests/fcntl_lock64.c"
9626 if { (eval echo configure:9627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9627 then
9628 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
9629 else
9630 echo "configure: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9632 rm -fr conftest*
9633 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
9635 rm -fr conftest*
9640 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
9641 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
9642 cat >> confdefs.h <<\EOF
9643 #define HAVE_BROKEN_FCNTL64_LOCKS 1
9647 else
9650 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
9651 echo "configure:9652: checking for 64 bit fcntl locking" >&5
9652 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9654 else
9656 if test "$cross_compiling" = yes; then
9657 samba_cv_HAVE_STRUCT_FLOCK64=cross
9658 else
9659 cat > conftest.$ac_ext <<EOF
9660 #line 9661 "configure"
9661 #include "confdefs.h"
9663 #if defined(HAVE_UNISTD_H)
9664 #include <unistd.h>
9665 #endif
9666 #include <stdio.h>
9667 #include <stdlib.h>
9669 #ifdef HAVE_FCNTL_H
9670 #include <fcntl.h>
9671 #endif
9673 #ifdef HAVE_SYS_FCNTL_H
9674 #include <sys/fcntl.h>
9675 #endif
9676 main() { struct flock64 fl64;
9677 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
9678 exit(0);
9679 #else
9680 exit(1);
9681 #endif
9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9685 then
9686 samba_cv_HAVE_STRUCT_FLOCK64=yes
9687 else
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 rm -fr conftest*
9691 samba_cv_HAVE_STRUCT_FLOCK64=no
9693 rm -fr conftest*
9698 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
9700 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
9701 cat >> confdefs.h <<\EOF
9702 #define HAVE_STRUCT_FLOCK64 1
9708 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
9709 echo "configure:9710: checking for a crypt that needs truncated salt" >&5
9710 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9712 else
9714 if test "$cross_compiling" = yes; then
9715 samba_cv_HAVE_TRUNCATED_SALT=cross
9716 else
9717 cat > conftest.$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9720 #include "${srcdir-.}/tests/crypttest.c"
9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9723 then
9724 samba_cv_HAVE_TRUNCATED_SALT=no
9725 else
9726 echo "configure: failed program was:" >&5
9727 cat conftest.$ac_ext >&5
9728 rm -fr conftest*
9729 samba_cv_HAVE_TRUNCATED_SALT=yes
9731 rm -fr conftest*
9736 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
9737 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
9738 cat >> confdefs.h <<\EOF
9739 #define HAVE_TRUNCATED_SALT 1
9744 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
9745 echo "configure:9746: checking for broken nisplus include files" >&5
9746 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9748 else
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 #include <sys/acl.h>
9754 #if defined(HAVE_RPCSVC_NIS_H)
9755 #include <rpcsvc/nis.h>
9756 #endif
9757 int main() {
9758 return 0;
9759 ; return 0; }
9761 if { (eval echo configure:9762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9762 rm -rf conftest*
9763 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
9764 else
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9767 rm -rf conftest*
9768 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
9770 rm -f conftest*
9773 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
9774 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
9775 cat >> confdefs.h <<\EOF
9776 #define BROKEN_NISPLUS_INCLUDE_FILES 1
9782 #################################################
9783 # check for smbwrapper support
9784 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
9785 echo "configure:9786: checking whether to use smbwrapper" >&5
9786 # Check whether --with-smbwrapper or --without-smbwrapper was given.
9787 if test "${with_smbwrapper+set}" = set; then
9788 withval="$with_smbwrapper"
9789 case "$withval" in
9790 yes)
9791 echo "$ac_t""yes" 1>&6
9792 cat >> confdefs.h <<\EOF
9793 #define WITH_SMBWRAPPER 1
9796 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
9798 if test x$ATTEMPT_WRAP32_BUILD = x; then
9799 WRAP32=""
9800 else
9801 WRAP32=bin/smbwrapper.32.$SHLIBEXT
9804 # Conditions under which smbwrapper should not be built.
9806 if test x$PICFLAG = x; then
9807 echo No support for PIC code - disabling smbwrapper and smbsh
9808 WRAP=""
9809 WRAP32=""
9810 elif test x$ac_cv_func_syscall = xno; then
9811 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
9812 WRAP=""
9813 WRAP32=""
9817 echo "$ac_t""no" 1>&6
9819 esac
9820 else
9821 echo "$ac_t""no" 1>&6
9826 #################################################
9827 # check for the AFS filesystem
9828 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
9829 echo "configure:9830: checking whether to use AFS" >&5
9830 # Check whether --with-afs or --without-afs was given.
9831 if test "${with_afs+set}" = set; then
9832 withval="$with_afs"
9833 case "$withval" in
9834 yes)
9835 echo "$ac_t""yes" 1>&6
9836 cat >> confdefs.h <<\EOF
9837 #define WITH_AFS 1
9842 echo "$ac_t""no" 1>&6
9844 esac
9845 else
9846 echo "$ac_t""no" 1>&6
9852 #################################################
9853 # check for the DFS auth system
9854 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
9855 echo "configure:9856: checking whether to use DFS auth" >&5
9856 # Check whether --with-dfs or --without-dfs was given.
9857 if test "${with_dfs+set}" = set; then
9858 withval="$with_dfs"
9859 case "$withval" in
9860 yes)
9861 echo "$ac_t""yes" 1>&6
9862 cat >> confdefs.h <<\EOF
9863 #define WITH_DFS 1
9868 echo "$ac_t""no" 1>&6
9870 esac
9871 else
9872 echo "$ac_t""no" 1>&6
9877 #################################################
9878 # check for Kerberos IV auth system
9879 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
9880 echo "configure:9881: checking whether to use Kerberos IV" >&5
9881 # Check whether --with-krb4 or --without-krb4 was given.
9882 if test "${with_krb4+set}" = set; then
9883 withval="$with_krb4"
9884 echo "$ac_t""yes" 1>&6
9885 cat >> confdefs.h <<\EOF
9886 #define KRB4_AUTH 1
9889 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
9890 echo "configure:9891: checking for dn_expand in -lresolv" >&5
9891 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
9892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9894 else
9895 ac_save_LIBS="$LIBS"
9896 LIBS="-lresolv $LIBS"
9897 cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 /* Override any gcc2 internal prototype to avoid an error. */
9901 /* We use char because int might match the return type of a gcc2
9902 builtin and then its argument prototype would still apply. */
9903 char dn_expand();
9905 int main() {
9906 dn_expand()
9907 ; return 0; }
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9910 rm -rf conftest*
9911 eval "ac_cv_lib_$ac_lib_var=yes"
9912 else
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 rm -rf conftest*
9916 eval "ac_cv_lib_$ac_lib_var=no"
9918 rm -f conftest*
9919 LIBS="$ac_save_LIBS"
9922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9923 echo "$ac_t""yes" 1>&6
9924 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9925 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9926 cat >> confdefs.h <<EOF
9927 #define $ac_tr_lib 1
9930 LIBS="-lresolv $LIBS"
9932 else
9933 echo "$ac_t""no" 1>&6
9936 LIBS="$LIBS -lkrb -ldes"
9937 CFLAGS="$CFLAGS -I$withval/include"
9938 LDFLAGS="$LDFLAGS -L$withval/lib"
9939 else
9940 echo "$ac_t""no" 1>&6
9945 #################################################
9946 # check for Kerberos 5 auth system
9947 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
9948 echo "configure:9949: checking whether to use Kerberos 5" >&5
9949 # Check whether --with-krb5 or --without-krb5 was given.
9950 if test "${with_krb5+set}" = set; then
9951 withval="$with_krb5"
9952 echo "$ac_t""yes" 1>&6
9953 cat >> confdefs.h <<\EOF
9954 #define KRB5_AUTH 1
9957 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
9958 CFLAGS="$CFLAGS -I$withval/include"
9959 LDFLAGS="$LDFLAGS -L$withval/lib"
9960 else
9961 echo "$ac_t""no" 1>&6
9966 #################################################
9967 # check for automount support
9968 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
9969 echo "configure:9970: checking whether to use AUTOMOUNT" >&5
9970 # Check whether --with-automount or --without-automount was given.
9971 if test "${with_automount+set}" = set; then
9972 withval="$with_automount"
9973 case "$withval" in
9974 yes)
9975 echo "$ac_t""yes" 1>&6
9976 cat >> confdefs.h <<\EOF
9977 #define WITH_AUTOMOUNT 1
9982 echo "$ac_t""no" 1>&6
9984 esac
9985 else
9986 echo "$ac_t""no" 1>&6
9991 #################################################
9992 # check for smbmount support
9993 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
9994 echo "configure:9995: checking whether to use SMBMOUNT" >&5
9995 # Check whether --with-smbmount or --without-smbmount was given.
9996 if test "${with_smbmount+set}" = set; then
9997 withval="$with_smbmount"
9998 case "$withval" in
9999 yes)
10000 echo "$ac_t""yes" 1>&6
10001 cat >> confdefs.h <<\EOF
10002 #define WITH_SMBMOUNT 1
10005 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10008 echo "$ac_t""no" 1>&6
10009 MPROGS=
10011 esac
10012 else
10013 echo "$ac_t""no" 1>&6
10014 MPROGS=
10020 #################################################
10021 # check for a PAM password database
10022 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10023 echo "configure:10024: checking whether to use PAM password database" >&5
10024 # Check whether --with-pam or --without-pam was given.
10025 if test "${with_pam+set}" = set; then
10026 withval="$with_pam"
10027 case "$withval" in
10028 yes)
10029 echo "$ac_t""yes" 1>&6
10030 cat >> confdefs.h <<\EOF
10031 #define WITH_PAM 1
10034 LIBS="$LIBS -lpam"
10037 echo "$ac_t""no" 1>&6
10039 esac
10040 else
10041 echo "$ac_t""no" 1>&6
10047 #################################################
10048 # check for a LDAP password database
10049 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10050 echo "configure:10051: checking whether to use LDAP password database" >&5
10051 # Check whether --with-ldap or --without-ldap was given.
10052 if test "${with_ldap+set}" = set; then
10053 withval="$with_ldap"
10054 case "$withval" in
10055 yes)
10056 echo "$ac_t""yes" 1>&6
10057 cat >> confdefs.h <<\EOF
10058 #define WITH_LDAP 1
10061 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10064 echo "$ac_t""no" 1>&6
10066 esac
10067 else
10068 echo "$ac_t""no" 1>&6
10073 #################################################
10074 # check for a NISPLUS password database
10075 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10076 echo "configure:10077: checking whether to use NISPLUS password database" >&5
10077 # Check whether --with-nisplus or --without-nisplus was given.
10078 if test "${with_nisplus+set}" = set; then
10079 withval="$with_nisplus"
10080 case "$withval" in
10081 yes)
10082 echo "$ac_t""yes" 1>&6
10083 cat >> confdefs.h <<\EOF
10084 #define WITH_NISPLUS 1
10089 echo "$ac_t""no" 1>&6
10091 esac
10092 else
10093 echo "$ac_t""no" 1>&6
10098 #################################################
10099 # check for a NISPLUS_HOME support
10100 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10101 echo "configure:10102: checking whether to use NISPLUS_HOME" >&5
10102 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10103 if test "${with_nisplus_home+set}" = set; then
10104 withval="$with_nisplus_home"
10105 case "$withval" in
10106 yes)
10107 echo "$ac_t""yes" 1>&6
10108 cat >> confdefs.h <<\EOF
10109 #define WITH_NISPLUS_HOME 1
10114 echo "$ac_t""no" 1>&6
10116 esac
10117 else
10118 echo "$ac_t""no" 1>&6
10123 #################################################
10124 # check for the secure socket layer
10125 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10126 echo "configure:10127: checking whether to use SSL" >&5
10127 # Check whether --with-ssl or --without-ssl was given.
10128 if test "${with_ssl+set}" = set; then
10129 withval="$with_ssl"
10130 case "$withval" in
10131 yes)
10132 echo "$ac_t""yes" 1>&6
10133 cat >> confdefs.h <<\EOF
10134 #define WITH_SSL 1
10137 withval="/usr/local/ssl" # default
10139 if test "${with_sslinc+set}" = set; then
10141 withval="$with_sslinc"
10142 case "$withval" in
10143 yes|no)
10144 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10145 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10146 LIBS="-lssl -lcrypto $LIBS"
10147 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
10150 CFLAGS="-I${withval}/include $CFLAGS"
10151 LIBS="-lssl -lcrypto $LIBS"
10152 LDFLAGS="-L${withval}/lib $LDFLAGS"
10154 esac
10156 else
10158 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10159 LIBS="-lssl -lcrypto $LIBS"
10160 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
10164 if test ! -d ${withval}; then
10165 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10166 exit 1
10169 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10173 echo "$ac_t""no" 1>&6
10175 esac
10176 else
10177 echo "$ac_t""no" 1>&6
10182 #################################################
10183 # check for syslog logging
10184 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10185 echo "configure:10186: checking whether to use syslog logging" >&5
10186 # Check whether --with-syslog or --without-syslog was given.
10187 if test "${with_syslog+set}" = set; then
10188 withval="$with_syslog"
10189 case "$withval" in
10190 yes)
10191 echo "$ac_t""yes" 1>&6
10192 cat >> confdefs.h <<\EOF
10193 #define WITH_SYSLOG 1
10198 echo "$ac_t""no" 1>&6
10200 esac
10201 else
10202 echo "$ac_t""no" 1>&6
10207 #################################################
10208 # check for a shared memory profiling support
10209 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10210 echo "configure:10211: checking whether to use profiling" >&5
10211 # Check whether --with-profile or --without-profile was given.
10212 if test "${with_profile+set}" = set; then
10213 withval="$with_profile"
10214 case "$withval" in
10215 yes)
10216 echo "$ac_t""yes" 1>&6
10217 cat >> confdefs.h <<\EOF
10218 #define WITH_PROFILE 1
10223 echo "$ac_t""no" 1>&6
10225 esac
10226 else
10227 echo "$ac_t""no" 1>&6
10233 #################################################
10234 # check for experimental netatalk resource fork support
10235 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10236 echo "configure:10237: checking whether to support netatalk" >&5
10237 # Check whether --with-netatalk or --without-netatalk was given.
10238 if test "${with_netatalk+set}" = set; then
10239 withval="$with_netatalk"
10240 case "$withval" in
10241 yes)
10242 echo "$ac_t""yes" 1>&6
10243 cat >> confdefs.h <<\EOF
10244 #define WITH_NETATALK 1
10249 echo "$ac_t""no" 1>&6
10251 esac
10252 else
10253 echo "$ac_t""no" 1>&6
10258 #################################################
10259 # check for experimental disk-quotas support
10260 QUOTAOBJS=smbd/noquotas.o
10262 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10263 echo "configure:10264: checking whether to support disk-quotas" >&5
10264 # Check whether --with-quotas or --without-quotas was given.
10265 if test "${with_quotas+set}" = set; then
10266 withval="$with_quotas"
10267 case "$withval" in
10268 yes)
10269 echo "$ac_t""yes" 1>&6
10270 QUOTAOBJS=smbd/quotas.o
10273 echo "$ac_t""no" 1>&6
10275 esac
10276 else
10277 echo "$ac_t""no" 1>&6
10283 #################################################
10284 # check for experimental utmp accounting
10286 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10287 echo "configure:10288: checking whether to support utmp accounting" >&5
10288 # Check whether --with-utmp or --without-utmp was given.
10289 if test "${with_utmp+set}" = set; then
10290 withval="$with_utmp"
10291 case "$withval" in
10292 yes)
10293 echo "$ac_t""yes" 1>&6
10294 cat >> confdefs.h <<\EOF
10295 #define WITH_UTMP 1
10300 echo "$ac_t""no" 1>&6
10302 esac
10303 else
10304 echo "$ac_t""no" 1>&6
10309 #################################################
10310 # check for MS Dfs support
10312 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
10313 echo "configure:10314: checking whether to support Microsoft Dfs" >&5
10314 # Check whether --with-msdfs or --without-msdfs was given.
10315 if test "${with_msdfs+set}" = set; then
10316 withval="$with_msdfs"
10317 case "$withval" in
10318 yes)
10319 echo "$ac_t""yes" 1>&6
10320 cat >> confdefs.h <<\EOF
10321 #define WITH_MSDFS 1
10326 echo "$ac_t""no" 1>&6
10328 esac
10329 else
10330 echo "$ac_t""no" 1>&6
10335 #################################################
10336 # set private directory location
10337 # Check whether --with-privatedir or --without-privatedir was given.
10338 if test "${with_privatedir+set}" = set; then
10339 withval="$with_privatedir"
10340 case "$withval" in
10341 yes|no)
10343 # Just in case anybody calls it without argument
10345 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10346 privatedir='${prefix}/private'
10349 privatedir="$withval"
10351 esac
10353 else
10354 privatedir='${prefix}/private'
10360 #################################################
10361 # set lock directory location
10362 # Check whether --with-lockdir or --without-lockdir was given.
10363 if test "${with_lockdir+set}" = set; then
10364 withval="$with_lockdir"
10365 case "$withval" in
10366 yes|no)
10368 # Just in case anybody calls it without argument
10370 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10371 lockdir='$(VARDIR)/locks'
10374 lockdir="$withval"
10376 esac
10378 else
10379 lockdir='$(VARDIR)/locks'
10385 #################################################
10386 # set SWAT directory location
10387 # Check whether --with-swatdir or --without-swatdir was given.
10388 if test "${with_swatdir+set}" = set; then
10389 withval="$with_swatdir"
10390 case "$withval" in
10391 yes|no)
10393 # Just in case anybody does it
10395 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
10396 swatdir='${prefix}/swat'
10399 swatdir="$withval"
10401 esac
10403 else
10404 swatdir='${prefix}/swat'
10410 #################################################
10411 # these tests are taken from the GNU fileutils package
10412 echo "checking how to get filesystem space usage" 1>&6
10413 echo "configure:10414: checking how to get filesystem space usage" >&5
10414 space=no
10416 # Test for statvfs64.
10417 if test $space = no; then
10418 # SVR4
10419 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
10420 echo "configure:10421: checking statvfs64 function (SVR4)" >&5
10421 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
10422 echo $ac_n "(cached) $ac_c" 1>&6
10423 else
10424 if test "$cross_compiling" = yes; then
10425 fu_cv_sys_stat_statvfs64=cross
10426 else
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10431 #if defined(HAVE_UNISTD_H)
10432 #include <unistd.h>
10433 #endif
10434 #include <sys/types.h>
10435 #include <sys/statvfs.h>
10436 main ()
10438 struct statvfs64 fsd;
10439 exit (statvfs64 (".", &fsd));
10442 if { (eval echo configure:10443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10443 then
10444 fu_cv_sys_stat_statvfs64=yes
10445 else
10446 echo "configure: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10448 rm -fr conftest*
10449 fu_cv_sys_stat_statvfs64=no
10451 rm -fr conftest*
10456 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
10457 if test $fu_cv_sys_stat_statvfs64 = yes; then
10458 space=yes
10459 cat >> confdefs.h <<\EOF
10460 #define STAT_STATVFS64 1
10466 # Perform only the link test since it seems there are no variants of the
10467 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
10468 # because that got a false positive on SCO OSR5. Adding the declaration
10469 # of a `struct statvfs' causes this test to fail (as it should) on such
10470 # systems. That system is reported to work fine with STAT_STATFS4 which
10471 # is what it gets when this test fails.
10472 if test $space = no; then
10473 # SVR4
10474 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
10475 echo "configure:10476: checking statvfs function (SVR4)" >&5
10476 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10478 else
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10482 #include <sys/types.h>
10483 #include <sys/statvfs.h>
10484 int main() {
10485 struct statvfs fsd; statvfs (0, &fsd);
10486 ; return 0; }
10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10489 rm -rf conftest*
10490 fu_cv_sys_stat_statvfs=yes
10491 else
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 rm -rf conftest*
10495 fu_cv_sys_stat_statvfs=no
10497 rm -f conftest*
10500 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
10501 if test $fu_cv_sys_stat_statvfs = yes; then
10502 space=yes
10503 cat >> confdefs.h <<\EOF
10504 #define STAT_STATVFS 1
10510 if test $space = no; then
10511 # DEC Alpha running OSF/1
10512 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
10513 echo "configure:10514: checking for 3-argument statfs function (DEC OSF/1)" >&5
10514 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10516 else
10517 if test "$cross_compiling" = yes; then
10518 fu_cv_sys_stat_statfs3_osf1=no
10519 else
10520 cat > conftest.$ac_ext <<EOF
10521 #line 10522 "configure"
10522 #include "confdefs.h"
10524 #include <sys/param.h>
10525 #include <sys/types.h>
10526 #include <sys/mount.h>
10527 main ()
10529 struct statfs fsd;
10530 fsd.f_fsize = 0;
10531 exit (statfs (".", &fsd, sizeof (struct statfs)));
10534 if { (eval echo configure:10535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10535 then
10536 fu_cv_sys_stat_statfs3_osf1=yes
10537 else
10538 echo "configure: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 rm -fr conftest*
10541 fu_cv_sys_stat_statfs3_osf1=no
10543 rm -fr conftest*
10548 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
10549 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
10550 space=yes
10551 cat >> confdefs.h <<\EOF
10552 #define STAT_STATFS3_OSF1 1
10558 if test $space = no; then
10559 # AIX
10560 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
10561 echo "configure:10562: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
10562 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
10563 echo $ac_n "(cached) $ac_c" 1>&6
10564 else
10565 if test "$cross_compiling" = yes; then
10566 fu_cv_sys_stat_statfs2_bsize=no
10567 else
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10572 #ifdef HAVE_SYS_PARAM_H
10573 #include <sys/param.h>
10574 #endif
10575 #ifdef HAVE_SYS_MOUNT_H
10576 #include <sys/mount.h>
10577 #endif
10578 #ifdef HAVE_SYS_VFS_H
10579 #include <sys/vfs.h>
10580 #endif
10581 main ()
10583 struct statfs fsd;
10584 fsd.f_bsize = 0;
10585 exit (statfs (".", &fsd));
10588 if { (eval echo configure:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10589 then
10590 fu_cv_sys_stat_statfs2_bsize=yes
10591 else
10592 echo "configure: failed program was:" >&5
10593 cat conftest.$ac_ext >&5
10594 rm -fr conftest*
10595 fu_cv_sys_stat_statfs2_bsize=no
10597 rm -fr conftest*
10602 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
10603 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
10604 space=yes
10605 cat >> confdefs.h <<\EOF
10606 #define STAT_STATFS2_BSIZE 1
10612 if test $space = no; then
10613 # SVR3
10614 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
10615 echo "configure:10616: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
10616 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
10617 echo $ac_n "(cached) $ac_c" 1>&6
10618 else
10619 if test "$cross_compiling" = yes; then
10620 fu_cv_sys_stat_statfs4=no
10621 else
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10625 #include <sys/types.h>
10626 #include <sys/statfs.h>
10627 main ()
10629 struct statfs fsd;
10630 exit (statfs (".", &fsd, sizeof fsd, 0));
10633 if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10634 then
10635 fu_cv_sys_stat_statfs4=yes
10636 else
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 rm -fr conftest*
10640 fu_cv_sys_stat_statfs4=no
10642 rm -fr conftest*
10647 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
10648 if test $fu_cv_sys_stat_statfs4 = yes; then
10649 space=yes
10650 cat >> confdefs.h <<\EOF
10651 #define STAT_STATFS4 1
10657 if test $space = no; then
10658 # 4.4BSD and NetBSD
10659 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
10660 echo "configure:10661: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
10661 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10663 else
10664 if test "$cross_compiling" = yes; then
10665 fu_cv_sys_stat_statfs2_fsize=no
10666 else
10667 cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10670 #include <sys/types.h>
10671 #ifdef HAVE_SYS_PARAM_H
10672 #include <sys/param.h>
10673 #endif
10674 #ifdef HAVE_SYS_MOUNT_H
10675 #include <sys/mount.h>
10676 #endif
10677 main ()
10679 struct statfs fsd;
10680 fsd.f_fsize = 0;
10681 exit (statfs (".", &fsd));
10684 if { (eval echo configure:10685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10685 then
10686 fu_cv_sys_stat_statfs2_fsize=yes
10687 else
10688 echo "configure: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10690 rm -fr conftest*
10691 fu_cv_sys_stat_statfs2_fsize=no
10693 rm -fr conftest*
10698 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
10699 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
10700 space=yes
10701 cat >> confdefs.h <<\EOF
10702 #define STAT_STATFS2_FSIZE 1
10708 if test $space = no; then
10709 # Ultrix
10710 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
10711 echo "configure:10712: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
10712 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
10713 echo $ac_n "(cached) $ac_c" 1>&6
10714 else
10715 if test "$cross_compiling" = yes; then
10716 fu_cv_sys_stat_fs_data=no
10717 else
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10721 #include <sys/types.h>
10722 #ifdef HAVE_SYS_PARAM_H
10723 #include <sys/param.h>
10724 #endif
10725 #ifdef HAVE_SYS_MOUNT_H
10726 #include <sys/mount.h>
10727 #endif
10728 #ifdef HAVE_SYS_FS_TYPES_H
10729 #include <sys/fs_types.h>
10730 #endif
10731 main ()
10733 struct fs_data fsd;
10734 /* Ultrix's statfs returns 1 for success,
10735 0 for not mounted, -1 for failure. */
10736 exit (statfs (".", &fsd) != 1);
10739 if { (eval echo configure:10740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10740 then
10741 fu_cv_sys_stat_fs_data=yes
10742 else
10743 echo "configure: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 rm -fr conftest*
10746 fu_cv_sys_stat_fs_data=no
10748 rm -fr conftest*
10753 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
10754 if test $fu_cv_sys_stat_fs_data = yes; then
10755 space=yes
10756 cat >> confdefs.h <<\EOF
10757 #define STAT_STATFS2_FS_DATA 1
10764 # As a gating factor for large file support, in order to
10765 # use <4GB files we must have the following minimal support
10766 # available.
10767 # long long, and a 64 bit off_t or off64_t.
10768 # If we don't have all of these then disable large
10769 # file support.
10771 echo "checking if large file support can be enabled"
10772 cat > conftest.$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10776 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
10777 #include <sys/types.h>
10778 #else
10779 __COMPILE_ERROR_
10780 #endif
10782 int main() {
10783 int i
10784 ; return 0; }
10786 if { (eval echo configure:10787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10787 rm -rf conftest*
10788 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
10789 else
10790 echo "configure: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10792 rm -rf conftest*
10793 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
10795 rm -f conftest*
10796 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
10797 echo "yes"
10798 cat >> confdefs.h <<\EOF
10799 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
10802 else
10803 echo "no"
10806 echo "checking configure summary"
10807 if test "$cross_compiling" = yes; then
10809 else
10810 cat > conftest.$ac_ext <<EOF
10811 #line 10812 "configure"
10812 #include "confdefs.h"
10813 #include "${srcdir-.}/tests/summary.c"
10815 if { (eval echo configure:10816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10816 then
10817 echo "configure OK";
10818 else
10819 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5
10821 rm -fr conftest*
10822 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
10824 rm -fr conftest*
10828 builddir=`pwd`
10831 trap '' 1 2 15
10832 cat > confcache <<\EOF
10833 # This file is a shell script that caches the results of configure
10834 # tests run on this system so they can be shared between configure
10835 # scripts and configure runs. It is not useful on other systems.
10836 # If it contains results you don't want to keep, you may remove or edit it.
10838 # By default, configure uses ./config.cache as the cache file,
10839 # creating it if it does not exist already. You can give configure
10840 # the --cache-file=FILE option to use a different cache file; that is
10841 # what configure does when it calls configure scripts in
10842 # subdirectories, so they share the cache.
10843 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10844 # config.status only pays attention to the cache file if you give it the
10845 # --recheck option to rerun configure.
10848 # The following way of writing the cache mishandles newlines in values,
10849 # but we know of no workaround that is simple, portable, and efficient.
10850 # So, don't put newlines in cache variables' values.
10851 # Ultrix sh set writes to stderr and can't be redirected directly,
10852 # and sets the high bit in the cache file unless we assign to the vars.
10853 (set) 2>&1 |
10854 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10855 *ac_space=\ *)
10856 # `set' does not quote correctly, so add quotes (double-quote substitution
10857 # turns \\\\ into \\, and sed turns \\ into \).
10858 sed -n \
10859 -e "s/'/'\\\\''/g" \
10860 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10863 # `set' quotes correctly as required by POSIX, so do not add quotes.
10864 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10866 esac >> confcache
10867 if cmp -s $cache_file confcache; then
10869 else
10870 if test -w $cache_file; then
10871 echo "updating cache $cache_file"
10872 cat confcache > $cache_file
10873 else
10874 echo "not updating unwritable cache $cache_file"
10877 rm -f confcache
10879 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10882 # Let make expand exec_prefix.
10883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10885 # Any assignment to VPATH causes Sun make to only execute
10886 # the first set of double-colon rules, so remove it if not needed.
10887 # If there is a colon in the path, we need to keep it.
10888 if test "x$srcdir" = x.; then
10889 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10892 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10894 DEFS=-DHAVE_CONFIG_H
10896 # Without the "./", some shells look in PATH for config.status.
10897 : ${CONFIG_STATUS=./config.status}
10899 echo creating $CONFIG_STATUS
10900 rm -f $CONFIG_STATUS
10901 cat > $CONFIG_STATUS <<EOF
10902 #! /bin/sh
10903 # Generated automatically by configure.
10904 # Run this file to recreate the current configuration.
10905 # This directory was configured as follows,
10906 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10908 # $0 $ac_configure_args
10910 # Compiler output produced by configure, useful for debugging
10911 # configure, is in ./config.log if it exists.
10913 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10914 for ac_option
10916 case "\$ac_option" in
10917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10918 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10919 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10920 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10921 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10922 exit 0 ;;
10923 -help | --help | --hel | --he | --h)
10924 echo "\$ac_cs_usage"; exit 0 ;;
10925 *) echo "\$ac_cs_usage"; exit 1 ;;
10926 esac
10927 done
10929 ac_given_srcdir=$srcdir
10930 ac_given_INSTALL="$INSTALL"
10932 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10934 cat >> $CONFIG_STATUS <<EOF
10936 # Protect against being on the right side of a sed subst in config.status.
10937 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10938 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10939 $ac_vpsub
10940 $extrasub
10941 s%@SHELL@%$SHELL%g
10942 s%@CFLAGS@%$CFLAGS%g
10943 s%@CPPFLAGS@%$CPPFLAGS%g
10944 s%@CXXFLAGS@%$CXXFLAGS%g
10945 s%@FFLAGS@%$FFLAGS%g
10946 s%@DEFS@%$DEFS%g
10947 s%@LDFLAGS@%$LDFLAGS%g
10948 s%@LIBS@%$LIBS%g
10949 s%@exec_prefix@%$exec_prefix%g
10950 s%@prefix@%$prefix%g
10951 s%@program_transform_name@%$program_transform_name%g
10952 s%@bindir@%$bindir%g
10953 s%@sbindir@%$sbindir%g
10954 s%@libexecdir@%$libexecdir%g
10955 s%@datadir@%$datadir%g
10956 s%@sysconfdir@%$sysconfdir%g
10957 s%@sharedstatedir@%$sharedstatedir%g
10958 s%@localstatedir@%$localstatedir%g
10959 s%@libdir@%$libdir%g
10960 s%@includedir@%$includedir%g
10961 s%@oldincludedir@%$oldincludedir%g
10962 s%@infodir@%$infodir%g
10963 s%@mandir@%$mandir%g
10964 s%@RUNPROG@%$RUNPROG%g
10965 s%@MPROGS@%$MPROGS%g
10966 s%@LDSHFLAGS@%$LDSHFLAGS%g
10967 s%@HOST_OS@%$HOST_OS%g
10968 s%@WRAP@%$WRAP%g
10969 s%@WRAP32@%$WRAP32%g
10970 s%@PICFLAG@%$PICFLAG%g
10971 s%@SHLIBEXT@%$SHLIBEXT%g
10972 s%@CC@%$CC%g
10973 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10974 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10975 s%@INSTALL_DATA@%$INSTALL_DATA%g
10976 s%@AWK@%$AWK%g
10977 s%@host@%$host%g
10978 s%@host_alias@%$host_alias%g
10979 s%@host_cpu@%$host_cpu%g
10980 s%@host_vendor@%$host_vendor%g
10981 s%@host_os@%$host_os%g
10982 s%@build@%$build%g
10983 s%@build_alias@%$build_alias%g
10984 s%@build_cpu@%$build_cpu%g
10985 s%@build_vendor@%$build_vendor%g
10986 s%@build_os@%$build_os%g
10987 s%@RANLIB@%$RANLIB%g
10988 s%@LN_S@%$LN_S%g
10989 s%@LIBTOOL@%$LIBTOOL%g
10990 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
10991 s%@BROKEN_CC@%$BROKEN_CC%g
10992 s%@target@%$target%g
10993 s%@target_alias@%$target_alias%g
10994 s%@target_cpu@%$target_cpu%g
10995 s%@target_vendor@%$target_vendor%g
10996 s%@target_os@%$target_os%g
10997 s%@CPP@%$CPP%g
10998 s%@LIBOBJS@%$LIBOBJS%g
10999 s%@ROFF@%$ROFF%g
11000 s%@QUOTAOBJS@%$QUOTAOBJS%g
11001 s%@privatedir@%$privatedir%g
11002 s%@lockdir@%$lockdir%g
11003 s%@swatdir@%$swatdir%g
11004 s%@builddir@%$builddir%g
11006 CEOF
11009 cat >> $CONFIG_STATUS <<\EOF
11011 # Split the substitutions into bite-sized pieces for seds with
11012 # small command number limits, like on Digital OSF/1 and HP-UX.
11013 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11014 ac_file=1 # Number of current file.
11015 ac_beg=1 # First line for current file.
11016 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11017 ac_more_lines=:
11018 ac_sed_cmds=""
11019 while $ac_more_lines; do
11020 if test $ac_beg -gt 1; then
11021 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11022 else
11023 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11025 if test ! -s conftest.s$ac_file; then
11026 ac_more_lines=false
11027 rm -f conftest.s$ac_file
11028 else
11029 if test -z "$ac_sed_cmds"; then
11030 ac_sed_cmds="sed -f conftest.s$ac_file"
11031 else
11032 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11034 ac_file=`expr $ac_file + 1`
11035 ac_beg=$ac_end
11036 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11038 done
11039 if test -z "$ac_sed_cmds"; then
11040 ac_sed_cmds=cat
11044 cat >> $CONFIG_STATUS <<EOF
11046 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11048 cat >> $CONFIG_STATUS <<\EOF
11049 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11051 case "$ac_file" in
11052 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11053 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11054 *) ac_file_in="${ac_file}.in" ;;
11055 esac
11057 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11059 # Remove last slash and all that follows it. Not all systems have dirname.
11060 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11061 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11062 # The file is in a subdirectory.
11063 test ! -d "$ac_dir" && mkdir "$ac_dir"
11064 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11065 # A "../" for each directory in $ac_dir_suffix.
11066 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11067 else
11068 ac_dir_suffix= ac_dots=
11071 case "$ac_given_srcdir" in
11072 .) srcdir=.
11073 if test -z "$ac_dots"; then top_srcdir=.
11074 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11075 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11076 *) # Relative path.
11077 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11078 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11079 esac
11081 case "$ac_given_INSTALL" in
11082 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11083 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11084 esac
11086 echo creating "$ac_file"
11087 rm -f "$ac_file"
11088 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11089 case "$ac_file" in
11090 *Makefile*) ac_comsub="1i\\
11091 # $configure_input" ;;
11092 *) ac_comsub= ;;
11093 esac
11095 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11096 sed -e "$ac_comsub
11097 s%@configure_input@%$configure_input%g
11098 s%@srcdir@%$srcdir%g
11099 s%@top_srcdir@%$top_srcdir%g
11100 s%@INSTALL@%$INSTALL%g
11101 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11102 fi; done
11103 rm -f conftest.s*
11105 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11106 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11108 # ac_d sets the value in "#define NAME VALUE" lines.
11109 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11110 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11111 ac_dC='\3'
11112 ac_dD='%g'
11113 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11114 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11115 ac_uB='\([ ]\)%\1#\2define\3'
11116 ac_uC=' '
11117 ac_uD='\4%g'
11118 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11119 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11120 ac_eB='$%\1#\2define\3'
11121 ac_eC=' '
11122 ac_eD='%g'
11124 if test "${CONFIG_HEADERS+set}" != set; then
11126 cat >> $CONFIG_STATUS <<EOF
11127 CONFIG_HEADERS="include/config.h"
11129 cat >> $CONFIG_STATUS <<\EOF
11131 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11133 case "$ac_file" in
11134 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11135 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11136 *) ac_file_in="${ac_file}.in" ;;
11137 esac
11139 echo creating $ac_file
11141 rm -f conftest.frag conftest.in conftest.out
11142 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11143 cat $ac_file_inputs > conftest.in
11147 # Transform confdefs.h into a sed script conftest.vals that substitutes
11148 # the proper values into config.h.in to produce config.h. And first:
11149 # Protect against being on the right side of a sed subst in config.status.
11150 # Protect against being in an unquoted here document in config.status.
11151 rm -f conftest.vals
11152 cat > conftest.hdr <<\EOF
11153 s/[\\&%]/\\&/g
11154 s%[\\$`]%\\&%g
11155 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11156 s%ac_d%ac_u%gp
11157 s%ac_u%ac_e%gp
11159 sed -n -f conftest.hdr confdefs.h > conftest.vals
11160 rm -f conftest.hdr
11162 # This sed command replaces #undef with comments. This is necessary, for
11163 # example, in the case of _POSIX_SOURCE, which is predefined and required
11164 # on some systems where configure will not decide to define it.
11165 cat >> conftest.vals <<\EOF
11166 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11169 # Break up conftest.vals because some shells have a limit on
11170 # the size of here documents, and old seds have small limits too.
11172 rm -f conftest.tail
11173 while :
11175 ac_lines=`grep -c . conftest.vals`
11176 # grep -c gives empty output for an empty file on some AIX systems.
11177 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11178 # Write a limited-size here document to conftest.frag.
11179 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11180 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11181 echo 'CEOF
11182 sed -f conftest.frag conftest.in > conftest.out
11183 rm -f conftest.in
11184 mv conftest.out conftest.in
11185 ' >> $CONFIG_STATUS
11186 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11187 rm -f conftest.vals
11188 mv conftest.tail conftest.vals
11189 done
11190 rm -f conftest.vals
11192 cat >> $CONFIG_STATUS <<\EOF
11193 rm -f conftest.frag conftest.h
11194 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11195 cat conftest.in >> conftest.h
11196 rm -f conftest.in
11197 if cmp -s $ac_file conftest.h 2>/dev/null; then
11198 echo "$ac_file is unchanged"
11199 rm -f conftest.h
11200 else
11201 # Remove last slash and all that follows it. Not all systems have dirname.
11202 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11203 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11204 # The file is in a subdirectory.
11205 test ! -d "$ac_dir" && mkdir "$ac_dir"
11207 rm -f $ac_file
11208 mv conftest.h $ac_file
11210 fi; done
11213 cat >> $CONFIG_STATUS <<EOF
11216 cat >> $CONFIG_STATUS <<\EOF
11218 exit 0
11220 chmod +x $CONFIG_STATUS
11221 rm -fr confdefs* $ac_clean_files
11222 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1