preparing for release of alpha.2.5
[Samba.git] / source / configure
blob692bd8539fbbd8bcd3c3b23f0c8302778c675c72
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-static[=PKGS] build static libraries [default=no]"
17 ac_help="$ac_help
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 ac_help="$ac_help
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 ac_help="$ac_help
24 --disable-libtool-lock avoid locking (might break parallel builds)"
25 ac_help="$ac_help
26 --enable-maintainer-mode enable some make rules for maintainers"
27 ac_help="$ac_help
28 --with-smbwrapper Include SMB wrapper support
29 --without-smbwrapper Don't include SMB wrapper support (default)"
30 ac_help="$ac_help
31 --with-afs Include AFS support
32 --without-afs Don't include AFS support (default)"
33 ac_help="$ac_help
34 --with-dfs Include DFS support
35 --without-dfs Don't include DFS support (default)"
36 ac_help="$ac_help
37 --with-krb4=base-dir Include Kerberos IV support
38 --without-krb4 Don't include Kerberos IV support (default)"
39 ac_help="$ac_help
40 --with-srvtab[=instance] Include renewable AFS tickets
41 --without-srvtab Don't renewable AFS tickets (default)"
42 ac_help="$ac_help
43 --with-krb5=base-dir Include Kerberos 5 support
44 --without-krb5 Don't include Kerberos 5 support (default)"
45 ac_help="$ac_help
46 --with-automount Include AUTOMOUNT support
47 --without-automount Don't include AUTOMOUNT support (default)"
48 ac_help="$ac_help
49 --with-smbmount Include SMBMOUNT (Linux only) support
50 --without-smbmount Don't include SMBMOUNT support (default)"
51 ac_help="$ac_help
52 --with-pam Include PAM password database support
53 --without-pam Don't include PAM password database support (default)"
54 ac_help="$ac_help
55 --with-ldap Include LDAP support
56 --without-ldap Don't include LDAP support (default)"
57 ac_help="$ac_help
58 --with-nt5ldap Include NT5 LDAP support
59 --without-nt5ldap Don't include NT5 LDAP support (default)"
60 ac_help="$ac_help
61 --with-nt5ldap Include NT5 LDAP support
62 --without-nt5ldap Don't include NT5 LDAP support (default)"
63 ac_help="$ac_help
64 --with-nisplus Include NISPLUS password database support
65 --without-nisplus Don't include NISPLUS password database support (default)"
66 ac_help="$ac_help
67 --with-sam-pwdb={passdb,tdb,nt5ldap}
68 which password-database to use (passdb)"
69 ac_help="$ac_help
70 --with-surstdb Use SURS tdb database
71 --without-surstdb Don't use SURS tdb database (default)"
72 ac_help="$ac_help
73 --with-nisplus-home Include NISPLUS_HOME support
74 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
75 ac_help="$ac_help
76 --with-ssl Include SSL support
77 --without-ssl Don't include SSL support (default)
78 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
79 ac_help="$ac_help
80 --with-syslog Include experimental SYSLOG support
81 --without-syslog Don't include SYSLOG support (default)"
82 ac_help="$ac_help
83 --with-profile Include profile support
84 --without-profile Don't include profile support (default)"
85 ac_help="$ac_help
86 --with-netatalk Include experimental Netatalk support
87 --without-netatalk Don't include experimental Netatalk support (default)"
88 ac_help="$ac_help
89 --with-quotas Include experimental disk-quota support
90 --without-quotas Don't include experimental disk-quota support (default)"
91 ac_help="$ac_help
92 --with-utmp Include experimental utmp accounting
93 --without-utmp Don't include experimental utmp accounting (default)"
94 ac_help="$ac_help
95 --with-msdfs Include MS Dfs support
96 --without-msdfs Don't include MS Dfs support (default)"
97 ac_help="$ac_help
98 --with-sambaconfdir=DIR Where to put smb.conf etc. ($ac_default_prefix/lib)"
99 ac_help="$ac_help
100 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
101 ac_help="$ac_help
102 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
103 ac_help="$ac_help
104 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
106 # Initialize some variables set by options.
107 # The variables have the same names as the options, with
108 # dashes changed to underlines.
109 build=NONE
110 cache_file=./config.cache
111 exec_prefix=NONE
112 host=NONE
113 no_create=
114 nonopt=NONE
115 no_recursion=
116 prefix=NONE
117 program_prefix=NONE
118 program_suffix=NONE
119 program_transform_name=s,x,x,
120 silent=
121 site=
122 srcdir=
123 target=NONE
124 verbose=
125 x_includes=NONE
126 x_libraries=NONE
127 bindir='${exec_prefix}/bin'
128 sbindir='${exec_prefix}/sbin'
129 libexecdir='${exec_prefix}/libexec'
130 datadir='${prefix}/share'
131 sysconfdir='${prefix}/etc'
132 sharedstatedir='${prefix}/com'
133 localstatedir='${prefix}/var'
134 libdir='${exec_prefix}/lib'
135 includedir='${prefix}/include'
136 oldincludedir='/usr/include'
137 infodir='${prefix}/info'
138 mandir='${prefix}/man'
140 # Initialize some other variables.
141 subdirs=
142 MFLAGS= MAKEFLAGS=
143 SHELL=${CONFIG_SHELL-/bin/sh}
144 # Maximum number of lines to put in a shell here document.
145 ac_max_here_lines=12
147 ac_prev=
148 for ac_option
151 # If the previous option needs an argument, assign it.
152 if test -n "$ac_prev"; then
153 eval "$ac_prev=\$ac_option"
154 ac_prev=
155 continue
158 case "$ac_option" in
159 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
160 *) ac_optarg= ;;
161 esac
163 # Accept the important Cygnus configure options, so we can diagnose typos.
165 case "$ac_option" in
167 -bindir | --bindir | --bindi | --bind | --bin | --bi)
168 ac_prev=bindir ;;
169 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
170 bindir="$ac_optarg" ;;
172 -build | --build | --buil | --bui | --bu)
173 ac_prev=build ;;
174 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
175 build="$ac_optarg" ;;
177 -cache-file | --cache-file | --cache-fil | --cache-fi \
178 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
179 ac_prev=cache_file ;;
180 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
181 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
182 cache_file="$ac_optarg" ;;
184 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
185 ac_prev=datadir ;;
186 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
187 | --da=*)
188 datadir="$ac_optarg" ;;
190 -disable-* | --disable-*)
191 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
192 # Reject names that are not valid shell variable names.
193 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
194 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
196 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
197 eval "enable_${ac_feature}=no" ;;
199 -enable-* | --enable-*)
200 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
201 # Reject names that are not valid shell variable names.
202 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
203 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
205 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 case "$ac_option" in
207 *=*) ;;
208 *) ac_optarg=yes ;;
209 esac
210 eval "enable_${ac_feature}='$ac_optarg'" ;;
212 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
213 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
214 | --exec | --exe | --ex)
215 ac_prev=exec_prefix ;;
216 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
217 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
218 | --exec=* | --exe=* | --ex=*)
219 exec_prefix="$ac_optarg" ;;
221 -gas | --gas | --ga | --g)
222 # Obsolete; use --with-gas.
223 with_gas=yes ;;
225 -help | --help | --hel | --he)
226 # Omit some internal or obsolete options to make the list less imposing.
227 # This message is too long to be a string in the A/UX 3.1 sh.
228 cat << EOF
229 Usage: configure [options] [host]
230 Options: [defaults in brackets after descriptions]
231 Configuration:
232 --cache-file=FILE cache test results in FILE
233 --help print this message
234 --no-create do not create output files
235 --quiet, --silent do not print \`checking...' messages
236 --version print the version of autoconf that created configure
237 Directory and file names:
238 --prefix=PREFIX install architecture-independent files in PREFIX
239 [$ac_default_prefix]
240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
241 [same as prefix]
242 --bindir=DIR user executables in DIR [EPREFIX/bin]
243 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
244 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
245 --datadir=DIR read-only architecture-independent data in DIR
246 [PREFIX/share]
247 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
248 --sharedstatedir=DIR modifiable architecture-independent data in DIR
249 [PREFIX/com]
250 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
251 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
252 --includedir=DIR C header files in DIR [PREFIX/include]
253 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
254 --infodir=DIR info documentation in DIR [PREFIX/info]
255 --mandir=DIR man documentation in DIR [PREFIX/man]
256 --srcdir=DIR find the sources in DIR [configure dir or ..]
257 --program-prefix=PREFIX prepend PREFIX to installed program names
258 --program-suffix=SUFFIX append SUFFIX to installed program names
259 --program-transform-name=PROGRAM
260 run sed PROGRAM on installed program names
262 cat << EOF
263 Host type:
264 --build=BUILD configure for building on BUILD [BUILD=HOST]
265 --host=HOST configure for HOST [guessed]
266 --target=TARGET configure for TARGET [TARGET=HOST]
267 Features and packages:
268 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
269 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
270 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
271 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
272 --x-includes=DIR X include files are in DIR
273 --x-libraries=DIR X library files are in DIR
275 if test -n "$ac_help"; then
276 echo "--enable and --with options recognized:$ac_help"
278 exit 0 ;;
280 -host | --host | --hos | --ho)
281 ac_prev=host ;;
282 -host=* | --host=* | --hos=* | --ho=*)
283 host="$ac_optarg" ;;
285 -includedir | --includedir | --includedi | --included | --include \
286 | --includ | --inclu | --incl | --inc)
287 ac_prev=includedir ;;
288 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
289 | --includ=* | --inclu=* | --incl=* | --inc=*)
290 includedir="$ac_optarg" ;;
292 -infodir | --infodir | --infodi | --infod | --info | --inf)
293 ac_prev=infodir ;;
294 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
295 infodir="$ac_optarg" ;;
297 -libdir | --libdir | --libdi | --libd)
298 ac_prev=libdir ;;
299 -libdir=* | --libdir=* | --libdi=* | --libd=*)
300 libdir="$ac_optarg" ;;
302 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
303 | --libexe | --libex | --libe)
304 ac_prev=libexecdir ;;
305 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
306 | --libexe=* | --libex=* | --libe=*)
307 libexecdir="$ac_optarg" ;;
309 -localstatedir | --localstatedir | --localstatedi | --localstated \
310 | --localstate | --localstat | --localsta | --localst \
311 | --locals | --local | --loca | --loc | --lo)
312 ac_prev=localstatedir ;;
313 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
314 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
315 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
316 localstatedir="$ac_optarg" ;;
318 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
319 ac_prev=mandir ;;
320 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
321 mandir="$ac_optarg" ;;
323 -nfp | --nfp | --nf)
324 # Obsolete; use --without-fp.
325 with_fp=no ;;
327 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
328 | --no-cr | --no-c)
329 no_create=yes ;;
331 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
332 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
333 no_recursion=yes ;;
335 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
336 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
337 | --oldin | --oldi | --old | --ol | --o)
338 ac_prev=oldincludedir ;;
339 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
340 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
341 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
342 oldincludedir="$ac_optarg" ;;
344 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
345 ac_prev=prefix ;;
346 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
347 prefix="$ac_optarg" ;;
349 -program-prefix | --program-prefix | --program-prefi | --program-pref \
350 | --program-pre | --program-pr | --program-p)
351 ac_prev=program_prefix ;;
352 -program-prefix=* | --program-prefix=* | --program-prefi=* \
353 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
354 program_prefix="$ac_optarg" ;;
356 -program-suffix | --program-suffix | --program-suffi | --program-suff \
357 | --program-suf | --program-su | --program-s)
358 ac_prev=program_suffix ;;
359 -program-suffix=* | --program-suffix=* | --program-suffi=* \
360 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
361 program_suffix="$ac_optarg" ;;
363 -program-transform-name | --program-transform-name \
364 | --program-transform-nam | --program-transform-na \
365 | --program-transform-n | --program-transform- \
366 | --program-transform | --program-transfor \
367 | --program-transfo | --program-transf \
368 | --program-trans | --program-tran \
369 | --progr-tra | --program-tr | --program-t)
370 ac_prev=program_transform_name ;;
371 -program-transform-name=* | --program-transform-name=* \
372 | --program-transform-nam=* | --program-transform-na=* \
373 | --program-transform-n=* | --program-transform-=* \
374 | --program-transform=* | --program-transfor=* \
375 | --program-transfo=* | --program-transf=* \
376 | --program-trans=* | --program-tran=* \
377 | --progr-tra=* | --program-tr=* | --program-t=*)
378 program_transform_name="$ac_optarg" ;;
380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
381 | -silent | --silent | --silen | --sile | --sil)
382 silent=yes ;;
384 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
385 ac_prev=sbindir ;;
386 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
387 | --sbi=* | --sb=*)
388 sbindir="$ac_optarg" ;;
390 -sharedstatedir | --sharedstatedir | --sharedstatedi \
391 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
392 | --sharedst | --shareds | --shared | --share | --shar \
393 | --sha | --sh)
394 ac_prev=sharedstatedir ;;
395 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
396 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
397 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
398 | --sha=* | --sh=*)
399 sharedstatedir="$ac_optarg" ;;
401 -site | --site | --sit)
402 ac_prev=site ;;
403 -site=* | --site=* | --sit=*)
404 site="$ac_optarg" ;;
406 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
407 ac_prev=srcdir ;;
408 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
409 srcdir="$ac_optarg" ;;
411 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
412 | --syscon | --sysco | --sysc | --sys | --sy)
413 ac_prev=sysconfdir ;;
414 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
415 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
416 sysconfdir="$ac_optarg" ;;
418 -target | --target | --targe | --targ | --tar | --ta | --t)
419 ac_prev=target ;;
420 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
421 target="$ac_optarg" ;;
423 -v | -verbose | --verbose | --verbos | --verbo | --verb)
424 verbose=yes ;;
426 -version | --version | --versio | --versi | --vers)
427 echo "configure generated by autoconf version 2.13"
428 exit 0 ;;
430 -with-* | --with-*)
431 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
432 # Reject names that are not valid shell variable names.
433 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
434 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
436 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 case "$ac_option" in
438 *=*) ;;
439 *) ac_optarg=yes ;;
440 esac
441 eval "with_${ac_package}='$ac_optarg'" ;;
443 -without-* | --without-*)
444 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
445 # Reject names that are not valid shell variable names.
446 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
447 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
449 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 eval "with_${ac_package}=no" ;;
452 --x)
453 # Obsolete; use --with-x.
454 with_x=yes ;;
456 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
457 | --x-incl | --x-inc | --x-in | --x-i)
458 ac_prev=x_includes ;;
459 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
460 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
461 x_includes="$ac_optarg" ;;
463 -x-libraries | --x-libraries | --x-librarie | --x-librari \
464 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
465 ac_prev=x_libraries ;;
466 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
467 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
468 x_libraries="$ac_optarg" ;;
470 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
474 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
475 echo "configure: warning: $ac_option: invalid host type" 1>&2
477 if test "x$nonopt" != xNONE; then
478 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 nonopt="$ac_option"
483 esac
484 done
486 if test -n "$ac_prev"; then
487 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
492 # File descriptor usage:
493 # 0 standard input
494 # 1 file creation
495 # 2 errors and warnings
496 # 3 some systems may open it to /dev/tty
497 # 4 used on the Kubota Titan
498 # 6 checking for... messages and results
499 # 5 compiler messages saved in config.log
500 if test "$silent" = yes; then
501 exec 6>/dev/null
502 else
503 exec 6>&1
505 exec 5>./config.log
507 echo "\
508 This file contains any messages produced by compilers while
509 running configure, to aid debugging if configure makes a mistake.
510 " 1>&5
512 # Strip out --no-create and --no-recursion so they do not pile up.
513 # Also quote any args containing shell metacharacters.
514 ac_configure_args=
515 for ac_arg
517 case "$ac_arg" in
518 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
519 | --no-cr | --no-c) ;;
520 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
521 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
522 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
523 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
524 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 esac
526 done
528 # NLS nuisances.
529 # Only set these to C if already set. These must not be set unconditionally
530 # because not all systems understand e.g. LANG=C (notably SCO).
531 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
532 # Non-C LC_CTYPE values break the ctype check.
533 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
534 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
535 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
536 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
539 rm -rf conftest* confdefs.h
540 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
541 echo > confdefs.h
543 # A filename unique to this package, relative to the directory that
544 # configure is in, which we can look for to find out if srcdir is correct.
545 ac_unique_file=include/includes.h
547 # Find the source files, if location was not specified.
548 if test -z "$srcdir"; then
549 ac_srcdir_defaulted=yes
550 # Try the directory containing this script, then its parent.
551 ac_prog=$0
552 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
553 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
554 srcdir=$ac_confdir
555 if test ! -r $srcdir/$ac_unique_file; then
556 srcdir=..
558 else
559 ac_srcdir_defaulted=no
561 if test ! -r $srcdir/$ac_unique_file; then
562 if test "$ac_srcdir_defaulted" = yes; then
563 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
564 else
565 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
568 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
570 # Prefer explicitly selected file to automatically selected ones.
571 if test -z "$CONFIG_SITE"; then
572 if test "x$prefix" != xNONE; then
573 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
574 else
575 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
578 for ac_site_file in $CONFIG_SITE; do
579 if test -r "$ac_site_file"; then
580 echo "loading site script $ac_site_file"
581 . "$ac_site_file"
583 done
585 if test -r "$cache_file"; then
586 echo "loading cache $cache_file"
587 . $cache_file
588 else
589 echo "creating cache $cache_file"
590 > $cache_file
593 ac_ext=c
594 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
595 ac_cpp='$CPP $CPPFLAGS'
596 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
597 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
598 cross_compiling=$ac_cv_prog_cc_cross
600 ac_exeext=
601 ac_objext=o
602 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
603 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
604 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
605 ac_n= ac_c='
606 ' ac_t=' '
607 else
608 ac_n=-n ac_c= ac_t=
610 else
611 ac_n= ac_c='\c' ac_t=
616 # we want to be compatibe with older versions of Samba
629 # compile with optimisation and without debugging by default
630 CFLAGS=${CFLAGS-"-O"}
632 # Extract the first word of "gcc", so it can be a program name with args.
633 set dummy gcc; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
638 else
639 if test -n "$CC"; then
640 ac_cv_prog_CC="$CC" # Let the user override the test.
641 else
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
643 ac_dummy="$PATH"
644 for ac_dir in $ac_dummy; do
645 test -z "$ac_dir" && ac_dir=.
646 if test -f $ac_dir/$ac_word; then
647 ac_cv_prog_CC="gcc"
648 break
650 done
651 IFS="$ac_save_ifs"
654 CC="$ac_cv_prog_CC"
655 if test -n "$CC"; then
656 echo "$ac_t""$CC" 1>&6
657 else
658 echo "$ac_t""no" 1>&6
661 if test -z "$CC"; then
662 # Extract the first word of "cc", so it can be a program name with args.
663 set dummy cc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
668 else
669 if test -n "$CC"; then
670 ac_cv_prog_CC="$CC" # Let the user override the test.
671 else
672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
673 ac_prog_rejected=no
674 ac_dummy="$PATH"
675 for ac_dir in $ac_dummy; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
679 ac_prog_rejected=yes
680 continue
682 ac_cv_prog_CC="cc"
683 break
685 done
686 IFS="$ac_save_ifs"
687 if test $ac_prog_rejected = yes; then
688 # We found a bogon in the path, so make sure we never use it.
689 set dummy $ac_cv_prog_CC
690 shift
691 if test $# -gt 0; then
692 # We chose a different compiler from the bogus one.
693 # However, it has the same basename, so the bogon will be chosen
694 # first if we set CC to just the basename; use the full file name.
695 shift
696 set dummy "$ac_dir/$ac_word" "$@"
697 shift
698 ac_cv_prog_CC="$@"
703 CC="$ac_cv_prog_CC"
704 if test -n "$CC"; then
705 echo "$ac_t""$CC" 1>&6
706 else
707 echo "$ac_t""no" 1>&6
710 if test -z "$CC"; then
711 case "`uname -s`" in
712 *win32* | *WIN32*)
713 # Extract the first word of "cl", so it can be a program name with args.
714 set dummy cl; ac_word=$2
715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
716 echo "configure:717: checking for $ac_word" >&5
717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
719 else
720 if test -n "$CC"; then
721 ac_cv_prog_CC="$CC" # Let the user override the test.
722 else
723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
724 ac_dummy="$PATH"
725 for ac_dir in $ac_dummy; do
726 test -z "$ac_dir" && ac_dir=.
727 if test -f $ac_dir/$ac_word; then
728 ac_cv_prog_CC="cl"
729 break
731 done
732 IFS="$ac_save_ifs"
735 CC="$ac_cv_prog_CC"
736 if test -n "$CC"; then
737 echo "$ac_t""$CC" 1>&6
738 else
739 echo "$ac_t""no" 1>&6
742 esac
744 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
750 ac_ext=c
751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752 ac_cpp='$CPP $CPPFLAGS'
753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755 cross_compiling=$ac_cv_prog_cc_cross
757 cat > conftest.$ac_ext << EOF
759 #line 760 "configure"
760 #include "confdefs.h"
762 main(){return(0);}
764 if { (eval echo configure:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
765 ac_cv_prog_cc_works=yes
766 # If we can't run a trivial program, we are probably using a cross compiler.
767 if (./conftest; exit) 2>/dev/null; then
768 ac_cv_prog_cc_cross=no
769 else
770 ac_cv_prog_cc_cross=yes
772 else
773 echo "configure: failed program was:" >&5
774 cat conftest.$ac_ext >&5
775 ac_cv_prog_cc_works=no
777 rm -fr conftest*
778 ac_ext=c
779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
780 ac_cpp='$CPP $CPPFLAGS'
781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
783 cross_compiling=$ac_cv_prog_cc_cross
785 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
786 if test $ac_cv_prog_cc_works = no; then
787 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
791 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
792 cross_compiling=$ac_cv_prog_cc_cross
794 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
795 echo "configure:796: checking whether we are using GNU C" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
798 else
799 cat > conftest.c <<EOF
800 #ifdef __GNUC__
801 yes;
802 #endif
804 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
805 ac_cv_prog_gcc=yes
806 else
807 ac_cv_prog_gcc=no
811 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
813 if test $ac_cv_prog_gcc = yes; then
814 GCC=yes
815 else
816 GCC=
819 ac_test_CFLAGS="${CFLAGS+set}"
820 ac_save_CFLAGS="$CFLAGS"
821 CFLAGS=
822 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
823 echo "configure:824: checking whether ${CC-cc} accepts -g" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
826 else
827 echo 'void f(){}' > conftest.c
828 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
829 ac_cv_prog_cc_g=yes
830 else
831 ac_cv_prog_cc_g=no
833 rm -f conftest*
837 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
838 if test "$ac_test_CFLAGS" = set; then
839 CFLAGS="$ac_save_CFLAGS"
840 elif test $ac_cv_prog_cc_g = yes; then
841 if test "$GCC" = yes; then
842 CFLAGS="-g -O2"
843 else
844 CFLAGS="-g"
846 else
847 if test "$GCC" = yes; then
848 CFLAGS="-O2"
849 else
850 CFLAGS=
854 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
855 echo "configure:856: checking how to run the C preprocessor" >&5
856 # On Suns, sometimes $CPP names a directory.
857 if test -n "$CPP" && test -d "$CPP"; then
858 CPP=
860 if test -z "$CPP"; then
861 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
862 echo $ac_n "(cached) $ac_c" 1>&6
863 else
864 # This must be in double quotes, not single quotes, because CPP may get
865 # substituted into the Makefile and "${CC-cc}" will confuse make.
866 CPP="${CC-cc} -E"
867 # On the NeXT, cc -E runs the code through the compiler's parser,
868 # not just through cpp.
869 cat > conftest.$ac_ext <<EOF
870 #line 871 "configure"
871 #include "confdefs.h"
872 #include <assert.h>
873 Syntax Error
875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
876 { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
878 if test -z "$ac_err"; then
880 else
881 echo "$ac_err" >&5
882 echo "configure: failed program was:" >&5
883 cat conftest.$ac_ext >&5
884 rm -rf conftest*
885 CPP="${CC-cc} -E -traditional-cpp"
886 cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
889 #include <assert.h>
890 Syntax Error
892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
893 { (eval echo configure:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
895 if test -z "$ac_err"; then
897 else
898 echo "$ac_err" >&5
899 echo "configure: failed program was:" >&5
900 cat conftest.$ac_ext >&5
901 rm -rf conftest*
902 CPP="${CC-cc} -nologo -E"
903 cat > conftest.$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
906 #include <assert.h>
907 Syntax Error
909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
910 { (eval echo configure:911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
912 if test -z "$ac_err"; then
914 else
915 echo "$ac_err" >&5
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
918 rm -rf conftest*
919 CPP=/lib/cpp
921 rm -f conftest*
923 rm -f conftest*
925 rm -f conftest*
926 ac_cv_prog_CPP="$CPP"
928 CPP="$ac_cv_prog_CPP"
929 else
930 ac_cv_prog_CPP="$CPP"
932 echo "$ac_t""$CPP" 1>&6
934 ac_aux_dir=
935 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
936 if test -f $ac_dir/install-sh; then
937 ac_aux_dir=$ac_dir
938 ac_install_sh="$ac_aux_dir/install-sh -c"
939 break
940 elif test -f $ac_dir/install.sh; then
941 ac_aux_dir=$ac_dir
942 ac_install_sh="$ac_aux_dir/install.sh -c"
943 break
945 done
946 if test -z "$ac_aux_dir"; then
947 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
949 ac_config_guess=$ac_aux_dir/config.guess
950 ac_config_sub=$ac_aux_dir/config.sub
951 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
953 # Find a good install program. We prefer a C program (faster),
954 # so one script is as good as another. But avoid the broken or
955 # incompatible versions:
956 # SysV /etc/install, /usr/sbin/install
957 # SunOS /usr/etc/install
958 # IRIX /sbin/install
959 # AIX /bin/install
960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
963 # ./install, which can be erroneously created by make from ./install.sh.
964 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
965 echo "configure:966: checking for a BSD compatible install" >&5
966 if test -z "$INSTALL"; then
967 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
969 else
970 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
971 for ac_dir in $PATH; do
972 # Account for people who put trailing slashes in PATH elements.
973 case "$ac_dir/" in
974 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
976 # OSF1 and SCO ODT 3.0 have their own names for install.
977 # Don't use installbsd from OSF since it installs stuff as root
978 # by default.
979 for ac_prog in ginstall scoinst install; do
980 if test -f $ac_dir/$ac_prog; then
981 if test $ac_prog = install &&
982 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
983 # AIX install. It has an incompatible calling convention.
985 else
986 ac_cv_path_install="$ac_dir/$ac_prog -c"
987 break 2
990 done
992 esac
993 done
994 IFS="$ac_save_IFS"
997 if test "${ac_cv_path_install+set}" = set; then
998 INSTALL="$ac_cv_path_install"
999 else
1000 # As a last resort, use the slow shell script. We don't cache a
1001 # path for INSTALL within a source directory, because that will
1002 # break other packages using the cache if that directory is
1003 # removed, or if the path is relative.
1004 INSTALL="$ac_install_sh"
1007 echo "$ac_t""$INSTALL" 1>&6
1009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1010 # It thinks the first close brace ends the variable substitution.
1011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1017 for ac_prog in mawk gawk nawk awk
1019 # Extract the first word of "$ac_prog", so it can be a program name with args.
1020 set dummy $ac_prog; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 if test -n "$AWK"; then
1027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1028 else
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1030 ac_dummy="$PATH"
1031 for ac_dir in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_prog_AWK="$ac_prog"
1035 break
1037 done
1038 IFS="$ac_save_ifs"
1041 AWK="$ac_cv_prog_AWK"
1042 if test -n "$AWK"; then
1043 echo "$ac_t""$AWK" 1>&6
1044 else
1045 echo "$ac_t""no" 1>&6
1048 test -n "$AWK" && break
1049 done
1052 # Check whether --enable-static or --disable-static was given.
1053 if test "${enable_static+set}" = set; then
1054 enableval="$enable_static"
1055 p=${PACKAGE-default}
1056 case "$enableval" in
1057 yes) enable_static=yes ;;
1058 no) enable_static=no ;;
1060 enable_static=no
1061 # Look at the argument we got. We use all the common list separators.
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1063 for pkg in $enableval; do
1064 if test "X$pkg" = "X$p"; then
1065 enable_static=yes
1067 done
1068 IFS="$ac_save_ifs"
1070 esac
1071 else
1072 enable_static=no
1077 # Check whether --enable-shared or --disable-shared was given.
1078 if test "${enable_shared+set}" = set; then
1079 enableval="$enable_shared"
1080 p=${PACKAGE-default}
1081 case "$enableval" in
1082 yes) enable_shared=yes ;;
1083 no) enable_shared=no ;;
1085 enable_shared=no
1086 # Look at the argument we got. We use all the common list separators.
1087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1088 for pkg in $enableval; do
1089 if test "X$pkg" = "X$p"; then
1090 enable_shared=yes
1092 done
1093 IFS="$ac_save_ifs"
1095 esac
1096 else
1097 enable_shared=yes
1100 # Check whether --enable-fast-install or --disable-fast-install was given.
1101 if test "${enable_fast_install+set}" = set; then
1102 enableval="$enable_fast_install"
1103 p=${PACKAGE-default}
1104 case "$enableval" in
1105 yes) enable_fast_install=yes ;;
1106 no) enable_fast_install=no ;;
1108 enable_fast_install=no
1109 # Look at the argument we got. We use all the common list separators.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1111 for pkg in $enableval; do
1112 if test "X$pkg" = "X$p"; then
1113 enable_fast_install=yes
1115 done
1116 IFS="$ac_save_ifs"
1118 esac
1119 else
1120 enable_fast_install=yes
1124 # Make sure we can run config.sub.
1125 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1126 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1129 echo $ac_n "checking host system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking host system type" >&5
1132 host_alias=$host
1133 case "$host_alias" in
1134 NONE)
1135 case $nonopt in
1136 NONE)
1137 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1138 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1139 fi ;;
1140 *) host_alias=$nonopt ;;
1141 esac ;;
1142 esac
1144 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1145 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1146 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1147 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1148 echo "$ac_t""$host" 1>&6
1150 echo $ac_n "checking build system type""... $ac_c" 1>&6
1151 echo "configure:1152: checking build system type" >&5
1153 build_alias=$build
1154 case "$build_alias" in
1155 NONE)
1156 case $nonopt in
1157 NONE) build_alias=$host_alias ;;
1158 *) build_alias=$nonopt ;;
1159 esac ;;
1160 esac
1162 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1163 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1164 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1165 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1166 echo "$ac_t""$build" 1>&6
1168 # Extract the first word of "ranlib", so it can be a program name with args.
1169 set dummy ranlib; ac_word=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1174 else
1175 if test -n "$RANLIB"; then
1176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1177 else
1178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 ac_dummy="$PATH"
1180 for ac_dir in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_RANLIB="ranlib"
1184 break
1186 done
1187 IFS="$ac_save_ifs"
1188 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1191 RANLIB="$ac_cv_prog_RANLIB"
1192 if test -n "$RANLIB"; then
1193 echo "$ac_t""$RANLIB" 1>&6
1194 else
1195 echo "$ac_t""no" 1>&6
1198 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1199 if test "${with_gnu_ld+set}" = set; then
1200 withval="$with_gnu_ld"
1201 test "$withval" = no || with_gnu_ld=yes
1202 else
1203 with_gnu_ld=no
1206 ac_prog=ld
1207 if test "$ac_cv_prog_gcc" = yes; then
1208 # Check if gcc -print-prog-name=ld gives a path.
1209 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1210 echo "configure:1211: checking for ld used by GCC" >&5
1211 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1212 case "$ac_prog" in
1213 # Accept absolute paths.
1214 [\\/]* | [A-Za-z]:[\\/]*)
1215 re_direlt='/[^/][^/]*/\.\./'
1216 # Canonicalize the path of ld
1217 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1219 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1220 done
1221 test -z "$LD" && LD="$ac_prog"
1224 # If it fails, then pretend we aren't using GCC.
1225 ac_prog=ld
1228 # If it is relative, then search for the first ld in PATH.
1229 with_gnu_ld=unknown
1231 esac
1232 elif test "$with_gnu_ld" = yes; then
1233 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1234 echo "configure:1235: checking for GNU ld" >&5
1235 else
1236 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1237 echo "configure:1238: checking for non-GNU ld" >&5
1239 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1241 else
1242 if test -z "$LD"; then
1243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1244 for ac_dir in $PATH; do
1245 test -z "$ac_dir" && ac_dir=.
1246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1247 ac_cv_path_LD="$ac_dir/$ac_prog"
1248 # Check to see if the program is GNU ld. I'd rather use --version,
1249 # but apparently some GNU ld's only accept -v.
1250 # Break only if it was the GNU/non-GNU ld that we prefer.
1251 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1252 test "$with_gnu_ld" != no && break
1253 else
1254 test "$with_gnu_ld" != yes && break
1257 done
1258 IFS="$ac_save_ifs"
1259 else
1260 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1264 LD="$ac_cv_path_LD"
1265 if test -n "$LD"; then
1266 echo "$ac_t""$LD" 1>&6
1267 else
1268 echo "$ac_t""no" 1>&6
1270 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1271 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1272 echo "configure:1273: checking if the linker ($LD) is GNU ld" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275 else
1276 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1277 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1278 ac_cv_prog_gnu_ld=yes
1279 else
1280 ac_cv_prog_gnu_ld=no
1284 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1287 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1288 echo "configure:1289: checking for BSD-compatible nm" >&5
1289 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292 if test -n "$NM"; then
1293 # Let the user override the test.
1294 ac_cv_path_NM="$NM"
1295 else
1296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1297 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1298 test -z "$ac_dir" && ac_dir=.
1299 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1300 # Check to see if the nm accepts a BSD-compat flag.
1301 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1302 # nm: unknown option "B" ignored
1303 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1304 ac_cv_path_NM="$ac_dir/nm -B"
1305 break
1306 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1307 ac_cv_path_NM="$ac_dir/nm -p"
1308 break
1309 else
1310 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1311 continue # so that we can try to find one that supports BSD flags
1314 done
1315 IFS="$ac_save_ifs"
1316 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1320 NM="$ac_cv_path_NM"
1321 echo "$ac_t""$NM" 1>&6
1323 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether ln -s works" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 rm -f conftestdata
1329 if ln -s X conftestdata 2>/dev/null
1330 then
1331 rm -f conftestdata
1332 ac_cv_prog_LN_S="ln -s"
1333 else
1334 ac_cv_prog_LN_S=ln
1337 LN_S="$ac_cv_prog_LN_S"
1338 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1339 echo "$ac_t""yes" 1>&6
1340 else
1341 echo "$ac_t""no" 1>&6
1345 case "$target" in
1346 NONE) lt_target="$host" ;;
1347 *) lt_target="$target" ;;
1348 esac
1350 # Check for any special flags to pass to ltconfig.
1351 libtool_flags="--cache-file=$cache_file"
1352 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1353 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1354 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1355 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1356 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1357 libtool_flags="$libtool_flags --enable-dlopen"
1359 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1360 if test "${enable_libtool_lock+set}" = set; then
1361 enableval="$enable_libtool_lock"
1365 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1366 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1368 # Some flags need to be propagated to the compiler or linker for good
1369 # libtool support.
1370 case "$lt_target" in
1371 *-*-irix6*)
1372 # Find out which ABI we are using.
1373 echo '#line 1374 "configure"' > conftest.$ac_ext
1374 if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 case "`/usr/bin/file conftest.o`" in
1376 *32-bit*)
1377 LD="${LD-ld} -32"
1379 *N32*)
1380 LD="${LD-ld} -n32"
1382 *64-bit*)
1383 LD="${LD-ld} -64"
1385 esac
1387 rm -rf conftest*
1390 *-*-sco3.2v5*)
1391 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1392 SAVE_CFLAGS="$CFLAGS"
1393 CFLAGS="$CFLAGS -belf"
1394 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1395 echo "configure:1396: checking whether the C compiler needs -belf" >&5
1396 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1398 else
1399 cat > conftest.$ac_ext <<EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1403 int main() {
1405 ; return 0; }
1407 if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1408 rm -rf conftest*
1409 lt_cv_cc_needs_belf=yes
1410 else
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1413 rm -rf conftest*
1414 lt_cv_cc_needs_belf=no
1416 rm -f conftest*
1419 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1422 CFLAGS="$SAVE_CFLAGS"
1427 esac
1430 # Save cache, so that ltconfig can load it
1431 cat > confcache <<\EOF
1432 # This file is a shell script that caches the results of configure
1433 # tests run on this system so they can be shared between configure
1434 # scripts and configure runs. It is not useful on other systems.
1435 # If it contains results you don't want to keep, you may remove or edit it.
1437 # By default, configure uses ./config.cache as the cache file,
1438 # creating it if it does not exist already. You can give configure
1439 # the --cache-file=FILE option to use a different cache file; that is
1440 # what configure does when it calls configure scripts in
1441 # subdirectories, so they share the cache.
1442 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1443 # config.status only pays attention to the cache file if you give it the
1444 # --recheck option to rerun configure.
1447 # The following way of writing the cache mishandles newlines in values,
1448 # but we know of no workaround that is simple, portable, and efficient.
1449 # So, don't put newlines in cache variables' values.
1450 # Ultrix sh set writes to stderr and can't be redirected directly,
1451 # and sets the high bit in the cache file unless we assign to the vars.
1452 (set) 2>&1 |
1453 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1454 *ac_space=\ *)
1455 # `set' does not quote correctly, so add quotes (double-quote substitution
1456 # turns \\\\ into \\, and sed turns \\ into \).
1457 sed -n \
1458 -e "s/'/'\\\\''/g" \
1459 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1462 # `set' quotes correctly as required by POSIX, so do not add quotes.
1463 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1465 esac >> confcache
1466 if cmp -s $cache_file confcache; then
1468 else
1469 if test -w $cache_file; then
1470 echo "updating cache $cache_file"
1471 cat confcache > $cache_file
1472 else
1473 echo "not updating unwritable cache $cache_file"
1476 rm -f confcache
1479 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1480 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1481 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1482 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1483 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1484 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1485 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1486 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1488 # Reload cache, that may have been modified by ltconfig
1489 if test -r "$cache_file"; then
1490 echo "loading cache $cache_file"
1491 . $cache_file
1492 else
1493 echo "creating cache $cache_file"
1494 > $cache_file
1498 # This can be used to rebuild libtool when needed
1499 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1501 # Always use our own libtool.
1502 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1504 # Redirect the config.log output again, so that the ltconfig log is not
1505 # clobbered by the next message.
1506 exec 5>>./config.log
1510 if test "x$CC" != xcc; then
1511 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether $CC and cc understand -c and -o together" >&5
1513 else
1514 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether cc understands -c and -o together" >&5
1517 set dummy $CC; ac_cc="`echo $2 |
1518 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1519 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1521 else
1522 echo 'foo(){}' > conftest.c
1523 # Make sure it works both with $CC and with simple cc.
1524 # We do the test twice because some compilers refuse to overwrite an
1525 # existing .o file with -o, though they will create one.
1526 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1527 if { (eval echo configure:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1528 test -f conftest.o && { (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1529 then
1530 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1531 if test "x$CC" != xcc; then
1532 # Test first that cc exists at all.
1533 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1534 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1535 if { (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1536 test -f conftest.o && { (eval echo configure:1537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1537 then
1538 # cc works too.
1540 else
1541 # cc exists but doesn't like -o.
1542 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1546 else
1547 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1549 rm -f conftest*
1552 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 else
1555 echo "$ac_t""no" 1>&6
1556 cat >> confdefs.h <<\EOF
1557 #define NO_MINUS_C_MINUS_O 1
1562 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1563 BROKEN_CC=
1564 else
1565 BROKEN_CC=#
1569 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1570 echo "configure:1571: checking that the C compiler understands volatile" >&5
1571 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1573 else
1575 cat > conftest.$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 #include <sys/types.h>
1579 int main() {
1580 volatile int i = 0
1581 ; return 0; }
1583 if { (eval echo configure:1584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1584 rm -rf conftest*
1585 samba_cv_volatile=yes
1586 else
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1589 rm -rf conftest*
1590 samba_cv_volatile=no
1592 rm -f conftest*
1595 echo "$ac_t""$samba_cv_volatile" 1>&6
1596 if test x"$samba_cv_volatile" = x"yes"; then
1597 cat >> confdefs.h <<\EOF
1598 #define HAVE_VOLATILE 1
1606 # Do some error checking and defaulting for the host and target type.
1607 # The inputs are:
1608 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1610 # The rules are:
1611 # 1. You are not allowed to specify --host, --target, and nonopt at the
1612 # same time.
1613 # 2. Host defaults to nonopt.
1614 # 3. If nonopt is not specified, then host defaults to the current host,
1615 # as determined by config.guess.
1616 # 4. Target and build default to nonopt.
1617 # 5. If nonopt is not specified, then target and build default to host.
1619 # The aliases save the names the user supplied, while $host etc.
1620 # will get canonicalized.
1621 case $host---$target---$nonopt in
1622 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1623 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1624 esac
1627 # Make sure we can run config.sub.
1628 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1629 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1632 echo $ac_n "checking host system type""... $ac_c" 1>&6
1633 echo "configure:1634: checking host system type" >&5
1635 host_alias=$host
1636 case "$host_alias" in
1637 NONE)
1638 case $nonopt in
1639 NONE)
1640 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1641 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1642 fi ;;
1643 *) host_alias=$nonopt ;;
1644 esac ;;
1645 esac
1647 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1648 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651 echo "$ac_t""$host" 1>&6
1653 echo $ac_n "checking target system type""... $ac_c" 1>&6
1654 echo "configure:1655: checking target system type" >&5
1656 target_alias=$target
1657 case "$target_alias" in
1658 NONE)
1659 case $nonopt in
1660 NONE) target_alias=$host_alias ;;
1661 *) target_alias=$nonopt ;;
1662 esac ;;
1663 esac
1665 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1666 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669 echo "$ac_t""$target" 1>&6
1671 echo $ac_n "checking build system type""... $ac_c" 1>&6
1672 echo "configure:1673: checking build system type" >&5
1674 build_alias=$build
1675 case "$build_alias" in
1676 NONE)
1677 case $nonopt in
1678 NONE) build_alias=$host_alias ;;
1679 *) build_alias=$nonopt ;;
1680 esac ;;
1681 esac
1683 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1684 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687 echo "$ac_t""$build" 1>&6
1689 test "$host_alias" != "$target_alias" &&
1690 test "$program_prefix$program_suffix$program_transform_name" = \
1691 NONENONEs,x,x, &&
1692 program_prefix=${target_alias}-
1695 case "$host_os" in
1696 *irix*) cat >> confdefs.h <<\EOF
1697 #include <standards.h>
1701 esac
1705 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1706 echo "configure:1707: checking config.cache system type" >&5
1707 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1708 test x"$ac_cv_host_system_type" != x"$host"; } ||
1709 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1710 test x"$ac_cv_build_system_type" != x"$build"; } ||
1711 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1712 test x"$ac_cv_target_system_type" != x"$target"; }; then
1713 echo "$ac_t""different" 1>&6
1714 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1715 else
1716 echo "$ac_t""same" 1>&6
1718 ac_cv_host_system_type="$host"
1719 ac_cv_build_system_type="$build"
1720 ac_cv_target_system_type="$target"
1723 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1724 if test "${enable_maintainer_mode+set}" = set; then
1725 enableval="$enable_maintainer_mode"
1726 maint_mode=$enableval
1727 else
1728 maint_mode=no
1731 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1733 # Extract the first word of "autoconf", so it can be a program name with args.
1734 set dummy autoconf; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 case "$AUTOCONF" in
1742 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1744 ?:/*)
1745 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a dos path.
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1749 ac_dummy="$PATH"
1750 for ac_dir in $ac_dummy; do
1751 test -z "$ac_dir" && ac_dir=.
1752 if test -f $ac_dir/$ac_word; then
1753 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1754 break
1756 done
1757 IFS="$ac_save_ifs"
1758 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1760 esac
1762 AUTOCONF="$ac_cv_path_AUTOCONF"
1763 if test -n "$AUTOCONF"; then
1764 echo "$ac_t""$AUTOCONF" 1>&6
1765 else
1766 echo "$ac_t""no" 1>&6
1770 # Extract the first word of "autoheader", so it can be a program name with args.
1771 set dummy autoheader; ac_word=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1774 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777 case "$AUTOHEADER" in
1779 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1781 ?:/*)
1782 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a dos path.
1785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1786 ac_dummy="$PATH"
1787 for ac_dir in $ac_dummy; do
1788 test -z "$ac_dir" && ac_dir=.
1789 if test -f $ac_dir/$ac_word; then
1790 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1791 break
1793 done
1794 IFS="$ac_save_ifs"
1795 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1797 esac
1799 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1800 if test -n "$AUTOHEADER"; then
1801 echo "$ac_t""$AUTOHEADER" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1810 # Config CPPFLAG settings for strange OS's that must be set
1811 # before other tests.
1813 case "$host_os" in
1814 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1815 *hpux*)
1816 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1817 echo "configure:1818: checking whether ${CC-cc} accepts -Ae" >&5
1818 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1820 else
1821 echo 'void f(){}' > conftest.c
1822 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1823 ac_cv_prog_cc_Ae=yes
1824 else
1825 ac_cv_prog_cc_Ae=no
1827 rm -f conftest*
1831 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1832 if test $ac_cv_prog_cc_Ae = yes; then
1833 CPPFLAGS="$CPPFLAGS -Ae"
1836 # Defines needed for HPUX support.
1837 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1838 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1840 case `uname -r` in
1841 *9*|*10*)
1842 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1843 cat >> confdefs.h <<\EOF
1844 #define USE_BOTH_CRYPT_CALLS 1
1848 *11*)
1849 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1850 cat >> confdefs.h <<\EOF
1851 #define USE_BOTH_CRYPT_CALLS 1
1855 esac
1858 # AIX4.x doesn't even admit to having large
1859 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1861 *aix4*)
1862 echo "$ac_t""enabling large file support" 1>&6
1863 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1866 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1867 # to the existance of large files..
1868 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1869 # recommendations on large file support, however it makes the
1870 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1871 # recommendation makes the compile fail on gcc2.7. JRA.
1873 *solaris*)
1874 case `uname -r` in
1875 5.6*|5.7*)
1876 echo "$ac_t""enabling large file support" 1>&6
1877 if test "$ac_cv_prog_gcc" = yes; then
1878 ${CC-cc} -v >conftest.c 2>&1
1879 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1880 rm -fr conftest.c
1881 case "$ac_cv_gcc_compiler_version_number" in
1882 *"gcc version 2.6"*|*"gcc version 2.7"*)
1883 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1886 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1888 esac
1889 else
1890 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1893 esac
1896 # Tests needed for SINIX large file support.
1898 *sysv4*)
1899 if test $host = mips-sni-sysv4 ; then
1900 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1901 echo "configure:1902: checking for LFS support" >&5
1902 old_CPPFLAGS="$CPPFLAGS"
1903 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1904 if test "$cross_compiling" = yes; then
1905 SINIX_LFS_SUPPORT=cross
1906 else
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1911 #include <unistd.h>
1912 main () {
1913 #if _LFS64_LARGEFILE == 1
1914 exit(0);
1915 #else
1916 exit(1);
1917 #endif
1920 if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1921 then
1922 SINIX_LFS_SUPPORT=yes
1923 else
1924 echo "configure: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1926 rm -fr conftest*
1927 SINIX_LFS_SUPPORT=no
1929 rm -fr conftest*
1932 CPPFLAGS="$old_CPPFLAGS"
1933 if test x$SINIX_LFS_SUPPORT = xyes ; then
1934 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1935 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1936 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1937 LIBS="`getconf LFS64_LIBS` $LIBS"
1939 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1944 # Tests needed for glibc 2.1 large file support.
1946 *linux*)
1947 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1949 *hurd*)
1950 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1951 echo "configure:1952: checking for LFS support" >&5
1952 old_CPPFLAGS="$CPPFLAGS"
1953 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1954 if test "$cross_compiling" = yes; then
1955 GLIBC_LFS_SUPPORT=cross
1956 else
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1961 #include <unistd.h>
1962 main () {
1963 #if _LFS64_LARGEFILE == 1
1964 exit(0);
1965 #else
1966 exit(1);
1967 #endif
1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1971 then
1972 GLIBC_LFS_SUPPORT=yes
1973 else
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 rm -fr conftest*
1977 GLIBC_LFS_SUPPORT=no
1979 rm -fr conftest*
1982 CPPFLAGS="$old_CPPFLAGS"
1983 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1984 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1986 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1989 esac
1991 echo $ac_n "checking for inline""... $ac_c" 1>&6
1992 echo "configure:1993: checking for inline" >&5
1993 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1995 else
1996 ac_cv_c_inline=no
1997 for ac_kw in inline __inline__ __inline; do
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2002 int main() {
2003 } int $ac_kw foo() {
2004 ; return 0; }
2006 if { (eval echo configure:2007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2007 rm -rf conftest*
2008 ac_cv_c_inline=$ac_kw; break
2009 else
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 rm -f conftest*
2014 done
2018 echo "$ac_t""$ac_cv_c_inline" 1>&6
2019 case "$ac_cv_c_inline" in
2020 inline | yes) ;;
2021 no) cat >> confdefs.h <<\EOF
2022 #define inline
2025 *) cat >> confdefs.h <<EOF
2026 #define inline $ac_cv_c_inline
2029 esac
2031 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2032 echo "configure:2033: checking for ANSI C header files" >&5
2033 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2035 else
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <stdlib.h>
2040 #include <stdarg.h>
2041 #include <string.h>
2042 #include <float.h>
2044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2045 { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2047 if test -z "$ac_err"; then
2048 rm -rf conftest*
2049 ac_cv_header_stdc=yes
2050 else
2051 echo "$ac_err" >&5
2052 echo "configure: failed program was:" >&5
2053 cat conftest.$ac_ext >&5
2054 rm -rf conftest*
2055 ac_cv_header_stdc=no
2057 rm -f conftest*
2059 if test $ac_cv_header_stdc = yes; then
2060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 #include <string.h>
2066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2067 egrep "memchr" >/dev/null 2>&1; then
2069 else
2070 rm -rf conftest*
2071 ac_cv_header_stdc=no
2073 rm -f conftest*
2077 if test $ac_cv_header_stdc = yes; then
2078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 #include <stdlib.h>
2084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2085 egrep "free" >/dev/null 2>&1; then
2087 else
2088 rm -rf conftest*
2089 ac_cv_header_stdc=no
2091 rm -f conftest*
2095 if test $ac_cv_header_stdc = yes; then
2096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2097 if test "$cross_compiling" = yes; then
2099 else
2100 cat > conftest.$ac_ext <<EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2103 #include <ctype.h>
2104 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2105 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2107 int main () { int i; for (i = 0; i < 256; i++)
2108 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2109 exit (0); }
2112 if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2113 then
2115 else
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 rm -fr conftest*
2119 ac_cv_header_stdc=no
2121 rm -fr conftest*
2127 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2128 if test $ac_cv_header_stdc = yes; then
2129 cat >> confdefs.h <<\EOF
2130 #define STDC_HEADERS 1
2135 ac_header_dirent=no
2136 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2139 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_hdr that defines DIR" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2148 #include <$ac_hdr>
2149 int main() {
2150 DIR *dirp = 0;
2151 ; return 0; }
2153 if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2154 rm -rf conftest*
2155 eval "ac_cv_header_dirent_$ac_safe=yes"
2156 else
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 rm -rf conftest*
2160 eval "ac_cv_header_dirent_$ac_safe=no"
2162 rm -f conftest*
2164 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2167 cat >> confdefs.h <<EOF
2168 #define $ac_tr_hdr 1
2170 ac_header_dirent=$ac_hdr; break
2171 else
2172 echo "$ac_t""no" 1>&6
2174 done
2175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2176 if test $ac_header_dirent = dirent.h; then
2177 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2178 echo "configure:2179: checking for opendir in -ldir" >&5
2179 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2182 else
2183 ac_save_LIBS="$LIBS"
2184 LIBS="-ldir $LIBS"
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* Override any gcc2 internal prototype to avoid an error. */
2189 /* We use char because int might match the return type of a gcc2
2190 builtin and then its argument prototype would still apply. */
2191 char opendir();
2193 int main() {
2194 opendir()
2195 ; return 0; }
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2198 rm -rf conftest*
2199 eval "ac_cv_lib_$ac_lib_var=yes"
2200 else
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2203 rm -rf conftest*
2204 eval "ac_cv_lib_$ac_lib_var=no"
2206 rm -f conftest*
2207 LIBS="$ac_save_LIBS"
2210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2212 LIBS="$LIBS -ldir"
2213 else
2214 echo "$ac_t""no" 1>&6
2217 else
2218 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2219 echo "configure:2220: checking for opendir in -lx" >&5
2220 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2223 else
2224 ac_save_LIBS="$LIBS"
2225 LIBS="-lx $LIBS"
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* Override any gcc2 internal prototype to avoid an error. */
2230 /* We use char because int might match the return type of a gcc2
2231 builtin and then its argument prototype would still apply. */
2232 char opendir();
2234 int main() {
2235 opendir()
2236 ; return 0; }
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2239 rm -rf conftest*
2240 eval "ac_cv_lib_$ac_lib_var=yes"
2241 else
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2244 rm -rf conftest*
2245 eval "ac_cv_lib_$ac_lib_var=no"
2247 rm -f conftest*
2248 LIBS="$ac_save_LIBS"
2251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2252 echo "$ac_t""yes" 1>&6
2253 LIBS="$LIBS -lx"
2254 else
2255 echo "$ac_t""no" 1>&6
2260 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2261 echo "configure:2262: checking whether time.h and sys/time.h may both be included" >&5
2262 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2264 else
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268 #include <sys/types.h>
2269 #include <sys/time.h>
2270 #include <time.h>
2271 int main() {
2272 struct tm *tp;
2273 ; return 0; }
2275 if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2276 rm -rf conftest*
2277 ac_cv_header_time=yes
2278 else
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2281 rm -rf conftest*
2282 ac_cv_header_time=no
2284 rm -f conftest*
2287 echo "$ac_t""$ac_cv_header_time" 1>&6
2288 if test $ac_cv_header_time = yes; then
2289 cat >> confdefs.h <<\EOF
2290 #define TIME_WITH_SYS_TIME 1
2295 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2296 echo "configure:2297: checking for sys/wait.h that is POSIX.1 compatible" >&5
2297 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299 else
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 #include <sys/types.h>
2304 #include <sys/wait.h>
2305 #ifndef WEXITSTATUS
2306 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2307 #endif
2308 #ifndef WIFEXITED
2309 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2310 #endif
2311 int main() {
2312 int s;
2313 wait (&s);
2314 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2315 ; return 0; }
2317 if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2318 rm -rf conftest*
2319 ac_cv_header_sys_wait_h=yes
2320 else
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 rm -rf conftest*
2324 ac_cv_header_sys_wait_h=no
2326 rm -f conftest*
2329 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2330 if test $ac_cv_header_sys_wait_h = yes; then
2331 cat >> confdefs.h <<\EOF
2332 #define HAVE_SYS_WAIT_H 1
2337 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_hdr" >&5
2342 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2344 else
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <$ac_hdr>
2350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2351 { (eval echo configure:2352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2353 if test -z "$ac_err"; then
2354 rm -rf conftest*
2355 eval "ac_cv_header_$ac_safe=yes"
2356 else
2357 echo "$ac_err" >&5
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2360 rm -rf conftest*
2361 eval "ac_cv_header_$ac_safe=no"
2363 rm -f conftest*
2365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
2367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2368 cat >> confdefs.h <<EOF
2369 #define $ac_tr_hdr 1
2372 else
2373 echo "$ac_t""no" 1>&6
2375 done
2377 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2379 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2380 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_hdr" >&5
2382 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 #include <$ac_hdr>
2390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2391 { (eval echo configure:2392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2393 if test -z "$ac_err"; then
2394 rm -rf conftest*
2395 eval "ac_cv_header_$ac_safe=yes"
2396 else
2397 echo "$ac_err" >&5
2398 echo "configure: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2400 rm -rf conftest*
2401 eval "ac_cv_header_$ac_safe=no"
2403 rm -f conftest*
2405 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2406 echo "$ac_t""yes" 1>&6
2407 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2408 cat >> confdefs.h <<EOF
2409 #define $ac_tr_hdr 1
2412 else
2413 echo "$ac_t""no" 1>&6
2415 done
2417 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2421 echo "configure:2422: checking for $ac_hdr" >&5
2422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2424 else
2425 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 #include <$ac_hdr>
2430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2431 { (eval echo configure:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2433 if test -z "$ac_err"; then
2434 rm -rf conftest*
2435 eval "ac_cv_header_$ac_safe=yes"
2436 else
2437 echo "$ac_err" >&5
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -rf conftest*
2441 eval "ac_cv_header_$ac_safe=no"
2443 rm -f conftest*
2445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2446 echo "$ac_t""yes" 1>&6
2447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2448 cat >> confdefs.h <<EOF
2449 #define $ac_tr_hdr 1
2452 else
2453 echo "$ac_t""no" 1>&6
2455 done
2457 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_hdr" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <$ac_hdr>
2470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2473 if test -z "$ac_err"; then
2474 rm -rf conftest*
2475 eval "ac_cv_header_$ac_safe=yes"
2476 else
2477 echo "$ac_err" >&5
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 rm -rf conftest*
2481 eval "ac_cv_header_$ac_safe=no"
2483 rm -f conftest*
2485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2488 cat >> confdefs.h <<EOF
2489 #define $ac_tr_hdr 1
2492 else
2493 echo "$ac_t""no" 1>&6
2495 done
2497 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2501 echo "configure:2502: checking for $ac_hdr" >&5
2502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2504 else
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #include <$ac_hdr>
2510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2511 { (eval echo configure:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2513 if test -z "$ac_err"; then
2514 rm -rf conftest*
2515 eval "ac_cv_header_$ac_safe=yes"
2516 else
2517 echo "$ac_err" >&5
2518 echo "configure: failed program was:" >&5
2519 cat conftest.$ac_ext >&5
2520 rm -rf conftest*
2521 eval "ac_cv_header_$ac_safe=no"
2523 rm -f conftest*
2525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2526 echo "$ac_t""yes" 1>&6
2527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2528 cat >> confdefs.h <<EOF
2529 #define $ac_tr_hdr 1
2532 else
2533 echo "$ac_t""no" 1>&6
2535 done
2537 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_hdr" >&5
2542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 #include <$ac_hdr>
2550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2551 { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2553 if test -z "$ac_err"; then
2554 rm -rf conftest*
2555 eval "ac_cv_header_$ac_safe=yes"
2556 else
2557 echo "$ac_err" >&5
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560 rm -rf conftest*
2561 eval "ac_cv_header_$ac_safe=no"
2563 rm -f conftest*
2565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2568 cat >> confdefs.h <<EOF
2569 #define $ac_tr_hdr 1
2572 else
2573 echo "$ac_t""no" 1>&6
2575 done
2577 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_hdr" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <$ac_hdr>
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2594 rm -rf conftest*
2595 eval "ac_cv_header_$ac_safe=yes"
2596 else
2597 echo "$ac_err" >&5
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2600 rm -rf conftest*
2601 eval "ac_cv_header_$ac_safe=no"
2603 rm -f conftest*
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2608 cat >> confdefs.h <<EOF
2609 #define $ac_tr_hdr 1
2612 else
2613 echo "$ac_t""no" 1>&6
2615 done
2617 for ac_hdr in getopt.h
2619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_hdr" >&5
2622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <$ac_hdr>
2630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2634 rm -rf conftest*
2635 eval "ac_cv_header_$ac_safe=yes"
2636 else
2637 echo "$ac_err" >&5
2638 echo "configure: failed program was:" >&5
2639 cat conftest.$ac_ext >&5
2640 rm -rf conftest*
2641 eval "ac_cv_header_$ac_safe=no"
2643 rm -f conftest*
2645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2646 echo "$ac_t""yes" 1>&6
2647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2648 cat >> confdefs.h <<EOF
2649 #define $ac_tr_hdr 1
2652 else
2653 echo "$ac_t""no" 1>&6
2655 done
2658 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2659 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2661 case "$host_os" in
2662 *hpux*)
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 #include <shadow.h>
2667 int main() {
2668 struct spwd testme
2669 ; return 0; }
2671 if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2672 rm -rf conftest*
2673 ac_cv_header_shadow_h=yes
2674 else
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 rm -rf conftest*
2678 ac_cv_header_shadow_h=no
2680 rm -f conftest*
2681 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2682 cat >> confdefs.h <<\EOF
2683 #define HAVE_SHADOW_H 1
2688 esac
2689 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693 echo "configure:2694: checking for $ac_hdr" >&5
2694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2696 else
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2700 #include <$ac_hdr>
2702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705 if test -z "$ac_err"; then
2706 rm -rf conftest*
2707 eval "ac_cv_header_$ac_safe=yes"
2708 else
2709 echo "$ac_err" >&5
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2712 rm -rf conftest*
2713 eval "ac_cv_header_$ac_safe=no"
2715 rm -f conftest*
2717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2718 echo "$ac_t""yes" 1>&6
2719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2720 cat >> confdefs.h <<EOF
2721 #define $ac_tr_hdr 1
2724 else
2725 echo "$ac_t""no" 1>&6
2727 done
2729 for ac_hdr in sys/security.h security/pam_appl.h
2731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_hdr" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2736 else
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <$ac_hdr>
2742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2746 rm -rf conftest*
2747 eval "ac_cv_header_$ac_safe=yes"
2748 else
2749 echo "$ac_err" >&5
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2752 rm -rf conftest*
2753 eval "ac_cv_header_$ac_safe=no"
2755 rm -f conftest*
2757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2760 cat >> confdefs.h <<EOF
2761 #define $ac_tr_hdr 1
2764 else
2765 echo "$ac_t""no" 1>&6
2767 done
2769 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_hdr" >&5
2774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2776 else
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 #include <$ac_hdr>
2782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2783 { (eval echo configure:2784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2785 if test -z "$ac_err"; then
2786 rm -rf conftest*
2787 eval "ac_cv_header_$ac_safe=yes"
2788 else
2789 echo "$ac_err" >&5
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -rf conftest*
2793 eval "ac_cv_header_$ac_safe=no"
2795 rm -f conftest*
2797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2800 cat >> confdefs.h <<EOF
2801 #define $ac_tr_hdr 1
2804 else
2805 echo "$ac_t""no" 1>&6
2807 done
2809 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2813 echo "configure:2814: checking for $ac_hdr" >&5
2814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2816 else
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 #include <$ac_hdr>
2822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2826 rm -rf conftest*
2827 eval "ac_cv_header_$ac_safe=yes"
2828 else
2829 echo "$ac_err" >&5
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -rf conftest*
2833 eval "ac_cv_header_$ac_safe=no"
2835 rm -f conftest*
2837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2838 echo "$ac_t""yes" 1>&6
2839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2840 cat >> confdefs.h <<EOF
2841 #define $ac_tr_hdr 1
2844 else
2845 echo "$ac_t""no" 1>&6
2847 done
2849 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2851 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2856 else
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2860 #include <$ac_hdr>
2862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2866 rm -rf conftest*
2867 eval "ac_cv_header_$ac_safe=yes"
2868 else
2869 echo "$ac_err" >&5
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 rm -rf conftest*
2873 eval "ac_cv_header_$ac_safe=no"
2875 rm -f conftest*
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h <<EOF
2881 #define $ac_tr_hdr 1
2884 else
2885 echo "$ac_t""no" 1>&6
2887 done
2890 # For experimental utmp support
2891 for ac_hdr in utmp.h utmpx.h
2893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2895 echo "configure:2896: checking for $ac_hdr" >&5
2896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2898 else
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902 #include <$ac_hdr>
2904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2905 { (eval echo configure:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2907 if test -z "$ac_err"; then
2908 rm -rf conftest*
2909 eval "ac_cv_header_$ac_safe=yes"
2910 else
2911 echo "$ac_err" >&5
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2914 rm -rf conftest*
2915 eval "ac_cv_header_$ac_safe=no"
2917 rm -f conftest*
2919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2920 echo "$ac_t""yes" 1>&6
2921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2922 cat >> confdefs.h <<EOF
2923 #define $ac_tr_hdr 1
2926 else
2927 echo "$ac_t""no" 1>&6
2929 done
2932 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 = {0,0};
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 } int $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 # test for where we get readline() from
4224 if test "$ac_cv_header_readline_h" = "yes" ||
4225 test "$ac_cv_header_readline_readline_h" = "yes"; then
4226 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4227 echo "configure:4228: checking for readline in -lreadline" >&5
4228 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4231 else
4232 ac_save_LIBS="$LIBS"
4233 LIBS="-lreadline $LIBS"
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 /* Override any gcc2 internal prototype to avoid an error. */
4238 /* We use char because int might match the return type of a gcc2
4239 builtin and then its argument prototype would still apply. */
4240 char readline();
4242 int main() {
4243 readline()
4244 ; return 0; }
4246 if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4247 rm -rf conftest*
4248 eval "ac_cv_lib_$ac_lib_var=yes"
4249 else
4250 echo "configure: failed program was:" >&5
4251 cat conftest.$ac_ext >&5
4252 rm -rf conftest*
4253 eval "ac_cv_lib_$ac_lib_var=no"
4255 rm -f conftest*
4256 LIBS="$ac_save_LIBS"
4259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4260 echo "$ac_t""yes" 1>&6
4261 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4263 cat >> confdefs.h <<EOF
4264 #define $ac_tr_lib 1
4267 LIBS="-lreadline $LIBS"
4269 else
4270 echo "$ac_t""no" 1>&6
4275 echo $ac_n "checking for readline""... $ac_c" 1>&6
4276 echo "configure:4277: checking for readline" >&5
4277 if eval "test \"`echo '$''{'samba_cv_HAVE_READLINE'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4279 else
4281 if test "$cross_compiling" = yes; then
4282 samba_cv_HAVE_READLINE=cross
4283 else
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 #include "${srcdir-.}/tests/readline.c"
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4290 then
4291 samba_cv_HAVE_READLINE=yes
4292 else
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 rm -fr conftest*
4296 samba_cv_HAVE_READLINE=no
4298 rm -fr conftest*
4303 echo "$ac_t""$samba_cv_HAVE_READLINE" 1>&6
4304 if test x"$samba_cv_HAVE_READLINE" = x"yes"; then
4305 cat >> confdefs.h <<\EOF
4306 #define HAVE_READLINE 1
4312 # The following test taken from the cvs sources
4313 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4314 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4315 # libsocket.so which has a bad implementation of gethostbyname (it
4316 # only looks in /etc/hosts), so we only look for -lsocket if we need
4317 # it.
4318 for ac_func in connect
4320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4321 echo "configure:4322: checking for $ac_func" >&5
4322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
4329 which can conflict with char $ac_func(); below. */
4330 #include <assert.h>
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4334 char $ac_func();
4336 int main() {
4338 /* The GNU C library defines this for functions which it implements
4339 to always fail with ENOSYS. Some functions are actually named
4340 something starting with __ and the normal name is an alias. */
4341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4342 choke me
4343 #else
4344 $ac_func();
4345 #endif
4347 ; return 0; }
4349 if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4350 rm -rf conftest*
4351 eval "ac_cv_func_$ac_func=yes"
4352 else
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4355 rm -rf conftest*
4356 eval "ac_cv_func_$ac_func=no"
4358 rm -f conftest*
4361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4362 echo "$ac_t""yes" 1>&6
4363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4364 cat >> confdefs.h <<EOF
4365 #define $ac_tr_func 1
4368 else
4369 echo "$ac_t""no" 1>&6
4371 done
4373 if test x"$ac_cv_func_connect" = x"no"; then
4374 case "$LIBS" in
4375 *-lnsl*) ;;
4376 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4377 echo "configure:4378: checking for printf in -lnsl_s" >&5
4378 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4381 else
4382 ac_save_LIBS="$LIBS"
4383 LIBS="-lnsl_s $LIBS"
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 /* We use char because int might match the return type of a gcc2
4389 builtin and then its argument prototype would still apply. */
4390 char printf();
4392 int main() {
4393 printf()
4394 ; return 0; }
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4397 rm -rf conftest*
4398 eval "ac_cv_lib_$ac_lib_var=yes"
4399 else
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4402 rm -rf conftest*
4403 eval "ac_cv_lib_$ac_lib_var=no"
4405 rm -f conftest*
4406 LIBS="$ac_save_LIBS"
4409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4413 cat >> confdefs.h <<EOF
4414 #define $ac_tr_lib 1
4417 LIBS="-lnsl_s $LIBS"
4419 else
4420 echo "$ac_t""no" 1>&6
4423 esac
4424 case "$LIBS" in
4425 *-lnsl*) ;;
4426 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4427 echo "configure:4428: checking for printf in -lnsl" >&5
4428 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4431 else
4432 ac_save_LIBS="$LIBS"
4433 LIBS="-lnsl $LIBS"
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4440 char printf();
4442 int main() {
4443 printf()
4444 ; return 0; }
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4447 rm -rf conftest*
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4449 else
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4452 rm -rf conftest*
4453 eval "ac_cv_lib_$ac_lib_var=no"
4455 rm -f conftest*
4456 LIBS="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4463 cat >> confdefs.h <<EOF
4464 #define $ac_tr_lib 1
4467 LIBS="-lnsl $LIBS"
4469 else
4470 echo "$ac_t""no" 1>&6
4473 esac
4474 case "$LIBS" in
4475 *-lsocket*) ;;
4476 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4477 echo "configure:4478: checking for connect in -lsocket" >&5
4478 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4481 else
4482 ac_save_LIBS="$LIBS"
4483 LIBS="-lsocket $LIBS"
4484 cat > conftest.$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */
4490 char connect();
4492 int main() {
4493 connect()
4494 ; return 0; }
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4497 rm -rf conftest*
4498 eval "ac_cv_lib_$ac_lib_var=yes"
4499 else
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4502 rm -rf conftest*
4503 eval "ac_cv_lib_$ac_lib_var=no"
4505 rm -f conftest*
4506 LIBS="$ac_save_LIBS"
4509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4512 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4513 cat >> confdefs.h <<EOF
4514 #define $ac_tr_lib 1
4517 LIBS="-lsocket $LIBS"
4519 else
4520 echo "$ac_t""no" 1>&6
4523 esac
4524 case "$LIBS" in
4525 *-linet*) ;;
4526 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4527 echo "configure:4528: checking for connect in -linet" >&5
4528 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4531 else
4532 ac_save_LIBS="$LIBS"
4533 LIBS="-linet $LIBS"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 /* Override any gcc2 internal prototype to avoid an error. */
4538 /* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4540 char connect();
4542 int main() {
4543 connect()
4544 ; return 0; }
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4547 rm -rf conftest*
4548 eval "ac_cv_lib_$ac_lib_var=yes"
4549 else
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 rm -rf conftest*
4553 eval "ac_cv_lib_$ac_lib_var=no"
4555 rm -f conftest*
4556 LIBS="$ac_save_LIBS"
4559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4560 echo "$ac_t""yes" 1>&6
4561 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4563 cat >> confdefs.h <<EOF
4564 #define $ac_tr_lib 1
4567 LIBS="-linet $LIBS"
4569 else
4570 echo "$ac_t""no" 1>&6
4573 esac
4574 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4575 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4576 # ac_cv_func_connect=yes
4577 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4578 cat >> confdefs.h <<\EOF
4579 #define HAVE_CONNECT 1
4585 # Check if we have execl, if not we need to compile smbrun.
4586 for ac_func in execl
4588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4589 echo "configure:4590: checking for $ac_func" >&5
4590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4592 else
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* System header to define __stub macros and hopefully few prototypes,
4597 which can conflict with char $ac_func(); below. */
4598 #include <assert.h>
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4602 char $ac_func();
4604 int main() {
4606 /* The GNU C library defines this for functions which it implements
4607 to always fail with ENOSYS. Some functions are actually named
4608 something starting with __ and the normal name is an alias. */
4609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4610 choke me
4611 #else
4612 $ac_func();
4613 #endif
4615 ; return 0; }
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4618 rm -rf conftest*
4619 eval "ac_cv_func_$ac_func=yes"
4620 else
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 rm -rf conftest*
4624 eval "ac_cv_func_$ac_func=no"
4626 rm -f conftest*
4629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4632 cat >> confdefs.h <<EOF
4633 #define $ac_tr_func 1
4636 else
4637 echo "$ac_t""no" 1>&6
4639 done
4641 if test x"$ac_cv_func_execl" = x"no"; then
4642 RUNPROG="bin/smbrun"
4643 else
4644 RUNPROG=""
4647 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_func" >&5
4651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4653 else
4654 cat > conftest.$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 /* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func(); below. */
4659 #include <assert.h>
4660 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4663 char $ac_func();
4665 int main() {
4667 /* The GNU C library defines this for functions which it implements
4668 to always fail with ENOSYS. Some functions are actually named
4669 something starting with __ and the normal name is an alias. */
4670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4671 choke me
4672 #else
4673 $ac_func();
4674 #endif
4676 ; return 0; }
4678 if { (eval echo configure:4679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4679 rm -rf conftest*
4680 eval "ac_cv_func_$ac_func=yes"
4681 else
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4684 rm -rf conftest*
4685 eval "ac_cv_func_$ac_func=no"
4687 rm -f conftest*
4690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4691 echo "$ac_t""yes" 1>&6
4692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4693 cat >> confdefs.h <<EOF
4694 #define $ac_tr_func 1
4697 else
4698 echo "$ac_t""no" 1>&6
4700 done
4702 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4705 echo "configure:4706: checking for $ac_func" >&5
4706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4708 else
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4712 /* System header to define __stub macros and hopefully few prototypes,
4713 which can conflict with char $ac_func(); below. */
4714 #include <assert.h>
4715 /* Override any gcc2 internal prototype to avoid an error. */
4716 /* We use char because int might match the return type of a gcc2
4717 builtin and then its argument prototype would still apply. */
4718 char $ac_func();
4720 int main() {
4722 /* The GNU C library defines this for functions which it implements
4723 to always fail with ENOSYS. Some functions are actually named
4724 something starting with __ and the normal name is an alias. */
4725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4726 choke me
4727 #else
4728 $ac_func();
4729 #endif
4731 ; return 0; }
4733 if { (eval echo configure:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4734 rm -rf conftest*
4735 eval "ac_cv_func_$ac_func=yes"
4736 else
4737 echo "configure: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4739 rm -rf conftest*
4740 eval "ac_cv_func_$ac_func=no"
4742 rm -f conftest*
4745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4746 echo "$ac_t""yes" 1>&6
4747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4748 cat >> confdefs.h <<EOF
4749 #define $ac_tr_func 1
4752 else
4753 echo "$ac_t""no" 1>&6
4755 done
4757 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4760 echo "configure:4761: checking for $ac_func" >&5
4761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4763 else
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* System header to define __stub macros and hopefully few prototypes,
4768 which can conflict with char $ac_func(); below. */
4769 #include <assert.h>
4770 /* Override any gcc2 internal prototype to avoid an error. */
4771 /* We use char because int might match the return type of a gcc2
4772 builtin and then its argument prototype would still apply. */
4773 char $ac_func();
4775 int main() {
4777 /* The GNU C library defines this for functions which it implements
4778 to always fail with ENOSYS. Some functions are actually named
4779 something starting with __ and the normal name is an alias. */
4780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4781 choke me
4782 #else
4783 $ac_func();
4784 #endif
4786 ; return 0; }
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789 rm -rf conftest*
4790 eval "ac_cv_func_$ac_func=yes"
4791 else
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 rm -rf conftest*
4795 eval "ac_cv_func_$ac_func=no"
4797 rm -f conftest*
4800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4803 cat >> confdefs.h <<EOF
4804 #define $ac_tr_func 1
4807 else
4808 echo "$ac_t""no" 1>&6
4810 done
4812 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_func" >&5
4816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4822 /* System header to define __stub macros and hopefully few prototypes,
4823 which can conflict with char $ac_func(); below. */
4824 #include <assert.h>
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 /* We use char because int might match the return type of a gcc2
4827 builtin and then its argument prototype would still apply. */
4828 char $ac_func();
4830 int main() {
4832 /* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 choke me
4837 #else
4838 $ac_func();
4839 #endif
4841 ; return 0; }
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844 rm -rf conftest*
4845 eval "ac_cv_func_$ac_func=yes"
4846 else
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 rm -rf conftest*
4850 eval "ac_cv_func_$ac_func=no"
4852 rm -f conftest*
4855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4858 cat >> confdefs.h <<EOF
4859 #define $ac_tr_func 1
4862 else
4863 echo "$ac_t""no" 1>&6
4865 done
4867 for ac_func in initgroups select rdchk getgrnam getgrent pathconf
4869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4870 echo "configure:4871: checking for $ac_func" >&5
4871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4873 else
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* System header to define __stub macros and hopefully few prototypes,
4878 which can conflict with char $ac_func(); below. */
4879 #include <assert.h>
4880 /* Override any gcc2 internal prototype to avoid an error. */
4881 /* We use char because int might match the return type of a gcc2
4882 builtin and then its argument prototype would still apply. */
4883 char $ac_func();
4885 int main() {
4887 /* The GNU C library defines this for functions which it implements
4888 to always fail with ENOSYS. Some functions are actually named
4889 something starting with __ and the normal name is an alias. */
4890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4891 choke me
4892 #else
4893 $ac_func();
4894 #endif
4896 ; return 0; }
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4899 rm -rf conftest*
4900 eval "ac_cv_func_$ac_func=yes"
4901 else
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4904 rm -rf conftest*
4905 eval "ac_cv_func_$ac_func=no"
4907 rm -f conftest*
4910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_func 1
4917 else
4918 echo "$ac_t""no" 1>&6
4920 done
4922 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4925 echo "configure:4926: checking for $ac_func" >&5
4926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4928 else
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 /* System header to define __stub macros and hopefully few prototypes,
4933 which can conflict with char $ac_func(); below. */
4934 #include <assert.h>
4935 /* Override any gcc2 internal prototype to avoid an error. */
4936 /* We use char because int might match the return type of a gcc2
4937 builtin and then its argument prototype would still apply. */
4938 char $ac_func();
4940 int main() {
4942 /* The GNU C library defines this for functions which it implements
4943 to always fail with ENOSYS. Some functions are actually named
4944 something starting with __ and the normal name is an alias. */
4945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4946 choke me
4947 #else
4948 $ac_func();
4949 #endif
4951 ; return 0; }
4953 if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4954 rm -rf conftest*
4955 eval "ac_cv_func_$ac_func=yes"
4956 else
4957 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4959 rm -rf conftest*
4960 eval "ac_cv_func_$ac_func=no"
4962 rm -f conftest*
4965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4966 echo "$ac_t""yes" 1>&6
4967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4968 cat >> confdefs.h <<EOF
4969 #define $ac_tr_func 1
4972 else
4973 echo "$ac_t""no" 1>&6
4975 done
4977 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_func" >&5
4981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4983 else
4984 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* System header to define __stub macros and hopefully few prototypes,
4988 which can conflict with char $ac_func(); below. */
4989 #include <assert.h>
4990 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4993 char $ac_func();
4995 int main() {
4997 /* The GNU C library defines this for functions which it implements
4998 to always fail with ENOSYS. Some functions are actually named
4999 something starting with __ and the normal name is an alias. */
5000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5001 choke me
5002 #else
5003 $ac_func();
5004 #endif
5006 ; return 0; }
5008 if { (eval echo configure:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009 rm -rf conftest*
5010 eval "ac_cv_func_$ac_func=yes"
5011 else
5012 echo "configure: failed program was:" >&5
5013 cat conftest.$ac_ext >&5
5014 rm -rf conftest*
5015 eval "ac_cv_func_$ac_func=no"
5017 rm -f conftest*
5020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5021 echo "$ac_t""yes" 1>&6
5022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5023 cat >> confdefs.h <<EOF
5024 #define $ac_tr_func 1
5027 else
5028 echo "$ac_t""no" 1>&6
5030 done
5032 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
5034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5035 echo "configure:5036: checking for $ac_func" >&5
5036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5038 else
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 /* System header to define __stub macros and hopefully few prototypes,
5043 which can conflict with char $ac_func(); below. */
5044 #include <assert.h>
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5048 char $ac_func();
5050 int main() {
5052 /* The GNU C library defines this for functions which it implements
5053 to always fail with ENOSYS. Some functions are actually named
5054 something starting with __ and the normal name is an alias. */
5055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5056 choke me
5057 #else
5058 $ac_func();
5059 #endif
5061 ; return 0; }
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5064 rm -rf conftest*
5065 eval "ac_cv_func_$ac_func=yes"
5066 else
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5069 rm -rf conftest*
5070 eval "ac_cv_func_$ac_func=no"
5072 rm -f conftest*
5075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5078 cat >> confdefs.h <<EOF
5079 #define $ac_tr_func 1
5082 else
5083 echo "$ac_t""no" 1>&6
5085 done
5087 for ac_func in srandom random srand rand setenv usleep mmap64 strcasecmp fcvt fcvtl
5089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5090 echo "configure:5091: checking for $ac_func" >&5
5091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5097 /* System header to define __stub macros and hopefully few prototypes,
5098 which can conflict with char $ac_func(); below. */
5099 #include <assert.h>
5100 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5103 char $ac_func();
5105 int main() {
5107 /* The GNU C library defines this for functions which it implements
5108 to always fail with ENOSYS. Some functions are actually named
5109 something starting with __ and the normal name is an alias. */
5110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5111 choke me
5112 #else
5113 $ac_func();
5114 #endif
5116 ; return 0; }
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5119 rm -rf conftest*
5120 eval "ac_cv_func_$ac_func=yes"
5121 else
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5124 rm -rf conftest*
5125 eval "ac_cv_func_$ac_func=no"
5127 rm -f conftest*
5130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5131 echo "$ac_t""yes" 1>&6
5132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5133 cat >> confdefs.h <<EOF
5134 #define $ac_tr_func 1
5137 else
5138 echo "$ac_t""no" 1>&6
5140 done
5143 # syscall() is needed for smbwrapper.
5144 for ac_func in syscall
5146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_func" >&5
5148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5150 else
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char $ac_func(); below. */
5156 #include <assert.h>
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5160 char $ac_func();
5162 int main() {
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5168 choke me
5169 #else
5170 $ac_func();
5171 #endif
5173 ; return 0; }
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5176 rm -rf conftest*
5177 eval "ac_cv_func_$ac_func=yes"
5178 else
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5181 rm -rf conftest*
5182 eval "ac_cv_func_$ac_func=no"
5184 rm -f conftest*
5187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5190 cat >> confdefs.h <<EOF
5191 #define $ac_tr_func 1
5194 else
5195 echo "$ac_t""no" 1>&6
5197 done
5200 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_func" >&5
5204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5206 else
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 /* System header to define __stub macros and hopefully few prototypes,
5211 which can conflict with char $ac_func(); below. */
5212 #include <assert.h>
5213 /* Override any gcc2 internal prototype to avoid an error. */
5214 /* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5216 char $ac_func();
5218 int main() {
5220 /* The GNU C library defines this for functions which it implements
5221 to always fail with ENOSYS. Some functions are actually named
5222 something starting with __ and the normal name is an alias. */
5223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5224 choke me
5225 #else
5226 $ac_func();
5227 #endif
5229 ; return 0; }
5231 if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5232 rm -rf conftest*
5233 eval "ac_cv_func_$ac_func=yes"
5234 else
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5237 rm -rf conftest*
5238 eval "ac_cv_func_$ac_func=no"
5240 rm -f conftest*
5243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5244 echo "$ac_t""yes" 1>&6
5245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5246 cat >> confdefs.h <<EOF
5247 #define $ac_tr_func 1
5250 else
5251 echo "$ac_t""no" 1>&6
5253 done
5255 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5258 echo "configure:5259: checking for $ac_func" >&5
5259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5261 else
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func(); below. */
5267 #include <assert.h>
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5271 char $ac_func();
5273 int main() {
5275 /* The GNU C library defines this for functions which it implements
5276 to always fail with ENOSYS. Some functions are actually named
5277 something starting with __ and the normal name is an alias. */
5278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5279 choke me
5280 #else
5281 $ac_func();
5282 #endif
5284 ; return 0; }
5286 if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5287 rm -rf conftest*
5288 eval "ac_cv_func_$ac_func=yes"
5289 else
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 rm -rf conftest*
5293 eval "ac_cv_func_$ac_func=no"
5295 rm -f conftest*
5298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5301 cat >> confdefs.h <<EOF
5302 #define $ac_tr_func 1
5305 else
5306 echo "$ac_t""no" 1>&6
5308 done
5310 for ac_func in __getcwd _getcwd
5312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_func" >&5
5314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5316 else
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5320 /* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char $ac_func(); below. */
5322 #include <assert.h>
5323 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5326 char $ac_func();
5328 int main() {
5330 /* The GNU C library defines this for functions which it implements
5331 to always fail with ENOSYS. Some functions are actually named
5332 something starting with __ and the normal name is an alias. */
5333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5334 choke me
5335 #else
5336 $ac_func();
5337 #endif
5339 ; return 0; }
5341 if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5342 rm -rf conftest*
5343 eval "ac_cv_func_$ac_func=yes"
5344 else
5345 echo "configure: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5347 rm -rf conftest*
5348 eval "ac_cv_func_$ac_func=no"
5350 rm -f conftest*
5353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5356 cat >> confdefs.h <<EOF
5357 #define $ac_tr_func 1
5360 else
5361 echo "$ac_t""no" 1>&6
5363 done
5365 for ac_func in __xstat __fxstat __lxstat
5367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_func" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5371 else
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char $ac_func(); below. */
5377 #include <assert.h>
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char $ac_func();
5383 int main() {
5385 /* The GNU C library defines this for functions which it implements
5386 to always fail with ENOSYS. Some functions are actually named
5387 something starting with __ and the normal name is an alias. */
5388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5389 choke me
5390 #else
5391 $ac_func();
5392 #endif
5394 ; return 0; }
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397 rm -rf conftest*
5398 eval "ac_cv_func_$ac_func=yes"
5399 else
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 rm -rf conftest*
5403 eval "ac_cv_func_$ac_func=no"
5405 rm -f conftest*
5408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5409 echo "$ac_t""yes" 1>&6
5410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5411 cat >> confdefs.h <<EOF
5412 #define $ac_tr_func 1
5415 else
5416 echo "$ac_t""no" 1>&6
5418 done
5420 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_func" >&5
5424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5426 else
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 /* System header to define __stub macros and hopefully few prototypes,
5431 which can conflict with char $ac_func(); below. */
5432 #include <assert.h>
5433 /* Override any gcc2 internal prototype to avoid an error. */
5434 /* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5436 char $ac_func();
5438 int main() {
5440 /* The GNU C library defines this for functions which it implements
5441 to always fail with ENOSYS. Some functions are actually named
5442 something starting with __ and the normal name is an alias. */
5443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5444 choke me
5445 #else
5446 $ac_func();
5447 #endif
5449 ; return 0; }
5451 if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452 rm -rf conftest*
5453 eval "ac_cv_func_$ac_func=yes"
5454 else
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5457 rm -rf conftest*
5458 eval "ac_cv_func_$ac_func=no"
5460 rm -f conftest*
5463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5466 cat >> confdefs.h <<EOF
5467 #define $ac_tr_func 1
5470 else
5471 echo "$ac_t""no" 1>&6
5473 done
5475 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_func" >&5
5479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5481 else
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char $ac_func(); below. */
5487 #include <assert.h>
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5491 char $ac_func();
5493 int main() {
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5499 choke me
5500 #else
5501 $ac_func();
5502 #endif
5504 ; return 0; }
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5507 rm -rf conftest*
5508 eval "ac_cv_func_$ac_func=yes"
5509 else
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5512 rm -rf conftest*
5513 eval "ac_cv_func_$ac_func=no"
5515 rm -f conftest*
5518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5521 cat >> confdefs.h <<EOF
5522 #define $ac_tr_func 1
5525 else
5526 echo "$ac_t""no" 1>&6
5528 done
5530 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_func" >&5
5534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5536 else
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func(); below. */
5542 #include <assert.h>
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5546 char $ac_func();
5548 int main() {
5550 /* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5554 choke me
5555 #else
5556 $ac_func();
5557 #endif
5559 ; return 0; }
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 rm -rf conftest*
5563 eval "ac_cv_func_$ac_func=yes"
5564 else
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5567 rm -rf conftest*
5568 eval "ac_cv_func_$ac_func=no"
5570 rm -f conftest*
5573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5576 cat >> confdefs.h <<EOF
5577 #define $ac_tr_func 1
5580 else
5581 echo "$ac_t""no" 1>&6
5583 done
5585 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5588 echo "configure:5589: checking for $ac_func" >&5
5589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5591 else
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char $ac_func(); below. */
5597 #include <assert.h>
5598 /* Override any gcc2 internal prototype to avoid an error. */
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5601 char $ac_func();
5603 int main() {
5605 /* The GNU C library defines this for functions which it implements
5606 to always fail with ENOSYS. Some functions are actually named
5607 something starting with __ and the normal name is an alias. */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5609 choke me
5610 #else
5611 $ac_func();
5612 #endif
5614 ; return 0; }
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617 rm -rf conftest*
5618 eval "ac_cv_func_$ac_func=yes"
5619 else
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5622 rm -rf conftest*
5623 eval "ac_cv_func_$ac_func=no"
5625 rm -f conftest*
5628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5629 echo "$ac_t""yes" 1>&6
5630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5631 cat >> confdefs.h <<EOF
5632 #define $ac_tr_func 1
5635 else
5636 echo "$ac_t""no" 1>&6
5638 done
5640 for ac_func in _write __write _fork __fork
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5646 else
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5652 #include <assert.h>
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656 char $ac_func();
5658 int main() {
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5664 choke me
5665 #else
5666 $ac_func();
5667 #endif
5669 ; return 0; }
5671 if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5672 rm -rf conftest*
5673 eval "ac_cv_func_$ac_func=yes"
5674 else
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 rm -rf conftest*
5678 eval "ac_cv_func_$ac_func=no"
5680 rm -f conftest*
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h <<EOF
5687 #define $ac_tr_func 1
5690 else
5691 echo "$ac_t""no" 1>&6
5693 done
5695 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_func" >&5
5699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5701 else
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* System header to define __stub macros and hopefully few prototypes,
5706 which can conflict with char $ac_func(); below. */
5707 #include <assert.h>
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711 char $ac_func();
5713 int main() {
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5719 choke me
5720 #else
5721 $ac_func();
5722 #endif
5724 ; return 0; }
5726 if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5727 rm -rf conftest*
5728 eval "ac_cv_func_$ac_func=yes"
5729 else
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 rm -rf conftest*
5733 eval "ac_cv_func_$ac_func=no"
5735 rm -f conftest*
5738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5741 cat >> confdefs.h <<EOF
5742 #define $ac_tr_func 1
5745 else
5746 echo "$ac_t""no" 1>&6
5748 done
5750 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5756 else
5757 cat > conftest.$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5762 #include <assert.h>
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5766 char $ac_func();
5768 int main() {
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5774 choke me
5775 #else
5776 $ac_func();
5777 #endif
5779 ; return 0; }
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5782 rm -rf conftest*
5783 eval "ac_cv_func_$ac_func=yes"
5784 else
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 rm -rf conftest*
5788 eval "ac_cv_func_$ac_func=no"
5790 rm -f conftest*
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h <<EOF
5797 #define $ac_tr_func 1
5800 else
5801 echo "$ac_t""no" 1>&6
5803 done
5805 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5808 echo "configure:5809: checking for $ac_func" >&5
5809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5811 else
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char $ac_func(); below. */
5817 #include <assert.h>
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5821 char $ac_func();
5823 int main() {
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5829 choke me
5830 #else
5831 $ac_func();
5832 #endif
5834 ; return 0; }
5836 if { (eval echo configure:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5837 rm -rf conftest*
5838 eval "ac_cv_func_$ac_func=yes"
5839 else
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5842 rm -rf conftest*
5843 eval "ac_cv_func_$ac_func=no"
5845 rm -f conftest*
5848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5851 cat >> confdefs.h <<EOF
5852 #define $ac_tr_func 1
5855 else
5856 echo "$ac_t""no" 1>&6
5858 done
5860 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5866 else
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5872 #include <assert.h>
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5876 char $ac_func();
5878 int main() {
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5884 choke me
5885 #else
5886 $ac_func();
5887 #endif
5889 ; return 0; }
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 rm -rf conftest*
5893 eval "ac_cv_func_$ac_func=yes"
5894 else
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5897 rm -rf conftest*
5898 eval "ac_cv_func_$ac_func=no"
5900 rm -f conftest*
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5906 cat >> confdefs.h <<EOF
5907 #define $ac_tr_func 1
5910 else
5911 echo "$ac_t""no" 1>&6
5913 done
5915 for ac_func in open64 _open64 __open64 creat64
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922 cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char $ac_func(); below. */
5927 #include <assert.h>
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5931 char $ac_func();
5933 int main() {
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5939 choke me
5940 #else
5941 $ac_func();
5942 #endif
5944 ; return 0; }
5946 if { (eval echo configure:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5947 rm -rf conftest*
5948 eval "ac_cv_func_$ac_func=yes"
5949 else
5950 echo "configure: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 rm -rf conftest*
5953 eval "ac_cv_func_$ac_func=no"
5955 rm -f conftest*
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961 cat >> confdefs.h <<EOF
5962 #define $ac_tr_func 1
5965 else
5966 echo "$ac_t""no" 1>&6
5968 done
5972 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5975 if test x$ac_cv_func_stat64 = xno ; then
5976 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5977 echo "configure:5978: checking for stat64 in <sys/stat.h>" >&5
5978 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure"
5980 #include "confdefs.h"
5982 #if defined(HAVE_UNISTD_H)
5983 #include <unistd.h>
5984 #endif
5985 #include <sys/stat.h>
5987 int main() {
5988 struct stat64 st64; exit(stat64(".",&st64));
5989 ; return 0; }
5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5992 rm -rf conftest*
5993 ac_cv_func_stat64=yes
5994 else
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5998 rm -f conftest*
5999 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6000 if test x$ac_cv_func_stat64 = xyes ; then
6001 cat >> confdefs.h <<\EOF
6002 #define HAVE_STAT64 1
6008 if test x$ac_cv_func_lstat64 = xno ; then
6009 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6010 echo "configure:6011: checking for lstat64 in <sys/stat.h>" >&5
6011 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6015 #if defined(HAVE_UNISTD_H)
6016 #include <unistd.h>
6017 #endif
6018 #include <sys/stat.h>
6020 int main() {
6021 struct stat64 st64; exit(lstat64(".",&st64));
6022 ; return 0; }
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 rm -rf conftest*
6026 ac_cv_func_lstat64=yes
6027 else
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 rm -f conftest*
6032 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6033 if test x$ac_cv_func_lstat64 = xyes ; then
6034 cat >> confdefs.h <<\EOF
6035 #define HAVE_LSTAT64 1
6041 if test x$ac_cv_func_fstat64 = xno ; then
6042 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6043 echo "configure:6044: checking for fstat64 in <sys/stat.h>" >&5
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6048 #if defined(HAVE_UNISTD_H)
6049 #include <unistd.h>
6050 #endif
6051 #include <sys/stat.h>
6053 int main() {
6054 struct stat64 st64; exit(fstat64(0,&st64));
6055 ; return 0; }
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6058 rm -rf conftest*
6059 ac_cv_func_fstat64=yes
6060 else
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 rm -f conftest*
6065 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6066 if test x$ac_cv_func_fstat64 = xyes ; then
6067 cat >> confdefs.h <<\EOF
6068 #define HAVE_FSTAT64 1
6075 # If no strcasecmp, check for it in some known places
6076 # It is in -lresolv on ReliantUNIX and UnixWare
6077 # -lresolve *must* follow -lnsl for name resolution to work properly
6080 if test x$ac_cv_func_strcasecmp = xno ; then
6081 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6082 echo "configure:6083: checking for strcasecmp in -lresolv" >&5
6083 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6086 else
6087 ac_save_LIBS="$LIBS"
6088 LIBS="-lresolv $LIBS"
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6092 /* Override any gcc2 internal prototype to avoid an error. */
6093 /* We use char because int might match the return type of a gcc2
6094 builtin and then its argument prototype would still apply. */
6095 char strcasecmp();
6097 int main() {
6098 strcasecmp()
6099 ; return 0; }
6101 if { (eval echo configure:6102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6102 rm -rf conftest*
6103 eval "ac_cv_lib_$ac_lib_var=yes"
6104 else
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6107 rm -rf conftest*
6108 eval "ac_cv_lib_$ac_lib_var=no"
6110 rm -f conftest*
6111 LIBS="$ac_save_LIBS"
6114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6115 echo "$ac_t""yes" 1>&6
6116 LIBS="$LIBS -lresolv"
6117 cat >> confdefs.h <<\EOF
6118 #define HAVE_STRCASECMP 1
6121 else
6122 echo "$ac_t""no" 1>&6
6128 # Check for the functions putprpwnam, set_auth_parameters,
6129 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6130 # Needed for OSF1 and HPUX.
6133 case "$LIBS" in
6134 *-lsecurity*) for ac_func in putprpwnam
6136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6137 echo "configure:6138: checking for $ac_func" >&5
6138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6140 else
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6144 /* System header to define __stub macros and hopefully few prototypes,
6145 which can conflict with char $ac_func(); below. */
6146 #include <assert.h>
6147 /* Override any gcc2 internal prototype to avoid an error. */
6148 /* We use char because int might match the return type of a gcc2
6149 builtin and then its argument prototype would still apply. */
6150 char $ac_func();
6152 int main() {
6154 /* The GNU C library defines this for functions which it implements
6155 to always fail with ENOSYS. Some functions are actually named
6156 something starting with __ and the normal name is an alias. */
6157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6158 choke me
6159 #else
6160 $ac_func();
6161 #endif
6163 ; return 0; }
6165 if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6166 rm -rf conftest*
6167 eval "ac_cv_func_$ac_func=yes"
6168 else
6169 echo "configure: failed program was:" >&5
6170 cat conftest.$ac_ext >&5
6171 rm -rf conftest*
6172 eval "ac_cv_func_$ac_func=no"
6174 rm -f conftest*
6177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6178 echo "$ac_t""yes" 1>&6
6179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6180 cat >> confdefs.h <<EOF
6181 #define $ac_tr_func 1
6184 else
6185 echo "$ac_t""no" 1>&6
6187 done
6189 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6190 echo "configure:6191: checking for putprpwnam in -lsecurity" >&5
6191 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6194 else
6195 ac_save_LIBS="$LIBS"
6196 LIBS="-lsecurity $LIBS"
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* Override any gcc2 internal prototype to avoid an error. */
6201 /* We use char because int might match the return type of a gcc2
6202 builtin and then its argument prototype would still apply. */
6203 char putprpwnam();
6205 int main() {
6206 putprpwnam()
6207 ; return 0; }
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6210 rm -rf conftest*
6211 eval "ac_cv_lib_$ac_lib_var=yes"
6212 else
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 rm -rf conftest*
6216 eval "ac_cv_lib_$ac_lib_var=no"
6218 rm -f conftest*
6219 LIBS="$ac_save_LIBS"
6222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6223 echo "$ac_t""yes" 1>&6
6224 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6226 cat >> confdefs.h <<EOF
6227 #define $ac_tr_lib 1
6230 LIBS="-lsecurity $LIBS"
6232 else
6233 echo "$ac_t""no" 1>&6
6236 for ac_func in putprpwnam
6238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6239 echo "configure:6240: checking for $ac_func" >&5
6240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6241 echo $ac_n "(cached) $ac_c" 1>&6
6242 else
6243 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6246 /* System header to define __stub macros and hopefully few prototypes,
6247 which can conflict with char $ac_func(); below. */
6248 #include <assert.h>
6249 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6252 char $ac_func();
6254 int main() {
6256 /* The GNU C library defines this for functions which it implements
6257 to always fail with ENOSYS. Some functions are actually named
6258 something starting with __ and the normal name is an alias. */
6259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6260 choke me
6261 #else
6262 $ac_func();
6263 #endif
6265 ; return 0; }
6267 if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6268 rm -rf conftest*
6269 eval "ac_cv_func_$ac_func=yes"
6270 else
6271 echo "configure: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6273 rm -rf conftest*
6274 eval "ac_cv_func_$ac_func=no"
6276 rm -f conftest*
6279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6280 echo "$ac_t""yes" 1>&6
6281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6282 cat >> confdefs.h <<EOF
6283 #define $ac_tr_func 1
6286 else
6287 echo "$ac_t""no" 1>&6
6289 done
6292 esac
6294 case "$LIBS" in
6295 *-lsec*) for ac_func in putprpwnam
6297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_func" >&5
6299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char $ac_func(); below. */
6307 #include <assert.h>
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6311 char $ac_func();
6313 int main() {
6315 /* The GNU C library defines this for functions which it implements
6316 to always fail with ENOSYS. Some functions are actually named
6317 something starting with __ and the normal name is an alias. */
6318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6319 choke me
6320 #else
6321 $ac_func();
6322 #endif
6324 ; return 0; }
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6327 rm -rf conftest*
6328 eval "ac_cv_func_$ac_func=yes"
6329 else
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6332 rm -rf conftest*
6333 eval "ac_cv_func_$ac_func=no"
6335 rm -f conftest*
6338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6341 cat >> confdefs.h <<EOF
6342 #define $ac_tr_func 1
6345 else
6346 echo "$ac_t""no" 1>&6
6348 done
6350 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6351 echo "configure:6352: checking for putprpwnam in -lsec" >&5
6352 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6355 else
6356 ac_save_LIBS="$LIBS"
6357 LIBS="-lsec $LIBS"
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6364 char putprpwnam();
6366 int main() {
6367 putprpwnam()
6368 ; return 0; }
6370 if { (eval echo configure:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6371 rm -rf conftest*
6372 eval "ac_cv_lib_$ac_lib_var=yes"
6373 else
6374 echo "configure: failed program was:" >&5
6375 cat conftest.$ac_ext >&5
6376 rm -rf conftest*
6377 eval "ac_cv_lib_$ac_lib_var=no"
6379 rm -f conftest*
6380 LIBS="$ac_save_LIBS"
6383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6385 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6387 cat >> confdefs.h <<EOF
6388 #define $ac_tr_lib 1
6391 LIBS="-lsec $LIBS"
6393 else
6394 echo "$ac_t""no" 1>&6
6397 for ac_func in putprpwnam
6399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6400 echo "configure:6401: checking for $ac_func" >&5
6401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6403 else
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407 /* System header to define __stub macros and hopefully few prototypes,
6408 which can conflict with char $ac_func(); below. */
6409 #include <assert.h>
6410 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char $ac_func();
6415 int main() {
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6421 choke me
6422 #else
6423 $ac_func();
6424 #endif
6426 ; return 0; }
6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 rm -rf conftest*
6430 eval "ac_cv_func_$ac_func=yes"
6431 else
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6434 rm -rf conftest*
6435 eval "ac_cv_func_$ac_func=no"
6437 rm -f conftest*
6440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6441 echo "$ac_t""yes" 1>&6
6442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6443 cat >> confdefs.h <<EOF
6444 #define $ac_tr_func 1
6447 else
6448 echo "$ac_t""no" 1>&6
6450 done
6453 esac
6456 case "$LIBS" in
6457 *-lsecurity*) for ac_func in set_auth_parameters
6459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6460 echo "configure:6461: checking for $ac_func" >&5
6461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6462 echo $ac_n "(cached) $ac_c" 1>&6
6463 else
6464 cat > conftest.$ac_ext <<EOF
6465 #line 6466 "configure"
6466 #include "confdefs.h"
6467 /* System header to define __stub macros and hopefully few prototypes,
6468 which can conflict with char $ac_func(); below. */
6469 #include <assert.h>
6470 /* Override any gcc2 internal prototype to avoid an error. */
6471 /* We use char because int might match the return type of a gcc2
6472 builtin and then its argument prototype would still apply. */
6473 char $ac_func();
6475 int main() {
6477 /* The GNU C library defines this for functions which it implements
6478 to always fail with ENOSYS. Some functions are actually named
6479 something starting with __ and the normal name is an alias. */
6480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6481 choke me
6482 #else
6483 $ac_func();
6484 #endif
6486 ; return 0; }
6488 if { (eval echo configure:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6489 rm -rf conftest*
6490 eval "ac_cv_func_$ac_func=yes"
6491 else
6492 echo "configure: failed program was:" >&5
6493 cat conftest.$ac_ext >&5
6494 rm -rf conftest*
6495 eval "ac_cv_func_$ac_func=no"
6497 rm -f conftest*
6500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6501 echo "$ac_t""yes" 1>&6
6502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6503 cat >> confdefs.h <<EOF
6504 #define $ac_tr_func 1
6507 else
6508 echo "$ac_t""no" 1>&6
6510 done
6512 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6513 echo "configure:6514: checking for set_auth_parameters in -lsecurity" >&5
6514 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6517 else
6518 ac_save_LIBS="$LIBS"
6519 LIBS="-lsecurity $LIBS"
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6523 /* Override any gcc2 internal prototype to avoid an error. */
6524 /* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6526 char set_auth_parameters();
6528 int main() {
6529 set_auth_parameters()
6530 ; return 0; }
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 rm -rf conftest*
6534 eval "ac_cv_lib_$ac_lib_var=yes"
6535 else
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6538 rm -rf conftest*
6539 eval "ac_cv_lib_$ac_lib_var=no"
6541 rm -f conftest*
6542 LIBS="$ac_save_LIBS"
6545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6547 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6549 cat >> confdefs.h <<EOF
6550 #define $ac_tr_lib 1
6553 LIBS="-lsecurity $LIBS"
6555 else
6556 echo "$ac_t""no" 1>&6
6559 for ac_func in set_auth_parameters
6561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6562 echo "configure:6563: checking for $ac_func" >&5
6563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6565 else
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* System header to define __stub macros and hopefully few prototypes,
6570 which can conflict with char $ac_func(); below. */
6571 #include <assert.h>
6572 /* Override any gcc2 internal prototype to avoid an error. */
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6575 char $ac_func();
6577 int main() {
6579 /* The GNU C library defines this for functions which it implements
6580 to always fail with ENOSYS. Some functions are actually named
6581 something starting with __ and the normal name is an alias. */
6582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6583 choke me
6584 #else
6585 $ac_func();
6586 #endif
6588 ; return 0; }
6590 if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6591 rm -rf conftest*
6592 eval "ac_cv_func_$ac_func=yes"
6593 else
6594 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6596 rm -rf conftest*
6597 eval "ac_cv_func_$ac_func=no"
6599 rm -f conftest*
6602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6603 echo "$ac_t""yes" 1>&6
6604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6605 cat >> confdefs.h <<EOF
6606 #define $ac_tr_func 1
6609 else
6610 echo "$ac_t""no" 1>&6
6612 done
6615 esac
6617 case "$LIBS" in
6618 *-lsec*) for ac_func in set_auth_parameters
6620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_func" >&5
6622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6624 else
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* System header to define __stub macros and hopefully few prototypes,
6629 which can conflict with char $ac_func(); below. */
6630 #include <assert.h>
6631 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6634 char $ac_func();
6636 int main() {
6638 /* The GNU C library defines this for functions which it implements
6639 to always fail with ENOSYS. Some functions are actually named
6640 something starting with __ and the normal name is an alias. */
6641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6642 choke me
6643 #else
6644 $ac_func();
6645 #endif
6647 ; return 0; }
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 rm -rf conftest*
6651 eval "ac_cv_func_$ac_func=yes"
6652 else
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6655 rm -rf conftest*
6656 eval "ac_cv_func_$ac_func=no"
6658 rm -f conftest*
6661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6662 echo "$ac_t""yes" 1>&6
6663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6664 cat >> confdefs.h <<EOF
6665 #define $ac_tr_func 1
6668 else
6669 echo "$ac_t""no" 1>&6
6671 done
6673 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6674 echo "configure:6675: checking for set_auth_parameters in -lsec" >&5
6675 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6677 echo $ac_n "(cached) $ac_c" 1>&6
6678 else
6679 ac_save_LIBS="$LIBS"
6680 LIBS="-lsec $LIBS"
6681 cat > conftest.$ac_ext <<EOF
6682 #line 6683 "configure"
6683 #include "confdefs.h"
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 /* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6687 char set_auth_parameters();
6689 int main() {
6690 set_auth_parameters()
6691 ; return 0; }
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6694 rm -rf conftest*
6695 eval "ac_cv_lib_$ac_lib_var=yes"
6696 else
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6699 rm -rf conftest*
6700 eval "ac_cv_lib_$ac_lib_var=no"
6702 rm -f conftest*
6703 LIBS="$ac_save_LIBS"
6706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6710 cat >> confdefs.h <<EOF
6711 #define $ac_tr_lib 1
6714 LIBS="-lsec $LIBS"
6716 else
6717 echo "$ac_t""no" 1>&6
6720 for ac_func in set_auth_parameters
6722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6723 echo "configure:6724: checking for $ac_func" >&5
6724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6725 echo $ac_n "(cached) $ac_c" 1>&6
6726 else
6727 cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6730 /* System header to define __stub macros and hopefully few prototypes,
6731 which can conflict with char $ac_func(); below. */
6732 #include <assert.h>
6733 /* Override any gcc2 internal prototype to avoid an error. */
6734 /* We use char because int might match the return type of a gcc2
6735 builtin and then its argument prototype would still apply. */
6736 char $ac_func();
6738 int main() {
6740 /* The GNU C library defines this for functions which it implements
6741 to always fail with ENOSYS. Some functions are actually named
6742 something starting with __ and the normal name is an alias. */
6743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744 choke me
6745 #else
6746 $ac_func();
6747 #endif
6749 ; return 0; }
6751 if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6752 rm -rf conftest*
6753 eval "ac_cv_func_$ac_func=yes"
6754 else
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 rm -rf conftest*
6758 eval "ac_cv_func_$ac_func=no"
6760 rm -f conftest*
6763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6764 echo "$ac_t""yes" 1>&6
6765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6766 cat >> confdefs.h <<EOF
6767 #define $ac_tr_func 1
6770 else
6771 echo "$ac_t""no" 1>&6
6773 done
6776 esac
6779 # UnixWare 7.x has its getspnam in -lgen
6780 case "$LIBS" in
6781 *-lgen*) for ac_func in getspnam
6783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6784 echo "configure:6785: checking for $ac_func" >&5
6785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6787 else
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 /* System header to define __stub macros and hopefully few prototypes,
6792 which can conflict with char $ac_func(); below. */
6793 #include <assert.h>
6794 /* Override any gcc2 internal prototype to avoid an error. */
6795 /* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6797 char $ac_func();
6799 int main() {
6801 /* The GNU C library defines this for functions which it implements
6802 to always fail with ENOSYS. Some functions are actually named
6803 something starting with __ and the normal name is an alias. */
6804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6805 choke me
6806 #else
6807 $ac_func();
6808 #endif
6810 ; return 0; }
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6813 rm -rf conftest*
6814 eval "ac_cv_func_$ac_func=yes"
6815 else
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6818 rm -rf conftest*
6819 eval "ac_cv_func_$ac_func=no"
6821 rm -f conftest*
6824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6825 echo "$ac_t""yes" 1>&6
6826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6827 cat >> confdefs.h <<EOF
6828 #define $ac_tr_func 1
6831 else
6832 echo "$ac_t""no" 1>&6
6834 done
6836 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6837 echo "configure:6838: checking for getspnam in -lgen" >&5
6838 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6841 else
6842 ac_save_LIBS="$LIBS"
6843 LIBS="-lgen $LIBS"
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* Override any gcc2 internal prototype to avoid an error. */
6848 /* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6850 char getspnam();
6852 int main() {
6853 getspnam()
6854 ; return 0; }
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6857 rm -rf conftest*
6858 eval "ac_cv_lib_$ac_lib_var=yes"
6859 else
6860 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6862 rm -rf conftest*
6863 eval "ac_cv_lib_$ac_lib_var=no"
6865 rm -f conftest*
6866 LIBS="$ac_save_LIBS"
6869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6870 echo "$ac_t""yes" 1>&6
6871 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6872 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6873 cat >> confdefs.h <<EOF
6874 #define $ac_tr_lib 1
6877 LIBS="-lgen $LIBS"
6879 else
6880 echo "$ac_t""no" 1>&6
6883 for ac_func in getspnam
6885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6886 echo "configure:6887: checking for $ac_func" >&5
6887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6888 echo $ac_n "(cached) $ac_c" 1>&6
6889 else
6890 cat > conftest.$ac_ext <<EOF
6891 #line 6892 "configure"
6892 #include "confdefs.h"
6893 /* System header to define __stub macros and hopefully few prototypes,
6894 which can conflict with char $ac_func(); below. */
6895 #include <assert.h>
6896 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6899 char $ac_func();
6901 int main() {
6903 /* The GNU C library defines this for functions which it implements
6904 to always fail with ENOSYS. Some functions are actually named
6905 something starting with __ and the normal name is an alias. */
6906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6907 choke me
6908 #else
6909 $ac_func();
6910 #endif
6912 ; return 0; }
6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6915 rm -rf conftest*
6916 eval "ac_cv_func_$ac_func=yes"
6917 else
6918 echo "configure: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6920 rm -rf conftest*
6921 eval "ac_cv_func_$ac_func=no"
6923 rm -f conftest*
6926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6927 echo "$ac_t""yes" 1>&6
6928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6929 cat >> confdefs.h <<EOF
6930 #define $ac_tr_func 1
6933 else
6934 echo "$ac_t""no" 1>&6
6936 done
6939 esac
6942 case "$LIBS" in
6943 *-lsecurity*) for ac_func in getspnam
6945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6946 echo "configure:6947: checking for $ac_func" >&5
6947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6948 echo $ac_n "(cached) $ac_c" 1>&6
6949 else
6950 cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6953 /* System header to define __stub macros and hopefully few prototypes,
6954 which can conflict with char $ac_func(); below. */
6955 #include <assert.h>
6956 /* Override any gcc2 internal prototype to avoid an error. */
6957 /* We use char because int might match the return type of a gcc2
6958 builtin and then its argument prototype would still apply. */
6959 char $ac_func();
6961 int main() {
6963 /* The GNU C library defines this for functions which it implements
6964 to always fail with ENOSYS. Some functions are actually named
6965 something starting with __ and the normal name is an alias. */
6966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6967 choke me
6968 #else
6969 $ac_func();
6970 #endif
6972 ; return 0; }
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6975 rm -rf conftest*
6976 eval "ac_cv_func_$ac_func=yes"
6977 else
6978 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6980 rm -rf conftest*
6981 eval "ac_cv_func_$ac_func=no"
6983 rm -f conftest*
6986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6989 cat >> confdefs.h <<EOF
6990 #define $ac_tr_func 1
6993 else
6994 echo "$ac_t""no" 1>&6
6996 done
6998 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6999 echo "configure:7000: checking for getspnam in -lsecurity" >&5
7000 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7003 else
7004 ac_save_LIBS="$LIBS"
7005 LIBS="-lsecurity $LIBS"
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7009 /* Override any gcc2 internal prototype to avoid an error. */
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7012 char getspnam();
7014 int main() {
7015 getspnam()
7016 ; return 0; }
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7019 rm -rf conftest*
7020 eval "ac_cv_lib_$ac_lib_var=yes"
7021 else
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 rm -rf conftest*
7025 eval "ac_cv_lib_$ac_lib_var=no"
7027 rm -f conftest*
7028 LIBS="$ac_save_LIBS"
7031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7032 echo "$ac_t""yes" 1>&6
7033 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7035 cat >> confdefs.h <<EOF
7036 #define $ac_tr_lib 1
7039 LIBS="-lsecurity $LIBS"
7041 else
7042 echo "$ac_t""no" 1>&6
7045 for ac_func in getspnam
7047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7048 echo "configure:7049: checking for $ac_func" >&5
7049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7051 else
7052 cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7055 /* System header to define __stub macros and hopefully few prototypes,
7056 which can conflict with char $ac_func(); below. */
7057 #include <assert.h>
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7061 char $ac_func();
7063 int main() {
7065 /* The GNU C library defines this for functions which it implements
7066 to always fail with ENOSYS. Some functions are actually named
7067 something starting with __ and the normal name is an alias. */
7068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7069 choke me
7070 #else
7071 $ac_func();
7072 #endif
7074 ; return 0; }
7076 if { (eval echo configure:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7077 rm -rf conftest*
7078 eval "ac_cv_func_$ac_func=yes"
7079 else
7080 echo "configure: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7082 rm -rf conftest*
7083 eval "ac_cv_func_$ac_func=no"
7085 rm -f conftest*
7088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7089 echo "$ac_t""yes" 1>&6
7090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7091 cat >> confdefs.h <<EOF
7092 #define $ac_tr_func 1
7095 else
7096 echo "$ac_t""no" 1>&6
7098 done
7101 esac
7103 case "$LIBS" in
7104 *-lsec*) for ac_func in getspnam
7106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7107 echo "configure:7108: checking for $ac_func" >&5
7108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7109 echo $ac_n "(cached) $ac_c" 1>&6
7110 else
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 /* System header to define __stub macros and hopefully few prototypes,
7115 which can conflict with char $ac_func(); below. */
7116 #include <assert.h>
7117 /* Override any gcc2 internal prototype to avoid an error. */
7118 /* We use char because int might match the return type of a gcc2
7119 builtin and then its argument prototype would still apply. */
7120 char $ac_func();
7122 int main() {
7124 /* The GNU C library defines this for functions which it implements
7125 to always fail with ENOSYS. Some functions are actually named
7126 something starting with __ and the normal name is an alias. */
7127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7128 choke me
7129 #else
7130 $ac_func();
7131 #endif
7133 ; return 0; }
7135 if { (eval echo configure:7136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7136 rm -rf conftest*
7137 eval "ac_cv_func_$ac_func=yes"
7138 else
7139 echo "configure: failed program was:" >&5
7140 cat conftest.$ac_ext >&5
7141 rm -rf conftest*
7142 eval "ac_cv_func_$ac_func=no"
7144 rm -f conftest*
7147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7148 echo "$ac_t""yes" 1>&6
7149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7150 cat >> confdefs.h <<EOF
7151 #define $ac_tr_func 1
7154 else
7155 echo "$ac_t""no" 1>&6
7157 done
7159 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7160 echo "configure:7161: checking for getspnam in -lsec" >&5
7161 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7164 else
7165 ac_save_LIBS="$LIBS"
7166 LIBS="-lsec $LIBS"
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7170 /* Override any gcc2 internal prototype to avoid an error. */
7171 /* We use char because int might match the return type of a gcc2
7172 builtin and then its argument prototype would still apply. */
7173 char getspnam();
7175 int main() {
7176 getspnam()
7177 ; return 0; }
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7180 rm -rf conftest*
7181 eval "ac_cv_lib_$ac_lib_var=yes"
7182 else
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7185 rm -rf conftest*
7186 eval "ac_cv_lib_$ac_lib_var=no"
7188 rm -f conftest*
7189 LIBS="$ac_save_LIBS"
7192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7193 echo "$ac_t""yes" 1>&6
7194 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7196 cat >> confdefs.h <<EOF
7197 #define $ac_tr_lib 1
7200 LIBS="-lsec $LIBS"
7202 else
7203 echo "$ac_t""no" 1>&6
7206 for ac_func in getspnam
7208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7209 echo "configure:7210: checking for $ac_func" >&5
7210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7211 echo $ac_n "(cached) $ac_c" 1>&6
7212 else
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* System header to define __stub macros and hopefully few prototypes,
7217 which can conflict with char $ac_func(); below. */
7218 #include <assert.h>
7219 /* Override any gcc2 internal prototype to avoid an error. */
7220 /* We use char because int might match the return type of a gcc2
7221 builtin and then its argument prototype would still apply. */
7222 char $ac_func();
7224 int main() {
7226 /* The GNU C library defines this for functions which it implements
7227 to always fail with ENOSYS. Some functions are actually named
7228 something starting with __ and the normal name is an alias. */
7229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7230 choke me
7231 #else
7232 $ac_func();
7233 #endif
7235 ; return 0; }
7237 if { (eval echo configure:7238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7238 rm -rf conftest*
7239 eval "ac_cv_func_$ac_func=yes"
7240 else
7241 echo "configure: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7243 rm -rf conftest*
7244 eval "ac_cv_func_$ac_func=no"
7246 rm -f conftest*
7249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7250 echo "$ac_t""yes" 1>&6
7251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7252 cat >> confdefs.h <<EOF
7253 #define $ac_tr_func 1
7256 else
7257 echo "$ac_t""no" 1>&6
7259 done
7262 esac
7265 case "$LIBS" in
7266 *-lsecurity*) for ac_func in bigcrypt
7268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7269 echo "configure:7270: checking for $ac_func" >&5
7270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7272 else
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7276 /* System header to define __stub macros and hopefully few prototypes,
7277 which can conflict with char $ac_func(); below. */
7278 #include <assert.h>
7279 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */
7282 char $ac_func();
7284 int main() {
7286 /* The GNU C library defines this for functions which it implements
7287 to always fail with ENOSYS. Some functions are actually named
7288 something starting with __ and the normal name is an alias. */
7289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7290 choke me
7291 #else
7292 $ac_func();
7293 #endif
7295 ; return 0; }
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7298 rm -rf conftest*
7299 eval "ac_cv_func_$ac_func=yes"
7300 else
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7303 rm -rf conftest*
7304 eval "ac_cv_func_$ac_func=no"
7306 rm -f conftest*
7309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7312 cat >> confdefs.h <<EOF
7313 #define $ac_tr_func 1
7316 else
7317 echo "$ac_t""no" 1>&6
7319 done
7321 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7322 echo "configure:7323: checking for bigcrypt in -lsecurity" >&5
7323 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7325 echo $ac_n "(cached) $ac_c" 1>&6
7326 else
7327 ac_save_LIBS="$LIBS"
7328 LIBS="-lsecurity $LIBS"
7329 cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7332 /* Override any gcc2 internal prototype to avoid an error. */
7333 /* We use char because int might match the return type of a gcc2
7334 builtin and then its argument prototype would still apply. */
7335 char bigcrypt();
7337 int main() {
7338 bigcrypt()
7339 ; return 0; }
7341 if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7342 rm -rf conftest*
7343 eval "ac_cv_lib_$ac_lib_var=yes"
7344 else
7345 echo "configure: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 rm -rf conftest*
7348 eval "ac_cv_lib_$ac_lib_var=no"
7350 rm -f conftest*
7351 LIBS="$ac_save_LIBS"
7354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7355 echo "$ac_t""yes" 1>&6
7356 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7358 cat >> confdefs.h <<EOF
7359 #define $ac_tr_lib 1
7362 LIBS="-lsecurity $LIBS"
7364 else
7365 echo "$ac_t""no" 1>&6
7368 for ac_func in bigcrypt
7370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7371 echo "configure:7372: checking for $ac_func" >&5
7372 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7373 echo $ac_n "(cached) $ac_c" 1>&6
7374 else
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7378 /* System header to define __stub macros and hopefully few prototypes,
7379 which can conflict with char $ac_func(); below. */
7380 #include <assert.h>
7381 /* Override any gcc2 internal prototype to avoid an error. */
7382 /* We use char because int might match the return type of a gcc2
7383 builtin and then its argument prototype would still apply. */
7384 char $ac_func();
7386 int main() {
7388 /* The GNU C library defines this for functions which it implements
7389 to always fail with ENOSYS. Some functions are actually named
7390 something starting with __ and the normal name is an alias. */
7391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7392 choke me
7393 #else
7394 $ac_func();
7395 #endif
7397 ; return 0; }
7399 if { (eval echo configure:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7400 rm -rf conftest*
7401 eval "ac_cv_func_$ac_func=yes"
7402 else
7403 echo "configure: failed program was:" >&5
7404 cat conftest.$ac_ext >&5
7405 rm -rf conftest*
7406 eval "ac_cv_func_$ac_func=no"
7408 rm -f conftest*
7411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7412 echo "$ac_t""yes" 1>&6
7413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7414 cat >> confdefs.h <<EOF
7415 #define $ac_tr_func 1
7418 else
7419 echo "$ac_t""no" 1>&6
7421 done
7424 esac
7426 case "$LIBS" in
7427 *-lsec*) for ac_func in bigcrypt
7429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7430 echo "configure:7431: checking for $ac_func" >&5
7431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7432 echo $ac_n "(cached) $ac_c" 1>&6
7433 else
7434 cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7437 /* System header to define __stub macros and hopefully few prototypes,
7438 which can conflict with char $ac_func(); below. */
7439 #include <assert.h>
7440 /* Override any gcc2 internal prototype to avoid an error. */
7441 /* We use char because int might match the return type of a gcc2
7442 builtin and then its argument prototype would still apply. */
7443 char $ac_func();
7445 int main() {
7447 /* The GNU C library defines this for functions which it implements
7448 to always fail with ENOSYS. Some functions are actually named
7449 something starting with __ and the normal name is an alias. */
7450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7451 choke me
7452 #else
7453 $ac_func();
7454 #endif
7456 ; return 0; }
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7459 rm -rf conftest*
7460 eval "ac_cv_func_$ac_func=yes"
7461 else
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7464 rm -rf conftest*
7465 eval "ac_cv_func_$ac_func=no"
7467 rm -f conftest*
7470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7471 echo "$ac_t""yes" 1>&6
7472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7473 cat >> confdefs.h <<EOF
7474 #define $ac_tr_func 1
7477 else
7478 echo "$ac_t""no" 1>&6
7480 done
7482 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7483 echo "configure:7484: checking for bigcrypt in -lsec" >&5
7484 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7486 echo $ac_n "(cached) $ac_c" 1>&6
7487 else
7488 ac_save_LIBS="$LIBS"
7489 LIBS="-lsec $LIBS"
7490 cat > conftest.$ac_ext <<EOF
7491 #line 7492 "configure"
7492 #include "confdefs.h"
7493 /* Override any gcc2 internal prototype to avoid an error. */
7494 /* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */
7496 char bigcrypt();
7498 int main() {
7499 bigcrypt()
7500 ; return 0; }
7502 if { (eval echo configure:7503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7503 rm -rf conftest*
7504 eval "ac_cv_lib_$ac_lib_var=yes"
7505 else
7506 echo "configure: failed program was:" >&5
7507 cat conftest.$ac_ext >&5
7508 rm -rf conftest*
7509 eval "ac_cv_lib_$ac_lib_var=no"
7511 rm -f conftest*
7512 LIBS="$ac_save_LIBS"
7515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7516 echo "$ac_t""yes" 1>&6
7517 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7519 cat >> confdefs.h <<EOF
7520 #define $ac_tr_lib 1
7523 LIBS="-lsec $LIBS"
7525 else
7526 echo "$ac_t""no" 1>&6
7529 for ac_func in bigcrypt
7531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7532 echo "configure:7533: checking for $ac_func" >&5
7533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7535 else
7536 cat > conftest.$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7539 /* System header to define __stub macros and hopefully few prototypes,
7540 which can conflict with char $ac_func(); below. */
7541 #include <assert.h>
7542 /* Override any gcc2 internal prototype to avoid an error. */
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7545 char $ac_func();
7547 int main() {
7549 /* The GNU C library defines this for functions which it implements
7550 to always fail with ENOSYS. Some functions are actually named
7551 something starting with __ and the normal name is an alias. */
7552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7553 choke me
7554 #else
7555 $ac_func();
7556 #endif
7558 ; return 0; }
7560 if { (eval echo configure:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7561 rm -rf conftest*
7562 eval "ac_cv_func_$ac_func=yes"
7563 else
7564 echo "configure: failed program was:" >&5
7565 cat conftest.$ac_ext >&5
7566 rm -rf conftest*
7567 eval "ac_cv_func_$ac_func=no"
7569 rm -f conftest*
7572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7573 echo "$ac_t""yes" 1>&6
7574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7575 cat >> confdefs.h <<EOF
7576 #define $ac_tr_func 1
7579 else
7580 echo "$ac_t""no" 1>&6
7582 done
7585 esac
7588 case "$LIBS" in
7589 *-lsecurity*) for ac_func in getprpwnam
7591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_func" >&5
7593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7595 else
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* System header to define __stub macros and hopefully few prototypes,
7600 which can conflict with char $ac_func(); below. */
7601 #include <assert.h>
7602 /* Override any gcc2 internal prototype to avoid an error. */
7603 /* We use char because int might match the return type of a gcc2
7604 builtin and then its argument prototype would still apply. */
7605 char $ac_func();
7607 int main() {
7609 /* The GNU C library defines this for functions which it implements
7610 to always fail with ENOSYS. Some functions are actually named
7611 something starting with __ and the normal name is an alias. */
7612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7613 choke me
7614 #else
7615 $ac_func();
7616 #endif
7618 ; return 0; }
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7621 rm -rf conftest*
7622 eval "ac_cv_func_$ac_func=yes"
7623 else
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7626 rm -rf conftest*
7627 eval "ac_cv_func_$ac_func=no"
7629 rm -f conftest*
7632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7633 echo "$ac_t""yes" 1>&6
7634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7635 cat >> confdefs.h <<EOF
7636 #define $ac_tr_func 1
7639 else
7640 echo "$ac_t""no" 1>&6
7642 done
7644 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7645 echo "configure:7646: checking for getprpwnam in -lsecurity" >&5
7646 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7649 else
7650 ac_save_LIBS="$LIBS"
7651 LIBS="-lsecurity $LIBS"
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 /* Override any gcc2 internal prototype to avoid an error. */
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7658 char getprpwnam();
7660 int main() {
7661 getprpwnam()
7662 ; return 0; }
7664 if { (eval echo configure:7665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7665 rm -rf conftest*
7666 eval "ac_cv_lib_$ac_lib_var=yes"
7667 else
7668 echo "configure: failed program was:" >&5
7669 cat conftest.$ac_ext >&5
7670 rm -rf conftest*
7671 eval "ac_cv_lib_$ac_lib_var=no"
7673 rm -f conftest*
7674 LIBS="$ac_save_LIBS"
7677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7678 echo "$ac_t""yes" 1>&6
7679 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7680 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7681 cat >> confdefs.h <<EOF
7682 #define $ac_tr_lib 1
7685 LIBS="-lsecurity $LIBS"
7687 else
7688 echo "$ac_t""no" 1>&6
7691 for ac_func in getprpwnam
7693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7694 echo "configure:7695: checking for $ac_func" >&5
7695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7696 echo $ac_n "(cached) $ac_c" 1>&6
7697 else
7698 cat > conftest.$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7701 /* System header to define __stub macros and hopefully few prototypes,
7702 which can conflict with char $ac_func(); below. */
7703 #include <assert.h>
7704 /* Override any gcc2 internal prototype to avoid an error. */
7705 /* We use char because int might match the return type of a gcc2
7706 builtin and then its argument prototype would still apply. */
7707 char $ac_func();
7709 int main() {
7711 /* The GNU C library defines this for functions which it implements
7712 to always fail with ENOSYS. Some functions are actually named
7713 something starting with __ and the normal name is an alias. */
7714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7715 choke me
7716 #else
7717 $ac_func();
7718 #endif
7720 ; return 0; }
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7723 rm -rf conftest*
7724 eval "ac_cv_func_$ac_func=yes"
7725 else
7726 echo "configure: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7728 rm -rf conftest*
7729 eval "ac_cv_func_$ac_func=no"
7731 rm -f conftest*
7734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7735 echo "$ac_t""yes" 1>&6
7736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7737 cat >> confdefs.h <<EOF
7738 #define $ac_tr_func 1
7741 else
7742 echo "$ac_t""no" 1>&6
7744 done
7747 esac
7749 case "$LIBS" in
7750 *-lsec*) for ac_func in getprpwnam
7752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7753 echo "configure:7754: checking for $ac_func" >&5
7754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7756 else
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7760 /* System header to define __stub macros and hopefully few prototypes,
7761 which can conflict with char $ac_func(); below. */
7762 #include <assert.h>
7763 /* Override any gcc2 internal prototype to avoid an error. */
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7766 char $ac_func();
7768 int main() {
7770 /* The GNU C library defines this for functions which it implements
7771 to always fail with ENOSYS. Some functions are actually named
7772 something starting with __ and the normal name is an alias. */
7773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7774 choke me
7775 #else
7776 $ac_func();
7777 #endif
7779 ; return 0; }
7781 if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7782 rm -rf conftest*
7783 eval "ac_cv_func_$ac_func=yes"
7784 else
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7787 rm -rf conftest*
7788 eval "ac_cv_func_$ac_func=no"
7790 rm -f conftest*
7793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7796 cat >> confdefs.h <<EOF
7797 #define $ac_tr_func 1
7800 else
7801 echo "$ac_t""no" 1>&6
7803 done
7805 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7806 echo "configure:7807: checking for getprpwnam in -lsec" >&5
7807 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7809 echo $ac_n "(cached) $ac_c" 1>&6
7810 else
7811 ac_save_LIBS="$LIBS"
7812 LIBS="-lsec $LIBS"
7813 cat > conftest.$ac_ext <<EOF
7814 #line 7815 "configure"
7815 #include "confdefs.h"
7816 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819 char getprpwnam();
7821 int main() {
7822 getprpwnam()
7823 ; return 0; }
7825 if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7826 rm -rf conftest*
7827 eval "ac_cv_lib_$ac_lib_var=yes"
7828 else
7829 echo "configure: failed program was:" >&5
7830 cat conftest.$ac_ext >&5
7831 rm -rf conftest*
7832 eval "ac_cv_lib_$ac_lib_var=no"
7834 rm -f conftest*
7835 LIBS="$ac_save_LIBS"
7838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7839 echo "$ac_t""yes" 1>&6
7840 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7841 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7842 cat >> confdefs.h <<EOF
7843 #define $ac_tr_lib 1
7846 LIBS="-lsec $LIBS"
7848 else
7849 echo "$ac_t""no" 1>&6
7852 for ac_func in getprpwnam
7854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7855 echo "configure:7856: checking for $ac_func" >&5
7856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7858 else
7859 cat > conftest.$ac_ext <<EOF
7860 #line 7861 "configure"
7861 #include "confdefs.h"
7862 /* System header to define __stub macros and hopefully few prototypes,
7863 which can conflict with char $ac_func(); below. */
7864 #include <assert.h>
7865 /* Override any gcc2 internal prototype to avoid an error. */
7866 /* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7868 char $ac_func();
7870 int main() {
7872 /* The GNU C library defines this for functions which it implements
7873 to always fail with ENOSYS. Some functions are actually named
7874 something starting with __ and the normal name is an alias. */
7875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7876 choke me
7877 #else
7878 $ac_func();
7879 #endif
7881 ; return 0; }
7883 if { (eval echo configure:7884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7884 rm -rf conftest*
7885 eval "ac_cv_func_$ac_func=yes"
7886 else
7887 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 rm -rf conftest*
7890 eval "ac_cv_func_$ac_func=no"
7892 rm -f conftest*
7895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7896 echo "$ac_t""yes" 1>&6
7897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7898 cat >> confdefs.h <<EOF
7899 #define $ac_tr_func 1
7902 else
7903 echo "$ac_t""no" 1>&6
7905 done
7908 esac
7911 # this bit needs to be modified for each OS that is suported by
7912 # smbwrapper. You need to specify how to created a shared library and
7913 # how to compile C code to produce PIC object files
7915 # these are the defaults, good for lots of systems
7916 HOST_OS="$host_os"
7917 LDSHFLAGS="-shared"
7918 PICFLAG=""
7919 SHLIBEXT="so"
7921 # and these are for particular systems
7922 case "$host_os" in
7923 *linux*) cat >> confdefs.h <<\EOF
7924 #define LINUX 1
7927 *solaris*) cat >> confdefs.h <<\EOF
7928 #define SUNOS5 1
7931 LDSHFLAGS="-G"
7933 *sunos*) cat >> confdefs.h <<\EOF
7934 #define SUNOS4 1
7937 LDSHFLAGS=""
7939 *bsd*) LDSHFLAGS="-shared -Bshareable"
7941 *irix*) cat >> confdefs.h <<\EOF
7942 #define IRIX 1
7945 case "$host_os" in
7946 *irix6*) cat >> confdefs.h <<\EOF
7947 #define IRIX6 1
7951 esac
7952 ATTEMPT_WRAP32_BUILD=yes
7954 *aix*) cat >> confdefs.h <<\EOF
7955 #define AIX 1
7958 *hpux*) cat >> confdefs.h <<\EOF
7959 #define HPUX 1
7962 SHLIBEXT="sl"
7963 # Use special PIC flags for the native HP-UX compiler.
7964 if test $ac_cv_prog_cc_Ae = yes; then
7965 LDSHFLAGS="-b"
7966 PICFLAG="+z"
7969 *qnx*) cat >> confdefs.h <<\EOF
7970 #define QNX 1
7973 *osf*) cat >> confdefs.h <<\EOF
7974 #define OSF1 1
7977 *sco*) cat >> confdefs.h <<\EOF
7978 #define SCO 1
7981 *next2*) cat >> confdefs.h <<\EOF
7982 #define NEXT2 1
7985 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7986 set dummy groff; ac_word=$2
7987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7988 echo "configure:7989: checking for $ac_word" >&5
7989 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7990 echo $ac_n "(cached) $ac_c" 1>&6
7991 else
7992 if test -n "$ROFF"; then
7993 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7994 else
7995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7996 ac_dummy="$PATH"
7997 for ac_dir in $ac_dummy; do
7998 test -z "$ac_dir" && ac_dir=.
7999 if test -f $ac_dir/$ac_word; then
8000 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8001 break
8003 done
8004 IFS="$ac_save_ifs"
8007 ROFF="$ac_cv_prog_ROFF"
8008 if test -n "$ROFF"; then
8009 echo "$ac_t""$ROFF" 1>&6
8010 else
8011 echo "$ac_t""no" 1>&6
8014 *sysv4*)
8015 case "$host" in
8016 *-univel-*) if test "$GCC" != yes ; then
8017 cat >> confdefs.h <<\EOF
8018 #define HAVE_MEMSET 1
8022 LDSHFLAGS="-G"
8024 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8025 #define RELIANTUNIX 1
8028 esac
8030 *sysv5*)
8031 if test "$GCC" != yes ; then
8032 cat >> confdefs.h <<\EOF
8033 #define HAVE_MEMSET 1
8037 LDSHFLAGS="-G"
8039 esac
8041 # try to work out how to produce pic code with this compiler
8042 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8043 echo "configure:8044: checking whether ${CC-cc} accepts -fpic" >&5
8044 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8046 else
8047 echo 'void f(){}' > conftest.c
8048 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8049 ac_cv_prog_cc_fpic=yes
8050 else
8051 ac_cv_prog_cc_fpic=no
8053 rm -f conftest*
8057 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8058 if test $ac_cv_prog_cc_fpic = yes; then
8059 PICFLAG="-fpic";
8061 if test x$PICFLAG = x; then
8062 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8063 echo "configure:8064: checking whether ${CC-cc} accepts -Kpic" >&5
8064 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8066 else
8067 echo 'void f(){}' > conftest.c
8068 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8069 ac_cv_prog_cc_Kpic=yes
8070 else
8071 ac_cv_prog_cc_Kpic=no
8073 rm -f conftest*
8077 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8078 if test $ac_cv_prog_cc_Kpic = yes; then
8079 PICFLAG="-Kpic";
8082 if test x$PICFLAG = x; then
8083 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8084 echo "configure:8085: checking whether ${CC-cc} accepts -KPIC" >&5
8085 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8087 else
8088 echo 'void f(){}' > conftest.c
8089 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8090 ac_cv_prog_cc_KPIC=yes
8091 else
8092 ac_cv_prog_cc_KPIC=no
8094 rm -f conftest*
8098 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8099 if test $ac_cv_prog_cc_KPIC = yes; then
8100 PICFLAG="-KPIC";
8104 ################
8106 echo $ac_n "checking for long long""... $ac_c" 1>&6
8107 echo "configure:8108: checking for long long" >&5
8108 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8110 else
8112 if test "$cross_compiling" = yes; then
8113 samba_cv_have_longlong=cross
8114 else
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8118 #include <stdio.h>
8119 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8122 then
8123 samba_cv_have_longlong=yes
8124 else
8125 echo "configure: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8127 rm -fr conftest*
8128 samba_cv_have_longlong=no
8130 rm -fr conftest*
8135 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8136 if test x"$samba_cv_have_longlong" = x"yes"; then
8137 cat >> confdefs.h <<\EOF
8138 #define HAVE_LONGLONG 1
8144 # Check if the compiler supports the LL prefix on long long integers.
8145 # AIX needs this.
8147 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8148 echo "configure:8149: checking for LL suffix on long long integers" >&5
8149 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8151 else
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 #include <stdio.h>
8157 int main() {
8158 long long i = 0x8000000000LL
8159 ; return 0; }
8161 if { (eval echo configure:8162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8162 rm -rf conftest*
8163 samba_cv_compiler_supports_ll=yes
8164 else
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8167 rm -rf conftest*
8168 samba_cv_compiler_supports_ll=no
8170 rm -f conftest*
8173 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8174 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8175 cat >> confdefs.h <<\EOF
8176 #define COMPILER_SUPPORTS_LL 1
8182 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8183 echo "configure:8184: checking for 64 bit off_t" >&5
8184 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8186 else
8188 if test "$cross_compiling" = yes; then
8189 samba_cv_SIZEOF_OFF_T=cross
8190 else
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 #include <stdio.h>
8195 #include <sys/stat.h>
8196 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8198 if { (eval echo configure:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8199 then
8200 samba_cv_SIZEOF_OFF_T=yes
8201 else
8202 echo "configure: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8204 rm -fr conftest*
8205 samba_cv_SIZEOF_OFF_T=no
8207 rm -fr conftest*
8212 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8213 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8214 cat >> confdefs.h <<\EOF
8215 #define SIZEOF_OFF_T 8
8220 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8221 echo "configure:8222: checking for off64_t" >&5
8222 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8224 else
8226 if test "$cross_compiling" = yes; then
8227 samba_cv_HAVE_OFF64_T=cross
8228 else
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8233 #if defined(HAVE_UNISTD_H)
8234 #include <unistd.h>
8235 #endif
8236 #include <stdio.h>
8237 #include <sys/stat.h>
8238 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8241 then
8242 samba_cv_HAVE_OFF64_T=yes
8243 else
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8246 rm -fr conftest*
8247 samba_cv_HAVE_OFF64_T=no
8249 rm -fr conftest*
8254 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8255 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8256 cat >> confdefs.h <<\EOF
8257 #define HAVE_OFF64_T 1
8262 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8263 echo "configure:8264: checking for 64 bit ino_t" >&5
8264 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8266 else
8268 if test "$cross_compiling" = yes; then
8269 samba_cv_SIZEOF_INO_T=cross
8270 else
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 #include <stdio.h>
8275 #include <sys/stat.h>
8276 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8278 if { (eval echo configure:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8279 then
8280 samba_cv_SIZEOF_INO_T=yes
8281 else
8282 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8284 rm -fr conftest*
8285 samba_cv_SIZEOF_INO_T=no
8287 rm -fr conftest*
8292 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8293 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8294 cat >> confdefs.h <<\EOF
8295 #define SIZEOF_INO_T 8
8300 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8301 echo "configure:8302: checking for ino64_t" >&5
8302 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8304 else
8306 if test "$cross_compiling" = yes; then
8307 samba_cv_HAVE_INO64_T=cross
8308 else
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8313 #if defined(HAVE_UNISTD_H)
8314 #include <unistd.h>
8315 #endif
8316 #include <stdio.h>
8317 #include <sys/stat.h>
8318 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8321 then
8322 samba_cv_HAVE_INO64_T=yes
8323 else
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8326 rm -fr conftest*
8327 samba_cv_HAVE_INO64_T=no
8329 rm -fr conftest*
8334 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8335 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8336 cat >> confdefs.h <<\EOF
8337 #define HAVE_INO64_T 1
8342 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8343 echo "configure:8344: checking for struct dirent64" >&5
8344 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8346 else
8348 cat > conftest.$ac_ext <<EOF
8349 #line 8350 "configure"
8350 #include "confdefs.h"
8352 #if defined(HAVE_UNISTD_H)
8353 #include <unistd.h>
8354 #endif
8355 #include <sys/types.h>
8356 #include <dirent.h>
8357 int main() {
8358 struct dirent64 de;
8359 ; return 0; }
8361 if { (eval echo configure:8362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8362 rm -rf conftest*
8363 samba_cv_HAVE_STRUCT_DIRENT64=yes
8364 else
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 rm -rf conftest*
8368 samba_cv_HAVE_STRUCT_DIRENT64=no
8370 rm -f conftest*
8373 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8374 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8375 cat >> confdefs.h <<\EOF
8376 #define HAVE_STRUCT_DIRENT64 1
8381 echo $ac_n "checking for union semun""... $ac_c" 1>&6
8382 echo "configure:8383: checking for union semun" >&5
8383 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8385 else
8387 if test "$cross_compiling" = yes; then
8388 samba_cv_HAVE_UNION_SEMUN=cross
8389 else
8390 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8394 #include <sys/types.h>
8395 #include <sys/ipc.h>
8396 #include <sys/sem.h>
8397 main() { union semun ss; exit(0); }
8399 if { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8400 then
8401 samba_cv_HAVE_UNION_SEMUN=yes
8402 else
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8405 rm -fr conftest*
8406 samba_cv_HAVE_UNION_SEMUN=no
8408 rm -fr conftest*
8413 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
8414 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
8415 cat >> confdefs.h <<\EOF
8416 #define HAVE_UNION_SEMUN 1
8421 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8422 echo "configure:8423: checking for unsigned char" >&5
8423 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8424 echo $ac_n "(cached) $ac_c" 1>&6
8425 else
8427 if test "$cross_compiling" = yes; then
8428 samba_cv_HAVE_UNSIGNED_CHAR=cross
8429 else
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8433 #include <stdio.h>
8434 main() { char c; c=250; exit((c > 0)?0:1); }
8436 if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8437 then
8438 samba_cv_HAVE_UNSIGNED_CHAR=yes
8439 else
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8442 rm -fr conftest*
8443 samba_cv_HAVE_UNSIGNED_CHAR=no
8445 rm -fr conftest*
8450 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8451 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8452 cat >> confdefs.h <<\EOF
8453 #define HAVE_UNSIGNED_CHAR 1
8458 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8459 echo "configure:8460: checking for sin_len in sock" >&5
8460 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8462 else
8464 cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8467 #include <sys/types.h>
8468 #include <sys/socket.h>
8469 #include <netinet/in.h>
8470 int main() {
8471 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8472 ; return 0; }
8474 if { (eval echo configure:8475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8475 rm -rf conftest*
8476 samba_cv_HAVE_SOCK_SIN_LEN=yes
8477 else
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8480 rm -rf conftest*
8481 samba_cv_HAVE_SOCK_SIN_LEN=no
8483 rm -f conftest*
8486 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8487 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8488 cat >> confdefs.h <<\EOF
8489 #define HAVE_SOCK_SIN_LEN 1
8494 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8495 echo "configure:8496: checking whether seekdir returns void" >&5
8496 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8497 echo $ac_n "(cached) $ac_c" 1>&6
8498 else
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 #include <sys/types.h>
8504 #include <dirent.h>
8505 void seekdir(DIR *d, long loc) { return; }
8506 int main() {
8507 return 0;
8508 ; return 0; }
8510 if { (eval echo configure:8511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8511 rm -rf conftest*
8512 samba_cv_SEEKDIR_RETURNS_VOID=yes
8513 else
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8516 rm -rf conftest*
8517 samba_cv_SEEKDIR_RETURNS_VOID=no
8519 rm -f conftest*
8522 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8523 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8524 cat >> confdefs.h <<\EOF
8525 #define SEEKDIR_RETURNS_VOID 1
8530 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8531 echo "configure:8532: checking for __FILE__ macro" >&5
8532 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8534 else
8536 cat > conftest.$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8539 #include <stdio.h>
8540 int main() {
8541 printf("%s\n", __FILE__);
8542 ; return 0; }
8544 if { (eval echo configure:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8545 rm -rf conftest*
8546 samba_cv_HAVE_FILE_MACRO=yes
8547 else
8548 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8550 rm -rf conftest*
8551 samba_cv_HAVE_FILE_MACRO=no
8553 rm -f conftest*
8556 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8557 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8558 cat >> confdefs.h <<\EOF
8559 #define HAVE_FILE_MACRO 1
8564 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8565 echo "configure:8566: checking for __FUNCTION__ macro" >&5
8566 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8567 echo $ac_n "(cached) $ac_c" 1>&6
8568 else
8570 cat > conftest.$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8573 #include <stdio.h>
8574 int main() {
8575 printf("%s\n", __FUNCTION__);
8576 ; return 0; }
8578 if { (eval echo configure:8579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8579 rm -rf conftest*
8580 samba_cv_HAVE_FUNCTION_MACRO=yes
8581 else
8582 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8584 rm -rf conftest*
8585 samba_cv_HAVE_FUNCTION_MACRO=no
8587 rm -f conftest*
8590 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8591 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8592 cat >> confdefs.h <<\EOF
8593 #define HAVE_FUNCTION_MACRO 1
8598 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8599 echo "configure:8600: checking if gettimeofday takes tz argument" >&5
8600 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8602 else
8604 if test "$cross_compiling" = yes; then
8605 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8606 else
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8611 #include <sys/time.h>
8612 #include <unistd.h>
8613 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8615 if { (eval echo configure:8616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8616 then
8617 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8618 else
8619 echo "configure: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 rm -fr conftest*
8622 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8624 rm -fr conftest*
8629 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8630 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8631 cat >> confdefs.h <<\EOF
8632 #define HAVE_GETTIMEOFDAY_TZ 1
8638 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8639 echo "configure:8640: checking for broken readdir" >&5
8640 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8642 else
8644 if test "$cross_compiling" = yes; then
8645 samba_cv_HAVE_BROKEN_READDIR=cross
8646 else
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8650 #include <sys/types.h>
8651 #include <dirent.h>
8652 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8653 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8654 di->d_name[0] == 0) exit(0); exit(1);}
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8657 then
8658 samba_cv_HAVE_BROKEN_READDIR=yes
8659 else
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 rm -fr conftest*
8663 samba_cv_HAVE_BROKEN_READDIR=no
8665 rm -fr conftest*
8670 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8671 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8672 cat >> confdefs.h <<\EOF
8673 #define HAVE_BROKEN_READDIR 1
8678 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8679 echo "configure:8680: checking for utimbuf" >&5
8680 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8682 else
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 #include <sys/types.h>
8688 #include <utime.h>
8689 int main() {
8690 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8691 ; return 0; }
8693 if { (eval echo configure:8694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8694 rm -rf conftest*
8695 samba_cv_HAVE_UTIMBUF=yes
8696 else
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8699 rm -rf conftest*
8700 samba_cv_HAVE_UTIMBUF=no
8702 rm -f conftest*
8705 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8706 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8707 cat >> confdefs.h <<\EOF
8708 #define HAVE_UTIMBUF 1
8713 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
8714 echo "configure:8715: checking for ut_syslen in utmpx" >&5
8715 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8717 else
8719 cat > conftest.$ac_ext <<EOF
8720 #line 8721 "configure"
8721 #include "confdefs.h"
8722 #include <utmpx.h>
8723 int main() {
8724 struct utmpx ux; ux.ut_syslen = 0;
8725 ; return 0; }
8727 if { (eval echo configure:8728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8728 rm -rf conftest*
8729 samba_cv_HAVE_UX_UT_SYSLEN=yes
8730 else
8731 echo "configure: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8733 rm -rf conftest*
8734 samba_cv_HAVE_UX_UT_SYSLEN=no
8736 rm -f conftest*
8739 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
8740 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
8741 cat >> confdefs.h <<\EOF
8742 #define HAVE_UX_UT_SYSLEN 1
8747 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
8748 echo "configure:8749: checking for kernel oplock type definitions" >&5
8749 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8751 else
8753 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 #include <sys/types.h>
8757 #include <fcntl.h>
8758 int main() {
8759 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
8760 ; return 0; }
8762 if { (eval echo configure:8763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8763 rm -rf conftest*
8764 samba_cv_HAVE_KERNEL_OPLOCKS=yes
8765 else
8766 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 rm -rf conftest*
8769 samba_cv_HAVE_KERNEL_OPLOCKS=no
8771 rm -f conftest*
8774 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
8775 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
8776 cat >> confdefs.h <<\EOF
8777 #define HAVE_KERNEL_OPLOCKS 1
8782 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
8783 echo "configure:8784: checking for irix specific capabilities" >&5
8784 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
8785 echo $ac_n "(cached) $ac_c" 1>&6
8786 else
8788 if test "$cross_compiling" = yes; then
8789 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
8790 else
8791 cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8794 #include <sys/types.h>
8795 #include <sys/capability.h>
8796 main() {
8797 cap_t cap;
8798 if ((cap = cap_get_proc()) == NULL)
8799 exit(1);
8800 cap->cap_effective |= CAP_NETWORK_MGT;
8801 cap->cap_inheritable |= CAP_NETWORK_MGT;
8802 cap_set_proc(cap);
8803 exit(0);
8807 if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8808 then
8809 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
8810 else
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -fr conftest*
8814 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
8816 rm -fr conftest*
8821 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
8822 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
8823 cat >> confdefs.h <<\EOF
8824 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
8830 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
8831 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
8834 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8835 echo "configure:8836: checking for int16 typedef included by rpc/rpc.h" >&5
8836 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8837 echo $ac_n "(cached) $ac_c" 1>&6
8838 else
8840 cat > conftest.$ac_ext <<EOF
8841 #line 8842 "configure"
8842 #include "confdefs.h"
8843 #include <sys/types.h>
8844 #if defined(HAVE_RPC_RPC_H)
8845 #include <rpc/rpc.h>
8846 #endif
8847 int main() {
8848 int16 testvar;
8849 ; return 0; }
8851 if { (eval echo configure:8852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8852 rm -rf conftest*
8853 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
8854 else
8855 echo "configure: failed program was:" >&5
8856 cat conftest.$ac_ext >&5
8857 rm -rf conftest*
8858 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
8860 rm -f conftest*
8863 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8864 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
8865 cat >> confdefs.h <<\EOF
8866 #define HAVE_INT16_FROM_RPC_RPC_H 1
8871 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8872 echo "configure:8873: checking for uint16 typedef included by rpc/rpc.h" >&5
8873 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8875 else
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 #include <sys/types.h>
8881 #if defined(HAVE_RPC_RPC_H)
8882 #include <rpc/rpc.h>
8883 #endif
8884 int main() {
8885 uint16 testvar;
8886 ; return 0; }
8888 if { (eval echo configure:8889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8889 rm -rf conftest*
8890 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
8891 else
8892 echo "configure: failed program was:" >&5
8893 cat conftest.$ac_ext >&5
8894 rm -rf conftest*
8895 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
8897 rm -f conftest*
8900 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8901 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
8902 cat >> confdefs.h <<\EOF
8903 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8908 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8909 echo "configure:8910: checking for int32 typedef included by rpc/rpc.h" >&5
8910 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8911 echo $ac_n "(cached) $ac_c" 1>&6
8912 else
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 #include <sys/types.h>
8918 #if defined(HAVE_RPC_RPC_H)
8919 #include <rpc/rpc.h>
8920 #endif
8921 int main() {
8922 int32 testvar;
8923 ; return 0; }
8925 if { (eval echo configure:8926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8926 rm -rf conftest*
8927 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
8928 else
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8931 rm -rf conftest*
8932 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
8934 rm -f conftest*
8937 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8938 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
8939 cat >> confdefs.h <<\EOF
8940 #define HAVE_INT32_FROM_RPC_RPC_H 1
8945 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8946 echo "configure:8947: checking for uint32 typedef included by rpc/rpc.h" >&5
8947 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8948 echo $ac_n "(cached) $ac_c" 1>&6
8949 else
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 #include <sys/types.h>
8955 #if defined(HAVE_RPC_RPC_H)
8956 #include <rpc/rpc.h>
8957 #endif
8958 int main() {
8959 uint32 testvar;
8960 ; return 0; }
8962 if { (eval echo configure:8963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8963 rm -rf conftest*
8964 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
8965 else
8966 echo "configure: failed program was:" >&5
8967 cat conftest.$ac_ext >&5
8968 rm -rf conftest*
8969 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
8971 rm -f conftest*
8974 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8975 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
8976 cat >> confdefs.h <<\EOF
8977 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8983 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8984 echo "configure:8985: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8985 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8987 else
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 #include <sys/types.h>
8993 #ifdef HAVE_SYS_SECURITY_H
8994 #include <sys/security.h>
8995 #include <prot.h>
8996 #endif /* HAVE_SYS_SECURITY_H */
8997 #if defined(HAVE_RPC_RPC_H)
8998 #include <rpc/rpc.h>
8999 #endif
9000 int main() {
9001 int testvar;
9002 ; return 0; }
9004 if { (eval echo configure:9005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9005 rm -rf conftest*
9006 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9007 else
9008 echo "configure: failed program was:" >&5
9009 cat conftest.$ac_ext >&5
9010 rm -rf conftest*
9011 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9013 rm -f conftest*
9016 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9017 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9018 cat >> confdefs.h <<\EOF
9019 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9024 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9025 echo "configure:9026: checking for test routines" >&5
9026 if test "$cross_compiling" = yes; then
9027 echo "configure: warning: cannot run when cross-compiling" 1>&2
9028 else
9029 cat > conftest.$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9032 #include "${srcdir-.}/tests/trivial.c"
9034 if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9035 then
9036 echo "$ac_t""yes" 1>&6
9037 else
9038 echo "configure: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9040 rm -fr conftest*
9041 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9043 rm -fr conftest*
9047 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9048 echo "configure:9049: checking for ftruncate extend" >&5
9049 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9050 echo $ac_n "(cached) $ac_c" 1>&6
9051 else
9053 if test "$cross_compiling" = yes; then
9054 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9055 else
9056 cat > conftest.$ac_ext <<EOF
9057 #line 9058 "configure"
9058 #include "confdefs.h"
9059 #include "${srcdir-.}/tests/ftruncate.c"
9061 if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9062 then
9063 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9064 else
9065 echo "configure: failed program was:" >&5
9066 cat conftest.$ac_ext >&5
9067 rm -fr conftest*
9068 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9070 rm -fr conftest*
9075 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9076 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9077 cat >> confdefs.h <<\EOF
9078 #define HAVE_FTRUNCATE_EXTEND 1
9083 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9084 echo "configure:9085: checking for broken getgroups" >&5
9085 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9087 else
9089 if test "$cross_compiling" = yes; then
9090 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9091 else
9092 cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 #include "${srcdir-.}/tests/getgroups.c"
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9098 then
9099 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9100 else
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 rm -fr conftest*
9104 samba_cv_HAVE_BROKEN_GETGROUPS=no
9106 rm -fr conftest*
9111 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9112 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_BROKEN_GETGROUPS 1
9119 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9120 echo "configure:9121: checking whether getpass should be replaced" >&5
9121 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9123 else
9125 SAVE_CPPFLAGS="$CPPFLAGS"
9126 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9127 cat > conftest.$ac_ext <<EOF
9128 #line 9129 "configure"
9129 #include "confdefs.h"
9131 #define REPLACE_GETPASS 1
9132 #define NO_CONFIG_H 1
9133 #define main dont_declare_main
9134 #include "${srcdir-.}/lib/getsmbpass.c"
9135 #undef main
9137 int main() {
9139 ; return 0; }
9141 if { (eval echo configure:9142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9142 rm -rf conftest*
9143 samba_cv_REPLACE_GETPASS=yes
9144 else
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 rm -rf conftest*
9148 samba_cv_REPLACE_GETPASS=no
9150 rm -f conftest*
9151 CPPFLAGS="$SAVE_CPPFLAGS"
9155 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9156 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9157 cat >> confdefs.h <<\EOF
9158 #define REPLACE_GETPASS 1
9163 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9164 echo "configure:9165: checking for working fnmatch" >&5
9165 if eval "test \"`echo '$''{'samba_cv_HAVE_FNMATCH'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9167 else
9169 if test "$cross_compiling" = yes; then
9170 samba_cv_HAVE_FNMATCH=cross
9171 else
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9175 #include <fnmatch.h>
9176 main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }
9178 if { (eval echo configure:9179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9179 then
9180 samba_cv_HAVE_FNMATCH=yes
9181 else
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 rm -fr conftest*
9185 samba_cv_HAVE_FNMATCH=no
9187 rm -fr conftest*
9192 echo "$ac_t""$samba_cv_HAVE_FNMATCH" 1>&6
9193 if test x"$samba_cv_HAVE_FNMATCH" = x"yes"; then
9194 cat >> confdefs.h <<\EOF
9195 #define HAVE_FNMATCH 1
9200 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9201 echo "configure:9202: checking for broken inet_ntoa" >&5
9202 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9204 else
9206 if test "$cross_compiling" = yes; then
9207 samba_cv_REPLACE_INET_NTOA=cross
9208 else
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9213 #include <stdio.h>
9214 #include <sys/types.h>
9215 #include <netinet/in.h>
9216 #ifdef HAVE_ARPA_INET_H
9217 #include <arpa/inet.h>
9218 #endif
9219 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9220 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9221 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9222 exit(1);}
9224 if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9225 then
9226 samba_cv_REPLACE_INET_NTOA=yes
9227 else
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9230 rm -fr conftest*
9231 samba_cv_REPLACE_INET_NTOA=no
9233 rm -fr conftest*
9238 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9239 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9240 cat >> confdefs.h <<\EOF
9241 #define REPLACE_INET_NTOA 1
9246 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9247 echo "configure:9248: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9248 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9250 else
9252 if test "$cross_compiling" = yes; then
9253 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9254 else
9255 cat > conftest.$ac_ext <<EOF
9256 #line 9257 "configure"
9257 #include "confdefs.h"
9258 #include <unistd.h>
9259 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9261 if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9262 then
9263 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9264 else
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9267 rm -fr conftest*
9268 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9270 rm -fr conftest*
9275 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9276 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9277 cat >> confdefs.h <<\EOF
9278 #define SYSCONF_SC_NGROUPS_MAX 1
9283 echo $ac_n "checking for root""... $ac_c" 1>&6
9284 echo "configure:9285: checking for root" >&5
9285 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9287 else
9289 if test "$cross_compiling" = yes; then
9290 samba_cv_HAVE_ROOT=cross
9291 else
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9295 main() { exit(getuid() != 0); }
9297 if { (eval echo configure:9298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9298 then
9299 samba_cv_HAVE_ROOT=yes
9300 else
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 rm -fr conftest*
9304 samba_cv_HAVE_ROOT=no
9306 rm -fr conftest*
9311 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9312 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
9313 cat >> confdefs.h <<\EOF
9314 #define HAVE_ROOT 1
9317 else
9318 echo "configure: warning: running as non-root will disable some tests" 1>&2
9321 ##################
9322 # look for a method of finding the list of network interfaces
9323 iface=no;
9324 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9325 echo "configure:9326: checking for iface AIX" >&5
9326 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9328 else
9330 if test "$cross_compiling" = yes; then
9331 samba_cv_HAVE_IFACE_AIX=cross
9332 else
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #define HAVE_IFACE_AIX 1
9338 #define AUTOCONF_TEST 1
9339 #include "confdefs.h"
9340 #include "${srcdir-.}/lib/interfaces.c"
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9343 then
9344 samba_cv_HAVE_IFACE_AIX=yes
9345 else
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9348 rm -fr conftest*
9349 samba_cv_HAVE_IFACE_AIX=no
9351 rm -fr conftest*
9356 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9357 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
9358 iface=yes;cat >> confdefs.h <<\EOF
9359 #define HAVE_IFACE_AIX 1
9364 if test $iface = no; then
9365 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9366 echo "configure:9367: checking for iface ifconf" >&5
9367 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9371 if test "$cross_compiling" = yes; then
9372 samba_cv_HAVE_IFACE_IFCONF=cross
9373 else
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9378 #define HAVE_IFACE_IFCONF 1
9379 #define AUTOCONF_TEST 1
9380 #include "confdefs.h"
9381 #include "${srcdir-.}/lib/interfaces.c"
9383 if { (eval echo configure:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9384 then
9385 samba_cv_HAVE_IFACE_IFCONF=yes
9386 else
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9389 rm -fr conftest*
9390 samba_cv_HAVE_IFACE_IFCONF=no
9392 rm -fr conftest*
9397 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9398 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
9399 iface=yes;cat >> confdefs.h <<\EOF
9400 #define HAVE_IFACE_IFCONF 1
9406 if test $iface = no; then
9407 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9408 echo "configure:9409: checking for iface ifreq" >&5
9409 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9411 else
9413 if test "$cross_compiling" = yes; then
9414 samba_cv_HAVE_IFACE_IFREQ=cross
9415 else
9416 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9420 #define HAVE_IFACE_IFREQ 1
9421 #define AUTOCONF_TEST 1
9422 #include "confdefs.h"
9423 #include "${srcdir-.}/lib/interfaces.c"
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9426 then
9427 samba_cv_HAVE_IFACE_IFREQ=yes
9428 else
9429 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 rm -fr conftest*
9432 samba_cv_HAVE_IFACE_IFREQ=no
9434 rm -fr conftest*
9439 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9440 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
9441 iface=yes;cat >> confdefs.h <<\EOF
9442 #define HAVE_IFACE_IFREQ 1
9449 ################################################
9450 # look for a method of setting the effective uid
9451 seteuid=no;
9452 if test $seteuid = no; then
9453 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9454 echo "configure:9455: checking for setresuid" >&5
9455 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9457 else
9459 if test "$cross_compiling" = yes; then
9460 samba_cv_USE_SETRESUID=cross
9461 else
9462 cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9466 #define AUTOCONF_TEST 1
9467 #define USE_SETRESUID 1
9468 #include "confdefs.h"
9469 #include "${srcdir-.}/lib/util_sec.c"
9471 if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9472 then
9473 samba_cv_USE_SETRESUID=yes
9474 else
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9477 rm -fr conftest*
9478 samba_cv_USE_SETRESUID=no
9480 rm -fr conftest*
9485 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9486 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
9487 seteuid=yes;cat >> confdefs.h <<\EOF
9488 #define USE_SETRESUID 1
9495 if test $seteuid = no; then
9496 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9497 echo "configure:9498: checking for setreuid" >&5
9498 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9500 else
9502 if test "$cross_compiling" = yes; then
9503 samba_cv_USE_SETREUID=cross
9504 else
9505 cat > conftest.$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9509 #define AUTOCONF_TEST 1
9510 #define USE_SETREUID 1
9511 #include "confdefs.h"
9512 #include "${srcdir-.}/lib/util_sec.c"
9514 if { (eval echo configure:9515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9515 then
9516 samba_cv_USE_SETREUID=yes
9517 else
9518 echo "configure: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 rm -fr conftest*
9521 samba_cv_USE_SETREUID=no
9523 rm -fr conftest*
9528 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
9529 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
9530 seteuid=yes;cat >> confdefs.h <<\EOF
9531 #define USE_SETREUID 1
9537 if test $seteuid = no; then
9538 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
9539 echo "configure:9540: checking for seteuid" >&5
9540 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9542 else
9544 if test "$cross_compiling" = yes; then
9545 samba_cv_USE_SETEUID=cross
9546 else
9547 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9551 #define AUTOCONF_TEST 1
9552 #define USE_SETEUID 1
9553 #include "confdefs.h"
9554 #include "${srcdir-.}/lib/util_sec.c"
9556 if { (eval echo configure:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9557 then
9558 samba_cv_USE_SETEUID=yes
9559 else
9560 echo "configure: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9562 rm -fr conftest*
9563 samba_cv_USE_SETEUID=no
9565 rm -fr conftest*
9570 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
9571 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
9572 seteuid=yes;cat >> confdefs.h <<\EOF
9573 #define USE_SETEUID 1
9579 if test $seteuid = no; then
9580 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
9581 echo "configure:9582: checking for setuidx" >&5
9582 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9584 else
9586 if test "$cross_compiling" = yes; then
9587 samba_cv_USE_SETUIDX=cross
9588 else
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9593 #define AUTOCONF_TEST 1
9594 #define USE_SETUIDX 1
9595 #include "confdefs.h"
9596 #include "${srcdir-.}/lib/util_sec.c"
9598 if { (eval echo configure:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9599 then
9600 samba_cv_USE_SETUIDX=yes
9601 else
9602 echo "configure: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9604 rm -fr conftest*
9605 samba_cv_USE_SETUIDX=no
9607 rm -fr conftest*
9612 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
9613 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
9614 seteuid=yes;cat >> confdefs.h <<\EOF
9615 #define USE_SETUIDX 1
9622 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
9623 echo "configure:9624: checking for shared mmap" >&5
9624 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9626 else
9628 if test "$cross_compiling" = yes; then
9629 samba_cv_HAVE_SHARED_MMAP=cross
9630 else
9631 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 #include "${srcdir-.}/tests/shared_mmap.c"
9636 if { (eval echo configure:9637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9637 then
9638 samba_cv_HAVE_SHARED_MMAP=yes
9639 else
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -fr conftest*
9643 samba_cv_HAVE_SHARED_MMAP=no
9645 rm -fr conftest*
9650 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
9651 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
9652 cat >> confdefs.h <<\EOF
9653 #define HAVE_SHARED_MMAP 1
9656 cat >> confdefs.h <<\EOF
9657 #define HAVE_MMAP 1
9662 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9663 echo "configure:9664: checking for ftruncate needs root" >&5
9664 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9666 else
9668 if test "$cross_compiling" = yes; then
9669 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
9670 else
9671 cat > conftest.$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9674 #include "${srcdir-.}/tests/ftruncroot.c"
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9677 then
9678 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
9679 else
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9682 rm -fr conftest*
9683 samba_cv_FTRUNCATE_NEEDS_ROOT=no
9685 rm -fr conftest*
9690 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
9691 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
9692 cat >> confdefs.h <<\EOF
9693 #define FTRUNCATE_NEEDS_ROOT 1
9698 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
9699 echo "configure:9700: checking for fcntl locking" >&5
9700 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9702 else
9704 if test "$cross_compiling" = yes; then
9705 samba_cv_HAVE_FCNTL_LOCK=cross
9706 else
9707 cat > conftest.$ac_ext <<EOF
9708 #line 9709 "configure"
9709 #include "confdefs.h"
9710 #include "${srcdir-.}/tests/fcntl_lock.c"
9712 if { (eval echo configure:9713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9713 then
9714 samba_cv_HAVE_FCNTL_LOCK=yes
9715 else
9716 echo "configure: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 rm -fr conftest*
9719 samba_cv_HAVE_FCNTL_LOCK=no
9721 rm -fr conftest*
9726 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
9727 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
9728 cat >> confdefs.h <<\EOF
9729 #define HAVE_FCNTL_LOCK 1
9734 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
9735 echo "configure:9736: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
9736 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9738 else
9740 if test "$cross_compiling" = yes; then
9741 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
9742 else
9743 cat > conftest.$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9746 #include "${srcdir-.}/tests/fcntl_lock64.c"
9748 if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9749 then
9750 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
9751 else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -fr conftest*
9755 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
9757 rm -fr conftest*
9762 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
9763 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
9764 cat >> confdefs.h <<\EOF
9765 #define HAVE_BROKEN_FCNTL64_LOCKS 1
9769 else
9772 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
9773 echo "configure:9774: checking for 64 bit fcntl locking" >&5
9774 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
9776 else
9778 if test "$cross_compiling" = yes; then
9779 samba_cv_HAVE_STRUCT_FLOCK64=cross
9780 else
9781 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9785 #if defined(HAVE_UNISTD_H)
9786 #include <unistd.h>
9787 #endif
9788 #include <stdio.h>
9789 #include <stdlib.h>
9791 #ifdef HAVE_FCNTL_H
9792 #include <fcntl.h>
9793 #endif
9795 #ifdef HAVE_SYS_FCNTL_H
9796 #include <sys/fcntl.h>
9797 #endif
9798 main() { struct flock64 fl64;
9799 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
9800 exit(0);
9801 #else
9802 exit(1);
9803 #endif
9806 if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9807 then
9808 samba_cv_HAVE_STRUCT_FLOCK64=yes
9809 else
9810 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9812 rm -fr conftest*
9813 samba_cv_HAVE_STRUCT_FLOCK64=no
9815 rm -fr conftest*
9820 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
9822 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
9823 cat >> confdefs.h <<\EOF
9824 #define HAVE_STRUCT_FLOCK64 1
9830 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
9831 echo "configure:9832: checking for sysv ipc" >&5
9832 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
9834 else
9836 if test "$cross_compiling" = yes; then
9837 samba_cv_HAVE_SYSV_IPC=cross
9838 else
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 #include "${srcdir-.}/tests/sysv_ipc.c"
9844 if { (eval echo configure:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9845 then
9846 samba_cv_HAVE_SYSV_IPC=yes
9847 else
9848 echo "configure: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9850 rm -fr conftest*
9851 samba_cv_HAVE_SYSV_IPC=no
9853 rm -fr conftest*
9858 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
9859 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
9860 cat >> confdefs.h <<\EOF
9861 #define HAVE_SYSV_IPC 1
9866 echo $ac_n "checking for IRIX sysv ipc semun problem using gcc""... $ac_c" 1>&6
9867 echo "configure:9868: checking for IRIX sysv ipc semun problem using gcc" >&5
9868 if eval "test \"`echo '$''{'samba_cv_NEED_SGI_SEMUN_HACK'+set}'`\" = set"; then
9869 echo $ac_n "(cached) $ac_c" 1>&6
9870 else
9872 if test "$cross_compiling" = yes; then
9873 samba_cv_NEED_SGI_SEMUN_HACK=cross
9874 else
9875 cat > conftest.$ac_ext <<EOF
9876 #line 9877 "configure"
9877 #include "confdefs.h"
9878 #include "${srcdir-.}/tests/sgi_sysv_hack.c"
9880 if { (eval echo configure:9881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9881 then
9882 samba_cv_NEED_SGI_SEMUN_HACK=yes
9883 else
9884 echo "configure: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9886 rm -fr conftest*
9887 samba_cv_NEED_SGI_SEMUN_HACK=no
9889 rm -fr conftest*
9894 echo "$ac_t""$samba_cv_NEED_SGI_SEMUN_HACK" 1>&6
9895 if test x"$samba_cv_NEED_SGI_SEMUN_HACK" = x"yes"; then
9896 cat >> confdefs.h <<\EOF
9897 #define NEED_SGI_SEMUN_HACK 1
9902 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
9903 echo "configure:9904: checking for a crypt that needs truncated salt" >&5
9904 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
9905 echo $ac_n "(cached) $ac_c" 1>&6
9906 else
9908 if test "$cross_compiling" = yes; then
9909 samba_cv_HAVE_TRUNCATED_SALT=cross
9910 else
9911 cat > conftest.$ac_ext <<EOF
9912 #line 9913 "configure"
9913 #include "confdefs.h"
9914 #include "${srcdir-.}/tests/crypttest.c"
9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9917 then
9918 samba_cv_HAVE_TRUNCATED_SALT=no
9919 else
9920 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5
9922 rm -fr conftest*
9923 samba_cv_HAVE_TRUNCATED_SALT=yes
9925 rm -fr conftest*
9930 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
9931 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
9932 cat >> confdefs.h <<\EOF
9933 #define HAVE_TRUNCATED_SALT 1
9938 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
9939 echo "configure:9940: checking for broken nisplus include files" >&5
9940 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
9941 echo $ac_n "(cached) $ac_c" 1>&6
9942 else
9944 cat > conftest.$ac_ext <<EOF
9945 #line 9946 "configure"
9946 #include "confdefs.h"
9947 #include <sys/acl.h>
9948 #if defined(HAVE_RPCSVC_NIS_H)
9949 #include <rpcsvc/nis.h>
9950 #endif
9951 int main() {
9952 return 0;
9953 ; return 0; }
9955 if { (eval echo configure:9956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9956 rm -rf conftest*
9957 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
9958 else
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 rm -rf conftest*
9962 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
9964 rm -f conftest*
9967 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
9968 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
9969 cat >> confdefs.h <<\EOF
9970 #define BROKEN_NISPLUS_INCLUDE_FILES 1
9976 #################################################
9977 # check for smbwrapper support
9978 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
9979 echo "configure:9980: checking whether to use smbwrapper" >&5
9980 # Check whether --with-smbwrapper or --without-smbwrapper was given.
9981 if test "${with_smbwrapper+set}" = set; then
9982 withval="$with_smbwrapper"
9983 case "$withval" in
9984 yes)
9985 echo "$ac_t""yes" 1>&6
9986 cat >> confdefs.h <<\EOF
9987 #define WITH_SMBWRAPPER 1
9990 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
9992 if test x$ATTEMPT_WRAP32_BUILD = x; then
9993 WRAP32=""
9994 else
9995 WRAP32=bin/smbwrapper.32.$SHLIBEXT
9998 # Conditions under which smbwrapper should not be built.
10000 if test x$PICFLAG = x; then
10001 echo No support for PIC code - disabling smbwrapper and smbsh
10002 WRAP=""
10003 WRAP32=""
10004 elif test x$ac_cv_func_syscall = xno; then
10005 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10006 WRAP=""
10007 WRAP32=""
10011 echo "$ac_t""no" 1>&6
10013 esac
10014 else
10015 echo "$ac_t""no" 1>&6
10020 #################################################
10021 # check for the AFS filesystem
10022 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10023 echo "configure:10024: checking whether to use AFS" >&5
10024 # Check whether --with-afs or --without-afs was given.
10025 if test "${with_afs+set}" = set; then
10026 withval="$with_afs"
10027 case "$withval" in
10028 yes)
10029 echo "$ac_t""yes" 1>&6
10030 cat >> confdefs.h <<\EOF
10031 #define WITH_AFS 1
10036 echo "$ac_t""no" 1>&6
10038 esac
10039 else
10040 echo "$ac_t""no" 1>&6
10045 #################################################
10046 # check for the DFS auth system
10047 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10048 echo "configure:10049: checking whether to use DFS auth" >&5
10049 # Check whether --with-dfs or --without-dfs was given.
10050 if test "${with_dfs+set}" = set; then
10051 withval="$with_dfs"
10052 case "$withval" in
10053 yes)
10054 echo "$ac_t""yes" 1>&6
10055 cat >> confdefs.h <<\EOF
10056 #define WITH_DFS 1
10061 echo "$ac_t""no" 1>&6
10063 esac
10064 else
10065 echo "$ac_t""no" 1>&6
10070 #################################################
10071 # check for Kerberos IV auth system
10072 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10073 echo "configure:10074: checking whether to use Kerberos IV" >&5
10074 # Check whether --with-krb4 or --without-krb4 was given.
10075 if test "${with_krb4+set}" = set; then
10076 withval="$with_krb4"
10077 echo "$ac_t""yes" 1>&6
10078 cat >> confdefs.h <<\EOF
10079 #define KRB4_AUTH 1
10082 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10083 echo "configure:10084: checking for dn_expand in -lresolv" >&5
10084 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087 else
10088 ac_save_LIBS="$LIBS"
10089 LIBS="-lresolv $LIBS"
10090 cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10093 /* Override any gcc2 internal prototype to avoid an error. */
10094 /* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10096 char dn_expand();
10098 int main() {
10099 dn_expand()
10100 ; return 0; }
10102 if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10103 rm -rf conftest*
10104 eval "ac_cv_lib_$ac_lib_var=yes"
10105 else
10106 echo "configure: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10108 rm -rf conftest*
10109 eval "ac_cv_lib_$ac_lib_var=no"
10111 rm -f conftest*
10112 LIBS="$ac_save_LIBS"
10115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10116 echo "$ac_t""yes" 1>&6
10117 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10119 cat >> confdefs.h <<EOF
10120 #define $ac_tr_lib 1
10123 LIBS="-lresolv $LIBS"
10125 else
10126 echo "$ac_t""no" 1>&6
10129 LIBS="$LIBS -lkrb -ldes"
10130 CFLAGS="$CFLAGS -I$withval/include"
10131 LDFLAGS="$LDFLAGS -L$withval/lib"
10132 ac_safe=`echo "kerberos/krb.h" | sed 'y%./+-%__p_%'`
10133 echo $ac_n "checking for kerberos/krb.h""... $ac_c" 1>&6
10134 echo "configure:10135: checking for kerberos/krb.h" >&5
10135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10137 else
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 #include <kerberos/krb.h>
10143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10144 { (eval echo configure:10145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10146 if test -z "$ac_err"; then
10147 rm -rf conftest*
10148 eval "ac_cv_header_$ac_safe=yes"
10149 else
10150 echo "$ac_err" >&5
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10153 rm -rf conftest*
10154 eval "ac_cv_header_$ac_safe=no"
10156 rm -f conftest*
10158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10159 echo "$ac_t""yes" 1>&6
10160 echo $ac_n "checking whether both krb.h and kerberos/krb.h can be included""... $ac_c" 1>&6
10161 echo "configure:10162: checking whether both krb.h and kerberos/krb.h can be included" >&5
10162 if eval "test \"`echo '$''{'samba_cv_no_kerberos_inconsistency'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10164 else
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 #include<kerberos/krb.h>
10170 #include<krb.h>
10171 int main() {
10173 ; return 0; }
10175 if { (eval echo configure:10176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10176 rm -rf conftest*
10177 samba_cv_no_kerberos_inconsistency=yes
10178 else
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10181 rm -rf conftest*
10182 samba_cv_no_kerberos_inconsistency=no
10184 rm -f conftest*
10188 echo "$ac_t""$samba_cv_no_kerberos_inconsistency" 1>&6
10189 if test x"$samba_cv_no_kerberos_inconsistency" = x"no"; then
10190 echo $ac_n "checking whether a Kerberos define work around is needed""... $ac_c" 1>&6
10191 echo "configure:10192: checking whether a Kerberos define work around is needed" >&5
10192 if eval "test \"`echo '$''{'samba_cv_kerberos_define_workaround'+set}'`\" = set"; then
10193 echo $ac_n "(cached) $ac_c" 1>&6
10194 else
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 #define _KERBEROS_KRB_H
10200 #include<kerberos/krb.h>
10201 #include<krb.h>
10202 int main() {
10204 ; return 0; }
10206 if { (eval echo configure:10207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10207 rm -rf conftest*
10208 samba_cv_kerberos_define_workaround=yes
10209 else
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 rm -rf conftest*
10213 samba_cv_kerberos_define_workaround=no
10215 rm -f conftest*
10219 echo "$ac_t""$samba_cv_kerberos_define_workaround" 1>&6
10220 if test x"$samba_cv_kerberos_define_workaround" = x"yes"; then
10221 cat >> confdefs.h <<\EOF
10222 #define USE_KRB4_DEFINE_WORK_AROUND 1
10227 else
10228 echo "$ac_t""no" 1>&6
10231 else
10232 echo "$ac_t""no" 1>&6
10237 #################################################
10238 # check for the AFS tickets from srvtabs
10239 echo $ac_n "checking whether to use AFS tickets from srvtabs""... $ac_c" 1>&6
10240 echo "configure:10241: checking whether to use AFS tickets from srvtabs" >&5
10241 # Check whether --with-srvtab or --without-srvtab was given.
10242 if test "${with_srvtab+set}" = set; then
10243 withval="$with_srvtab"
10244 case "$withval" in
10245 yes)
10246 echo "$ac_t""yes" 1>&6
10247 cat >> confdefs.h <<\EOF
10248 #define USE_RENEWABLE_AFS_TICKET ""
10251 LIBS="$LIBS -lkafs"
10254 echo "$ac_t""no" 1>&6
10257 echo "$ac_t""yes using instance $withval" 1>&6
10258 cat >> confdefs.h <<EOF
10259 #define USE_RENEWABLE_AFS_TICKET $withval
10262 LIBS="$LIBS -lkafs"
10264 esac
10265 else
10266 echo "$ac_t""no" 1>&6
10271 #################################################
10272 # check for Kerberos 5 auth system
10273 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10274 echo "configure:10275: checking whether to use Kerberos 5" >&5
10275 # Check whether --with-krb5 or --without-krb5 was given.
10276 if test "${with_krb5+set}" = set; then
10277 withval="$with_krb5"
10278 echo "$ac_t""yes" 1>&6
10279 cat >> confdefs.h <<\EOF
10280 #define KRB5_AUTH 1
10283 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10284 CFLAGS="$CFLAGS -I$withval/include"
10285 LDFLAGS="$LDFLAGS -L$withval/lib"
10286 else
10287 echo "$ac_t""no" 1>&6
10292 #################################################
10293 # check for automount support
10294 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10295 echo "configure:10296: checking whether to use AUTOMOUNT" >&5
10296 # Check whether --with-automount or --without-automount was given.
10297 if test "${with_automount+set}" = set; then
10298 withval="$with_automount"
10299 case "$withval" in
10300 yes)
10301 echo "$ac_t""yes" 1>&6
10302 cat >> confdefs.h <<\EOF
10303 #define WITH_AUTOMOUNT 1
10308 echo "$ac_t""no" 1>&6
10310 esac
10311 else
10312 echo "$ac_t""no" 1>&6
10317 #################################################
10318 # check for smbmount support
10319 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10320 echo "configure:10321: checking whether to use SMBMOUNT" >&5
10321 # Check whether --with-smbmount or --without-smbmount was given.
10322 if test "${with_smbmount+set}" = set; then
10323 withval="$with_smbmount"
10324 case "$withval" in
10325 yes)
10326 echo "$ac_t""yes" 1>&6
10327 cat >> confdefs.h <<\EOF
10328 #define WITH_SMBMOUNT 1
10331 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10334 echo "$ac_t""no" 1>&6
10335 MPROGS=
10337 esac
10338 else
10339 echo "$ac_t""no" 1>&6
10340 MPROGS=
10346 #################################################
10347 # check for a PAM password database
10348 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10349 echo "configure:10350: checking whether to use PAM password database" >&5
10350 # Check whether --with-pam or --without-pam was given.
10351 if test "${with_pam+set}" = set; then
10352 withval="$with_pam"
10353 case "$withval" in
10354 yes)
10355 echo "$ac_t""yes" 1>&6
10356 cat >> confdefs.h <<\EOF
10357 #define WITH_PAM 1
10360 LIBS="$LIBS -lpam"
10363 echo "$ac_t""no" 1>&6
10365 esac
10366 else
10367 echo "$ac_t""no" 1>&6
10373 #################################################
10374 # check for a LDAP password database
10375 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10376 echo "configure:10377: checking whether to use LDAP password database" >&5
10377 # Check whether --with-ldap or --without-ldap was given.
10378 if test "${with_ldap+set}" = set; then
10379 withval="$with_ldap"
10380 case "$withval" in
10381 yes)
10382 echo "$ac_t""yes" 1>&6
10383 cat >> confdefs.h <<\EOF
10384 #define WITH_LDAP 1
10387 LIBS="$LIBS -lldap -llber"
10390 echo "$ac_t""no" 1>&6
10392 esac
10393 else
10394 echo "$ac_t""no" 1>&6
10399 #################################################
10400 # check for a LDAP password database
10401 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10402 echo "configure:10403: checking whether to use LDAP password database" >&5
10403 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10404 if test "${with_nt5ldap+set}" = set; then
10405 withval="$with_nt5ldap"
10406 case "$withval" in
10407 yes)
10408 echo "$ac_t""yes" 1>&6
10409 cat >> confdefs.h <<\EOF
10410 #define WITH_NT5LDAP 1
10413 LIBS="$LIBS -lldap -llber"
10416 echo "$ac_t""no" 1>&6
10418 esac
10419 else
10420 echo "$ac_t""no" 1>&6
10425 #################################################
10426 # check for a LDAP password database
10427 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10428 echo "configure:10429: checking whether to use LDAP password database" >&5
10429 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10430 if test "${with_nt5ldap+set}" = set; then
10431 withval="$with_nt5ldap"
10432 case "$withval" in
10433 yes)
10434 echo "$ac_t""yes" 1>&6
10435 cat >> confdefs.h <<\EOF
10436 #define WITH_NT5LDAP 1
10439 LIBS="$LIBS -lldap -llber"
10442 echo "$ac_t""no" 1>&6
10444 esac
10445 else
10446 echo "$ac_t""no" 1>&6
10451 #################################################
10452 # check for a NISPLUS password database
10453 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10454 echo "configure:10455: checking whether to use NISPLUS password database" >&5
10455 # Check whether --with-nisplus or --without-nisplus was given.
10456 if test "${with_nisplus+set}" = set; then
10457 withval="$with_nisplus"
10458 case "$withval" in
10459 yes)
10460 echo "$ac_t""yes" 1>&6
10461 cat >> confdefs.h <<\EOF
10462 #define WITH_NISPLUS 1
10467 echo "$ac_t""no" 1>&6
10469 esac
10470 else
10471 echo "$ac_t""no" 1>&6
10476 #################################################
10477 # decide for the default sam-password-database
10478 echo $ac_n "checking which sam password database to use""... $ac_c" 1>&6
10479 echo "configure:10480: checking which sam password database to use" >&5
10480 # Check whether --with-sam_pwdb or --without-sam_pwdb was given.
10481 if test "${with_sam_pwdb+set}" = set; then
10482 withval="$with_sam_pwdb"
10483 case "$withval" in
10484 ""|passdb)
10485 SAM_PWDB_LIB='$(SAMRPASSLIB) $(SMBPWLIB)'
10486 sampwlibname="passdb"
10488 tdb)
10489 SAM_PWDB_LIB='$(SAMRTDBLIB)'
10490 sampwlibname="tdb"
10492 nt5ldap)
10493 SAM_PWDB_LIB='$(SAMRNT5LDAPLIB)'
10494 sampwlibname="nt5ldap (must also specify --with-nt5ldap)"
10497 SAM_PWDB_LIB='$(SAMRPASSLIB)'
10498 sampwlibname="passdb (unknown specified!)"
10500 esac
10501 else
10503 SAM_PWDB_LIB='$(SAMRPASSLIB) $(SMBPWLIB)'
10504 sampwlibname="passdb (default)"
10508 echo "$ac_t""$sampwlibname" 1>&6
10512 #################################################
10513 # check to use a tdb surs database
10514 echo $ac_n "checking whether to use SURS tdb database""... $ac_c" 1>&6
10515 echo "configure:10516: checking whether to use SURS tdb database" >&5
10516 # Check whether --with-surstdb or --without-surstdb was given.
10517 if test "${with_surstdb+set}" = set; then
10518 withval="$with_surstdb"
10519 case "$withval" in
10520 yes)
10521 echo "$ac_t""yes" 1>&6
10522 cat >> confdefs.h <<\EOF
10523 #define WITH_TDBSURS 1
10528 echo "$ac_t""no" 1>&6
10530 esac
10531 else
10532 echo "$ac_t""no" 1>&6
10538 #################################################
10539 # check for a NISPLUS_HOME support
10540 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10541 echo "configure:10542: checking whether to use NISPLUS_HOME" >&5
10542 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10543 if test "${with_nisplus_home+set}" = set; then
10544 withval="$with_nisplus_home"
10545 case "$withval" in
10546 yes)
10547 echo "$ac_t""yes" 1>&6
10548 cat >> confdefs.h <<\EOF
10549 #define WITH_NISPLUS_HOME 1
10554 echo "$ac_t""no" 1>&6
10556 esac
10557 else
10558 echo "$ac_t""no" 1>&6
10563 #################################################
10564 # check for the secure socket layer
10565 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10566 echo "configure:10567: checking whether to use SSL" >&5
10567 # Check whether --with-ssl or --without-ssl was given.
10568 if test "${with_ssl+set}" = set; then
10569 withval="$with_ssl"
10570 case "$withval" in
10571 yes)
10572 echo "$ac_t""yes" 1>&6
10573 cat >> confdefs.h <<\EOF
10574 #define WITH_SSL 1
10577 withval="/usr/local/ssl" # default
10579 if test "${with_sslinc+set}" = set; then
10581 withval="$with_sslinc"
10582 case "$withval" in
10583 yes|no)
10584 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10585 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10586 LIBS="-lssl -lcrypto $LIBS"
10587 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
10590 CFLAGS="-I${withval} $CFLAGS"
10591 LIBS="-lssl -lcrypto $LIBS"
10592 # LDFLAGS="-L${withval}/lib $LDFLAGS"
10594 esac
10596 else
10598 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10599 LIBS="-lssl -lcrypto $LIBS"
10600 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
10604 if test ! -d ${withval}; then
10605 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10606 exit 1
10609 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10613 echo "$ac_t""no" 1>&6
10615 esac
10616 else
10617 echo "$ac_t""no" 1>&6
10622 #################################################
10623 # check for syslog logging
10624 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10625 echo "configure:10626: checking whether to use syslog logging" >&5
10626 # Check whether --with-syslog or --without-syslog was given.
10627 if test "${with_syslog+set}" = set; then
10628 withval="$with_syslog"
10629 case "$withval" in
10630 yes)
10631 echo "$ac_t""yes" 1>&6
10632 cat >> confdefs.h <<\EOF
10633 #define WITH_SYSLOG 1
10638 echo "$ac_t""no" 1>&6
10640 esac
10641 else
10642 echo "$ac_t""no" 1>&6
10647 #################################################
10648 # check for a shared memory profiling support
10649 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10650 echo "configure:10651: checking whether to use profiling" >&5
10651 # Check whether --with-profile or --without-profile was given.
10652 if test "${with_profile+set}" = set; then
10653 withval="$with_profile"
10654 case "$withval" in
10655 yes)
10656 echo "$ac_t""yes" 1>&6
10657 cat >> confdefs.h <<\EOF
10658 #define WITH_PROFILE 1
10663 echo "$ac_t""no" 1>&6
10665 esac
10666 else
10667 echo "$ac_t""no" 1>&6
10673 #################################################
10674 # check for experimental netatalk resource fork support
10675 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10676 echo "configure:10677: checking whether to support netatalk" >&5
10677 # Check whether --with-netatalk or --without-netatalk was given.
10678 if test "${with_netatalk+set}" = set; then
10679 withval="$with_netatalk"
10680 case "$withval" in
10681 yes)
10682 echo "$ac_t""yes" 1>&6
10683 cat >> confdefs.h <<\EOF
10684 #define WITH_NETATALK 1
10689 echo "$ac_t""no" 1>&6
10691 esac
10692 else
10693 echo "$ac_t""no" 1>&6
10698 #################################################
10699 # check for experimental disk-quotas support
10700 QUOTAOBJS=noquotas.o
10702 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10703 echo "configure:10704: checking whether to support disk-quotas" >&5
10704 # Check whether --with-quotas or --without-quotas was given.
10705 if test "${with_quotas+set}" = set; then
10706 withval="$with_quotas"
10707 case "$withval" in
10708 yes)
10709 echo "$ac_t""yes" 1>&6
10710 QUOTAOBJS=quotas.o
10713 echo "$ac_t""no" 1>&6
10715 esac
10716 else
10717 echo "$ac_t""no" 1>&6
10723 #################################################
10724 # check for experimental utmp accounting
10726 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10727 echo "configure:10728: checking whether to support utmp accounting" >&5
10728 # Check whether --with-utmp or --without-utmp was given.
10729 if test "${with_utmp+set}" = set; then
10730 withval="$with_utmp"
10731 case "$withval" in
10732 yes)
10733 echo "$ac_t""yes" 1>&6
10734 cat >> confdefs.h <<\EOF
10735 #define WITH_UTMP 1
10740 echo "$ac_t""no" 1>&6
10742 esac
10743 else
10744 echo "$ac_t""no" 1>&6
10749 #################################################
10750 # check for MS Dfs support
10752 echo $ac_n "checking whether to support MS Dfs""... $ac_c" 1>&6
10753 echo "configure:10754: checking whether to support MS Dfs" >&5
10754 # Check whether --with-msdfs or --without-msdfs was given.
10755 if test "${with_msdfs+set}" = set; then
10756 withval="$with_msdfs"
10757 case "$withval" in
10758 yes)
10759 echo "$ac_t""yes" 1>&6
10760 cat >> confdefs.h <<\EOF
10761 #define MS_DFS 1
10766 echo "$ac_t""no" 1>&6
10768 esac
10769 else
10770 echo "$ac_t""no" 1>&6
10775 #################################################
10776 # set samba configuration directory location
10778 if test "$sysconfdir" = '${prefix}/etc'
10779 then
10780 # default sysconfdir, decide on prefix
10781 case "$prefix" in
10782 *samba*|NONE)
10783 # if the prefix already contains the word samba,
10784 # we don't need to use a subdir for smb.conf
10785 sambaconfdir='${sysconfdir}'
10788 # otherwise, we use a separate dir
10789 sambaconfdir='${sysconfdir}/samba'
10791 esac
10792 else
10793 # sysconfdir given, use that directly
10794 sambaconfdir='${sysconfdir}'
10796 # Check whether --with-sambaconfdir or --without-sambaconfdir was given.
10797 if test "${with_sambaconfdir+set}" = set; then
10798 withval="$with_sambaconfdir"
10799 case "$withval" in
10800 yes)
10801 # Just --with-sambaconfdir, use the new default
10802 # (which has already been "calculated"
10805 # --without-sambaconfdir, use old default
10806 sambaconfdir='${LIBDIR}'
10809 sambaconfdir="$withval"
10811 esac
10813 else
10814 # No --with(out)-sambaconfdir, use old version for some time.
10815 if test "$sysconfdir" = '${prefix}/etc'
10816 then
10817 # sysconfdir not given
10818 sambaconfdir='${LIBDIR}'
10825 #################################################
10826 # set private directory location
10827 # Check whether --with-privatedir or --without-privatedir was given.
10828 if test "${with_privatedir+set}" = set; then
10829 withval="$with_privatedir"
10830 case "$withval" in
10831 yes|no)
10833 # Just in case anybody calls it without argument
10835 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10836 privatedir='${prefix}/private'
10839 privatedir="$withval"
10841 esac
10843 else
10844 privatedir='${prefix}/private'
10850 #################################################
10851 # set lock directory location
10852 # Check whether --with-lockdir or --without-lockdir was given.
10853 if test "${with_lockdir+set}" = set; then
10854 withval="$with_lockdir"
10855 case "$withval" in
10856 yes|no)
10858 # Just in case anybody calls it without argument
10860 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10861 lockdir='${VARDIR}/locks'
10864 lockdir="$withval"
10866 esac
10868 else
10869 lockdir='${VARDIR}/locks'
10875 #################################################
10876 # set SWAT directory location
10877 # Check whether --with-swatdir or --without-swatdir was given.
10878 if test "${with_swatdir+set}" = set; then
10879 withval="$with_swatdir"
10880 case "$withval" in
10881 yes|no)
10883 # Just in case anybody does it
10885 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
10886 swatdir='${prefix}/swat'
10889 swatdir="$withval"
10891 esac
10893 else
10894 swatdir='${prefix}/swat'
10900 #################################################
10901 # these tests are taken from the GNU fileutils package
10902 echo "checking how to get filesystem space usage" 1>&6
10903 echo "configure:10904: checking how to get filesystem space usage" >&5
10904 space=no
10906 # Test for statvfs64.
10907 if test $space = no; then
10908 # SVR4
10909 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
10910 echo "configure:10911: checking statvfs64 function (SVR4)" >&5
10911 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
10912 echo $ac_n "(cached) $ac_c" 1>&6
10913 else
10914 if test "$cross_compiling" = yes; then
10915 fu_cv_sys_stat_statvfs64=cross
10916 else
10917 cat > conftest.$ac_ext <<EOF
10918 #line 10919 "configure"
10919 #include "confdefs.h"
10921 #if defined(HAVE_UNISTD_H)
10922 #include <unistd.h>
10923 #endif
10924 #include <sys/types.h>
10925 #include <sys/statvfs.h>
10926 main ()
10928 struct statvfs64 fsd;
10929 exit (statvfs64 (".", &fsd));
10932 if { (eval echo configure:10933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10933 then
10934 fu_cv_sys_stat_statvfs64=yes
10935 else
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10938 rm -fr conftest*
10939 fu_cv_sys_stat_statvfs64=no
10941 rm -fr conftest*
10946 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
10947 if test $fu_cv_sys_stat_statvfs64 = yes; then
10948 space=yes
10949 cat >> confdefs.h <<\EOF
10950 #define STAT_STATVFS64 1
10956 # Perform only the link test since it seems there are no variants of the
10957 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
10958 # because that got a false positive on SCO OSR5. Adding the declaration
10959 # of a `struct statvfs' causes this test to fail (as it should) on such
10960 # systems. That system is reported to work fine with STAT_STATFS4 which
10961 # is what it gets when this test fails.
10962 if test $space = no; then
10963 # SVR4
10964 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
10965 echo "configure:10966: checking statvfs function (SVR4)" >&5
10966 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
10967 echo $ac_n "(cached) $ac_c" 1>&6
10968 else
10969 cat > conftest.$ac_ext <<EOF
10970 #line 10971 "configure"
10971 #include "confdefs.h"
10972 #include <sys/types.h>
10973 #include <sys/statvfs.h>
10974 int main() {
10975 struct statvfs fsd; statvfs (0, &fsd);
10976 ; return 0; }
10978 if { (eval echo configure:10979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10979 rm -rf conftest*
10980 fu_cv_sys_stat_statvfs=yes
10981 else
10982 echo "configure: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10984 rm -rf conftest*
10985 fu_cv_sys_stat_statvfs=no
10987 rm -f conftest*
10990 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
10991 if test $fu_cv_sys_stat_statvfs = yes; then
10992 space=yes
10993 cat >> confdefs.h <<\EOF
10994 #define STAT_STATVFS 1
11000 if test $space = no; then
11001 # DEC Alpha running OSF/1
11002 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11003 echo "configure:11004: checking for 3-argument statfs function (DEC OSF/1)" >&5
11004 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11006 else
11007 if test "$cross_compiling" = yes; then
11008 fu_cv_sys_stat_statfs3_osf1=no
11009 else
11010 cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11014 #include <sys/param.h>
11015 #include <sys/types.h>
11016 #include <sys/mount.h>
11017 main ()
11019 struct statfs fsd;
11020 fsd.f_fsize = 0;
11021 exit (statfs (".", &fsd, sizeof (struct statfs)));
11024 if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11025 then
11026 fu_cv_sys_stat_statfs3_osf1=yes
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 rm -fr conftest*
11031 fu_cv_sys_stat_statfs3_osf1=no
11033 rm -fr conftest*
11038 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11039 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11040 space=yes
11041 cat >> confdefs.h <<\EOF
11042 #define STAT_STATFS3_OSF1 1
11048 if test $space = no; then
11049 # AIX
11050 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11051 echo "configure:11052: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11052 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054 else
11055 if test "$cross_compiling" = yes; then
11056 fu_cv_sys_stat_statfs2_bsize=no
11057 else
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11062 #ifdef HAVE_SYS_PARAM_H
11063 #include <sys/param.h>
11064 #endif
11065 #ifdef HAVE_SYS_MOUNT_H
11066 #include <sys/mount.h>
11067 #endif
11068 #ifdef HAVE_SYS_VFS_H
11069 #include <sys/vfs.h>
11070 #endif
11071 main ()
11073 struct statfs fsd;
11074 fsd.f_bsize = 0;
11075 exit (statfs (".", &fsd));
11078 if { (eval echo configure:11079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11079 then
11080 fu_cv_sys_stat_statfs2_bsize=yes
11081 else
11082 echo "configure: failed program was:" >&5
11083 cat conftest.$ac_ext >&5
11084 rm -fr conftest*
11085 fu_cv_sys_stat_statfs2_bsize=no
11087 rm -fr conftest*
11092 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11093 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11094 space=yes
11095 cat >> confdefs.h <<\EOF
11096 #define STAT_STATFS2_BSIZE 1
11102 if test $space = no; then
11103 # SVR3
11104 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11105 echo "configure:11106: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11106 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11108 else
11109 if test "$cross_compiling" = yes; then
11110 fu_cv_sys_stat_statfs4=no
11111 else
11112 cat > conftest.$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 #include <sys/types.h>
11116 #include <sys/statfs.h>
11117 main ()
11119 struct statfs fsd;
11120 exit (statfs (".", &fsd, sizeof fsd, 0));
11123 if { (eval echo configure:11124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11124 then
11125 fu_cv_sys_stat_statfs4=yes
11126 else
11127 echo "configure: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 rm -fr conftest*
11130 fu_cv_sys_stat_statfs4=no
11132 rm -fr conftest*
11137 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11138 if test $fu_cv_sys_stat_statfs4 = yes; then
11139 space=yes
11140 cat >> confdefs.h <<\EOF
11141 #define STAT_STATFS4 1
11147 if test $space = no; then
11148 # 4.4BSD and NetBSD
11149 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11150 echo "configure:11151: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11151 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
11153 else
11154 if test "$cross_compiling" = yes; then
11155 fu_cv_sys_stat_statfs2_fsize=no
11156 else
11157 cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11160 #include <sys/types.h>
11161 #ifdef HAVE_SYS_PARAM_H
11162 #include <sys/param.h>
11163 #endif
11164 #ifdef HAVE_SYS_MOUNT_H
11165 #include <sys/mount.h>
11166 #endif
11167 main ()
11169 struct statfs fsd;
11170 fsd.f_fsize = 0;
11171 exit (statfs (".", &fsd));
11174 if { (eval echo configure:11175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11175 then
11176 fu_cv_sys_stat_statfs2_fsize=yes
11177 else
11178 echo "configure: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11180 rm -fr conftest*
11181 fu_cv_sys_stat_statfs2_fsize=no
11183 rm -fr conftest*
11188 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11189 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11190 space=yes
11191 cat >> confdefs.h <<\EOF
11192 #define STAT_STATFS2_FSIZE 1
11198 if test $space = no; then
11199 # Ultrix
11200 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11201 echo "configure:11202: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11202 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11203 echo $ac_n "(cached) $ac_c" 1>&6
11204 else
11205 if test "$cross_compiling" = yes; then
11206 fu_cv_sys_stat_fs_data=no
11207 else
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <sys/types.h>
11212 #ifdef HAVE_SYS_PARAM_H
11213 #include <sys/param.h>
11214 #endif
11215 #ifdef HAVE_SYS_MOUNT_H
11216 #include <sys/mount.h>
11217 #endif
11218 #ifdef HAVE_SYS_FS_TYPES_H
11219 #include <sys/fs_types.h>
11220 #endif
11221 main ()
11223 struct fs_data fsd;
11224 /* Ultrix's statfs returns 1 for success,
11225 0 for not mounted, -1 for failure. */
11226 exit (statfs (".", &fsd) != 1);
11229 if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11230 then
11231 fu_cv_sys_stat_fs_data=yes
11232 else
11233 echo "configure: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11235 rm -fr conftest*
11236 fu_cv_sys_stat_fs_data=no
11238 rm -fr conftest*
11243 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11244 if test $fu_cv_sys_stat_fs_data = yes; then
11245 space=yes
11246 cat >> confdefs.h <<\EOF
11247 #define STAT_STATFS2_FS_DATA 1
11254 # As a gating factor for large file support, in order to
11255 # use <4GB files we must have the following minimal support
11256 # available.
11257 # long long, and a 64 bit off_t or off64_t.
11258 # If we don't have all of these then disable large
11259 # file support.
11261 echo "checking if large file support can be enabled"
11262 cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11266 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11267 #include <sys/types.h>
11268 #else
11269 __COMPILE_ERROR_
11270 #endif
11272 int main() {
11273 int i
11274 ; return 0; }
11276 if { (eval echo configure:11277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11277 rm -rf conftest*
11278 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
11279 else
11280 echo "configure: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11282 rm -rf conftest*
11283 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
11285 rm -f conftest*
11286 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
11287 echo "yes"
11288 cat >> confdefs.h <<\EOF
11289 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11292 else
11293 echo "no"
11296 echo "checking configure summary"
11297 if test "$cross_compiling" = yes; then
11299 else
11300 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11303 #include "${srcdir-.}/tests/summary.c"
11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11306 then
11307 echo "configure OK";
11308 else
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11311 rm -fr conftest*
11312 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11314 rm -fr conftest*
11318 builddir=`pwd`
11321 trap '' 1 2 15
11322 cat > confcache <<\EOF
11323 # This file is a shell script that caches the results of configure
11324 # tests run on this system so they can be shared between configure
11325 # scripts and configure runs. It is not useful on other systems.
11326 # If it contains results you don't want to keep, you may remove or edit it.
11328 # By default, configure uses ./config.cache as the cache file,
11329 # creating it if it does not exist already. You can give configure
11330 # the --cache-file=FILE option to use a different cache file; that is
11331 # what configure does when it calls configure scripts in
11332 # subdirectories, so they share the cache.
11333 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11334 # config.status only pays attention to the cache file if you give it the
11335 # --recheck option to rerun configure.
11338 # The following way of writing the cache mishandles newlines in values,
11339 # but we know of no workaround that is simple, portable, and efficient.
11340 # So, don't put newlines in cache variables' values.
11341 # Ultrix sh set writes to stderr and can't be redirected directly,
11342 # and sets the high bit in the cache file unless we assign to the vars.
11343 (set) 2>&1 |
11344 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11345 *ac_space=\ *)
11346 # `set' does not quote correctly, so add quotes (double-quote substitution
11347 # turns \\\\ into \\, and sed turns \\ into \).
11348 sed -n \
11349 -e "s/'/'\\\\''/g" \
11350 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11353 # `set' quotes correctly as required by POSIX, so do not add quotes.
11354 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11356 esac >> confcache
11357 if cmp -s $cache_file confcache; then
11359 else
11360 if test -w $cache_file; then
11361 echo "updating cache $cache_file"
11362 cat confcache > $cache_file
11363 else
11364 echo "not updating unwritable cache $cache_file"
11367 rm -f confcache
11369 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11371 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11372 # Let make expand exec_prefix.
11373 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11375 # Any assignment to VPATH causes Sun make to only execute
11376 # the first set of double-colon rules, so remove it if not needed.
11377 # If there is a colon in the path, we need to keep it.
11378 if test "x$srcdir" = x.; then
11379 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11382 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11384 DEFS=-DHAVE_CONFIG_H
11386 # Without the "./", some shells look in PATH for config.status.
11387 : ${CONFIG_STATUS=./config.status}
11389 echo creating $CONFIG_STATUS
11390 rm -f $CONFIG_STATUS
11391 cat > $CONFIG_STATUS <<EOF
11392 #! /bin/sh
11393 # Generated automatically by configure.
11394 # Run this file to recreate the current configuration.
11395 # This directory was configured as follows,
11396 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11398 # $0 $ac_configure_args
11400 # Compiler output produced by configure, useful for debugging
11401 # configure, is in ./config.log if it exists.
11403 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11404 for ac_option
11406 case "\$ac_option" in
11407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11408 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11409 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11410 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11411 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11412 exit 0 ;;
11413 -help | --help | --hel | --he | --h)
11414 echo "\$ac_cs_usage"; exit 0 ;;
11415 *) echo "\$ac_cs_usage"; exit 1 ;;
11416 esac
11417 done
11419 ac_given_srcdir=$srcdir
11420 ac_given_INSTALL="$INSTALL"
11422 trap 'rm -fr `echo "include/stamp-h Makefile script/samba-init.d include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11424 cat >> $CONFIG_STATUS <<EOF
11426 # Protect against being on the right side of a sed subst in config.status.
11427 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11428 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11429 $ac_vpsub
11430 $extrasub
11431 s%@SHELL@%$SHELL%g
11432 s%@CFLAGS@%$CFLAGS%g
11433 s%@CPPFLAGS@%$CPPFLAGS%g
11434 s%@CXXFLAGS@%$CXXFLAGS%g
11435 s%@FFLAGS@%$FFLAGS%g
11436 s%@DEFS@%$DEFS%g
11437 s%@LDFLAGS@%$LDFLAGS%g
11438 s%@LIBS@%$LIBS%g
11439 s%@exec_prefix@%$exec_prefix%g
11440 s%@prefix@%$prefix%g
11441 s%@program_transform_name@%$program_transform_name%g
11442 s%@bindir@%$bindir%g
11443 s%@sbindir@%$sbindir%g
11444 s%@libexecdir@%$libexecdir%g
11445 s%@datadir@%$datadir%g
11446 s%@sysconfdir@%$sysconfdir%g
11447 s%@sharedstatedir@%$sharedstatedir%g
11448 s%@localstatedir@%$localstatedir%g
11449 s%@libdir@%$libdir%g
11450 s%@includedir@%$includedir%g
11451 s%@oldincludedir@%$oldincludedir%g
11452 s%@infodir@%$infodir%g
11453 s%@mandir@%$mandir%g
11454 s%@RUNPROG@%$RUNPROG%g
11455 s%@MPROGS@%$MPROGS%g
11456 s%@LDSHFLAGS@%$LDSHFLAGS%g
11457 s%@HOST_OS@%$HOST_OS%g
11458 s%@WRAP@%$WRAP%g
11459 s%@WRAP32@%$WRAP32%g
11460 s%@PICFLAG@%$PICFLAG%g
11461 s%@SHLIBEXT@%$SHLIBEXT%g
11462 s%@CC@%$CC%g
11463 s%@CPP@%$CPP%g
11464 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11465 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11466 s%@INSTALL_DATA@%$INSTALL_DATA%g
11467 s%@AWK@%$AWK%g
11468 s%@host@%$host%g
11469 s%@host_alias@%$host_alias%g
11470 s%@host_cpu@%$host_cpu%g
11471 s%@host_vendor@%$host_vendor%g
11472 s%@host_os@%$host_os%g
11473 s%@build@%$build%g
11474 s%@build_alias@%$build_alias%g
11475 s%@build_cpu@%$build_cpu%g
11476 s%@build_vendor@%$build_vendor%g
11477 s%@build_os@%$build_os%g
11478 s%@RANLIB@%$RANLIB%g
11479 s%@LN_S@%$LN_S%g
11480 s%@LIBTOOL@%$LIBTOOL%g
11481 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11482 s%@BROKEN_CC@%$BROKEN_CC%g
11483 s%@target@%$target%g
11484 s%@target_alias@%$target_alias%g
11485 s%@target_cpu@%$target_cpu%g
11486 s%@target_vendor@%$target_vendor%g
11487 s%@target_os@%$target_os%g
11488 s%@MAINT@%$MAINT%g
11489 s%@AUTOCONF@%$AUTOCONF%g
11490 s%@AUTOHEADER@%$AUTOHEADER%g
11491 s%@LIBOBJS@%$LIBOBJS%g
11492 s%@ROFF@%$ROFF%g
11493 s%@SAM_PWDB_LIB@%$SAM_PWDB_LIB%g
11494 s%@QUOTAOBJS@%$QUOTAOBJS%g
11495 s%@sambaconfdir@%$sambaconfdir%g
11496 s%@privatedir@%$privatedir%g
11497 s%@lockdir@%$lockdir%g
11498 s%@swatdir@%$swatdir%g
11499 s%@builddir@%$builddir%g
11501 CEOF
11504 cat >> $CONFIG_STATUS <<\EOF
11506 # Split the substitutions into bite-sized pieces for seds with
11507 # small command number limits, like on Digital OSF/1 and HP-UX.
11508 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11509 ac_file=1 # Number of current file.
11510 ac_beg=1 # First line for current file.
11511 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11512 ac_more_lines=:
11513 ac_sed_cmds=""
11514 while $ac_more_lines; do
11515 if test $ac_beg -gt 1; then
11516 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11517 else
11518 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11520 if test ! -s conftest.s$ac_file; then
11521 ac_more_lines=false
11522 rm -f conftest.s$ac_file
11523 else
11524 if test -z "$ac_sed_cmds"; then
11525 ac_sed_cmds="sed -f conftest.s$ac_file"
11526 else
11527 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11529 ac_file=`expr $ac_file + 1`
11530 ac_beg=$ac_end
11531 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11533 done
11534 if test -z "$ac_sed_cmds"; then
11535 ac_sed_cmds=cat
11539 cat >> $CONFIG_STATUS <<EOF
11541 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/samba-init.d"}
11543 cat >> $CONFIG_STATUS <<\EOF
11544 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11546 case "$ac_file" in
11547 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11548 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11549 *) ac_file_in="${ac_file}.in" ;;
11550 esac
11552 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11554 # Remove last slash and all that follows it. Not all systems have dirname.
11555 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11556 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11557 # The file is in a subdirectory.
11558 test ! -d "$ac_dir" && mkdir "$ac_dir"
11559 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11560 # A "../" for each directory in $ac_dir_suffix.
11561 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11562 else
11563 ac_dir_suffix= ac_dots=
11566 case "$ac_given_srcdir" in
11567 .) srcdir=.
11568 if test -z "$ac_dots"; then top_srcdir=.
11569 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11570 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11571 *) # Relative path.
11572 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11573 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11574 esac
11576 case "$ac_given_INSTALL" in
11577 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11578 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11579 esac
11581 echo creating "$ac_file"
11582 rm -f "$ac_file"
11583 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11584 case "$ac_file" in
11585 *Makefile*) ac_comsub="1i\\
11586 # $configure_input" ;;
11587 *) ac_comsub= ;;
11588 esac
11590 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11591 sed -e "$ac_comsub
11592 s%@configure_input@%$configure_input%g
11593 s%@srcdir@%$srcdir%g
11594 s%@top_srcdir@%$top_srcdir%g
11595 s%@INSTALL@%$INSTALL%g
11596 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11597 fi; done
11598 rm -f conftest.s*
11600 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11601 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11603 # ac_d sets the value in "#define NAME VALUE" lines.
11604 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11605 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11606 ac_dC='\3'
11607 ac_dD='%g'
11608 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11609 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11610 ac_uB='\([ ]\)%\1#\2define\3'
11611 ac_uC=' '
11612 ac_uD='\4%g'
11613 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11614 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11615 ac_eB='$%\1#\2define\3'
11616 ac_eC=' '
11617 ac_eD='%g'
11619 if test "${CONFIG_HEADERS+set}" != set; then
11621 cat >> $CONFIG_STATUS <<EOF
11622 CONFIG_HEADERS="include/config.h"
11624 cat >> $CONFIG_STATUS <<\EOF
11626 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11628 case "$ac_file" in
11629 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11630 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11631 *) ac_file_in="${ac_file}.in" ;;
11632 esac
11634 echo creating $ac_file
11636 rm -f conftest.frag conftest.in conftest.out
11637 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11638 cat $ac_file_inputs > conftest.in
11642 # Transform confdefs.h into a sed script conftest.vals that substitutes
11643 # the proper values into config.h.in to produce config.h. And first:
11644 # Protect against being on the right side of a sed subst in config.status.
11645 # Protect against being in an unquoted here document in config.status.
11646 rm -f conftest.vals
11647 cat > conftest.hdr <<\EOF
11648 s/[\\&%]/\\&/g
11649 s%[\\$`]%\\&%g
11650 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11651 s%ac_d%ac_u%gp
11652 s%ac_u%ac_e%gp
11654 sed -n -f conftest.hdr confdefs.h > conftest.vals
11655 rm -f conftest.hdr
11657 # This sed command replaces #undef with comments. This is necessary, for
11658 # example, in the case of _POSIX_SOURCE, which is predefined and required
11659 # on some systems where configure will not decide to define it.
11660 cat >> conftest.vals <<\EOF
11661 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11664 # Break up conftest.vals because some shells have a limit on
11665 # the size of here documents, and old seds have small limits too.
11667 rm -f conftest.tail
11668 while :
11670 ac_lines=`grep -c . conftest.vals`
11671 # grep -c gives empty output for an empty file on some AIX systems.
11672 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11673 # Write a limited-size here document to conftest.frag.
11674 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11675 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11676 echo 'CEOF
11677 sed -f conftest.frag conftest.in > conftest.out
11678 rm -f conftest.in
11679 mv conftest.out conftest.in
11680 ' >> $CONFIG_STATUS
11681 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11682 rm -f conftest.vals
11683 mv conftest.tail conftest.vals
11684 done
11685 rm -f conftest.vals
11687 cat >> $CONFIG_STATUS <<\EOF
11688 rm -f conftest.frag conftest.h
11689 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11690 cat conftest.in >> conftest.h
11691 rm -f conftest.in
11692 if cmp -s $ac_file conftest.h 2>/dev/null; then
11693 echo "$ac_file is unchanged"
11694 rm -f conftest.h
11695 else
11696 # Remove last slash and all that follows it. Not all systems have dirname.
11697 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11699 # The file is in a subdirectory.
11700 test ! -d "$ac_dir" && mkdir "$ac_dir"
11702 rm -f $ac_file
11703 mv conftest.h $ac_file
11705 fi; done
11708 cat >> $CONFIG_STATUS <<EOF
11711 cat >> $CONFIG_STATUS <<\EOF
11713 case " $CONFIG_FILES " in
11714 *" script/samba-init.d "*) chmod +x script/samba-init.d
11715 esac
11717 exit 0
11719 chmod +x $CONFIG_STATUS
11720 rm -fr confdefs* $ac_clean_files
11721 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11724 echo ""
11725 echo "prefix : $prefix"
11726 echo "exec_prefix : $exec_prefix"
11727 echo "bindir : $bindir"
11728 echo "sbindir : $sbindir"
11729 echo "libdir : $libdir"
11730 echo "vardir : $localstatedir"
11731 echo "sysconfdir : $sysconfdir"
11732 echo ""
11733 echo "sambaconfdir : $sambaconfdir"
11734 echo "privatedir : $privatedir"
11735 echo "lockdir : $lockdir"
11736 echo "swatdir : $swatdir"
11737 echo ""