merge from 2.2
[Samba/gbeck.git] / source / configure
blob13d45b9380706e71b3c8dcf3325910b8130bab2d
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-debug turn on debugging [default=no]"
17 ac_help="$ac_help
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-static[=PKGS] build static libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 ac_help="$ac_help
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 ac_help="$ac_help
26 --disable-libtool-lock avoid locking (might break parallel builds)"
27 ac_help="$ac_help
28 --with-codepagedir=DIR Where to put codepage files ($codepagedir)"
29 ac_help="$ac_help
30 --with-readline[=DIR] Look for readline include/libs in DIR
31 --without-readline Don't include readline support"
32 ac_help="$ac_help
33 --with-smbwrapper Include SMB wrapper support
34 --without-smbwrapper Don't include SMB wrapper support (default)"
35 ac_help="$ac_help
36 --with-afs Include AFS support
37 --without-afs Don't include AFS support (default)"
38 ac_help="$ac_help
39 --with-dfs Include DFS support
40 --without-dfs Don't include DFS support (default)"
41 ac_help="$ac_help
42 --with-krb4=base-dir Include Kerberos IV support
43 --without-krb4 Don't include Kerberos IV support (default)"
44 ac_help="$ac_help
45 --with-krb5=base-dir Include Kerberos 5 support
46 --without-krb5 Don't include Kerberos 5 support (default)"
47 ac_help="$ac_help
48 --with-automount Include AUTOMOUNT support
49 --without-automount Don't include AUTOMOUNT support (default)"
50 ac_help="$ac_help
51 --with-smbmount Include SMBMOUNT (Linux only) support
52 --without-smbmount Don't include SMBMOUNT support (default)"
53 ac_help="$ac_help
54 --with-pam Include PAM password database support
55 --without-pam Don't include PAM password database support (default)"
56 ac_help="$ac_help
57 --with-tdbsam Include experimental TDB password database
58 --without-tdbsam Don't include experimental TDB password database (default)"
59 ac_help="$ac_help
60 --with-ldap Include LDAP support
61 --without-ldap Don't include LDAP support (default)"
62 ac_help="$ac_help
63 --with-nisplus Include NISPLUS password database support
64 --without-nisplus Don't include NISPLUS password database support (default)"
65 ac_help="$ac_help
66 --with-nisplus-home Include NISPLUS_HOME support
67 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
68 ac_help="$ac_help
69 --with-ssl Include SSL support
70 --without-ssl Don't include SSL support (default)
71 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
72 ac_help="$ac_help
73 --with-syslog Include experimental SYSLOG support
74 --without-syslog Don't include SYSLOG support (default)"
75 ac_help="$ac_help
76 --with-profile Include profile support
77 --without-profile Don't include profile support (default)"
78 ac_help="$ac_help
79 --with-netatalk Include experimental Netatalk support
80 --without-netatalk Don't include experimental Netatalk support (default)"
81 ac_help="$ac_help
82 --with-quotas Include experimental disk-quota support
83 --without-quotas Don't include experimental disk-quota support (default)"
84 ac_help="$ac_help
85 --with-utmp Include experimental utmp accounting
86 --without-utmp Don't include experimental utmp accounting (default)"
87 ac_help="$ac_help
88 --with-msdfs Include MS Dfs support
89 --without-msdfs Don't include MS Dfs support (default)"
90 ac_help="$ac_help
91 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
92 ac_help="$ac_help
93 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
94 ac_help="$ac_help
95 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
96 ac_help="$ac_help
97 --with-spinlocks use spin locks instead of fcntl locks "
98 ac_help="$ac_help
99 --with-acl-support Include ACL support
100 --without-acl-support Don't include ACL support (default)"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
105 build=NONE
106 cache_file=./config.cache
107 exec_prefix=NONE
108 host=NONE
109 no_create=
110 nonopt=NONE
111 no_recursion=
112 prefix=NONE
113 program_prefix=NONE
114 program_suffix=NONE
115 program_transform_name=s,x,x,
116 silent=
117 site=
118 srcdir=
119 target=NONE
120 verbose=
121 x_includes=NONE
122 x_libraries=NONE
123 bindir='${exec_prefix}/bin'
124 sbindir='${exec_prefix}/sbin'
125 libexecdir='${exec_prefix}/libexec'
126 datadir='${prefix}/share'
127 sysconfdir='${prefix}/etc'
128 sharedstatedir='${prefix}/com'
129 localstatedir='${prefix}/var'
130 libdir='${exec_prefix}/lib'
131 includedir='${prefix}/include'
132 oldincludedir='/usr/include'
133 infodir='${prefix}/info'
134 mandir='${prefix}/man'
136 # Initialize some other variables.
137 subdirs=
138 MFLAGS= MAKEFLAGS=
139 SHELL=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
141 ac_max_here_lines=12
143 ac_prev=
144 for ac_option
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
150 ac_prev=
151 continue
154 case "$ac_option" in
155 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
156 *) ac_optarg= ;;
157 esac
159 # Accept the important Cygnus configure options, so we can diagnose typos.
161 case "$ac_option" in
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
164 ac_prev=bindir ;;
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
169 ac_prev=build ;;
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev=cache_file ;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
181 ac_prev=datadir ;;
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
183 | --da=*)
184 datadir="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
202 case "$ac_option" in
203 *=*) ;;
204 *) ac_optarg=yes ;;
205 esac
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev=exec_prefix ;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
219 with_gas=yes ;;
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
224 cat << EOF
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
227 Configuration:
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
235 [$ac_default_prefix]
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
237 [same as prefix]
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
242 [PREFIX/share]
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
245 [PREFIX/com]
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
258 cat << EOF
259 Host type:
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
274 exit 0 ;;
276 -host | --host | --hos | --ho)
277 ac_prev=host ;;
278 -host=* | --host=* | --hos=* | --ho=*)
279 host="$ac_optarg" ;;
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev=includedir ;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 ac_prev=infodir ;;
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
294 ac_prev=libdir ;;
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev=libexecdir ;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev=localstatedir ;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 ac_prev=mandir ;;
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir="$ac_optarg" ;;
319 -nfp | --nfp | --nf)
320 # Obsolete; use --without-fp.
321 with_fp=no ;;
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
324 | --no-cr | --no-c)
325 no_create=yes ;;
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 no_recursion=yes ;;
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev=oldincludedir ;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 ac_prev=prefix ;;
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev=program_prefix ;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev=program_suffix ;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix="$ac_optarg" ;;
359 -program-transform-name | --program-transform-name \
360 | --program-transform-nam | --program-transform-na \
361 | --program-transform-n | --program-transform- \
362 | --program-transform | --program-transfor \
363 | --program-transfo | --program-transf \
364 | --program-trans | --program-tran \
365 | --progr-tra | --program-tr | --program-t)
366 ac_prev=program_transform_name ;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
378 silent=yes ;;
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 ac_prev=sbindir ;;
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 | --sbi=* | --sb=*)
384 sbindir="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
389 | --sha | --sh)
390 ac_prev=sharedstatedir ;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 | --sha=* | --sh=*)
395 sharedstatedir="$ac_optarg" ;;
397 -site | --site | --sit)
398 ac_prev=site ;;
399 -site=* | --site=* | --sit=*)
400 site="$ac_optarg" ;;
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 ac_prev=srcdir ;;
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev=sysconfdir ;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
415 ac_prev=target ;;
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 verbose=yes ;;
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.13"
424 exit 0 ;;
426 -with-* | --with-*)
427 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
433 case "$ac_option" in
434 *=*) ;;
435 *) ac_optarg=yes ;;
436 esac
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
448 --x)
449 # Obsolete; use --with-x.
450 with_x=yes ;;
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 nonopt="$ac_option"
479 esac
480 done
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
489 # 0 standard input
490 # 1 file creation
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
497 exec 6>/dev/null
498 else
499 exec 6>&1
501 exec 5>./config.log
503 echo "\
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
506 " 1>&5
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
510 ac_configure_args=
511 for ac_arg
513 case "$ac_arg" in
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
521 esac
522 done
524 # NLS nuisances.
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
537 echo > confdefs.h
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file=include/includes.h
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
547 ac_prog=$0
548 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
550 srcdir=$ac_confdir
551 if test ! -r $srcdir/$ac_unique_file; then
552 srcdir=..
554 else
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
560 else
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE; then
569 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
570 else
571 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
577 . "$ac_site_file"
579 done
581 if test -r "$cache_file"; then
582 echo "loading cache $cache_file"
583 . $cache_file
584 else
585 echo "creating cache $cache_file"
586 > $cache_file
589 ac_ext=c
590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
591 ac_cpp='$CPP $CPPFLAGS'
592 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
593 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
594 cross_compiling=$ac_cv_prog_cc_cross
596 ac_exeext=
597 ac_objext=o
598 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
599 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
600 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
601 ac_n= ac_c='
602 ' ac_t=' '
603 else
604 ac_n=-n ac_c= ac_t=
606 else
607 ac_n= ac_c='\c' ac_t=
612 # we want to be compatibe with older versions of Samba
625 # compile with optimisation and without debugging by default
626 CFLAGS="-O ${CFLAGS}"
628 # Check whether --enable-debug or --disable-debug was given.
629 if test "${enable_debug+set}" = set; then
630 enableval="$enable_debug"
631 if eval "test x$enable_debug = xyes"; then
632 CFLAGS="${CFLAGS} -g"
638 # Extract the first word of "gcc", so it can be a program name with args.
639 set dummy gcc; ac_word=$2
640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
641 echo "configure:642: checking for $ac_word" >&5
642 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
644 else
645 if test -n "$CC"; then
646 ac_cv_prog_CC="$CC" # Let the user override the test.
647 else
648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
649 ac_dummy="$PATH"
650 for ac_dir in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir=.
652 if test -f $ac_dir/$ac_word; then
653 ac_cv_prog_CC="gcc"
654 break
656 done
657 IFS="$ac_save_ifs"
660 CC="$ac_cv_prog_CC"
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
663 else
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
668 # Extract the first word of "cc", so it can be a program name with args.
669 set dummy cc; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674 else
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
677 else
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 ac_prog_rejected=no
680 ac_dummy="$PATH"
681 for ac_dir in $ac_dummy; do
682 test -z "$ac_dir" && ac_dir=.
683 if test -f $ac_dir/$ac_word; then
684 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
685 ac_prog_rejected=yes
686 continue
688 ac_cv_prog_CC="cc"
689 break
691 done
692 IFS="$ac_save_ifs"
693 if test $ac_prog_rejected = yes; then
694 # We found a bogon in the path, so make sure we never use it.
695 set dummy $ac_cv_prog_CC
696 shift
697 if test $# -gt 0; then
698 # We chose a different compiler from the bogus one.
699 # However, it has the same basename, so the bogon will be chosen
700 # first if we set CC to just the basename; use the full file name.
701 shift
702 set dummy "$ac_dir/$ac_word" "$@"
703 shift
704 ac_cv_prog_CC="$@"
709 CC="$ac_cv_prog_CC"
710 if test -n "$CC"; then
711 echo "$ac_t""$CC" 1>&6
712 else
713 echo "$ac_t""no" 1>&6
716 if test -z "$CC"; then
717 case "`uname -s`" in
718 *win32* | *WIN32*)
719 # Extract the first word of "cl", so it can be a program name with args.
720 set dummy cl; ac_word=$2
721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
722 echo "configure:723: checking for $ac_word" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
725 else
726 if test -n "$CC"; then
727 ac_cv_prog_CC="$CC" # Let the user override the test.
728 else
729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
730 ac_dummy="$PATH"
731 for ac_dir in $ac_dummy; do
732 test -z "$ac_dir" && ac_dir=.
733 if test -f $ac_dir/$ac_word; then
734 ac_cv_prog_CC="cl"
735 break
737 done
738 IFS="$ac_save_ifs"
741 CC="$ac_cv_prog_CC"
742 if test -n "$CC"; then
743 echo "$ac_t""$CC" 1>&6
744 else
745 echo "$ac_t""no" 1>&6
748 esac
750 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
753 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
754 echo "configure:755: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
756 ac_ext=c
757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
758 ac_cpp='$CPP $CPPFLAGS'
759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
761 cross_compiling=$ac_cv_prog_cc_cross
763 cat > conftest.$ac_ext << EOF
765 #line 766 "configure"
766 #include "confdefs.h"
768 main(){return(0);}
770 if { (eval echo configure:771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
771 ac_cv_prog_cc_works=yes
772 # If we can't run a trivial program, we are probably using a cross compiler.
773 if (./conftest; exit) 2>/dev/null; then
774 ac_cv_prog_cc_cross=no
775 else
776 ac_cv_prog_cc_cross=yes
778 else
779 echo "configure: failed program was:" >&5
780 cat conftest.$ac_ext >&5
781 ac_cv_prog_cc_works=no
783 rm -fr conftest*
784 ac_ext=c
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
792 if test $ac_cv_prog_cc_works = no; then
793 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
795 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
796 echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
797 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
798 cross_compiling=$ac_cv_prog_cc_cross
800 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
801 echo "configure:802: checking whether we are using GNU C" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
804 else
805 cat > conftest.c <<EOF
806 #ifdef __GNUC__
807 yes;
808 #endif
810 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
811 ac_cv_prog_gcc=yes
812 else
813 ac_cv_prog_gcc=no
817 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
819 if test $ac_cv_prog_gcc = yes; then
820 GCC=yes
821 else
822 GCC=
825 ac_test_CFLAGS="${CFLAGS+set}"
826 ac_save_CFLAGS="$CFLAGS"
827 CFLAGS=
828 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
829 echo "configure:830: checking whether ${CC-cc} accepts -g" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
832 else
833 echo 'void f(){}' > conftest.c
834 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
835 ac_cv_prog_cc_g=yes
836 else
837 ac_cv_prog_cc_g=no
839 rm -f conftest*
843 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
844 if test "$ac_test_CFLAGS" = set; then
845 CFLAGS="$ac_save_CFLAGS"
846 elif test $ac_cv_prog_cc_g = yes; then
847 if test "$GCC" = yes; then
848 CFLAGS="-g -O2"
849 else
850 CFLAGS="-g"
852 else
853 if test "$GCC" = yes; then
854 CFLAGS="-O2"
855 else
856 CFLAGS=
860 ac_aux_dir=
861 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
862 if test -f $ac_dir/install-sh; then
863 ac_aux_dir=$ac_dir
864 ac_install_sh="$ac_aux_dir/install-sh -c"
865 break
866 elif test -f $ac_dir/install.sh; then
867 ac_aux_dir=$ac_dir
868 ac_install_sh="$ac_aux_dir/install.sh -c"
869 break
871 done
872 if test -z "$ac_aux_dir"; then
873 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
875 ac_config_guess=$ac_aux_dir/config.guess
876 ac_config_sub=$ac_aux_dir/config.sub
877 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
879 # Find a good install program. We prefer a C program (faster),
880 # so one script is as good as another. But avoid the broken or
881 # incompatible versions:
882 # SysV /etc/install, /usr/sbin/install
883 # SunOS /usr/etc/install
884 # IRIX /sbin/install
885 # AIX /bin/install
886 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
887 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
888 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
889 # ./install, which can be erroneously created by make from ./install.sh.
890 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
891 echo "configure:892: checking for a BSD compatible install" >&5
892 if test -z "$INSTALL"; then
893 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895 else
896 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
897 for ac_dir in $PATH; do
898 # Account for people who put trailing slashes in PATH elements.
899 case "$ac_dir/" in
900 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
902 # OSF1 and SCO ODT 3.0 have their own names for install.
903 # Don't use installbsd from OSF since it installs stuff as root
904 # by default.
905 for ac_prog in ginstall scoinst install; do
906 if test -f $ac_dir/$ac_prog; then
907 if test $ac_prog = install &&
908 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
909 # AIX install. It has an incompatible calling convention.
911 else
912 ac_cv_path_install="$ac_dir/$ac_prog -c"
913 break 2
916 done
918 esac
919 done
920 IFS="$ac_save_IFS"
923 if test "${ac_cv_path_install+set}" = set; then
924 INSTALL="$ac_cv_path_install"
925 else
926 # As a last resort, use the slow shell script. We don't cache a
927 # path for INSTALL within a source directory, because that will
928 # break other packages using the cache if that directory is
929 # removed, or if the path is relative.
930 INSTALL="$ac_install_sh"
933 echo "$ac_t""$INSTALL" 1>&6
935 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
936 # It thinks the first close brace ends the variable substitution.
937 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
939 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
941 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
943 for ac_prog in gawk mawk nawk awk
945 # Extract the first word of "$ac_prog", so it can be a program name with args.
946 set dummy $ac_prog; ac_word=$2
947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
948 echo "configure:949: checking for $ac_word" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
951 else
952 if test -n "$AWK"; then
953 ac_cv_prog_AWK="$AWK" # Let the user override the test.
954 else
955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
956 ac_dummy="$PATH"
957 for ac_dir in $ac_dummy; do
958 test -z "$ac_dir" && ac_dir=.
959 if test -f $ac_dir/$ac_word; then
960 ac_cv_prog_AWK="$ac_prog"
961 break
963 done
964 IFS="$ac_save_ifs"
967 AWK="$ac_cv_prog_AWK"
968 if test -n "$AWK"; then
969 echo "$ac_t""$AWK" 1>&6
970 else
971 echo "$ac_t""no" 1>&6
974 test -n "$AWK" && break
975 done
977 # Check whether --enable-shared or --disable-shared was given.
978 if test "${enable_shared+set}" = set; then
979 enableval="$enable_shared"
980 p=${PACKAGE-default}
981 case "$enableval" in
982 yes) enable_shared=yes ;;
983 no) enable_shared=no ;;
985 enable_shared=no
986 # Look at the argument we got. We use all the common list separators.
987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
988 for pkg in $enableval; do
989 if test "X$pkg" = "X$p"; then
990 enable_shared=yes
992 done
993 IFS="$ac_save_ifs"
995 esac
996 else
997 enable_shared=yes
1000 # Check whether --enable-static or --disable-static was given.
1001 if test "${enable_static+set}" = set; then
1002 enableval="$enable_static"
1003 p=${PACKAGE-default}
1004 case "$enableval" in
1005 yes) enable_static=yes ;;
1006 no) enable_static=no ;;
1008 enable_static=no
1009 # Look at the argument we got. We use all the common list separators.
1010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1011 for pkg in $enableval; do
1012 if test "X$pkg" = "X$p"; then
1013 enable_static=yes
1015 done
1016 IFS="$ac_save_ifs"
1018 esac
1019 else
1020 enable_static=yes
1023 # Check whether --enable-fast-install or --disable-fast-install was given.
1024 if test "${enable_fast_install+set}" = set; then
1025 enableval="$enable_fast_install"
1026 p=${PACKAGE-default}
1027 case "$enableval" in
1028 yes) enable_fast_install=yes ;;
1029 no) enable_fast_install=no ;;
1031 enable_fast_install=no
1032 # Look at the argument we got. We use all the common list separators.
1033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1034 for pkg in $enableval; do
1035 if test "X$pkg" = "X$p"; then
1036 enable_fast_install=yes
1038 done
1039 IFS="$ac_save_ifs"
1041 esac
1042 else
1043 enable_fast_install=yes
1047 # Make sure we can run config.sub.
1048 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1049 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1052 echo $ac_n "checking host system type""... $ac_c" 1>&6
1053 echo "configure:1054: checking host system type" >&5
1055 host_alias=$host
1056 case "$host_alias" in
1057 NONE)
1058 case $nonopt in
1059 NONE)
1060 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1061 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1062 fi ;;
1063 *) host_alias=$nonopt ;;
1064 esac ;;
1065 esac
1067 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1068 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071 echo "$ac_t""$host" 1>&6
1073 echo $ac_n "checking build system type""... $ac_c" 1>&6
1074 echo "configure:1075: checking build system type" >&5
1076 build_alias=$build
1077 case "$build_alias" in
1078 NONE)
1079 case $nonopt in
1080 NONE) build_alias=$host_alias ;;
1081 *) build_alias=$nonopt ;;
1082 esac ;;
1083 esac
1085 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1086 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089 echo "$ac_t""$build" 1>&6
1091 # Extract the first word of "ranlib", so it can be a program name with args.
1092 set dummy ranlib; ac_word=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1097 else
1098 if test -n "$RANLIB"; then
1099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1100 else
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 ac_dummy="$PATH"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_RANLIB="ranlib"
1107 break
1109 done
1110 IFS="$ac_save_ifs"
1111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1114 RANLIB="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116 echo "$ac_t""$RANLIB" 1>&6
1117 else
1118 echo "$ac_t""no" 1>&6
1121 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1122 if test "${with_gnu_ld+set}" = set; then
1123 withval="$with_gnu_ld"
1124 test "$withval" = no || with_gnu_ld=yes
1125 else
1126 with_gnu_ld=no
1129 ac_prog=ld
1130 if test "$ac_cv_prog_gcc" = yes; then
1131 # Check if gcc -print-prog-name=ld gives a path.
1132 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1133 echo "configure:1134: checking for ld used by GCC" >&5
1134 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1135 case "$ac_prog" in
1136 # Accept absolute paths.
1137 [\\/]* | [A-Za-z]:[\\/]*)
1138 re_direlt='/[^/][^/]*/\.\./'
1139 # Canonicalize the path of ld
1140 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1141 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1142 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1143 done
1144 test -z "$LD" && LD="$ac_prog"
1147 # If it fails, then pretend we aren't using GCC.
1148 ac_prog=ld
1151 # If it is relative, then search for the first ld in PATH.
1152 with_gnu_ld=unknown
1154 esac
1155 elif test "$with_gnu_ld" = yes; then
1156 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1157 echo "configure:1158: checking for GNU ld" >&5
1158 else
1159 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1160 echo "configure:1161: checking for non-GNU ld" >&5
1162 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1164 else
1165 if test -z "$LD"; then
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1167 for ac_dir in $PATH; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1170 ac_cv_path_LD="$ac_dir/$ac_prog"
1171 # Check to see if the program is GNU ld. I'd rather use --version,
1172 # but apparently some GNU ld's only accept -v.
1173 # Break only if it was the GNU/non-GNU ld that we prefer.
1174 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1175 test "$with_gnu_ld" != no && break
1176 else
1177 test "$with_gnu_ld" != yes && break
1180 done
1181 IFS="$ac_save_ifs"
1182 else
1183 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1187 LD="$ac_cv_path_LD"
1188 if test -n "$LD"; then
1189 echo "$ac_t""$LD" 1>&6
1190 else
1191 echo "$ac_t""no" 1>&6
1193 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1194 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1195 echo "configure:1196: checking if the linker ($LD) is GNU ld" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1198 else
1199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1200 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1201 ac_cv_prog_gnu_ld=yes
1202 else
1203 ac_cv_prog_gnu_ld=no
1207 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1210 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1211 echo "configure:1212: checking for BSD-compatible nm" >&5
1212 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1214 else
1215 if test -n "$NM"; then
1216 # Let the user override the test.
1217 ac_cv_path_NM="$NM"
1218 else
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1220 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1223 # Check to see if the nm accepts a BSD-compat flag.
1224 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1225 # nm: unknown option "B" ignored
1226 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1227 ac_cv_path_NM="$ac_dir/nm -B"
1228 break
1229 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1230 ac_cv_path_NM="$ac_dir/nm -p"
1231 break
1232 else
1233 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1234 continue # so that we can try to find one that supports BSD flags
1237 done
1238 IFS="$ac_save_ifs"
1239 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1243 NM="$ac_cv_path_NM"
1244 echo "$ac_t""$NM" 1>&6
1246 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1247 echo "configure:1248: checking whether ln -s works" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251 rm -f conftestdata
1252 if ln -s X conftestdata 2>/dev/null
1253 then
1254 rm -f conftestdata
1255 ac_cv_prog_LN_S="ln -s"
1256 else
1257 ac_cv_prog_LN_S=ln
1260 LN_S="$ac_cv_prog_LN_S"
1261 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1262 echo "$ac_t""yes" 1>&6
1263 else
1264 echo "$ac_t""no" 1>&6
1268 case "$target" in
1269 NONE) lt_target="$host" ;;
1270 *) lt_target="$target" ;;
1271 esac
1273 # Check for any special flags to pass to ltconfig.
1274 libtool_flags="--cache-file=$cache_file"
1275 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1276 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1277 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1278 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1279 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1282 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1283 if test "${enable_libtool_lock+set}" = set; then
1284 enableval="$enable_libtool_lock"
1288 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1289 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1291 # Some flags need to be propagated to the compiler or linker for good
1292 # libtool support.
1293 case "$lt_target" in
1294 *-*-irix6*)
1295 # Find out which ABI we are using.
1296 echo '#line 1297 "configure"' > conftest.$ac_ext
1297 if { (eval echo configure:1298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1298 case "`/usr/bin/file conftest.o`" in
1299 *32-bit*)
1300 LD="${LD-ld} -32"
1302 *N32*)
1303 LD="${LD-ld} -n32"
1305 *64-bit*)
1306 LD="${LD-ld} -64"
1308 esac
1310 rm -rf conftest*
1313 *-*-sco3.2v5*)
1314 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1315 SAVE_CFLAGS="$CFLAGS"
1316 CFLAGS="$CFLAGS -belf"
1317 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether the C compiler needs -belf" >&5
1319 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1321 else
1322 cat > conftest.$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1326 int main() {
1328 ; return 0; }
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1331 rm -rf conftest*
1332 lt_cv_cc_needs_belf=yes
1333 else
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336 rm -rf conftest*
1337 lt_cv_cc_needs_belf=no
1339 rm -f conftest*
1342 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1343 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1344 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1345 CFLAGS="$SAVE_CFLAGS"
1350 esac
1353 # Save cache, so that ltconfig can load it
1354 cat > confcache <<\EOF
1355 # This file is a shell script that caches the results of configure
1356 # tests run on this system so they can be shared between configure
1357 # scripts and configure runs. It is not useful on other systems.
1358 # If it contains results you don't want to keep, you may remove or edit it.
1360 # By default, configure uses ./config.cache as the cache file,
1361 # creating it if it does not exist already. You can give configure
1362 # the --cache-file=FILE option to use a different cache file; that is
1363 # what configure does when it calls configure scripts in
1364 # subdirectories, so they share the cache.
1365 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1366 # config.status only pays attention to the cache file if you give it the
1367 # --recheck option to rerun configure.
1370 # The following way of writing the cache mishandles newlines in values,
1371 # but we know of no workaround that is simple, portable, and efficient.
1372 # So, don't put newlines in cache variables' values.
1373 # Ultrix sh set writes to stderr and can't be redirected directly,
1374 # and sets the high bit in the cache file unless we assign to the vars.
1375 (set) 2>&1 |
1376 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1377 *ac_space=\ *)
1378 # `set' does not quote correctly, so add quotes (double-quote substitution
1379 # turns \\\\ into \\, and sed turns \\ into \).
1380 sed -n \
1381 -e "s/'/'\\\\''/g" \
1382 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1385 # `set' quotes correctly as required by POSIX, so do not add quotes.
1386 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1388 esac >> confcache
1389 if cmp -s $cache_file confcache; then
1391 else
1392 if test -w $cache_file; then
1393 echo "updating cache $cache_file"
1394 cat confcache > $cache_file
1395 else
1396 echo "not updating unwritable cache $cache_file"
1399 rm -f confcache
1402 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1403 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1404 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1405 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1406 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1407 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1408 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1409 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1411 # Reload cache, that may have been modified by ltconfig
1412 if test -r "$cache_file"; then
1413 echo "loading cache $cache_file"
1414 . $cache_file
1415 else
1416 echo "creating cache $cache_file"
1417 > $cache_file
1421 # This can be used to rebuild libtool when needed
1422 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1424 # Always use our own libtool.
1425 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1427 # Redirect the config.log output again, so that the ltconfig log is not
1428 # clobbered by the next message.
1429 exec 5>>./config.log
1433 if test "x$CC" != xcc; then
1434 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1435 echo "configure:1436: checking whether $CC and cc understand -c and -o together" >&5
1436 else
1437 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1438 echo "configure:1439: checking whether cc understands -c and -o together" >&5
1440 set dummy $CC; ac_cc="`echo $2 |
1441 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1442 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1444 else
1445 echo 'foo(){}' > conftest.c
1446 # Make sure it works both with $CC and with simple cc.
1447 # We do the test twice because some compilers refuse to overwrite an
1448 # existing .o file with -o, though they will create one.
1449 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1450 if { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1451 test -f conftest.o && { (eval echo configure:1452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1452 then
1453 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1454 if test "x$CC" != xcc; then
1455 # Test first that cc exists at all.
1456 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1457 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1458 if { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1459 test -f conftest.o && { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1460 then
1461 # cc works too.
1463 else
1464 # cc exists but doesn't like -o.
1465 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1469 else
1470 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1472 rm -f conftest*
1475 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1477 else
1478 echo "$ac_t""no" 1>&6
1479 cat >> confdefs.h <<\EOF
1480 #define NO_MINUS_C_MINUS_O 1
1485 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1486 BROKEN_CC=
1487 else
1488 BROKEN_CC=#
1492 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1493 echo "configure:1494: checking that the C compiler understands volatile" >&5
1494 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 #include <sys/types.h>
1502 int main() {
1503 volatile int i = 0
1504 ; return 0; }
1506 if { (eval echo configure:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1507 rm -rf conftest*
1508 samba_cv_volatile=yes
1509 else
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 rm -rf conftest*
1513 samba_cv_volatile=no
1515 rm -f conftest*
1518 echo "$ac_t""$samba_cv_volatile" 1>&6
1519 if test x"$samba_cv_volatile" = x"yes"; then
1520 cat >> confdefs.h <<\EOF
1521 #define HAVE_VOLATILE 1
1527 #################################################
1528 # set codepage directory location
1529 # Check whether --with-codepagedir or --without-codepagedir was given.
1530 if test "${with_codepagedir+set}" = set; then
1531 withval="$with_codepagedir"
1532 case "$withval" in
1533 yes|no)
1535 # Just in case anybody does it
1537 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1540 codepagedir="$withval"
1542 esac
1548 # Do some error checking and defaulting for the host and target type.
1549 # The inputs are:
1550 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1552 # The rules are:
1553 # 1. You are not allowed to specify --host, --target, and nonopt at the
1554 # same time.
1555 # 2. Host defaults to nonopt.
1556 # 3. If nonopt is not specified, then host defaults to the current host,
1557 # as determined by config.guess.
1558 # 4. Target and build default to nonopt.
1559 # 5. If nonopt is not specified, then target and build default to host.
1561 # The aliases save the names the user supplied, while $host etc.
1562 # will get canonicalized.
1563 case $host---$target---$nonopt in
1564 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1565 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1566 esac
1569 # Make sure we can run config.sub.
1570 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1571 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1574 echo $ac_n "checking host system type""... $ac_c" 1>&6
1575 echo "configure:1576: checking host system type" >&5
1577 host_alias=$host
1578 case "$host_alias" in
1579 NONE)
1580 case $nonopt in
1581 NONE)
1582 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1583 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1584 fi ;;
1585 *) host_alias=$nonopt ;;
1586 esac ;;
1587 esac
1589 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1590 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593 echo "$ac_t""$host" 1>&6
1595 echo $ac_n "checking target system type""... $ac_c" 1>&6
1596 echo "configure:1597: checking target system type" >&5
1598 target_alias=$target
1599 case "$target_alias" in
1600 NONE)
1601 case $nonopt in
1602 NONE) target_alias=$host_alias ;;
1603 *) target_alias=$nonopt ;;
1604 esac ;;
1605 esac
1607 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1608 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611 echo "$ac_t""$target" 1>&6
1613 echo $ac_n "checking build system type""... $ac_c" 1>&6
1614 echo "configure:1615: checking build system type" >&5
1616 build_alias=$build
1617 case "$build_alias" in
1618 NONE)
1619 case $nonopt in
1620 NONE) build_alias=$host_alias ;;
1621 *) build_alias=$nonopt ;;
1622 esac ;;
1623 esac
1625 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1626 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629 echo "$ac_t""$build" 1>&6
1631 test "$host_alias" != "$target_alias" &&
1632 test "$program_prefix$program_suffix$program_transform_name" = \
1633 NONENONEs,x,x, &&
1634 program_prefix=${target_alias}-
1637 case "$host_os" in
1638 *irix6*) cat >> confdefs.h <<\EOF
1639 #include <standards.h>
1643 esac
1647 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1648 echo "configure:1649: checking config.cache system type" >&5
1649 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1650 test x"$ac_cv_host_system_type" != x"$host"; } ||
1651 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1652 test x"$ac_cv_build_system_type" != x"$build"; } ||
1653 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1654 test x"$ac_cv_target_system_type" != x"$target"; }; then
1655 echo "$ac_t""different" 1>&6
1656 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1657 else
1658 echo "$ac_t""same" 1>&6
1660 ac_cv_host_system_type="$host"
1661 ac_cv_build_system_type="$build"
1662 ac_cv_target_system_type="$target"
1666 # Config CPPFLAG settings for strange OS's that must be set
1667 # before other tests.
1669 case "$host_os" in
1670 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1671 *hpux*)
1672 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether ${CC-cc} accepts -Ae" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677 echo 'void f(){}' > conftest.c
1678 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1679 ac_cv_prog_cc_Ae=yes
1680 else
1681 ac_cv_prog_cc_Ae=no
1683 rm -f conftest*
1687 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1688 if test $ac_cv_prog_cc_Ae = yes; then
1689 CPPFLAGS="$CPPFLAGS -Ae"
1692 # Defines needed for HPUX support.
1693 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1694 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1696 case `uname -r` in
1697 *9*|*10*)
1698 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1699 cat >> confdefs.h <<\EOF
1700 #define USE_BOTH_CRYPT_CALLS 1
1704 *11*)
1705 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1706 cat >> confdefs.h <<\EOF
1707 #define USE_BOTH_CRYPT_CALLS 1
1711 esac
1714 # AIX4.x doesn't even admit to having large
1715 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1717 *aix4*)
1718 echo "$ac_t""enabling large file support" 1>&6
1719 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1722 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1723 # to the existance of large files..
1724 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1725 # recommendations on large file support, however it makes the
1726 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1727 # recommendation makes the compile fail on gcc2.7. JRA.
1729 *solaris*)
1730 case `uname -r` in
1731 5.6*|5.7*)
1732 echo "$ac_t""enabling large file support" 1>&6
1733 if test "$ac_cv_prog_gcc" = yes; then
1734 ${CC-cc} -v >conftest.c 2>&1
1735 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1736 rm -fr conftest.c
1737 case "$ac_cv_gcc_compiler_version_number" in
1738 *"gcc version 2.6"*|*"gcc version 2.7"*)
1739 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1742 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1744 esac
1745 else
1746 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1749 esac
1752 # Tests needed for SINIX large file support.
1754 *sysv4*)
1755 if test $host = mips-sni-sysv4 ; then
1756 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1757 echo "configure:1758: checking for LFS support" >&5
1758 old_CPPFLAGS="$CPPFLAGS"
1759 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1760 if test "$cross_compiling" = yes; then
1761 SINIX_LFS_SUPPORT=cross
1762 else
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1767 #include <unistd.h>
1768 main () {
1769 #if _LFS64_LARGEFILE == 1
1770 exit(0);
1771 #else
1772 exit(1);
1773 #endif
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1777 then
1778 SINIX_LFS_SUPPORT=yes
1779 else
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1782 rm -fr conftest*
1783 SINIX_LFS_SUPPORT=no
1785 rm -fr conftest*
1788 CPPFLAGS="$old_CPPFLAGS"
1789 if test x$SINIX_LFS_SUPPORT = xyes ; then
1790 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1791 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1792 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1793 LIBS="`getconf LFS64_LIBS` $LIBS"
1795 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1799 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1801 *linux*)
1802 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1803 echo "configure:1804: checking for LFS support" >&5
1804 old_CPPFLAGS="$CPPFLAGS"
1805 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1806 if test "$cross_compiling" = yes; then
1807 LINUX_LFS_SUPPORT=cross
1808 else
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1813 #include <unistd.h>
1814 #include <sys/utsname.h>
1815 main() {
1816 #if _LFS64_LARGEFILE == 1
1817 struct utsname uts;
1818 char *release;
1819 int major, minor;
1821 /* Ensure this is glibc 2.2 or higher */
1822 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1823 int libc_major = __GLIBC__;
1824 int libc_minor = __GLIBC_MINOR__;
1826 if (libc_major < 2)
1827 exit(1);
1828 if (libc_minor < 2)
1829 exit(1);
1830 #endif
1832 /* Ensure this is kernel 2.4 or higher */
1834 uname(&uts);
1835 release = uts.release;
1836 major = atoi(strsep(&release, "."));
1837 minor = atoi(strsep(&release, "."));
1839 if (major > 2 || (major == 2 && minor > 3))
1840 exit(0);
1841 exit(1);
1842 #else
1843 exit(1);
1844 #endif
1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1849 then
1850 LINUX_LFS_SUPPORT=yes
1851 else
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1854 rm -fr conftest*
1855 LINUX_LFS_SUPPORT=no
1857 rm -fr conftest*
1860 CPPFLAGS="$old_CPPFLAGS"
1861 if test x$LINUX_LFS_SUPPORT = xyes ; then
1862 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1864 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1867 *hurd*)
1868 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1869 echo "configure:1870: checking for LFS support" >&5
1870 old_CPPFLAGS="$CPPFLAGS"
1871 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1872 if test "$cross_compiling" = yes; then
1873 GLIBC_LFS_SUPPORT=cross
1874 else
1875 cat > conftest.$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1879 #include <unistd.h>
1880 main () {
1881 #if _LFS64_LARGEFILE == 1
1882 exit(0);
1883 #else
1884 exit(1);
1885 #endif
1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1889 then
1890 GLIBC_LFS_SUPPORT=yes
1891 else
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1894 rm -fr conftest*
1895 GLIBC_LFS_SUPPORT=no
1897 rm -fr conftest*
1900 CPPFLAGS="$old_CPPFLAGS"
1901 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1902 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1904 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1907 esac
1909 echo $ac_n "checking for inline""... $ac_c" 1>&6
1910 echo "configure:1911: checking for inline" >&5
1911 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 ac_cv_c_inline=no
1915 for ac_kw in inline __inline__ __inline; do
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1920 int main() {
1921 } $ac_kw foo() {
1922 ; return 0; }
1924 if { (eval echo configure:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1925 rm -rf conftest*
1926 ac_cv_c_inline=$ac_kw; break
1927 else
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 rm -f conftest*
1932 done
1936 echo "$ac_t""$ac_cv_c_inline" 1>&6
1937 case "$ac_cv_c_inline" in
1938 inline | yes) ;;
1939 no) cat >> confdefs.h <<\EOF
1940 #define inline
1943 *) cat >> confdefs.h <<EOF
1944 #define inline $ac_cv_c_inline
1947 esac
1949 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1950 echo "configure:1951: checking how to run the C preprocessor" >&5
1951 # On Suns, sometimes $CPP names a directory.
1952 if test -n "$CPP" && test -d "$CPP"; then
1953 CPP=
1955 if test -z "$CPP"; then
1956 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1958 else
1959 # This must be in double quotes, not single quotes, because CPP may get
1960 # substituted into the Makefile and "${CC-cc}" will confuse make.
1961 CPP="${CC-cc} -E"
1962 # On the NeXT, cc -E runs the code through the compiler's parser,
1963 # not just through cpp.
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 #include <assert.h>
1968 Syntax Error
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 else
1976 echo "$ac_err" >&5
1977 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 rm -rf conftest*
1980 CPP="${CC-cc} -E -traditional-cpp"
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 #include <assert.h>
1985 Syntax Error
1987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1988 { (eval echo configure:1989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1990 if test -z "$ac_err"; then
1992 else
1993 echo "$ac_err" >&5
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1996 rm -rf conftest*
1997 CPP="${CC-cc} -nologo -E"
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include <assert.h>
2002 Syntax Error
2004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2005 { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2007 if test -z "$ac_err"; then
2009 else
2010 echo "$ac_err" >&5
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2013 rm -rf conftest*
2014 CPP=/lib/cpp
2016 rm -f conftest*
2018 rm -f conftest*
2020 rm -f conftest*
2021 ac_cv_prog_CPP="$CPP"
2023 CPP="$ac_cv_prog_CPP"
2024 else
2025 ac_cv_prog_CPP="$CPP"
2027 echo "$ac_t""$CPP" 1>&6
2029 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2030 echo "configure:2031: checking for ANSI C header files" >&5
2031 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2033 else
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 #include <stdlib.h>
2038 #include <stdarg.h>
2039 #include <string.h>
2040 #include <float.h>
2042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2043 { (eval echo configure:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2045 if test -z "$ac_err"; then
2046 rm -rf conftest*
2047 ac_cv_header_stdc=yes
2048 else
2049 echo "$ac_err" >&5
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 rm -rf conftest*
2053 ac_cv_header_stdc=no
2055 rm -f conftest*
2057 if test $ac_cv_header_stdc = yes; then
2058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2062 #include <string.h>
2064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2065 egrep "memchr" >/dev/null 2>&1; then
2067 else
2068 rm -rf conftest*
2069 ac_cv_header_stdc=no
2071 rm -f conftest*
2075 if test $ac_cv_header_stdc = yes; then
2076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 #include <stdlib.h>
2082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2083 egrep "free" >/dev/null 2>&1; then
2085 else
2086 rm -rf conftest*
2087 ac_cv_header_stdc=no
2089 rm -f conftest*
2093 if test $ac_cv_header_stdc = yes; then
2094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2095 if test "$cross_compiling" = yes; then
2097 else
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2101 #include <ctype.h>
2102 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2103 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2105 int main () { int i; for (i = 0; i < 256; i++)
2106 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2107 exit (0); }
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2111 then
2113 else
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116 rm -fr conftest*
2117 ac_cv_header_stdc=no
2119 rm -fr conftest*
2125 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2126 if test $ac_cv_header_stdc = yes; then
2127 cat >> confdefs.h <<\EOF
2128 #define STDC_HEADERS 1
2133 ac_header_dirent=no
2134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2137 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_hdr that defines DIR" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 #include <sys/types.h>
2146 #include <$ac_hdr>
2147 int main() {
2148 DIR *dirp = 0;
2149 ; return 0; }
2151 if { (eval echo configure:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 rm -rf conftest*
2153 eval "ac_cv_header_dirent_$ac_safe=yes"
2154 else
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 rm -rf conftest*
2158 eval "ac_cv_header_dirent_$ac_safe=no"
2160 rm -f conftest*
2162 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2163 echo "$ac_t""yes" 1>&6
2164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2165 cat >> confdefs.h <<EOF
2166 #define $ac_tr_hdr 1
2168 ac_header_dirent=$ac_hdr; break
2169 else
2170 echo "$ac_t""no" 1>&6
2172 done
2173 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2174 if test $ac_header_dirent = dirent.h; then
2175 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2176 echo "configure:2177: checking for opendir in -ldir" >&5
2177 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181 ac_save_LIBS="$LIBS"
2182 LIBS="-ldir $LIBS"
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 /* Override any gcc2 internal prototype to avoid an error. */
2187 /* We use char because int might match the return type of a gcc2
2188 builtin and then its argument prototype would still apply. */
2189 char opendir();
2191 int main() {
2192 opendir()
2193 ; return 0; }
2195 if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2196 rm -rf conftest*
2197 eval "ac_cv_lib_$ac_lib_var=yes"
2198 else
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 rm -rf conftest*
2202 eval "ac_cv_lib_$ac_lib_var=no"
2204 rm -f conftest*
2205 LIBS="$ac_save_LIBS"
2208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2210 LIBS="$LIBS -ldir"
2211 else
2212 echo "$ac_t""no" 1>&6
2215 else
2216 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2217 echo "configure:2218: checking for opendir in -lx" >&5
2218 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221 else
2222 ac_save_LIBS="$LIBS"
2223 LIBS="-lx $LIBS"
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 /* Override any gcc2 internal prototype to avoid an error. */
2228 /* We use char because int might match the return type of a gcc2
2229 builtin and then its argument prototype would still apply. */
2230 char opendir();
2232 int main() {
2233 opendir()
2234 ; return 0; }
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2237 rm -rf conftest*
2238 eval "ac_cv_lib_$ac_lib_var=yes"
2239 else
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 rm -rf conftest*
2243 eval "ac_cv_lib_$ac_lib_var=no"
2245 rm -f conftest*
2246 LIBS="$ac_save_LIBS"
2249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2250 echo "$ac_t""yes" 1>&6
2251 LIBS="$LIBS -lx"
2252 else
2253 echo "$ac_t""no" 1>&6
2258 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2259 echo "configure:2260: checking whether time.h and sys/time.h may both be included" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2267 #include <sys/time.h>
2268 #include <time.h>
2269 int main() {
2270 struct tm *tp;
2271 ; return 0; }
2273 if { (eval echo configure:2274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2274 rm -rf conftest*
2275 ac_cv_header_time=yes
2276 else
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 rm -rf conftest*
2280 ac_cv_header_time=no
2282 rm -f conftest*
2285 echo "$ac_t""$ac_cv_header_time" 1>&6
2286 if test $ac_cv_header_time = yes; then
2287 cat >> confdefs.h <<\EOF
2288 #define TIME_WITH_SYS_TIME 1
2293 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2294 echo "configure:2295: checking for sys/wait.h that is POSIX.1 compatible" >&5
2295 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 #include <sys/types.h>
2302 #include <sys/wait.h>
2303 #ifndef WEXITSTATUS
2304 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2305 #endif
2306 #ifndef WIFEXITED
2307 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2308 #endif
2309 int main() {
2310 int s;
2311 wait (&s);
2312 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2313 ; return 0; }
2315 if { (eval echo configure:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2316 rm -rf conftest*
2317 ac_cv_header_sys_wait_h=yes
2318 else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 ac_cv_header_sys_wait_h=no
2324 rm -f conftest*
2327 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2328 if test $ac_cv_header_sys_wait_h = yes; then
2329 cat >> confdefs.h <<\EOF
2330 #define HAVE_SYS_WAIT_H 1
2335 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_hdr" >&5
2340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2342 else
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 #include <$ac_hdr>
2348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2349 { (eval echo configure:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2351 if test -z "$ac_err"; then
2352 rm -rf conftest*
2353 eval "ac_cv_header_$ac_safe=yes"
2354 else
2355 echo "$ac_err" >&5
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -rf conftest*
2359 eval "ac_cv_header_$ac_safe=no"
2361 rm -f conftest*
2363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2366 cat >> confdefs.h <<EOF
2367 #define $ac_tr_hdr 1
2370 else
2371 echo "$ac_t""no" 1>&6
2373 done
2375 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_hdr" >&5
2380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure"
2385 #include "confdefs.h"
2386 #include <$ac_hdr>
2388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389 { (eval echo configure:2390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2391 if test -z "$ac_err"; then
2392 rm -rf conftest*
2393 eval "ac_cv_header_$ac_safe=yes"
2394 else
2395 echo "$ac_err" >&5
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2398 rm -rf conftest*
2399 eval "ac_cv_header_$ac_safe=no"
2401 rm -f conftest*
2403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2404 echo "$ac_t""yes" 1>&6
2405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2406 cat >> confdefs.h <<EOF
2407 #define $ac_tr_hdr 1
2410 else
2411 echo "$ac_t""no" 1>&6
2413 done
2415 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_hdr" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 #include <$ac_hdr>
2428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2429 { (eval echo configure:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2431 if test -z "$ac_err"; then
2432 rm -rf conftest*
2433 eval "ac_cv_header_$ac_safe=yes"
2434 else
2435 echo "$ac_err" >&5
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2438 rm -rf conftest*
2439 eval "ac_cv_header_$ac_safe=no"
2441 rm -f conftest*
2443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2446 cat >> confdefs.h <<EOF
2447 #define $ac_tr_hdr 1
2450 else
2451 echo "$ac_t""no" 1>&6
2453 done
2455 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_hdr" >&5
2460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2462 else
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2466 #include <$ac_hdr>
2468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2469 { (eval echo configure:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2471 if test -z "$ac_err"; then
2472 rm -rf conftest*
2473 eval "ac_cv_header_$ac_safe=yes"
2474 else
2475 echo "$ac_err" >&5
2476 echo "configure: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2478 rm -rf conftest*
2479 eval "ac_cv_header_$ac_safe=no"
2481 rm -f conftest*
2483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2486 cat >> confdefs.h <<EOF
2487 #define $ac_tr_hdr 1
2490 else
2491 echo "$ac_t""no" 1>&6
2493 done
2495 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2499 echo "configure:2500: checking for $ac_hdr" >&5
2500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2502 else
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 #include <$ac_hdr>
2508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2509 { (eval echo configure:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2511 if test -z "$ac_err"; then
2512 rm -rf conftest*
2513 eval "ac_cv_header_$ac_safe=yes"
2514 else
2515 echo "$ac_err" >&5
2516 echo "configure: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2518 rm -rf conftest*
2519 eval "ac_cv_header_$ac_safe=no"
2521 rm -f conftest*
2523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2526 cat >> confdefs.h <<EOF
2527 #define $ac_tr_hdr 1
2530 else
2531 echo "$ac_t""no" 1>&6
2533 done
2535 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2539 echo "configure:2540: checking for $ac_hdr" >&5
2540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2542 else
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <$ac_hdr>
2548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2549 { (eval echo configure:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2551 if test -z "$ac_err"; then
2552 rm -rf conftest*
2553 eval "ac_cv_header_$ac_safe=yes"
2554 else
2555 echo "$ac_err" >&5
2556 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 rm -rf conftest*
2559 eval "ac_cv_header_$ac_safe=no"
2561 rm -f conftest*
2563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2566 cat >> confdefs.h <<EOF
2567 #define $ac_tr_hdr 1
2570 else
2571 echo "$ac_t""no" 1>&6
2573 done
2575 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_hdr" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2582 else
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <$ac_hdr>
2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2592 rm -rf conftest*
2593 eval "ac_cv_header_$ac_safe=yes"
2594 else
2595 echo "$ac_err" >&5
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -rf conftest*
2599 eval "ac_cv_header_$ac_safe=no"
2601 rm -f conftest*
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2606 cat >> confdefs.h <<EOF
2607 #define $ac_tr_hdr 1
2610 else
2611 echo "$ac_t""no" 1>&6
2613 done
2616 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2617 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2619 case "$host_os" in
2620 *hpux*)
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <shadow.h>
2625 int main() {
2626 struct spwd testme
2627 ; return 0; }
2629 if { (eval echo configure:2630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2630 rm -rf conftest*
2631 ac_cv_header_shadow_h=yes
2632 else
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 rm -rf conftest*
2636 ac_cv_header_shadow_h=no
2638 rm -f conftest*
2639 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2640 cat >> confdefs.h <<\EOF
2641 #define HAVE_SHADOW_H 1
2646 esac
2647 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2651 echo "configure:2652: checking for $ac_hdr" >&5
2652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2654 else
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <$ac_hdr>
2660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2661 { (eval echo configure:2662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2663 if test -z "$ac_err"; then
2664 rm -rf conftest*
2665 eval "ac_cv_header_$ac_safe=yes"
2666 else
2667 echo "$ac_err" >&5
2668 echo "configure: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2670 rm -rf conftest*
2671 eval "ac_cv_header_$ac_safe=no"
2673 rm -f conftest*
2675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2676 echo "$ac_t""yes" 1>&6
2677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2678 cat >> confdefs.h <<EOF
2679 #define $ac_tr_hdr 1
2682 else
2683 echo "$ac_t""no" 1>&6
2685 done
2687 for ac_hdr in nss.h sys/security.h security/pam_appl.h
2689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_hdr" >&5
2692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2694 else
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <$ac_hdr>
2700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2704 rm -rf conftest*
2705 eval "ac_cv_header_$ac_safe=yes"
2706 else
2707 echo "$ac_err" >&5
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2710 rm -rf conftest*
2711 eval "ac_cv_header_$ac_safe=no"
2713 rm -f conftest*
2715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2718 cat >> confdefs.h <<EOF
2719 #define $ac_tr_hdr 1
2722 else
2723 echo "$ac_t""no" 1>&6
2725 done
2727 for ac_hdr in stropts.h poll.h
2729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2731 echo "configure:2732: checking for $ac_hdr" >&5
2732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2734 else
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2738 #include <$ac_hdr>
2740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2743 if test -z "$ac_err"; then
2744 rm -rf conftest*
2745 eval "ac_cv_header_$ac_safe=yes"
2746 else
2747 echo "$ac_err" >&5
2748 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2750 rm -rf conftest*
2751 eval "ac_cv_header_$ac_safe=no"
2753 rm -f conftest*
2755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2758 cat >> confdefs.h <<EOF
2759 #define $ac_tr_hdr 1
2762 else
2763 echo "$ac_t""no" 1>&6
2765 done
2767 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_hdr" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <$ac_hdr>
2780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2784 rm -rf conftest*
2785 eval "ac_cv_header_$ac_safe=yes"
2786 else
2787 echo "$ac_err" >&5
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 rm -rf conftest*
2791 eval "ac_cv_header_$ac_safe=no"
2793 rm -f conftest*
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798 cat >> confdefs.h <<EOF
2799 #define $ac_tr_hdr 1
2802 else
2803 echo "$ac_t""no" 1>&6
2805 done
2807 for ac_hdr in sys/acl.h sys/cdefs.h glob.h acl/acl.h
2809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2811 echo "configure:2812: checking for $ac_hdr" >&5
2812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2814 else
2815 cat > conftest.$ac_ext <<EOF
2816 #line 2817 "configure"
2817 #include "confdefs.h"
2818 #include <$ac_hdr>
2820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2821 { (eval echo configure:2822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2823 if test -z "$ac_err"; then
2824 rm -rf conftest*
2825 eval "ac_cv_header_$ac_safe=yes"
2826 else
2827 echo "$ac_err" >&5
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2830 rm -rf conftest*
2831 eval "ac_cv_header_$ac_safe=no"
2833 rm -f conftest*
2835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2836 echo "$ac_t""yes" 1>&6
2837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2838 cat >> confdefs.h <<EOF
2839 #define $ac_tr_hdr 1
2842 else
2843 echo "$ac_t""no" 1>&6
2845 done
2848 # For experimental utmp support (lastlog on some BSD-like systems)
2849 for ac_hdr in utmp.h utmpx.h lastlog.h
2851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2856 else
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2860 #include <$ac_hdr>
2862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2866 rm -rf conftest*
2867 eval "ac_cv_header_$ac_safe=yes"
2868 else
2869 echo "$ac_err" >&5
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 rm -rf conftest*
2873 eval "ac_cv_header_$ac_safe=no"
2875 rm -f conftest*
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h <<EOF
2881 #define $ac_tr_hdr 1
2884 else
2885 echo "$ac_t""no" 1>&6
2887 done
2890 # For quotas on Veritas VxFS filesystems
2891 for ac_hdr in sys/fs/vx_quota.h
2893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_hdr" >&5
2896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2898 else
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902 #include <$ac_hdr>
2904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2905 { (eval echo configure:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2907 if test -z "$ac_err"; then
2908 rm -rf conftest*
2909 eval "ac_cv_header_$ac_safe=yes"
2910 else
2911 echo "$ac_err" >&5
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2914 rm -rf conftest*
2915 eval "ac_cv_header_$ac_safe=no"
2917 rm -f conftest*
2919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2922 cat >> confdefs.h <<EOF
2923 #define $ac_tr_hdr 1
2926 else
2927 echo "$ac_t""no" 1>&6
2929 done
2932 echo $ac_n "checking size of int""... $ac_c" 1>&6
2933 echo "configure:2934: checking size of int" >&5
2934 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2936 else
2937 if test "$cross_compiling" = yes; then
2938 ac_cv_sizeof_int=cross
2939 else
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 #include <stdio.h>
2944 main()
2946 FILE *f=fopen("conftestval", "w");
2947 if (!f) exit(1);
2948 fprintf(f, "%d\n", sizeof(int));
2949 exit(0);
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2953 then
2954 ac_cv_sizeof_int=`cat conftestval`
2955 else
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 rm -fr conftest*
2959 ac_cv_sizeof_int=0
2961 rm -fr conftest*
2965 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2966 cat >> confdefs.h <<EOF
2967 #define SIZEOF_INT $ac_cv_sizeof_int
2971 echo $ac_n "checking size of long""... $ac_c" 1>&6
2972 echo "configure:2973: checking size of long" >&5
2973 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2975 else
2976 if test "$cross_compiling" = yes; then
2977 ac_cv_sizeof_long=cross
2978 else
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <stdio.h>
2983 main()
2985 FILE *f=fopen("conftestval", "w");
2986 if (!f) exit(1);
2987 fprintf(f, "%d\n", sizeof(long));
2988 exit(0);
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2992 then
2993 ac_cv_sizeof_long=`cat conftestval`
2994 else
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2997 rm -fr conftest*
2998 ac_cv_sizeof_long=0
3000 rm -fr conftest*
3004 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3005 cat >> confdefs.h <<EOF
3006 #define SIZEOF_LONG $ac_cv_sizeof_long
3010 echo $ac_n "checking size of short""... $ac_c" 1>&6
3011 echo "configure:3012: checking size of short" >&5
3012 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3014 else
3015 if test "$cross_compiling" = yes; then
3016 ac_cv_sizeof_short=cross
3017 else
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 #include <stdio.h>
3022 main()
3024 FILE *f=fopen("conftestval", "w");
3025 if (!f) exit(1);
3026 fprintf(f, "%d\n", sizeof(short));
3027 exit(0);
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3031 then
3032 ac_cv_sizeof_short=`cat conftestval`
3033 else
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3036 rm -fr conftest*
3037 ac_cv_sizeof_short=0
3039 rm -fr conftest*
3043 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3044 cat >> confdefs.h <<EOF
3045 #define SIZEOF_SHORT $ac_cv_sizeof_short
3050 echo $ac_n "checking for working const""... $ac_c" 1>&6
3051 echo "configure:3052: checking for working const" >&5
3052 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3054 else
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3059 int main() {
3061 /* Ultrix mips cc rejects this. */
3062 typedef int charset[2]; const charset x;
3063 /* SunOS 4.1.1 cc rejects this. */
3064 char const *const *ccp;
3065 char **p;
3066 /* NEC SVR4.0.2 mips cc rejects this. */
3067 struct point {int x, y;};
3068 static struct point const zero = {0,0};
3069 /* AIX XL C 1.02.0.0 rejects this.
3070 It does not let you subtract one const X* pointer from another in an arm
3071 of an if-expression whose if-part is not a constant expression */
3072 const char *g = "string";
3073 ccp = &g + (g ? g-g : 0);
3074 /* HPUX 7.0 cc rejects these. */
3075 ++ccp;
3076 p = (char**) ccp;
3077 ccp = (char const *const *) p;
3078 { /* SCO 3.2v4 cc rejects this. */
3079 char *t;
3080 char const *s = 0 ? (char *) 0 : (char const *) 0;
3082 *t++ = 0;
3084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3085 int x[] = {25, 17};
3086 const int *foo = &x[0];
3087 ++foo;
3089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3090 typedef const int *iptr;
3091 iptr p = 0;
3092 ++p;
3094 { /* AIX XL C 1.02.0.0 rejects this saying
3095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3096 struct s { int j; const int *ap[3]; };
3097 struct s *b; b->j = 5;
3099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3100 const int foo = 10;
3103 ; return 0; }
3105 if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3106 rm -rf conftest*
3107 ac_cv_c_const=yes
3108 else
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3111 rm -rf conftest*
3112 ac_cv_c_const=no
3114 rm -f conftest*
3117 echo "$ac_t""$ac_cv_c_const" 1>&6
3118 if test $ac_cv_c_const = no; then
3119 cat >> confdefs.h <<\EOF
3120 #define const
3125 echo $ac_n "checking for inline""... $ac_c" 1>&6
3126 echo "configure:3127: checking for inline" >&5
3127 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130 ac_cv_c_inline=no
3131 for ac_kw in inline __inline__ __inline; do
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3136 int main() {
3137 } $ac_kw foo() {
3138 ; return 0; }
3140 if { (eval echo configure:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3141 rm -rf conftest*
3142 ac_cv_c_inline=$ac_kw; break
3143 else
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 rm -f conftest*
3148 done
3152 echo "$ac_t""$ac_cv_c_inline" 1>&6
3153 case "$ac_cv_c_inline" in
3154 inline | yes) ;;
3155 no) cat >> confdefs.h <<\EOF
3156 #define inline
3159 *) cat >> confdefs.h <<EOF
3160 #define inline $ac_cv_c_inline
3163 esac
3165 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3166 echo "configure:3167: checking whether byte ordering is bigendian" >&5
3167 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3169 else
3170 ac_cv_c_bigendian=unknown
3171 # See if sys/param.h defines the BYTE_ORDER macro.
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 #include <sys/types.h>
3176 #include <sys/param.h>
3177 int main() {
3179 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3180 bogus endian macros
3181 #endif
3182 ; return 0; }
3184 if { (eval echo configure:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3185 rm -rf conftest*
3186 # It does; now see whether it defined to BIG_ENDIAN or not.
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <sys/types.h>
3191 #include <sys/param.h>
3192 int main() {
3194 #if BYTE_ORDER != BIG_ENDIAN
3195 not big endian
3196 #endif
3197 ; return 0; }
3199 if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3200 rm -rf conftest*
3201 ac_cv_c_bigendian=yes
3202 else
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 rm -rf conftest*
3206 ac_cv_c_bigendian=no
3208 rm -f conftest*
3209 else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3213 rm -f conftest*
3214 if test $ac_cv_c_bigendian = unknown; then
3215 if test "$cross_compiling" = yes; then
3216 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3217 else
3218 cat > conftest.$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 main () {
3222 /* Are we little or big endian? From Harbison&Steele. */
3223 union
3225 long l;
3226 char c[sizeof (long)];
3227 } u;
3228 u.l = 1;
3229 exit (u.c[sizeof (long) - 1] == 1);
3232 if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3233 then
3234 ac_cv_c_bigendian=no
3235 else
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3238 rm -fr conftest*
3239 ac_cv_c_bigendian=yes
3241 rm -fr conftest*
3247 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3248 if test $ac_cv_c_bigendian = yes; then
3249 cat >> confdefs.h <<\EOF
3250 #define WORDS_BIGENDIAN 1
3255 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3256 echo "configure:3257: checking whether char is unsigned" >&5
3257 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3259 else
3260 if test "$GCC" = yes; then
3261 # GCC predefines this symbol on systems where it applies.
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #ifdef __CHAR_UNSIGNED__
3267 #endif
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 egrep "yes" >/dev/null 2>&1; then
3272 rm -rf conftest*
3273 ac_cv_c_char_unsigned=yes
3274 else
3275 rm -rf conftest*
3276 ac_cv_c_char_unsigned=no
3278 rm -f conftest*
3280 else
3281 if test "$cross_compiling" = yes; then
3282 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3283 else
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3288 #if !defined(__STDC__) || __STDC__ != 1
3289 #define volatile
3290 #endif
3291 main() {
3292 volatile char c = 255; exit(c < 0);
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3296 then
3297 ac_cv_c_char_unsigned=yes
3298 else
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3301 rm -fr conftest*
3302 ac_cv_c_char_unsigned=no
3304 rm -fr conftest*
3310 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3311 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3312 cat >> confdefs.h <<\EOF
3313 #define __CHAR_UNSIGNED__ 1
3319 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3320 echo "configure:3321: checking return type of signal handlers" >&5
3321 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3323 else
3324 cat > conftest.$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <sys/types.h>
3328 #include <signal.h>
3329 #ifdef signal
3330 #undef signal
3331 #endif
3332 #ifdef __cplusplus
3333 extern "C" void (*signal (int, void (*)(int)))(int);
3334 #else
3335 void (*signal ()) ();
3336 #endif
3338 int main() {
3339 int i;
3340 ; return 0; }
3342 if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343 rm -rf conftest*
3344 ac_cv_type_signal=void
3345 else
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348 rm -rf conftest*
3349 ac_cv_type_signal=int
3351 rm -f conftest*
3354 echo "$ac_t""$ac_cv_type_signal" 1>&6
3355 cat >> confdefs.h <<EOF
3356 #define RETSIGTYPE $ac_cv_type_signal
3360 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3361 echo "configure:3362: checking for uid_t in sys/types.h" >&5
3362 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3364 else
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 #include <sys/types.h>
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 egrep "uid_t" >/dev/null 2>&1; then
3372 rm -rf conftest*
3373 ac_cv_type_uid_t=yes
3374 else
3375 rm -rf conftest*
3376 ac_cv_type_uid_t=no
3378 rm -f conftest*
3382 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3383 if test $ac_cv_type_uid_t = no; then
3384 cat >> confdefs.h <<\EOF
3385 #define uid_t int
3388 cat >> confdefs.h <<\EOF
3389 #define gid_t int
3394 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3395 echo "configure:3396: checking for mode_t" >&5
3396 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3398 else
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 #include <sys/types.h>
3403 #if STDC_HEADERS
3404 #include <stdlib.h>
3405 #include <stddef.h>
3406 #endif
3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3409 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3410 rm -rf conftest*
3411 ac_cv_type_mode_t=yes
3412 else
3413 rm -rf conftest*
3414 ac_cv_type_mode_t=no
3416 rm -f conftest*
3419 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3420 if test $ac_cv_type_mode_t = no; then
3421 cat >> confdefs.h <<\EOF
3422 #define mode_t int
3427 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3428 echo "configure:3429: checking for off_t" >&5
3429 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3431 else
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435 #include <sys/types.h>
3436 #if STDC_HEADERS
3437 #include <stdlib.h>
3438 #include <stddef.h>
3439 #endif
3441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3443 rm -rf conftest*
3444 ac_cv_type_off_t=yes
3445 else
3446 rm -rf conftest*
3447 ac_cv_type_off_t=no
3449 rm -f conftest*
3452 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3453 if test $ac_cv_type_off_t = no; then
3454 cat >> confdefs.h <<\EOF
3455 #define off_t long
3460 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3461 echo "configure:3462: checking for size_t" >&5
3462 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3464 else
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 #include <sys/types.h>
3469 #if STDC_HEADERS
3470 #include <stdlib.h>
3471 #include <stddef.h>
3472 #endif
3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3476 rm -rf conftest*
3477 ac_cv_type_size_t=yes
3478 else
3479 rm -rf conftest*
3480 ac_cv_type_size_t=no
3482 rm -f conftest*
3485 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3486 if test $ac_cv_type_size_t = no; then
3487 cat >> confdefs.h <<\EOF
3488 #define size_t unsigned
3493 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3494 echo "configure:3495: checking for pid_t" >&5
3495 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3497 else
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3502 #if STDC_HEADERS
3503 #include <stdlib.h>
3504 #include <stddef.h>
3505 #endif
3507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3508 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3509 rm -rf conftest*
3510 ac_cv_type_pid_t=yes
3511 else
3512 rm -rf conftest*
3513 ac_cv_type_pid_t=no
3515 rm -f conftest*
3518 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3519 if test $ac_cv_type_pid_t = no; then
3520 cat >> confdefs.h <<\EOF
3521 #define pid_t int
3526 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3527 echo "configure:3528: checking for st_rdev in struct stat" >&5
3528 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3530 else
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 #include <sys/types.h>
3535 #include <sys/stat.h>
3536 int main() {
3537 struct stat s; s.st_rdev;
3538 ; return 0; }
3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3541 rm -rf conftest*
3542 ac_cv_struct_st_rdev=yes
3543 else
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 rm -rf conftest*
3547 ac_cv_struct_st_rdev=no
3549 rm -f conftest*
3552 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3553 if test $ac_cv_struct_st_rdev = yes; then
3554 cat >> confdefs.h <<\EOF
3555 #define HAVE_ST_RDEV 1
3560 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3561 echo "configure:3562: checking for d_off in dirent" >&5
3562 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3564 else
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3569 #include <unistd.h>
3570 #include <sys/types.h>
3571 #include <dirent.h>
3572 int main() {
3573 struct dirent d; d.d_off;
3574 ; return 0; }
3576 if { (eval echo configure:3577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3577 rm -rf conftest*
3578 ac_cv_dirent_d_off=yes
3579 else
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 rm -rf conftest*
3583 ac_cv_dirent_d_off=no
3585 rm -f conftest*
3588 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3589 if test $ac_cv_dirent_d_off = yes; then
3590 cat >> confdefs.h <<\EOF
3591 #define HAVE_DIRENT_D_OFF 1
3596 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3597 echo "configure:3598: checking for ino_t" >&5
3598 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3600 else
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 #include <sys/types.h>
3605 #if STDC_HEADERS
3606 #include <stdlib.h>
3607 #include <stddef.h>
3608 #endif
3610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3611 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3612 rm -rf conftest*
3613 ac_cv_type_ino_t=yes
3614 else
3615 rm -rf conftest*
3616 ac_cv_type_ino_t=no
3618 rm -f conftest*
3621 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3622 if test $ac_cv_type_ino_t = no; then
3623 cat >> confdefs.h <<\EOF
3624 #define ino_t unsigned
3629 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3630 echo "configure:3631: checking for loff_t" >&5
3631 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3633 else
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 #include <sys/types.h>
3638 #if STDC_HEADERS
3639 #include <stdlib.h>
3640 #include <stddef.h>
3641 #endif
3643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3644 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3645 rm -rf conftest*
3646 ac_cv_type_loff_t=yes
3647 else
3648 rm -rf conftest*
3649 ac_cv_type_loff_t=no
3651 rm -f conftest*
3654 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3655 if test $ac_cv_type_loff_t = no; then
3656 cat >> confdefs.h <<\EOF
3657 #define loff_t off_t
3662 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3663 echo "configure:3664: checking for offset_t" >&5
3664 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3666 else
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 #include <sys/types.h>
3671 #if STDC_HEADERS
3672 #include <stdlib.h>
3673 #include <stddef.h>
3674 #endif
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3678 rm -rf conftest*
3679 ac_cv_type_offset_t=yes
3680 else
3681 rm -rf conftest*
3682 ac_cv_type_offset_t=no
3684 rm -f conftest*
3687 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3688 if test $ac_cv_type_offset_t = no; then
3689 cat >> confdefs.h <<\EOF
3690 #define offset_t loff_t
3695 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3696 echo "configure:3697: checking for ssize_t" >&5
3697 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3699 else
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 #include <sys/types.h>
3704 #if STDC_HEADERS
3705 #include <stdlib.h>
3706 #include <stddef.h>
3707 #endif
3709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3710 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3711 rm -rf conftest*
3712 ac_cv_type_ssize_t=yes
3713 else
3714 rm -rf conftest*
3715 ac_cv_type_ssize_t=no
3717 rm -f conftest*
3720 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3721 if test $ac_cv_type_ssize_t = no; then
3722 cat >> confdefs.h <<\EOF
3723 #define ssize_t int
3728 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3729 echo "configure:3730: checking for wchar_t" >&5
3730 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3732 else
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 #include <sys/types.h>
3737 #if STDC_HEADERS
3738 #include <stdlib.h>
3739 #include <stddef.h>
3740 #endif
3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3744 rm -rf conftest*
3745 ac_cv_type_wchar_t=yes
3746 else
3747 rm -rf conftest*
3748 ac_cv_type_wchar_t=no
3750 rm -f conftest*
3753 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3754 if test $ac_cv_type_wchar_t = no; then
3755 cat >> confdefs.h <<\EOF
3756 #define wchar_t unsigned short
3762 # we need libcups for CUPS support...
3763 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3764 echo "configure:3765: checking for httpConnect in -lcups" >&5
3765 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3768 else
3769 ac_save_LIBS="$LIBS"
3770 LIBS="-lcups $LIBS"
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3777 char httpConnect();
3779 int main() {
3780 httpConnect()
3781 ; return 0; }
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3784 rm -rf conftest*
3785 eval "ac_cv_lib_$ac_lib_var=yes"
3786 else
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3789 rm -rf conftest*
3790 eval "ac_cv_lib_$ac_lib_var=no"
3792 rm -f conftest*
3793 LIBS="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3800 cat >> confdefs.h <<EOF
3801 #define $ac_tr_lib 1
3804 LIBS="-lcups $LIBS"
3806 else
3807 echo "$ac_t""no" 1>&6
3811 # we need libdl for PAM and the new VFS code
3812 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3813 echo "configure:3814: checking for dlopen in -ldl" >&5
3814 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3817 else
3818 ac_save_LIBS="$LIBS"
3819 LIBS="-ldl $LIBS"
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3826 char dlopen();
3828 int main() {
3829 dlopen()
3830 ; return 0; }
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3833 rm -rf conftest*
3834 eval "ac_cv_lib_$ac_lib_var=yes"
3835 else
3836 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3838 rm -rf conftest*
3839 eval "ac_cv_lib_$ac_lib_var=no"
3841 rm -f conftest*
3842 LIBS="$ac_save_LIBS"
3845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3847 LIBS="$LIBS -ldl";
3848 cat >> confdefs.h <<\EOF
3849 #define HAVE_LIBDL 1
3852 else
3853 echo "$ac_t""no" 1>&6
3857 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3858 echo "configure:3859: checking for sig_atomic_t type" >&5
3859 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3861 else
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3867 #include <sys/types.h>
3868 #if STDC_HEADERS
3869 #include <stdlib.h>
3870 #include <stddef.h>
3871 #endif
3872 #include <signal.h>
3873 int main() {
3874 sig_atomic_t i = 0
3875 ; return 0; }
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3878 rm -rf conftest*
3879 samba_cv_sig_atomic_t=yes
3880 else
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 rm -rf conftest*
3884 samba_cv_sig_atomic_t=no
3886 rm -f conftest*
3889 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3890 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3891 cat >> confdefs.h <<\EOF
3892 #define HAVE_SIG_ATOMIC_T_TYPE 1
3897 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3898 echo "configure:3899: checking for errno in errno.h" >&5
3899 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3901 else
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 #include <errno.h>
3907 int main() {
3908 int i = errno
3909 ; return 0; }
3911 if { (eval echo configure:3912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3912 rm -rf conftest*
3913 samba_cv_errno=yes
3914 else
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3917 rm -rf conftest*
3918 samba_cv_have_errno=no
3920 rm -f conftest*
3923 echo "$ac_t""$samba_cv_errno" 1>&6
3924 if test x"$samba_cv_errno" = x"yes"; then
3925 cat >> confdefs.h <<\EOF
3926 #define HAVE_ERRNO_DECL 1
3931 # stupid glibc has the functions but no declaration. grrrr.
3932 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3933 echo "configure:3934: checking for setresuid declaration" >&5
3934 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3936 else
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 #include <unistd.h>
3942 int main() {
3943 int i = (int)setresuid
3944 ; return 0; }
3946 if { (eval echo configure:3947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3947 rm -rf conftest*
3948 samba_cv_have_setresuid_decl=yes
3949 else
3950 echo "configure: failed program was:" >&5
3951 cat conftest.$ac_ext >&5
3952 rm -rf conftest*
3953 samba_cv_have_setresuid_decl=no
3955 rm -f conftest*
3958 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3959 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3960 cat >> confdefs.h <<\EOF
3961 #define HAVE_SETRESUID_DECL 1
3966 # stupid glibc has the functions but no declaration. grrrr.
3967 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3968 echo "configure:3969: checking for setresgid declaration" >&5
3969 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3971 else
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 #include <unistd.h>
3977 int main() {
3978 int i = (int)setresgid
3979 ; return 0; }
3981 if { (eval echo configure:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3982 rm -rf conftest*
3983 samba_cv_have_setresgid_decl=yes
3984 else
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 rm -rf conftest*
3988 samba_cv_have_setresgid_decl=no
3990 rm -f conftest*
3993 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3994 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3995 cat >> confdefs.h <<\EOF
3996 #define HAVE_SETRESGID_DECL 1
4001 # and glibc has setresuid under linux but the function does
4002 # nothing until kernel 2.1.44! very dumb.
4003 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4004 echo "configure:4005: checking for real setresuid" >&5
4005 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4007 else
4009 if test "$cross_compiling" = yes; then
4010 samba_cv_have_setresuid=cross
4011 else
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 #include <errno.h>
4016 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4019 then
4020 samba_cv_have_setresuid=yes
4021 else
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -fr conftest*
4025 samba_cv_have_setresuid=no
4027 rm -fr conftest*
4032 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4033 if test x"$samba_cv_have_setresuid" = x"yes"; then
4034 cat >> confdefs.h <<\EOF
4035 #define HAVE_SETRESUID 1
4040 # Do the same check for setresguid...
4042 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4043 echo "configure:4044: checking for real setresgid" >&5
4044 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4046 else
4048 if test "$cross_compiling" = yes; then
4049 samba_cv_have_setresgid=cross
4050 else
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <unistd.h>
4055 #include <errno.h>
4056 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4059 then
4060 samba_cv_have_setresgid=yes
4061 else
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4064 rm -fr conftest*
4065 samba_cv_have_setresgid=no
4067 rm -fr conftest*
4072 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4073 if test x"$samba_cv_have_setresgid" = x"yes"; then
4074 cat >> confdefs.h <<\EOF
4075 #define HAVE_SETRESGID 1
4080 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4081 echo "configure:4082: checking for 8-bit clean memcmp" >&5
4082 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4084 else
4085 if test "$cross_compiling" = yes; then
4086 ac_cv_func_memcmp_clean=no
4087 else
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4092 main()
4094 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4095 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4100 then
4101 ac_cv_func_memcmp_clean=yes
4102 else
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 rm -fr conftest*
4106 ac_cv_func_memcmp_clean=no
4108 rm -fr conftest*
4113 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4114 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4117 ###############################################
4118 # test for where we get crypt() from
4119 for ac_func in crypt
4121 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4122 echo "configure:4123: checking for $ac_func" >&5
4123 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4125 else
4126 cat > conftest.$ac_ext <<EOF
4127 #line 4128 "configure"
4128 #include "confdefs.h"
4129 /* System header to define __stub macros and hopefully few prototypes,
4130 which can conflict with char $ac_func(); below. */
4131 #include <assert.h>
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4135 char $ac_func();
4137 int main() {
4139 /* The GNU C library defines this for functions which it implements
4140 to always fail with ENOSYS. Some functions are actually named
4141 something starting with __ and the normal name is an alias. */
4142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4143 choke me
4144 #else
4145 $ac_func();
4146 #endif
4148 ; return 0; }
4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4151 rm -rf conftest*
4152 eval "ac_cv_func_$ac_func=yes"
4153 else
4154 echo "configure: failed program was:" >&5
4155 cat conftest.$ac_ext >&5
4156 rm -rf conftest*
4157 eval "ac_cv_func_$ac_func=no"
4159 rm -f conftest*
4162 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4163 echo "$ac_t""yes" 1>&6
4164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4165 cat >> confdefs.h <<EOF
4166 #define $ac_tr_func 1
4169 else
4170 echo "$ac_t""no" 1>&6
4172 done
4174 if test x"$ac_cv_func_crypt" = x"no"; then
4175 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4176 echo "configure:4177: checking for crypt in -lcrypt" >&5
4177 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4180 else
4181 ac_save_LIBS="$LIBS"
4182 LIBS="-lcrypt $LIBS"
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4189 char crypt();
4191 int main() {
4192 crypt()
4193 ; return 0; }
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 rm -rf conftest*
4197 eval "ac_cv_lib_$ac_lib_var=yes"
4198 else
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 rm -rf conftest*
4202 eval "ac_cv_lib_$ac_lib_var=no"
4204 rm -f conftest*
4205 LIBS="$ac_save_LIBS"
4208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 LIBS="$LIBS -lcrypt";
4211 cat >> confdefs.h <<\EOF
4212 #define HAVE_CRYPT 1
4215 else
4216 echo "$ac_t""no" 1>&6
4222 ###############################################
4223 # Readline included by default unless explicitly asked not to
4224 test "${with_readline+set}" != "set" && with_readline=yes
4226 # test for where we get readline() from
4227 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4228 echo "configure:4229: checking whether to use readline" >&5
4229 # Check whether --with-readline or --without-readline was given.
4230 if test "${with_readline+set}" = set; then
4231 withval="$with_readline"
4232 case "$with_readline" in
4233 yes)
4234 echo "$ac_t""yes" 1>&6
4236 for ac_hdr in readline.h history.h readline/readline.h
4238 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4239 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4240 echo "configure:4241: checking for $ac_hdr" >&5
4241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4243 else
4244 cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4247 #include <$ac_hdr>
4249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4250 { (eval echo configure:4251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4252 if test -z "$ac_err"; then
4253 rm -rf conftest*
4254 eval "ac_cv_header_$ac_safe=yes"
4255 else
4256 echo "$ac_err" >&5
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4259 rm -rf conftest*
4260 eval "ac_cv_header_$ac_safe=no"
4262 rm -f conftest*
4264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4265 echo "$ac_t""yes" 1>&6
4266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4267 cat >> confdefs.h <<EOF
4268 #define $ac_tr_hdr 1
4271 else
4272 echo "$ac_t""no" 1>&6
4274 done
4276 for ac_hdr in readline/history.h
4278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4280 echo "configure:4281: checking for $ac_hdr" >&5
4281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4283 else
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 #include <$ac_hdr>
4289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4290 { (eval echo configure:4291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4292 if test -z "$ac_err"; then
4293 rm -rf conftest*
4294 eval "ac_cv_header_$ac_safe=yes"
4295 else
4296 echo "$ac_err" >&5
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4299 rm -rf conftest*
4300 eval "ac_cv_header_$ac_safe=no"
4302 rm -f conftest*
4304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4305 echo "$ac_t""yes" 1>&6
4306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4307 cat >> confdefs.h <<EOF
4308 #define $ac_tr_hdr 1
4311 else
4312 echo "$ac_t""no" 1>&6
4314 done
4317 for ac_hdr in readline.h readline/readline.h
4319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4321 echo "configure:4322: checking for $ac_hdr" >&5
4322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4324 else
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 #include <$ac_hdr>
4330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4331 { (eval echo configure:4332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4333 if test -z "$ac_err"; then
4334 rm -rf conftest*
4335 eval "ac_cv_header_$ac_safe=yes"
4336 else
4337 echo "$ac_err" >&5
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 rm -rf conftest*
4341 eval "ac_cv_header_$ac_safe=no"
4343 rm -f conftest*
4345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4348 cat >> confdefs.h <<EOF
4349 #define $ac_tr_hdr 1
4352 for termlib in ncurses curses termcap terminfo termlib; do
4353 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4354 echo "configure:4355: checking for tgetent in -l${termlib}" >&5
4355 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4358 else
4359 ac_save_LIBS="$LIBS"
4360 LIBS="-l${termlib} $LIBS"
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4364 /* Override any gcc2 internal prototype to avoid an error. */
4365 /* We use char because int might match the return type of a gcc2
4366 builtin and then its argument prototype would still apply. */
4367 char tgetent();
4369 int main() {
4370 tgetent()
4371 ; return 0; }
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4374 rm -rf conftest*
4375 eval "ac_cv_lib_$ac_lib_var=yes"
4376 else
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 rm -rf conftest*
4380 eval "ac_cv_lib_$ac_lib_var=no"
4382 rm -f conftest*
4383 LIBS="$ac_save_LIBS"
4386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4387 echo "$ac_t""yes" 1>&6
4388 TERMLIBS="-l${termlib}"; break
4389 else
4390 echo "$ac_t""no" 1>&6
4393 done
4394 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4395 echo "configure:4396: checking for rl_callback_handler_install in -lreadline" >&5
4396 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4399 else
4400 ac_save_LIBS="$LIBS"
4401 LIBS="-lreadline $TERMLIBS $LIBS"
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */
4408 char rl_callback_handler_install();
4410 int main() {
4411 rl_callback_handler_install()
4412 ; return 0; }
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4415 rm -rf conftest*
4416 eval "ac_cv_lib_$ac_lib_var=yes"
4417 else
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4420 rm -rf conftest*
4421 eval "ac_cv_lib_$ac_lib_var=no"
4423 rm -f conftest*
4424 LIBS="$ac_save_LIBS"
4427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4428 echo "$ac_t""yes" 1>&6
4429 TERMLIBS="-lreadline $TERMLIBS"
4430 cat >> confdefs.h <<\EOF
4431 #define HAVE_LIBREADLINE 1
4434 break
4435 else
4436 echo "$ac_t""no" 1>&6
4437 TERMLIBS=
4440 else
4441 echo "$ac_t""no" 1>&6
4443 done
4447 echo "$ac_t""no" 1>&6
4450 echo "$ac_t""yes" 1>&6
4452 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4453 # alternate readline path
4454 _ldflags=${LDFLAGS}
4455 _cppflags=${CPPFLAGS}
4457 # Add additional search path
4458 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4459 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4461 for ac_hdr in readline.h history.h readline/readline.h
4463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4465 echo "configure:4466: checking for $ac_hdr" >&5
4466 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4468 else
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 #include <$ac_hdr>
4474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4475 { (eval echo configure:4476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4477 if test -z "$ac_err"; then
4478 rm -rf conftest*
4479 eval "ac_cv_header_$ac_safe=yes"
4480 else
4481 echo "$ac_err" >&5
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4484 rm -rf conftest*
4485 eval "ac_cv_header_$ac_safe=no"
4487 rm -f conftest*
4489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4492 cat >> confdefs.h <<EOF
4493 #define $ac_tr_hdr 1
4496 else
4497 echo "$ac_t""no" 1>&6
4499 done
4501 for ac_hdr in readline/history.h
4503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4505 echo "configure:4506: checking for $ac_hdr" >&5
4506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4508 else
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 #include <$ac_hdr>
4514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4515 { (eval echo configure:4516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4517 if test -z "$ac_err"; then
4518 rm -rf conftest*
4519 eval "ac_cv_header_$ac_safe=yes"
4520 else
4521 echo "$ac_err" >&5
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 rm -rf conftest*
4525 eval "ac_cv_header_$ac_safe=no"
4527 rm -f conftest*
4529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4532 cat >> confdefs.h <<EOF
4533 #define $ac_tr_hdr 1
4536 else
4537 echo "$ac_t""no" 1>&6
4539 done
4542 for ac_hdr in readline.h readline/readline.h
4544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4546 echo "configure:4547: checking for $ac_hdr" >&5
4547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4549 else
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 #include <$ac_hdr>
4555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4556 { (eval echo configure:4557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4558 if test -z "$ac_err"; then
4559 rm -rf conftest*
4560 eval "ac_cv_header_$ac_safe=yes"
4561 else
4562 echo "$ac_err" >&5
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4565 rm -rf conftest*
4566 eval "ac_cv_header_$ac_safe=no"
4568 rm -f conftest*
4570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4571 echo "$ac_t""yes" 1>&6
4572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4573 cat >> confdefs.h <<EOF
4574 #define $ac_tr_hdr 1
4577 for termlib in ncurses curses termcap terminfo termlib; do
4578 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4579 echo "configure:4580: checking for tgetent in -l${termlib}" >&5
4580 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4583 else
4584 ac_save_LIBS="$LIBS"
4585 LIBS="-l${termlib} $LIBS"
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4589 /* Override any gcc2 internal prototype to avoid an error. */
4590 /* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4592 char tgetent();
4594 int main() {
4595 tgetent()
4596 ; return 0; }
4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4599 rm -rf conftest*
4600 eval "ac_cv_lib_$ac_lib_var=yes"
4601 else
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4604 rm -rf conftest*
4605 eval "ac_cv_lib_$ac_lib_var=no"
4607 rm -f conftest*
4608 LIBS="$ac_save_LIBS"
4611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4612 echo "$ac_t""yes" 1>&6
4613 TERMLIBS="-l${termlib}"; break
4614 else
4615 echo "$ac_t""no" 1>&6
4618 done
4619 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4620 echo "configure:4621: checking for rl_callback_handler_install in -lreadline" >&5
4621 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4624 else
4625 ac_save_LIBS="$LIBS"
4626 LIBS="-lreadline $TERMLIBS $LIBS"
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4633 char rl_callback_handler_install();
4635 int main() {
4636 rl_callback_handler_install()
4637 ; return 0; }
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640 rm -rf conftest*
4641 eval "ac_cv_lib_$ac_lib_var=yes"
4642 else
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4645 rm -rf conftest*
4646 eval "ac_cv_lib_$ac_lib_var=no"
4648 rm -f conftest*
4649 LIBS="$ac_save_LIBS"
4652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4654 TERMLDFLAGS="-L$with_readline/lib"
4655 TERMCPPFLAGS="-I$with_readline/include"
4656 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4657 TERMLIBS="-lreadline $TERMLIBS"
4658 cat >> confdefs.h <<\EOF
4659 #define HAVE_LIBREADLINE 1
4662 break
4663 else
4664 echo "$ac_t""no" 1>&6
4665 TERMLIBS= CPPFLAGS=$_cppflags
4668 else
4669 echo "$ac_t""no" 1>&6
4671 done
4674 LDFLAGS=$_ldflags
4676 esac
4677 else
4678 echo "$ac_t""no" 1>&6
4685 # The following test taken from the cvs sources
4686 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4687 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4688 # libsocket.so which has a bad implementation of gethostbyname (it
4689 # only looks in /etc/hosts), so we only look for -lsocket if we need
4690 # it.
4691 for ac_func in connect
4693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_func" >&5
4695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4697 else
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 /* System header to define __stub macros and hopefully few prototypes,
4702 which can conflict with char $ac_func(); below. */
4703 #include <assert.h>
4704 /* Override any gcc2 internal prototype to avoid an error. */
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4707 char $ac_func();
4709 int main() {
4711 /* The GNU C library defines this for functions which it implements
4712 to always fail with ENOSYS. Some functions are actually named
4713 something starting with __ and the normal name is an alias. */
4714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4715 choke me
4716 #else
4717 $ac_func();
4718 #endif
4720 ; return 0; }
4722 if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4723 rm -rf conftest*
4724 eval "ac_cv_func_$ac_func=yes"
4725 else
4726 echo "configure: failed program was:" >&5
4727 cat conftest.$ac_ext >&5
4728 rm -rf conftest*
4729 eval "ac_cv_func_$ac_func=no"
4731 rm -f conftest*
4734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4737 cat >> confdefs.h <<EOF
4738 #define $ac_tr_func 1
4741 else
4742 echo "$ac_t""no" 1>&6
4744 done
4746 if test x"$ac_cv_func_connect" = x"no"; then
4747 case "$LIBS" in
4748 *-lnsl*) ;;
4749 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4750 echo "configure:4751: checking for printf in -lnsl_s" >&5
4751 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4754 else
4755 ac_save_LIBS="$LIBS"
4756 LIBS="-lnsl_s $LIBS"
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4763 char printf();
4765 int main() {
4766 printf()
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_lib_$ac_lib_var=yes"
4772 else
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 rm -rf conftest*
4776 eval "ac_cv_lib_$ac_lib_var=no"
4778 rm -f conftest*
4779 LIBS="$ac_save_LIBS"
4782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4785 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4786 cat >> confdefs.h <<EOF
4787 #define $ac_tr_lib 1
4790 LIBS="-lnsl_s $LIBS"
4792 else
4793 echo "$ac_t""no" 1>&6
4796 esac
4797 case "$LIBS" in
4798 *-lnsl*) ;;
4799 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4800 echo "configure:4801: checking for printf in -lnsl" >&5
4801 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4804 else
4805 ac_save_LIBS="$LIBS"
4806 LIBS="-lnsl $LIBS"
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4813 char printf();
4815 int main() {
4816 printf()
4817 ; return 0; }
4819 if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4820 rm -rf conftest*
4821 eval "ac_cv_lib_$ac_lib_var=yes"
4822 else
4823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4825 rm -rf conftest*
4826 eval "ac_cv_lib_$ac_lib_var=no"
4828 rm -f conftest*
4829 LIBS="$ac_save_LIBS"
4832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4834 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4835 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4836 cat >> confdefs.h <<EOF
4837 #define $ac_tr_lib 1
4840 LIBS="-lnsl $LIBS"
4842 else
4843 echo "$ac_t""no" 1>&6
4846 esac
4847 case "$LIBS" in
4848 *-lsocket*) ;;
4849 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4850 echo "configure:4851: checking for connect in -lsocket" >&5
4851 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4854 else
4855 ac_save_LIBS="$LIBS"
4856 LIBS="-lsocket $LIBS"
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4863 char connect();
4865 int main() {
4866 connect()
4867 ; return 0; }
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4870 rm -rf conftest*
4871 eval "ac_cv_lib_$ac_lib_var=yes"
4872 else
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4875 rm -rf conftest*
4876 eval "ac_cv_lib_$ac_lib_var=no"
4878 rm -f conftest*
4879 LIBS="$ac_save_LIBS"
4882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4883 echo "$ac_t""yes" 1>&6
4884 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4885 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4886 cat >> confdefs.h <<EOF
4887 #define $ac_tr_lib 1
4890 LIBS="-lsocket $LIBS"
4892 else
4893 echo "$ac_t""no" 1>&6
4896 esac
4897 case "$LIBS" in
4898 *-linet*) ;;
4899 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4900 echo "configure:4901: checking for connect in -linet" >&5
4901 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4904 else
4905 ac_save_LIBS="$LIBS"
4906 LIBS="-linet $LIBS"
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */
4913 char connect();
4915 int main() {
4916 connect()
4917 ; return 0; }
4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4920 rm -rf conftest*
4921 eval "ac_cv_lib_$ac_lib_var=yes"
4922 else
4923 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5
4925 rm -rf conftest*
4926 eval "ac_cv_lib_$ac_lib_var=no"
4928 rm -f conftest*
4929 LIBS="$ac_save_LIBS"
4932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4935 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4936 cat >> confdefs.h <<EOF
4937 #define $ac_tr_lib 1
4940 LIBS="-linet $LIBS"
4942 else
4943 echo "$ac_t""no" 1>&6
4946 esac
4947 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4948 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4949 # ac_cv_func_connect=yes
4950 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4951 cat >> confdefs.h <<\EOF
4952 #define HAVE_CONNECT 1
4958 ###############################################
4959 # test for where we get get_yp_default_domain() from
4960 for ac_func in yp_get_default_domain
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
5015 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5016 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5017 echo "configure:5018: checking for yp_get_default_domain in -lnsl" >&5
5018 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5021 else
5022 ac_save_LIBS="$LIBS"
5023 LIBS="-lnsl $LIBS"
5024 cat > conftest.$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5030 char yp_get_default_domain();
5032 int main() {
5033 yp_get_default_domain()
5034 ; return 0; }
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5037 rm -rf conftest*
5038 eval "ac_cv_lib_$ac_lib_var=yes"
5039 else
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 rm -rf conftest*
5043 eval "ac_cv_lib_$ac_lib_var=no"
5045 rm -f conftest*
5046 LIBS="$ac_save_LIBS"
5049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5050 echo "$ac_t""yes" 1>&6
5051 LIBS="$LIBS -lnsl";
5052 cat >> confdefs.h <<\EOF
5053 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5056 else
5057 echo "$ac_t""no" 1>&6
5062 # Check if we have execl, if not we need to compile smbrun.
5063 for ac_func in execl
5065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5066 echo "configure:5067: checking for $ac_func" >&5
5067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5069 else
5070 cat > conftest.$ac_ext <<EOF
5071 #line 5072 "configure"
5072 #include "confdefs.h"
5073 /* System header to define __stub macros and hopefully few prototypes,
5074 which can conflict with char $ac_func(); below. */
5075 #include <assert.h>
5076 /* Override any gcc2 internal prototype to avoid an error. */
5077 /* We use char because int might match the return type of a gcc2
5078 builtin and then its argument prototype would still apply. */
5079 char $ac_func();
5081 int main() {
5083 /* The GNU C library defines this for functions which it implements
5084 to always fail with ENOSYS. Some functions are actually named
5085 something starting with __ and the normal name is an alias. */
5086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5087 choke me
5088 #else
5089 $ac_func();
5090 #endif
5092 ; return 0; }
5094 if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5095 rm -rf conftest*
5096 eval "ac_cv_func_$ac_func=yes"
5097 else
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5100 rm -rf conftest*
5101 eval "ac_cv_func_$ac_func=no"
5103 rm -f conftest*
5106 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5107 echo "$ac_t""yes" 1>&6
5108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5109 cat >> confdefs.h <<EOF
5110 #define $ac_tr_func 1
5113 else
5114 echo "$ac_t""no" 1>&6
5116 done
5118 if test x"$ac_cv_func_execl" = x"no"; then
5119 RUNPROG="bin/smbrun"
5120 else
5121 RUNPROG=""
5124 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5127 echo "configure:5128: checking for $ac_func" >&5
5128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5130 else
5131 cat > conftest.$ac_ext <<EOF
5132 #line 5133 "configure"
5133 #include "confdefs.h"
5134 /* System header to define __stub macros and hopefully few prototypes,
5135 which can conflict with char $ac_func(); below. */
5136 #include <assert.h>
5137 /* Override any gcc2 internal prototype to avoid an error. */
5138 /* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5140 char $ac_func();
5142 int main() {
5144 /* The GNU C library defines this for functions which it implements
5145 to always fail with ENOSYS. Some functions are actually named
5146 something starting with __ and the normal name is an alias. */
5147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148 choke me
5149 #else
5150 $ac_func();
5151 #endif
5153 ; return 0; }
5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156 rm -rf conftest*
5157 eval "ac_cv_func_$ac_func=yes"
5158 else
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5161 rm -rf conftest*
5162 eval "ac_cv_func_$ac_func=no"
5164 rm -f conftest*
5167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5170 cat >> confdefs.h <<EOF
5171 #define $ac_tr_func 1
5174 else
5175 echo "$ac_t""no" 1>&6
5177 done
5179 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5182 echo "configure:5183: checking for $ac_func" >&5
5183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5185 else
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5189 /* System header to define __stub macros and hopefully few prototypes,
5190 which can conflict with char $ac_func(); below. */
5191 #include <assert.h>
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5195 char $ac_func();
5197 int main() {
5199 /* The GNU C library defines this for functions which it implements
5200 to always fail with ENOSYS. Some functions are actually named
5201 something starting with __ and the normal name is an alias. */
5202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5203 choke me
5204 #else
5205 $ac_func();
5206 #endif
5208 ; return 0; }
5210 if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211 rm -rf conftest*
5212 eval "ac_cv_func_$ac_func=yes"
5213 else
5214 echo "configure: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5216 rm -rf conftest*
5217 eval "ac_cv_func_$ac_func=no"
5219 rm -f conftest*
5222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5225 cat >> confdefs.h <<EOF
5226 #define $ac_tr_func 1
5229 else
5230 echo "$ac_t""no" 1>&6
5232 done
5234 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
5236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5237 echo "configure:5238: checking for $ac_func" >&5
5238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5240 else
5241 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5244 /* System header to define __stub macros and hopefully few prototypes,
5245 which can conflict with char $ac_func(); below. */
5246 #include <assert.h>
5247 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */
5250 char $ac_func();
5252 int main() {
5254 /* The GNU C library defines this for functions which it implements
5255 to always fail with ENOSYS. Some functions are actually named
5256 something starting with __ and the normal name is an alias. */
5257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5258 choke me
5259 #else
5260 $ac_func();
5261 #endif
5263 ; return 0; }
5265 if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5266 rm -rf conftest*
5267 eval "ac_cv_func_$ac_func=yes"
5268 else
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 rm -rf conftest*
5272 eval "ac_cv_func_$ac_func=no"
5274 rm -f conftest*
5277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5280 cat >> confdefs.h <<EOF
5281 #define $ac_tr_func 1
5284 else
5285 echo "$ac_t""no" 1>&6
5287 done
5289 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5292 echo "configure:5293: checking for $ac_func" >&5
5293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5295 else
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 /* System header to define __stub macros and hopefully few prototypes,
5300 which can conflict with char $ac_func(); below. */
5301 #include <assert.h>
5302 /* Override any gcc2 internal prototype to avoid an error. */
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5305 char $ac_func();
5307 int main() {
5309 /* The GNU C library defines this for functions which it implements
5310 to always fail with ENOSYS. Some functions are actually named
5311 something starting with __ and the normal name is an alias. */
5312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5313 choke me
5314 #else
5315 $ac_func();
5316 #endif
5318 ; return 0; }
5320 if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5321 rm -rf conftest*
5322 eval "ac_cv_func_$ac_func=yes"
5323 else
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 rm -rf conftest*
5327 eval "ac_cv_func_$ac_func=no"
5329 rm -f conftest*
5332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5333 echo "$ac_t""yes" 1>&6
5334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5335 cat >> confdefs.h <<EOF
5336 #define $ac_tr_func 1
5339 else
5340 echo "$ac_t""no" 1>&6
5342 done
5344 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5347 echo "configure:5348: checking for $ac_func" >&5
5348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5350 else
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5354 /* System header to define __stub macros and hopefully few prototypes,
5355 which can conflict with char $ac_func(); below. */
5356 #include <assert.h>
5357 /* Override any gcc2 internal prototype to avoid an error. */
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5360 char $ac_func();
5362 int main() {
5364 /* The GNU C library defines this for functions which it implements
5365 to always fail with ENOSYS. Some functions are actually named
5366 something starting with __ and the normal name is an alias. */
5367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5368 choke me
5369 #else
5370 $ac_func();
5371 #endif
5373 ; return 0; }
5375 if { (eval echo configure:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5376 rm -rf conftest*
5377 eval "ac_cv_func_$ac_func=yes"
5378 else
5379 echo "configure: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 rm -rf conftest*
5382 eval "ac_cv_func_$ac_func=no"
5384 rm -f conftest*
5387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5388 echo "$ac_t""yes" 1>&6
5389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5390 cat >> confdefs.h <<EOF
5391 #define $ac_tr_func 1
5394 else
5395 echo "$ac_t""no" 1>&6
5397 done
5399 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5402 echo "configure:5403: checking for $ac_func" >&5
5403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5405 else
5406 cat > conftest.$ac_ext <<EOF
5407 #line 5408 "configure"
5408 #include "confdefs.h"
5409 /* System header to define __stub macros and hopefully few prototypes,
5410 which can conflict with char $ac_func(); below. */
5411 #include <assert.h>
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 /* We use char because int might match the return type of a gcc2
5414 builtin and then its argument prototype would still apply. */
5415 char $ac_func();
5417 int main() {
5419 /* The GNU C library defines this for functions which it implements
5420 to always fail with ENOSYS. Some functions are actually named
5421 something starting with __ and the normal name is an alias. */
5422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5423 choke me
5424 #else
5425 $ac_func();
5426 #endif
5428 ; return 0; }
5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 rm -rf conftest*
5432 eval "ac_cv_func_$ac_func=yes"
5433 else
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 rm -rf conftest*
5437 eval "ac_cv_func_$ac_func=no"
5439 rm -f conftest*
5442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5443 echo "$ac_t""yes" 1>&6
5444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5445 cat >> confdefs.h <<EOF
5446 #define $ac_tr_func 1
5449 else
5450 echo "$ac_t""no" 1>&6
5452 done
5454 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5457 echo "configure:5458: checking for $ac_func" >&5
5458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5460 else
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 /* System header to define __stub macros and hopefully few prototypes,
5465 which can conflict with char $ac_func(); below. */
5466 #include <assert.h>
5467 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5470 char $ac_func();
5472 int main() {
5474 /* The GNU C library defines this for functions which it implements
5475 to always fail with ENOSYS. Some functions are actually named
5476 something starting with __ and the normal name is an alias. */
5477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5478 choke me
5479 #else
5480 $ac_func();
5481 #endif
5483 ; return 0; }
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 rm -rf conftest*
5487 eval "ac_cv_func_$ac_func=yes"
5488 else
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5491 rm -rf conftest*
5492 eval "ac_cv_func_$ac_func=no"
5494 rm -f conftest*
5497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5498 echo "$ac_t""yes" 1>&6
5499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5500 cat >> confdefs.h <<EOF
5501 #define $ac_tr_func 1
5504 else
5505 echo "$ac_t""no" 1>&6
5507 done
5509 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5512 echo "configure:5513: checking for $ac_func" >&5
5513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5515 else
5516 cat > conftest.$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519 /* System header to define __stub macros and hopefully few prototypes,
5520 which can conflict with char $ac_func(); below. */
5521 #include <assert.h>
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5525 char $ac_func();
5527 int main() {
5529 /* The GNU C library defines this for functions which it implements
5530 to always fail with ENOSYS. Some functions are actually named
5531 something starting with __ and the normal name is an alias. */
5532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5533 choke me
5534 #else
5535 $ac_func();
5536 #endif
5538 ; return 0; }
5540 if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5541 rm -rf conftest*
5542 eval "ac_cv_func_$ac_func=yes"
5543 else
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5546 rm -rf conftest*
5547 eval "ac_cv_func_$ac_func=no"
5549 rm -f conftest*
5552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5553 echo "$ac_t""yes" 1>&6
5554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5555 cat >> confdefs.h <<EOF
5556 #define $ac_tr_func 1
5559 else
5560 echo "$ac_t""no" 1>&6
5562 done
5564 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5567 echo "configure:5568: checking for $ac_func" >&5
5568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5570 else
5571 cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 /* System header to define __stub macros and hopefully few prototypes,
5575 which can conflict with char $ac_func(); below. */
5576 #include <assert.h>
5577 /* Override any gcc2 internal prototype to avoid an error. */
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5580 char $ac_func();
5582 int main() {
5584 /* The GNU C library defines this for functions which it implements
5585 to always fail with ENOSYS. Some functions are actually named
5586 something starting with __ and the normal name is an alias. */
5587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5588 choke me
5589 #else
5590 $ac_func();
5591 #endif
5593 ; return 0; }
5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5596 rm -rf conftest*
5597 eval "ac_cv_func_$ac_func=yes"
5598 else
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5601 rm -rf conftest*
5602 eval "ac_cv_func_$ac_func=no"
5604 rm -f conftest*
5607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5608 echo "$ac_t""yes" 1>&6
5609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5610 cat >> confdefs.h <<EOF
5611 #define $ac_tr_func 1
5614 else
5615 echo "$ac_t""no" 1>&6
5617 done
5620 # syscall() is needed for smbwrapper.
5621 for ac_func in syscall
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
5677 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_func" >&5
5681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5683 else
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* System header to define __stub macros and hopefully few prototypes,
5688 which can conflict with char $ac_func(); below. */
5689 #include <assert.h>
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5693 char $ac_func();
5695 int main() {
5697 /* The GNU C library defines this for functions which it implements
5698 to always fail with ENOSYS. Some functions are actually named
5699 something starting with __ and the normal name is an alias. */
5700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5701 choke me
5702 #else
5703 $ac_func();
5704 #endif
5706 ; return 0; }
5708 if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5709 rm -rf conftest*
5710 eval "ac_cv_func_$ac_func=yes"
5711 else
5712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 rm -rf conftest*
5715 eval "ac_cv_func_$ac_func=no"
5717 rm -f conftest*
5720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5721 echo "$ac_t""yes" 1>&6
5722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5723 cat >> confdefs.h <<EOF
5724 #define $ac_tr_func 1
5727 else
5728 echo "$ac_t""no" 1>&6
5730 done
5732 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5735 echo "configure:5736: checking for $ac_func" >&5
5736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5738 else
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5742 /* System header to define __stub macros and hopefully few prototypes,
5743 which can conflict with char $ac_func(); below. */
5744 #include <assert.h>
5745 /* Override any gcc2 internal prototype to avoid an error. */
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5748 char $ac_func();
5750 int main() {
5752 /* The GNU C library defines this for functions which it implements
5753 to always fail with ENOSYS. Some functions are actually named
5754 something starting with __ and the normal name is an alias. */
5755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5756 choke me
5757 #else
5758 $ac_func();
5759 #endif
5761 ; return 0; }
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5764 rm -rf conftest*
5765 eval "ac_cv_func_$ac_func=yes"
5766 else
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5769 rm -rf conftest*
5770 eval "ac_cv_func_$ac_func=no"
5772 rm -f conftest*
5775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5778 cat >> confdefs.h <<EOF
5779 #define $ac_tr_func 1
5782 else
5783 echo "$ac_t""no" 1>&6
5785 done
5787 for ac_func in __getcwd _getcwd
5789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5790 echo "configure:5791: checking for $ac_func" >&5
5791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5793 else
5794 cat > conftest.$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5797 /* System header to define __stub macros and hopefully few prototypes,
5798 which can conflict with char $ac_func(); below. */
5799 #include <assert.h>
5800 /* Override any gcc2 internal prototype to avoid an error. */
5801 /* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
5803 char $ac_func();
5805 int main() {
5807 /* The GNU C library defines this for functions which it implements
5808 to always fail with ENOSYS. Some functions are actually named
5809 something starting with __ and the normal name is an alias. */
5810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5811 choke me
5812 #else
5813 $ac_func();
5814 #endif
5816 ; return 0; }
5818 if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5819 rm -rf conftest*
5820 eval "ac_cv_func_$ac_func=yes"
5821 else
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5824 rm -rf conftest*
5825 eval "ac_cv_func_$ac_func=no"
5827 rm -f conftest*
5830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5831 echo "$ac_t""yes" 1>&6
5832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5833 cat >> confdefs.h <<EOF
5834 #define $ac_tr_func 1
5837 else
5838 echo "$ac_t""no" 1>&6
5840 done
5842 for ac_func in __xstat __fxstat __lxstat
5844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5845 echo "configure:5846: checking for $ac_func" >&5
5846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5848 else
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5852 /* System header to define __stub macros and hopefully few prototypes,
5853 which can conflict with char $ac_func(); below. */
5854 #include <assert.h>
5855 /* Override any gcc2 internal prototype to avoid an error. */
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5858 char $ac_func();
5860 int main() {
5862 /* The GNU C library defines this for functions which it implements
5863 to always fail with ENOSYS. Some functions are actually named
5864 something starting with __ and the normal name is an alias. */
5865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5866 choke me
5867 #else
5868 $ac_func();
5869 #endif
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 eval "ac_cv_func_$ac_func=yes"
5876 else
5877 echo "configure: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5879 rm -rf conftest*
5880 eval "ac_cv_func_$ac_func=no"
5882 rm -f conftest*
5885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5888 cat >> confdefs.h <<EOF
5889 #define $ac_tr_func 1
5892 else
5893 echo "$ac_t""no" 1>&6
5895 done
5897 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5900 echo "configure:5901: checking for $ac_func" >&5
5901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5903 else
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* System header to define __stub macros and hopefully few prototypes,
5908 which can conflict with char $ac_func(); below. */
5909 #include <assert.h>
5910 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5913 char $ac_func();
5915 int main() {
5917 /* The GNU C library defines this for functions which it implements
5918 to always fail with ENOSYS. Some functions are actually named
5919 something starting with __ and the normal name is an alias. */
5920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5921 choke me
5922 #else
5923 $ac_func();
5924 #endif
5926 ; return 0; }
5928 if { (eval echo configure:5929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5929 rm -rf conftest*
5930 eval "ac_cv_func_$ac_func=yes"
5931 else
5932 echo "configure: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5934 rm -rf conftest*
5935 eval "ac_cv_func_$ac_func=no"
5937 rm -f conftest*
5940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5941 echo "$ac_t""yes" 1>&6
5942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5943 cat >> confdefs.h <<EOF
5944 #define $ac_tr_func 1
5947 else
5948 echo "$ac_t""no" 1>&6
5950 done
5952 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5955 echo "configure:5956: checking for $ac_func" >&5
5956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5958 else
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5962 /* System header to define __stub macros and hopefully few prototypes,
5963 which can conflict with char $ac_func(); below. */
5964 #include <assert.h>
5965 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5968 char $ac_func();
5970 int main() {
5972 /* The GNU C library defines this for functions which it implements
5973 to always fail with ENOSYS. Some functions are actually named
5974 something starting with __ and the normal name is an alias. */
5975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5976 choke me
5977 #else
5978 $ac_func();
5979 #endif
5981 ; return 0; }
5983 if { (eval echo configure:5984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5984 rm -rf conftest*
5985 eval "ac_cv_func_$ac_func=yes"
5986 else
5987 echo "configure: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5989 rm -rf conftest*
5990 eval "ac_cv_func_$ac_func=no"
5992 rm -f conftest*
5995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5996 echo "$ac_t""yes" 1>&6
5997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5998 cat >> confdefs.h <<EOF
5999 #define $ac_tr_func 1
6002 else
6003 echo "$ac_t""no" 1>&6
6005 done
6007 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6010 echo "configure:6011: checking for $ac_func" >&5
6011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6013 else
6014 cat > conftest.$ac_ext <<EOF
6015 #line 6016 "configure"
6016 #include "confdefs.h"
6017 /* System header to define __stub macros and hopefully few prototypes,
6018 which can conflict with char $ac_func(); below. */
6019 #include <assert.h>
6020 /* Override any gcc2 internal prototype to avoid an error. */
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6023 char $ac_func();
6025 int main() {
6027 /* The GNU C library defines this for functions which it implements
6028 to always fail with ENOSYS. Some functions are actually named
6029 something starting with __ and the normal name is an alias. */
6030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6031 choke me
6032 #else
6033 $ac_func();
6034 #endif
6036 ; return 0; }
6038 if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6039 rm -rf conftest*
6040 eval "ac_cv_func_$ac_func=yes"
6041 else
6042 echo "configure: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6044 rm -rf conftest*
6045 eval "ac_cv_func_$ac_func=no"
6047 rm -f conftest*
6050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6051 echo "$ac_t""yes" 1>&6
6052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6053 cat >> confdefs.h <<EOF
6054 #define $ac_tr_func 1
6057 else
6058 echo "$ac_t""no" 1>&6
6060 done
6062 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_func" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6068 else
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073 which can conflict with char $ac_func(); below. */
6074 #include <assert.h>
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6078 char $ac_func();
6080 int main() {
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6086 choke me
6087 #else
6088 $ac_func();
6089 #endif
6091 ; return 0; }
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094 rm -rf conftest*
6095 eval "ac_cv_func_$ac_func=yes"
6096 else
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 rm -rf conftest*
6100 eval "ac_cv_func_$ac_func=no"
6102 rm -f conftest*
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 cat >> confdefs.h <<EOF
6109 #define $ac_tr_func 1
6112 else
6113 echo "$ac_t""no" 1>&6
6115 done
6117 for ac_func in _write __write _fork __fork
6119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6120 echo "configure:6121: checking for $ac_func" >&5
6121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6123 else
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6127 /* System header to define __stub macros and hopefully few prototypes,
6128 which can conflict with char $ac_func(); below. */
6129 #include <assert.h>
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6133 char $ac_func();
6135 int main() {
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6141 choke me
6142 #else
6143 $ac_func();
6144 #endif
6146 ; return 0; }
6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6149 rm -rf conftest*
6150 eval "ac_cv_func_$ac_func=yes"
6151 else
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 rm -rf conftest*
6155 eval "ac_cv_func_$ac_func=no"
6157 rm -f conftest*
6160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6161 echo "$ac_t""yes" 1>&6
6162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6163 cat >> confdefs.h <<EOF
6164 #define $ac_tr_func 1
6167 else
6168 echo "$ac_t""no" 1>&6
6170 done
6172 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6175 echo "configure:6176: checking for $ac_func" >&5
6176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6178 else
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 /* System header to define __stub macros and hopefully few prototypes,
6183 which can conflict with char $ac_func(); below. */
6184 #include <assert.h>
6185 /* Override any gcc2 internal prototype to avoid an error. */
6186 /* We use char because int might match the return type of a gcc2
6187 builtin and then its argument prototype would still apply. */
6188 char $ac_func();
6190 int main() {
6192 /* The GNU C library defines this for functions which it implements
6193 to always fail with ENOSYS. Some functions are actually named
6194 something starting with __ and the normal name is an alias. */
6195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6196 choke me
6197 #else
6198 $ac_func();
6199 #endif
6201 ; return 0; }
6203 if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6204 rm -rf conftest*
6205 eval "ac_cv_func_$ac_func=yes"
6206 else
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6209 rm -rf conftest*
6210 eval "ac_cv_func_$ac_func=no"
6212 rm -f conftest*
6215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6216 echo "$ac_t""yes" 1>&6
6217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6218 cat >> confdefs.h <<EOF
6219 #define $ac_tr_func 1
6222 else
6223 echo "$ac_t""no" 1>&6
6225 done
6227 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6230 echo "configure:6231: checking for $ac_func" >&5
6231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6233 else
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 /* System header to define __stub macros and hopefully few prototypes,
6238 which can conflict with char $ac_func(); below. */
6239 #include <assert.h>
6240 /* Override any gcc2 internal prototype to avoid an error. */
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6243 char $ac_func();
6245 int main() {
6247 /* The GNU C library defines this for functions which it implements
6248 to always fail with ENOSYS. Some functions are actually named
6249 something starting with __ and the normal name is an alias. */
6250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6251 choke me
6252 #else
6253 $ac_func();
6254 #endif
6256 ; return 0; }
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6259 rm -rf conftest*
6260 eval "ac_cv_func_$ac_func=yes"
6261 else
6262 echo "configure: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6264 rm -rf conftest*
6265 eval "ac_cv_func_$ac_func=no"
6267 rm -f conftest*
6270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6271 echo "$ac_t""yes" 1>&6
6272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6273 cat >> confdefs.h <<EOF
6274 #define $ac_tr_func 1
6277 else
6278 echo "$ac_t""no" 1>&6
6280 done
6282 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6285 echo "configure:6286: checking for $ac_func" >&5
6286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6288 else
6289 cat > conftest.$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6292 /* System header to define __stub macros and hopefully few prototypes,
6293 which can conflict with char $ac_func(); below. */
6294 #include <assert.h>
6295 /* Override any gcc2 internal prototype to avoid an error. */
6296 /* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */
6298 char $ac_func();
6300 int main() {
6302 /* The GNU C library defines this for functions which it implements
6303 to always fail with ENOSYS. Some functions are actually named
6304 something starting with __ and the normal name is an alias. */
6305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6306 choke me
6307 #else
6308 $ac_func();
6309 #endif
6311 ; return 0; }
6313 if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6314 rm -rf conftest*
6315 eval "ac_cv_func_$ac_func=yes"
6316 else
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6319 rm -rf conftest*
6320 eval "ac_cv_func_$ac_func=no"
6322 rm -f conftest*
6325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6328 cat >> confdefs.h <<EOF
6329 #define $ac_tr_func 1
6332 else
6333 echo "$ac_t""no" 1>&6
6335 done
6337 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6340 echo "configure:6341: checking for $ac_func" >&5
6341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6343 else
6344 cat > conftest.$ac_ext <<EOF
6345 #line 6346 "configure"
6346 #include "confdefs.h"
6347 /* System header to define __stub macros and hopefully few prototypes,
6348 which can conflict with char $ac_func(); below. */
6349 #include <assert.h>
6350 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6353 char $ac_func();
6355 int main() {
6357 /* The GNU C library defines this for functions which it implements
6358 to always fail with ENOSYS. Some functions are actually named
6359 something starting with __ and the normal name is an alias. */
6360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6361 choke me
6362 #else
6363 $ac_func();
6364 #endif
6366 ; return 0; }
6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6369 rm -rf conftest*
6370 eval "ac_cv_func_$ac_func=yes"
6371 else
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 rm -rf conftest*
6375 eval "ac_cv_func_$ac_func=no"
6377 rm -f conftest*
6380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6383 cat >> confdefs.h <<EOF
6384 #define $ac_tr_func 1
6387 else
6388 echo "$ac_t""no" 1>&6
6390 done
6392 for ac_func in open64 _open64 __open64 creat64
6394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_func" >&5
6396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6398 else
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char $ac_func(); below. */
6404 #include <assert.h>
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6408 char $ac_func();
6410 int main() {
6412 /* The GNU C library defines this for functions which it implements
6413 to always fail with ENOSYS. Some functions are actually named
6414 something starting with __ and the normal name is an alias. */
6415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6416 choke me
6417 #else
6418 $ac_func();
6419 #endif
6421 ; return 0; }
6423 if { (eval echo configure:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6424 rm -rf conftest*
6425 eval "ac_cv_func_$ac_func=yes"
6426 else
6427 echo "configure: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6429 rm -rf conftest*
6430 eval "ac_cv_func_$ac_func=no"
6432 rm -f conftest*
6435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6436 echo "$ac_t""yes" 1>&6
6437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6438 cat >> confdefs.h <<EOF
6439 #define $ac_tr_func 1
6442 else
6443 echo "$ac_t""no" 1>&6
6445 done
6449 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6452 if test x$ac_cv_func_stat64 = xno ; then
6453 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6454 echo "configure:6455: checking for stat64 in <sys/stat.h>" >&5
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6459 #if defined(HAVE_UNISTD_H)
6460 #include <unistd.h>
6461 #endif
6462 #include <sys/stat.h>
6464 int main() {
6465 struct stat64 st64; exit(stat64(".",&st64));
6466 ; return 0; }
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6469 rm -rf conftest*
6470 ac_cv_func_stat64=yes
6471 else
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6475 rm -f conftest*
6476 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6477 if test x$ac_cv_func_stat64 = xyes ; then
6478 cat >> confdefs.h <<\EOF
6479 #define HAVE_STAT64 1
6485 if test x$ac_cv_func_lstat64 = xno ; then
6486 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6487 echo "configure:6488: checking for lstat64 in <sys/stat.h>" >&5
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6492 #if defined(HAVE_UNISTD_H)
6493 #include <unistd.h>
6494 #endif
6495 #include <sys/stat.h>
6497 int main() {
6498 struct stat64 st64; exit(lstat64(".",&st64));
6499 ; return 0; }
6501 if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6502 rm -rf conftest*
6503 ac_cv_func_lstat64=yes
6504 else
6505 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6508 rm -f conftest*
6509 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6510 if test x$ac_cv_func_lstat64 = xyes ; then
6511 cat >> confdefs.h <<\EOF
6512 #define HAVE_LSTAT64 1
6518 if test x$ac_cv_func_fstat64 = xno ; then
6519 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6520 echo "configure:6521: checking for fstat64 in <sys/stat.h>" >&5
6521 cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6525 #if defined(HAVE_UNISTD_H)
6526 #include <unistd.h>
6527 #endif
6528 #include <sys/stat.h>
6530 int main() {
6531 struct stat64 st64; exit(fstat64(0,&st64));
6532 ; return 0; }
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535 rm -rf conftest*
6536 ac_cv_func_fstat64=yes
6537 else
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6541 rm -f conftest*
6542 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6543 if test x$ac_cv_func_fstat64 = xyes ; then
6544 cat >> confdefs.h <<\EOF
6545 #define HAVE_FSTAT64 1
6552 # If no strcasecmp, check for it in some known places
6553 # It is in -lresolv on ReliantUNIX and UnixWare
6554 # -lresolve *must* follow -lnsl for name resolution to work properly
6557 if test x$ac_cv_func_strcasecmp = xno ; then
6558 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6559 echo "configure:6560: checking for strcasecmp in -lresolv" >&5
6560 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6563 else
6564 ac_save_LIBS="$LIBS"
6565 LIBS="-lresolv $LIBS"
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* Override any gcc2 internal prototype to avoid an error. */
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6572 char strcasecmp();
6574 int main() {
6575 strcasecmp()
6576 ; return 0; }
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6579 rm -rf conftest*
6580 eval "ac_cv_lib_$ac_lib_var=yes"
6581 else
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6584 rm -rf conftest*
6585 eval "ac_cv_lib_$ac_lib_var=no"
6587 rm -f conftest*
6588 LIBS="$ac_save_LIBS"
6591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6593 LIBS="$LIBS -lresolv"
6594 cat >> confdefs.h <<\EOF
6595 #define HAVE_STRCASECMP 1
6598 else
6599 echo "$ac_t""no" 1>&6
6605 # Check for the functions putprpwnam, set_auth_parameters,
6606 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6607 # Needed for OSF1 and HPUX.
6610 case "$LIBS" in
6611 *-lsecurity*) for ac_func in putprpwnam
6613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6614 echo "configure:6615: checking for $ac_func" >&5
6615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6617 else
6618 cat > conftest.$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6621 /* System header to define __stub macros and hopefully few prototypes,
6622 which can conflict with char $ac_func(); below. */
6623 #include <assert.h>
6624 /* Override any gcc2 internal prototype to avoid an error. */
6625 /* We use char because int might match the return type of a gcc2
6626 builtin and then its argument prototype would still apply. */
6627 char $ac_func();
6629 int main() {
6631 /* The GNU C library defines this for functions which it implements
6632 to always fail with ENOSYS. Some functions are actually named
6633 something starting with __ and the normal name is an alias. */
6634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6635 choke me
6636 #else
6637 $ac_func();
6638 #endif
6640 ; return 0; }
6642 if { (eval echo configure:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6643 rm -rf conftest*
6644 eval "ac_cv_func_$ac_func=yes"
6645 else
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 rm -rf conftest*
6649 eval "ac_cv_func_$ac_func=no"
6651 rm -f conftest*
6654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6655 echo "$ac_t""yes" 1>&6
6656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6657 cat >> confdefs.h <<EOF
6658 #define $ac_tr_func 1
6661 else
6662 echo "$ac_t""no" 1>&6
6664 done
6666 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6667 echo "configure:6668: checking for putprpwnam in -lsecurity" >&5
6668 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6671 else
6672 ac_save_LIBS="$LIBS"
6673 LIBS="-lsecurity $LIBS"
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6677 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6680 char putprpwnam();
6682 int main() {
6683 putprpwnam()
6684 ; return 0; }
6686 if { (eval echo configure:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6687 rm -rf conftest*
6688 eval "ac_cv_lib_$ac_lib_var=yes"
6689 else
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6692 rm -rf conftest*
6693 eval "ac_cv_lib_$ac_lib_var=no"
6695 rm -f conftest*
6696 LIBS="$ac_save_LIBS"
6699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6703 cat >> confdefs.h <<EOF
6704 #define $ac_tr_lib 1
6707 LIBS="-lsecurity $LIBS"
6709 else
6710 echo "$ac_t""no" 1>&6
6713 for ac_func in putprpwnam
6715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6716 echo "configure:6717: checking for $ac_func" >&5
6717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6719 else
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6723 /* System header to define __stub macros and hopefully few prototypes,
6724 which can conflict with char $ac_func(); below. */
6725 #include <assert.h>
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6729 char $ac_func();
6731 int main() {
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6737 choke me
6738 #else
6739 $ac_func();
6740 #endif
6742 ; return 0; }
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 rm -rf conftest*
6746 eval "ac_cv_func_$ac_func=yes"
6747 else
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6750 rm -rf conftest*
6751 eval "ac_cv_func_$ac_func=no"
6753 rm -f conftest*
6756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6759 cat >> confdefs.h <<EOF
6760 #define $ac_tr_func 1
6763 else
6764 echo "$ac_t""no" 1>&6
6766 done
6769 esac
6771 case "$LIBS" in
6772 *-lsec*) for ac_func in putprpwnam
6774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6775 echo "configure:6776: checking for $ac_func" >&5
6776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6778 else
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* System header to define __stub macros and hopefully few prototypes,
6783 which can conflict with char $ac_func(); below. */
6784 #include <assert.h>
6785 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6788 char $ac_func();
6790 int main() {
6792 /* The GNU C library defines this for functions which it implements
6793 to always fail with ENOSYS. Some functions are actually named
6794 something starting with __ and the normal name is an alias. */
6795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6796 choke me
6797 #else
6798 $ac_func();
6799 #endif
6801 ; return 0; }
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6804 rm -rf conftest*
6805 eval "ac_cv_func_$ac_func=yes"
6806 else
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 rm -rf conftest*
6810 eval "ac_cv_func_$ac_func=no"
6812 rm -f conftest*
6815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6816 echo "$ac_t""yes" 1>&6
6817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6818 cat >> confdefs.h <<EOF
6819 #define $ac_tr_func 1
6822 else
6823 echo "$ac_t""no" 1>&6
6825 done
6827 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6828 echo "configure:6829: checking for putprpwnam in -lsec" >&5
6829 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6832 else
6833 ac_save_LIBS="$LIBS"
6834 LIBS="-lsec $LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6841 char putprpwnam();
6843 int main() {
6844 putprpwnam()
6845 ; return 0; }
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6848 rm -rf conftest*
6849 eval "ac_cv_lib_$ac_lib_var=yes"
6850 else
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6853 rm -rf conftest*
6854 eval "ac_cv_lib_$ac_lib_var=no"
6856 rm -f conftest*
6857 LIBS="$ac_save_LIBS"
6860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6864 cat >> confdefs.h <<EOF
6865 #define $ac_tr_lib 1
6868 LIBS="-lsec $LIBS"
6870 else
6871 echo "$ac_t""no" 1>&6
6874 for ac_func in putprpwnam
6876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6877 echo "configure:6878: checking for $ac_func" >&5
6878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6880 else
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 /* System header to define __stub macros and hopefully few prototypes,
6885 which can conflict with char $ac_func(); below. */
6886 #include <assert.h>
6887 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6890 char $ac_func();
6892 int main() {
6894 /* The GNU C library defines this for functions which it implements
6895 to always fail with ENOSYS. Some functions are actually named
6896 something starting with __ and the normal name is an alias. */
6897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6898 choke me
6899 #else
6900 $ac_func();
6901 #endif
6903 ; return 0; }
6905 if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6906 rm -rf conftest*
6907 eval "ac_cv_func_$ac_func=yes"
6908 else
6909 echo "configure: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6911 rm -rf conftest*
6912 eval "ac_cv_func_$ac_func=no"
6914 rm -f conftest*
6917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6918 echo "$ac_t""yes" 1>&6
6919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6920 cat >> confdefs.h <<EOF
6921 #define $ac_tr_func 1
6924 else
6925 echo "$ac_t""no" 1>&6
6927 done
6930 esac
6933 case "$LIBS" in
6934 *-lsecurity*) for ac_func in set_auth_parameters
6936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_func" >&5
6938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6940 else
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 /* System header to define __stub macros and hopefully few prototypes,
6945 which can conflict with char $ac_func(); below. */
6946 #include <assert.h>
6947 /* Override any gcc2 internal prototype to avoid an error. */
6948 /* We use char because int might match the return type of a gcc2
6949 builtin and then its argument prototype would still apply. */
6950 char $ac_func();
6952 int main() {
6954 /* The GNU C library defines this for functions which it implements
6955 to always fail with ENOSYS. Some functions are actually named
6956 something starting with __ and the normal name is an alias. */
6957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6958 choke me
6959 #else
6960 $ac_func();
6961 #endif
6963 ; return 0; }
6965 if { (eval echo configure:6966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6966 rm -rf conftest*
6967 eval "ac_cv_func_$ac_func=yes"
6968 else
6969 echo "configure: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6971 rm -rf conftest*
6972 eval "ac_cv_func_$ac_func=no"
6974 rm -f conftest*
6977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6978 echo "$ac_t""yes" 1>&6
6979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6980 cat >> confdefs.h <<EOF
6981 #define $ac_tr_func 1
6984 else
6985 echo "$ac_t""no" 1>&6
6987 done
6989 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6990 echo "configure:6991: checking for set_auth_parameters in -lsecurity" >&5
6991 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6994 else
6995 ac_save_LIBS="$LIBS"
6996 LIBS="-lsecurity $LIBS"
6997 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7003 char set_auth_parameters();
7005 int main() {
7006 set_auth_parameters()
7007 ; return 0; }
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 rm -rf conftest*
7011 eval "ac_cv_lib_$ac_lib_var=yes"
7012 else
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7015 rm -rf conftest*
7016 eval "ac_cv_lib_$ac_lib_var=no"
7018 rm -f conftest*
7019 LIBS="$ac_save_LIBS"
7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7026 cat >> confdefs.h <<EOF
7027 #define $ac_tr_lib 1
7030 LIBS="-lsecurity $LIBS"
7032 else
7033 echo "$ac_t""no" 1>&6
7036 for ac_func in set_auth_parameters
7038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7039 echo "configure:7040: checking for $ac_func" >&5
7040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7042 else
7043 cat > conftest.$ac_ext <<EOF
7044 #line 7045 "configure"
7045 #include "confdefs.h"
7046 /* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char $ac_func(); below. */
7048 #include <assert.h>
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7052 char $ac_func();
7054 int main() {
7056 /* The GNU C library defines this for functions which it implements
7057 to always fail with ENOSYS. Some functions are actually named
7058 something starting with __ and the normal name is an alias. */
7059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7060 choke me
7061 #else
7062 $ac_func();
7063 #endif
7065 ; return 0; }
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7068 rm -rf conftest*
7069 eval "ac_cv_func_$ac_func=yes"
7070 else
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 rm -rf conftest*
7074 eval "ac_cv_func_$ac_func=no"
7076 rm -f conftest*
7079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7082 cat >> confdefs.h <<EOF
7083 #define $ac_tr_func 1
7086 else
7087 echo "$ac_t""no" 1>&6
7089 done
7092 esac
7094 case "$LIBS" in
7095 *-lsec*) for ac_func in set_auth_parameters
7097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7098 echo "configure:7099: checking for $ac_func" >&5
7099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7101 else
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* System header to define __stub macros and hopefully few prototypes,
7106 which can conflict with char $ac_func(); below. */
7107 #include <assert.h>
7108 /* Override any gcc2 internal prototype to avoid an error. */
7109 /* We use char because int might match the return type of a gcc2
7110 builtin and then its argument prototype would still apply. */
7111 char $ac_func();
7113 int main() {
7115 /* The GNU C library defines this for functions which it implements
7116 to always fail with ENOSYS. Some functions are actually named
7117 something starting with __ and the normal name is an alias. */
7118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7119 choke me
7120 #else
7121 $ac_func();
7122 #endif
7124 ; return 0; }
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7127 rm -rf conftest*
7128 eval "ac_cv_func_$ac_func=yes"
7129 else
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 rm -rf conftest*
7133 eval "ac_cv_func_$ac_func=no"
7135 rm -f conftest*
7138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7139 echo "$ac_t""yes" 1>&6
7140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7141 cat >> confdefs.h <<EOF
7142 #define $ac_tr_func 1
7145 else
7146 echo "$ac_t""no" 1>&6
7148 done
7150 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7151 echo "configure:7152: checking for set_auth_parameters in -lsec" >&5
7152 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7155 else
7156 ac_save_LIBS="$LIBS"
7157 LIBS="-lsec $LIBS"
7158 cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7164 char set_auth_parameters();
7166 int main() {
7167 set_auth_parameters()
7168 ; return 0; }
7170 if { (eval echo configure:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7171 rm -rf conftest*
7172 eval "ac_cv_lib_$ac_lib_var=yes"
7173 else
7174 echo "configure: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7176 rm -rf conftest*
7177 eval "ac_cv_lib_$ac_lib_var=no"
7179 rm -f conftest*
7180 LIBS="$ac_save_LIBS"
7183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7187 cat >> confdefs.h <<EOF
7188 #define $ac_tr_lib 1
7191 LIBS="-lsec $LIBS"
7193 else
7194 echo "$ac_t""no" 1>&6
7197 for ac_func in set_auth_parameters
7199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7200 echo "configure:7201: checking for $ac_func" >&5
7201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7203 else
7204 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7207 /* System header to define __stub macros and hopefully few prototypes,
7208 which can conflict with char $ac_func(); below. */
7209 #include <assert.h>
7210 /* Override any gcc2 internal prototype to avoid an error. */
7211 /* We use char because int might match the return type of a gcc2
7212 builtin and then its argument prototype would still apply. */
7213 char $ac_func();
7215 int main() {
7217 /* The GNU C library defines this for functions which it implements
7218 to always fail with ENOSYS. Some functions are actually named
7219 something starting with __ and the normal name is an alias. */
7220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7221 choke me
7222 #else
7223 $ac_func();
7224 #endif
7226 ; return 0; }
7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7229 rm -rf conftest*
7230 eval "ac_cv_func_$ac_func=yes"
7231 else
7232 echo "configure: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 rm -rf conftest*
7235 eval "ac_cv_func_$ac_func=no"
7237 rm -f conftest*
7240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7241 echo "$ac_t""yes" 1>&6
7242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7243 cat >> confdefs.h <<EOF
7244 #define $ac_tr_func 1
7247 else
7248 echo "$ac_t""no" 1>&6
7250 done
7253 esac
7256 # UnixWare 7.x has its getspnam in -lgen
7257 case "$LIBS" in
7258 *-lgen*) for ac_func in getspnam
7260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7261 echo "configure:7262: checking for $ac_func" >&5
7262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7263 echo $ac_n "(cached) $ac_c" 1>&6
7264 else
7265 cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7268 /* System header to define __stub macros and hopefully few prototypes,
7269 which can conflict with char $ac_func(); below. */
7270 #include <assert.h>
7271 /* Override any gcc2 internal prototype to avoid an error. */
7272 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274 char $ac_func();
7276 int main() {
7278 /* The GNU C library defines this for functions which it implements
7279 to always fail with ENOSYS. Some functions are actually named
7280 something starting with __ and the normal name is an alias. */
7281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7282 choke me
7283 #else
7284 $ac_func();
7285 #endif
7287 ; return 0; }
7289 if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7290 rm -rf conftest*
7291 eval "ac_cv_func_$ac_func=yes"
7292 else
7293 echo "configure: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 rm -rf conftest*
7296 eval "ac_cv_func_$ac_func=no"
7298 rm -f conftest*
7301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7302 echo "$ac_t""yes" 1>&6
7303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7304 cat >> confdefs.h <<EOF
7305 #define $ac_tr_func 1
7308 else
7309 echo "$ac_t""no" 1>&6
7311 done
7313 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7314 echo "configure:7315: checking for getspnam in -lgen" >&5
7315 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7317 echo $ac_n "(cached) $ac_c" 1>&6
7318 else
7319 ac_save_LIBS="$LIBS"
7320 LIBS="-lgen $LIBS"
7321 cat > conftest.$ac_ext <<EOF
7322 #line 7323 "configure"
7323 #include "confdefs.h"
7324 /* Override any gcc2 internal prototype to avoid an error. */
7325 /* We use char because int might match the return type of a gcc2
7326 builtin and then its argument prototype would still apply. */
7327 char getspnam();
7329 int main() {
7330 getspnam()
7331 ; return 0; }
7333 if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7334 rm -rf conftest*
7335 eval "ac_cv_lib_$ac_lib_var=yes"
7336 else
7337 echo "configure: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7339 rm -rf conftest*
7340 eval "ac_cv_lib_$ac_lib_var=no"
7342 rm -f conftest*
7343 LIBS="$ac_save_LIBS"
7346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7347 echo "$ac_t""yes" 1>&6
7348 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7350 cat >> confdefs.h <<EOF
7351 #define $ac_tr_lib 1
7354 LIBS="-lgen $LIBS"
7356 else
7357 echo "$ac_t""no" 1>&6
7360 for ac_func in getspnam
7362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7363 echo "configure:7364: checking for $ac_func" >&5
7364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7366 else
7367 cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 /* System header to define __stub macros and hopefully few prototypes,
7371 which can conflict with char $ac_func(); below. */
7372 #include <assert.h>
7373 /* Override any gcc2 internal prototype to avoid an error. */
7374 /* We use char because int might match the return type of a gcc2
7375 builtin and then its argument prototype would still apply. */
7376 char $ac_func();
7378 int main() {
7380 /* The GNU C library defines this for functions which it implements
7381 to always fail with ENOSYS. Some functions are actually named
7382 something starting with __ and the normal name is an alias. */
7383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7384 choke me
7385 #else
7386 $ac_func();
7387 #endif
7389 ; return 0; }
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7392 rm -rf conftest*
7393 eval "ac_cv_func_$ac_func=yes"
7394 else
7395 echo "configure: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7397 rm -rf conftest*
7398 eval "ac_cv_func_$ac_func=no"
7400 rm -f conftest*
7403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7404 echo "$ac_t""yes" 1>&6
7405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7406 cat >> confdefs.h <<EOF
7407 #define $ac_tr_func 1
7410 else
7411 echo "$ac_t""no" 1>&6
7413 done
7416 esac
7419 case "$LIBS" in
7420 *-lsecurity*) for ac_func in getspnam
7422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7423 echo "configure:7424: checking for $ac_func" >&5
7424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7426 else
7427 cat > conftest.$ac_ext <<EOF
7428 #line 7429 "configure"
7429 #include "confdefs.h"
7430 /* System header to define __stub macros and hopefully few prototypes,
7431 which can conflict with char $ac_func(); below. */
7432 #include <assert.h>
7433 /* Override any gcc2 internal prototype to avoid an error. */
7434 /* We use char because int might match the return type of a gcc2
7435 builtin and then its argument prototype would still apply. */
7436 char $ac_func();
7438 int main() {
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7444 choke me
7445 #else
7446 $ac_func();
7447 #endif
7449 ; return 0; }
7451 if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7452 rm -rf conftest*
7453 eval "ac_cv_func_$ac_func=yes"
7454 else
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7457 rm -rf conftest*
7458 eval "ac_cv_func_$ac_func=no"
7460 rm -f conftest*
7463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7466 cat >> confdefs.h <<EOF
7467 #define $ac_tr_func 1
7470 else
7471 echo "$ac_t""no" 1>&6
7473 done
7475 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7476 echo "configure:7477: checking for getspnam in -lsecurity" >&5
7477 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7480 else
7481 ac_save_LIBS="$LIBS"
7482 LIBS="-lsecurity $LIBS"
7483 cat > conftest.$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7486 /* Override any gcc2 internal prototype to avoid an error. */
7487 /* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7489 char getspnam();
7491 int main() {
7492 getspnam()
7493 ; return 0; }
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7496 rm -rf conftest*
7497 eval "ac_cv_lib_$ac_lib_var=yes"
7498 else
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7501 rm -rf conftest*
7502 eval "ac_cv_lib_$ac_lib_var=no"
7504 rm -f conftest*
7505 LIBS="$ac_save_LIBS"
7508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7512 cat >> confdefs.h <<EOF
7513 #define $ac_tr_lib 1
7516 LIBS="-lsecurity $LIBS"
7518 else
7519 echo "$ac_t""no" 1>&6
7522 for ac_func in getspnam
7524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_func" >&5
7526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7528 else
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func(); below. */
7534 #include <assert.h>
7535 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7538 char $ac_func();
7540 int main() {
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7546 choke me
7547 #else
7548 $ac_func();
7549 #endif
7551 ; return 0; }
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7554 rm -rf conftest*
7555 eval "ac_cv_func_$ac_func=yes"
7556 else
7557 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7559 rm -rf conftest*
7560 eval "ac_cv_func_$ac_func=no"
7562 rm -f conftest*
7565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7568 cat >> confdefs.h <<EOF
7569 #define $ac_tr_func 1
7572 else
7573 echo "$ac_t""no" 1>&6
7575 done
7578 esac
7580 case "$LIBS" in
7581 *-lsec*) for ac_func in getspnam
7583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_func" >&5
7585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7587 else
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7591 /* System header to define __stub macros and hopefully few prototypes,
7592 which can conflict with char $ac_func(); below. */
7593 #include <assert.h>
7594 /* Override any gcc2 internal prototype to avoid an error. */
7595 /* We use char because int might match the return type of a gcc2
7596 builtin and then its argument prototype would still apply. */
7597 char $ac_func();
7599 int main() {
7601 /* The GNU C library defines this for functions which it implements
7602 to always fail with ENOSYS. Some functions are actually named
7603 something starting with __ and the normal name is an alias. */
7604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7605 choke me
7606 #else
7607 $ac_func();
7608 #endif
7610 ; return 0; }
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7613 rm -rf conftest*
7614 eval "ac_cv_func_$ac_func=yes"
7615 else
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7618 rm -rf conftest*
7619 eval "ac_cv_func_$ac_func=no"
7621 rm -f conftest*
7624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7625 echo "$ac_t""yes" 1>&6
7626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7627 cat >> confdefs.h <<EOF
7628 #define $ac_tr_func 1
7631 else
7632 echo "$ac_t""no" 1>&6
7634 done
7636 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7637 echo "configure:7638: checking for getspnam in -lsec" >&5
7638 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7641 else
7642 ac_save_LIBS="$LIBS"
7643 LIBS="-lsec $LIBS"
7644 cat > conftest.$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7647 /* Override any gcc2 internal prototype to avoid an error. */
7648 /* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7650 char getspnam();
7652 int main() {
7653 getspnam()
7654 ; return 0; }
7656 if { (eval echo configure:7657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7657 rm -rf conftest*
7658 eval "ac_cv_lib_$ac_lib_var=yes"
7659 else
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7662 rm -rf conftest*
7663 eval "ac_cv_lib_$ac_lib_var=no"
7665 rm -f conftest*
7666 LIBS="$ac_save_LIBS"
7669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7672 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7673 cat >> confdefs.h <<EOF
7674 #define $ac_tr_lib 1
7677 LIBS="-lsec $LIBS"
7679 else
7680 echo "$ac_t""no" 1>&6
7683 for ac_func in getspnam
7685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7686 echo "configure:7687: checking for $ac_func" >&5
7687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7689 else
7690 cat > conftest.$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7693 /* System header to define __stub macros and hopefully few prototypes,
7694 which can conflict with char $ac_func(); below. */
7695 #include <assert.h>
7696 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699 char $ac_func();
7701 int main() {
7703 /* The GNU C library defines this for functions which it implements
7704 to always fail with ENOSYS. Some functions are actually named
7705 something starting with __ and the normal name is an alias. */
7706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7707 choke me
7708 #else
7709 $ac_func();
7710 #endif
7712 ; return 0; }
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7715 rm -rf conftest*
7716 eval "ac_cv_func_$ac_func=yes"
7717 else
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7720 rm -rf conftest*
7721 eval "ac_cv_func_$ac_func=no"
7723 rm -f conftest*
7726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7729 cat >> confdefs.h <<EOF
7730 #define $ac_tr_func 1
7733 else
7734 echo "$ac_t""no" 1>&6
7736 done
7739 esac
7742 case "$LIBS" in
7743 *-lsecurity*) for ac_func in bigcrypt
7745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7746 echo "configure:7747: checking for $ac_func" >&5
7747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7749 else
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7753 /* System header to define __stub macros and hopefully few prototypes,
7754 which can conflict with char $ac_func(); below. */
7755 #include <assert.h>
7756 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7759 char $ac_func();
7761 int main() {
7763 /* The GNU C library defines this for functions which it implements
7764 to always fail with ENOSYS. Some functions are actually named
7765 something starting with __ and the normal name is an alias. */
7766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7767 choke me
7768 #else
7769 $ac_func();
7770 #endif
7772 ; return 0; }
7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7775 rm -rf conftest*
7776 eval "ac_cv_func_$ac_func=yes"
7777 else
7778 echo "configure: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7780 rm -rf conftest*
7781 eval "ac_cv_func_$ac_func=no"
7783 rm -f conftest*
7786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7787 echo "$ac_t""yes" 1>&6
7788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7789 cat >> confdefs.h <<EOF
7790 #define $ac_tr_func 1
7793 else
7794 echo "$ac_t""no" 1>&6
7796 done
7798 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7799 echo "configure:7800: checking for bigcrypt in -lsecurity" >&5
7800 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7803 else
7804 ac_save_LIBS="$LIBS"
7805 LIBS="-lsecurity $LIBS"
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* Override any gcc2 internal prototype to avoid an error. */
7810 /* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7812 char bigcrypt();
7814 int main() {
7815 bigcrypt()
7816 ; return 0; }
7818 if { (eval echo configure:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7819 rm -rf conftest*
7820 eval "ac_cv_lib_$ac_lib_var=yes"
7821 else
7822 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7824 rm -rf conftest*
7825 eval "ac_cv_lib_$ac_lib_var=no"
7827 rm -f conftest*
7828 LIBS="$ac_save_LIBS"
7831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7834 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7835 cat >> confdefs.h <<EOF
7836 #define $ac_tr_lib 1
7839 LIBS="-lsecurity $LIBS"
7841 else
7842 echo "$ac_t""no" 1>&6
7845 for ac_func in bigcrypt
7847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_func" >&5
7849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7851 else
7852 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func(); below. */
7857 #include <assert.h>
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7861 char $ac_func();
7863 int main() {
7865 /* The GNU C library defines this for functions which it implements
7866 to always fail with ENOSYS. Some functions are actually named
7867 something starting with __ and the normal name is an alias. */
7868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7869 choke me
7870 #else
7871 $ac_func();
7872 #endif
7874 ; return 0; }
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7877 rm -rf conftest*
7878 eval "ac_cv_func_$ac_func=yes"
7879 else
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 rm -rf conftest*
7883 eval "ac_cv_func_$ac_func=no"
7885 rm -f conftest*
7888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7891 cat >> confdefs.h <<EOF
7892 #define $ac_tr_func 1
7895 else
7896 echo "$ac_t""no" 1>&6
7898 done
7901 esac
7903 case "$LIBS" in
7904 *-lsec*) for ac_func in bigcrypt
7906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7907 echo "configure:7908: checking for $ac_func" >&5
7908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7910 else
7911 cat > conftest.$ac_ext <<EOF
7912 #line 7913 "configure"
7913 #include "confdefs.h"
7914 /* System header to define __stub macros and hopefully few prototypes,
7915 which can conflict with char $ac_func(); below. */
7916 #include <assert.h>
7917 /* Override any gcc2 internal prototype to avoid an error. */
7918 /* We use char because int might match the return type of a gcc2
7919 builtin and then its argument prototype would still apply. */
7920 char $ac_func();
7922 int main() {
7924 /* The GNU C library defines this for functions which it implements
7925 to always fail with ENOSYS. Some functions are actually named
7926 something starting with __ and the normal name is an alias. */
7927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7928 choke me
7929 #else
7930 $ac_func();
7931 #endif
7933 ; return 0; }
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7936 rm -rf conftest*
7937 eval "ac_cv_func_$ac_func=yes"
7938 else
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7941 rm -rf conftest*
7942 eval "ac_cv_func_$ac_func=no"
7944 rm -f conftest*
7947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7948 echo "$ac_t""yes" 1>&6
7949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7950 cat >> confdefs.h <<EOF
7951 #define $ac_tr_func 1
7954 else
7955 echo "$ac_t""no" 1>&6
7957 done
7959 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7960 echo "configure:7961: checking for bigcrypt in -lsec" >&5
7961 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7964 else
7965 ac_save_LIBS="$LIBS"
7966 LIBS="-lsec $LIBS"
7967 cat > conftest.$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7970 /* Override any gcc2 internal prototype to avoid an error. */
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7973 char bigcrypt();
7975 int main() {
7976 bigcrypt()
7977 ; return 0; }
7979 if { (eval echo configure:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7980 rm -rf conftest*
7981 eval "ac_cv_lib_$ac_lib_var=yes"
7982 else
7983 echo "configure: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 rm -rf conftest*
7986 eval "ac_cv_lib_$ac_lib_var=no"
7988 rm -f conftest*
7989 LIBS="$ac_save_LIBS"
7992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7995 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7996 cat >> confdefs.h <<EOF
7997 #define $ac_tr_lib 1
8000 LIBS="-lsec $LIBS"
8002 else
8003 echo "$ac_t""no" 1>&6
8006 for ac_func in bigcrypt
8008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8009 echo "configure:8010: checking for $ac_func" >&5
8010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8012 else
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 /* System header to define __stub macros and hopefully few prototypes,
8017 which can conflict with char $ac_func(); below. */
8018 #include <assert.h>
8019 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char $ac_func();
8024 int main() {
8026 /* The GNU C library defines this for functions which it implements
8027 to always fail with ENOSYS. Some functions are actually named
8028 something starting with __ and the normal name is an alias. */
8029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8030 choke me
8031 #else
8032 $ac_func();
8033 #endif
8035 ; return 0; }
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8038 rm -rf conftest*
8039 eval "ac_cv_func_$ac_func=yes"
8040 else
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8043 rm -rf conftest*
8044 eval "ac_cv_func_$ac_func=no"
8046 rm -f conftest*
8049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8050 echo "$ac_t""yes" 1>&6
8051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8052 cat >> confdefs.h <<EOF
8053 #define $ac_tr_func 1
8056 else
8057 echo "$ac_t""no" 1>&6
8059 done
8062 esac
8065 case "$LIBS" in
8066 *-lsecurity*) for ac_func in getprpwnam
8068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_func" >&5
8070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char $ac_func(); below. */
8078 #include <assert.h>
8079 /* Override any gcc2 internal prototype to avoid an error. */
8080 /* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8082 char $ac_func();
8084 int main() {
8086 /* The GNU C library defines this for functions which it implements
8087 to always fail with ENOSYS. Some functions are actually named
8088 something starting with __ and the normal name is an alias. */
8089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8090 choke me
8091 #else
8092 $ac_func();
8093 #endif
8095 ; return 0; }
8097 if { (eval echo configure:8098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8098 rm -rf conftest*
8099 eval "ac_cv_func_$ac_func=yes"
8100 else
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 rm -rf conftest*
8104 eval "ac_cv_func_$ac_func=no"
8106 rm -f conftest*
8109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8110 echo "$ac_t""yes" 1>&6
8111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8112 cat >> confdefs.h <<EOF
8113 #define $ac_tr_func 1
8116 else
8117 echo "$ac_t""no" 1>&6
8119 done
8121 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8122 echo "configure:8123: checking for getprpwnam in -lsecurity" >&5
8123 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8126 else
8127 ac_save_LIBS="$LIBS"
8128 LIBS="-lsecurity $LIBS"
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 /* Override any gcc2 internal prototype to avoid an error. */
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8135 char getprpwnam();
8137 int main() {
8138 getprpwnam()
8139 ; return 0; }
8141 if { (eval echo configure:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8142 rm -rf conftest*
8143 eval "ac_cv_lib_$ac_lib_var=yes"
8144 else
8145 echo "configure: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8147 rm -rf conftest*
8148 eval "ac_cv_lib_$ac_lib_var=no"
8150 rm -f conftest*
8151 LIBS="$ac_save_LIBS"
8154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8157 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8158 cat >> confdefs.h <<EOF
8159 #define $ac_tr_lib 1
8162 LIBS="-lsecurity $LIBS"
8164 else
8165 echo "$ac_t""no" 1>&6
8168 for ac_func in getprpwnam
8170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8171 echo "configure:8172: checking for $ac_func" >&5
8172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8174 else
8175 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 /* System header to define __stub macros and hopefully few prototypes,
8179 which can conflict with char $ac_func(); below. */
8180 #include <assert.h>
8181 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8184 char $ac_func();
8186 int main() {
8188 /* The GNU C library defines this for functions which it implements
8189 to always fail with ENOSYS. Some functions are actually named
8190 something starting with __ and the normal name is an alias. */
8191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8192 choke me
8193 #else
8194 $ac_func();
8195 #endif
8197 ; return 0; }
8199 if { (eval echo configure:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8200 rm -rf conftest*
8201 eval "ac_cv_func_$ac_func=yes"
8202 else
8203 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8205 rm -rf conftest*
8206 eval "ac_cv_func_$ac_func=no"
8208 rm -f conftest*
8211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8212 echo "$ac_t""yes" 1>&6
8213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8214 cat >> confdefs.h <<EOF
8215 #define $ac_tr_func 1
8218 else
8219 echo "$ac_t""no" 1>&6
8221 done
8224 esac
8226 case "$LIBS" in
8227 *-lsec*) for ac_func in getprpwnam
8229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8230 echo "configure:8231: checking for $ac_func" >&5
8231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8232 echo $ac_n "(cached) $ac_c" 1>&6
8233 else
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 /* System header to define __stub macros and hopefully few prototypes,
8238 which can conflict with char $ac_func(); below. */
8239 #include <assert.h>
8240 /* Override any gcc2 internal prototype to avoid an error. */
8241 /* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8243 char $ac_func();
8245 int main() {
8247 /* The GNU C library defines this for functions which it implements
8248 to always fail with ENOSYS. Some functions are actually named
8249 something starting with __ and the normal name is an alias. */
8250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8251 choke me
8252 #else
8253 $ac_func();
8254 #endif
8256 ; return 0; }
8258 if { (eval echo configure:8259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8259 rm -rf conftest*
8260 eval "ac_cv_func_$ac_func=yes"
8261 else
8262 echo "configure: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 rm -rf conftest*
8265 eval "ac_cv_func_$ac_func=no"
8267 rm -f conftest*
8270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8271 echo "$ac_t""yes" 1>&6
8272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8273 cat >> confdefs.h <<EOF
8274 #define $ac_tr_func 1
8277 else
8278 echo "$ac_t""no" 1>&6
8280 done
8282 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8283 echo "configure:8284: checking for getprpwnam in -lsec" >&5
8284 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8287 else
8288 ac_save_LIBS="$LIBS"
8289 LIBS="-lsec $LIBS"
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* Override any gcc2 internal prototype to avoid an error. */
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296 char getprpwnam();
8298 int main() {
8299 getprpwnam()
8300 ; return 0; }
8302 if { (eval echo configure:8303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8303 rm -rf conftest*
8304 eval "ac_cv_lib_$ac_lib_var=yes"
8305 else
8306 echo "configure: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 rm -rf conftest*
8309 eval "ac_cv_lib_$ac_lib_var=no"
8311 rm -f conftest*
8312 LIBS="$ac_save_LIBS"
8315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8318 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8319 cat >> confdefs.h <<EOF
8320 #define $ac_tr_lib 1
8323 LIBS="-lsec $LIBS"
8325 else
8326 echo "$ac_t""no" 1>&6
8329 for ac_func in getprpwnam
8331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8332 echo "configure:8333: checking for $ac_func" >&5
8333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8334 echo $ac_n "(cached) $ac_c" 1>&6
8335 else
8336 cat > conftest.$ac_ext <<EOF
8337 #line 8338 "configure"
8338 #include "confdefs.h"
8339 /* System header to define __stub macros and hopefully few prototypes,
8340 which can conflict with char $ac_func(); below. */
8341 #include <assert.h>
8342 /* Override any gcc2 internal prototype to avoid an error. */
8343 /* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */
8345 char $ac_func();
8347 int main() {
8349 /* The GNU C library defines this for functions which it implements
8350 to always fail with ENOSYS. Some functions are actually named
8351 something starting with __ and the normal name is an alias. */
8352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8353 choke me
8354 #else
8355 $ac_func();
8356 #endif
8358 ; return 0; }
8360 if { (eval echo configure:8361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8361 rm -rf conftest*
8362 eval "ac_cv_func_$ac_func=yes"
8363 else
8364 echo "configure: failed program was:" >&5
8365 cat conftest.$ac_ext >&5
8366 rm -rf conftest*
8367 eval "ac_cv_func_$ac_func=no"
8369 rm -f conftest*
8372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8373 echo "$ac_t""yes" 1>&6
8374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8375 cat >> confdefs.h <<EOF
8376 #define $ac_tr_func 1
8379 else
8380 echo "$ac_t""no" 1>&6
8382 done
8385 esac
8388 # this bit needs to be modified for each OS that is suported by
8389 # smbwrapper. You need to specify how to created a shared library and
8390 # how to compile C code to produce PIC object files
8392 # these are the defaults, good for lots of systems
8393 HOST_OS="$host_os"
8394 LDSHFLAGS="-shared"
8395 PICFLAG=""
8396 SHLIBEXT="so"
8398 # and these are for particular systems
8399 case "$host_os" in
8400 *linux*) cat >> confdefs.h <<\EOF
8401 #define LINUX 1
8404 *solaris*) cat >> confdefs.h <<\EOF
8405 #define SUNOS5 1
8408 LDSHFLAGS="-G"
8410 *sunos*) cat >> confdefs.h <<\EOF
8411 #define SUNOS4 1
8414 LDSHFLAGS=""
8416 *bsd*) LDSHFLAGS="-shared -Bshareable"
8418 *irix*) cat >> confdefs.h <<\EOF
8419 #define IRIX 1
8422 case "$host_os" in
8423 *irix6*) cat >> confdefs.h <<\EOF
8424 #define IRIX6 1
8428 esac
8429 ATTEMPT_WRAP32_BUILD=yes
8431 *aix*) cat >> confdefs.h <<\EOF
8432 #define AIX 1
8435 *hpux*) cat >> confdefs.h <<\EOF
8436 #define HPUX 1
8439 SHLIBEXT="sl"
8440 # Use special PIC flags for the native HP-UX compiler.
8441 if test $ac_cv_prog_cc_Ae = yes; then
8442 LDSHFLAGS="-b"
8443 PICFLAG="+z"
8446 *qnx*) cat >> confdefs.h <<\EOF
8447 #define QNX 1
8450 *osf*) cat >> confdefs.h <<\EOF
8451 #define OSF1 1
8454 *sco*) cat >> confdefs.h <<\EOF
8455 #define SCO 1
8458 *next2*) cat >> confdefs.h <<\EOF
8459 #define NEXT2 1
8462 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8463 set dummy groff; ac_word=$2
8464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8465 echo "configure:8466: checking for $ac_word" >&5
8466 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8468 else
8469 if test -n "$ROFF"; then
8470 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8471 else
8472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8473 ac_dummy="$PATH"
8474 for ac_dir in $ac_dummy; do
8475 test -z "$ac_dir" && ac_dir=.
8476 if test -f $ac_dir/$ac_word; then
8477 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8478 break
8480 done
8481 IFS="$ac_save_ifs"
8484 ROFF="$ac_cv_prog_ROFF"
8485 if test -n "$ROFF"; then
8486 echo "$ac_t""$ROFF" 1>&6
8487 else
8488 echo "$ac_t""no" 1>&6
8491 *sysv4*)
8492 case "$host" in
8493 *-univel-*) if test "$GCC" != yes ; then
8494 cat >> confdefs.h <<\EOF
8495 #define HAVE_MEMSET 1
8499 LDSHFLAGS="-G"
8501 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8502 #define RELIANTUNIX 1
8505 esac
8507 *sysv5*)
8508 if test "$GCC" != yes ; then
8509 cat >> confdefs.h <<\EOF
8510 #define HAVE_MEMSET 1
8514 LDSHFLAGS="-G"
8516 esac
8518 # try to work out how to produce pic code with this compiler
8519 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8520 echo "configure:8521: checking whether ${CC-cc} accepts -fpic" >&5
8521 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8523 else
8524 echo 'void f(){}' > conftest.c
8525 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8526 ac_cv_prog_cc_fpic=yes
8527 else
8528 ac_cv_prog_cc_fpic=no
8530 rm -f conftest*
8534 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8535 if test $ac_cv_prog_cc_fpic = yes; then
8536 PICFLAG="-fpic";
8538 if test x$PICFLAG = x; then
8539 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8540 echo "configure:8541: checking whether ${CC-cc} accepts -KPIC" >&5
8541 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8543 else
8544 echo 'void f(){}' > conftest.c
8545 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8546 ac_cv_prog_cc_KPIC=yes
8547 else
8548 ac_cv_prog_cc_KPIC=no
8550 rm -f conftest*
8554 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8555 if test $ac_cv_prog_cc_KPIC = yes; then
8556 PICFLAG="-KPIC";
8559 if test x$PICFLAG = x; then
8560 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8561 echo "configure:8562: checking whether ${CC-cc} accepts -Kpic" >&5
8562 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8563 echo $ac_n "(cached) $ac_c" 1>&6
8564 else
8565 echo 'void f(){}' > conftest.c
8566 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8567 ac_cv_prog_cc_Kpic=yes
8568 else
8569 ac_cv_prog_cc_Kpic=no
8571 rm -f conftest*
8575 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8576 if test $ac_cv_prog_cc_Kpic = yes; then
8577 PICFLAG="-Kpic";
8581 ################
8583 echo $ac_n "checking for long long""... $ac_c" 1>&6
8584 echo "configure:8585: checking for long long" >&5
8585 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8587 else
8589 if test "$cross_compiling" = yes; then
8590 samba_cv_have_longlong=cross
8591 else
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 #include <stdio.h>
8596 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8598 if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8599 then
8600 samba_cv_have_longlong=yes
8601 else
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 rm -fr conftest*
8605 samba_cv_have_longlong=no
8607 rm -fr conftest*
8612 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8613 if test x"$samba_cv_have_longlong" = x"yes"; then
8614 cat >> confdefs.h <<\EOF
8615 #define HAVE_LONGLONG 1
8621 # Check if the compiler supports the LL prefix on long long integers.
8622 # AIX needs this.
8624 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8625 echo "configure:8626: checking for LL suffix on long long integers" >&5
8626 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8628 else
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 #include <stdio.h>
8634 int main() {
8635 long long i = 0x8000000000LL
8636 ; return 0; }
8638 if { (eval echo configure:8639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8639 rm -rf conftest*
8640 samba_cv_compiler_supports_ll=yes
8641 else
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8644 rm -rf conftest*
8645 samba_cv_compiler_supports_ll=no
8647 rm -f conftest*
8650 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8651 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8652 cat >> confdefs.h <<\EOF
8653 #define COMPILER_SUPPORTS_LL 1
8659 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8660 echo "configure:8661: checking for 64 bit off_t" >&5
8661 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8663 else
8665 if test "$cross_compiling" = yes; then
8666 samba_cv_SIZEOF_OFF_T=cross
8667 else
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8671 #include <stdio.h>
8672 #include <sys/stat.h>
8673 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8676 then
8677 samba_cv_SIZEOF_OFF_T=yes
8678 else
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 rm -fr conftest*
8682 samba_cv_SIZEOF_OFF_T=no
8684 rm -fr conftest*
8689 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8690 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8691 cat >> confdefs.h <<\EOF
8692 #define SIZEOF_OFF_T 8
8697 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8698 echo "configure:8699: checking for off64_t" >&5
8699 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8700 echo $ac_n "(cached) $ac_c" 1>&6
8701 else
8703 if test "$cross_compiling" = yes; then
8704 samba_cv_HAVE_OFF64_T=cross
8705 else
8706 cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8710 #if defined(HAVE_UNISTD_H)
8711 #include <unistd.h>
8712 #endif
8713 #include <stdio.h>
8714 #include <sys/stat.h>
8715 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8717 if { (eval echo configure:8718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8718 then
8719 samba_cv_HAVE_OFF64_T=yes
8720 else
8721 echo "configure: failed program was:" >&5
8722 cat conftest.$ac_ext >&5
8723 rm -fr conftest*
8724 samba_cv_HAVE_OFF64_T=no
8726 rm -fr conftest*
8731 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8732 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8733 cat >> confdefs.h <<\EOF
8734 #define HAVE_OFF64_T 1
8739 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8740 echo "configure:8741: checking for 64 bit ino_t" >&5
8741 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8743 else
8745 if test "$cross_compiling" = yes; then
8746 samba_cv_SIZEOF_INO_T=cross
8747 else
8748 cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8751 #include <stdio.h>
8752 #include <sys/stat.h>
8753 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8756 then
8757 samba_cv_SIZEOF_INO_T=yes
8758 else
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 rm -fr conftest*
8762 samba_cv_SIZEOF_INO_T=no
8764 rm -fr conftest*
8769 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8770 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8771 cat >> confdefs.h <<\EOF
8772 #define SIZEOF_INO_T 8
8777 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8778 echo "configure:8779: checking for ino64_t" >&5
8779 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8781 else
8783 if test "$cross_compiling" = yes; then
8784 samba_cv_HAVE_INO64_T=cross
8785 else
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8790 #if defined(HAVE_UNISTD_H)
8791 #include <unistd.h>
8792 #endif
8793 #include <stdio.h>
8794 #include <sys/stat.h>
8795 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8797 if { (eval echo configure:8798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8798 then
8799 samba_cv_HAVE_INO64_T=yes
8800 else
8801 echo "configure: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8803 rm -fr conftest*
8804 samba_cv_HAVE_INO64_T=no
8806 rm -fr conftest*
8811 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8812 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8813 cat >> confdefs.h <<\EOF
8814 #define HAVE_INO64_T 1
8819 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8820 echo "configure:8821: checking for struct dirent64" >&5
8821 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8823 else
8825 cat > conftest.$ac_ext <<EOF
8826 #line 8827 "configure"
8827 #include "confdefs.h"
8829 #if defined(HAVE_UNISTD_H)
8830 #include <unistd.h>
8831 #endif
8832 #include <sys/types.h>
8833 #include <dirent.h>
8834 int main() {
8835 struct dirent64 de;
8836 ; return 0; }
8838 if { (eval echo configure:8839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8839 rm -rf conftest*
8840 samba_cv_HAVE_STRUCT_DIRENT64=yes
8841 else
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 rm -rf conftest*
8845 samba_cv_HAVE_STRUCT_DIRENT64=no
8847 rm -f conftest*
8850 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8851 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8852 cat >> confdefs.h <<\EOF
8853 #define HAVE_STRUCT_DIRENT64 1
8858 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8859 echo "configure:8860: checking for unsigned char" >&5
8860 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8861 echo $ac_n "(cached) $ac_c" 1>&6
8862 else
8864 if test "$cross_compiling" = yes; then
8865 samba_cv_HAVE_UNSIGNED_CHAR=cross
8866 else
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 #include <stdio.h>
8871 main() { char c; c=250; exit((c > 0)?0:1); }
8873 if { (eval echo configure:8874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8874 then
8875 samba_cv_HAVE_UNSIGNED_CHAR=yes
8876 else
8877 echo "configure: failed program was:" >&5
8878 cat conftest.$ac_ext >&5
8879 rm -fr conftest*
8880 samba_cv_HAVE_UNSIGNED_CHAR=no
8882 rm -fr conftest*
8887 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8888 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8889 cat >> confdefs.h <<\EOF
8890 #define HAVE_UNSIGNED_CHAR 1
8895 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8896 echo "configure:8897: checking for sin_len in sock" >&5
8897 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8899 else
8901 cat > conftest.$ac_ext <<EOF
8902 #line 8903 "configure"
8903 #include "confdefs.h"
8904 #include <sys/types.h>
8905 #include <sys/socket.h>
8906 #include <netinet/in.h>
8907 int main() {
8908 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8909 ; return 0; }
8911 if { (eval echo configure:8912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8912 rm -rf conftest*
8913 samba_cv_HAVE_SOCK_SIN_LEN=yes
8914 else
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8917 rm -rf conftest*
8918 samba_cv_HAVE_SOCK_SIN_LEN=no
8920 rm -f conftest*
8923 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8924 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8925 cat >> confdefs.h <<\EOF
8926 #define HAVE_SOCK_SIN_LEN 1
8931 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8932 echo "configure:8933: checking whether seekdir returns void" >&5
8933 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8935 else
8937 cat > conftest.$ac_ext <<EOF
8938 #line 8939 "configure"
8939 #include "confdefs.h"
8940 #include <sys/types.h>
8941 #include <dirent.h>
8942 void seekdir(DIR *d, long loc) { return; }
8943 int main() {
8944 return 0;
8945 ; return 0; }
8947 if { (eval echo configure:8948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8948 rm -rf conftest*
8949 samba_cv_SEEKDIR_RETURNS_VOID=yes
8950 else
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8953 rm -rf conftest*
8954 samba_cv_SEEKDIR_RETURNS_VOID=no
8956 rm -f conftest*
8959 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8960 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8961 cat >> confdefs.h <<\EOF
8962 #define SEEKDIR_RETURNS_VOID 1
8967 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8968 echo "configure:8969: checking for __FILE__ macro" >&5
8969 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8970 echo $ac_n "(cached) $ac_c" 1>&6
8971 else
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 #include <stdio.h>
8977 int main() {
8978 printf("%s\n", __FILE__);
8979 ; return 0; }
8981 if { (eval echo configure:8982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8982 rm -rf conftest*
8983 samba_cv_HAVE_FILE_MACRO=yes
8984 else
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8987 rm -rf conftest*
8988 samba_cv_HAVE_FILE_MACRO=no
8990 rm -f conftest*
8993 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8994 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8995 cat >> confdefs.h <<\EOF
8996 #define HAVE_FILE_MACRO 1
9001 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9002 echo "configure:9003: checking for __FUNCTION__ macro" >&5
9003 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9004 echo $ac_n "(cached) $ac_c" 1>&6
9005 else
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 #include <stdio.h>
9011 int main() {
9012 printf("%s\n", __FUNCTION__);
9013 ; return 0; }
9015 if { (eval echo configure:9016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9016 rm -rf conftest*
9017 samba_cv_HAVE_FUNCTION_MACRO=yes
9018 else
9019 echo "configure: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9021 rm -rf conftest*
9022 samba_cv_HAVE_FUNCTION_MACRO=no
9024 rm -f conftest*
9027 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9028 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9029 cat >> confdefs.h <<\EOF
9030 #define HAVE_FUNCTION_MACRO 1
9035 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9036 echo "configure:9037: checking if gettimeofday takes tz argument" >&5
9037 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9039 else
9041 if test "$cross_compiling" = yes; then
9042 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9043 else
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9048 #include <sys/time.h>
9049 #include <unistd.h>
9050 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9053 then
9054 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9055 else
9056 echo "configure: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9058 rm -fr conftest*
9059 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9061 rm -fr conftest*
9066 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9067 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9068 cat >> confdefs.h <<\EOF
9069 #define HAVE_GETTIMEOFDAY_TZ 1
9075 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9076 echo "configure:9077: checking for broken readdir" >&5
9077 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9078 echo $ac_n "(cached) $ac_c" 1>&6
9079 else
9081 if test "$cross_compiling" = yes; then
9082 samba_cv_HAVE_BROKEN_READDIR=cross
9083 else
9084 cat > conftest.$ac_ext <<EOF
9085 #line 9086 "configure"
9086 #include "confdefs.h"
9087 #include <sys/types.h>
9088 #include <dirent.h>
9089 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9090 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9091 di->d_name[0] == 0) exit(0); exit(1);}
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9094 then
9095 samba_cv_HAVE_BROKEN_READDIR=yes
9096 else
9097 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9099 rm -fr conftest*
9100 samba_cv_HAVE_BROKEN_READDIR=no
9102 rm -fr conftest*
9107 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9108 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9109 cat >> confdefs.h <<\EOF
9110 #define HAVE_BROKEN_READDIR 1
9115 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9116 echo "configure:9117: checking for utimbuf" >&5
9117 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9119 else
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 #include <sys/types.h>
9125 #include <utime.h>
9126 int main() {
9127 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9128 ; return 0; }
9130 if { (eval echo configure:9131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9131 rm -rf conftest*
9132 samba_cv_HAVE_UTIMBUF=yes
9133 else
9134 echo "configure: failed program was:" >&5
9135 cat conftest.$ac_ext >&5
9136 rm -rf conftest*
9137 samba_cv_HAVE_UTIMBUF=no
9139 rm -f conftest*
9142 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9143 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9144 cat >> confdefs.h <<\EOF
9145 #define HAVE_UTIMBUF 1
9151 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9154 echo "configure:9155: checking for $ac_func" >&5
9155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
9157 else
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9161 /* System header to define __stub macros and hopefully few prototypes,
9162 which can conflict with char $ac_func(); below. */
9163 #include <assert.h>
9164 /* Override any gcc2 internal prototype to avoid an error. */
9165 /* We use char because int might match the return type of a gcc2
9166 builtin and then its argument prototype would still apply. */
9167 char $ac_func();
9169 int main() {
9171 /* The GNU C library defines this for functions which it implements
9172 to always fail with ENOSYS. Some functions are actually named
9173 something starting with __ and the normal name is an alias. */
9174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9175 choke me
9176 #else
9177 $ac_func();
9178 #endif
9180 ; return 0; }
9182 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9183 rm -rf conftest*
9184 eval "ac_cv_func_$ac_func=yes"
9185 else
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9188 rm -rf conftest*
9189 eval "ac_cv_func_$ac_func=no"
9191 rm -f conftest*
9194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9195 echo "$ac_t""yes" 1>&6
9196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9197 cat >> confdefs.h <<EOF
9198 #define $ac_tr_func 1
9201 else
9202 echo "$ac_t""no" 1>&6
9204 done
9207 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9208 echo "configure:9209: checking for ut_name in utmp" >&5
9209 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9210 echo $ac_n "(cached) $ac_c" 1>&6
9211 else
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 #include <sys/types.h>
9217 #include <utmp.h>
9218 int main() {
9219 struct utmp ut; ut.ut_name[0] = 'a';
9220 ; return 0; }
9222 if { (eval echo configure:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9223 rm -rf conftest*
9224 samba_cv_HAVE_UT_UT_NAME=yes
9225 else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -rf conftest*
9229 samba_cv_HAVE_UT_UT_NAME=no
9231 rm -f conftest*
9234 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9235 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9236 cat >> confdefs.h <<\EOF
9237 #define HAVE_UT_UT_NAME 1
9242 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9243 echo "configure:9244: checking for ut_user in utmp" >&5
9244 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9245 echo $ac_n "(cached) $ac_c" 1>&6
9246 else
9248 cat > conftest.$ac_ext <<EOF
9249 #line 9250 "configure"
9250 #include "confdefs.h"
9251 #include <sys/types.h>
9252 #include <utmp.h>
9253 int main() {
9254 struct utmp ut; ut.ut_user[0] = 'a';
9255 ; return 0; }
9257 if { (eval echo configure:9258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9258 rm -rf conftest*
9259 samba_cv_HAVE_UT_UT_USER=yes
9260 else
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9263 rm -rf conftest*
9264 samba_cv_HAVE_UT_UT_USER=no
9266 rm -f conftest*
9269 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9270 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9271 cat >> confdefs.h <<\EOF
9272 #define HAVE_UT_UT_USER 1
9277 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9278 echo "configure:9279: checking for ut_id in utmp" >&5
9279 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281 else
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <sys/types.h>
9287 #include <utmp.h>
9288 int main() {
9289 struct utmp ut; ut.ut_id[0] = 'a';
9290 ; return 0; }
9292 if { (eval echo configure:9293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9293 rm -rf conftest*
9294 samba_cv_HAVE_UT_UT_ID=yes
9295 else
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298 rm -rf conftest*
9299 samba_cv_HAVE_UT_UT_ID=no
9301 rm -f conftest*
9304 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9305 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9306 cat >> confdefs.h <<\EOF
9307 #define HAVE_UT_UT_ID 1
9312 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9313 echo "configure:9314: checking for ut_host in utmp" >&5
9314 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9318 cat > conftest.$ac_ext <<EOF
9319 #line 9320 "configure"
9320 #include "confdefs.h"
9321 #include <sys/types.h>
9322 #include <utmp.h>
9323 int main() {
9324 struct utmp ut; ut.ut_host[0] = 'a';
9325 ; return 0; }
9327 if { (eval echo configure:9328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9328 rm -rf conftest*
9329 samba_cv_HAVE_UT_UT_HOST=yes
9330 else
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9333 rm -rf conftest*
9334 samba_cv_HAVE_UT_UT_HOST=no
9336 rm -f conftest*
9339 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9340 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9341 cat >> confdefs.h <<\EOF
9342 #define HAVE_UT_UT_HOST 1
9347 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9348 echo "configure:9349: checking for ut_time in utmp" >&5
9349 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9351 else
9353 cat > conftest.$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9356 #include <sys/types.h>
9357 #include <utmp.h>
9358 int main() {
9359 struct utmp ut; time_t t; ut.ut_time = t;
9360 ; return 0; }
9362 if { (eval echo configure:9363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9363 rm -rf conftest*
9364 samba_cv_HAVE_UT_UT_TIME=yes
9365 else
9366 echo "configure: failed program was:" >&5
9367 cat conftest.$ac_ext >&5
9368 rm -rf conftest*
9369 samba_cv_HAVE_UT_UT_TIME=no
9371 rm -f conftest*
9374 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9375 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9376 cat >> confdefs.h <<\EOF
9377 #define HAVE_UT_UT_TIME 1
9382 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9383 echo "configure:9384: checking for ut_tv in utmp" >&5
9384 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9386 else
9388 cat > conftest.$ac_ext <<EOF
9389 #line 9390 "configure"
9390 #include "confdefs.h"
9391 #include <sys/types.h>
9392 #include <utmp.h>
9393 int main() {
9394 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9395 ; return 0; }
9397 if { (eval echo configure:9398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9398 rm -rf conftest*
9399 samba_cv_HAVE_UT_UT_TV=yes
9400 else
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9403 rm -rf conftest*
9404 samba_cv_HAVE_UT_UT_TV=no
9406 rm -f conftest*
9409 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9410 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9411 cat >> confdefs.h <<\EOF
9412 #define HAVE_UT_UT_TV 1
9417 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9418 echo "configure:9419: checking for ut_type in utmp" >&5
9419 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9421 else
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9426 #include <sys/types.h>
9427 #include <utmp.h>
9428 int main() {
9429 struct utmp ut; ut.ut_type = 0;
9430 ; return 0; }
9432 if { (eval echo configure:9433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9433 rm -rf conftest*
9434 samba_cv_HAVE_UT_UT_TYPE=yes
9435 else
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9438 rm -rf conftest*
9439 samba_cv_HAVE_UT_UT_TYPE=no
9441 rm -f conftest*
9444 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9445 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9446 cat >> confdefs.h <<\EOF
9447 #define HAVE_UT_UT_TYPE 1
9452 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9453 echo "configure:9454: checking for ut_pid in utmp" >&5
9454 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9456 else
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 #include <sys/types.h>
9462 #include <utmp.h>
9463 int main() {
9464 struct utmp ut; ut.ut_pid = 0;
9465 ; return 0; }
9467 if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468 rm -rf conftest*
9469 samba_cv_HAVE_UT_UT_PID=yes
9470 else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -rf conftest*
9474 samba_cv_HAVE_UT_UT_PID=no
9476 rm -f conftest*
9479 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9480 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9481 cat >> confdefs.h <<\EOF
9482 #define HAVE_UT_UT_PID 1
9487 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9488 echo "configure:9489: checking for ut_exit in utmp" >&5
9489 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9491 else
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 #include <sys/types.h>
9497 #include <utmp.h>
9498 int main() {
9499 struct utmp ut; ut.ut_exit.e_exit = 0;
9500 ; return 0; }
9502 if { (eval echo configure:9503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9503 rm -rf conftest*
9504 samba_cv_HAVE_UT_UT_EXIT=yes
9505 else
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9508 rm -rf conftest*
9509 samba_cv_HAVE_UT_UT_EXIT=no
9511 rm -f conftest*
9514 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9515 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9516 cat >> confdefs.h <<\EOF
9517 #define HAVE_UT_UT_EXIT 1
9522 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9523 echo "configure:9524: checking for ut_addr in utmp" >&5
9524 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9526 else
9528 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 #include <sys/types.h>
9532 #include <utmp.h>
9533 int main() {
9534 struct utmp ut; ut.ut_addr = 0;
9535 ; return 0; }
9537 if { (eval echo configure:9538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9538 rm -rf conftest*
9539 samba_cv_HAVE_UT_UT_ADDR=yes
9540 else
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 rm -rf conftest*
9544 samba_cv_HAVE_UT_UT_ADDR=no
9546 rm -f conftest*
9549 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9550 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9551 cat >> confdefs.h <<\EOF
9552 #define HAVE_UT_UT_ADDR 1
9557 if test x$ac_cv_func_pututline = xyes ; then
9558 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9559 echo "configure:9560: checking whether pututline returns pointer" >&5
9560 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9561 echo $ac_n "(cached) $ac_c" 1>&6
9562 else
9564 cat > conftest.$ac_ext <<EOF
9565 #line 9566 "configure"
9566 #include "confdefs.h"
9567 #include <sys/types.h>
9568 #include <utmp.h>
9569 int main() {
9570 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9571 ; return 0; }
9573 if { (eval echo configure:9574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9574 rm -rf conftest*
9575 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9576 else
9577 echo "configure: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 rm -rf conftest*
9580 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9582 rm -f conftest*
9585 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9586 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9587 cat >> confdefs.h <<\EOF
9588 #define PUTUTLINE_RETURNS_UTMP 1
9594 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9595 echo "configure:9596: checking for ut_syslen in utmpx" >&5
9596 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9598 else
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 #include <sys/types.h>
9604 #include <utmpx.h>
9605 int main() {
9606 struct utmpx ux; ux.ut_syslen = 0;
9607 ; return 0; }
9609 if { (eval echo configure:9610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9610 rm -rf conftest*
9611 samba_cv_HAVE_UX_UT_SYSLEN=yes
9612 else
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9615 rm -rf conftest*
9616 samba_cv_HAVE_UX_UT_SYSLEN=no
9618 rm -f conftest*
9621 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9622 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9623 cat >> confdefs.h <<\EOF
9624 #define HAVE_UX_UT_SYSLEN 1
9629 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9630 echo "configure:9631: checking for Linux kernel oplocks" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9633 else
9635 if test "$cross_compiling" = yes; then
9636 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9637 else
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9642 #include <sys/types.h>
9643 #include <fcntl.h>
9644 #ifndef F_GETLEASE
9645 #define F_GETLEASE 1025
9646 #endif
9647 main() {
9648 int fd = open("/dev/null", O_RDONLY);
9649 return fcntl(fd, F_GETLEASE, 0) == -1;
9653 if { (eval echo configure:9654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9654 then
9655 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9656 else
9657 echo "configure: failed program was:" >&5
9658 cat conftest.$ac_ext >&5
9659 rm -fr conftest*
9660 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9662 rm -fr conftest*
9667 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9668 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9669 cat >> confdefs.h <<\EOF
9670 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9675 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9676 echo "configure:9677: checking for kernel change notify support" >&5
9677 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9678 echo $ac_n "(cached) $ac_c" 1>&6
9679 else
9681 if test "$cross_compiling" = yes; then
9682 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9683 else
9684 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9688 #include <sys/types.h>
9689 #include <fcntl.h>
9690 #include <signal.h>
9691 #ifndef F_NOTIFY
9692 #define F_NOTIFY 1026
9693 #endif
9694 main() {
9695 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9699 if { (eval echo configure:9700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9700 then
9701 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9702 else
9703 echo "configure: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 rm -fr conftest*
9706 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9708 rm -fr conftest*
9713 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9714 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9715 cat >> confdefs.h <<\EOF
9716 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9721 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9722 echo "configure:9723: checking for kernel share modes" >&5
9723 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9724 echo $ac_n "(cached) $ac_c" 1>&6
9725 else
9727 if test "$cross_compiling" = yes; then
9728 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9729 else
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9734 #include <sys/types.h>
9735 #include <fcntl.h>
9736 #include <signal.h>
9737 #include <sys/file.h>
9738 #ifndef LOCK_MAND
9739 #define LOCK_MAND 32
9740 #define LOCK_READ 64
9741 #endif
9742 main() {
9743 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9747 if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9748 then
9749 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9750 else
9751 echo "configure: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9753 rm -fr conftest*
9754 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9756 rm -fr conftest*
9761 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9762 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9763 cat >> confdefs.h <<\EOF
9764 #define HAVE_KERNEL_SHARE_MODES 1
9772 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9773 echo "configure:9774: checking for IRIX kernel oplock type definitions" >&5
9774 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
9776 else
9778 cat > conftest.$ac_ext <<EOF
9779 #line 9780 "configure"
9780 #include "confdefs.h"
9781 #include <sys/types.h>
9782 #include <fcntl.h>
9783 int main() {
9784 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9785 ; return 0; }
9787 if { (eval echo configure:9788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9788 rm -rf conftest*
9789 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9790 else
9791 echo "configure: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 rm -rf conftest*
9794 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9796 rm -f conftest*
9799 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9800 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9801 cat >> confdefs.h <<\EOF
9802 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9807 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9808 echo "configure:9809: checking for irix specific capabilities" >&5
9809 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9810 echo $ac_n "(cached) $ac_c" 1>&6
9811 else
9813 if test "$cross_compiling" = yes; then
9814 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9815 else
9816 cat > conftest.$ac_ext <<EOF
9817 #line 9818 "configure"
9818 #include "confdefs.h"
9819 #include <sys/types.h>
9820 #include <sys/capability.h>
9821 main() {
9822 cap_t cap;
9823 if ((cap = cap_get_proc()) == NULL)
9824 exit(1);
9825 cap->cap_effective |= CAP_NETWORK_MGT;
9826 cap->cap_inheritable |= CAP_NETWORK_MGT;
9827 cap_set_proc(cap);
9828 exit(0);
9832 if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9833 then
9834 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9835 else
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9838 rm -fr conftest*
9839 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9841 rm -fr conftest*
9846 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9847 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9848 cat >> confdefs.h <<\EOF
9849 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9855 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9856 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9859 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9860 echo "configure:9861: checking for int16 typedef included by rpc/rpc.h" >&5
9861 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9862 echo $ac_n "(cached) $ac_c" 1>&6
9863 else
9865 cat > conftest.$ac_ext <<EOF
9866 #line 9867 "configure"
9867 #include "confdefs.h"
9868 #include <sys/types.h>
9869 #if defined(HAVE_RPC_RPC_H)
9870 #include <rpc/rpc.h>
9871 #endif
9872 int main() {
9873 int16 testvar;
9874 ; return 0; }
9876 if { (eval echo configure:9877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9877 rm -rf conftest*
9878 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9879 else
9880 echo "configure: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9882 rm -rf conftest*
9883 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9885 rm -f conftest*
9888 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9889 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9890 cat >> confdefs.h <<\EOF
9891 #define HAVE_INT16_FROM_RPC_RPC_H 1
9896 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9897 echo "configure:9898: checking for uint16 typedef included by rpc/rpc.h" >&5
9898 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9899 echo $ac_n "(cached) $ac_c" 1>&6
9900 else
9902 cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure"
9904 #include "confdefs.h"
9905 #include <sys/types.h>
9906 #if defined(HAVE_RPC_RPC_H)
9907 #include <rpc/rpc.h>
9908 #endif
9909 int main() {
9910 uint16 testvar;
9911 ; return 0; }
9913 if { (eval echo configure:9914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9914 rm -rf conftest*
9915 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9916 else
9917 echo "configure: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 rm -rf conftest*
9920 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9922 rm -f conftest*
9925 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9926 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9927 cat >> confdefs.h <<\EOF
9928 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9933 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9934 echo "configure:9935: checking for int32 typedef included by rpc/rpc.h" >&5
9935 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9937 else
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 #include <sys/types.h>
9943 #if defined(HAVE_RPC_RPC_H)
9944 #include <rpc/rpc.h>
9945 #endif
9946 int main() {
9947 int32 testvar;
9948 ; return 0; }
9950 if { (eval echo configure:9951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9951 rm -rf conftest*
9952 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9953 else
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 rm -rf conftest*
9957 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9959 rm -f conftest*
9962 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9963 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9964 cat >> confdefs.h <<\EOF
9965 #define HAVE_INT32_FROM_RPC_RPC_H 1
9970 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9971 echo "configure:9972: checking for uint32 typedef included by rpc/rpc.h" >&5
9972 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974 else
9976 cat > conftest.$ac_ext <<EOF
9977 #line 9978 "configure"
9978 #include "confdefs.h"
9979 #include <sys/types.h>
9980 #if defined(HAVE_RPC_RPC_H)
9981 #include <rpc/rpc.h>
9982 #endif
9983 int main() {
9984 uint32 testvar;
9985 ; return 0; }
9987 if { (eval echo configure:9988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9988 rm -rf conftest*
9989 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9990 else
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9993 rm -rf conftest*
9994 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9996 rm -f conftest*
9999 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10000 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10001 cat >> confdefs.h <<\EOF
10002 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10008 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10009 echo "configure:10010: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10010 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012 else
10014 cat > conftest.$ac_ext <<EOF
10015 #line 10016 "configure"
10016 #include "confdefs.h"
10017 #include <sys/types.h>
10018 #ifdef HAVE_SYS_SECURITY_H
10019 #include <sys/security.h>
10020 #include <prot.h>
10021 #endif /* HAVE_SYS_SECURITY_H */
10022 #if defined(HAVE_RPC_RPC_H)
10023 #include <rpc/rpc.h>
10024 #endif
10025 int main() {
10026 int testvar;
10027 ; return 0; }
10029 if { (eval echo configure:10030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10030 rm -rf conftest*
10031 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10032 else
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 rm -rf conftest*
10036 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10038 rm -f conftest*
10041 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10042 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10043 cat >> confdefs.h <<\EOF
10044 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10049 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10050 echo "configure:10051: checking for test routines" >&5
10051 if test "$cross_compiling" = yes; then
10052 echo "configure: warning: cannot run when cross-compiling" 1>&2
10053 else
10054 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 #include "${srcdir-.}/tests/trivial.c"
10059 if { (eval echo configure:10060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10060 then
10061 echo "$ac_t""yes" 1>&6
10062 else
10063 echo "configure: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10065 rm -fr conftest*
10066 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10068 rm -fr conftest*
10072 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10073 echo "configure:10074: checking for ftruncate extend" >&5
10074 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10075 echo $ac_n "(cached) $ac_c" 1>&6
10076 else
10078 if test "$cross_compiling" = yes; then
10079 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10080 else
10081 cat > conftest.$ac_ext <<EOF
10082 #line 10083 "configure"
10083 #include "confdefs.h"
10084 #include "${srcdir-.}/tests/ftruncate.c"
10086 if { (eval echo configure:10087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10087 then
10088 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10089 else
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 rm -fr conftest*
10093 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10095 rm -fr conftest*
10100 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10101 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10102 cat >> confdefs.h <<\EOF
10103 #define HAVE_FTRUNCATE_EXTEND 1
10108 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10109 echo "configure:10110: checking for broken getgroups" >&5
10110 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10112 else
10114 if test "$cross_compiling" = yes; then
10115 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10116 else
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120 #include "${srcdir-.}/tests/getgroups.c"
10122 if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10123 then
10124 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10125 else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -fr conftest*
10129 samba_cv_HAVE_BROKEN_GETGROUPS=no
10131 rm -fr conftest*
10136 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10137 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10138 cat >> confdefs.h <<\EOF
10139 #define HAVE_BROKEN_GETGROUPS 1
10144 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10145 echo "configure:10146: checking whether getpass should be replaced" >&5
10146 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10148 else
10150 SAVE_CPPFLAGS="$CPPFLAGS"
10151 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10156 #define REPLACE_GETPASS 1
10157 #define NO_CONFIG_H 1
10158 #define main dont_declare_main
10159 #include "${srcdir-.}/lib/getsmbpass.c"
10160 #undef main
10162 int main() {
10164 ; return 0; }
10166 if { (eval echo configure:10167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10167 rm -rf conftest*
10168 samba_cv_REPLACE_GETPASS=yes
10169 else
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10172 rm -rf conftest*
10173 samba_cv_REPLACE_GETPASS=no
10175 rm -f conftest*
10176 CPPFLAGS="$SAVE_CPPFLAGS"
10180 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10181 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10182 cat >> confdefs.h <<\EOF
10183 #define REPLACE_GETPASS 1
10188 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10189 echo "configure:10190: checking for broken inet_ntoa" >&5
10190 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10192 else
10194 if test "$cross_compiling" = yes; then
10195 samba_cv_REPLACE_INET_NTOA=cross
10196 else
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10201 #include <stdio.h>
10202 #include <sys/types.h>
10203 #include <netinet/in.h>
10204 #ifdef HAVE_ARPA_INET_H
10205 #include <arpa/inet.h>
10206 #endif
10207 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10208 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10209 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10210 exit(1);}
10212 if { (eval echo configure:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10213 then
10214 samba_cv_REPLACE_INET_NTOA=yes
10215 else
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10218 rm -fr conftest*
10219 samba_cv_REPLACE_INET_NTOA=no
10221 rm -fr conftest*
10226 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10227 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10228 cat >> confdefs.h <<\EOF
10229 #define REPLACE_INET_NTOA 1
10234 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10235 echo "configure:10236: checking for secure mkstemp" >&5
10236 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10238 else
10240 if test "$cross_compiling" = yes; then
10241 samba_cv_HAVE_SECURE_MKSTEMP=cross
10242 else
10243 cat > conftest.$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include <stdlib.h>
10247 #include <sys/types.h>
10248 #include <sys/stat.h>
10249 #include <unistd.h>
10250 main() {
10251 struct stat st;
10252 char tpl[20]="/tmp/test.XXXXXX";
10253 int fd = mkstemp(tpl);
10254 if (fd == -1) exit(1);
10255 unlink(tpl);
10256 if (fstat(fd, &st) != 0) exit(1);
10257 if ((st.st_mode & 0777) != 0600) exit(1);
10258 exit(0);
10261 if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10262 then
10263 samba_cv_HAVE_SECURE_MKSTEMP=yes
10264 else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -fr conftest*
10268 samba_cv_HAVE_SECURE_MKSTEMP=no
10270 rm -fr conftest*
10275 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10276 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10277 cat >> confdefs.h <<\EOF
10278 #define HAVE_SECURE_MKSTEMP 1
10283 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10284 echo "configure:10285: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10285 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10287 else
10289 if test "$cross_compiling" = yes; then
10290 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10291 else
10292 cat > conftest.$ac_ext <<EOF
10293 #line 10294 "configure"
10294 #include "confdefs.h"
10295 #include <unistd.h>
10296 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10298 if { (eval echo configure:10299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10299 then
10300 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10301 else
10302 echo "configure: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10304 rm -fr conftest*
10305 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10307 rm -fr conftest*
10312 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10313 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10314 cat >> confdefs.h <<\EOF
10315 #define SYSCONF_SC_NGROUPS_MAX 1
10320 echo $ac_n "checking for root""... $ac_c" 1>&6
10321 echo "configure:10322: checking for root" >&5
10322 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10323 echo $ac_n "(cached) $ac_c" 1>&6
10324 else
10326 if test "$cross_compiling" = yes; then
10327 samba_cv_HAVE_ROOT=cross
10328 else
10329 cat > conftest.$ac_ext <<EOF
10330 #line 10331 "configure"
10331 #include "confdefs.h"
10332 main() { exit(getuid() != 0); }
10334 if { (eval echo configure:10335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10335 then
10336 samba_cv_HAVE_ROOT=yes
10337 else
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10340 rm -fr conftest*
10341 samba_cv_HAVE_ROOT=no
10343 rm -fr conftest*
10348 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10349 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10350 cat >> confdefs.h <<\EOF
10351 #define HAVE_ROOT 1
10354 else
10355 echo "configure: warning: running as non-root will disable some tests" 1>&2
10358 ##################
10359 # look for a method of finding the list of network interfaces
10360 iface=no;
10361 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10362 echo "configure:10363: checking for iface AIX" >&5
10363 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10364 echo $ac_n "(cached) $ac_c" 1>&6
10365 else
10367 if test "$cross_compiling" = yes; then
10368 samba_cv_HAVE_IFACE_AIX=cross
10369 else
10370 cat > conftest.$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10374 #define HAVE_IFACE_AIX 1
10375 #define AUTOCONF_TEST 1
10376 #include "confdefs.h"
10377 #include "${srcdir-.}/lib/interfaces.c"
10379 if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10380 then
10381 samba_cv_HAVE_IFACE_AIX=yes
10382 else
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10385 rm -fr conftest*
10386 samba_cv_HAVE_IFACE_AIX=no
10388 rm -fr conftest*
10393 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10394 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10395 iface=yes;cat >> confdefs.h <<\EOF
10396 #define HAVE_IFACE_AIX 1
10401 if test $iface = no; then
10402 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10403 echo "configure:10404: checking for iface ifconf" >&5
10404 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
10406 else
10408 if test "$cross_compiling" = yes; then
10409 samba_cv_HAVE_IFACE_IFCONF=cross
10410 else
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure"
10413 #include "confdefs.h"
10415 #define HAVE_IFACE_IFCONF 1
10416 #define AUTOCONF_TEST 1
10417 #include "confdefs.h"
10418 #include "${srcdir-.}/lib/interfaces.c"
10420 if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10421 then
10422 samba_cv_HAVE_IFACE_IFCONF=yes
10423 else
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -fr conftest*
10427 samba_cv_HAVE_IFACE_IFCONF=no
10429 rm -fr conftest*
10434 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10435 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10436 iface=yes;cat >> confdefs.h <<\EOF
10437 #define HAVE_IFACE_IFCONF 1
10443 if test $iface = no; then
10444 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10445 echo "configure:10446: checking for iface ifreq" >&5
10446 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
10448 else
10450 if test "$cross_compiling" = yes; then
10451 samba_cv_HAVE_IFACE_IFREQ=cross
10452 else
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10457 #define HAVE_IFACE_IFREQ 1
10458 #define AUTOCONF_TEST 1
10459 #include "confdefs.h"
10460 #include "${srcdir-.}/lib/interfaces.c"
10462 if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10463 then
10464 samba_cv_HAVE_IFACE_IFREQ=yes
10465 else
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10468 rm -fr conftest*
10469 samba_cv_HAVE_IFACE_IFREQ=no
10471 rm -fr conftest*
10476 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10477 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10478 iface=yes;cat >> confdefs.h <<\EOF
10479 #define HAVE_IFACE_IFREQ 1
10486 ################################################
10487 # look for a method of setting the effective uid
10488 seteuid=no;
10489 if test $seteuid = no; then
10490 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10491 echo "configure:10492: checking for setresuid" >&5
10492 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
10494 else
10496 if test "$cross_compiling" = yes; then
10497 samba_cv_USE_SETRESUID=cross
10498 else
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10503 #define AUTOCONF_TEST 1
10504 #define USE_SETRESUID 1
10505 #include "confdefs.h"
10506 #include "${srcdir-.}/lib/util_sec.c"
10508 if { (eval echo configure:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10509 then
10510 samba_cv_USE_SETRESUID=yes
10511 else
10512 echo "configure: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10514 rm -fr conftest*
10515 samba_cv_USE_SETRESUID=no
10517 rm -fr conftest*
10522 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10523 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10524 seteuid=yes;cat >> confdefs.h <<\EOF
10525 #define USE_SETRESUID 1
10532 if test $seteuid = no; then
10533 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10534 echo "configure:10535: checking for setreuid" >&5
10535 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10536 echo $ac_n "(cached) $ac_c" 1>&6
10537 else
10539 if test "$cross_compiling" = yes; then
10540 samba_cv_USE_SETREUID=cross
10541 else
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10546 #define AUTOCONF_TEST 1
10547 #define USE_SETREUID 1
10548 #include "confdefs.h"
10549 #include "${srcdir-.}/lib/util_sec.c"
10551 if { (eval echo configure:10552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10552 then
10553 samba_cv_USE_SETREUID=yes
10554 else
10555 echo "configure: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10557 rm -fr conftest*
10558 samba_cv_USE_SETREUID=no
10560 rm -fr conftest*
10565 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10566 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10567 seteuid=yes;cat >> confdefs.h <<\EOF
10568 #define USE_SETREUID 1
10574 if test $seteuid = no; then
10575 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10576 echo "configure:10577: checking for seteuid" >&5
10577 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10578 echo $ac_n "(cached) $ac_c" 1>&6
10579 else
10581 if test "$cross_compiling" = yes; then
10582 samba_cv_USE_SETEUID=cross
10583 else
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10588 #define AUTOCONF_TEST 1
10589 #define USE_SETEUID 1
10590 #include "confdefs.h"
10591 #include "${srcdir-.}/lib/util_sec.c"
10593 if { (eval echo configure:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10594 then
10595 samba_cv_USE_SETEUID=yes
10596 else
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10599 rm -fr conftest*
10600 samba_cv_USE_SETEUID=no
10602 rm -fr conftest*
10607 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10608 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10609 seteuid=yes;cat >> confdefs.h <<\EOF
10610 #define USE_SETEUID 1
10616 if test $seteuid = no; then
10617 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10618 echo "configure:10619: checking for setuidx" >&5
10619 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10620 echo $ac_n "(cached) $ac_c" 1>&6
10621 else
10623 if test "$cross_compiling" = yes; then
10624 samba_cv_USE_SETUIDX=cross
10625 else
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10630 #define AUTOCONF_TEST 1
10631 #define USE_SETUIDX 1
10632 #include "confdefs.h"
10633 #include "${srcdir-.}/lib/util_sec.c"
10635 if { (eval echo configure:10636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10636 then
10637 samba_cv_USE_SETUIDX=yes
10638 else
10639 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10641 rm -fr conftest*
10642 samba_cv_USE_SETUIDX=no
10644 rm -fr conftest*
10649 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10650 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10651 seteuid=yes;cat >> confdefs.h <<\EOF
10652 #define USE_SETUIDX 1
10659 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10660 echo "configure:10661: checking for working mmap" >&5
10661 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10663 else
10665 if test "$cross_compiling" = yes; then
10666 samba_cv_HAVE_MMAP=cross
10667 else
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10671 #include "${srcdir-.}/tests/shared_mmap.c"
10673 if { (eval echo configure:10674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10674 then
10675 samba_cv_HAVE_MMAP=yes
10676 else
10677 echo "configure: failed program was:" >&5
10678 cat conftest.$ac_ext >&5
10679 rm -fr conftest*
10680 samba_cv_HAVE_MMAP=no
10682 rm -fr conftest*
10687 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10688 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10689 cat >> confdefs.h <<\EOF
10690 #define HAVE_MMAP 1
10695 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10696 echo "configure:10697: checking for ftruncate needs root" >&5
10697 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10699 else
10701 if test "$cross_compiling" = yes; then
10702 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10703 else
10704 cat > conftest.$ac_ext <<EOF
10705 #line 10706 "configure"
10706 #include "confdefs.h"
10707 #include "${srcdir-.}/tests/ftruncroot.c"
10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10710 then
10711 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10712 else
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10715 rm -fr conftest*
10716 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10718 rm -fr conftest*
10723 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10724 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10725 cat >> confdefs.h <<\EOF
10726 #define FTRUNCATE_NEEDS_ROOT 1
10731 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10732 echo "configure:10733: checking for fcntl locking" >&5
10733 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10735 else
10737 if test "$cross_compiling" = yes; then
10738 samba_cv_HAVE_FCNTL_LOCK=cross
10739 else
10740 cat > conftest.$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10743 #include "${srcdir-.}/tests/fcntl_lock.c"
10745 if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10746 then
10747 samba_cv_HAVE_FCNTL_LOCK=yes
10748 else
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 rm -fr conftest*
10752 samba_cv_HAVE_FCNTL_LOCK=no
10754 rm -fr conftest*
10759 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10760 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10761 cat >> confdefs.h <<\EOF
10762 #define HAVE_FCNTL_LOCK 1
10767 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10768 echo "configure:10769: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10769 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10770 echo $ac_n "(cached) $ac_c" 1>&6
10771 else
10773 if test "$cross_compiling" = yes; then
10774 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10775 else
10776 cat > conftest.$ac_ext <<EOF
10777 #line 10778 "configure"
10778 #include "confdefs.h"
10779 #include "${srcdir-.}/tests/fcntl_lock64.c"
10781 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10782 then
10783 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10784 else
10785 echo "configure: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10787 rm -fr conftest*
10788 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10790 rm -fr conftest*
10795 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10796 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10797 cat >> confdefs.h <<\EOF
10798 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10802 else
10805 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10806 echo "configure:10807: checking for 64 bit fcntl locking" >&5
10807 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10809 else
10811 if test "$cross_compiling" = yes; then
10812 samba_cv_HAVE_STRUCT_FLOCK64=cross
10813 else
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10818 #if defined(HAVE_UNISTD_H)
10819 #include <unistd.h>
10820 #endif
10821 #include <stdio.h>
10822 #include <stdlib.h>
10824 #ifdef HAVE_FCNTL_H
10825 #include <fcntl.h>
10826 #endif
10828 #ifdef HAVE_SYS_FCNTL_H
10829 #include <sys/fcntl.h>
10830 #endif
10831 main() { struct flock64 fl64;
10832 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10833 exit(0);
10834 #else
10835 exit(1);
10836 #endif
10839 if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10840 then
10841 samba_cv_HAVE_STRUCT_FLOCK64=yes
10842 else
10843 echo "configure: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10845 rm -fr conftest*
10846 samba_cv_HAVE_STRUCT_FLOCK64=no
10848 rm -fr conftest*
10853 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10855 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10856 cat >> confdefs.h <<\EOF
10857 #define HAVE_STRUCT_FLOCK64 1
10863 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10864 echo "configure:10865: checking for a crypt that needs truncated salt" >&5
10865 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10866 echo $ac_n "(cached) $ac_c" 1>&6
10867 else
10869 if test "$cross_compiling" = yes; then
10870 samba_cv_HAVE_TRUNCATED_SALT=cross
10871 else
10872 cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10875 #include "${srcdir-.}/tests/crypttest.c"
10877 if { (eval echo configure:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10878 then
10879 samba_cv_HAVE_TRUNCATED_SALT=no
10880 else
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10883 rm -fr conftest*
10884 samba_cv_HAVE_TRUNCATED_SALT=yes
10886 rm -fr conftest*
10891 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10892 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10893 cat >> confdefs.h <<\EOF
10894 #define HAVE_TRUNCATED_SALT 1
10899 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10900 echo "configure:10901: checking for broken nisplus include files" >&5
10901 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10903 else
10905 cat > conftest.$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10908 #include <sys/acl.h>
10909 #if defined(HAVE_RPCSVC_NIS_H)
10910 #include <rpcsvc/nis.h>
10911 #endif
10912 int main() {
10913 return 0;
10914 ; return 0; }
10916 if { (eval echo configure:10917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10917 rm -rf conftest*
10918 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10919 else
10920 echo "configure: failed program was:" >&5
10921 cat conftest.$ac_ext >&5
10922 rm -rf conftest*
10923 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10925 rm -f conftest*
10928 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10929 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10930 cat >> confdefs.h <<\EOF
10931 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10937 #################################################
10938 # check for smbwrapper support
10939 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10940 echo "configure:10941: checking whether to use smbwrapper" >&5
10941 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10942 if test "${with_smbwrapper+set}" = set; then
10943 withval="$with_smbwrapper"
10944 case "$withval" in
10945 yes)
10946 echo "$ac_t""yes" 1>&6
10947 cat >> confdefs.h <<\EOF
10948 #define WITH_SMBWRAPPER 1
10951 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10953 if test x$ATTEMPT_WRAP32_BUILD = x; then
10954 WRAP32=""
10955 else
10956 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10959 # Conditions under which smbwrapper should not be built.
10961 if test x$PICFLAG = x; then
10962 echo No support for PIC code - disabling smbwrapper and smbsh
10963 WRAP=""
10964 WRAP32=""
10965 elif test x$ac_cv_func_syscall = xno; then
10966 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10967 WRAP=""
10968 WRAP32=""
10972 echo "$ac_t""no" 1>&6
10974 esac
10975 else
10976 echo "$ac_t""no" 1>&6
10981 #################################################
10982 # check for the AFS filesystem
10983 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10984 echo "configure:10985: checking whether to use AFS" >&5
10985 # Check whether --with-afs or --without-afs was given.
10986 if test "${with_afs+set}" = set; then
10987 withval="$with_afs"
10988 case "$withval" in
10989 yes)
10990 echo "$ac_t""yes" 1>&6
10991 cat >> confdefs.h <<\EOF
10992 #define WITH_AFS 1
10997 echo "$ac_t""no" 1>&6
10999 esac
11000 else
11001 echo "$ac_t""no" 1>&6
11007 #################################################
11008 # check for the DFS auth system
11009 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11010 echo "configure:11011: checking whether to use DFS auth" >&5
11011 # Check whether --with-dfs or --without-dfs was given.
11012 if test "${with_dfs+set}" = set; then
11013 withval="$with_dfs"
11014 case "$withval" in
11015 yes)
11016 echo "$ac_t""yes" 1>&6
11017 cat >> confdefs.h <<\EOF
11018 #define WITH_DFS 1
11023 echo "$ac_t""no" 1>&6
11025 esac
11026 else
11027 echo "$ac_t""no" 1>&6
11032 #################################################
11033 # check for Kerberos IV auth system
11034 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11035 echo "configure:11036: checking whether to use Kerberos IV" >&5
11036 # Check whether --with-krb4 or --without-krb4 was given.
11037 if test "${with_krb4+set}" = set; then
11038 withval="$with_krb4"
11039 echo "$ac_t""yes" 1>&6
11040 cat >> confdefs.h <<\EOF
11041 #define KRB4_AUTH 1
11044 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11045 echo "configure:11046: checking for dn_expand in -lresolv" >&5
11046 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049 else
11050 ac_save_LIBS="$LIBS"
11051 LIBS="-lresolv $LIBS"
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11055 /* Override any gcc2 internal prototype to avoid an error. */
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char dn_expand();
11060 int main() {
11061 dn_expand()
11062 ; return 0; }
11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11065 rm -rf conftest*
11066 eval "ac_cv_lib_$ac_lib_var=yes"
11067 else
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 eval "ac_cv_lib_$ac_lib_var=no"
11073 rm -f conftest*
11074 LIBS="$ac_save_LIBS"
11077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11078 echo "$ac_t""yes" 1>&6
11079 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11081 cat >> confdefs.h <<EOF
11082 #define $ac_tr_lib 1
11085 LIBS="-lresolv $LIBS"
11087 else
11088 echo "$ac_t""no" 1>&6
11091 LIBS="$LIBS -lkrb -ldes"
11092 CFLAGS="$CFLAGS -I$withval/include"
11093 LDFLAGS="$LDFLAGS -L$withval/lib"
11094 else
11095 echo "$ac_t""no" 1>&6
11100 #################################################
11101 # check for Kerberos 5 auth system
11102 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11103 echo "configure:11104: checking whether to use Kerberos 5" >&5
11104 # Check whether --with-krb5 or --without-krb5 was given.
11105 if test "${with_krb5+set}" = set; then
11106 withval="$with_krb5"
11107 echo "$ac_t""yes" 1>&6
11108 cat >> confdefs.h <<\EOF
11109 #define KRB5_AUTH 1
11112 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11113 CFLAGS="$CFLAGS -I$withval/include"
11114 LDFLAGS="$LDFLAGS -L$withval/lib"
11115 else
11116 echo "$ac_t""no" 1>&6
11121 #################################################
11122 # check for automount support
11123 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11124 echo "configure:11125: checking whether to use AUTOMOUNT" >&5
11125 # Check whether --with-automount or --without-automount was given.
11126 if test "${with_automount+set}" = set; then
11127 withval="$with_automount"
11128 case "$withval" in
11129 yes)
11130 echo "$ac_t""yes" 1>&6
11131 cat >> confdefs.h <<\EOF
11132 #define WITH_AUTOMOUNT 1
11137 echo "$ac_t""no" 1>&6
11139 esac
11140 else
11141 echo "$ac_t""no" 1>&6
11146 #################################################
11147 # check for smbmount support
11148 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11149 echo "configure:11150: checking whether to use SMBMOUNT" >&5
11150 # Check whether --with-smbmount or --without-smbmount was given.
11151 if test "${with_smbmount+set}" = set; then
11152 withval="$with_smbmount"
11153 case "$withval" in
11154 yes)
11155 echo "$ac_t""yes" 1>&6
11156 cat >> confdefs.h <<\EOF
11157 #define WITH_SMBMOUNT 1
11160 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11163 echo "$ac_t""no" 1>&6
11164 MPROGS=
11166 esac
11167 else
11168 echo "$ac_t""no" 1>&6
11169 MPROGS=
11175 #################################################
11176 # check for a PAM password database
11177 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11178 echo "configure:11179: checking whether to use PAM password database" >&5
11179 # Check whether --with-pam or --without-pam was given.
11180 if test "${with_pam+set}" = set; then
11181 withval="$with_pam"
11182 case "$withval" in
11183 yes)
11184 echo "$ac_t""yes" 1>&6
11185 cat >> confdefs.h <<\EOF
11186 #define WITH_PAM 1
11189 LIBS="$LIBS -lpam"
11192 echo "$ac_t""no" 1>&6
11194 esac
11195 else
11196 echo "$ac_t""no" 1>&6
11201 #################################################
11202 # check for a TDB password database
11203 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11204 echo "configure:11205: checking whether to use TDB password database" >&5
11205 # Check whether --with-tdbsam or --without-tdbsam was given.
11206 if test "${with_tdbsam+set}" = set; then
11207 withval="$with_tdbsam"
11208 case "$withval" in
11209 yes)
11210 echo "$ac_t""yes" 1>&6
11211 cat >> confdefs.h <<\EOF
11212 #define WITH_TDBPWD 1
11215 # AC_MSG_ERROR([TDB password database not supported in this version.])
11218 echo "$ac_t""no" 1>&6
11220 esac
11221 else
11222 echo "$ac_t""no" 1>&6
11227 #################################################
11228 # check for a LDAP password database
11229 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11230 echo "configure:11231: checking whether to use LDAP password database" >&5
11231 # Check whether --with-ldap or --without-ldap was given.
11232 if test "${with_ldap+set}" = set; then
11233 withval="$with_ldap"
11234 case "$withval" in
11235 yes)
11236 echo "$ac_t""yes" 1>&6
11237 cat >> confdefs.h <<\EOF
11238 #define WITH_LDAP 1
11241 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11244 echo "$ac_t""no" 1>&6
11246 esac
11247 else
11248 echo "$ac_t""no" 1>&6
11253 #################################################
11254 # check for a NISPLUS password database
11255 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11256 echo "configure:11257: checking whether to use NISPLUS password database" >&5
11257 # Check whether --with-nisplus or --without-nisplus was given.
11258 if test "${with_nisplus+set}" = set; then
11259 withval="$with_nisplus"
11260 case "$withval" in
11261 yes)
11262 echo "$ac_t""yes" 1>&6
11263 cat >> confdefs.h <<\EOF
11264 #define WITH_NISPLUS 1
11269 echo "$ac_t""no" 1>&6
11271 esac
11272 else
11273 echo "$ac_t""no" 1>&6
11278 #################################################
11279 # check for a NISPLUS_HOME support
11280 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11281 echo "configure:11282: checking whether to use NISPLUS_HOME" >&5
11282 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11283 if test "${with_nisplus_home+set}" = set; then
11284 withval="$with_nisplus_home"
11285 case "$withval" in
11286 yes)
11287 echo "$ac_t""yes" 1>&6
11288 cat >> confdefs.h <<\EOF
11289 #define WITH_NISPLUS_HOME 1
11294 echo "$ac_t""no" 1>&6
11296 esac
11297 else
11298 echo "$ac_t""no" 1>&6
11303 #################################################
11304 # check for the secure socket layer
11305 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11306 echo "configure:11307: checking whether to use SSL" >&5
11307 # Check whether --with-ssl or --without-ssl was given.
11308 if test "${with_ssl+set}" = set; then
11309 withval="$with_ssl"
11310 case "$withval" in
11311 yes)
11312 echo "$ac_t""yes" 1>&6
11313 cat >> confdefs.h <<\EOF
11314 #define WITH_SSL 1
11317 withval="/usr/local/ssl" # default
11319 if test "${with_sslinc+set}" = set; then
11321 withval="$with_sslinc"
11322 case "$withval" in
11323 yes|no)
11324 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11325 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11326 LIBS="-lssl -lcrypto $LIBS"
11327 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11330 CFLAGS="-I${withval}/include $CFLAGS"
11331 LIBS="-lssl -lcrypto $LIBS"
11332 LDFLAGS="-L${withval}/lib $LDFLAGS"
11334 esac
11336 else
11338 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11339 LIBS="-lssl -lcrypto $LIBS"
11340 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11344 if test ! -d ${withval}; then
11345 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11346 exit 1
11349 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11353 echo "$ac_t""no" 1>&6
11355 esac
11356 else
11357 echo "$ac_t""no" 1>&6
11362 #################################################
11363 # check for syslog logging
11364 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11365 echo "configure:11366: checking whether to use syslog logging" >&5
11366 # Check whether --with-syslog or --without-syslog was given.
11367 if test "${with_syslog+set}" = set; then
11368 withval="$with_syslog"
11369 case "$withval" in
11370 yes)
11371 echo "$ac_t""yes" 1>&6
11372 cat >> confdefs.h <<\EOF
11373 #define WITH_SYSLOG 1
11378 echo "$ac_t""no" 1>&6
11380 esac
11381 else
11382 echo "$ac_t""no" 1>&6
11387 #################################################
11388 # check for a shared memory profiling support
11389 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11390 echo "configure:11391: checking whether to use profiling" >&5
11391 # Check whether --with-profile or --without-profile was given.
11392 if test "${with_profile+set}" = set; then
11393 withval="$with_profile"
11394 case "$withval" in
11395 yes)
11396 echo "$ac_t""yes" 1>&6
11397 cat >> confdefs.h <<\EOF
11398 #define WITH_PROFILE 1
11403 echo "$ac_t""no" 1>&6
11405 esac
11406 else
11407 echo "$ac_t""no" 1>&6
11413 #################################################
11414 # check for experimental netatalk resource fork support
11415 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11416 echo "configure:11417: checking whether to support netatalk" >&5
11417 # Check whether --with-netatalk or --without-netatalk was given.
11418 if test "${with_netatalk+set}" = set; then
11419 withval="$with_netatalk"
11420 case "$withval" in
11421 yes)
11422 echo "$ac_t""yes" 1>&6
11423 cat >> confdefs.h <<\EOF
11424 #define WITH_NETATALK 1
11429 echo "$ac_t""no" 1>&6
11431 esac
11432 else
11433 echo "$ac_t""no" 1>&6
11438 #################################################
11439 # check for experimental disk-quotas support
11440 QUOTAOBJS=smbd/noquotas.o
11442 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11443 echo "configure:11444: checking whether to support disk-quotas" >&5
11444 # Check whether --with-quotas or --without-quotas was given.
11445 if test "${with_quotas+set}" = set; then
11446 withval="$with_quotas"
11447 case "$withval" in
11448 yes)
11449 echo "$ac_t""yes" 1>&6
11450 QUOTAOBJS=smbd/quotas.o
11453 echo "$ac_t""no" 1>&6
11455 esac
11456 else
11457 echo "$ac_t""no" 1>&6
11463 #################################################
11464 # check for experimental utmp accounting
11466 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11467 echo "configure:11468: checking whether to support utmp accounting" >&5
11468 # Check whether --with-utmp or --without-utmp was given.
11469 if test "${with_utmp+set}" = set; then
11470 withval="$with_utmp"
11471 case "$withval" in
11472 yes)
11473 echo "$ac_t""yes" 1>&6
11474 cat >> confdefs.h <<\EOF
11475 #define WITH_UTMP 1
11480 echo "$ac_t""no" 1>&6
11482 esac
11483 else
11484 echo "$ac_t""no" 1>&6
11489 #################################################
11490 # check for MS Dfs support
11492 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11493 echo "configure:11494: checking whether to support Microsoft Dfs" >&5
11494 # Check whether --with-msdfs or --without-msdfs was given.
11495 if test "${with_msdfs+set}" = set; then
11496 withval="$with_msdfs"
11497 case "$withval" in
11498 yes)
11499 echo "$ac_t""yes" 1>&6
11500 cat >> confdefs.h <<\EOF
11501 #define WITH_MSDFS 1
11506 echo "$ac_t""no" 1>&6
11508 esac
11509 else
11510 echo "$ac_t""no" 1>&6
11515 #################################################
11516 # set private directory location
11517 # Check whether --with-privatedir or --without-privatedir was given.
11518 if test "${with_privatedir+set}" = set; then
11519 withval="$with_privatedir"
11520 case "$withval" in
11521 yes|no)
11523 # Just in case anybody calls it without argument
11525 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11526 privatedir='${prefix}/private'
11529 privatedir="$withval"
11531 esac
11533 else
11534 privatedir='${prefix}/private'
11540 #################################################
11541 # set lock directory location
11542 # Check whether --with-lockdir or --without-lockdir was given.
11543 if test "${with_lockdir+set}" = set; then
11544 withval="$with_lockdir"
11545 case "$withval" in
11546 yes|no)
11548 # Just in case anybody calls it without argument
11550 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11551 lockdir='$(VARDIR)/locks'
11554 lockdir="$withval"
11556 esac
11558 else
11559 lockdir='$(VARDIR)/locks'
11565 #################################################
11566 # set SWAT directory location
11567 # Check whether --with-swatdir or --without-swatdir was given.
11568 if test "${with_swatdir+set}" = set; then
11569 withval="$with_swatdir"
11570 case "$withval" in
11571 yes|no)
11573 # Just in case anybody does it
11575 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11576 swatdir='${prefix}/swat'
11579 swatdir="$withval"
11581 esac
11583 else
11584 swatdir='${prefix}/swat'
11590 #################################################
11591 # these tests are taken from the GNU fileutils package
11592 echo "checking how to get filesystem space usage" 1>&6
11593 echo "configure:11594: checking how to get filesystem space usage" >&5
11594 space=no
11596 # Test for statvfs64.
11597 if test $space = no; then
11598 # SVR4
11599 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11600 echo "configure:11601: checking statvfs64 function (SVR4)" >&5
11601 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11603 else
11604 if test "$cross_compiling" = yes; then
11605 fu_cv_sys_stat_statvfs64=cross
11606 else
11607 cat > conftest.$ac_ext <<EOF
11608 #line 11609 "configure"
11609 #include "confdefs.h"
11611 #if defined(HAVE_UNISTD_H)
11612 #include <unistd.h>
11613 #endif
11614 #include <sys/types.h>
11615 #include <sys/statvfs.h>
11616 main ()
11618 struct statvfs64 fsd;
11619 exit (statvfs64 (".", &fsd));
11622 if { (eval echo configure:11623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11623 then
11624 fu_cv_sys_stat_statvfs64=yes
11625 else
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11628 rm -fr conftest*
11629 fu_cv_sys_stat_statvfs64=no
11631 rm -fr conftest*
11636 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11637 if test $fu_cv_sys_stat_statvfs64 = yes; then
11638 space=yes
11639 cat >> confdefs.h <<\EOF
11640 #define STAT_STATVFS64 1
11646 # Perform only the link test since it seems there are no variants of the
11647 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11648 # because that got a false positive on SCO OSR5. Adding the declaration
11649 # of a `struct statvfs' causes this test to fail (as it should) on such
11650 # systems. That system is reported to work fine with STAT_STATFS4 which
11651 # is what it gets when this test fails.
11652 if test $space = no; then
11653 # SVR4
11654 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11655 echo "configure:11656: checking statvfs function (SVR4)" >&5
11656 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11657 echo $ac_n "(cached) $ac_c" 1>&6
11658 else
11659 cat > conftest.$ac_ext <<EOF
11660 #line 11661 "configure"
11661 #include "confdefs.h"
11662 #include <sys/types.h>
11663 #include <sys/statvfs.h>
11664 int main() {
11665 struct statvfs fsd; statvfs (0, &fsd);
11666 ; return 0; }
11668 if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11669 rm -rf conftest*
11670 fu_cv_sys_stat_statvfs=yes
11671 else
11672 echo "configure: failed program was:" >&5
11673 cat conftest.$ac_ext >&5
11674 rm -rf conftest*
11675 fu_cv_sys_stat_statvfs=no
11677 rm -f conftest*
11680 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11681 if test $fu_cv_sys_stat_statvfs = yes; then
11682 space=yes
11683 cat >> confdefs.h <<\EOF
11684 #define STAT_STATVFS 1
11690 if test $space = no; then
11691 # DEC Alpha running OSF/1
11692 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11693 echo "configure:11694: checking for 3-argument statfs function (DEC OSF/1)" >&5
11694 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11695 echo $ac_n "(cached) $ac_c" 1>&6
11696 else
11697 if test "$cross_compiling" = yes; then
11698 fu_cv_sys_stat_statfs3_osf1=no
11699 else
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11704 #include <sys/param.h>
11705 #include <sys/types.h>
11706 #include <sys/mount.h>
11707 main ()
11709 struct statfs fsd;
11710 fsd.f_fsize = 0;
11711 exit (statfs (".", &fsd, sizeof (struct statfs)));
11714 if { (eval echo configure:11715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11715 then
11716 fu_cv_sys_stat_statfs3_osf1=yes
11717 else
11718 echo "configure: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11720 rm -fr conftest*
11721 fu_cv_sys_stat_statfs3_osf1=no
11723 rm -fr conftest*
11728 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11729 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11730 space=yes
11731 cat >> confdefs.h <<\EOF
11732 #define STAT_STATFS3_OSF1 1
11738 if test $space = no; then
11739 # AIX
11740 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11741 echo "configure:11742: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11742 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11743 echo $ac_n "(cached) $ac_c" 1>&6
11744 else
11745 if test "$cross_compiling" = yes; then
11746 fu_cv_sys_stat_statfs2_bsize=no
11747 else
11748 cat > conftest.$ac_ext <<EOF
11749 #line 11750 "configure"
11750 #include "confdefs.h"
11752 #ifdef HAVE_SYS_PARAM_H
11753 #include <sys/param.h>
11754 #endif
11755 #ifdef HAVE_SYS_MOUNT_H
11756 #include <sys/mount.h>
11757 #endif
11758 #ifdef HAVE_SYS_VFS_H
11759 #include <sys/vfs.h>
11760 #endif
11761 main ()
11763 struct statfs fsd;
11764 fsd.f_bsize = 0;
11765 exit (statfs (".", &fsd));
11768 if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11769 then
11770 fu_cv_sys_stat_statfs2_bsize=yes
11771 else
11772 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11774 rm -fr conftest*
11775 fu_cv_sys_stat_statfs2_bsize=no
11777 rm -fr conftest*
11782 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11783 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11784 space=yes
11785 cat >> confdefs.h <<\EOF
11786 #define STAT_STATFS2_BSIZE 1
11792 if test $space = no; then
11793 # SVR3
11794 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11795 echo "configure:11796: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11796 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11797 echo $ac_n "(cached) $ac_c" 1>&6
11798 else
11799 if test "$cross_compiling" = yes; then
11800 fu_cv_sys_stat_statfs4=no
11801 else
11802 cat > conftest.$ac_ext <<EOF
11803 #line 11804 "configure"
11804 #include "confdefs.h"
11805 #include <sys/types.h>
11806 #include <sys/statfs.h>
11807 main ()
11809 struct statfs fsd;
11810 exit (statfs (".", &fsd, sizeof fsd, 0));
11813 if { (eval echo configure:11814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11814 then
11815 fu_cv_sys_stat_statfs4=yes
11816 else
11817 echo "configure: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 rm -fr conftest*
11820 fu_cv_sys_stat_statfs4=no
11822 rm -fr conftest*
11827 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11828 if test $fu_cv_sys_stat_statfs4 = yes; then
11829 space=yes
11830 cat >> confdefs.h <<\EOF
11831 #define STAT_STATFS4 1
11837 if test $space = no; then
11838 # 4.4BSD and NetBSD
11839 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11840 echo "configure:11841: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11841 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11842 echo $ac_n "(cached) $ac_c" 1>&6
11843 else
11844 if test "$cross_compiling" = yes; then
11845 fu_cv_sys_stat_statfs2_fsize=no
11846 else
11847 cat > conftest.$ac_ext <<EOF
11848 #line 11849 "configure"
11849 #include "confdefs.h"
11850 #include <sys/types.h>
11851 #ifdef HAVE_SYS_PARAM_H
11852 #include <sys/param.h>
11853 #endif
11854 #ifdef HAVE_SYS_MOUNT_H
11855 #include <sys/mount.h>
11856 #endif
11857 main ()
11859 struct statfs fsd;
11860 fsd.f_fsize = 0;
11861 exit (statfs (".", &fsd));
11864 if { (eval echo configure:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11865 then
11866 fu_cv_sys_stat_statfs2_fsize=yes
11867 else
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11870 rm -fr conftest*
11871 fu_cv_sys_stat_statfs2_fsize=no
11873 rm -fr conftest*
11878 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11879 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11880 space=yes
11881 cat >> confdefs.h <<\EOF
11882 #define STAT_STATFS2_FSIZE 1
11888 if test $space = no; then
11889 # Ultrix
11890 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11891 echo "configure:11892: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11892 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11894 else
11895 if test "$cross_compiling" = yes; then
11896 fu_cv_sys_stat_fs_data=no
11897 else
11898 cat > conftest.$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11901 #include <sys/types.h>
11902 #ifdef HAVE_SYS_PARAM_H
11903 #include <sys/param.h>
11904 #endif
11905 #ifdef HAVE_SYS_MOUNT_H
11906 #include <sys/mount.h>
11907 #endif
11908 #ifdef HAVE_SYS_FS_TYPES_H
11909 #include <sys/fs_types.h>
11910 #endif
11911 main ()
11913 struct fs_data fsd;
11914 /* Ultrix's statfs returns 1 for success,
11915 0 for not mounted, -1 for failure. */
11916 exit (statfs (".", &fsd) != 1);
11919 if { (eval echo configure:11920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11920 then
11921 fu_cv_sys_stat_fs_data=yes
11922 else
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11925 rm -fr conftest*
11926 fu_cv_sys_stat_fs_data=no
11928 rm -fr conftest*
11933 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11934 if test $fu_cv_sys_stat_fs_data = yes; then
11935 space=yes
11936 cat >> confdefs.h <<\EOF
11937 #define STAT_STATFS2_FS_DATA 1
11944 # As a gating factor for large file support, in order to
11945 # use <4GB files we must have the following minimal support
11946 # available.
11947 # long long, and a 64 bit off_t or off64_t.
11948 # If we don't have all of these then disable large
11949 # file support.
11951 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
11952 echo "configure:11953: checking if large file support can be enabled" >&5
11953 cat > conftest.$ac_ext <<EOF
11954 #line 11955 "configure"
11955 #include "confdefs.h"
11957 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11958 #include <sys/types.h>
11959 #else
11960 __COMPILE_ERROR_
11961 #endif
11963 int main() {
11964 int i
11965 ; return 0; }
11967 if { (eval echo configure:11968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11968 rm -rf conftest*
11969 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
11970 else
11971 echo "configure: failed program was:" >&5
11972 cat conftest.$ac_ext >&5
11973 rm -rf conftest*
11974 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
11976 rm -f conftest*
11977 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
11978 echo "$ac_t""yes" 1>&6
11979 cat >> confdefs.h <<\EOF
11980 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11983 else
11984 echo "$ac_t""no" 1>&6
11986 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
11988 # Check whether --with-spinlocks or --without-spinlocks was given.
11989 if test "${with_spinlocks+set}" = set; then
11990 withval="$with_spinlocks"
11994 if test "x$with_spinlocks" = "xyes"; then
11995 cat >> confdefs.h <<\EOF
11996 #define USE_SPINLOCKS 1
12000 case "$host_cpu" in
12001 sparc)
12002 cat >> confdefs.h <<\EOF
12003 #define SPARC_SPINLOCKS 1
12008 i386|i486|i586|i686)
12009 cat >> confdefs.h <<\EOF
12010 #define INTEL_SPINLOCKS 1
12015 mips)
12016 cat >> confdefs.h <<\EOF
12017 #define MIPS_SPINLOCKS 1
12022 powerpc)
12023 cat >> confdefs.h <<\EOF
12024 #define POWERPC_SPINLOCKS 1
12028 esac
12031 #################################################
12032 # check for ACL support
12034 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12035 echo "configure:12036: checking whether to support ACLs" >&5
12036 # Check whether --with-acl-support or --without-acl-support was given.
12037 if test "${with_acl_support+set}" = set; then
12038 withval="$with_acl_support"
12039 case "$withval" in
12040 yes)
12042 case "$host_os" in
12043 *sysv5*)
12044 echo "$ac_t""Using UnixWare ACLs" 1>&6
12045 cat >> confdefs.h <<\EOF
12046 #define HAVE_UNIXWARE_ACLS 1
12050 *solaris*)
12051 echo "$ac_t""Using solaris ACLs" 1>&6
12052 cat >> confdefs.h <<\EOF
12053 #define HAVE_SOLARIS_ACLS 1
12057 *irix*)
12058 echo "$ac_t""Using IRIX ACLs" 1>&6
12059 cat >> confdefs.h <<\EOF
12060 #define HAVE_IRIX_ACLS 1
12064 *aix*)
12065 echo "$ac_t""Using AIX ACLs" 1>&6
12066 cat >> confdefs.h <<\EOF
12067 #define HAVE_AIX_ACLS 1
12072 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12073 echo "configure:12074: checking for acl_get_file in -lacl" >&5
12074 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12077 else
12078 ac_save_LIBS="$LIBS"
12079 LIBS="-lacl $LIBS"
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 /* Override any gcc2 internal prototype to avoid an error. */
12084 /* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12086 char acl_get_file();
12088 int main() {
12089 acl_get_file()
12090 ; return 0; }
12092 if { (eval echo configure:12093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12093 rm -rf conftest*
12094 eval "ac_cv_lib_$ac_lib_var=yes"
12095 else
12096 echo "configure: failed program was:" >&5
12097 cat conftest.$ac_ext >&5
12098 rm -rf conftest*
12099 eval "ac_cv_lib_$ac_lib_var=no"
12101 rm -f conftest*
12102 LIBS="$ac_save_LIBS"
12105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12106 echo "$ac_t""yes" 1>&6
12107 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12108 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12109 cat >> confdefs.h <<EOF
12110 #define $ac_tr_lib 1
12113 LIBS="-lacl $LIBS"
12115 else
12116 echo "$ac_t""no" 1>&6
12119 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12120 echo "configure:12121: checking for ACL support" >&5
12121 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12123 else
12125 cat > conftest.$ac_ext <<EOF
12126 #line 12127 "configure"
12127 #include "confdefs.h"
12128 #include <sys/types.h>
12129 #include <sys/acl.h>
12130 int main() {
12131 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12132 ; return 0; }
12134 if { (eval echo configure:12135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12135 rm -rf conftest*
12136 samba_cv_HAVE_POSIX_ACLS=yes
12137 else
12138 echo "configure: failed program was:" >&5
12139 cat conftest.$ac_ext >&5
12140 rm -rf conftest*
12141 samba_cv_HAVE_POSIX_ACLS=no
12143 rm -f conftest*
12146 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12147 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12148 echo "$ac_t""Using posix ACLs" 1>&6
12149 cat >> confdefs.h <<\EOF
12150 #define HAVE_POSIX_ACLS 1
12153 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12154 echo "configure:12155: checking for acl_get_perm_np" >&5
12155 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12156 echo $ac_n "(cached) $ac_c" 1>&6
12157 else
12159 cat > conftest.$ac_ext <<EOF
12160 #line 12161 "configure"
12161 #include "confdefs.h"
12162 #include <sys/types.h>
12163 #include <sys/acl.h>
12164 int main() {
12165 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12166 ; return 0; }
12168 if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12169 rm -rf conftest*
12170 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12171 else
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12174 rm -rf conftest*
12175 samba_cv_HAVE_ACL_GET_PERM_NP=no
12177 rm -f conftest*
12180 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12181 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12182 cat >> confdefs.h <<\EOF
12183 #define HAVE_ACL_GET_PERM_NP 1
12188 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12189 echo "configure:12190: checking for XFS ACL support" >&5
12190 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12191 echo $ac_n "(cached) $ac_c" 1>&6
12192 else
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 #include <sys/types.h>
12198 #include <acl/acl.h>
12199 int main() {
12200 char test_str[13] = SGI_ACL_FILE;
12201 ; return 0; }
12203 if { (eval echo configure:12204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12204 rm -rf conftest*
12205 samba_cv_HAVE_XFS_ACLS=yes
12206 else
12207 echo "configure: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 rm -rf conftest*
12210 samba_cv_XFS_POSIX_ACLS=no
12212 rm -f conftest*
12215 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12216 if test x"$samba_cv_HAVE_XFS_ACLS" = x"yes"; then
12217 echo "$ac_t""Using XFS ACLs" 1>&6
12218 cat >> confdefs.h <<\EOF
12219 #define HAVE_XFS_ACLS 1
12224 esac
12227 echo "$ac_t""no" 1>&6
12228 cat >> confdefs.h <<\EOF
12229 #define HAVE_NO_ACLS 1
12233 esac
12234 else
12235 cat >> confdefs.h <<\EOF
12236 #define HAVE_NO_ACLS 1
12239 echo "$ac_t""no" 1>&6
12243 echo "checking configure summary"
12244 if test "$cross_compiling" = yes; then
12246 else
12247 cat > conftest.$ac_ext <<EOF
12248 #line 12249 "configure"
12249 #include "confdefs.h"
12250 #include "${srcdir-.}/tests/summary.c"
12252 if { (eval echo configure:12253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12253 then
12254 echo "configure OK";
12255 else
12256 echo "configure: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12258 rm -fr conftest*
12259 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12261 rm -fr conftest*
12265 builddir=`pwd`
12268 trap '' 1 2 15
12269 cat > confcache <<\EOF
12270 # This file is a shell script that caches the results of configure
12271 # tests run on this system so they can be shared between configure
12272 # scripts and configure runs. It is not useful on other systems.
12273 # If it contains results you don't want to keep, you may remove or edit it.
12275 # By default, configure uses ./config.cache as the cache file,
12276 # creating it if it does not exist already. You can give configure
12277 # the --cache-file=FILE option to use a different cache file; that is
12278 # what configure does when it calls configure scripts in
12279 # subdirectories, so they share the cache.
12280 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12281 # config.status only pays attention to the cache file if you give it the
12282 # --recheck option to rerun configure.
12285 # The following way of writing the cache mishandles newlines in values,
12286 # but we know of no workaround that is simple, portable, and efficient.
12287 # So, don't put newlines in cache variables' values.
12288 # Ultrix sh set writes to stderr and can't be redirected directly,
12289 # and sets the high bit in the cache file unless we assign to the vars.
12290 (set) 2>&1 |
12291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12292 *ac_space=\ *)
12293 # `set' does not quote correctly, so add quotes (double-quote substitution
12294 # turns \\\\ into \\, and sed turns \\ into \).
12295 sed -n \
12296 -e "s/'/'\\\\''/g" \
12297 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12300 # `set' quotes correctly as required by POSIX, so do not add quotes.
12301 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12303 esac >> confcache
12304 if cmp -s $cache_file confcache; then
12306 else
12307 if test -w $cache_file; then
12308 echo "updating cache $cache_file"
12309 cat confcache > $cache_file
12310 else
12311 echo "not updating unwritable cache $cache_file"
12314 rm -f confcache
12316 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12318 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12319 # Let make expand exec_prefix.
12320 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12322 # Any assignment to VPATH causes Sun make to only execute
12323 # the first set of double-colon rules, so remove it if not needed.
12324 # If there is a colon in the path, we need to keep it.
12325 if test "x$srcdir" = x.; then
12326 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12329 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12331 DEFS=-DHAVE_CONFIG_H
12333 # Without the "./", some shells look in PATH for config.status.
12334 : ${CONFIG_STATUS=./config.status}
12336 echo creating $CONFIG_STATUS
12337 rm -f $CONFIG_STATUS
12338 cat > $CONFIG_STATUS <<EOF
12339 #! /bin/sh
12340 # Generated automatically by configure.
12341 # Run this file to recreate the current configuration.
12342 # This directory was configured as follows,
12343 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12345 # $0 $ac_configure_args
12347 # Compiler output produced by configure, useful for debugging
12348 # configure, is in ./config.log if it exists.
12350 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12351 for ac_option
12353 case "\$ac_option" in
12354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12355 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12356 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12357 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12358 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12359 exit 0 ;;
12360 -help | --help | --hel | --he | --h)
12361 echo "\$ac_cs_usage"; exit 0 ;;
12362 *) echo "\$ac_cs_usage"; exit 1 ;;
12363 esac
12364 done
12366 ac_given_srcdir=$srcdir
12367 ac_given_INSTALL="$INSTALL"
12369 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12371 cat >> $CONFIG_STATUS <<EOF
12373 # Protect against being on the right side of a sed subst in config.status.
12374 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12375 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12376 $ac_vpsub
12377 $extrasub
12378 s%@SHELL@%$SHELL%g
12379 s%@CFLAGS@%$CFLAGS%g
12380 s%@CPPFLAGS@%$CPPFLAGS%g
12381 s%@CXXFLAGS@%$CXXFLAGS%g
12382 s%@FFLAGS@%$FFLAGS%g
12383 s%@DEFS@%$DEFS%g
12384 s%@LDFLAGS@%$LDFLAGS%g
12385 s%@LIBS@%$LIBS%g
12386 s%@exec_prefix@%$exec_prefix%g
12387 s%@prefix@%$prefix%g
12388 s%@program_transform_name@%$program_transform_name%g
12389 s%@bindir@%$bindir%g
12390 s%@sbindir@%$sbindir%g
12391 s%@libexecdir@%$libexecdir%g
12392 s%@datadir@%$datadir%g
12393 s%@sysconfdir@%$sysconfdir%g
12394 s%@sharedstatedir@%$sharedstatedir%g
12395 s%@localstatedir@%$localstatedir%g
12396 s%@libdir@%$libdir%g
12397 s%@includedir@%$includedir%g
12398 s%@oldincludedir@%$oldincludedir%g
12399 s%@infodir@%$infodir%g
12400 s%@mandir@%$mandir%g
12401 s%@RUNPROG@%$RUNPROG%g
12402 s%@MPROGS@%$MPROGS%g
12403 s%@LDSHFLAGS@%$LDSHFLAGS%g
12404 s%@HOST_OS@%$HOST_OS%g
12405 s%@WRAP@%$WRAP%g
12406 s%@WRAP32@%$WRAP32%g
12407 s%@PICFLAG@%$PICFLAG%g
12408 s%@SHLIBEXT@%$SHLIBEXT%g
12409 s%@CC@%$CC%g
12410 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12411 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12412 s%@INSTALL_DATA@%$INSTALL_DATA%g
12413 s%@AWK@%$AWK%g
12414 s%@host@%$host%g
12415 s%@host_alias@%$host_alias%g
12416 s%@host_cpu@%$host_cpu%g
12417 s%@host_vendor@%$host_vendor%g
12418 s%@host_os@%$host_os%g
12419 s%@build@%$build%g
12420 s%@build_alias@%$build_alias%g
12421 s%@build_cpu@%$build_cpu%g
12422 s%@build_vendor@%$build_vendor%g
12423 s%@build_os@%$build_os%g
12424 s%@RANLIB@%$RANLIB%g
12425 s%@LN_S@%$LN_S%g
12426 s%@LIBTOOL@%$LIBTOOL%g
12427 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12428 s%@BROKEN_CC@%$BROKEN_CC%g
12429 s%@target@%$target%g
12430 s%@target_alias@%$target_alias%g
12431 s%@target_cpu@%$target_cpu%g
12432 s%@target_vendor@%$target_vendor%g
12433 s%@target_os@%$target_os%g
12434 s%@CPP@%$CPP%g
12435 s%@LIBOBJS@%$LIBOBJS%g
12436 s%@TERMLIBS@%$TERMLIBS%g
12437 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12438 s%@ROFF@%$ROFF%g
12439 s%@QUOTAOBJS@%$QUOTAOBJS%g
12440 s%@privatedir@%$privatedir%g
12441 s%@lockdir@%$lockdir%g
12442 s%@swatdir@%$swatdir%g
12443 s%@builddir@%$builddir%g
12445 CEOF
12448 cat >> $CONFIG_STATUS <<\EOF
12450 # Split the substitutions into bite-sized pieces for seds with
12451 # small command number limits, like on Digital OSF/1 and HP-UX.
12452 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12453 ac_file=1 # Number of current file.
12454 ac_beg=1 # First line for current file.
12455 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12456 ac_more_lines=:
12457 ac_sed_cmds=""
12458 while $ac_more_lines; do
12459 if test $ac_beg -gt 1; then
12460 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12461 else
12462 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12464 if test ! -s conftest.s$ac_file; then
12465 ac_more_lines=false
12466 rm -f conftest.s$ac_file
12467 else
12468 if test -z "$ac_sed_cmds"; then
12469 ac_sed_cmds="sed -f conftest.s$ac_file"
12470 else
12471 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12473 ac_file=`expr $ac_file + 1`
12474 ac_beg=$ac_end
12475 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12477 done
12478 if test -z "$ac_sed_cmds"; then
12479 ac_sed_cmds=cat
12483 cat >> $CONFIG_STATUS <<EOF
12485 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12487 cat >> $CONFIG_STATUS <<\EOF
12488 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12490 case "$ac_file" in
12491 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12492 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12493 *) ac_file_in="${ac_file}.in" ;;
12494 esac
12496 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12498 # Remove last slash and all that follows it. Not all systems have dirname.
12499 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12500 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12501 # The file is in a subdirectory.
12502 test ! -d "$ac_dir" && mkdir "$ac_dir"
12503 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12504 # A "../" for each directory in $ac_dir_suffix.
12505 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12506 else
12507 ac_dir_suffix= ac_dots=
12510 case "$ac_given_srcdir" in
12511 .) srcdir=.
12512 if test -z "$ac_dots"; then top_srcdir=.
12513 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12514 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12515 *) # Relative path.
12516 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12517 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12518 esac
12520 case "$ac_given_INSTALL" in
12521 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12522 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12523 esac
12525 echo creating "$ac_file"
12526 rm -f "$ac_file"
12527 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12528 case "$ac_file" in
12529 *Makefile*) ac_comsub="1i\\
12530 # $configure_input" ;;
12531 *) ac_comsub= ;;
12532 esac
12534 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12535 sed -e "$ac_comsub
12536 s%@configure_input@%$configure_input%g
12537 s%@srcdir@%$srcdir%g
12538 s%@top_srcdir@%$top_srcdir%g
12539 s%@INSTALL@%$INSTALL%g
12540 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12541 fi; done
12542 rm -f conftest.s*
12544 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12545 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12547 # ac_d sets the value in "#define NAME VALUE" lines.
12548 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12549 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12550 ac_dC='\3'
12551 ac_dD='%g'
12552 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12553 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12554 ac_uB='\([ ]\)%\1#\2define\3'
12555 ac_uC=' '
12556 ac_uD='\4%g'
12557 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12558 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12559 ac_eB='$%\1#\2define\3'
12560 ac_eC=' '
12561 ac_eD='%g'
12563 if test "${CONFIG_HEADERS+set}" != set; then
12565 cat >> $CONFIG_STATUS <<EOF
12566 CONFIG_HEADERS="include/config.h"
12568 cat >> $CONFIG_STATUS <<\EOF
12570 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12572 case "$ac_file" in
12573 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12574 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12575 *) ac_file_in="${ac_file}.in" ;;
12576 esac
12578 echo creating $ac_file
12580 rm -f conftest.frag conftest.in conftest.out
12581 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12582 cat $ac_file_inputs > conftest.in
12586 # Transform confdefs.h into a sed script conftest.vals that substitutes
12587 # the proper values into config.h.in to produce config.h. And first:
12588 # Protect against being on the right side of a sed subst in config.status.
12589 # Protect against being in an unquoted here document in config.status.
12590 rm -f conftest.vals
12591 cat > conftest.hdr <<\EOF
12592 s/[\\&%]/\\&/g
12593 s%[\\$`]%\\&%g
12594 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12595 s%ac_d%ac_u%gp
12596 s%ac_u%ac_e%gp
12598 sed -n -f conftest.hdr confdefs.h > conftest.vals
12599 rm -f conftest.hdr
12601 # This sed command replaces #undef with comments. This is necessary, for
12602 # example, in the case of _POSIX_SOURCE, which is predefined and required
12603 # on some systems where configure will not decide to define it.
12604 cat >> conftest.vals <<\EOF
12605 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12608 # Break up conftest.vals because some shells have a limit on
12609 # the size of here documents, and old seds have small limits too.
12611 rm -f conftest.tail
12612 while :
12614 ac_lines=`grep -c . conftest.vals`
12615 # grep -c gives empty output for an empty file on some AIX systems.
12616 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12617 # Write a limited-size here document to conftest.frag.
12618 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12619 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12620 echo 'CEOF
12621 sed -f conftest.frag conftest.in > conftest.out
12622 rm -f conftest.in
12623 mv conftest.out conftest.in
12624 ' >> $CONFIG_STATUS
12625 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12626 rm -f conftest.vals
12627 mv conftest.tail conftest.vals
12628 done
12629 rm -f conftest.vals
12631 cat >> $CONFIG_STATUS <<\EOF
12632 rm -f conftest.frag conftest.h
12633 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12634 cat conftest.in >> conftest.h
12635 rm -f conftest.in
12636 if cmp -s $ac_file conftest.h 2>/dev/null; then
12637 echo "$ac_file is unchanged"
12638 rm -f conftest.h
12639 else
12640 # Remove last slash and all that follows it. Not all systems have dirname.
12641 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12642 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12643 # The file is in a subdirectory.
12644 test ! -d "$ac_dir" && mkdir "$ac_dir"
12646 rm -f $ac_file
12647 mv conftest.h $ac_file
12649 fi; done
12652 cat >> $CONFIG_STATUS <<EOF
12655 cat >> $CONFIG_STATUS <<\EOF
12657 exit 0
12659 chmod +x $CONFIG_STATUS
12660 rm -fr confdefs* $ac_clean_files
12661 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1