preparing for release of alpha.1.4
[Samba.git] / source / configure
blobfa66a13551e1476ae7ac17baa2cdebf8ca1d3b92
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 ac_help="$ac_help
18 --enable-static[=PKGS] build static libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 ac_help="$ac_help
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 ac_help="$ac_help
24 --disable-libtool-lock avoid locking (might break parallel builds)"
25 ac_help="$ac_help
26 --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-srvtab[=instance] Include renewable AFS tickets
35 --without-srvtab Don't renewable AFS tickets (default)"
36 ac_help="$ac_help
37 --with-dfs Include DFS support
38 --without-dfs Don't include DFS support (default)"
39 ac_help="$ac_help
40 --with-krb4=base-dir Include Kerberos IV support
41 --without-krb4 Don't include Kerberos IV support (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-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
99 ac_help="$ac_help
100 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
101 ac_help="$ac_help
102 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
104 # Initialize some variables set by options.
105 # The variables have the same names as the options, with
106 # dashes changed to underlines.
107 build=NONE
108 cache_file=./config.cache
109 exec_prefix=NONE
110 host=NONE
111 no_create=
112 nonopt=NONE
113 no_recursion=
114 prefix=NONE
115 program_prefix=NONE
116 program_suffix=NONE
117 program_transform_name=s,x,x,
118 silent=
119 site=
120 srcdir=
121 target=NONE
122 verbose=
123 x_includes=NONE
124 x_libraries=NONE
125 bindir='${exec_prefix}/bin'
126 sbindir='${exec_prefix}/sbin'
127 libexecdir='${exec_prefix}/libexec'
128 datadir='${prefix}/share'
129 sysconfdir='${prefix}/etc'
130 sharedstatedir='${prefix}/com'
131 localstatedir='${prefix}/var'
132 libdir='${exec_prefix}/lib'
133 includedir='${prefix}/include'
134 oldincludedir='/usr/include'
135 infodir='${prefix}/info'
136 mandir='${prefix}/man'
138 # Initialize some other variables.
139 subdirs=
140 MFLAGS= MAKEFLAGS=
141 SHELL=${CONFIG_SHELL-/bin/sh}
142 # Maximum number of lines to put in a shell here document.
143 ac_max_here_lines=12
145 ac_prev=
146 for ac_option
149 # If the previous option needs an argument, assign it.
150 if test -n "$ac_prev"; then
151 eval "$ac_prev=\$ac_option"
152 ac_prev=
153 continue
156 case "$ac_option" in
157 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
158 *) ac_optarg= ;;
159 esac
161 # Accept the important Cygnus configure options, so we can diagnose typos.
163 case "$ac_option" in
165 -bindir | --bindir | --bindi | --bind | --bin | --bi)
166 ac_prev=bindir ;;
167 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
168 bindir="$ac_optarg" ;;
170 -build | --build | --buil | --bui | --bu)
171 ac_prev=build ;;
172 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
173 build="$ac_optarg" ;;
175 -cache-file | --cache-file | --cache-fil | --cache-fi \
176 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
177 ac_prev=cache_file ;;
178 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
179 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
180 cache_file="$ac_optarg" ;;
182 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
183 ac_prev=datadir ;;
184 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
185 | --da=*)
186 datadir="$ac_optarg" ;;
188 -disable-* | --disable-*)
189 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
190 # Reject names that are not valid shell variable names.
191 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
192 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
194 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
195 eval "enable_${ac_feature}=no" ;;
197 -enable-* | --enable-*)
198 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
199 # Reject names that are not valid shell variable names.
200 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
201 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
203 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
204 case "$ac_option" in
205 *=*) ;;
206 *) ac_optarg=yes ;;
207 esac
208 eval "enable_${ac_feature}='$ac_optarg'" ;;
210 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
211 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
212 | --exec | --exe | --ex)
213 ac_prev=exec_prefix ;;
214 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
215 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
216 | --exec=* | --exe=* | --ex=*)
217 exec_prefix="$ac_optarg" ;;
219 -gas | --gas | --ga | --g)
220 # Obsolete; use --with-gas.
221 with_gas=yes ;;
223 -help | --help | --hel | --he)
224 # Omit some internal or obsolete options to make the list less imposing.
225 # This message is too long to be a string in the A/UX 3.1 sh.
226 cat << EOF
227 Usage: configure [options] [host]
228 Options: [defaults in brackets after descriptions]
229 Configuration:
230 --cache-file=FILE cache test results in FILE
231 --help print this message
232 --no-create do not create output files
233 --quiet, --silent do not print \`checking...' messages
234 --version print the version of autoconf that created configure
235 Directory and file names:
236 --prefix=PREFIX install architecture-independent files in PREFIX
237 [$ac_default_prefix]
238 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
239 [same as prefix]
240 --bindir=DIR user executables in DIR [EPREFIX/bin]
241 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
242 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
243 --datadir=DIR read-only architecture-independent data in DIR
244 [PREFIX/share]
245 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
246 --sharedstatedir=DIR modifiable architecture-independent data in DIR
247 [PREFIX/com]
248 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
249 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
250 --includedir=DIR C header files in DIR [PREFIX/include]
251 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
252 --infodir=DIR info documentation in DIR [PREFIX/info]
253 --mandir=DIR man documentation in DIR [PREFIX/man]
254 --srcdir=DIR find the sources in DIR [configure dir or ..]
255 --program-prefix=PREFIX prepend PREFIX to installed program names
256 --program-suffix=SUFFIX append SUFFIX to installed program names
257 --program-transform-name=PROGRAM
258 run sed PROGRAM on installed program names
260 cat << EOF
261 Host type:
262 --build=BUILD configure for building on BUILD [BUILD=HOST]
263 --host=HOST configure for HOST [guessed]
264 --target=TARGET configure for TARGET [TARGET=HOST]
265 Features and packages:
266 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
267 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
268 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
269 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
270 --x-includes=DIR X include files are in DIR
271 --x-libraries=DIR X library files are in DIR
273 if test -n "$ac_help"; then
274 echo "--enable and --with options recognized:$ac_help"
276 exit 0 ;;
278 -host | --host | --hos | --ho)
279 ac_prev=host ;;
280 -host=* | --host=* | --hos=* | --ho=*)
281 host="$ac_optarg" ;;
283 -includedir | --includedir | --includedi | --included | --include \
284 | --includ | --inclu | --incl | --inc)
285 ac_prev=includedir ;;
286 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
287 | --includ=* | --inclu=* | --incl=* | --inc=*)
288 includedir="$ac_optarg" ;;
290 -infodir | --infodir | --infodi | --infod | --info | --inf)
291 ac_prev=infodir ;;
292 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
293 infodir="$ac_optarg" ;;
295 -libdir | --libdir | --libdi | --libd)
296 ac_prev=libdir ;;
297 -libdir=* | --libdir=* | --libdi=* | --libd=*)
298 libdir="$ac_optarg" ;;
300 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
301 | --libexe | --libex | --libe)
302 ac_prev=libexecdir ;;
303 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
304 | --libexe=* | --libex=* | --libe=*)
305 libexecdir="$ac_optarg" ;;
307 -localstatedir | --localstatedir | --localstatedi | --localstated \
308 | --localstate | --localstat | --localsta | --localst \
309 | --locals | --local | --loca | --loc | --lo)
310 ac_prev=localstatedir ;;
311 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
312 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
313 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
314 localstatedir="$ac_optarg" ;;
316 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
317 ac_prev=mandir ;;
318 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 mandir="$ac_optarg" ;;
321 -nfp | --nfp | --nf)
322 # Obsolete; use --without-fp.
323 with_fp=no ;;
325 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 | --no-cr | --no-c)
327 no_create=yes ;;
329 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
330 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 no_recursion=yes ;;
333 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
334 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
335 | --oldin | --oldi | --old | --ol | --o)
336 ac_prev=oldincludedir ;;
337 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
338 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
339 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
340 oldincludedir="$ac_optarg" ;;
342 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
343 ac_prev=prefix ;;
344 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
345 prefix="$ac_optarg" ;;
347 -program-prefix | --program-prefix | --program-prefi | --program-pref \
348 | --program-pre | --program-pr | --program-p)
349 ac_prev=program_prefix ;;
350 -program-prefix=* | --program-prefix=* | --program-prefi=* \
351 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
352 program_prefix="$ac_optarg" ;;
354 -program-suffix | --program-suffix | --program-suffi | --program-suff \
355 | --program-suf | --program-su | --program-s)
356 ac_prev=program_suffix ;;
357 -program-suffix=* | --program-suffix=* | --program-suffi=* \
358 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
359 program_suffix="$ac_optarg" ;;
361 -program-transform-name | --program-transform-name \
362 | --program-transform-nam | --program-transform-na \
363 | --program-transform-n | --program-transform- \
364 | --program-transform | --program-transfor \
365 | --program-transfo | --program-transf \
366 | --program-trans | --program-tran \
367 | --progr-tra | --program-tr | --program-t)
368 ac_prev=program_transform_name ;;
369 -program-transform-name=* | --program-transform-name=* \
370 | --program-transform-nam=* | --program-transform-na=* \
371 | --program-transform-n=* | --program-transform-=* \
372 | --program-transform=* | --program-transfor=* \
373 | --program-transfo=* | --program-transf=* \
374 | --program-trans=* | --program-tran=* \
375 | --progr-tra=* | --program-tr=* | --program-t=*)
376 program_transform_name="$ac_optarg" ;;
378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
379 | -silent | --silent | --silen | --sile | --sil)
380 silent=yes ;;
382 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
383 ac_prev=sbindir ;;
384 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
385 | --sbi=* | --sb=*)
386 sbindir="$ac_optarg" ;;
388 -sharedstatedir | --sharedstatedir | --sharedstatedi \
389 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
390 | --sharedst | --shareds | --shared | --share | --shar \
391 | --sha | --sh)
392 ac_prev=sharedstatedir ;;
393 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
394 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
395 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
396 | --sha=* | --sh=*)
397 sharedstatedir="$ac_optarg" ;;
399 -site | --site | --sit)
400 ac_prev=site ;;
401 -site=* | --site=* | --sit=*)
402 site="$ac_optarg" ;;
404 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
405 ac_prev=srcdir ;;
406 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
407 srcdir="$ac_optarg" ;;
409 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
410 | --syscon | --sysco | --sysc | --sys | --sy)
411 ac_prev=sysconfdir ;;
412 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
413 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
414 sysconfdir="$ac_optarg" ;;
416 -target | --target | --targe | --targ | --tar | --ta | --t)
417 ac_prev=target ;;
418 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
419 target="$ac_optarg" ;;
421 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 verbose=yes ;;
424 -version | --version | --versio | --versi | --vers)
425 echo "configure generated by autoconf version 2.14.1"
426 exit 0 ;;
428 -with-* | --with-*)
429 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 case "$ac_option" in
436 *=*) ;;
437 *) ac_optarg=yes ;;
438 esac
439 eval "with_${ac_package}='$ac_optarg'" ;;
441 -without-* | --without-*)
442 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
443 # Reject names that are not valid shell variable names.
444 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
445 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
447 ac_package=`echo $ac_package| sed 's/-/_/g'`
448 eval "with_${ac_package}=no" ;;
450 --x)
451 # Obsolete; use --with-x.
452 with_x=yes ;;
454 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
455 | --x-incl | --x-inc | --x-in | --x-i)
456 ac_prev=x_includes ;;
457 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
458 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
459 x_includes="$ac_optarg" ;;
461 -x-libraries | --x-libraries | --x-librarie | --x-librari \
462 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
463 ac_prev=x_libraries ;;
464 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
465 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
466 x_libraries="$ac_optarg" ;;
468 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
472 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
473 echo "configure: warning: $ac_option: invalid host type" 1>&2
475 if test "x$nonopt" != xNONE; then
476 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
478 nonopt="$ac_option"
481 esac
482 done
484 if test -n "$ac_prev"; then
485 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
488 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
490 # File descriptor usage:
491 # 0 standard input
492 # 1 file creation
493 # 2 errors and warnings
494 # 3 some systems may open it to /dev/tty
495 # 4 used on the Kubota Titan
496 # 6 checking for... messages and results
497 # 5 compiler messages saved in config.log
498 if test "$silent" = yes; then
499 exec 6>/dev/null
500 else
501 exec 6>&1
503 exec 5>./config.log
505 echo "\
506 This file contains any messages produced by compilers while
507 running configure, to aid debugging if configure makes a mistake.
508 " 1>&5
510 # Strip out --no-create and --no-recursion so they do not pile up.
511 # Also quote any args containing shell metacharacters.
512 ac_configure_args=
513 for ac_arg
515 case "$ac_arg" in
516 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
517 | --no-cr | --no-c) ;;
518 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
519 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
520 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
521 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
522 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
523 esac
524 done
526 # NLS nuisances.
527 # Only set these to C if already set. These must not be set unconditionally
528 # because not all systems understand e.g. LANG=C (notably SCO).
529 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
530 # Non-C LC_CTYPE values break the ctype check.
531 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
532 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
533 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
534 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
537 rm -rf conftest* confdefs.h
538 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 echo > confdefs.h
541 # A filename unique to this package, relative to the directory that
542 # configure is in, which we can look for to find out if srcdir is correct.
543 ac_unique_file=include/includes.h
545 # Find the source files, if location was not specified.
546 if test -z "$srcdir"; then
547 ac_srcdir_defaulted=yes
548 # Try the directory containing this script, then its parent.
549 ac_prog=$0
550 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
551 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
552 srcdir=$ac_confdir
553 if test ! -r $srcdir/$ac_unique_file; then
554 srcdir=..
556 else
557 ac_srcdir_defaulted=no
559 if test ! -r $srcdir/$ac_unique_file; then
560 if test "$ac_srcdir_defaulted" = yes; then
561 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
562 else
563 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
566 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
568 # Prefer explicitly selected file to automatically selected ones.
569 if test -z "$CONFIG_SITE"; then
570 if test "x$prefix" != xNONE; then
571 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
572 else
573 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
576 for ac_site_file in $CONFIG_SITE; do
577 if test -r "$ac_site_file"; then
578 echo "loading site script $ac_site_file"
579 . "$ac_site_file"
581 done
583 if test -r "$cache_file"; then
584 echo "loading cache $cache_file"
585 test -f "$cache_file" && . $cache_file
586 else
587 echo "creating cache $cache_file"
588 > $cache_file
591 ac_ext=c
592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
593 ac_cpp='$CPP $CPPFLAGS'
594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
596 cross_compiling=$ac_cv_prog_cc_cross
598 ac_exeext=
599 ac_objext=o
600 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
601 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
602 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
603 ac_n= ac_c='
604 ' ac_t=' '
605 else
606 ac_n=-n ac_c= ac_t=
608 else
609 ac_n= ac_c='\c' ac_t=
614 # we want to be compatibe with older versions of Samba
627 # compile with optimisation and without debugging by default
628 CFLAGS=${CFLAGS-"-O"}
630 # Extract the first word of "gcc", so it can be a program name with args.
631 set dummy gcc; ac_word=$2
632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
633 echo "configure:634: checking for $ac_word" >&5
634 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
636 else
637 if test -n "$CC"; then
638 ac_cv_prog_CC="$CC" # Let the user override the test.
639 else
640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
641 ac_dummy="$PATH"
642 for ac_dir in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -f $ac_dir/$ac_word; then
645 ac_cv_prog_CC="gcc"
646 break
648 done
649 IFS="$ac_save_ifs"
652 CC="$ac_cv_prog_CC"
653 if test -n "$CC"; then
654 echo "$ac_t""$CC" 1>&6
655 else
656 echo "$ac_t""no" 1>&6
659 if test -z "$CC"; then
660 # Extract the first word of "cc", so it can be a program name with args.
661 set dummy cc; ac_word=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
666 else
667 if test -n "$CC"; then
668 ac_cv_prog_CC="$CC" # Let the user override the test.
669 else
670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
671 ac_prog_rejected=no
672 ac_dummy="$PATH"
673 for ac_dir in $ac_dummy; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
676 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
677 ac_prog_rejected=yes
678 continue
680 ac_cv_prog_CC="cc"
681 break
683 done
684 IFS="$ac_save_ifs"
685 if test $ac_prog_rejected = yes; then
686 # We found a bogon in the path, so make sure we never use it.
687 set dummy $ac_cv_prog_CC
688 shift
689 if test $# -gt 0; then
690 # We chose a different compiler from the bogus one.
691 # However, it has the same basename, so the bogon will be chosen
692 # first if we set CC to just the basename; use the full file name.
693 shift
694 set dummy "$ac_dir/$ac_word" "$@"
695 shift
696 ac_cv_prog_CC="$@"
701 CC="$ac_cv_prog_CC"
702 if test -n "$CC"; then
703 echo "$ac_t""$CC" 1>&6
704 else
705 echo "$ac_t""no" 1>&6
708 if test -z "$CC"; then
709 case "`uname -s`" in
710 *win32* | *WIN32* | *CYGWIN*)
711 # Extract the first word of "cl", so it can be a program name with args.
712 set dummy cl; ac_word=$2
713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
714 echo "configure:715: checking for $ac_word" >&5
715 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
717 else
718 if test -n "$CC"; then
719 ac_cv_prog_CC="$CC" # Let the user override the test.
720 else
721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
722 ac_dummy="$PATH"
723 for ac_dir in $ac_dummy; do
724 test -z "$ac_dir" && ac_dir=.
725 if test -f $ac_dir/$ac_word; then
726 ac_cv_prog_CC="cl"
727 break
729 done
730 IFS="$ac_save_ifs"
733 CC="$ac_cv_prog_CC"
734 if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
736 else
737 echo "$ac_t""no" 1>&6
740 esac
742 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
745 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
746 echo "configure:747: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
748 ac_ext=c
749 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
750 ac_cpp='$CPP $CPPFLAGS'
751 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
752 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
753 cross_compiling=$ac_cv_prog_cc_cross
755 cat > conftest.$ac_ext << EOF
757 #line 758 "configure"
758 #include "confdefs.h"
760 main(){return(0);}
762 if { (eval echo configure:763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
763 ac_cv_prog_cc_works=yes
764 # If we can't run a trivial program, we are probably using a cross compiler.
765 if (./conftest; exit) 2>/dev/null; then
766 ac_cv_prog_cc_cross=no
767 else
768 ac_cv_prog_cc_cross=yes
770 else
771 echo "configure: failed program was:" >&5
772 cat conftest.$ac_ext >&5
773 ac_cv_prog_cc_works=no
775 rm -fr conftest*
776 ac_ext=c
777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778 ac_cpp='$CPP $CPPFLAGS'
779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781 cross_compiling=$ac_cv_prog_cc_cross
783 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
784 if test $ac_cv_prog_cc_works = no; then
785 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
787 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
788 echo "configure:789: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
789 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
790 cross_compiling=$ac_cv_prog_cc_cross
792 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
793 echo "configure:794: checking whether we are using GNU C" >&5
794 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
796 else
797 cat > conftest.c <<EOF
798 #ifdef __GNUC__
799 yes;
800 #endif
802 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
803 ac_cv_prog_gcc=yes
804 else
805 ac_cv_prog_gcc=no
809 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
811 if test $ac_cv_prog_gcc = yes; then
812 GCC=yes
813 else
814 GCC=
817 ac_test_CFLAGS="${CFLAGS+set}"
818 ac_save_CFLAGS="$CFLAGS"
819 CFLAGS=
820 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
821 echo "configure:822: checking whether ${CC-cc} accepts -g" >&5
822 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
824 else
825 echo 'void f(){}' > conftest.c
826 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
827 ac_cv_prog_cc_g=yes
828 else
829 ac_cv_prog_cc_g=no
831 rm -f conftest*
835 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
836 if test "$ac_test_CFLAGS" = set; then
837 CFLAGS="$ac_save_CFLAGS"
838 elif test $ac_cv_prog_cc_g = yes; then
839 if test "$GCC" = yes; then
840 CFLAGS="-g -O2"
841 else
842 CFLAGS="-g"
844 else
845 if test "$GCC" = yes; then
846 CFLAGS="-O2"
847 else
848 CFLAGS=
852 ac_aux_dir=
853 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
854 if test -f $ac_dir/install-sh; then
855 ac_aux_dir=$ac_dir
856 ac_install_sh="$ac_aux_dir/install-sh -c"
857 break
858 elif test -f $ac_dir/install.sh; then
859 ac_aux_dir=$ac_dir
860 ac_install_sh="$ac_aux_dir/install.sh -c"
861 break
863 done
864 if test -z "$ac_aux_dir"; then
865 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
867 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
868 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
869 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
871 # Find a good install program. We prefer a C program (faster),
872 # so one script is as good as another. But avoid the broken or
873 # incompatible versions:
874 # SysV /etc/install, /usr/sbin/install
875 # SunOS /usr/etc/install
876 # IRIX /sbin/install
877 # AIX /bin/install
878 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
879 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
880 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
881 # ./install, which can be erroneously created by make from ./install.sh.
882 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
883 echo "configure:884: checking for a BSD compatible install" >&5
884 if test -z "$INSTALL"; then
885 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
887 else
888 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
889 for ac_dir in $PATH; do
890 # Account for people who put trailing slashes in PATH elements.
891 case "$ac_dir/" in
892 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
894 # OSF1 and SCO ODT 3.0 have their own names for install.
895 # Don't use installbsd from OSF since it installs stuff as root
896 # by default.
897 for ac_prog in ginstall scoinst install; do
898 if test -f $ac_dir/$ac_prog; then
899 if test $ac_prog = install &&
900 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
901 # AIX install. It has an incompatible calling convention.
903 elif test $ac_prog = install &&
904 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
905 # program-specific install script used by HP pwplus--don't use.
907 else
908 ac_cv_path_install="$ac_dir/$ac_prog -c"
909 break 2
912 done
914 esac
915 done
916 IFS="$ac_save_IFS"
919 if test "${ac_cv_path_install+set}" = set; then
920 INSTALL="$ac_cv_path_install"
921 else
922 # As a last resort, use the slow shell script. We don't cache a
923 # path for INSTALL within a source directory, because that will
924 # break other packages using the cache if that directory is
925 # removed, or if the path is relative.
926 INSTALL="$ac_install_sh"
929 echo "$ac_t""$INSTALL" 1>&6
931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
932 # It thinks the first close brace ends the variable substitution.
933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
939 for ac_prog in gawk mawk nawk awk
941 # Extract the first word of "$ac_prog", so it can be a program name with args.
942 set dummy $ac_prog; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 if test -n "$AWK"; then
949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
950 else
951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
952 ac_dummy="$PATH"
953 for ac_dir in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
956 ac_cv_prog_AWK="$ac_prog"
957 break
959 done
960 IFS="$ac_save_ifs"
963 AWK="$ac_cv_prog_AWK"
964 if test -n "$AWK"; then
965 echo "$ac_t""$AWK" 1>&6
966 else
967 echo "$ac_t""no" 1>&6
970 test -n "$AWK" && break
971 done
973 # Check whether --enable-shared or --disable-shared was given.
974 if test "${enable_shared+set}" = set; then
975 enableval="$enable_shared"
976 p=${PACKAGE-default}
977 case "$enableval" in
978 yes) enable_shared=yes ;;
979 no) enable_shared=no ;;
981 enable_shared=no
982 # Look at the argument we got. We use all the common list separators.
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
984 for pkg in $enableval; do
985 if test "X$pkg" = "X$p"; then
986 enable_shared=yes
988 done
989 IFS="$ac_save_ifs"
991 esac
992 else
993 enable_shared=yes
996 # Check whether --enable-static or --disable-static was given.
997 if test "${enable_static+set}" = set; then
998 enableval="$enable_static"
999 p=${PACKAGE-default}
1000 case "$enableval" in
1001 yes) enable_static=yes ;;
1002 no) enable_static=no ;;
1004 enable_static=no
1005 # Look at the argument we got. We use all the common list separators.
1006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1007 for pkg in $enableval; do
1008 if test "X$pkg" = "X$p"; then
1009 enable_static=yes
1011 done
1012 IFS="$ac_save_ifs"
1014 esac
1015 else
1016 enable_static=yes
1019 # Check whether --enable-fast-install or --disable-fast-install was given.
1020 if test "${enable_fast_install+set}" = set; then
1021 enableval="$enable_fast_install"
1022 p=${PACKAGE-default}
1023 case "$enableval" in
1024 yes) enable_fast_install=yes ;;
1025 no) enable_fast_install=no ;;
1027 enable_fast_install=no
1028 # Look at the argument we got. We use all the common list separators.
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1030 for pkg in $enableval; do
1031 if test "X$pkg" = "X$p"; then
1032 enable_fast_install=yes
1034 done
1035 IFS="$ac_save_ifs"
1037 esac
1038 else
1039 enable_fast_install=yes
1043 echo $ac_n "checking host system type""... $ac_c" 1>&6
1044 echo "configure:1045: checking host system type" >&5
1045 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
1047 # Make sure we can run config.sub.
1048 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1049 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1052 ac_cv_host_alias=$host
1053 case "$ac_cv_host_alias" in
1054 NONE)
1055 case $nonopt in
1056 NONE)
1057 if ac_cv_host_alias=`$ac_config_guess`; then :
1058 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1059 fi ;;
1060 *) ac_cv_host_alias=$nonopt ;;
1061 esac ;;
1062 esac
1064 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
1065 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1066 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1067 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1068 else
1069 echo $ac_n "(cached) $ac_c" 1>&6
1072 echo "$ac_t""$ac_cv_host" 1>&6
1074 host=$ac_cv_host
1075 host_alias=$ac_cv_host_alias
1076 host_cpu=$ac_cv_host_cpu
1077 host_vendor=$ac_cv_host_vendor
1078 host_os=$ac_cv_host_os
1084 echo $ac_n "checking build system type""... $ac_c" 1>&6
1085 echo "configure:1086: checking build system type" >&5
1086 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1088 # Make sure we can run config.sub.
1089 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1090 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1093 ac_cv_build_alias=$build
1094 case "$ac_cv_build_alias" in
1095 NONE)
1096 case $nonopt in
1097 NONE)
1098 ac_cv_build_alias=$host_alias ;;
1100 *) ac_cv_build_alias=$nonopt ;;
1101 esac ;;
1102 esac
1104 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
1105 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1108 else
1109 echo $ac_n "(cached) $ac_c" 1>&6
1112 echo "$ac_t""$ac_cv_build" 1>&6
1114 build=$ac_cv_build
1115 build_alias=$ac_cv_build_alias
1116 build_cpu=$ac_cv_build_cpu
1117 build_vendor=$ac_cv_build_vendor
1118 build_os=$ac_cv_build_os
1123 # Extract the first word of "ranlib", so it can be a program name with args.
1124 set dummy ranlib; ac_word=$2
1125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1126 echo "configure:1127: checking for $ac_word" >&5
1127 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1129 else
1130 if test -n "$RANLIB"; then
1131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1132 else
1133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1134 ac_dummy="$PATH"
1135 for ac_dir in $ac_dummy; do
1136 test -z "$ac_dir" && ac_dir=.
1137 if test -f $ac_dir/$ac_word; then
1138 ac_cv_prog_RANLIB="ranlib"
1139 break
1141 done
1142 IFS="$ac_save_ifs"
1143 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1146 RANLIB="$ac_cv_prog_RANLIB"
1147 if test -n "$RANLIB"; then
1148 echo "$ac_t""$RANLIB" 1>&6
1149 else
1150 echo "$ac_t""no" 1>&6
1153 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1154 if test "${with_gnu_ld+set}" = set; then
1155 withval="$with_gnu_ld"
1156 test "$withval" = no || with_gnu_ld=yes
1157 else
1158 with_gnu_ld=no
1161 ac_prog=ld
1162 if test "$ac_cv_prog_gcc" = yes; then
1163 # Check if gcc -print-prog-name=ld gives a path.
1164 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1165 echo "configure:1166: checking for ld used by GCC" >&5
1166 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1167 case "$ac_prog" in
1168 # Accept absolute paths.
1169 [\\/]* | [A-Za-z]:[\\/]*)
1170 re_direlt='/[^/][^/]*/\.\./'
1171 # Canonicalize the path of ld
1172 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1173 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1174 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1175 done
1176 test -z "$LD" && LD="$ac_prog"
1179 # If it fails, then pretend we aren't using GCC.
1180 ac_prog=ld
1183 # If it is relative, then search for the first ld in PATH.
1184 with_gnu_ld=unknown
1186 esac
1187 elif test "$with_gnu_ld" = yes; then
1188 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1189 echo "configure:1190: checking for GNU ld" >&5
1190 else
1191 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1192 echo "configure:1193: checking for non-GNU ld" >&5
1194 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197 if test -z "$LD"; then
1198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1199 for ac_dir in $PATH; do
1200 test -z "$ac_dir" && ac_dir=.
1201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1202 ac_cv_path_LD="$ac_dir/$ac_prog"
1203 # Check to see if the program is GNU ld. I'd rather use --version,
1204 # but apparently some GNU ld's only accept -v.
1205 # Break only if it was the GNU/non-GNU ld that we prefer.
1206 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1207 test "$with_gnu_ld" != no && break
1208 else
1209 test "$with_gnu_ld" != yes && break
1212 done
1213 IFS="$ac_save_ifs"
1214 else
1215 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1219 LD="$ac_cv_path_LD"
1220 if test -n "$LD"; then
1221 echo "$ac_t""$LD" 1>&6
1222 else
1223 echo "$ac_t""no" 1>&6
1225 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1226 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1227 echo "configure:1228: checking if the linker ($LD) is GNU ld" >&5
1228 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230 else
1231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1232 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1233 ac_cv_prog_gnu_ld=yes
1234 else
1235 ac_cv_prog_gnu_ld=no
1239 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1242 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1243 echo "configure:1244: checking for BSD-compatible nm" >&5
1244 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247 if test -n "$NM"; then
1248 # Let the user override the test.
1249 ac_cv_path_NM="$NM"
1250 else
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1252 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1255 # Check to see if the nm accepts a BSD-compat flag.
1256 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1257 # nm: unknown option "B" ignored
1258 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1259 ac_cv_path_NM="$ac_dir/nm -B"
1260 break
1261 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1262 ac_cv_path_NM="$ac_dir/nm -p"
1263 break
1264 else
1265 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1266 continue # so that we can try to find one that supports BSD flags
1269 done
1270 IFS="$ac_save_ifs"
1271 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1275 NM="$ac_cv_path_NM"
1276 echo "$ac_t""$NM" 1>&6
1278 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1279 echo "configure:1280: checking whether ln -s works" >&5
1280 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283 rm -f conftestdata
1284 if ln -s X conftestdata 2>/dev/null
1285 then
1286 rm -f conftestdata
1287 ac_cv_prog_LN_S="ln -s"
1288 else
1289 ac_cv_prog_LN_S=ln
1292 LN_S="$ac_cv_prog_LN_S"
1293 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1294 echo "$ac_t""yes" 1>&6
1295 else
1296 echo "$ac_t""no" 1>&6
1300 case "$target" in
1301 NONE) lt_target="$host" ;;
1302 *) lt_target="$target" ;;
1303 esac
1305 # Check for any special flags to pass to ltconfig.
1306 libtool_flags="--cache-file=$cache_file"
1307 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1308 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1309 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1310 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1311 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1314 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1315 if test "${enable_libtool_lock+set}" = set; then
1316 enableval="$enable_libtool_lock"
1320 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1321 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1323 # Some flags need to be propagated to the compiler or linker for good
1324 # libtool support.
1325 case "$lt_target" in
1326 *-*-irix6*)
1327 # Find out which ABI we are using.
1328 echo '#line 1329 "configure"' > conftest.$ac_ext
1329 if { (eval echo configure:1330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1330 case "`/usr/bin/file conftest.o`" in
1331 *32-bit*)
1332 LD="${LD-ld} -32"
1334 *N32*)
1335 LD="${LD-ld} -n32"
1337 *64-bit*)
1338 LD="${LD-ld} -64"
1340 esac
1342 rm -rf conftest*
1345 *-*-sco3.2v5*)
1346 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1347 SAVE_CFLAGS="$CFLAGS"
1348 CFLAGS="$CFLAGS -belf"
1349 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether the C compiler needs -belf" >&5
1351 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1358 int main() {
1360 ; return 0; }
1362 if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1363 rm -rf conftest*
1364 lt_cv_cc_needs_belf=yes
1365 else
1366 echo "configure: failed program was:" >&5
1367 cat conftest.$ac_ext >&5
1368 rm -rf conftest*
1369 lt_cv_cc_needs_belf=no
1371 rm -f conftest*
1374 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1375 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1376 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1377 CFLAGS="$SAVE_CFLAGS"
1382 esac
1385 # Save cache, so that ltconfig can load it
1386 cat > confcache <<\EOF
1387 # This file is a shell script that caches the results of configure
1388 # tests run on this system so they can be shared between configure
1389 # scripts and configure runs. It is not useful on other systems.
1390 # If it contains results you don't want to keep, you may remove or edit it.
1392 # By default, configure uses ./config.cache as the cache file,
1393 # creating it if it does not exist already. You can give configure
1394 # the --cache-file=FILE option to use a different cache file; that is
1395 # what configure does when it calls configure scripts in
1396 # subdirectories, so they share the cache.
1397 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1398 # config.status only pays attention to the cache file if you give it the
1399 # --recheck option to rerun configure.
1402 # The following way of writing the cache mishandles newlines in values,
1403 # but we know of no workaround that is simple, portable, and efficient.
1404 # So, don't put newlines in cache variables' values.
1405 # Ultrix sh set writes to stderr and can't be redirected directly,
1406 # and sets the high bit in the cache file unless we assign to the vars.
1407 (set) 2>&1 |
1408 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1409 *ac_space=\ *)
1410 # `set' does not quote correctly, so add quotes (double-quote substitution
1411 # turns \\\\ into \\, and sed turns \\ into \).
1412 sed -n \
1413 -e "s/'/'\\\\''/g" \
1414 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1417 # `set' quotes correctly as required by POSIX, so do not add quotes.
1418 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1420 esac >> confcache
1421 if cmp -s $cache_file confcache; then
1423 else
1424 if test -w $cache_file; then
1425 echo "updating cache $cache_file"
1426 cat confcache > $cache_file
1427 else
1428 echo "not updating unwritable cache $cache_file"
1431 rm -f confcache
1434 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1435 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1436 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1437 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1438 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1439 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1440 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1441 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1443 # Reload cache, that may have been modified by ltconfig
1444 if test -r "$cache_file"; then
1445 echo "loading cache $cache_file"
1446 test -f "$cache_file" && . $cache_file
1447 else
1448 echo "creating cache $cache_file"
1449 > $cache_file
1453 # This can be used to rebuild libtool when needed
1454 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1456 # Always use our own libtool.
1457 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1459 # Redirect the config.log output again, so that the ltconfig log is not
1460 # clobbered by the next message.
1461 exec 5>>./config.log
1465 if test "x$CC" != xcc; then
1466 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether $CC and cc understand -c and -o together" >&5
1468 else
1469 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1470 echo "configure:1471: checking whether cc understands -c and -o together" >&5
1472 set dummy $CC; ac_cc="`echo $2 |
1473 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1474 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1476 else
1477 echo 'foo(){}' > conftest.c
1478 # Make sure it works both with $CC and with simple cc.
1479 # We do the test twice because some compilers refuse to overwrite an
1480 # existing .o file with -o, though they will create one.
1481 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1482 if { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1483 test -f conftest.o && { (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1484 then
1485 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1486 if test "x$CC" != xcc; then
1487 # Test first that cc exists at all.
1488 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1489 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1490 if { (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1491 test -f conftest.o && { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1492 then
1493 # cc works too.
1495 else
1496 # cc exists but doesn't like -o.
1497 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1501 else
1502 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1504 rm -f conftest*
1507 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1509 else
1510 echo "$ac_t""no" 1>&6
1511 cat >> confdefs.h <<\EOF
1512 #define NO_MINUS_C_MINUS_O 1
1517 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1518 BROKEN_CC=
1519 else
1520 BROKEN_CC=#
1524 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1525 echo "configure:1526: checking that the C compiler understands volatile" >&5
1526 if eval "test \"\${samba_cv_volatile+set}\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1528 else
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 #include <sys/types.h>
1534 int main() {
1535 volatile int i = 0
1536 ; return 0; }
1538 if { (eval echo configure:1539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1539 rm -rf conftest*
1540 samba_cv_volatile=yes
1541 else
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1544 rm -rf conftest*
1545 samba_cv_volatile=no
1547 rm -f conftest*
1550 echo "$ac_t""$samba_cv_volatile" 1>&6
1551 if test x"$samba_cv_volatile" = x"yes"; then
1552 cat >> confdefs.h <<\EOF
1553 #define HAVE_VOLATILE 1
1561 echo $ac_n "checking target system type""... $ac_c" 1>&6
1562 echo "configure:1563: checking target system type" >&5
1563 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
1565 # Make sure we can run config.sub.
1566 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1567 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1570 ac_cv_target_alias=$target
1571 case "$ac_cv_target_alias" in
1572 NONE)
1573 case $nonopt in
1574 NONE)
1575 ac_cv_target_alias=$host_alias ;;
1577 *) ac_cv_target_alias=$nonopt ;;
1578 esac ;;
1579 esac
1581 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
1582 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585 else
1586 echo $ac_n "(cached) $ac_c" 1>&6
1589 echo "$ac_t""$ac_cv_target" 1>&6
1591 target=$ac_cv_target
1592 target_alias=$ac_cv_target_alias
1593 target_cpu=$ac_cv_target_cpu
1594 target_vendor=$ac_cv_target_vendor
1595 target_os=$ac_cv_target_os
1601 # Do some error checking and defaulting for the host and target type.
1602 # The inputs are:
1603 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1605 # The rules are:
1606 # 1. You are not allowed to specify --host, --target, and nonopt at the
1607 # same time.
1608 # 2. Host defaults to nonopt.
1609 # 3. If nonopt is not specified, then host defaults to the current host,
1610 # as determined by config.guess.
1611 # 4. Target and build default to nonopt.
1612 # 5. If nonopt is not specified, then target and build default to host.
1614 # The aliases save the names the user supplied, while $host etc.
1615 # will get canonicalized.
1616 case $host---$target---$nonopt in
1617 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1618 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1619 esac
1621 test "$host_alias" != "$target_alias" &&
1622 test "$program_prefix$program_suffix$program_transform_name" = \
1623 NONENONEs,x,x, &&
1624 program_prefix=${target_alias}-
1628 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1629 echo "configure:1630: checking config.cache system type" >&5
1630 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1631 test x"$ac_cv_host_system_type" != x"$host"; } ||
1632 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1633 test x"$ac_cv_build_system_type" != x"$build"; } ||
1634 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1635 test x"$ac_cv_target_system_type" != x"$target"; }; then
1636 echo "$ac_t""different" 1>&6
1637 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1638 else
1639 echo "$ac_t""same" 1>&6
1641 ac_cv_host_system_type="$host"
1642 ac_cv_build_system_type="$build"
1643 ac_cv_target_system_type="$target"
1646 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1647 if test "${enable_maintainer_mode+set}" = set; then
1648 enableval="$enable_maintainer_mode"
1649 maint_mode=$enableval
1650 else
1651 maint_mode=no
1654 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1656 # Extract the first word of "autoconf", so it can be a program name with args.
1657 set dummy autoconf; ac_word=$2
1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_word" >&5
1660 if eval "test \"\${ac_cv_path_AUTOCONF+set}\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1662 else
1663 case "$AUTOCONF" in
1665 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1667 ?:/*)
1668 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a dos path.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1672 ac_dummy="$PATH"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1677 break
1679 done
1680 IFS="$ac_save_ifs"
1681 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1683 esac
1685 AUTOCONF="$ac_cv_path_AUTOCONF"
1686 if test -n "$AUTOCONF"; then
1687 echo "$ac_t""$AUTOCONF" 1>&6
1688 else
1689 echo "$ac_t""no" 1>&6
1693 # Extract the first word of "autoheader", so it can be a program name with args.
1694 set dummy autoheader; ac_word=$2
1695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1696 echo "configure:1697: checking for $ac_word" >&5
1697 if eval "test \"\${ac_cv_path_AUTOHEADER+set}\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1699 else
1700 case "$AUTOHEADER" in
1702 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1704 ?:/*)
1705 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a dos path.
1708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 ac_dummy="$PATH"
1710 for ac_dir in $ac_dummy; do
1711 test -z "$ac_dir" && ac_dir=.
1712 if test -f $ac_dir/$ac_word; then
1713 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1714 break
1716 done
1717 IFS="$ac_save_ifs"
1718 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1720 esac
1722 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1723 if test -n "$AUTOHEADER"; then
1724 echo "$ac_t""$AUTOHEADER" 1>&6
1725 else
1726 echo "$ac_t""no" 1>&6
1733 # Config CPPFLAG settings for strange OS's that must be set
1734 # before other tests.
1736 case "$host_os" in
1737 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1738 *hpux*)
1739 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether ${CC-cc} accepts -Ae" >&5
1741 if eval "test \"\${ac_cv_prog_cc_Ae+set}\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743 else
1744 echo 'void f(){}' > conftest.c
1745 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1746 ac_cv_prog_cc_Ae=yes
1747 else
1748 ac_cv_prog_cc_Ae=no
1750 rm -f conftest*
1754 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1755 if test $ac_cv_prog_cc_Ae = yes; then
1756 CPPFLAGS="$CPPFLAGS -Ae"
1759 # Defines needed for HPUX support.
1760 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1761 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1763 case `uname -r` in
1764 *9*|*10*)
1765 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1766 cat >> confdefs.h <<\EOF
1767 #define USE_BOTH_CRYPT_CALLS 1
1771 *11*)
1772 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1773 cat >> confdefs.h <<\EOF
1774 #define USE_BOTH_CRYPT_CALLS 1
1778 esac
1781 # AIX4.x doesn't even admit to having large
1782 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1784 *aix4*)
1785 echo "$ac_t""enabling large file support" 1>&6
1786 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1789 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1790 # to the existance of large files..
1791 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1792 # recommendations on large file support, however it makes the
1793 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1794 # recommendation makes the compile fail on gcc2.7. JRA.
1796 *solaris*)
1797 case `uname -r` in
1798 5.6*|5.7*)
1799 echo "$ac_t""enabling large file support" 1>&6
1800 if test "$ac_cv_prog_gcc" = yes; then
1801 ${CC-cc} -v >conftest.c 2>&1
1802 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1803 rm -fr conftest.c
1804 case "$ac_cv_gcc_compiler_version_number" in
1805 *"gcc version 2.6"*|*"gcc version 2.7"*)
1806 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1809 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1811 esac
1812 else
1813 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1816 esac
1819 # Tests needed for SINIX large file support.
1821 *sysv4*)
1822 if test $host = mips-sni-sysv4 ; then
1823 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1824 echo "configure:1825: checking for LFS support" >&5
1825 old_CPPFLAGS="$CPPFLAGS"
1826 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1827 if test "$cross_compiling" = yes; then
1828 SINIX_LFS_SUPPORT=cross
1829 else
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1834 #include <unistd.h>
1835 main () {
1836 #if _LFS64_LARGEFILE == 1
1837 exit(0);
1838 #else
1839 exit(1);
1840 #endif
1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1844 then
1845 SINIX_LFS_SUPPORT=yes
1846 else
1847 echo "configure: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1849 rm -fr conftest*
1850 SINIX_LFS_SUPPORT=no
1852 rm -fr conftest*
1855 CPPFLAGS="$old_CPPFLAGS"
1856 if test x$SINIX_LFS_SUPPORT = xyes ; then
1857 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1858 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1859 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1860 LIBS="`getconf LFS64_LIBS` $LIBS"
1862 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1867 # Tests needed for glibc 2.1 large file support.
1869 *linux*)
1870 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1872 *hurd*)
1873 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1874 echo "configure:1875: checking for LFS support" >&5
1875 old_CPPFLAGS="$CPPFLAGS"
1876 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1877 if test "$cross_compiling" = yes; then
1878 GLIBC_LFS_SUPPORT=cross
1879 else
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1884 #include <unistd.h>
1885 main () {
1886 #if _LFS64_LARGEFILE == 1
1887 exit(0);
1888 #else
1889 exit(1);
1890 #endif
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1894 then
1895 GLIBC_LFS_SUPPORT=yes
1896 else
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -fr conftest*
1900 GLIBC_LFS_SUPPORT=no
1902 rm -fr conftest*
1905 CPPFLAGS="$old_CPPFLAGS"
1906 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1907 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1909 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1912 esac
1914 echo $ac_n "checking for inline""... $ac_c" 1>&6
1915 echo "configure:1916: checking for inline" >&5
1916 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1918 else
1919 ac_cv_c_inline=no
1920 for ac_kw in inline __inline__ __inline; do
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1925 int main() {
1926 } $ac_kw foo() {
1927 ; return 0; }
1929 if { (eval echo configure:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1930 rm -rf conftest*
1931 ac_cv_c_inline=$ac_kw; break
1932 else
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1936 rm -f conftest*
1937 done
1941 echo "$ac_t""$ac_cv_c_inline" 1>&6
1942 case "$ac_cv_c_inline" in
1943 inline | yes) ;;
1944 no) cat >> confdefs.h <<\EOF
1945 #define inline
1948 *) cat >> confdefs.h <<EOF
1949 #define inline $ac_cv_c_inline
1952 esac
1954 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1955 echo "configure:1956: checking how to run the C preprocessor" >&5
1956 # On Suns, sometimes $CPP names a directory.
1957 if test -n "$CPP" && test -d "$CPP"; then
1958 CPP=
1960 if test -z "$CPP"; then
1961 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1963 else
1964 # This must be in double quotes, not single quotes, because CPP may get
1965 # substituted into the Makefile and "${CC-cc}" will confuse make.
1966 CPP="${CC-cc} -E"
1967 # On the NeXT, cc -E runs the code through the compiler's parser,
1968 # not just through cpp.
1969 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 #include <assert.h>
1973 Syntax Error
1975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1976 { (eval echo configure:1977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1978 if test -z "$ac_err"; then
1980 else
1981 echo "$ac_err" >&5
1982 echo "configure: failed program was:" >&5
1983 cat conftest.$ac_ext >&5
1984 rm -rf conftest*
1985 CPP="${CC-cc} -E -traditional-cpp"
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 #include <assert.h>
1990 Syntax Error
1992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1993 { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1995 if test -z "$ac_err"; then
1997 else
1998 echo "$ac_err" >&5
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 rm -rf conftest*
2002 CPP="${CC-cc} -nologo -E"
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 #include <assert.h>
2007 Syntax Error
2009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2012 if test -z "$ac_err"; then
2014 else
2015 echo "$ac_err" >&5
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2018 rm -rf conftest*
2019 CPP=/lib/cpp
2021 rm -f conftest*
2023 rm -f conftest*
2025 rm -f conftest*
2026 ac_cv_prog_CPP="$CPP"
2028 CPP="$ac_cv_prog_CPP"
2029 else
2030 ac_cv_prog_CPP="$CPP"
2032 echo "$ac_t""$CPP" 1>&6
2034 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2035 echo "configure:2036: checking for ANSI C header files" >&5
2036 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 #include <stdlib.h>
2043 #include <stdarg.h>
2044 #include <string.h>
2045 #include <float.h>
2047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2048 { (eval echo configure:2049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2050 if test -z "$ac_err"; then
2051 rm -rf conftest*
2052 ac_cv_header_stdc=yes
2053 else
2054 echo "$ac_err" >&5
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2057 rm -rf conftest*
2058 ac_cv_header_stdc=no
2060 rm -f conftest*
2062 if test $ac_cv_header_stdc = yes; then
2063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2064 cat > conftest.$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2067 #include <string.h>
2069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2070 egrep "memchr" >/dev/null 2>&1; then
2072 else
2073 rm -rf conftest*
2074 ac_cv_header_stdc=no
2076 rm -f conftest*
2080 if test $ac_cv_header_stdc = yes; then
2081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2082 cat > conftest.$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 #include <stdlib.h>
2087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2088 egrep "free" >/dev/null 2>&1; then
2090 else
2091 rm -rf conftest*
2092 ac_cv_header_stdc=no
2094 rm -f conftest*
2098 if test $ac_cv_header_stdc = yes; then
2099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2100 if test "$cross_compiling" = yes; then
2102 else
2103 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2106 #include <ctype.h>
2107 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2108 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2110 int main () { int i; for (i = 0; i < 256; i++)
2111 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2112 exit (0); }
2115 if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2116 then
2118 else
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2121 rm -fr conftest*
2122 ac_cv_header_stdc=no
2124 rm -fr conftest*
2130 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2131 if test $ac_cv_header_stdc = yes; then
2132 cat >> confdefs.h <<\EOF
2133 #define STDC_HEADERS 1
2138 ac_header_dirent=no
2139 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2142 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_hdr that defines DIR" >&5
2144 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2146 else
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 #include <sys/types.h>
2151 #include <$ac_hdr>
2152 int main() {
2153 DIR *dirp = 0;
2154 ; return 0; }
2156 if { (eval echo configure:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2157 rm -rf conftest*
2158 eval "ac_cv_header_dirent_$ac_safe=yes"
2159 else
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 rm -rf conftest*
2163 eval "ac_cv_header_dirent_$ac_safe=no"
2165 rm -f conftest*
2167 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2168 echo "$ac_t""yes" 1>&6
2169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2170 cat >> confdefs.h <<EOF
2171 #define $ac_tr_hdr 1
2173 ac_header_dirent=$ac_hdr; break
2174 else
2175 echo "$ac_t""no" 1>&6
2177 done
2178 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2179 if test $ac_header_dirent = dirent.h; then
2180 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2181 echo "configure:2182: checking for opendir in -ldir" >&5
2182 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2183 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2185 else
2186 ac_save_LIBS="$LIBS"
2187 LIBS="-ldir $LIBS"
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2194 char opendir();
2196 int main() {
2197 opendir()
2198 ; return 0; }
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2201 rm -rf conftest*
2202 eval "ac_cv_lib_$ac_lib_var=yes"
2203 else
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 rm -rf conftest*
2207 eval "ac_cv_lib_$ac_lib_var=no"
2209 rm -f conftest*
2210 LIBS="$ac_save_LIBS"
2213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 LIBS="$LIBS -ldir"
2216 else
2217 echo "$ac_t""no" 1>&6
2220 else
2221 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2222 echo "configure:2223: checking for opendir in -lx" >&5
2223 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2224 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 ac_save_LIBS="$LIBS"
2228 LIBS="-lx $LIBS"
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 /* Override any gcc2 internal prototype to avoid an error. */
2233 /* We use char because int might match the return type of a gcc2
2234 builtin and then its argument prototype would still apply. */
2235 char opendir();
2237 int main() {
2238 opendir()
2239 ; return 0; }
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2242 rm -rf conftest*
2243 eval "ac_cv_lib_$ac_lib_var=yes"
2244 else
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 rm -rf conftest*
2248 eval "ac_cv_lib_$ac_lib_var=no"
2250 rm -f conftest*
2251 LIBS="$ac_save_LIBS"
2254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 LIBS="$LIBS -lx"
2257 else
2258 echo "$ac_t""no" 1>&6
2263 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2264 echo "configure:2265: checking whether time.h and sys/time.h may both be included" >&5
2265 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2267 else
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 #include <sys/types.h>
2272 #include <sys/time.h>
2273 #include <time.h>
2274 int main() {
2275 struct tm *tp;
2276 ; return 0; }
2278 if { (eval echo configure:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279 rm -rf conftest*
2280 ac_cv_header_time=yes
2281 else
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2284 rm -rf conftest*
2285 ac_cv_header_time=no
2287 rm -f conftest*
2290 echo "$ac_t""$ac_cv_header_time" 1>&6
2291 if test $ac_cv_header_time = yes; then
2292 cat >> confdefs.h <<\EOF
2293 #define TIME_WITH_SYS_TIME 1
2298 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2299 echo "configure:2300: checking for sys/wait.h that is POSIX.1 compatible" >&5
2300 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/types.h>
2307 #include <sys/wait.h>
2308 #ifndef WEXITSTATUS
2309 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2310 #endif
2311 #ifndef WIFEXITED
2312 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2313 #endif
2314 int main() {
2315 int s;
2316 wait (&s);
2317 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2318 ; return 0; }
2320 if { (eval echo configure:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321 rm -rf conftest*
2322 ac_cv_header_sys_wait_h=yes
2323 else
2324 echo "configure: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2326 rm -rf conftest*
2327 ac_cv_header_sys_wait_h=no
2329 rm -f conftest*
2332 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2333 if test $ac_cv_header_sys_wait_h = yes; then
2334 cat >> confdefs.h <<\EOF
2335 #define HAVE_SYS_WAIT_H 1
2340 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2347 else
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2351 #include <$ac_hdr>
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2357 rm -rf conftest*
2358 eval "ac_cv_header_$ac_safe=yes"
2359 else
2360 echo "$ac_err" >&5
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 rm -rf conftest*
2364 eval "ac_cv_header_$ac_safe=no"
2366 rm -f conftest*
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h <<EOF
2372 #define $ac_tr_hdr 1
2375 else
2376 echo "$ac_t""no" 1>&6
2378 done
2380 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2387 else
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2391 #include <$ac_hdr>
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2397 rm -rf conftest*
2398 eval "ac_cv_header_$ac_safe=yes"
2399 else
2400 echo "$ac_err" >&5
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 eval "ac_cv_header_$ac_safe=no"
2406 rm -f conftest*
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2415 else
2416 echo "$ac_t""no" 1>&6
2418 done
2420 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2427 else
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #include <$ac_hdr>
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2437 rm -rf conftest*
2438 eval "ac_cv_header_$ac_safe=yes"
2439 else
2440 echo "$ac_err" >&5
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 rm -rf conftest*
2444 eval "ac_cv_header_$ac_safe=no"
2446 rm -f conftest*
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_hdr 1
2455 else
2456 echo "$ac_t""no" 1>&6
2458 done
2460 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2467 else
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 #include <$ac_hdr>
2473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2477 rm -rf conftest*
2478 eval "ac_cv_header_$ac_safe=yes"
2479 else
2480 echo "$ac_err" >&5
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 rm -rf conftest*
2484 eval "ac_cv_header_$ac_safe=no"
2486 rm -f conftest*
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h <<EOF
2492 #define $ac_tr_hdr 1
2495 else
2496 echo "$ac_t""no" 1>&6
2498 done
2500 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <$ac_hdr>
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2517 rm -rf conftest*
2518 eval "ac_cv_header_$ac_safe=yes"
2519 else
2520 echo "$ac_err" >&5
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 rm -rf conftest*
2524 eval "ac_cv_header_$ac_safe=no"
2526 rm -f conftest*
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2535 else
2536 echo "$ac_t""no" 1>&6
2538 done
2540 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2547 else
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2551 #include <$ac_hdr>
2553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2557 rm -rf conftest*
2558 eval "ac_cv_header_$ac_safe=yes"
2559 else
2560 echo "$ac_err" >&5
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -rf conftest*
2564 eval "ac_cv_header_$ac_safe=no"
2566 rm -f conftest*
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h <<EOF
2572 #define $ac_tr_hdr 1
2575 else
2576 echo "$ac_t""no" 1>&6
2578 done
2580 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2584 echo "configure:2585: checking for $ac_hdr" >&5
2585 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2587 else
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2591 #include <$ac_hdr>
2593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2594 { (eval echo configure:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2596 if test -z "$ac_err"; then
2597 rm -rf conftest*
2598 eval "ac_cv_header_$ac_safe=yes"
2599 else
2600 echo "$ac_err" >&5
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 rm -rf conftest*
2604 eval "ac_cv_header_$ac_safe=no"
2606 rm -f conftest*
2608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2611 cat >> confdefs.h <<EOF
2612 #define $ac_tr_hdr 1
2615 else
2616 echo "$ac_t""no" 1>&6
2618 done
2620 for ac_hdr in getopt.h
2622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_hdr" >&5
2625 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2627 else
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <$ac_hdr>
2633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2634 { (eval echo configure:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2636 if test -z "$ac_err"; then
2637 rm -rf conftest*
2638 eval "ac_cv_header_$ac_safe=yes"
2639 else
2640 echo "$ac_err" >&5
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -rf conftest*
2644 eval "ac_cv_header_$ac_safe=no"
2646 rm -f conftest*
2648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2651 cat >> confdefs.h <<EOF
2652 #define $ac_tr_hdr 1
2655 else
2656 echo "$ac_t""no" 1>&6
2658 done
2661 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2662 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2664 case "$host_os" in
2665 *hpux*)
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 #include <shadow.h>
2670 int main() {
2671 struct spwd testme
2672 ; return 0; }
2674 if { (eval echo configure:2675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2675 rm -rf conftest*
2676 ac_cv_header_shadow_h=yes
2677 else
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2680 rm -rf conftest*
2681 ac_cv_header_shadow_h=no
2683 rm -f conftest*
2684 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2685 cat >> confdefs.h <<\EOF
2686 #define HAVE_SHADOW_H 1
2691 esac
2692 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_hdr" >&5
2697 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 #include <$ac_hdr>
2705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2709 rm -rf conftest*
2710 eval "ac_cv_header_$ac_safe=yes"
2711 else
2712 echo "$ac_err" >&5
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2715 rm -rf conftest*
2716 eval "ac_cv_header_$ac_safe=no"
2718 rm -f conftest*
2720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2723 cat >> confdefs.h <<EOF
2724 #define $ac_tr_hdr 1
2727 else
2728 echo "$ac_t""no" 1>&6
2730 done
2732 for ac_hdr in sys/security.h security/pam_appl.h
2734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_hdr" >&5
2737 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2739 else
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 #include <$ac_hdr>
2745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2749 rm -rf conftest*
2750 eval "ac_cv_header_$ac_safe=yes"
2751 else
2752 echo "$ac_err" >&5
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 eval "ac_cv_header_$ac_safe=no"
2758 rm -f conftest*
2760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2763 cat >> confdefs.h <<EOF
2764 #define $ac_tr_hdr 1
2767 else
2768 echo "$ac_t""no" 1>&6
2770 done
2772 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_hdr" >&5
2777 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2779 else
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2783 #include <$ac_hdr>
2785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2786 { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2788 if test -z "$ac_err"; then
2789 rm -rf conftest*
2790 eval "ac_cv_header_$ac_safe=yes"
2791 else
2792 echo "$ac_err" >&5
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 rm -rf conftest*
2796 eval "ac_cv_header_$ac_safe=no"
2798 rm -f conftest*
2800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2803 cat >> confdefs.h <<EOF
2804 #define $ac_tr_hdr 1
2807 else
2808 echo "$ac_t""no" 1>&6
2810 done
2812 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_hdr" >&5
2817 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2819 else
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2823 #include <$ac_hdr>
2825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2826 { (eval echo configure:2827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2828 if test -z "$ac_err"; then
2829 rm -rf conftest*
2830 eval "ac_cv_header_$ac_safe=yes"
2831 else
2832 echo "$ac_err" >&5
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2835 rm -rf conftest*
2836 eval "ac_cv_header_$ac_safe=no"
2838 rm -f conftest*
2840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2841 echo "$ac_t""yes" 1>&6
2842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2843 cat >> confdefs.h <<EOF
2844 #define $ac_tr_hdr 1
2847 else
2848 echo "$ac_t""no" 1>&6
2850 done
2852 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2856 echo "configure:2857: checking for $ac_hdr" >&5
2857 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2859 else
2860 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2863 #include <$ac_hdr>
2865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2866 { (eval echo configure:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2868 if test -z "$ac_err"; then
2869 rm -rf conftest*
2870 eval "ac_cv_header_$ac_safe=yes"
2871 else
2872 echo "$ac_err" >&5
2873 echo "configure: failed program was:" >&5
2874 cat conftest.$ac_ext >&5
2875 rm -rf conftest*
2876 eval "ac_cv_header_$ac_safe=no"
2878 rm -f conftest*
2880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2881 echo "$ac_t""yes" 1>&6
2882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2883 cat >> confdefs.h <<EOF
2884 #define $ac_tr_hdr 1
2887 else
2888 echo "$ac_t""no" 1>&6
2890 done
2893 # For experimental utmp support
2894 for ac_hdr in utmp.h utmpx.h
2896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_hdr" >&5
2899 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2901 else
2902 cat > conftest.$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2905 #include <$ac_hdr>
2907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2908 { (eval echo configure:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2910 if test -z "$ac_err"; then
2911 rm -rf conftest*
2912 eval "ac_cv_header_$ac_safe=yes"
2913 else
2914 echo "$ac_err" >&5
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 rm -rf conftest*
2918 eval "ac_cv_header_$ac_safe=no"
2920 rm -f conftest*
2922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2925 cat >> confdefs.h <<EOF
2926 #define $ac_tr_hdr 1
2929 else
2930 echo "$ac_t""no" 1>&6
2932 done
2935 echo $ac_n "checking size of int""... $ac_c" 1>&6
2936 echo "configure:2937: checking size of int" >&5
2937 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2939 else
2940 if test "$cross_compiling" = yes; then
2941 ac_cv_sizeof_int=cross
2942 else
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 #include <stdio.h>
2947 main()
2949 FILE *f=fopen("conftestval", "w");
2950 if (!f) exit(1);
2951 fprintf(f, "%d\n", sizeof(int));
2952 exit(0);
2955 if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2956 then
2957 ac_cv_sizeof_int=`cat conftestval`
2958 else
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2961 rm -fr conftest*
2962 ac_cv_sizeof_int=0
2964 rm -fr conftest*
2968 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2969 cat >> confdefs.h <<EOF
2970 #define SIZEOF_INT $ac_cv_sizeof_int
2974 echo $ac_n "checking size of long""... $ac_c" 1>&6
2975 echo "configure:2976: checking size of long" >&5
2976 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2978 else
2979 if test "$cross_compiling" = yes; then
2980 ac_cv_sizeof_long=cross
2981 else
2982 cat > conftest.$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 #include <stdio.h>
2986 main()
2988 FILE *f=fopen("conftestval", "w");
2989 if (!f) exit(1);
2990 fprintf(f, "%d\n", sizeof(long));
2991 exit(0);
2994 if { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2995 then
2996 ac_cv_sizeof_long=`cat conftestval`
2997 else
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 rm -fr conftest*
3001 ac_cv_sizeof_long=0
3003 rm -fr conftest*
3007 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3008 cat >> confdefs.h <<EOF
3009 #define SIZEOF_LONG $ac_cv_sizeof_long
3013 echo $ac_n "checking size of short""... $ac_c" 1>&6
3014 echo "configure:3015: checking size of short" >&5
3015 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3017 else
3018 if test "$cross_compiling" = yes; then
3019 ac_cv_sizeof_short=cross
3020 else
3021 cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024 #include <stdio.h>
3025 main()
3027 FILE *f=fopen("conftestval", "w");
3028 if (!f) exit(1);
3029 fprintf(f, "%d\n", sizeof(short));
3030 exit(0);
3033 if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3034 then
3035 ac_cv_sizeof_short=`cat conftestval`
3036 else
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3039 rm -fr conftest*
3040 ac_cv_sizeof_short=0
3042 rm -fr conftest*
3046 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3047 cat >> confdefs.h <<EOF
3048 #define SIZEOF_SHORT $ac_cv_sizeof_short
3053 echo $ac_n "checking for working const""... $ac_c" 1>&6
3054 echo "configure:3055: checking for working const" >&5
3055 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3062 int main() {
3064 /* Ultrix mips cc rejects this. */
3065 typedef int charset[2]; const charset x;
3066 /* SunOS 4.1.1 cc rejects this. */
3067 char const *const *ccp;
3068 char **p;
3069 /* NEC SVR4.0.2 mips cc rejects this. */
3070 struct point {int x, y;};
3071 static struct point const zero = {0,0};
3072 /* AIX XL C 1.02.0.0 rejects this.
3073 It does not let you subtract one const X* pointer from another in an arm
3074 of an if-expression whose if-part is not a constant expression */
3075 const char *g = "string";
3076 ccp = &g + (g ? g-g : 0);
3077 /* HPUX 7.0 cc rejects these. */
3078 ++ccp;
3079 p = (char**) ccp;
3080 ccp = (char const *const *) p;
3081 { /* SCO 3.2v4 cc rejects this. */
3082 char *t;
3083 char const *s = 0 ? (char *) 0 : (char const *) 0;
3085 *t++ = 0;
3087 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3088 int x[] = {25, 17};
3089 const int *foo = &x[0];
3090 ++foo;
3092 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3093 typedef const int *iptr;
3094 iptr p = 0;
3095 ++p;
3097 { /* AIX XL C 1.02.0.0 rejects this saying
3098 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3099 struct s { int j; const int *ap[3]; };
3100 struct s *b; b->j = 5;
3102 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3103 const int foo = 10;
3106 ; return 0; }
3108 if { (eval echo configure:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3109 rm -rf conftest*
3110 ac_cv_c_const=yes
3111 else
3112 echo "configure: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3114 rm -rf conftest*
3115 ac_cv_c_const=no
3117 rm -f conftest*
3120 echo "$ac_t""$ac_cv_c_const" 1>&6
3121 if test $ac_cv_c_const = no; then
3122 cat >> confdefs.h <<\EOF
3123 #define const
3128 echo $ac_n "checking for inline""... $ac_c" 1>&6
3129 echo "configure:3130: checking for inline" >&5
3130 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3132 else
3133 ac_cv_c_inline=no
3134 for ac_kw in inline __inline__ __inline; do
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3139 int main() {
3140 } $ac_kw foo() {
3141 ; return 0; }
3143 if { (eval echo configure:3144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3144 rm -rf conftest*
3145 ac_cv_c_inline=$ac_kw; break
3146 else
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3150 rm -f conftest*
3151 done
3155 echo "$ac_t""$ac_cv_c_inline" 1>&6
3156 case "$ac_cv_c_inline" in
3157 inline | yes) ;;
3158 no) cat >> confdefs.h <<\EOF
3159 #define inline
3162 *) cat >> confdefs.h <<EOF
3163 #define inline $ac_cv_c_inline
3166 esac
3168 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3169 echo "configure:3170: checking whether byte ordering is bigendian" >&5
3170 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3172 else
3173 ac_cv_c_bigendian=unknown
3174 # See if sys/param.h defines the BYTE_ORDER macro.
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <sys/types.h>
3179 #include <sys/param.h>
3180 int main() {
3182 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3183 bogus endian macros
3184 #endif
3185 ; return 0; }
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3188 rm -rf conftest*
3189 # It does; now see whether it defined to BIG_ENDIAN or not.
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #include <sys/types.h>
3194 #include <sys/param.h>
3195 int main() {
3197 #if BYTE_ORDER != BIG_ENDIAN
3198 not big endian
3199 #endif
3200 ; return 0; }
3202 if { (eval echo configure:3203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 rm -rf conftest*
3204 ac_cv_c_bigendian=yes
3205 else
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3208 rm -rf conftest*
3209 ac_cv_c_bigendian=no
3211 rm -f conftest*
3212 else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3216 rm -f conftest*
3217 if test $ac_cv_c_bigendian = unknown; then
3218 if test "$cross_compiling" = yes; then
3219 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3220 else
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 main () {
3225 /* Are we little or big endian? From Harbison&Steele. */
3226 union
3228 long l;
3229 char c[sizeof (long)];
3230 } u;
3231 u.l = 1;
3232 exit (u.c[sizeof (long) - 1] == 1);
3235 if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3236 then
3237 ac_cv_c_bigendian=no
3238 else
3239 echo "configure: failed program was:" >&5
3240 cat conftest.$ac_ext >&5
3241 rm -fr conftest*
3242 ac_cv_c_bigendian=yes
3244 rm -fr conftest*
3250 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3251 if test $ac_cv_c_bigendian = yes; then
3252 cat >> confdefs.h <<\EOF
3253 #define WORDS_BIGENDIAN 1
3258 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3259 echo "configure:3260: checking whether char is unsigned" >&5
3260 if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3262 else
3263 if test "$GCC" = yes; then
3264 # GCC predefines this symbol on systems where it applies.
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 #ifdef __CHAR_UNSIGNED__
3270 #endif
3273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3274 egrep "yes" >/dev/null 2>&1; then
3275 rm -rf conftest*
3276 ac_cv_c_char_unsigned=yes
3277 else
3278 rm -rf conftest*
3279 ac_cv_c_char_unsigned=no
3281 rm -f conftest*
3283 else
3284 if test "$cross_compiling" = yes; then
3285 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3286 else
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3291 #if !defined(__STDC__) || __STDC__ != 1
3292 #define volatile
3293 #endif
3294 main() {
3295 volatile char c = 255; exit(c < 0);
3298 if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3299 then
3300 ac_cv_c_char_unsigned=yes
3301 else
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3304 rm -fr conftest*
3305 ac_cv_c_char_unsigned=no
3307 rm -fr conftest*
3313 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3314 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3315 cat >> confdefs.h <<\EOF
3316 #define __CHAR_UNSIGNED__ 1
3322 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3323 echo "configure:3324: checking return type of signal handlers" >&5
3324 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3326 else
3327 cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 #include <sys/types.h>
3331 #include <signal.h>
3332 #ifdef signal
3333 #undef signal
3334 #endif
3335 #ifdef __cplusplus
3336 extern "C" void (*signal (int, void (*)(int)))(int);
3337 #else
3338 void (*signal ()) ();
3339 #endif
3341 int main() {
3342 int i;
3343 ; return 0; }
3345 if { (eval echo configure:3346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3346 rm -rf conftest*
3347 ac_cv_type_signal=void
3348 else
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3351 rm -rf conftest*
3352 ac_cv_type_signal=int
3354 rm -f conftest*
3357 echo "$ac_t""$ac_cv_type_signal" 1>&6
3358 cat >> confdefs.h <<EOF
3359 #define RETSIGTYPE $ac_cv_type_signal
3363 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3364 echo "configure:3365: checking for uid_t in sys/types.h" >&5
3365 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3367 else
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 #include <sys/types.h>
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "uid_t" >/dev/null 2>&1; then
3375 rm -rf conftest*
3376 ac_cv_type_uid_t=yes
3377 else
3378 rm -rf conftest*
3379 ac_cv_type_uid_t=no
3381 rm -f conftest*
3385 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3386 if test $ac_cv_type_uid_t = no; then
3387 cat >> confdefs.h <<\EOF
3388 #define uid_t int
3391 cat >> confdefs.h <<\EOF
3392 #define gid_t int
3397 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3398 echo "configure:3399: checking for mode_t" >&5
3399 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3401 else
3402 cat > conftest.$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3405 #include <sys/types.h>
3406 #if STDC_HEADERS
3407 #include <stdlib.h>
3408 #include <stddef.h>
3409 #endif
3411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3412 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3413 rm -rf conftest*
3414 eval "ac_cv_type_mode_t=yes"
3415 else
3416 rm -rf conftest*
3417 eval "ac_cv_type_mode_t=no"
3419 rm -f conftest*
3422 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 cat >> confdefs.h <<EOF
3427 #define mode_t int
3432 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3433 echo "configure:3434: checking for off_t" >&5
3434 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3436 else
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3441 #if STDC_HEADERS
3442 #include <stdlib.h>
3443 #include <stddef.h>
3444 #endif
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3448 rm -rf conftest*
3449 eval "ac_cv_type_off_t=yes"
3450 else
3451 rm -rf conftest*
3452 eval "ac_cv_type_off_t=no"
3454 rm -f conftest*
3457 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3459 else
3460 echo "$ac_t""no" 1>&6
3461 cat >> confdefs.h <<EOF
3462 #define off_t long
3467 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3468 echo "configure:3469: checking for size_t" >&5
3469 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3471 else
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 #include <sys/types.h>
3476 #if STDC_HEADERS
3477 #include <stdlib.h>
3478 #include <stddef.h>
3479 #endif
3481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3483 rm -rf conftest*
3484 eval "ac_cv_type_size_t=yes"
3485 else
3486 rm -rf conftest*
3487 eval "ac_cv_type_size_t=no"
3489 rm -f conftest*
3492 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3494 else
3495 echo "$ac_t""no" 1>&6
3496 cat >> confdefs.h <<EOF
3497 #define size_t unsigned
3502 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3503 echo "configure:3504: checking for pid_t" >&5
3504 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3506 else
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3511 #if STDC_HEADERS
3512 #include <stdlib.h>
3513 #include <stddef.h>
3514 #endif
3516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3517 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3518 rm -rf conftest*
3519 eval "ac_cv_type_pid_t=yes"
3520 else
3521 rm -rf conftest*
3522 eval "ac_cv_type_pid_t=no"
3524 rm -f conftest*
3527 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 else
3530 echo "$ac_t""no" 1>&6
3531 cat >> confdefs.h <<EOF
3532 #define pid_t int
3537 echo $ac_n "checking for member st_rdev in aggregate type struct stat""... $ac_c" 1>&6
3538 echo "configure:3539: checking for member st_rdev in aggregate type struct stat" >&5
3539 if eval "test \"\${ac_cv_c_struct_member_st_rdev+set}\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3541 else
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <sys/types.h>
3546 #include <sys/stat.h>
3547 int main() {
3548 struct stat foo; foo.st_rdev;
3549 ; return 0; }
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552 rm -rf conftest*
3553 ac_cv_c_struct_member_st_rdev=yes
3554 else
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 rm -rf conftest*
3558 ac_cv_c_struct_member_st_rdev=no
3560 rm -f conftest*
3563 echo "$ac_t""$ac_cv_c_struct_member_st_rdev" 1>&6
3564 st_rdev="$ac_cv_c_struct_member_st_rdev"
3565 if test $ac_cv_c_struct_member_st_rdev = yes; then
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_ST_RDEV 1
3572 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3573 echo "configure:3574: checking for d_off in dirent" >&5
3574 if eval "test \"\${ac_cv_dirent_d_off+set}\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3576 else
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3581 #include <unistd.h>
3582 #include <sys/types.h>
3583 #include <dirent.h>
3584 int main() {
3585 struct dirent d; d.d_off;
3586 ; return 0; }
3588 if { (eval echo configure:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3589 rm -rf conftest*
3590 ac_cv_dirent_d_off=yes
3591 else
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3594 rm -rf conftest*
3595 ac_cv_dirent_d_off=no
3597 rm -f conftest*
3600 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3601 if test $ac_cv_dirent_d_off = yes; then
3602 cat >> confdefs.h <<\EOF
3603 #define HAVE_DIRENT_D_OFF 1
3608 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3609 echo "configure:3610: checking for ino_t" >&5
3610 if eval "test \"\${ac_cv_type_ino_t+set}\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3612 else
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3616 #include <sys/types.h>
3617 #if STDC_HEADERS
3618 #include <stdlib.h>
3619 #include <stddef.h>
3620 #endif
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3624 rm -rf conftest*
3625 eval "ac_cv_type_ino_t=yes"
3626 else
3627 rm -rf conftest*
3628 eval "ac_cv_type_ino_t=no"
3630 rm -f conftest*
3633 if eval "test \"`echo '$ac_cv_type_'ino_t`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3635 else
3636 echo "$ac_t""no" 1>&6
3637 cat >> confdefs.h <<EOF
3638 #define ino_t unsigned
3643 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3644 echo "configure:3645: checking for loff_t" >&5
3645 if eval "test \"\${ac_cv_type_loff_t+set}\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3647 else
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 #include <sys/types.h>
3652 #if STDC_HEADERS
3653 #include <stdlib.h>
3654 #include <stddef.h>
3655 #endif
3657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3658 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3659 rm -rf conftest*
3660 eval "ac_cv_type_loff_t=yes"
3661 else
3662 rm -rf conftest*
3663 eval "ac_cv_type_loff_t=no"
3665 rm -f conftest*
3668 if eval "test \"`echo '$ac_cv_type_'loff_t`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3670 else
3671 echo "$ac_t""no" 1>&6
3672 cat >> confdefs.h <<EOF
3673 #define loff_t off_t
3678 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3679 echo "configure:3680: checking for offset_t" >&5
3680 if eval "test \"\${ac_cv_type_offset_t+set}\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3682 else
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 #include <sys/types.h>
3687 #if STDC_HEADERS
3688 #include <stdlib.h>
3689 #include <stddef.h>
3690 #endif
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3694 rm -rf conftest*
3695 eval "ac_cv_type_offset_t=yes"
3696 else
3697 rm -rf conftest*
3698 eval "ac_cv_type_offset_t=no"
3700 rm -f conftest*
3703 if eval "test \"`echo '$ac_cv_type_'offset_t`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3705 else
3706 echo "$ac_t""no" 1>&6
3707 cat >> confdefs.h <<EOF
3708 #define offset_t loff_t
3713 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3714 echo "configure:3715: checking for ssize_t" >&5
3715 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3717 else
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #include <sys/types.h>
3722 #if STDC_HEADERS
3723 #include <stdlib.h>
3724 #include <stddef.h>
3725 #endif
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3729 rm -rf conftest*
3730 eval "ac_cv_type_ssize_t=yes"
3731 else
3732 rm -rf conftest*
3733 eval "ac_cv_type_ssize_t=no"
3735 rm -f conftest*
3738 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3740 else
3741 echo "$ac_t""no" 1>&6
3742 cat >> confdefs.h <<EOF
3743 #define ssize_t int
3748 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3749 echo "configure:3750: checking for wchar_t" >&5
3750 if eval "test \"\${ac_cv_type_wchar_t+set}\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3752 else
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <sys/types.h>
3757 #if STDC_HEADERS
3758 #include <stdlib.h>
3759 #include <stddef.h>
3760 #endif
3762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3763 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3764 rm -rf conftest*
3765 eval "ac_cv_type_wchar_t=yes"
3766 else
3767 rm -rf conftest*
3768 eval "ac_cv_type_wchar_t=no"
3770 rm -f conftest*
3773 if eval "test \"`echo '$ac_cv_type_'wchar_t`\" = yes"; then
3774 echo "$ac_t""yes" 1>&6
3775 else
3776 echo "$ac_t""no" 1>&6
3777 cat >> confdefs.h <<EOF
3778 #define wchar_t unsigned short
3784 # we need libcups for CUPS support...
3785 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3786 echo "configure:3787: checking for httpConnect in -lcups" >&5
3787 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3788 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3790 else
3791 ac_save_LIBS="$LIBS"
3792 LIBS="-lcups $LIBS"
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 /* Override any gcc2 internal prototype to avoid an error. */
3797 /* We use char because int might match the return type of a gcc2
3798 builtin and then its argument prototype would still apply. */
3799 char httpConnect();
3801 int main() {
3802 httpConnect()
3803 ; return 0; }
3805 if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806 rm -rf conftest*
3807 eval "ac_cv_lib_$ac_lib_var=yes"
3808 else
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3811 rm -rf conftest*
3812 eval "ac_cv_lib_$ac_lib_var=no"
3814 rm -f conftest*
3815 LIBS="$ac_save_LIBS"
3818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3819 echo "$ac_t""yes" 1>&6
3820 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3821 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3822 cat >> confdefs.h <<EOF
3823 #define $ac_tr_lib 1
3826 LIBS="-lcups $LIBS"
3828 else
3829 echo "$ac_t""no" 1>&6
3833 # we need libdl for PAM and the new VFS code
3834 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3835 echo "configure:3836: checking for dlopen in -ldl" >&5
3836 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3839 else
3840 ac_save_LIBS="$LIBS"
3841 LIBS="-ldl $LIBS"
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3848 char dlopen();
3850 int main() {
3851 dlopen()
3852 ; return 0; }
3854 if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3855 rm -rf conftest*
3856 eval "ac_cv_lib_$ac_lib_var=yes"
3857 else
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 rm -rf conftest*
3861 eval "ac_cv_lib_$ac_lib_var=no"
3863 rm -f conftest*
3864 LIBS="$ac_save_LIBS"
3867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3869 LIBS="$LIBS -ldl";
3870 cat >> confdefs.h <<\EOF
3871 #define HAVE_LIBDL 1
3874 else
3875 echo "$ac_t""no" 1>&6
3879 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3880 echo "configure:3881: checking for sig_atomic_t type" >&5
3881 if eval "test \"\${samba_cv_sig_atomic_t+set}\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3883 else
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3889 #include <sys/types.h>
3890 #if STDC_HEADERS
3891 #include <stdlib.h>
3892 #include <stddef.h>
3893 #endif
3894 #include <signal.h>
3895 int main() {
3896 sig_atomic_t i = 0
3897 ; return 0; }
3899 if { (eval echo configure:3900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3900 rm -rf conftest*
3901 samba_cv_sig_atomic_t=yes
3902 else
3903 echo "configure: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3905 rm -rf conftest*
3906 samba_cv_sig_atomic_t=no
3908 rm -f conftest*
3911 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3912 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3913 cat >> confdefs.h <<\EOF
3914 #define HAVE_SIG_ATOMIC_T_TYPE 1
3919 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3920 echo "configure:3921: checking for errno in errno.h" >&5
3921 if eval "test \"\${samba_cv_errno+set}\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3923 else
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 #include <errno.h>
3929 int main() {
3930 int i = errno
3931 ; return 0; }
3933 if { (eval echo configure:3934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3934 rm -rf conftest*
3935 samba_cv_errno=yes
3936 else
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 rm -rf conftest*
3940 samba_cv_have_errno=no
3942 rm -f conftest*
3945 echo "$ac_t""$samba_cv_errno" 1>&6
3946 if test x"$samba_cv_errno" = x"yes"; then
3947 cat >> confdefs.h <<\EOF
3948 #define HAVE_ERRNO_DECL 1
3953 # stupid glibc has the functions but no declaration. grrrr.
3954 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3955 echo "configure:3956: checking for setresuid declaration" >&5
3956 if eval "test \"\${samba_cv_have_setresuid_decl+set}\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3958 else
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 #include <unistd.h>
3964 int main() {
3965 int i = (int)setresuid
3966 ; return 0; }
3968 if { (eval echo configure:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3969 rm -rf conftest*
3970 samba_cv_have_setresuid_decl=yes
3971 else
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3974 rm -rf conftest*
3975 samba_cv_have_setresuid_decl=no
3977 rm -f conftest*
3980 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3981 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_SETRESUID_DECL 1
3988 # stupid glibc has the functions but no declaration. grrrr.
3989 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3990 echo "configure:3991: checking for setresgid declaration" >&5
3991 if eval "test \"\${samba_cv_have_setresgid_decl+set}\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3993 else
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 #include <unistd.h>
3999 int main() {
4000 int i = (int)setresgid
4001 ; return 0; }
4003 if { (eval echo configure:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4004 rm -rf conftest*
4005 samba_cv_have_setresgid_decl=yes
4006 else
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4009 rm -rf conftest*
4010 samba_cv_have_setresgid_decl=no
4012 rm -f conftest*
4015 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4016 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
4017 cat >> confdefs.h <<\EOF
4018 #define HAVE_SETRESGID_DECL 1
4023 # and glibc has setresuid under linux but the function does
4024 # nothing until kernel 2.1.44! very dumb.
4025 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4026 echo "configure:4027: checking for real setresuid" >&5
4027 if eval "test \"\${samba_cv_have_setresuid+set}\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029 else
4031 if test "$cross_compiling" = yes; then
4032 samba_cv_have_setresuid=cross
4033 else
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4037 #include <errno.h>
4038 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4040 if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4041 then
4042 samba_cv_have_setresuid=yes
4043 else
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4046 rm -fr conftest*
4047 samba_cv_have_setresuid=no
4049 rm -fr conftest*
4054 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4055 if test x"$samba_cv_have_setresuid" = x"yes"; then
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_SETRESUID 1
4062 # Do the same check for setresguid...
4064 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4065 echo "configure:4066: checking for real setresgid" >&5
4066 if eval "test \"\${samba_cv_have_setresgid+set}\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4068 else
4070 if test "$cross_compiling" = yes; then
4071 samba_cv_have_setresgid=cross
4072 else
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 #include <unistd.h>
4077 #include <errno.h>
4078 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4081 then
4082 samba_cv_have_setresgid=yes
4083 else
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 rm -fr conftest*
4087 samba_cv_have_setresgid=no
4089 rm -fr conftest*
4094 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4095 if test x"$samba_cv_have_setresgid" = x"yes"; then
4096 cat >> confdefs.h <<\EOF
4097 #define HAVE_SETRESGID 1
4102 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4103 echo "configure:4104: checking for 8-bit clean memcmp" >&5
4104 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4106 else
4107 if test "$cross_compiling" = yes; then
4108 ac_cv_func_memcmp_clean=no
4109 else
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4114 main()
4116 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4117 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4121 if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4122 then
4123 ac_cv_func_memcmp_clean=yes
4124 else
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4127 rm -fr conftest*
4128 ac_cv_func_memcmp_clean=no
4130 rm -fr conftest*
4135 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4136 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4139 ###############################################
4140 # test for where we get crypt() from
4141 for ac_func in crypt
4143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4144 echo "configure:4145: checking for $ac_func" >&5
4145 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4147 else
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4151 /* System header to define __stub macros and hopefully few prototypes,
4152 which can conflict with char $ac_func(); below. */
4153 #include <assert.h>
4154 /* Override any gcc2 internal prototype to avoid an error. */
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4157 char $ac_func();
4158 char (*f)();
4160 int main() {
4162 /* The GNU C library defines this for functions which it implements
4163 to always fail with ENOSYS. Some functions are actually named
4164 something starting with __ and the normal name is an alias. */
4165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4166 choke me
4167 #else
4168 f = $ac_func;
4169 #endif
4171 ; return 0; }
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4174 rm -rf conftest*
4175 eval "ac_cv_func_$ac_func=yes"
4176 else
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 rm -rf conftest*
4180 eval "ac_cv_func_$ac_func=no"
4182 rm -f conftest*
4185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4186 echo "$ac_t""yes" 1>&6
4187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4188 cat >> confdefs.h <<EOF
4189 #define $ac_tr_func 1
4192 else
4193 echo "$ac_t""no" 1>&6
4195 done
4197 if test x"$ac_cv_func_crypt" = x"no"; then
4198 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4199 echo "configure:4200: checking for crypt in -lcrypt" >&5
4200 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4203 else
4204 ac_save_LIBS="$LIBS"
4205 LIBS="-lcrypt $LIBS"
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char crypt();
4214 int main() {
4215 crypt()
4216 ; return 0; }
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4219 rm -rf conftest*
4220 eval "ac_cv_lib_$ac_lib_var=yes"
4221 else
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 rm -rf conftest*
4225 eval "ac_cv_lib_$ac_lib_var=no"
4227 rm -f conftest*
4228 LIBS="$ac_save_LIBS"
4231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4232 echo "$ac_t""yes" 1>&6
4233 LIBS="$LIBS -lcrypt";
4234 cat >> confdefs.h <<\EOF
4235 #define HAVE_CRYPT 1
4238 else
4239 echo "$ac_t""no" 1>&6
4245 ###############################################
4246 # test for where we get readline() from
4247 if test "$ac_cv_header_readline_h" = "yes" ||
4248 test "$ac_cv_header_readline_readline_h" = "yes"; then
4249 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
4250 echo "configure:4251: checking for readline in -lreadline" >&5
4251 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
4252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4254 else
4255 ac_save_LIBS="$LIBS"
4256 LIBS="-lreadline $LIBS"
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4263 char readline();
4265 int main() {
4266 readline()
4267 ; return 0; }
4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4270 rm -rf conftest*
4271 eval "ac_cv_lib_$ac_lib_var=yes"
4272 else
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4275 rm -rf conftest*
4276 eval "ac_cv_lib_$ac_lib_var=no"
4278 rm -f conftest*
4279 LIBS="$ac_save_LIBS"
4282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4286 cat >> confdefs.h <<EOF
4287 #define $ac_tr_lib 1
4290 LIBS="-lreadline $LIBS"
4292 else
4293 echo "$ac_t""no" 1>&6
4299 # The following test taken from the cvs sources
4300 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4301 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4302 # libsocket.so which has a bad implementation of gethostbyname (it
4303 # only looks in /etc/hosts), so we only look for -lsocket if we need
4304 # it.
4305 for ac_func in connect
4307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4308 echo "configure:4309: checking for $ac_func" >&5
4309 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312 cat > conftest.$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 /* System header to define __stub macros and hopefully few prototypes,
4316 which can conflict with char $ac_func(); below. */
4317 #include <assert.h>
4318 /* Override any gcc2 internal prototype to avoid an error. */
4319 /* We use char because int might match the return type of a gcc2
4320 builtin and then its argument prototype would still apply. */
4321 char $ac_func();
4322 char (*f)();
4324 int main() {
4326 /* The GNU C library defines this for functions which it implements
4327 to always fail with ENOSYS. Some functions are actually named
4328 something starting with __ and the normal name is an alias. */
4329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4330 choke me
4331 #else
4332 f = $ac_func;
4333 #endif
4335 ; return 0; }
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4338 rm -rf conftest*
4339 eval "ac_cv_func_$ac_func=yes"
4340 else
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4343 rm -rf conftest*
4344 eval "ac_cv_func_$ac_func=no"
4346 rm -f conftest*
4349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4352 cat >> confdefs.h <<EOF
4353 #define $ac_tr_func 1
4356 else
4357 echo "$ac_t""no" 1>&6
4359 done
4361 if test x"$ac_cv_func_connect" = x"no"; then
4362 case "$LIBS" in
4363 *-lnsl*) ;;
4364 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4365 echo "configure:4366: checking for printf in -lnsl_s" >&5
4366 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4370 ac_save_LIBS="$LIBS"
4371 LIBS="-lnsl_s $LIBS"
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 /* Override any gcc2 internal prototype to avoid an error. */
4376 /* We use char because int might match the return type of a gcc2
4377 builtin and then its argument prototype would still apply. */
4378 char printf();
4380 int main() {
4381 printf()
4382 ; return 0; }
4384 if { (eval echo configure:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4385 rm -rf conftest*
4386 eval "ac_cv_lib_$ac_lib_var=yes"
4387 else
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4390 rm -rf conftest*
4391 eval "ac_cv_lib_$ac_lib_var=no"
4393 rm -f conftest*
4394 LIBS="$ac_save_LIBS"
4397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4398 echo "$ac_t""yes" 1>&6
4399 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4401 cat >> confdefs.h <<EOF
4402 #define $ac_tr_lib 1
4405 LIBS="-lnsl_s $LIBS"
4407 else
4408 echo "$ac_t""no" 1>&6
4411 esac
4412 case "$LIBS" in
4413 *-lnsl*) ;;
4414 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4415 echo "configure:4416: checking for printf in -lnsl" >&5
4416 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4419 else
4420 ac_save_LIBS="$LIBS"
4421 LIBS="-lnsl $LIBS"
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4428 char printf();
4430 int main() {
4431 printf()
4432 ; return 0; }
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4435 rm -rf conftest*
4436 eval "ac_cv_lib_$ac_lib_var=yes"
4437 else
4438 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4440 rm -rf conftest*
4441 eval "ac_cv_lib_$ac_lib_var=no"
4443 rm -f conftest*
4444 LIBS="$ac_save_LIBS"
4447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4451 cat >> confdefs.h <<EOF
4452 #define $ac_tr_lib 1
4455 LIBS="-lnsl $LIBS"
4457 else
4458 echo "$ac_t""no" 1>&6
4461 esac
4462 case "$LIBS" in
4463 *-lsocket*) ;;
4464 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4465 echo "configure:4466: checking for connect in -lsocket" >&5
4466 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4469 else
4470 ac_save_LIBS="$LIBS"
4471 LIBS="-lsocket $LIBS"
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4478 char connect();
4480 int main() {
4481 connect()
4482 ; return 0; }
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 rm -rf conftest*
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4487 else
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4490 rm -rf conftest*
4491 eval "ac_cv_lib_$ac_lib_var=no"
4493 rm -f conftest*
4494 LIBS="$ac_save_LIBS"
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4499 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4501 cat >> confdefs.h <<EOF
4502 #define $ac_tr_lib 1
4505 LIBS="-lsocket $LIBS"
4507 else
4508 echo "$ac_t""no" 1>&6
4511 esac
4512 case "$LIBS" in
4513 *-linet*) ;;
4514 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4515 echo "configure:4516: checking for connect in -linet" >&5
4516 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4517 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4519 else
4520 ac_save_LIBS="$LIBS"
4521 LIBS="-linet $LIBS"
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4526 /* We use char because int might match the return type of a gcc2
4527 builtin and then its argument prototype would still apply. */
4528 char connect();
4530 int main() {
4531 connect()
4532 ; return 0; }
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 rm -rf conftest*
4536 eval "ac_cv_lib_$ac_lib_var=yes"
4537 else
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 rm -rf conftest*
4541 eval "ac_cv_lib_$ac_lib_var=no"
4543 rm -f conftest*
4544 LIBS="$ac_save_LIBS"
4547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4551 cat >> confdefs.h <<EOF
4552 #define $ac_tr_lib 1
4555 LIBS="-linet $LIBS"
4557 else
4558 echo "$ac_t""no" 1>&6
4561 esac
4562 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4563 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4564 # ac_cv_func_connect=yes
4565 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4566 cat >> confdefs.h <<\EOF
4567 #define HAVE_CONNECT 1
4573 # Check if we have execl, if not we need to compile smbrun.
4574 for ac_func in execl
4576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_func" >&5
4578 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4580 else
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4586 #include <assert.h>
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4590 char $ac_func();
4591 char (*f)();
4593 int main() {
4595 /* The GNU C library defines this for functions which it implements
4596 to always fail with ENOSYS. Some functions are actually named
4597 something starting with __ and the normal name is an alias. */
4598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4599 choke me
4600 #else
4601 f = $ac_func;
4602 #endif
4604 ; return 0; }
4606 if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 rm -rf conftest*
4608 eval "ac_cv_func_$ac_func=yes"
4609 else
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4612 rm -rf conftest*
4613 eval "ac_cv_func_$ac_func=no"
4615 rm -f conftest*
4618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4619 echo "$ac_t""yes" 1>&6
4620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4621 cat >> confdefs.h <<EOF
4622 #define $ac_tr_func 1
4625 else
4626 echo "$ac_t""no" 1>&6
4628 done
4630 if test x"$ac_cv_func_execl" = x"no"; then
4631 RUNPROG="bin/smbrun"
4632 else
4633 RUNPROG=""
4636 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_func" >&5
4640 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4642 else
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* System header to define __stub macros and hopefully few prototypes,
4647 which can conflict with char $ac_func(); below. */
4648 #include <assert.h>
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4652 char $ac_func();
4653 char (*f)();
4655 int main() {
4657 /* The GNU C library defines this for functions which it implements
4658 to always fail with ENOSYS. Some functions are actually named
4659 something starting with __ and the normal name is an alias. */
4660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4661 choke me
4662 #else
4663 f = $ac_func;
4664 #endif
4666 ; return 0; }
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4669 rm -rf conftest*
4670 eval "ac_cv_func_$ac_func=yes"
4671 else
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4674 rm -rf conftest*
4675 eval "ac_cv_func_$ac_func=no"
4677 rm -f conftest*
4680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4683 cat >> confdefs.h <<EOF
4684 #define $ac_tr_func 1
4687 else
4688 echo "$ac_t""no" 1>&6
4690 done
4692 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4695 echo "configure:4696: checking for $ac_func" >&5
4696 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4698 else
4699 cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 /* System header to define __stub macros and hopefully few prototypes,
4703 which can conflict with char $ac_func(); below. */
4704 #include <assert.h>
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4708 char $ac_func();
4709 char (*f)();
4711 int main() {
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4717 choke me
4718 #else
4719 f = $ac_func;
4720 #endif
4722 ; return 0; }
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4725 rm -rf conftest*
4726 eval "ac_cv_func_$ac_func=yes"
4727 else
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
4731 eval "ac_cv_func_$ac_func=no"
4733 rm -f conftest*
4736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4739 cat >> confdefs.h <<EOF
4740 #define $ac_tr_func 1
4743 else
4744 echo "$ac_t""no" 1>&6
4746 done
4748 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_func" >&5
4752 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4754 else
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4760 #include <assert.h>
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4764 char $ac_func();
4765 char (*f)();
4767 int main() {
4769 /* The GNU C library defines this for functions which it implements
4770 to always fail with ENOSYS. Some functions are actually named
4771 something starting with __ and the normal name is an alias. */
4772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4773 choke me
4774 #else
4775 f = $ac_func;
4776 #endif
4778 ; return 0; }
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 rm -rf conftest*
4782 eval "ac_cv_func_$ac_func=yes"
4783 else
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4786 rm -rf conftest*
4787 eval "ac_cv_func_$ac_func=no"
4789 rm -f conftest*
4792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4793 echo "$ac_t""yes" 1>&6
4794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4795 cat >> confdefs.h <<EOF
4796 #define $ac_tr_func 1
4799 else
4800 echo "$ac_t""no" 1>&6
4802 done
4804 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4807 echo "configure:4808: checking for $ac_func" >&5
4808 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4810 else
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 /* System header to define __stub macros and hopefully few prototypes,
4815 which can conflict with char $ac_func(); below. */
4816 #include <assert.h>
4817 /* Override any gcc2 internal prototype to avoid an error. */
4818 /* We use char because int might match the return type of a gcc2
4819 builtin and then its argument prototype would still apply. */
4820 char $ac_func();
4821 char (*f)();
4823 int main() {
4825 /* The GNU C library defines this for functions which it implements
4826 to always fail with ENOSYS. Some functions are actually named
4827 something starting with __ and the normal name is an alias. */
4828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4829 choke me
4830 #else
4831 f = $ac_func;
4832 #endif
4834 ; return 0; }
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4837 rm -rf conftest*
4838 eval "ac_cv_func_$ac_func=yes"
4839 else
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 rm -rf conftest*
4843 eval "ac_cv_func_$ac_func=no"
4845 rm -f conftest*
4848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4849 echo "$ac_t""yes" 1>&6
4850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4851 cat >> confdefs.h <<EOF
4852 #define $ac_tr_func 1
4855 else
4856 echo "$ac_t""no" 1>&6
4858 done
4860 for ac_func in initgroups select rdchk getgrnam getgrent pathconf
4862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4863 echo "configure:4864: checking for $ac_func" >&5
4864 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4866 else
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* System header to define __stub macros and hopefully few prototypes,
4871 which can conflict with char $ac_func(); below. */
4872 #include <assert.h>
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4876 char $ac_func();
4877 char (*f)();
4879 int main() {
4881 /* The GNU C library defines this for functions which it implements
4882 to always fail with ENOSYS. Some functions are actually named
4883 something starting with __ and the normal name is an alias. */
4884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4885 choke me
4886 #else
4887 f = $ac_func;
4888 #endif
4890 ; return 0; }
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893 rm -rf conftest*
4894 eval "ac_cv_func_$ac_func=yes"
4895 else
4896 echo "configure: failed program was:" >&5
4897 cat conftest.$ac_ext >&5
4898 rm -rf conftest*
4899 eval "ac_cv_func_$ac_func=no"
4901 rm -f conftest*
4904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4905 echo "$ac_t""yes" 1>&6
4906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4907 cat >> confdefs.h <<EOF
4908 #define $ac_tr_func 1
4911 else
4912 echo "$ac_t""no" 1>&6
4914 done
4916 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4919 echo "configure:4920: checking for $ac_func" >&5
4920 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4922 else
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 /* System header to define __stub macros and hopefully few prototypes,
4927 which can conflict with char $ac_func(); below. */
4928 #include <assert.h>
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4932 char $ac_func();
4933 char (*f)();
4935 int main() {
4937 /* The GNU C library defines this for functions which it implements
4938 to always fail with ENOSYS. Some functions are actually named
4939 something starting with __ and the normal name is an alias. */
4940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4941 choke me
4942 #else
4943 f = $ac_func;
4944 #endif
4946 ; return 0; }
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 rm -rf conftest*
4950 eval "ac_cv_func_$ac_func=yes"
4951 else
4952 echo "configure: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4954 rm -rf conftest*
4955 eval "ac_cv_func_$ac_func=no"
4957 rm -f conftest*
4960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_func 1
4967 else
4968 echo "$ac_t""no" 1>&6
4970 done
4972 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4975 echo "configure:4976: checking for $ac_func" >&5
4976 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6
4978 else
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func(); below. */
4984 #include <assert.h>
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 /* We use char because int might match the return type of a gcc2
4987 builtin and then its argument prototype would still apply. */
4988 char $ac_func();
4989 char (*f)();
4991 int main() {
4993 /* The GNU C library defines this for functions which it implements
4994 to always fail with ENOSYS. Some functions are actually named
4995 something starting with __ and the normal name is an alias. */
4996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4997 choke me
4998 #else
4999 f = $ac_func;
5000 #endif
5002 ; return 0; }
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 rm -rf conftest*
5006 eval "ac_cv_func_$ac_func=yes"
5007 else
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5010 rm -rf conftest*
5011 eval "ac_cv_func_$ac_func=no"
5013 rm -f conftest*
5016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5019 cat >> confdefs.h <<EOF
5020 #define $ac_tr_func 1
5023 else
5024 echo "$ac_t""no" 1>&6
5026 done
5028 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
5030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5031 echo "configure:5032: checking for $ac_func" >&5
5032 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5034 else
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char $ac_func(); below. */
5040 #include <assert.h>
5041 /* Override any gcc2 internal prototype to avoid an error. */
5042 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */
5044 char $ac_func();
5045 char (*f)();
5047 int main() {
5049 /* The GNU C library defines this for functions which it implements
5050 to always fail with ENOSYS. Some functions are actually named
5051 something starting with __ and the normal name is an alias. */
5052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5053 choke me
5054 #else
5055 f = $ac_func;
5056 #endif
5058 ; return 0; }
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 rm -rf conftest*
5062 eval "ac_cv_func_$ac_func=yes"
5063 else
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 rm -rf conftest*
5067 eval "ac_cv_func_$ac_func=no"
5069 rm -f conftest*
5072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5075 cat >> confdefs.h <<EOF
5076 #define $ac_tr_func 1
5079 else
5080 echo "$ac_t""no" 1>&6
5082 done
5084 for ac_func in srandom random srand rand setenv usleep mmap64 strcasecmp fcvt fcvtl
5086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5087 echo "configure:5088: checking for $ac_func" >&5
5088 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5090 else
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char $ac_func(); below. */
5096 #include <assert.h>
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5100 char $ac_func();
5101 char (*f)();
5103 int main() {
5105 /* The GNU C library defines this for functions which it implements
5106 to always fail with ENOSYS. Some functions are actually named
5107 something starting with __ and the normal name is an alias. */
5108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5109 choke me
5110 #else
5111 f = $ac_func;
5112 #endif
5114 ; return 0; }
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5117 rm -rf conftest*
5118 eval "ac_cv_func_$ac_func=yes"
5119 else
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5122 rm -rf conftest*
5123 eval "ac_cv_func_$ac_func=no"
5125 rm -f conftest*
5128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5129 echo "$ac_t""yes" 1>&6
5130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5131 cat >> confdefs.h <<EOF
5132 #define $ac_tr_func 1
5135 else
5136 echo "$ac_t""no" 1>&6
5138 done
5141 # syscall() is needed for smbwrapper.
5142 for ac_func in syscall
5144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5145 echo "configure:5146: checking for $ac_func" >&5
5146 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5148 else
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 /* System header to define __stub macros and hopefully few prototypes,
5153 which can conflict with char $ac_func(); below. */
5154 #include <assert.h>
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5158 char $ac_func();
5159 char (*f)();
5161 int main() {
5163 /* The GNU C library defines this for functions which it implements
5164 to always fail with ENOSYS. Some functions are actually named
5165 something starting with __ and the normal name is an alias. */
5166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5167 choke me
5168 #else
5169 f = $ac_func;
5170 #endif
5172 ; return 0; }
5174 if { (eval echo configure:5175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 rm -rf conftest*
5176 eval "ac_cv_func_$ac_func=yes"
5177 else
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5180 rm -rf conftest*
5181 eval "ac_cv_func_$ac_func=no"
5183 rm -f conftest*
5186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5187 echo "$ac_t""yes" 1>&6
5188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5189 cat >> confdefs.h <<EOF
5190 #define $ac_tr_func 1
5193 else
5194 echo "$ac_t""no" 1>&6
5196 done
5199 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5202 echo "configure:5203: checking for $ac_func" >&5
5203 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5205 else
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char $ac_func(); below. */
5211 #include <assert.h>
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5215 char $ac_func();
5216 char (*f)();
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 f = $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 \"\${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();
5272 char (*f)();
5274 int main() {
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 choke me
5281 #else
5282 f = $ac_func;
5283 #endif
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 rm -rf conftest*
5289 eval "ac_cv_func_$ac_func=yes"
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 eval "ac_cv_func_$ac_func=no"
5296 rm -f conftest*
5299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5300 echo "$ac_t""yes" 1>&6
5301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5302 cat >> confdefs.h <<EOF
5303 #define $ac_tr_func 1
5306 else
5307 echo "$ac_t""no" 1>&6
5309 done
5311 for ac_func in __getcwd _getcwd
5313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5314 echo "configure:5315: checking for $ac_func" >&5
5315 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5317 else
5318 cat > conftest.$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 /* System header to define __stub macros and hopefully few prototypes,
5322 which can conflict with char $ac_func(); below. */
5323 #include <assert.h>
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5327 char $ac_func();
5328 char (*f)();
5330 int main() {
5332 /* The GNU C library defines this for functions which it implements
5333 to always fail with ENOSYS. Some functions are actually named
5334 something starting with __ and the normal name is an alias. */
5335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5336 choke me
5337 #else
5338 f = $ac_func;
5339 #endif
5341 ; return 0; }
5343 if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5344 rm -rf conftest*
5345 eval "ac_cv_func_$ac_func=yes"
5346 else
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5349 rm -rf conftest*
5350 eval "ac_cv_func_$ac_func=no"
5352 rm -f conftest*
5355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5358 cat >> confdefs.h <<EOF
5359 #define $ac_tr_func 1
5362 else
5363 echo "$ac_t""no" 1>&6
5365 done
5367 for ac_func in __xstat __fxstat __lxstat
5369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5370 echo "configure:5371: checking for $ac_func" >&5
5371 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5373 else
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5377 /* System header to define __stub macros and hopefully few prototypes,
5378 which can conflict with char $ac_func(); below. */
5379 #include <assert.h>
5380 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5383 char $ac_func();
5384 char (*f)();
5386 int main() {
5388 /* The GNU C library defines this for functions which it implements
5389 to always fail with ENOSYS. Some functions are actually named
5390 something starting with __ and the normal name is an alias. */
5391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5392 choke me
5393 #else
5394 f = $ac_func;
5395 #endif
5397 ; return 0; }
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 rm -rf conftest*
5401 eval "ac_cv_func_$ac_func=yes"
5402 else
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 rm -rf conftest*
5406 eval "ac_cv_func_$ac_func=no"
5408 rm -f conftest*
5411 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5414 cat >> confdefs.h <<EOF
5415 #define $ac_tr_func 1
5418 else
5419 echo "$ac_t""no" 1>&6
5421 done
5423 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5426 echo "configure:5427: checking for $ac_func" >&5
5427 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5429 else
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5433 /* System header to define __stub macros and hopefully few prototypes,
5434 which can conflict with char $ac_func(); below. */
5435 #include <assert.h>
5436 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */
5439 char $ac_func();
5440 char (*f)();
5442 int main() {
5444 /* The GNU C library defines this for functions which it implements
5445 to always fail with ENOSYS. Some functions are actually named
5446 something starting with __ and the normal name is an alias. */
5447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5448 choke me
5449 #else
5450 f = $ac_func;
5451 #endif
5453 ; return 0; }
5455 if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5456 rm -rf conftest*
5457 eval "ac_cv_func_$ac_func=yes"
5458 else
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5461 rm -rf conftest*
5462 eval "ac_cv_func_$ac_func=no"
5464 rm -f conftest*
5467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5468 echo "$ac_t""yes" 1>&6
5469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5470 cat >> confdefs.h <<EOF
5471 #define $ac_tr_func 1
5474 else
5475 echo "$ac_t""no" 1>&6
5477 done
5479 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_func" >&5
5483 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5485 else
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char $ac_func(); below. */
5491 #include <assert.h>
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5495 char $ac_func();
5496 char (*f)();
5498 int main() {
5500 /* The GNU C library defines this for functions which it implements
5501 to always fail with ENOSYS. Some functions are actually named
5502 something starting with __ and the normal name is an alias. */
5503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5504 choke me
5505 #else
5506 f = $ac_func;
5507 #endif
5509 ; return 0; }
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 rm -rf conftest*
5513 eval "ac_cv_func_$ac_func=yes"
5514 else
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5517 rm -rf conftest*
5518 eval "ac_cv_func_$ac_func=no"
5520 rm -f conftest*
5523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5524 echo "$ac_t""yes" 1>&6
5525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5526 cat >> confdefs.h <<EOF
5527 #define $ac_tr_func 1
5530 else
5531 echo "$ac_t""no" 1>&6
5533 done
5535 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5538 echo "configure:5539: checking for $ac_func" >&5
5539 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5541 else
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* System header to define __stub macros and hopefully few prototypes,
5546 which can conflict with char $ac_func(); below. */
5547 #include <assert.h>
5548 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5551 char $ac_func();
5552 char (*f)();
5554 int main() {
5556 /* The GNU C library defines this for functions which it implements
5557 to always fail with ENOSYS. Some functions are actually named
5558 something starting with __ and the normal name is an alias. */
5559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5560 choke me
5561 #else
5562 f = $ac_func;
5563 #endif
5565 ; return 0; }
5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5568 rm -rf conftest*
5569 eval "ac_cv_func_$ac_func=yes"
5570 else
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5573 rm -rf conftest*
5574 eval "ac_cv_func_$ac_func=no"
5576 rm -f conftest*
5579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5580 echo "$ac_t""yes" 1>&6
5581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5582 cat >> confdefs.h <<EOF
5583 #define $ac_tr_func 1
5586 else
5587 echo "$ac_t""no" 1>&6
5589 done
5591 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5594 echo "configure:5595: checking for $ac_func" >&5
5595 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5597 else
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 /* System header to define __stub macros and hopefully few prototypes,
5602 which can conflict with char $ac_func(); below. */
5603 #include <assert.h>
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5607 char $ac_func();
5608 char (*f)();
5610 int main() {
5612 /* The GNU C library defines this for functions which it implements
5613 to always fail with ENOSYS. Some functions are actually named
5614 something starting with __ and the normal name is an alias. */
5615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5616 choke me
5617 #else
5618 f = $ac_func;
5619 #endif
5621 ; return 0; }
5623 if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 rm -rf conftest*
5625 eval "ac_cv_func_$ac_func=yes"
5626 else
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5629 rm -rf conftest*
5630 eval "ac_cv_func_$ac_func=no"
5632 rm -f conftest*
5635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5638 cat >> confdefs.h <<EOF
5639 #define $ac_tr_func 1
5642 else
5643 echo "$ac_t""no" 1>&6
5645 done
5647 for ac_func in _write __write _fork __fork
5649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5650 echo "configure:5651: checking for $ac_func" >&5
5651 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5653 else
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 /* System header to define __stub macros and hopefully few prototypes,
5658 which can conflict with char $ac_func(); below. */
5659 #include <assert.h>
5660 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5663 char $ac_func();
5664 char (*f)();
5666 int main() {
5668 /* The GNU C library defines this for functions which it implements
5669 to always fail with ENOSYS. Some functions are actually named
5670 something starting with __ and the normal name is an alias. */
5671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5672 choke me
5673 #else
5674 f = $ac_func;
5675 #endif
5677 ; return 0; }
5679 if { (eval echo configure:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5680 rm -rf conftest*
5681 eval "ac_cv_func_$ac_func=yes"
5682 else
5683 echo "configure: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5685 rm -rf conftest*
5686 eval "ac_cv_func_$ac_func=no"
5688 rm -f conftest*
5691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5692 echo "$ac_t""yes" 1>&6
5693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5694 cat >> confdefs.h <<EOF
5695 #define $ac_tr_func 1
5698 else
5699 echo "$ac_t""no" 1>&6
5701 done
5703 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5706 echo "configure:5707: checking for $ac_func" >&5
5707 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5709 else
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char $ac_func(); below. */
5715 #include <assert.h>
5716 /* Override any gcc2 internal prototype to avoid an error. */
5717 /* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5719 char $ac_func();
5720 char (*f)();
5722 int main() {
5724 /* The GNU C library defines this for functions which it implements
5725 to always fail with ENOSYS. Some functions are actually named
5726 something starting with __ and the normal name is an alias. */
5727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728 choke me
5729 #else
5730 f = $ac_func;
5731 #endif
5733 ; return 0; }
5735 if { (eval echo configure:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 rm -rf conftest*
5737 eval "ac_cv_func_$ac_func=yes"
5738 else
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 rm -rf conftest*
5742 eval "ac_cv_func_$ac_func=no"
5744 rm -f conftest*
5747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5748 echo "$ac_t""yes" 1>&6
5749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5750 cat >> confdefs.h <<EOF
5751 #define $ac_tr_func 1
5754 else
5755 echo "$ac_t""no" 1>&6
5757 done
5759 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5762 echo "configure:5763: checking for $ac_func" >&5
5763 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5765 else
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5769 /* System header to define __stub macros and hopefully few prototypes,
5770 which can conflict with char $ac_func(); below. */
5771 #include <assert.h>
5772 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5775 char $ac_func();
5776 char (*f)();
5778 int main() {
5780 /* The GNU C library defines this for functions which it implements
5781 to always fail with ENOSYS. Some functions are actually named
5782 something starting with __ and the normal name is an alias. */
5783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5784 choke me
5785 #else
5786 f = $ac_func;
5787 #endif
5789 ; return 0; }
5791 if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5792 rm -rf conftest*
5793 eval "ac_cv_func_$ac_func=yes"
5794 else
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5797 rm -rf conftest*
5798 eval "ac_cv_func_$ac_func=no"
5800 rm -f conftest*
5803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5806 cat >> confdefs.h <<EOF
5807 #define $ac_tr_func 1
5810 else
5811 echo "$ac_t""no" 1>&6
5813 done
5815 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5818 echo "configure:5819: checking for $ac_func" >&5
5819 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5821 else
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 /* System header to define __stub macros and hopefully few prototypes,
5826 which can conflict with char $ac_func(); below. */
5827 #include <assert.h>
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char $ac_func();
5832 char (*f)();
5834 int main() {
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5840 choke me
5841 #else
5842 f = $ac_func;
5843 #endif
5845 ; return 0; }
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5848 rm -rf conftest*
5849 eval "ac_cv_func_$ac_func=yes"
5850 else
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5853 rm -rf conftest*
5854 eval "ac_cv_func_$ac_func=no"
5856 rm -f conftest*
5859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5860 echo "$ac_t""yes" 1>&6
5861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5862 cat >> confdefs.h <<EOF
5863 #define $ac_tr_func 1
5866 else
5867 echo "$ac_t""no" 1>&6
5869 done
5871 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_func" >&5
5875 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5877 else
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5883 #include <assert.h>
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5887 char $ac_func();
5888 char (*f)();
5890 int main() {
5892 /* The GNU C library defines this for functions which it implements
5893 to always fail with ENOSYS. Some functions are actually named
5894 something starting with __ and the normal name is an alias. */
5895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5896 choke me
5897 #else
5898 f = $ac_func;
5899 #endif
5901 ; return 0; }
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5904 rm -rf conftest*
5905 eval "ac_cv_func_$ac_func=yes"
5906 else
5907 echo "configure: failed program was:" >&5
5908 cat conftest.$ac_ext >&5
5909 rm -rf conftest*
5910 eval "ac_cv_func_$ac_func=no"
5912 rm -f conftest*
5915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5918 cat >> confdefs.h <<EOF
5919 #define $ac_tr_func 1
5922 else
5923 echo "$ac_t""no" 1>&6
5925 done
5927 for ac_func in open64 _open64 __open64 creat64
5929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5930 echo "configure:5931: checking for $ac_func" >&5
5931 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5933 else
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 /* System header to define __stub macros and hopefully few prototypes,
5938 which can conflict with char $ac_func(); below. */
5939 #include <assert.h>
5940 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5943 char $ac_func();
5944 char (*f)();
5946 int main() {
5948 /* The GNU C library defines this for functions which it implements
5949 to always fail with ENOSYS. Some functions are actually named
5950 something starting with __ and the normal name is an alias. */
5951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5952 choke me
5953 #else
5954 f = $ac_func;
5955 #endif
5957 ; return 0; }
5959 if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 rm -rf conftest*
5961 eval "ac_cv_func_$ac_func=yes"
5962 else
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 rm -rf conftest*
5966 eval "ac_cv_func_$ac_func=no"
5968 rm -f conftest*
5971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5974 cat >> confdefs.h <<EOF
5975 #define $ac_tr_func 1
5978 else
5979 echo "$ac_t""no" 1>&6
5981 done
5985 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5988 if test x$ac_cv_func_stat64 = xno ; then
5989 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5990 echo "configure:5991: checking for stat64 in <sys/stat.h>" >&5
5991 cat > conftest.$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5995 #if defined(HAVE_UNISTD_H)
5996 #include <unistd.h>
5997 #endif
5998 #include <sys/stat.h>
6000 int main() {
6001 struct stat64 st64; exit(stat64(".",&st64));
6002 ; return 0; }
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6005 rm -rf conftest*
6006 ac_cv_func_stat64=yes
6007 else
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6011 rm -f conftest*
6012 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6013 if test x$ac_cv_func_stat64 = xyes ; then
6014 cat >> confdefs.h <<\EOF
6015 #define HAVE_STAT64 1
6021 if test x$ac_cv_func_lstat64 = xno ; then
6022 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6023 echo "configure:6024: checking for lstat64 in <sys/stat.h>" >&5
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6028 #if defined(HAVE_UNISTD_H)
6029 #include <unistd.h>
6030 #endif
6031 #include <sys/stat.h>
6033 int main() {
6034 struct stat64 st64; exit(lstat64(".",&st64));
6035 ; return 0; }
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6038 rm -rf conftest*
6039 ac_cv_func_lstat64=yes
6040 else
6041 echo "configure: failed program was:" >&5
6042 cat conftest.$ac_ext >&5
6044 rm -f conftest*
6045 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6046 if test x$ac_cv_func_lstat64 = xyes ; then
6047 cat >> confdefs.h <<\EOF
6048 #define HAVE_LSTAT64 1
6054 if test x$ac_cv_func_fstat64 = xno ; then
6055 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6056 echo "configure:6057: checking for fstat64 in <sys/stat.h>" >&5
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6061 #if defined(HAVE_UNISTD_H)
6062 #include <unistd.h>
6063 #endif
6064 #include <sys/stat.h>
6066 int main() {
6067 struct stat64 st64; exit(fstat64(0,&st64));
6068 ; return 0; }
6070 if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6071 rm -rf conftest*
6072 ac_cv_func_fstat64=yes
6073 else
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6077 rm -f conftest*
6078 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6079 if test x$ac_cv_func_fstat64 = xyes ; then
6080 cat >> confdefs.h <<\EOF
6081 #define HAVE_FSTAT64 1
6088 # If no strcasecmp, check for it in some known places
6089 # It is in -lresolv on ReliantUNIX and UnixWare
6090 # -lresolve *must* follow -lnsl for name resolution to work properly
6093 if test x$ac_cv_func_strcasecmp = xno ; then
6094 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6095 echo "configure:6096: checking for strcasecmp in -lresolv" >&5
6096 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6098 echo $ac_n "(cached) $ac_c" 1>&6
6099 else
6100 ac_save_LIBS="$LIBS"
6101 LIBS="-lresolv $LIBS"
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6108 char strcasecmp();
6110 int main() {
6111 strcasecmp()
6112 ; return 0; }
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115 rm -rf conftest*
6116 eval "ac_cv_lib_$ac_lib_var=yes"
6117 else
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 rm -rf conftest*
6121 eval "ac_cv_lib_$ac_lib_var=no"
6123 rm -f conftest*
6124 LIBS="$ac_save_LIBS"
6127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 LIBS="$LIBS -lresolv"
6130 cat >> confdefs.h <<\EOF
6131 #define HAVE_STRCASECMP 1
6134 else
6135 echo "$ac_t""no" 1>&6
6141 # Check for the functions putprpwnam, set_auth_parameters,
6142 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6143 # Needed for OSF1 and HPUX.
6146 case "$LIBS" in
6147 *-lsecurity*) for ac_func in putprpwnam
6149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6150 echo "configure:6151: checking for $ac_func" >&5
6151 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6152 echo $ac_n "(cached) $ac_c" 1>&6
6153 else
6154 cat > conftest.$ac_ext <<EOF
6155 #line 6156 "configure"
6156 #include "confdefs.h"
6157 /* System header to define __stub macros and hopefully few prototypes,
6158 which can conflict with char $ac_func(); below. */
6159 #include <assert.h>
6160 /* Override any gcc2 internal prototype to avoid an error. */
6161 /* We use char because int might match the return type of a gcc2
6162 builtin and then its argument prototype would still apply. */
6163 char $ac_func();
6164 char (*f)();
6166 int main() {
6168 /* The GNU C library defines this for functions which it implements
6169 to always fail with ENOSYS. Some functions are actually named
6170 something starting with __ and the normal name is an alias. */
6171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6172 choke me
6173 #else
6174 f = $ac_func;
6175 #endif
6177 ; return 0; }
6179 if { (eval echo configure:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6180 rm -rf conftest*
6181 eval "ac_cv_func_$ac_func=yes"
6182 else
6183 echo "configure: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6185 rm -rf conftest*
6186 eval "ac_cv_func_$ac_func=no"
6188 rm -f conftest*
6191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6192 echo "$ac_t""yes" 1>&6
6193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6194 cat >> confdefs.h <<EOF
6195 #define $ac_tr_func 1
6198 else
6199 echo "$ac_t""no" 1>&6
6201 done
6203 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6204 echo "configure:6205: checking for putprpwnam in -lsecurity" >&5
6205 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6206 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6208 else
6209 ac_save_LIBS="$LIBS"
6210 LIBS="-lsecurity $LIBS"
6211 cat > conftest.$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.h"
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6217 char putprpwnam();
6219 int main() {
6220 putprpwnam()
6221 ; return 0; }
6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6224 rm -rf conftest*
6225 eval "ac_cv_lib_$ac_lib_var=yes"
6226 else
6227 echo "configure: failed program was:" >&5
6228 cat conftest.$ac_ext >&5
6229 rm -rf conftest*
6230 eval "ac_cv_lib_$ac_lib_var=no"
6232 rm -f conftest*
6233 LIBS="$ac_save_LIBS"
6236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6240 cat >> confdefs.h <<EOF
6241 #define $ac_tr_lib 1
6244 LIBS="-lsecurity $LIBS"
6246 else
6247 echo "$ac_t""no" 1>&6
6250 for ac_func in putprpwnam
6252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6253 echo "configure:6254: checking for $ac_func" >&5
6254 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6255 echo $ac_n "(cached) $ac_c" 1>&6
6256 else
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6260 /* System header to define __stub macros and hopefully few prototypes,
6261 which can conflict with char $ac_func(); below. */
6262 #include <assert.h>
6263 /* Override any gcc2 internal prototype to avoid an error. */
6264 /* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6266 char $ac_func();
6267 char (*f)();
6269 int main() {
6271 /* The GNU C library defines this for functions which it implements
6272 to always fail with ENOSYS. Some functions are actually named
6273 something starting with __ and the normal name is an alias. */
6274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6275 choke me
6276 #else
6277 f = $ac_func;
6278 #endif
6280 ; return 0; }
6282 if { (eval echo configure:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6283 rm -rf conftest*
6284 eval "ac_cv_func_$ac_func=yes"
6285 else
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6288 rm -rf conftest*
6289 eval "ac_cv_func_$ac_func=no"
6291 rm -f conftest*
6294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6297 cat >> confdefs.h <<EOF
6298 #define $ac_tr_func 1
6301 else
6302 echo "$ac_t""no" 1>&6
6304 done
6307 esac
6309 case "$LIBS" in
6310 *-lsec*) for ac_func in putprpwnam
6312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6313 echo "configure:6314: checking for $ac_func" >&5
6314 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6316 else
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 /* System header to define __stub macros and hopefully few prototypes,
6321 which can conflict with char $ac_func(); below. */
6322 #include <assert.h>
6323 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */
6326 char $ac_func();
6327 char (*f)();
6329 int main() {
6331 /* The GNU C library defines this for functions which it implements
6332 to always fail with ENOSYS. Some functions are actually named
6333 something starting with __ and the normal name is an alias. */
6334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6335 choke me
6336 #else
6337 f = $ac_func;
6338 #endif
6340 ; return 0; }
6342 if { (eval echo configure:6343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6343 rm -rf conftest*
6344 eval "ac_cv_func_$ac_func=yes"
6345 else
6346 echo "configure: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6348 rm -rf conftest*
6349 eval "ac_cv_func_$ac_func=no"
6351 rm -f conftest*
6354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6355 echo "$ac_t""yes" 1>&6
6356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6357 cat >> confdefs.h <<EOF
6358 #define $ac_tr_func 1
6361 else
6362 echo "$ac_t""no" 1>&6
6364 done
6366 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6367 echo "configure:6368: checking for putprpwnam in -lsec" >&5
6368 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6369 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6371 else
6372 ac_save_LIBS="$LIBS"
6373 LIBS="-lsec $LIBS"
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6377 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6380 char putprpwnam();
6382 int main() {
6383 putprpwnam()
6384 ; return 0; }
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6387 rm -rf conftest*
6388 eval "ac_cv_lib_$ac_lib_var=yes"
6389 else
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6392 rm -rf conftest*
6393 eval "ac_cv_lib_$ac_lib_var=no"
6395 rm -f conftest*
6396 LIBS="$ac_save_LIBS"
6399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6401 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6403 cat >> confdefs.h <<EOF
6404 #define $ac_tr_lib 1
6407 LIBS="-lsec $LIBS"
6409 else
6410 echo "$ac_t""no" 1>&6
6413 for ac_func in putprpwnam
6415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6416 echo "configure:6417: checking for $ac_func" >&5
6417 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6419 else
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char $ac_func(); below. */
6425 #include <assert.h>
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char $ac_func();
6430 char (*f)();
6432 int main() {
6434 /* The GNU C library defines this for functions which it implements
6435 to always fail with ENOSYS. Some functions are actually named
6436 something starting with __ and the normal name is an alias. */
6437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6438 choke me
6439 #else
6440 f = $ac_func;
6441 #endif
6443 ; return 0; }
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6446 rm -rf conftest*
6447 eval "ac_cv_func_$ac_func=yes"
6448 else
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 rm -rf conftest*
6452 eval "ac_cv_func_$ac_func=no"
6454 rm -f conftest*
6457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6458 echo "$ac_t""yes" 1>&6
6459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6460 cat >> confdefs.h <<EOF
6461 #define $ac_tr_func 1
6464 else
6465 echo "$ac_t""no" 1>&6
6467 done
6470 esac
6473 case "$LIBS" in
6474 *-lsecurity*) for ac_func in set_auth_parameters
6476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6477 echo "configure:6478: checking for $ac_func" >&5
6478 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6480 else
6481 cat > conftest.$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6484 /* System header to define __stub macros and hopefully few prototypes,
6485 which can conflict with char $ac_func(); below. */
6486 #include <assert.h>
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6490 char $ac_func();
6491 char (*f)();
6493 int main() {
6495 /* The GNU C library defines this for functions which it implements
6496 to always fail with ENOSYS. Some functions are actually named
6497 something starting with __ and the normal name is an alias. */
6498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6499 choke me
6500 #else
6501 f = $ac_func;
6502 #endif
6504 ; return 0; }
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 rm -rf conftest*
6508 eval "ac_cv_func_$ac_func=yes"
6509 else
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6512 rm -rf conftest*
6513 eval "ac_cv_func_$ac_func=no"
6515 rm -f conftest*
6518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6521 cat >> confdefs.h <<EOF
6522 #define $ac_tr_func 1
6525 else
6526 echo "$ac_t""no" 1>&6
6528 done
6530 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6531 echo "configure:6532: checking for set_auth_parameters in -lsecurity" >&5
6532 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6533 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6534 echo $ac_n "(cached) $ac_c" 1>&6
6535 else
6536 ac_save_LIBS="$LIBS"
6537 LIBS="-lsecurity $LIBS"
6538 cat > conftest.$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 /* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6544 char set_auth_parameters();
6546 int main() {
6547 set_auth_parameters()
6548 ; return 0; }
6550 if { (eval echo configure:6551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6551 rm -rf conftest*
6552 eval "ac_cv_lib_$ac_lib_var=yes"
6553 else
6554 echo "configure: failed program was:" >&5
6555 cat conftest.$ac_ext >&5
6556 rm -rf conftest*
6557 eval "ac_cv_lib_$ac_lib_var=no"
6559 rm -f conftest*
6560 LIBS="$ac_save_LIBS"
6563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6567 cat >> confdefs.h <<EOF
6568 #define $ac_tr_lib 1
6571 LIBS="-lsecurity $LIBS"
6573 else
6574 echo "$ac_t""no" 1>&6
6577 for ac_func in set_auth_parameters
6579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_func" >&5
6581 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6583 else
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588 which can conflict with char $ac_func(); below. */
6589 #include <assert.h>
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6593 char $ac_func();
6594 char (*f)();
6596 int main() {
6598 /* The GNU C library defines this for functions which it implements
6599 to always fail with ENOSYS. Some functions are actually named
6600 something starting with __ and the normal name is an alias. */
6601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6602 choke me
6603 #else
6604 f = $ac_func;
6605 #endif
6607 ; return 0; }
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610 rm -rf conftest*
6611 eval "ac_cv_func_$ac_func=yes"
6612 else
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 rm -rf conftest*
6616 eval "ac_cv_func_$ac_func=no"
6618 rm -f conftest*
6621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6624 cat >> confdefs.h <<EOF
6625 #define $ac_tr_func 1
6628 else
6629 echo "$ac_t""no" 1>&6
6631 done
6634 esac
6636 case "$LIBS" in
6637 *-lsec*) for ac_func in set_auth_parameters
6639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6640 echo "configure:6641: checking for $ac_func" >&5
6641 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6643 else
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char $ac_func(); below. */
6649 #include <assert.h>
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6653 char $ac_func();
6654 char (*f)();
6656 int main() {
6658 /* The GNU C library defines this for functions which it implements
6659 to always fail with ENOSYS. Some functions are actually named
6660 something starting with __ and the normal name is an alias. */
6661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6662 choke me
6663 #else
6664 f = $ac_func;
6665 #endif
6667 ; return 0; }
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670 rm -rf conftest*
6671 eval "ac_cv_func_$ac_func=yes"
6672 else
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 rm -rf conftest*
6676 eval "ac_cv_func_$ac_func=no"
6678 rm -f conftest*
6681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6682 echo "$ac_t""yes" 1>&6
6683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6684 cat >> confdefs.h <<EOF
6685 #define $ac_tr_func 1
6688 else
6689 echo "$ac_t""no" 1>&6
6691 done
6693 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6694 echo "configure:6695: checking for set_auth_parameters in -lsec" >&5
6695 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6698 else
6699 ac_save_LIBS="$LIBS"
6700 LIBS="-lsec $LIBS"
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6707 char set_auth_parameters();
6709 int main() {
6710 set_auth_parameters()
6711 ; return 0; }
6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6714 rm -rf conftest*
6715 eval "ac_cv_lib_$ac_lib_var=yes"
6716 else
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6719 rm -rf conftest*
6720 eval "ac_cv_lib_$ac_lib_var=no"
6722 rm -f conftest*
6723 LIBS="$ac_save_LIBS"
6726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6729 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6730 cat >> confdefs.h <<EOF
6731 #define $ac_tr_lib 1
6734 LIBS="-lsec $LIBS"
6736 else
6737 echo "$ac_t""no" 1>&6
6740 for ac_func in set_auth_parameters
6742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6743 echo "configure:6744: checking for $ac_func" >&5
6744 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6746 else
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 /* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char $ac_func(); below. */
6752 #include <assert.h>
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6756 char $ac_func();
6757 char (*f)();
6759 int main() {
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6765 choke me
6766 #else
6767 f = $ac_func;
6768 #endif
6770 ; return 0; }
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 rm -rf conftest*
6774 eval "ac_cv_func_$ac_func=yes"
6775 else
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6778 rm -rf conftest*
6779 eval "ac_cv_func_$ac_func=no"
6781 rm -f conftest*
6784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6787 cat >> confdefs.h <<EOF
6788 #define $ac_tr_func 1
6791 else
6792 echo "$ac_t""no" 1>&6
6794 done
6797 esac
6800 # UnixWare 7.x has its getspnam in -lgen
6801 case "$LIBS" in
6802 *-lgen*) for ac_func in getspnam
6804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6805 echo "configure:6806: checking for $ac_func" >&5
6806 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6808 else
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char $ac_func(); below. */
6814 #include <assert.h>
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6818 char $ac_func();
6819 char (*f)();
6821 int main() {
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 choke me
6828 #else
6829 f = $ac_func;
6830 #endif
6832 ; return 0; }
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 rm -rf conftest*
6836 eval "ac_cv_func_$ac_func=yes"
6837 else
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6840 rm -rf conftest*
6841 eval "ac_cv_func_$ac_func=no"
6843 rm -f conftest*
6846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6849 cat >> confdefs.h <<EOF
6850 #define $ac_tr_func 1
6853 else
6854 echo "$ac_t""no" 1>&6
6856 done
6858 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6859 echo "configure:6860: checking for getspnam in -lgen" >&5
6860 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6861 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6863 else
6864 ac_save_LIBS="$LIBS"
6865 LIBS="-lgen $LIBS"
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char getspnam();
6874 int main() {
6875 getspnam()
6876 ; return 0; }
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879 rm -rf conftest*
6880 eval "ac_cv_lib_$ac_lib_var=yes"
6881 else
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 rm -rf conftest*
6885 eval "ac_cv_lib_$ac_lib_var=no"
6887 rm -f conftest*
6888 LIBS="$ac_save_LIBS"
6891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6895 cat >> confdefs.h <<EOF
6896 #define $ac_tr_lib 1
6899 LIBS="-lgen $LIBS"
6901 else
6902 echo "$ac_t""no" 1>&6
6905 for ac_func in getspnam
6907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6908 echo "configure:6909: checking for $ac_func" >&5
6909 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6910 echo $ac_n "(cached) $ac_c" 1>&6
6911 else
6912 cat > conftest.$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6915 /* System header to define __stub macros and hopefully few prototypes,
6916 which can conflict with char $ac_func(); below. */
6917 #include <assert.h>
6918 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6921 char $ac_func();
6922 char (*f)();
6924 int main() {
6926 /* The GNU C library defines this for functions which it implements
6927 to always fail with ENOSYS. Some functions are actually named
6928 something starting with __ and the normal name is an alias. */
6929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6930 choke me
6931 #else
6932 f = $ac_func;
6933 #endif
6935 ; return 0; }
6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6938 rm -rf conftest*
6939 eval "ac_cv_func_$ac_func=yes"
6940 else
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6943 rm -rf conftest*
6944 eval "ac_cv_func_$ac_func=no"
6946 rm -f conftest*
6949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6950 echo "$ac_t""yes" 1>&6
6951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6952 cat >> confdefs.h <<EOF
6953 #define $ac_tr_func 1
6956 else
6957 echo "$ac_t""no" 1>&6
6959 done
6962 esac
6965 case "$LIBS" in
6966 *-lsecurity*) for ac_func in getspnam
6968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6969 echo "configure:6970: checking for $ac_func" >&5
6970 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6972 else
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 /* System header to define __stub macros and hopefully few prototypes,
6977 which can conflict with char $ac_func(); below. */
6978 #include <assert.h>
6979 /* Override any gcc2 internal prototype to avoid an error. */
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6982 char $ac_func();
6983 char (*f)();
6985 int main() {
6987 /* The GNU C library defines this for functions which it implements
6988 to always fail with ENOSYS. Some functions are actually named
6989 something starting with __ and the normal name is an alias. */
6990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6991 choke me
6992 #else
6993 f = $ac_func;
6994 #endif
6996 ; return 0; }
6998 if { (eval echo configure:6999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6999 rm -rf conftest*
7000 eval "ac_cv_func_$ac_func=yes"
7001 else
7002 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 rm -rf conftest*
7005 eval "ac_cv_func_$ac_func=no"
7007 rm -f conftest*
7010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7011 echo "$ac_t""yes" 1>&6
7012 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7013 cat >> confdefs.h <<EOF
7014 #define $ac_tr_func 1
7017 else
7018 echo "$ac_t""no" 1>&6
7020 done
7022 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7023 echo "configure:7024: checking for getspnam in -lsecurity" >&5
7024 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7027 else
7028 ac_save_LIBS="$LIBS"
7029 LIBS="-lsecurity $LIBS"
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char getspnam();
7038 int main() {
7039 getspnam()
7040 ; return 0; }
7042 if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7043 rm -rf conftest*
7044 eval "ac_cv_lib_$ac_lib_var=yes"
7045 else
7046 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7048 rm -rf conftest*
7049 eval "ac_cv_lib_$ac_lib_var=no"
7051 rm -f conftest*
7052 LIBS="$ac_save_LIBS"
7055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7056 echo "$ac_t""yes" 1>&6
7057 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7059 cat >> confdefs.h <<EOF
7060 #define $ac_tr_lib 1
7063 LIBS="-lsecurity $LIBS"
7065 else
7066 echo "$ac_t""no" 1>&6
7069 for ac_func in getspnam
7071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_func" >&5
7073 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7075 else
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func(); below. */
7081 #include <assert.h>
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7085 char $ac_func();
7086 char (*f)();
7088 int main() {
7090 /* The GNU C library defines this for functions which it implements
7091 to always fail with ENOSYS. Some functions are actually named
7092 something starting with __ and the normal name is an alias. */
7093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7094 choke me
7095 #else
7096 f = $ac_func;
7097 #endif
7099 ; return 0; }
7101 if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7102 rm -rf conftest*
7103 eval "ac_cv_func_$ac_func=yes"
7104 else
7105 echo "configure: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 rm -rf conftest*
7108 eval "ac_cv_func_$ac_func=no"
7110 rm -f conftest*
7113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7114 echo "$ac_t""yes" 1>&6
7115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7116 cat >> confdefs.h <<EOF
7117 #define $ac_tr_func 1
7120 else
7121 echo "$ac_t""no" 1>&6
7123 done
7126 esac
7128 case "$LIBS" in
7129 *-lsec*) for ac_func in getspnam
7131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7132 echo "configure:7133: checking for $ac_func" >&5
7133 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7134 echo $ac_n "(cached) $ac_c" 1>&6
7135 else
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char $ac_func(); below. */
7141 #include <assert.h>
7142 /* Override any gcc2 internal prototype to avoid an error. */
7143 /* We use char because int might match the return type of a gcc2
7144 builtin and then its argument prototype would still apply. */
7145 char $ac_func();
7146 char (*f)();
7148 int main() {
7150 /* The GNU C library defines this for functions which it implements
7151 to always fail with ENOSYS. Some functions are actually named
7152 something starting with __ and the normal name is an alias. */
7153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7154 choke me
7155 #else
7156 f = $ac_func;
7157 #endif
7159 ; return 0; }
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 rm -rf conftest*
7163 eval "ac_cv_func_$ac_func=yes"
7164 else
7165 echo "configure: failed program was:" >&5
7166 cat conftest.$ac_ext >&5
7167 rm -rf conftest*
7168 eval "ac_cv_func_$ac_func=no"
7170 rm -f conftest*
7173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7174 echo "$ac_t""yes" 1>&6
7175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7176 cat >> confdefs.h <<EOF
7177 #define $ac_tr_func 1
7180 else
7181 echo "$ac_t""no" 1>&6
7183 done
7185 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7186 echo "configure:7187: checking for getspnam in -lsec" >&5
7187 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7188 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7190 else
7191 ac_save_LIBS="$LIBS"
7192 LIBS="-lsec $LIBS"
7193 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7196 /* Override any gcc2 internal prototype to avoid an error. */
7197 /* We use char because int might match the return type of a gcc2
7198 builtin and then its argument prototype would still apply. */
7199 char getspnam();
7201 int main() {
7202 getspnam()
7203 ; return 0; }
7205 if { (eval echo configure:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 rm -rf conftest*
7207 eval "ac_cv_lib_$ac_lib_var=yes"
7208 else
7209 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7211 rm -rf conftest*
7212 eval "ac_cv_lib_$ac_lib_var=no"
7214 rm -f conftest*
7215 LIBS="$ac_save_LIBS"
7218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7219 echo "$ac_t""yes" 1>&6
7220 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7221 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7222 cat >> confdefs.h <<EOF
7223 #define $ac_tr_lib 1
7226 LIBS="-lsec $LIBS"
7228 else
7229 echo "$ac_t""no" 1>&6
7232 for ac_func in getspnam
7234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7235 echo "configure:7236: checking for $ac_func" >&5
7236 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7237 echo $ac_n "(cached) $ac_c" 1>&6
7238 else
7239 cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7242 /* System header to define __stub macros and hopefully few prototypes,
7243 which can conflict with char $ac_func(); below. */
7244 #include <assert.h>
7245 /* Override any gcc2 internal prototype to avoid an error. */
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7248 char $ac_func();
7249 char (*f)();
7251 int main() {
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7257 choke me
7258 #else
7259 f = $ac_func;
7260 #endif
7262 ; return 0; }
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 rm -rf conftest*
7266 eval "ac_cv_func_$ac_func=yes"
7267 else
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 rm -rf conftest*
7271 eval "ac_cv_func_$ac_func=no"
7273 rm -f conftest*
7276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7279 cat >> confdefs.h <<EOF
7280 #define $ac_tr_func 1
7283 else
7284 echo "$ac_t""no" 1>&6
7286 done
7289 esac
7292 case "$LIBS" in
7293 *-lsecurity*) for ac_func in bigcrypt
7295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7296 echo "configure:7297: checking for $ac_func" >&5
7297 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7299 else
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7303 /* System header to define __stub macros and hopefully few prototypes,
7304 which can conflict with char $ac_func(); below. */
7305 #include <assert.h>
7306 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7309 char $ac_func();
7310 char (*f)();
7312 int main() {
7314 /* The GNU C library defines this for functions which it implements
7315 to always fail with ENOSYS. Some functions are actually named
7316 something starting with __ and the normal name is an alias. */
7317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7318 choke me
7319 #else
7320 f = $ac_func;
7321 #endif
7323 ; return 0; }
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7326 rm -rf conftest*
7327 eval "ac_cv_func_$ac_func=yes"
7328 else
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7331 rm -rf conftest*
7332 eval "ac_cv_func_$ac_func=no"
7334 rm -f conftest*
7337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7338 echo "$ac_t""yes" 1>&6
7339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7340 cat >> confdefs.h <<EOF
7341 #define $ac_tr_func 1
7344 else
7345 echo "$ac_t""no" 1>&6
7347 done
7349 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7350 echo "configure:7351: checking for bigcrypt in -lsecurity" >&5
7351 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7354 else
7355 ac_save_LIBS="$LIBS"
7356 LIBS="-lsecurity $LIBS"
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* Override any gcc2 internal prototype to avoid an error. */
7361 /* We use char because int might match the return type of a gcc2
7362 builtin and then its argument prototype would still apply. */
7363 char bigcrypt();
7365 int main() {
7366 bigcrypt()
7367 ; return 0; }
7369 if { (eval echo configure:7370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7370 rm -rf conftest*
7371 eval "ac_cv_lib_$ac_lib_var=yes"
7372 else
7373 echo "configure: failed program was:" >&5
7374 cat conftest.$ac_ext >&5
7375 rm -rf conftest*
7376 eval "ac_cv_lib_$ac_lib_var=no"
7378 rm -f conftest*
7379 LIBS="$ac_save_LIBS"
7382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7383 echo "$ac_t""yes" 1>&6
7384 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7385 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7386 cat >> confdefs.h <<EOF
7387 #define $ac_tr_lib 1
7390 LIBS="-lsecurity $LIBS"
7392 else
7393 echo "$ac_t""no" 1>&6
7396 for ac_func in bigcrypt
7398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7399 echo "configure:7400: checking for $ac_func" >&5
7400 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7402 else
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char $ac_func(); below. */
7408 #include <assert.h>
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7412 char $ac_func();
7413 char (*f)();
7415 int main() {
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7421 choke me
7422 #else
7423 f = $ac_func;
7424 #endif
7426 ; return 0; }
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7429 rm -rf conftest*
7430 eval "ac_cv_func_$ac_func=yes"
7431 else
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 rm -rf conftest*
7435 eval "ac_cv_func_$ac_func=no"
7437 rm -f conftest*
7440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7443 cat >> confdefs.h <<EOF
7444 #define $ac_tr_func 1
7447 else
7448 echo "$ac_t""no" 1>&6
7450 done
7453 esac
7455 case "$LIBS" in
7456 *-lsec*) for ac_func in bigcrypt
7458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7459 echo "configure:7460: checking for $ac_func" >&5
7460 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7462 else
7463 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7466 /* System header to define __stub macros and hopefully few prototypes,
7467 which can conflict with char $ac_func(); below. */
7468 #include <assert.h>
7469 /* Override any gcc2 internal prototype to avoid an error. */
7470 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */
7472 char $ac_func();
7473 char (*f)();
7475 int main() {
7477 /* The GNU C library defines this for functions which it implements
7478 to always fail with ENOSYS. Some functions are actually named
7479 something starting with __ and the normal name is an alias. */
7480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7481 choke me
7482 #else
7483 f = $ac_func;
7484 #endif
7486 ; return 0; }
7488 if { (eval echo configure:7489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7489 rm -rf conftest*
7490 eval "ac_cv_func_$ac_func=yes"
7491 else
7492 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7494 rm -rf conftest*
7495 eval "ac_cv_func_$ac_func=no"
7497 rm -f conftest*
7500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7501 echo "$ac_t""yes" 1>&6
7502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7503 cat >> confdefs.h <<EOF
7504 #define $ac_tr_func 1
7507 else
7508 echo "$ac_t""no" 1>&6
7510 done
7512 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7513 echo "configure:7514: checking for bigcrypt in -lsec" >&5
7514 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7515 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7517 else
7518 ac_save_LIBS="$LIBS"
7519 LIBS="-lsec $LIBS"
7520 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure"
7522 #include "confdefs.h"
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7526 char bigcrypt();
7528 int main() {
7529 bigcrypt()
7530 ; return 0; }
7532 if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7533 rm -rf conftest*
7534 eval "ac_cv_lib_$ac_lib_var=yes"
7535 else
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7538 rm -rf conftest*
7539 eval "ac_cv_lib_$ac_lib_var=no"
7541 rm -f conftest*
7542 LIBS="$ac_save_LIBS"
7545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7549 cat >> confdefs.h <<EOF
7550 #define $ac_tr_lib 1
7553 LIBS="-lsec $LIBS"
7555 else
7556 echo "$ac_t""no" 1>&6
7559 for ac_func in bigcrypt
7561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_func" >&5
7563 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7565 else
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char $ac_func(); below. */
7571 #include <assert.h>
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7575 char $ac_func();
7576 char (*f)();
7578 int main() {
7580 /* The GNU C library defines this for functions which it implements
7581 to always fail with ENOSYS. Some functions are actually named
7582 something starting with __ and the normal name is an alias. */
7583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7584 choke me
7585 #else
7586 f = $ac_func;
7587 #endif
7589 ; return 0; }
7591 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7592 rm -rf conftest*
7593 eval "ac_cv_func_$ac_func=yes"
7594 else
7595 echo "configure: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7597 rm -rf conftest*
7598 eval "ac_cv_func_$ac_func=no"
7600 rm -f conftest*
7603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7604 echo "$ac_t""yes" 1>&6
7605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7606 cat >> confdefs.h <<EOF
7607 #define $ac_tr_func 1
7610 else
7611 echo "$ac_t""no" 1>&6
7613 done
7616 esac
7619 case "$LIBS" in
7620 *-lsecurity*) for ac_func in getprpwnam
7622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7623 echo "configure:7624: checking for $ac_func" >&5
7624 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7626 else
7627 cat > conftest.$ac_ext <<EOF
7628 #line 7629 "configure"
7629 #include "confdefs.h"
7630 /* System header to define __stub macros and hopefully few prototypes,
7631 which can conflict with char $ac_func(); below. */
7632 #include <assert.h>
7633 /* Override any gcc2 internal prototype to avoid an error. */
7634 /* We use char because int might match the return type of a gcc2
7635 builtin and then its argument prototype would still apply. */
7636 char $ac_func();
7637 char (*f)();
7639 int main() {
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7645 choke me
7646 #else
7647 f = $ac_func;
7648 #endif
7650 ; return 0; }
7652 if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7653 rm -rf conftest*
7654 eval "ac_cv_func_$ac_func=yes"
7655 else
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7658 rm -rf conftest*
7659 eval "ac_cv_func_$ac_func=no"
7661 rm -f conftest*
7664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7665 echo "$ac_t""yes" 1>&6
7666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7667 cat >> confdefs.h <<EOF
7668 #define $ac_tr_func 1
7671 else
7672 echo "$ac_t""no" 1>&6
7674 done
7676 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7677 echo "configure:7678: checking for getprpwnam in -lsecurity" >&5
7678 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7679 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7681 else
7682 ac_save_LIBS="$LIBS"
7683 LIBS="-lsecurity $LIBS"
7684 cat > conftest.$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7687 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7690 char getprpwnam();
7692 int main() {
7693 getprpwnam()
7694 ; return 0; }
7696 if { (eval echo configure:7697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7697 rm -rf conftest*
7698 eval "ac_cv_lib_$ac_lib_var=yes"
7699 else
7700 echo "configure: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7702 rm -rf conftest*
7703 eval "ac_cv_lib_$ac_lib_var=no"
7705 rm -f conftest*
7706 LIBS="$ac_save_LIBS"
7709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7710 echo "$ac_t""yes" 1>&6
7711 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7712 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7713 cat >> confdefs.h <<EOF
7714 #define $ac_tr_lib 1
7717 LIBS="-lsecurity $LIBS"
7719 else
7720 echo "$ac_t""no" 1>&6
7723 for ac_func in getprpwnam
7725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7726 echo "configure:7727: checking for $ac_func" >&5
7727 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7730 cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 /* System header to define __stub macros and hopefully few prototypes,
7734 which can conflict with char $ac_func(); below. */
7735 #include <assert.h>
7736 /* Override any gcc2 internal prototype to avoid an error. */
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7739 char $ac_func();
7740 char (*f)();
7742 int main() {
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7748 choke me
7749 #else
7750 f = $ac_func;
7751 #endif
7753 ; return 0; }
7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7756 rm -rf conftest*
7757 eval "ac_cv_func_$ac_func=yes"
7758 else
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 rm -rf conftest*
7762 eval "ac_cv_func_$ac_func=no"
7764 rm -f conftest*
7767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7768 echo "$ac_t""yes" 1>&6
7769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7770 cat >> confdefs.h <<EOF
7771 #define $ac_tr_func 1
7774 else
7775 echo "$ac_t""no" 1>&6
7777 done
7780 esac
7782 case "$LIBS" in
7783 *-lsec*) for ac_func in getprpwnam
7785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7786 echo "configure:7787: checking for $ac_func" >&5
7787 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7789 else
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 /* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char $ac_func(); below. */
7795 #include <assert.h>
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799 char $ac_func();
7800 char (*f)();
7802 int main() {
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7808 choke me
7809 #else
7810 f = $ac_func;
7811 #endif
7813 ; return 0; }
7815 if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7816 rm -rf conftest*
7817 eval "ac_cv_func_$ac_func=yes"
7818 else
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7821 rm -rf conftest*
7822 eval "ac_cv_func_$ac_func=no"
7824 rm -f conftest*
7827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7830 cat >> confdefs.h <<EOF
7831 #define $ac_tr_func 1
7834 else
7835 echo "$ac_t""no" 1>&6
7837 done
7839 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7840 echo "configure:7841: checking for getprpwnam in -lsec" >&5
7841 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7842 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7844 else
7845 ac_save_LIBS="$LIBS"
7846 LIBS="-lsec $LIBS"
7847 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure"
7849 #include "confdefs.h"
7850 /* Override any gcc2 internal prototype to avoid an error. */
7851 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */
7853 char getprpwnam();
7855 int main() {
7856 getprpwnam()
7857 ; return 0; }
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7860 rm -rf conftest*
7861 eval "ac_cv_lib_$ac_lib_var=yes"
7862 else
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7865 rm -rf conftest*
7866 eval "ac_cv_lib_$ac_lib_var=no"
7868 rm -f conftest*
7869 LIBS="$ac_save_LIBS"
7872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7875 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7876 cat >> confdefs.h <<EOF
7877 #define $ac_tr_lib 1
7880 LIBS="-lsec $LIBS"
7882 else
7883 echo "$ac_t""no" 1>&6
7886 for ac_func in getprpwnam
7888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7889 echo "configure:7890: checking for $ac_func" >&5
7890 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7891 echo $ac_n "(cached) $ac_c" 1>&6
7892 else
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 /* System header to define __stub macros and hopefully few prototypes,
7897 which can conflict with char $ac_func(); below. */
7898 #include <assert.h>
7899 /* Override any gcc2 internal prototype to avoid an error. */
7900 /* We use char because int might match the return type of a gcc2
7901 builtin and then its argument prototype would still apply. */
7902 char $ac_func();
7903 char (*f)();
7905 int main() {
7907 /* The GNU C library defines this for functions which it implements
7908 to always fail with ENOSYS. Some functions are actually named
7909 something starting with __ and the normal name is an alias. */
7910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7911 choke me
7912 #else
7913 f = $ac_func;
7914 #endif
7916 ; return 0; }
7918 if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7919 rm -rf conftest*
7920 eval "ac_cv_func_$ac_func=yes"
7921 else
7922 echo "configure: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7924 rm -rf conftest*
7925 eval "ac_cv_func_$ac_func=no"
7927 rm -f conftest*
7930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7931 echo "$ac_t""yes" 1>&6
7932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7933 cat >> confdefs.h <<EOF
7934 #define $ac_tr_func 1
7937 else
7938 echo "$ac_t""no" 1>&6
7940 done
7943 esac
7946 # this bit needs to be modified for each OS that is suported by
7947 # smbwrapper. You need to specify how to created a shared library and
7948 # how to compile C code to produce PIC object files
7950 # these are the defaults, good for lots of systems
7951 HOST_OS="$host_os"
7952 LDSHFLAGS="-shared"
7953 PICFLAG=""
7954 SHLIBEXT="so"
7956 # and these are for particular systems
7957 case "$host_os" in
7958 *linux*) cat >> confdefs.h <<\EOF
7959 #define LINUX 1
7962 *solaris*) cat >> confdefs.h <<\EOF
7963 #define SUNOS5 1
7966 LDSHFLAGS="-G"
7968 *sunos*) cat >> confdefs.h <<\EOF
7969 #define SUNOS4 1
7972 LDSHFLAGS=""
7974 *bsd*) LDSHFLAGS="-shared -Bshareable"
7976 *irix*) cat >> confdefs.h <<\EOF
7977 #define IRIX 1
7980 case "$host_os" in
7981 *irix6*) cat >> confdefs.h <<\EOF
7982 #define IRIX6 1
7986 esac
7987 ATTEMPT_WRAP32_BUILD=yes
7989 *aix*) cat >> confdefs.h <<\EOF
7990 #define AIX 1
7993 *hpux*) cat >> confdefs.h <<\EOF
7994 #define HPUX 1
7997 SHLIBEXT="sl"
7998 # Use special PIC flags for the native HP-UX compiler.
7999 if test $ac_cv_prog_cc_Ae = yes; then
8000 LDSHFLAGS="-b"
8001 PICFLAG="+z"
8004 *qnx*) cat >> confdefs.h <<\EOF
8005 #define QNX 1
8008 *osf*) cat >> confdefs.h <<\EOF
8009 #define OSF1 1
8012 *sco*) cat >> confdefs.h <<\EOF
8013 #define SCO 1
8016 *next2*) cat >> confdefs.h <<\EOF
8017 #define NEXT2 1
8020 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8021 set dummy groff; ac_word=$2
8022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8023 echo "configure:8024: checking for $ac_word" >&5
8024 if eval "test \"\${ac_cv_prog_ROFF+set}\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8026 else
8027 if test -n "$ROFF"; then
8028 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8029 else
8030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8031 ac_dummy="$PATH"
8032 for ac_dir in $ac_dummy; do
8033 test -z "$ac_dir" && ac_dir=.
8034 if test -f $ac_dir/$ac_word; then
8035 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8036 break
8038 done
8039 IFS="$ac_save_ifs"
8042 ROFF="$ac_cv_prog_ROFF"
8043 if test -n "$ROFF"; then
8044 echo "$ac_t""$ROFF" 1>&6
8045 else
8046 echo "$ac_t""no" 1>&6
8049 *sysv4*)
8050 case "$host" in
8051 *-univel-*) if test "$GCC" != yes ; then
8052 cat >> confdefs.h <<\EOF
8053 #define HAVE_MEMSET 1
8057 LDSHFLAGS="-G"
8059 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8060 #define RELIANTUNIX 1
8063 esac
8065 *sysv5*)
8066 if test "$GCC" != yes ; then
8067 cat >> confdefs.h <<\EOF
8068 #define HAVE_MEMSET 1
8072 LDSHFLAGS="-G"
8074 esac
8076 # try to work out how to produce pic code with this compiler
8077 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8078 echo "configure:8079: checking whether ${CC-cc} accepts -fpic" >&5
8079 if eval "test \"\${ac_cv_prog_cc_fpic+set}\" = set"; then
8080 echo $ac_n "(cached) $ac_c" 1>&6
8081 else
8082 echo 'void f(){}' > conftest.c
8083 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8084 ac_cv_prog_cc_fpic=yes
8085 else
8086 ac_cv_prog_cc_fpic=no
8088 rm -f conftest*
8092 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8093 if test $ac_cv_prog_cc_fpic = yes; then
8094 PICFLAG="-fpic";
8096 if test x$PICFLAG = x; then
8097 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8098 echo "configure:8099: checking whether ${CC-cc} accepts -Kpic" >&5
8099 if eval "test \"\${ac_cv_prog_cc_Kpic+set}\" = set"; then
8100 echo $ac_n "(cached) $ac_c" 1>&6
8101 else
8102 echo 'void f(){}' > conftest.c
8103 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8104 ac_cv_prog_cc_Kpic=yes
8105 else
8106 ac_cv_prog_cc_Kpic=no
8108 rm -f conftest*
8112 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8113 if test $ac_cv_prog_cc_Kpic = yes; then
8114 PICFLAG="-Kpic";
8117 if test x$PICFLAG = x; then
8118 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8119 echo "configure:8120: checking whether ${CC-cc} accepts -KPIC" >&5
8120 if eval "test \"\${ac_cv_prog_cc_KPIC+set}\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8122 else
8123 echo 'void f(){}' > conftest.c
8124 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8125 ac_cv_prog_cc_KPIC=yes
8126 else
8127 ac_cv_prog_cc_KPIC=no
8129 rm -f conftest*
8133 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8134 if test $ac_cv_prog_cc_KPIC = yes; then
8135 PICFLAG="-KPIC";
8139 ################
8141 echo $ac_n "checking for long long""... $ac_c" 1>&6
8142 echo "configure:8143: checking for long long" >&5
8143 if eval "test \"\${samba_cv_have_longlong+set}\" = set"; then
8144 echo $ac_n "(cached) $ac_c" 1>&6
8145 else
8147 if test "$cross_compiling" = yes; then
8148 samba_cv_have_longlong=cross
8149 else
8150 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8153 #include <stdio.h>
8154 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8156 if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8157 then
8158 samba_cv_have_longlong=yes
8159 else
8160 echo "configure: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8162 rm -fr conftest*
8163 samba_cv_have_longlong=no
8165 rm -fr conftest*
8170 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8171 if test x"$samba_cv_have_longlong" = x"yes"; then
8172 cat >> confdefs.h <<\EOF
8173 #define HAVE_LONGLONG 1
8178 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8179 echo "configure:8180: checking for 64 bit off_t" >&5
8180 if eval "test \"\${samba_cv_SIZEOF_OFF_T+set}\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8182 else
8184 if test "$cross_compiling" = yes; then
8185 samba_cv_SIZEOF_OFF_T=cross
8186 else
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8190 #include <stdio.h>
8191 #include <sys/stat.h>
8192 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8194 if { (eval echo configure:8195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8195 then
8196 samba_cv_SIZEOF_OFF_T=yes
8197 else
8198 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8200 rm -fr conftest*
8201 samba_cv_SIZEOF_OFF_T=no
8203 rm -fr conftest*
8208 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8209 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8210 cat >> confdefs.h <<\EOF
8211 #define SIZEOF_OFF_T 8
8216 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8217 echo "configure:8218: checking for off64_t" >&5
8218 if eval "test \"\${samba_cv_HAVE_OFF64_T+set}\" = set"; then
8219 echo $ac_n "(cached) $ac_c" 1>&6
8220 else
8222 if test "$cross_compiling" = yes; then
8223 samba_cv_HAVE_OFF64_T=cross
8224 else
8225 cat > conftest.$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8229 #if defined(HAVE_UNISTD_H)
8230 #include <unistd.h>
8231 #endif
8232 #include <stdio.h>
8233 #include <sys/stat.h>
8234 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8237 then
8238 samba_cv_HAVE_OFF64_T=yes
8239 else
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8242 rm -fr conftest*
8243 samba_cv_HAVE_OFF64_T=no
8245 rm -fr conftest*
8250 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8251 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8252 cat >> confdefs.h <<\EOF
8253 #define HAVE_OFF64_T 1
8258 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8259 echo "configure:8260: checking for 64 bit ino_t" >&5
8260 if eval "test \"\${samba_cv_SIZEOF_INO_T+set}\" = set"; then
8261 echo $ac_n "(cached) $ac_c" 1>&6
8262 else
8264 if test "$cross_compiling" = yes; then
8265 samba_cv_SIZEOF_INO_T=cross
8266 else
8267 cat > conftest.$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8270 #include <stdio.h>
8271 #include <sys/stat.h>
8272 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8274 if { (eval echo configure:8275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8275 then
8276 samba_cv_SIZEOF_INO_T=yes
8277 else
8278 echo "configure: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8280 rm -fr conftest*
8281 samba_cv_SIZEOF_INO_T=no
8283 rm -fr conftest*
8288 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8289 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8290 cat >> confdefs.h <<\EOF
8291 #define SIZEOF_INO_T 8
8296 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8297 echo "configure:8298: checking for ino64_t" >&5
8298 if eval "test \"\${samba_cv_HAVE_INO64_T+set}\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8300 else
8302 if test "$cross_compiling" = yes; then
8303 samba_cv_HAVE_INO64_T=cross
8304 else
8305 cat > conftest.$ac_ext <<EOF
8306 #line 8307 "configure"
8307 #include "confdefs.h"
8309 #if defined(HAVE_UNISTD_H)
8310 #include <unistd.h>
8311 #endif
8312 #include <stdio.h>
8313 #include <sys/stat.h>
8314 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8316 if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8317 then
8318 samba_cv_HAVE_INO64_T=yes
8319 else
8320 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8322 rm -fr conftest*
8323 samba_cv_HAVE_INO64_T=no
8325 rm -fr conftest*
8330 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8331 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8332 cat >> confdefs.h <<\EOF
8333 #define HAVE_INO64_T 1
8338 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8339 echo "configure:8340: checking for struct dirent64" >&5
8340 if eval "test \"\${samba_cv_HAVE_STRUCT_DIRENT64+set}\" = set"; then
8341 echo $ac_n "(cached) $ac_c" 1>&6
8342 else
8344 cat > conftest.$ac_ext <<EOF
8345 #line 8346 "configure"
8346 #include "confdefs.h"
8348 #if defined(HAVE_UNISTD_H)
8349 #include <unistd.h>
8350 #endif
8351 #include <sys/types.h>
8352 #include <dirent.h>
8353 int main() {
8354 struct dirent64 de;
8355 ; return 0; }
8357 if { (eval echo configure:8358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8358 rm -rf conftest*
8359 samba_cv_HAVE_STRUCT_DIRENT64=yes
8360 else
8361 echo "configure: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 rm -rf conftest*
8364 samba_cv_HAVE_STRUCT_DIRENT64=no
8366 rm -f conftest*
8369 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8370 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8371 cat >> confdefs.h <<\EOF
8372 #define HAVE_STRUCT_DIRENT64 1
8377 echo $ac_n "checking for union semun""... $ac_c" 1>&6
8378 echo "configure:8379: checking for union semun" >&5
8379 if eval "test \"\${samba_cv_HAVE_UNION_SEMUN+set}\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8381 else
8383 if test "$cross_compiling" = yes; then
8384 samba_cv_HAVE_UNION_SEMUN=cross
8385 else
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8390 #include <sys/types.h>
8391 #include <sys/ipc.h>
8392 #include <sys/sem.h>
8393 main() { union semun ss; exit(0); }
8395 if { (eval echo configure:8396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8396 then
8397 samba_cv_HAVE_UNION_SEMUN=yes
8398 else
8399 echo "configure: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8401 rm -fr conftest*
8402 samba_cv_HAVE_UNION_SEMUN=no
8404 rm -fr conftest*
8409 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
8410 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
8411 cat >> confdefs.h <<\EOF
8412 #define HAVE_UNION_SEMUN 1
8417 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8418 echo "configure:8419: checking for unsigned char" >&5
8419 if eval "test \"\${samba_cv_HAVE_UNSIGNED_CHAR+set}\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
8421 else
8423 if test "$cross_compiling" = yes; then
8424 samba_cv_HAVE_UNSIGNED_CHAR=cross
8425 else
8426 cat > conftest.$ac_ext <<EOF
8427 #line 8428 "configure"
8428 #include "confdefs.h"
8429 #include <stdio.h>
8430 main() { char c; c=250; exit((c > 0)?0:1); }
8432 if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8433 then
8434 samba_cv_HAVE_UNSIGNED_CHAR=yes
8435 else
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8438 rm -fr conftest*
8439 samba_cv_HAVE_UNSIGNED_CHAR=no
8441 rm -fr conftest*
8446 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8447 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8448 cat >> confdefs.h <<\EOF
8449 #define HAVE_UNSIGNED_CHAR 1
8454 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8455 echo "configure:8456: checking for sin_len in sock" >&5
8456 if eval "test \"\${samba_cv_HAVE_SOCK_SIN_LEN+set}\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8458 else
8460 cat > conftest.$ac_ext <<EOF
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463 #include <sys/types.h>
8464 #include <sys/socket.h>
8465 #include <netinet/in.h>
8466 int main() {
8467 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8468 ; return 0; }
8470 if { (eval echo configure:8471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8471 rm -rf conftest*
8472 samba_cv_HAVE_SOCK_SIN_LEN=yes
8473 else
8474 echo "configure: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8476 rm -rf conftest*
8477 samba_cv_HAVE_SOCK_SIN_LEN=no
8479 rm -f conftest*
8482 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8483 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8484 cat >> confdefs.h <<\EOF
8485 #define HAVE_SOCK_SIN_LEN 1
8490 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8491 echo "configure:8492: checking whether seekdir returns void" >&5
8492 if eval "test \"\${samba_cv_SEEKDIR_RETURNS_VOID+set}\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8494 else
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 #include <sys/types.h>
8500 #include <dirent.h>
8501 void seekdir(DIR *d, long loc) { return; }
8502 int main() {
8503 return 0;
8504 ; return 0; }
8506 if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8507 rm -rf conftest*
8508 samba_cv_SEEKDIR_RETURNS_VOID=yes
8509 else
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8512 rm -rf conftest*
8513 samba_cv_SEEKDIR_RETURNS_VOID=no
8515 rm -f conftest*
8518 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8519 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8520 cat >> confdefs.h <<\EOF
8521 #define SEEKDIR_RETURNS_VOID 1
8526 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8527 echo "configure:8528: checking for __FILE__ macro" >&5
8528 if eval "test \"\${samba_cv_HAVE_FILE_MACRO+set}\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8530 else
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 #include <stdio.h>
8536 int main() {
8537 printf("%s\n", __FILE__);
8538 ; return 0; }
8540 if { (eval echo configure:8541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8541 rm -rf conftest*
8542 samba_cv_HAVE_FILE_MACRO=yes
8543 else
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8546 rm -rf conftest*
8547 samba_cv_HAVE_FILE_MACRO=no
8549 rm -f conftest*
8552 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8553 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8554 cat >> confdefs.h <<\EOF
8555 #define HAVE_FILE_MACRO 1
8560 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8561 echo "configure:8562: checking for __FUNCTION__ macro" >&5
8562 if eval "test \"\${samba_cv_HAVE_FUNCTION_MACRO+set}\" = set"; then
8563 echo $ac_n "(cached) $ac_c" 1>&6
8564 else
8566 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8569 #include <stdio.h>
8570 int main() {
8571 printf("%s\n", __FUNCTION__);
8572 ; return 0; }
8574 if { (eval echo configure:8575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8575 rm -rf conftest*
8576 samba_cv_HAVE_FUNCTION_MACRO=yes
8577 else
8578 echo "configure: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8580 rm -rf conftest*
8581 samba_cv_HAVE_FUNCTION_MACRO=no
8583 rm -f conftest*
8586 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8587 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8588 cat >> confdefs.h <<\EOF
8589 #define HAVE_FUNCTION_MACRO 1
8594 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8595 echo "configure:8596: checking if gettimeofday takes tz argument" >&5
8596 if eval "test \"\${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8598 else
8600 if test "$cross_compiling" = yes; then
8601 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8602 else
8603 cat > conftest.$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8607 #include <sys/time.h>
8608 #include <unistd.h>
8609 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8611 if { (eval echo configure:8612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8612 then
8613 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8614 else
8615 echo "configure: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8617 rm -fr conftest*
8618 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8620 rm -fr conftest*
8625 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8626 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8627 cat >> confdefs.h <<\EOF
8628 #define HAVE_GETTIMEOFDAY_TZ 1
8634 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8635 echo "configure:8636: checking for broken readdir" >&5
8636 if eval "test \"\${samba_cv_HAVE_BROKEN_READDIR+set}\" = set"; then
8637 echo $ac_n "(cached) $ac_c" 1>&6
8638 else
8640 if test "$cross_compiling" = yes; then
8641 samba_cv_HAVE_BROKEN_READDIR=cross
8642 else
8643 cat > conftest.$ac_ext <<EOF
8644 #line 8645 "configure"
8645 #include "confdefs.h"
8646 #include <sys/types.h>
8647 #include <dirent.h>
8648 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8649 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8650 di->d_name[0] == 0) exit(0); exit(1);}
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8653 then
8654 samba_cv_HAVE_BROKEN_READDIR=yes
8655 else
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 rm -fr conftest*
8659 samba_cv_HAVE_BROKEN_READDIR=no
8661 rm -fr conftest*
8666 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8667 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8668 cat >> confdefs.h <<\EOF
8669 #define HAVE_BROKEN_READDIR 1
8674 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8675 echo "configure:8676: checking for utimbuf" >&5
8676 if eval "test \"\${samba_cv_HAVE_UTIMBUF+set}\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8678 else
8680 cat > conftest.$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8683 #include <sys/types.h>
8684 #include <utime.h>
8685 int main() {
8686 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8687 ; return 0; }
8689 if { (eval echo configure:8690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8690 rm -rf conftest*
8691 samba_cv_HAVE_UTIMBUF=yes
8692 else
8693 echo "configure: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8695 rm -rf conftest*
8696 samba_cv_HAVE_UTIMBUF=no
8698 rm -f conftest*
8701 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8702 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8703 cat >> confdefs.h <<\EOF
8704 #define HAVE_UTIMBUF 1
8709 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
8710 echo "configure:8711: checking for ut_syslen in utmpx" >&5
8711 if eval "test \"\${samba_cv_HAVE_UX_UT_SYSLEN+set}\" = set"; then
8712 echo $ac_n "(cached) $ac_c" 1>&6
8713 else
8715 cat > conftest.$ac_ext <<EOF
8716 #line 8717 "configure"
8717 #include "confdefs.h"
8718 #include <utmpx.h>
8719 int main() {
8720 struct utmpx ux; ux.ut_syslen = 0;
8721 ; return 0; }
8723 if { (eval echo configure:8724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8724 rm -rf conftest*
8725 samba_cv_HAVE_UX_UT_SYSLEN=yes
8726 else
8727 echo "configure: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8729 rm -rf conftest*
8730 samba_cv_HAVE_UX_UT_SYSLEN=no
8732 rm -f conftest*
8735 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
8736 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
8737 cat >> confdefs.h <<\EOF
8738 #define HAVE_UX_UT_SYSLEN 1
8743 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
8744 echo "configure:8745: checking for kernel oplock type definitions" >&5
8745 if eval "test \"\${samba_cv_HAVE_KERNEL_OPLOCKS+set}\" = set"; then
8746 echo $ac_n "(cached) $ac_c" 1>&6
8747 else
8749 cat > conftest.$ac_ext <<EOF
8750 #line 8751 "configure"
8751 #include "confdefs.h"
8752 #include <sys/types.h>
8753 #include <fcntl.h>
8754 int main() {
8755 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
8756 ; return 0; }
8758 if { (eval echo configure:8759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8759 rm -rf conftest*
8760 samba_cv_HAVE_KERNEL_OPLOCKS=yes
8761 else
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8764 rm -rf conftest*
8765 samba_cv_HAVE_KERNEL_OPLOCKS=no
8767 rm -f conftest*
8770 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
8771 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
8772 cat >> confdefs.h <<\EOF
8773 #define HAVE_KERNEL_OPLOCKS 1
8778 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
8779 echo "configure:8780: checking for irix specific capabilities" >&5
8780 if eval "test \"\${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782 else
8784 if test "$cross_compiling" = yes; then
8785 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
8786 else
8787 cat > conftest.$ac_ext <<EOF
8788 #line 8789 "configure"
8789 #include "confdefs.h"
8790 #include <sys/types.h>
8791 #include <sys/capability.h>
8792 main() {
8793 cap_t cap;
8794 if ((cap = cap_get_proc()) == NULL)
8795 exit(1);
8796 cap->cap_effective |= CAP_NETWORK_MGT;
8797 cap->cap_inheritable |= CAP_NETWORK_MGT;
8798 cap_set_proc(cap);
8799 exit(0);
8803 if { (eval echo configure:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8804 then
8805 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
8806 else
8807 echo "configure: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8809 rm -fr conftest*
8810 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
8812 rm -fr conftest*
8817 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
8818 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
8819 cat >> confdefs.h <<\EOF
8820 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
8826 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
8827 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
8830 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8831 echo "configure:8832: checking for int16 typedef included by rpc/rpc.h" >&5
8832 if eval "test \"\${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}\" = set"; then
8833 echo $ac_n "(cached) $ac_c" 1>&6
8834 else
8836 cat > conftest.$ac_ext <<EOF
8837 #line 8838 "configure"
8838 #include "confdefs.h"
8839 #include <sys/types.h>
8840 #if defined(HAVE_RPC_RPC_H)
8841 #include <rpc/rpc.h>
8842 #endif
8843 int main() {
8844 int16 testvar;
8845 ; return 0; }
8847 if { (eval echo configure:8848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8848 rm -rf conftest*
8849 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
8850 else
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8853 rm -rf conftest*
8854 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
8856 rm -f conftest*
8859 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8860 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
8861 cat >> confdefs.h <<\EOF
8862 #define HAVE_INT16_FROM_RPC_RPC_H 1
8867 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8868 echo "configure:8869: checking for uint16 typedef included by rpc/rpc.h" >&5
8869 if eval "test \"\${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}\" = set"; then
8870 echo $ac_n "(cached) $ac_c" 1>&6
8871 else
8873 cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8876 #include <sys/types.h>
8877 #if defined(HAVE_RPC_RPC_H)
8878 #include <rpc/rpc.h>
8879 #endif
8880 int main() {
8881 uint16 testvar;
8882 ; return 0; }
8884 if { (eval echo configure:8885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8885 rm -rf conftest*
8886 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
8887 else
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 rm -rf conftest*
8891 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
8893 rm -f conftest*
8896 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8897 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
8898 cat >> confdefs.h <<\EOF
8899 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8904 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8905 echo "configure:8906: checking for int32 typedef included by rpc/rpc.h" >&5
8906 if eval "test \"\${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8908 else
8910 cat > conftest.$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8913 #include <sys/types.h>
8914 #if defined(HAVE_RPC_RPC_H)
8915 #include <rpc/rpc.h>
8916 #endif
8917 int main() {
8918 int32 testvar;
8919 ; return 0; }
8921 if { (eval echo configure:8922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8922 rm -rf conftest*
8923 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
8924 else
8925 echo "configure: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8927 rm -rf conftest*
8928 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
8930 rm -f conftest*
8933 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8934 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
8935 cat >> confdefs.h <<\EOF
8936 #define HAVE_INT32_FROM_RPC_RPC_H 1
8941 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8942 echo "configure:8943: checking for uint32 typedef included by rpc/rpc.h" >&5
8943 if eval "test \"\${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8945 else
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 #include <sys/types.h>
8951 #if defined(HAVE_RPC_RPC_H)
8952 #include <rpc/rpc.h>
8953 #endif
8954 int main() {
8955 uint32 testvar;
8956 ; return 0; }
8958 if { (eval echo configure:8959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8959 rm -rf conftest*
8960 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
8961 else
8962 echo "configure: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8964 rm -rf conftest*
8965 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
8967 rm -f conftest*
8970 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8971 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
8972 cat >> confdefs.h <<\EOF
8973 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8979 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8980 echo "configure:8981: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8981 if eval "test \"\${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8983 else
8985 cat > conftest.$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8988 #include <sys/types.h>
8989 #ifdef HAVE_SYS_SECURITY_H
8990 #include <sys/security.h>
8991 #include <prot.h>
8992 #endif /* HAVE_SYS_SECURITY_H */
8993 #if defined(HAVE_RPC_RPC_H)
8994 #include <rpc/rpc.h>
8995 #endif
8996 int main() {
8997 int testvar;
8998 ; return 0; }
9000 if { (eval echo configure:9001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9001 rm -rf conftest*
9002 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9003 else
9004 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9006 rm -rf conftest*
9007 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9009 rm -f conftest*
9012 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9013 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9014 cat >> confdefs.h <<\EOF
9015 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9020 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9021 echo "configure:9022: checking for test routines" >&5
9022 if test "$cross_compiling" = yes; then
9023 echo "configure: warning: cannot run when cross-compiling" 1>&2
9024 else
9025 cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 #include "${srcdir-.}/tests/trivial.c"
9030 if { (eval echo configure:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9031 then
9032 echo "$ac_t""yes" 1>&6
9033 else
9034 echo "configure: failed program was:" >&5
9035 cat conftest.$ac_ext >&5
9036 rm -fr conftest*
9037 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9039 rm -fr conftest*
9043 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9044 echo "configure:9045: checking for ftruncate extend" >&5
9045 if eval "test \"\${samba_cv_HAVE_FTRUNCATE_EXTEND+set}\" = set"; then
9046 echo $ac_n "(cached) $ac_c" 1>&6
9047 else
9049 if test "$cross_compiling" = yes; then
9050 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9051 else
9052 cat > conftest.$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9055 #include "${srcdir-.}/tests/ftruncate.c"
9057 if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9058 then
9059 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9060 else
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 rm -fr conftest*
9064 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9066 rm -fr conftest*
9071 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9072 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9073 cat >> confdefs.h <<\EOF
9074 #define HAVE_FTRUNCATE_EXTEND 1
9079 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9080 echo "configure:9081: checking for broken getgroups" >&5
9081 if eval "test \"\${samba_cv_HAVE_BROKEN_GETGROUPS+set}\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9083 else
9085 if test "$cross_compiling" = yes; then
9086 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9087 else
9088 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 #include "${srcdir-.}/tests/getgroups.c"
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9094 then
9095 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9096 else
9097 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9099 rm -fr conftest*
9100 samba_cv_HAVE_BROKEN_GETGROUPS=no
9102 rm -fr conftest*
9107 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9108 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9109 cat >> confdefs.h <<\EOF
9110 #define HAVE_BROKEN_GETGROUPS 1
9115 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9116 echo "configure:9117: checking whether getpass should be replaced" >&5
9117 if eval "test \"\${samba_cv_REPLACE_GETPASS+set}\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9119 else
9121 SAVE_CPPFLAGS="$CPPFLAGS"
9122 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9123 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure"
9125 #include "confdefs.h"
9127 #define REPLACE_GETPASS 1
9128 #define NO_CONFIG_H 1
9129 #define main dont_declare_main
9130 #include "${srcdir-.}/lib/getsmbpass.c"
9131 #undef main
9133 int main() {
9135 ; return 0; }
9137 if { (eval echo configure:9138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9138 rm -rf conftest*
9139 samba_cv_REPLACE_GETPASS=yes
9140 else
9141 echo "configure: failed program was:" >&5
9142 cat conftest.$ac_ext >&5
9143 rm -rf conftest*
9144 samba_cv_REPLACE_GETPASS=no
9146 rm -f conftest*
9147 CPPFLAGS="$SAVE_CPPFLAGS"
9151 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9152 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9153 cat >> confdefs.h <<\EOF
9154 #define REPLACE_GETPASS 1
9159 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
9160 echo "configure:9161: checking for working fnmatch" >&5
9161 if eval "test \"\${samba_cv_HAVE_FNMATCH+set}\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9163 else
9165 if test "$cross_compiling" = yes; then
9166 samba_cv_HAVE_FNMATCH=cross
9167 else
9168 cat > conftest.$ac_ext <<EOF
9169 #line 9170 "configure"
9170 #include "confdefs.h"
9171 #include <fnmatch.h>
9172 main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }
9174 if { (eval echo configure:9175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9175 then
9176 samba_cv_HAVE_FNMATCH=yes
9177 else
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9180 rm -fr conftest*
9181 samba_cv_HAVE_FNMATCH=no
9183 rm -fr conftest*
9188 echo "$ac_t""$samba_cv_HAVE_FNMATCH" 1>&6
9189 if test x"$samba_cv_HAVE_FNMATCH" = x"yes"; then
9190 cat >> confdefs.h <<\EOF
9191 #define HAVE_FNMATCH 1
9196 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9197 echo "configure:9198: checking for broken inet_ntoa" >&5
9198 if eval "test \"\${samba_cv_REPLACE_INET_NTOA+set}\" = set"; then
9199 echo $ac_n "(cached) $ac_c" 1>&6
9200 else
9202 if test "$cross_compiling" = yes; then
9203 samba_cv_REPLACE_INET_NTOA=cross
9204 else
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9209 #include <stdio.h>
9210 #include <sys/types.h>
9211 #include <netinet/in.h>
9212 #ifdef HAVE_ARPA_INET_H
9213 #include <arpa/inet.h>
9214 #endif
9215 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9216 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9217 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9218 exit(1);}
9220 if { (eval echo configure:9221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9221 then
9222 samba_cv_REPLACE_INET_NTOA=yes
9223 else
9224 echo "configure: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9226 rm -fr conftest*
9227 samba_cv_REPLACE_INET_NTOA=no
9229 rm -fr conftest*
9234 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9235 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9236 cat >> confdefs.h <<\EOF
9237 #define REPLACE_INET_NTOA 1
9242 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9243 echo "configure:9244: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9244 if eval "test \"\${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}\" = set"; then
9245 echo $ac_n "(cached) $ac_c" 1>&6
9246 else
9248 if test "$cross_compiling" = yes; then
9249 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9250 else
9251 cat > conftest.$ac_ext <<EOF
9252 #line 9253 "configure"
9253 #include "confdefs.h"
9254 #include <unistd.h>
9255 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9257 if { (eval echo configure:9258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9258 then
9259 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9260 else
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9263 rm -fr conftest*
9264 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9266 rm -fr conftest*
9271 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9272 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9273 cat >> confdefs.h <<\EOF
9274 #define SYSCONF_SC_NGROUPS_MAX 1
9279 echo $ac_n "checking for root""... $ac_c" 1>&6
9280 echo "configure:9281: checking for root" >&5
9281 if eval "test \"\${samba_cv_HAVE_ROOT+set}\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9283 else
9285 if test "$cross_compiling" = yes; then
9286 samba_cv_HAVE_ROOT=cross
9287 else
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 main() { exit(getuid() != 0); }
9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9294 then
9295 samba_cv_HAVE_ROOT=yes
9296 else
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9299 rm -fr conftest*
9300 samba_cv_HAVE_ROOT=no
9302 rm -fr conftest*
9307 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9308 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
9309 cat >> confdefs.h <<\EOF
9310 #define HAVE_ROOT 1
9313 else
9314 echo "configure: warning: running as non-root will disable some tests" 1>&2
9317 ##################
9318 # look for a method of finding the list of network interfaces
9319 iface=no;
9320 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9321 echo "configure:9322: checking for iface AIX" >&5
9322 if eval "test \"\${samba_cv_HAVE_IFACE_AIX+set}\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9324 else
9326 if test "$cross_compiling" = yes; then
9327 samba_cv_HAVE_IFACE_AIX=cross
9328 else
9329 cat > conftest.$ac_ext <<EOF
9330 #line 9331 "configure"
9331 #include "confdefs.h"
9333 #define HAVE_IFACE_AIX 1
9334 #define AUTOCONF_TEST 1
9335 #include "confdefs.h"
9336 #include "${srcdir-.}/lib/interfaces.c"
9338 if { (eval echo configure:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9339 then
9340 samba_cv_HAVE_IFACE_AIX=yes
9341 else
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 rm -fr conftest*
9345 samba_cv_HAVE_IFACE_AIX=no
9347 rm -fr conftest*
9352 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9353 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
9354 iface=yes;cat >> confdefs.h <<\EOF
9355 #define HAVE_IFACE_AIX 1
9360 if test $iface = no; then
9361 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9362 echo "configure:9363: checking for iface ifconf" >&5
9363 if eval "test \"\${samba_cv_HAVE_IFACE_IFCONF+set}\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
9365 else
9367 if test "$cross_compiling" = yes; then
9368 samba_cv_HAVE_IFACE_IFCONF=cross
9369 else
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9374 #define HAVE_IFACE_IFCONF 1
9375 #define AUTOCONF_TEST 1
9376 #include "confdefs.h"
9377 #include "${srcdir-.}/lib/interfaces.c"
9379 if { (eval echo configure:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9380 then
9381 samba_cv_HAVE_IFACE_IFCONF=yes
9382 else
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 rm -fr conftest*
9386 samba_cv_HAVE_IFACE_IFCONF=no
9388 rm -fr conftest*
9393 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9394 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
9395 iface=yes;cat >> confdefs.h <<\EOF
9396 #define HAVE_IFACE_IFCONF 1
9402 if test $iface = no; then
9403 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9404 echo "configure:9405: checking for iface ifreq" >&5
9405 if eval "test \"\${samba_cv_HAVE_IFACE_IFREQ+set}\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9407 else
9409 if test "$cross_compiling" = yes; then
9410 samba_cv_HAVE_IFACE_IFREQ=cross
9411 else
9412 cat > conftest.$ac_ext <<EOF
9413 #line 9414 "configure"
9414 #include "confdefs.h"
9416 #define HAVE_IFACE_IFREQ 1
9417 #define AUTOCONF_TEST 1
9418 #include "confdefs.h"
9419 #include "${srcdir-.}/lib/interfaces.c"
9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9422 then
9423 samba_cv_HAVE_IFACE_IFREQ=yes
9424 else
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 rm -fr conftest*
9428 samba_cv_HAVE_IFACE_IFREQ=no
9430 rm -fr conftest*
9435 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
9436 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
9437 iface=yes;cat >> confdefs.h <<\EOF
9438 #define HAVE_IFACE_IFREQ 1
9445 ################################################
9446 # look for a method of setting the effective uid
9447 seteuid=no;
9448 if test $seteuid = no; then
9449 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
9450 echo "configure:9451: checking for setresuid" >&5
9451 if eval "test \"\${samba_cv_USE_SETRESUID+set}\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9453 else
9455 if test "$cross_compiling" = yes; then
9456 samba_cv_USE_SETRESUID=cross
9457 else
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9462 #define AUTOCONF_TEST 1
9463 #define USE_SETRESUID 1
9464 #include "confdefs.h"
9465 #include "${srcdir-.}/lib/util_sec.c"
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9468 then
9469 samba_cv_USE_SETRESUID=yes
9470 else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -fr conftest*
9474 samba_cv_USE_SETRESUID=no
9476 rm -fr conftest*
9481 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
9482 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
9483 seteuid=yes;cat >> confdefs.h <<\EOF
9484 #define USE_SETRESUID 1
9491 if test $seteuid = no; then
9492 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
9493 echo "configure:9494: checking for setreuid" >&5
9494 if eval "test \"\${samba_cv_USE_SETREUID+set}\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9496 else
9498 if test "$cross_compiling" = yes; then
9499 samba_cv_USE_SETREUID=cross
9500 else
9501 cat > conftest.$ac_ext <<EOF
9502 #line 9503 "configure"
9503 #include "confdefs.h"
9505 #define AUTOCONF_TEST 1
9506 #define USE_SETREUID 1
9507 #include "confdefs.h"
9508 #include "${srcdir-.}/lib/util_sec.c"
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9511 then
9512 samba_cv_USE_SETREUID=yes
9513 else
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 rm -fr conftest*
9517 samba_cv_USE_SETREUID=no
9519 rm -fr conftest*
9524 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
9525 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
9526 seteuid=yes;cat >> confdefs.h <<\EOF
9527 #define USE_SETREUID 1
9533 if test $seteuid = no; then
9534 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
9535 echo "configure:9536: checking for seteuid" >&5
9536 if eval "test \"\${samba_cv_USE_SETEUID+set}\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9538 else
9540 if test "$cross_compiling" = yes; then
9541 samba_cv_USE_SETEUID=cross
9542 else
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9547 #define AUTOCONF_TEST 1
9548 #define USE_SETEUID 1
9549 #include "confdefs.h"
9550 #include "${srcdir-.}/lib/util_sec.c"
9552 if { (eval echo configure:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9553 then
9554 samba_cv_USE_SETEUID=yes
9555 else
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9558 rm -fr conftest*
9559 samba_cv_USE_SETEUID=no
9561 rm -fr conftest*
9566 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
9567 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
9568 seteuid=yes;cat >> confdefs.h <<\EOF
9569 #define USE_SETEUID 1
9575 if test $seteuid = no; then
9576 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
9577 echo "configure:9578: checking for setuidx" >&5
9578 if eval "test \"\${samba_cv_USE_SETUIDX+set}\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9580 else
9582 if test "$cross_compiling" = yes; then
9583 samba_cv_USE_SETUIDX=cross
9584 else
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9589 #define AUTOCONF_TEST 1
9590 #define USE_SETUIDX 1
9591 #include "confdefs.h"
9592 #include "${srcdir-.}/lib/util_sec.c"
9594 if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9595 then
9596 samba_cv_USE_SETUIDX=yes
9597 else
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9600 rm -fr conftest*
9601 samba_cv_USE_SETUIDX=no
9603 rm -fr conftest*
9608 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
9609 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
9610 seteuid=yes;cat >> confdefs.h <<\EOF
9611 #define USE_SETUIDX 1
9617 ################################################
9618 # look for a method of setting the effective gid
9619 setegid=no;
9620 if test $setegid = no; then
9621 echo $ac_n "checking for setresgid""... $ac_c" 1>&6
9622 echo "configure:9623: checking for setresgid" >&5
9623 if eval "test \"\${samba_cv_USE_SETRESGID+set}\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9625 else
9627 if test "$cross_compiling" = yes; then
9628 samba_cv_USE_SETRESGID=cross
9629 else
9630 cat > conftest.$ac_ext <<EOF
9631 #line 9632 "configure"
9632 #include "confdefs.h"
9634 #define AUTOCONF_TEST 1
9635 #define USE_SETRESUID 1
9636 #define USE_SETRESGID 1
9637 #include "confdefs.h"
9638 #include "${srcdir-.}/lib/util_sec.c"
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9641 then
9642 samba_cv_USE_SETRESGID=yes
9643 else
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 rm -fr conftest*
9647 samba_cv_USE_SETRESGID=no
9649 rm -fr conftest*
9654 echo "$ac_t""$samba_cv_USE_SETRESGID" 1>&6
9655 if test x"$samba_cv_USE_SETRESGID" = x"yes"; then
9656 setegid=yes;cat >> confdefs.h <<\EOF
9657 #define USE_SETRESGID 1
9664 if test $setegid = no; then
9665 echo $ac_n "checking for setregid""... $ac_c" 1>&6
9666 echo "configure:9667: checking for setregid" >&5
9667 if eval "test \"\${samba_cv_USE_SETREGID+set}\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9669 else
9671 if test "$cross_compiling" = yes; then
9672 samba_cv_USE_SETREGID=cross
9673 else
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9678 #define AUTOCONF_TEST 1
9679 #define USE_SETREUID 1
9680 #define USE_SETREGID 1
9681 #include "confdefs.h"
9682 #include "${srcdir-.}/lib/util_sec.c"
9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9685 then
9686 samba_cv_USE_SETREGID=yes
9687 else
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 rm -fr conftest*
9691 samba_cv_USE_SETREGID=no
9693 rm -fr conftest*
9698 echo "$ac_t""$samba_cv_USE_SETREGID" 1>&6
9699 if test x"$samba_cv_USE_SETREGID" = x"yes"; then
9700 setegid=yes;cat >> confdefs.h <<\EOF
9701 #define USE_SETREGID 1
9707 if test $setegid = no; then
9708 echo $ac_n "checking for setegid""... $ac_c" 1>&6
9709 echo "configure:9710: checking for setegid" >&5
9710 if eval "test \"\${samba_cv_USE_SETEGID+set}\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9712 else
9714 if test "$cross_compiling" = yes; then
9715 samba_cv_USE_SETEGID=cross
9716 else
9717 cat > conftest.$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9721 #define AUTOCONF_TEST 1
9722 #define USE_SETEUID 1
9723 #define USE_SETEGID 1
9724 #include "confdefs.h"
9725 #include "${srcdir-.}/lib/util_sec.c"
9727 if { (eval echo configure:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9728 then
9729 samba_cv_USE_SETEGID=yes
9730 else
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 rm -fr conftest*
9734 samba_cv_USE_SETEGID=no
9736 rm -fr conftest*
9741 echo "$ac_t""$samba_cv_USE_SETEGID" 1>&6
9742 if test x"$samba_cv_USE_SETEGID" = x"yes"; then
9743 setegid=yes;cat >> confdefs.h <<\EOF
9744 #define USE_SETEGID 1
9750 if test $setegid = no; then
9751 echo $ac_n "checking for setgidx""... $ac_c" 1>&6
9752 echo "configure:9753: checking for setgidx" >&5
9753 if eval "test \"\${samba_cv_USE_SETGIDX+set}\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9755 else
9757 if test "$cross_compiling" = yes; then
9758 samba_cv_USE_SETGIDX=cross
9759 else
9760 cat > conftest.$ac_ext <<EOF
9761 #line 9762 "configure"
9762 #include "confdefs.h"
9764 #define AUTOCONF_TEST 1
9765 #define USE_SETUIDX 1
9766 #define USE_SETGIDX 1
9767 #include "confdefs.h"
9768 #include "${srcdir-.}/lib/util_sec.c"
9770 if { (eval echo configure:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9771 then
9772 samba_cv_USE_SETGIDX=yes
9773 else
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 rm -fr conftest*
9777 samba_cv_USE_SETGIDX=no
9779 rm -fr conftest*
9784 echo "$ac_t""$samba_cv_USE_SETGIDX" 1>&6
9785 if test x"$samba_cv_USE_SETGIDX" = x"yes"; then
9786 setegid=yes;cat >> confdefs.h <<\EOF
9787 #define USE_SETGIDX 1
9793 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
9794 echo "configure:9795: checking for shared mmap" >&5
9795 if eval "test \"\${samba_cv_HAVE_SHARED_MMAP+set}\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9797 else
9799 if test "$cross_compiling" = yes; then
9800 samba_cv_HAVE_SHARED_MMAP=cross
9801 else
9802 cat > conftest.$ac_ext <<EOF
9803 #line 9804 "configure"
9804 #include "confdefs.h"
9805 #include "${srcdir-.}/tests/shared_mmap.c"
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9808 then
9809 samba_cv_HAVE_SHARED_MMAP=yes
9810 else
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 rm -fr conftest*
9814 samba_cv_HAVE_SHARED_MMAP=no
9816 rm -fr conftest*
9821 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
9822 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
9823 cat >> confdefs.h <<\EOF
9824 #define HAVE_SHARED_MMAP 1
9827 cat >> confdefs.h <<\EOF
9828 #define HAVE_MMAP 1
9833 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9834 echo "configure:9835: checking for ftruncate needs root" >&5
9835 if eval "test \"\${samba_cv_FTRUNCATE_NEEDS_ROOT+set}\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9837 else
9839 if test "$cross_compiling" = yes; then
9840 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
9841 else
9842 cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 #include "${srcdir-.}/tests/ftruncroot.c"
9847 if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9848 then
9849 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
9850 else
9851 echo "configure: failed program was:" >&5
9852 cat conftest.$ac_ext >&5
9853 rm -fr conftest*
9854 samba_cv_FTRUNCATE_NEEDS_ROOT=no
9856 rm -fr conftest*
9861 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
9862 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
9863 cat >> confdefs.h <<\EOF
9864 #define FTRUNCATE_NEEDS_ROOT 1
9869 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
9870 echo "configure:9871: checking for fcntl locking" >&5
9871 if eval "test \"\${samba_cv_HAVE_FCNTL_LOCK+set}\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9873 else
9875 if test "$cross_compiling" = yes; then
9876 samba_cv_HAVE_FCNTL_LOCK=cross
9877 else
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include "${srcdir-.}/tests/fcntl_lock.c"
9883 if { (eval echo configure:9884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9884 then
9885 samba_cv_HAVE_FCNTL_LOCK=yes
9886 else
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 rm -fr conftest*
9890 samba_cv_HAVE_FCNTL_LOCK=no
9892 rm -fr conftest*
9897 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
9898 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
9899 cat >> confdefs.h <<\EOF
9900 #define HAVE_FCNTL_LOCK 1
9905 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
9906 echo "configure:9907: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
9907 if eval "test \"\${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9909 else
9911 if test "$cross_compiling" = yes; then
9912 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
9913 else
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include "${srcdir-.}/tests/fcntl_lock64.c"
9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9920 then
9921 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
9922 else
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9925 rm -fr conftest*
9926 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
9928 rm -fr conftest*
9933 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
9934 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
9935 cat >> confdefs.h <<\EOF
9936 #define HAVE_BROKEN_FCNTL64_LOCKS 1
9940 else
9943 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
9944 echo "configure:9945: checking for 64 bit fcntl locking" >&5
9945 if eval "test \"\${samba_cv_HAVE_STRUCT_FLOCK64+set}\" = set"; then
9946 echo $ac_n "(cached) $ac_c" 1>&6
9947 else
9949 if test "$cross_compiling" = yes; then
9950 samba_cv_HAVE_STRUCT_FLOCK64=cross
9951 else
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9956 #if defined(HAVE_UNISTD_H)
9957 #include <unistd.h>
9958 #endif
9959 #include <stdio.h>
9960 #include <stdlib.h>
9962 #ifdef HAVE_FCNTL_H
9963 #include <fcntl.h>
9964 #endif
9966 #ifdef HAVE_SYS_FCNTL_H
9967 #include <sys/fcntl.h>
9968 #endif
9969 main() { struct flock64 fl64;
9970 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
9971 exit(0);
9972 #else
9973 exit(1);
9974 #endif
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9978 then
9979 samba_cv_HAVE_STRUCT_FLOCK64=yes
9980 else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -fr conftest*
9984 samba_cv_HAVE_STRUCT_FLOCK64=no
9986 rm -fr conftest*
9991 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
9993 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
9994 cat >> confdefs.h <<\EOF
9995 #define HAVE_STRUCT_FLOCK64 1
10001 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
10002 echo "configure:10003: checking for sysv ipc" >&5
10003 if eval "test \"\${samba_cv_HAVE_SYSV_IPC+set}\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10005 else
10007 if test "$cross_compiling" = yes; then
10008 samba_cv_HAVE_SYSV_IPC=cross
10009 else
10010 cat > conftest.$ac_ext <<EOF
10011 #line 10012 "configure"
10012 #include "confdefs.h"
10013 #include "${srcdir-.}/tests/sysv_ipc.c"
10015 if { (eval echo configure:10016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10016 then
10017 samba_cv_HAVE_SYSV_IPC=yes
10018 else
10019 echo "configure: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10021 rm -fr conftest*
10022 samba_cv_HAVE_SYSV_IPC=no
10024 rm -fr conftest*
10029 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
10030 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
10031 cat >> confdefs.h <<\EOF
10032 #define HAVE_SYSV_IPC 1
10037 echo $ac_n "checking for IRIX sysv ipc semun problem using gcc""... $ac_c" 1>&6
10038 echo "configure:10039: checking for IRIX sysv ipc semun problem using gcc" >&5
10039 if eval "test \"\${samba_cv_NEED_SGI_SEMUN_HACK+set}\" = set"; then
10040 echo $ac_n "(cached) $ac_c" 1>&6
10041 else
10043 if test "$cross_compiling" = yes; then
10044 samba_cv_NEED_SGI_SEMUN_HACK=cross
10045 else
10046 cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 #include "${srcdir-.}/tests/sgi_sysv_hack.c"
10051 if { (eval echo configure:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10052 then
10053 samba_cv_NEED_SGI_SEMUN_HACK=yes
10054 else
10055 echo "configure: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10057 rm -fr conftest*
10058 samba_cv_NEED_SGI_SEMUN_HACK=no
10060 rm -fr conftest*
10065 echo "$ac_t""$samba_cv_NEED_SGI_SEMUN_HACK" 1>&6
10066 if test x"$samba_cv_NEED_SGI_SEMUN_HACK" = x"yes"; then
10067 cat >> confdefs.h <<\EOF
10068 #define NEED_SGI_SEMUN_HACK 1
10073 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10074 echo "configure:10075: checking for a crypt that needs truncated salt" >&5
10075 if eval "test \"\${samba_cv_HAVE_TRUNCATED_SALT+set}\" = set"; then
10076 echo $ac_n "(cached) $ac_c" 1>&6
10077 else
10079 if test "$cross_compiling" = yes; then
10080 samba_cv_HAVE_TRUNCATED_SALT=cross
10081 else
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10085 #include "${srcdir-.}/tests/crypttest.c"
10087 if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10088 then
10089 samba_cv_HAVE_TRUNCATED_SALT=no
10090 else
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10093 rm -fr conftest*
10094 samba_cv_HAVE_TRUNCATED_SALT=yes
10096 rm -fr conftest*
10101 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10102 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10103 cat >> confdefs.h <<\EOF
10104 #define HAVE_TRUNCATED_SALT 1
10109 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10110 echo "configure:10111: checking for broken nisplus include files" >&5
10111 if eval "test \"\${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10113 else
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 #include <sys/acl.h>
10119 #if defined(HAVE_RPCSVC_NIS_H)
10120 #include <rpcsvc/nis.h>
10121 #endif
10122 int main() {
10123 return 0;
10124 ; return 0; }
10126 if { (eval echo configure:10127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10127 rm -rf conftest*
10128 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10129 else
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 rm -rf conftest*
10133 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10135 rm -f conftest*
10138 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10139 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10140 cat >> confdefs.h <<\EOF
10141 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10147 #################################################
10148 # check for smbwrapper support
10149 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10150 echo "configure:10151: checking whether to use smbwrapper" >&5
10151 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10152 if test "${with_smbwrapper+set}" = set; then
10153 withval="$with_smbwrapper"
10154 case "$withval" in
10155 yes)
10156 echo "$ac_t""yes" 1>&6
10157 cat >> confdefs.h <<\EOF
10158 #define WITH_SMBWRAPPER 1
10161 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10163 if test x$ATTEMPT_WRAP32_BUILD = x; then
10164 WRAP32=""
10165 else
10166 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10169 # Conditions under which smbwrapper should not be built.
10171 if test x$PICFLAG = x; then
10172 echo No support for PIC code - disabling smbwrapper and smbsh
10173 WRAP=""
10174 WRAP32=""
10175 elif test x$ac_cv_func_syscall = xno; then
10176 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10177 WRAP=""
10178 WRAP32=""
10182 echo "$ac_t""no" 1>&6
10184 esac
10185 else
10186 echo "$ac_t""no" 1>&6
10191 #################################################
10192 # check for the AFS filesystem
10193 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10194 echo "configure:10195: checking whether to use AFS" >&5
10195 # Check whether --with-afs or --without-afs was given.
10196 if test "${with_afs+set}" = set; then
10197 withval="$with_afs"
10198 case "$withval" in
10199 yes)
10200 echo "$ac_t""yes" 1>&6
10201 cat >> confdefs.h <<\EOF
10202 #define WITH_AFS 1
10207 echo "$ac_t""no" 1>&6
10209 esac
10210 else
10211 echo "$ac_t""no" 1>&6
10216 #################################################
10217 # check for the AFS tickets from srvtabs
10218 echo $ac_n "checking whether to use AFS tickets from srvtabs""... $ac_c" 1>&6
10219 echo "configure:10220: checking whether to use AFS tickets from srvtabs" >&5
10220 # Check whether --with-srvtab or --without-srvtab was given.
10221 if test "${with_srvtab+set}" = set; then
10222 withval="$with_srvtab"
10223 case "$withval" in
10224 yes)
10225 echo "$ac_t""yes" 1>&6
10226 cat >> confdefs.h <<\EOF
10227 #define USE_RENEWABLE_AFS_TICKET ""
10230 LIBS="$LIBS -lkafs"
10233 echo "$ac_t""no" 1>&6
10236 echo "$ac_t""yes using instance $withval" 1>&6
10237 cat >> confdefs.h <<EOF
10238 #define USE_RENEWABLE_AFS_TICKET $withval
10241 LIBS="$LIBS -lkafs"
10243 esac
10244 else
10245 echo "$ac_t""no" 1>&6
10251 #################################################
10252 # check for the DFS auth system
10253 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10254 echo "configure:10255: checking whether to use DFS auth" >&5
10255 # Check whether --with-dfs or --without-dfs was given.
10256 if test "${with_dfs+set}" = set; then
10257 withval="$with_dfs"
10258 case "$withval" in
10259 yes)
10260 echo "$ac_t""yes" 1>&6
10261 cat >> confdefs.h <<\EOF
10262 #define WITH_DFS 1
10267 echo "$ac_t""no" 1>&6
10269 esac
10270 else
10271 echo "$ac_t""no" 1>&6
10276 #################################################
10277 # check for Kerberos IV auth system
10278 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10279 echo "configure:10280: checking whether to use Kerberos IV" >&5
10280 # Check whether --with-krb4 or --without-krb4 was given.
10281 if test "${with_krb4+set}" = set; then
10282 withval="$with_krb4"
10283 echo "$ac_t""yes" 1>&6
10284 cat >> confdefs.h <<\EOF
10285 #define KRB4_AUTH 1
10288 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10289 echo "configure:10290: checking for dn_expand in -lresolv" >&5
10290 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10291 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10292 echo $ac_n "(cached) $ac_c" 1>&6
10293 else
10294 ac_save_LIBS="$LIBS"
10295 LIBS="-lresolv $LIBS"
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302 char dn_expand();
10304 int main() {
10305 dn_expand()
10306 ; return 0; }
10308 if { (eval echo configure:10309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10309 rm -rf conftest*
10310 eval "ac_cv_lib_$ac_lib_var=yes"
10311 else
10312 echo "configure: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10314 rm -rf conftest*
10315 eval "ac_cv_lib_$ac_lib_var=no"
10317 rm -f conftest*
10318 LIBS="$ac_save_LIBS"
10321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10322 echo "$ac_t""yes" 1>&6
10323 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10325 cat >> confdefs.h <<EOF
10326 #define $ac_tr_lib 1
10329 LIBS="-lresolv $LIBS"
10331 else
10332 echo "$ac_t""no" 1>&6
10335 LIBS="$LIBS -lkrb -ldes"
10336 CFLAGS="$CFLAGS -I$withval/include"
10337 LDFLAGS="$LDFLAGS -L$withval/lib"
10338 else
10339 echo "$ac_t""no" 1>&6
10344 #################################################
10345 # check for Kerberos 5 auth system
10346 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10347 echo "configure:10348: checking whether to use Kerberos 5" >&5
10348 # Check whether --with-krb5 or --without-krb5 was given.
10349 if test "${with_krb5+set}" = set; then
10350 withval="$with_krb5"
10351 echo "$ac_t""yes" 1>&6
10352 cat >> confdefs.h <<\EOF
10353 #define KRB5_AUTH 1
10356 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10357 CFLAGS="$CFLAGS -I$withval/include"
10358 LDFLAGS="$LDFLAGS -L$withval/lib"
10359 else
10360 echo "$ac_t""no" 1>&6
10365 #################################################
10366 # check for automount support
10367 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10368 echo "configure:10369: checking whether to use AUTOMOUNT" >&5
10369 # Check whether --with-automount or --without-automount was given.
10370 if test "${with_automount+set}" = set; then
10371 withval="$with_automount"
10372 case "$withval" in
10373 yes)
10374 echo "$ac_t""yes" 1>&6
10375 cat >> confdefs.h <<\EOF
10376 #define WITH_AUTOMOUNT 1
10381 echo "$ac_t""no" 1>&6
10383 esac
10384 else
10385 echo "$ac_t""no" 1>&6
10390 #################################################
10391 # check for smbmount support
10392 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10393 echo "configure:10394: checking whether to use SMBMOUNT" >&5
10394 # Check whether --with-smbmount or --without-smbmount was given.
10395 if test "${with_smbmount+set}" = set; then
10396 withval="$with_smbmount"
10397 case "$withval" in
10398 yes)
10399 echo "$ac_t""yes" 1>&6
10400 cat >> confdefs.h <<\EOF
10401 #define WITH_SMBMOUNT 1
10404 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10407 echo "$ac_t""no" 1>&6
10408 MPROGS=
10410 esac
10411 else
10412 echo "$ac_t""no" 1>&6
10413 MPROGS=
10419 #################################################
10420 # check for a PAM password database
10421 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10422 echo "configure:10423: checking whether to use PAM password database" >&5
10423 # Check whether --with-pam or --without-pam was given.
10424 if test "${with_pam+set}" = set; then
10425 withval="$with_pam"
10426 case "$withval" in
10427 yes)
10428 echo "$ac_t""yes" 1>&6
10429 cat >> confdefs.h <<\EOF
10430 #define WITH_PAM 1
10433 LIBS="$LIBS -lpam"
10436 echo "$ac_t""no" 1>&6
10438 esac
10439 else
10440 echo "$ac_t""no" 1>&6
10446 #################################################
10447 # check for a LDAP password database
10448 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10449 echo "configure:10450: checking whether to use LDAP password database" >&5
10450 # Check whether --with-ldap or --without-ldap was given.
10451 if test "${with_ldap+set}" = set; then
10452 withval="$with_ldap"
10453 case "$withval" in
10454 yes)
10455 echo "$ac_t""yes" 1>&6
10456 cat >> confdefs.h <<\EOF
10457 #define WITH_LDAP 1
10460 LIBS="$LIBS -lldap -llber"
10463 echo "$ac_t""no" 1>&6
10465 esac
10466 else
10467 echo "$ac_t""no" 1>&6
10472 #################################################
10473 # check for a LDAP password database
10474 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10475 echo "configure:10476: checking whether to use LDAP password database" >&5
10476 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10477 if test "${with_nt5ldap+set}" = set; then
10478 withval="$with_nt5ldap"
10479 case "$withval" in
10480 yes)
10481 echo "$ac_t""yes" 1>&6
10482 cat >> confdefs.h <<\EOF
10483 #define WITH_NT5LDAP 1
10486 LIBS="$LIBS -lldap -llber"
10489 echo "$ac_t""no" 1>&6
10491 esac
10492 else
10493 echo "$ac_t""no" 1>&6
10498 #################################################
10499 # check for a LDAP password database
10500 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10501 echo "configure:10502: checking whether to use LDAP password database" >&5
10502 # Check whether --with-nt5ldap or --without-nt5ldap was given.
10503 if test "${with_nt5ldap+set}" = set; then
10504 withval="$with_nt5ldap"
10505 case "$withval" in
10506 yes)
10507 echo "$ac_t""yes" 1>&6
10508 cat >> confdefs.h <<\EOF
10509 #define WITH_NT5LDAP 1
10512 LIBS="$LIBS -lldap -llber"
10515 echo "$ac_t""no" 1>&6
10517 esac
10518 else
10519 echo "$ac_t""no" 1>&6
10524 #################################################
10525 # check for a NISPLUS password database
10526 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10527 echo "configure:10528: checking whether to use NISPLUS password database" >&5
10528 # Check whether --with-nisplus or --without-nisplus was given.
10529 if test "${with_nisplus+set}" = set; then
10530 withval="$with_nisplus"
10531 case "$withval" in
10532 yes)
10533 echo "$ac_t""yes" 1>&6
10534 cat >> confdefs.h <<\EOF
10535 #define WITH_NISPLUS 1
10540 echo "$ac_t""no" 1>&6
10542 esac
10543 else
10544 echo "$ac_t""no" 1>&6
10549 #################################################
10550 # decide for the default sam-password-database
10551 echo $ac_n "checking which sam password database to use""... $ac_c" 1>&6
10552 echo "configure:10553: checking which sam password database to use" >&5
10553 # Check whether --with-sam_pwdb or --without-sam_pwdb was given.
10554 if test "${with_sam_pwdb+set}" = set; then
10555 withval="$with_sam_pwdb"
10556 case "$withval" in
10557 ""|passdb)
10558 SAM_PWDB_LIB='$(SAMRPASSLIB) $(SMBPWLIB)'
10559 sampwlibname="passdb"
10561 tdb)
10562 SAM_PWDB_LIB='$(SAMRTDBLIB)'
10563 sampwlibname="tdb"
10565 nt5ldap)
10566 SAM_PWDB_LIB='$(SAMRNT5LDAPLIB)'
10567 sampwlibname="nt5ldap (must also specify --with-nt5ldap)"
10570 SAM_PWDB_LIB='$(SAMRPASSLIB)'
10571 sampwlibname="passdb (unknown specified!)"
10573 esac
10574 else
10576 SAM_PWDB_LIB='$(SAMRPASSLIB) $(SMBPWLIB)'
10577 sampwlibname="passdb (default)"
10581 echo "$ac_t""$sampwlibname" 1>&6
10585 #################################################
10586 # check to use a tdb surs database
10587 echo $ac_n "checking whether to use SURS tdb database""... $ac_c" 1>&6
10588 echo "configure:10589: checking whether to use SURS tdb database" >&5
10589 # Check whether --with-surstdb or --without-surstdb was given.
10590 if test "${with_surstdb+set}" = set; then
10591 withval="$with_surstdb"
10592 case "$withval" in
10593 yes)
10594 echo "$ac_t""yes" 1>&6
10595 cat >> confdefs.h <<\EOF
10596 #define WITH_TDBSURS 1
10601 echo "$ac_t""no" 1>&6
10603 esac
10604 else
10605 echo "$ac_t""no" 1>&6
10611 #################################################
10612 # check for a NISPLUS_HOME support
10613 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10614 echo "configure:10615: checking whether to use NISPLUS_HOME" >&5
10615 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10616 if test "${with_nisplus_home+set}" = set; then
10617 withval="$with_nisplus_home"
10618 case "$withval" in
10619 yes)
10620 echo "$ac_t""yes" 1>&6
10621 cat >> confdefs.h <<\EOF
10622 #define WITH_NISPLUS_HOME 1
10627 echo "$ac_t""no" 1>&6
10629 esac
10630 else
10631 echo "$ac_t""no" 1>&6
10636 #################################################
10637 # check for the secure socket layer
10638 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10639 echo "configure:10640: checking whether to use SSL" >&5
10640 # Check whether --with-ssl or --without-ssl was given.
10641 if test "${with_ssl+set}" = set; then
10642 withval="$with_ssl"
10643 case "$withval" in
10644 yes)
10645 echo "$ac_t""yes" 1>&6
10646 cat >> confdefs.h <<\EOF
10647 #define WITH_SSL 1
10650 withval="/usr/local/ssl" # default
10652 if test "${with_sslinc+set}" = set; then
10654 withval="$with_sslinc"
10655 case "$withval" in
10656 yes|no)
10657 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10658 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10659 LIBS="-lssl -lcrypto $LIBS"
10660 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
10663 CFLAGS="-I${withval}/include $CFLAGS"
10664 LIBS="-lssl -lcrypto $LIBS"
10665 LDFLAGS="-L${withval}/lib $LDFLAGS"
10667 esac
10669 else
10671 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10672 LIBS="-lssl -lcrypto $LIBS"
10673 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
10677 if test ! -d ${withval}; then
10678 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10679 exit 1
10682 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10686 echo "$ac_t""no" 1>&6
10688 esac
10689 else
10690 echo "$ac_t""no" 1>&6
10695 #################################################
10696 # check for syslog logging
10697 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10698 echo "configure:10699: checking whether to use syslog logging" >&5
10699 # Check whether --with-syslog or --without-syslog was given.
10700 if test "${with_syslog+set}" = set; then
10701 withval="$with_syslog"
10702 case "$withval" in
10703 yes)
10704 echo "$ac_t""yes" 1>&6
10705 cat >> confdefs.h <<\EOF
10706 #define WITH_SYSLOG 1
10711 echo "$ac_t""no" 1>&6
10713 esac
10714 else
10715 echo "$ac_t""no" 1>&6
10720 #################################################
10721 # check for a shared memory profiling support
10722 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10723 echo "configure:10724: checking whether to use profiling" >&5
10724 # Check whether --with-profile or --without-profile was given.
10725 if test "${with_profile+set}" = set; then
10726 withval="$with_profile"
10727 case "$withval" in
10728 yes)
10729 echo "$ac_t""yes" 1>&6
10730 cat >> confdefs.h <<\EOF
10731 #define WITH_PROFILE 1
10736 echo "$ac_t""no" 1>&6
10738 esac
10739 else
10740 echo "$ac_t""no" 1>&6
10746 #################################################
10747 # check for experimental netatalk resource fork support
10748 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10749 echo "configure:10750: checking whether to support netatalk" >&5
10750 # Check whether --with-netatalk or --without-netatalk was given.
10751 if test "${with_netatalk+set}" = set; then
10752 withval="$with_netatalk"
10753 case "$withval" in
10754 yes)
10755 echo "$ac_t""yes" 1>&6
10756 cat >> confdefs.h <<\EOF
10757 #define WITH_NETATALK 1
10762 echo "$ac_t""no" 1>&6
10764 esac
10765 else
10766 echo "$ac_t""no" 1>&6
10771 #################################################
10772 # check for experimental disk-quotas support
10773 QUOTAOBJS=noquotas.o
10775 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10776 echo "configure:10777: checking whether to support disk-quotas" >&5
10777 # Check whether --with-quotas or --without-quotas was given.
10778 if test "${with_quotas+set}" = set; then
10779 withval="$with_quotas"
10780 case "$withval" in
10781 yes)
10782 echo "$ac_t""yes" 1>&6
10783 QUOTAOBJS=quotas.o
10786 echo "$ac_t""no" 1>&6
10788 esac
10789 else
10790 echo "$ac_t""no" 1>&6
10796 #################################################
10797 # check for experimental utmp accounting
10799 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
10800 echo "configure:10801: checking whether to support utmp accounting" >&5
10801 # Check whether --with-utmp or --without-utmp was given.
10802 if test "${with_utmp+set}" = set; then
10803 withval="$with_utmp"
10804 case "$withval" in
10805 yes)
10806 echo "$ac_t""yes" 1>&6
10807 cat >> confdefs.h <<\EOF
10808 #define WITH_UTMP 1
10813 echo "$ac_t""no" 1>&6
10815 esac
10816 else
10817 echo "$ac_t""no" 1>&6
10822 #################################################
10823 # check for MS Dfs support
10825 echo $ac_n "checking whether to support MS Dfs""... $ac_c" 1>&6
10826 echo "configure:10827: checking whether to support MS Dfs" >&5
10827 # Check whether --with-msdfs or --without-msdfs was given.
10828 if test "${with_msdfs+set}" = set; then
10829 withval="$with_msdfs"
10830 case "$withval" in
10831 yes)
10832 echo "$ac_t""yes" 1>&6
10833 cat >> confdefs.h <<\EOF
10834 #define MS_DFS 1
10839 echo "$ac_t""no" 1>&6
10841 esac
10842 else
10843 echo "$ac_t""no" 1>&6
10848 #################################################
10849 # set private directory location
10850 # Check whether --with-privatedir or --without-privatedir was given.
10851 if test "${with_privatedir+set}" = set; then
10852 withval="$with_privatedir"
10853 case "$withval" in
10854 yes|no)
10856 # Just in case anybody calls it without argument
10858 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
10859 privatedir='${prefix}/private'
10862 privatedir="$withval"
10864 esac
10866 else
10867 privatedir='${prefix}/private'
10873 #################################################
10874 # set lock directory location
10875 # Check whether --with-lockdir or --without-lockdir was given.
10876 if test "${with_lockdir+set}" = set; then
10877 withval="$with_lockdir"
10878 case "$withval" in
10879 yes|no)
10881 # Just in case anybody calls it without argument
10883 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
10884 lockdir='$(VARDIR)/locks'
10887 lockdir="$withval"
10889 esac
10891 else
10892 lockdir='$(VARDIR)/locks'
10898 #################################################
10899 # set SWAT directory location
10900 # Check whether --with-swatdir or --without-swatdir was given.
10901 if test "${with_swatdir+set}" = set; then
10902 withval="$with_swatdir"
10903 case "$withval" in
10904 yes|no)
10906 # Just in case anybody does it
10908 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
10909 swatdir='${prefix}/swat'
10912 swatdir="$withval"
10914 esac
10916 else
10917 swatdir='${prefix}/swat'
10923 #################################################
10924 # these tests are taken from the GNU fileutils package
10925 echo "checking how to get filesystem space usage" 1>&6
10926 echo "configure:10927: checking how to get filesystem space usage" >&5
10927 space=no
10929 # Test for statvfs64.
10930 if test $space = no; then
10931 # SVR4
10932 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
10933 echo "configure:10934: checking statvfs64 function (SVR4)" >&5
10934 if eval "test \"\${fu_cv_sys_stat_statvfs64+set}\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10936 else
10937 if test "$cross_compiling" = yes; then
10938 fu_cv_sys_stat_statvfs64=cross
10939 else
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10944 #if defined(HAVE_UNISTD_H)
10945 #include <unistd.h>
10946 #endif
10947 #include <sys/types.h>
10948 #include <sys/statvfs.h>
10949 main ()
10951 struct statvfs64 fsd;
10952 exit (statvfs64 (".", &fsd));
10955 if { (eval echo configure:10956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10956 then
10957 fu_cv_sys_stat_statvfs64=yes
10958 else
10959 echo "configure: failed program was:" >&5
10960 cat conftest.$ac_ext >&5
10961 rm -fr conftest*
10962 fu_cv_sys_stat_statvfs64=no
10964 rm -fr conftest*
10969 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
10970 if test $fu_cv_sys_stat_statvfs64 = yes; then
10971 space=yes
10972 cat >> confdefs.h <<\EOF
10973 #define STAT_STATVFS64 1
10979 # Perform only the link test since it seems there are no variants of the
10980 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
10981 # because that got a false positive on SCO OSR5. Adding the declaration
10982 # of a `struct statvfs' causes this test to fail (as it should) on such
10983 # systems. That system is reported to work fine with STAT_STATFS4 which
10984 # is what it gets when this test fails.
10985 if test $space = no; then
10986 # SVR4
10987 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
10988 echo "configure:10989: checking statvfs function (SVR4)" >&5
10989 if eval "test \"\${fu_cv_sys_stat_statvfs+set}\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10991 else
10992 cat > conftest.$ac_ext <<EOF
10993 #line 10994 "configure"
10994 #include "confdefs.h"
10995 #include <sys/types.h>
10996 #include <sys/statvfs.h>
10997 int main() {
10998 struct statvfs fsd; statvfs (0, &fsd);
10999 ; return 0; }
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11002 rm -rf conftest*
11003 fu_cv_sys_stat_statvfs=yes
11004 else
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 rm -rf conftest*
11008 fu_cv_sys_stat_statvfs=no
11010 rm -f conftest*
11013 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11014 if test $fu_cv_sys_stat_statvfs = yes; then
11015 space=yes
11016 cat >> confdefs.h <<\EOF
11017 #define STAT_STATVFS 1
11023 if test $space = no; then
11024 # DEC Alpha running OSF/1
11025 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11026 echo "configure:11027: checking for 3-argument statfs function (DEC OSF/1)" >&5
11027 if eval "test \"\${fu_cv_sys_stat_statfs3_osf1+set}\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11029 else
11030 if test "$cross_compiling" = yes; then
11031 fu_cv_sys_stat_statfs3_osf1=no
11032 else
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11037 #include <sys/param.h>
11038 #include <sys/types.h>
11039 #include <sys/mount.h>
11040 main ()
11042 struct statfs fsd;
11043 fsd.f_fsize = 0;
11044 exit (statfs (".", &fsd, sizeof (struct statfs)));
11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11048 then
11049 fu_cv_sys_stat_statfs3_osf1=yes
11050 else
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11053 rm -fr conftest*
11054 fu_cv_sys_stat_statfs3_osf1=no
11056 rm -fr conftest*
11061 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11062 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11063 space=yes
11064 cat >> confdefs.h <<\EOF
11065 #define STAT_STATFS3_OSF1 1
11071 if test $space = no; then
11072 # AIX
11073 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11074 echo "configure:11075: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11075 if eval "test \"\${fu_cv_sys_stat_statfs2_bsize+set}\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11077 else
11078 if test "$cross_compiling" = yes; then
11079 fu_cv_sys_stat_statfs2_bsize=no
11080 else
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11085 #ifdef HAVE_SYS_PARAM_H
11086 #include <sys/param.h>
11087 #endif
11088 #ifdef HAVE_SYS_MOUNT_H
11089 #include <sys/mount.h>
11090 #endif
11091 #ifdef HAVE_SYS_VFS_H
11092 #include <sys/vfs.h>
11093 #endif
11094 main ()
11096 struct statfs fsd;
11097 fsd.f_bsize = 0;
11098 exit (statfs (".", &fsd));
11101 if { (eval echo configure:11102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11102 then
11103 fu_cv_sys_stat_statfs2_bsize=yes
11104 else
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11107 rm -fr conftest*
11108 fu_cv_sys_stat_statfs2_bsize=no
11110 rm -fr conftest*
11115 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11116 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11117 space=yes
11118 cat >> confdefs.h <<\EOF
11119 #define STAT_STATFS2_BSIZE 1
11125 if test $space = no; then
11126 # SVR3
11127 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11128 echo "configure:11129: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11129 if eval "test \"\${fu_cv_sys_stat_statfs4+set}\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
11131 else
11132 if test "$cross_compiling" = yes; then
11133 fu_cv_sys_stat_statfs4=no
11134 else
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138 #include <sys/types.h>
11139 #include <sys/statfs.h>
11140 main ()
11142 struct statfs fsd;
11143 exit (statfs (".", &fsd, sizeof fsd, 0));
11146 if { (eval echo configure:11147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11147 then
11148 fu_cv_sys_stat_statfs4=yes
11149 else
11150 echo "configure: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11152 rm -fr conftest*
11153 fu_cv_sys_stat_statfs4=no
11155 rm -fr conftest*
11160 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11161 if test $fu_cv_sys_stat_statfs4 = yes; then
11162 space=yes
11163 cat >> confdefs.h <<\EOF
11164 #define STAT_STATFS4 1
11170 if test $space = no; then
11171 # 4.4BSD and NetBSD
11172 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11173 echo "configure:11174: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11174 if eval "test \"\${fu_cv_sys_stat_statfs2_fsize+set}\" = set"; then
11175 echo $ac_n "(cached) $ac_c" 1>&6
11176 else
11177 if test "$cross_compiling" = yes; then
11178 fu_cv_sys_stat_statfs2_fsize=no
11179 else
11180 cat > conftest.$ac_ext <<EOF
11181 #line 11182 "configure"
11182 #include "confdefs.h"
11183 #include <sys/types.h>
11184 #ifdef HAVE_SYS_PARAM_H
11185 #include <sys/param.h>
11186 #endif
11187 #ifdef HAVE_SYS_MOUNT_H
11188 #include <sys/mount.h>
11189 #endif
11190 main ()
11192 struct statfs fsd;
11193 fsd.f_fsize = 0;
11194 exit (statfs (".", &fsd));
11197 if { (eval echo configure:11198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11198 then
11199 fu_cv_sys_stat_statfs2_fsize=yes
11200 else
11201 echo "configure: failed program was:" >&5
11202 cat conftest.$ac_ext >&5
11203 rm -fr conftest*
11204 fu_cv_sys_stat_statfs2_fsize=no
11206 rm -fr conftest*
11211 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11212 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11213 space=yes
11214 cat >> confdefs.h <<\EOF
11215 #define STAT_STATFS2_FSIZE 1
11221 if test $space = no; then
11222 # Ultrix
11223 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11224 echo "configure:11225: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11225 if eval "test \"\${fu_cv_sys_stat_fs_data+set}\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11227 else
11228 if test "$cross_compiling" = yes; then
11229 fu_cv_sys_stat_fs_data=no
11230 else
11231 cat > conftest.$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11234 #include <sys/types.h>
11235 #ifdef HAVE_SYS_PARAM_H
11236 #include <sys/param.h>
11237 #endif
11238 #ifdef HAVE_SYS_MOUNT_H
11239 #include <sys/mount.h>
11240 #endif
11241 #ifdef HAVE_SYS_FS_TYPES_H
11242 #include <sys/fs_types.h>
11243 #endif
11244 main ()
11246 struct fs_data fsd;
11247 /* Ultrix's statfs returns 1 for success,
11248 0 for not mounted, -1 for failure. */
11249 exit (statfs (".", &fsd) != 1);
11252 if { (eval echo configure:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11253 then
11254 fu_cv_sys_stat_fs_data=yes
11255 else
11256 echo "configure: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11258 rm -fr conftest*
11259 fu_cv_sys_stat_fs_data=no
11261 rm -fr conftest*
11266 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11267 if test $fu_cv_sys_stat_fs_data = yes; then
11268 space=yes
11269 cat >> confdefs.h <<\EOF
11270 #define STAT_STATFS2_FS_DATA 1
11277 # As a gating factor for large file support, in order to
11278 # use <4GB files we must have the following minimal support
11279 # available.
11280 # long long, and a 64 bit off_t or off64_t.
11281 # If we don't have all of these then disable large
11282 # file support.
11284 echo "checking if large file support can be enabled"
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11289 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11290 #include <sys/types.h>
11291 #else
11292 __COMPILE_ERROR_
11293 #endif
11295 int main() {
11296 int i
11297 ; return 0; }
11299 if { (eval echo configure:11300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11300 rm -rf conftest*
11301 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
11302 else
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11305 rm -rf conftest*
11306 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
11308 rm -f conftest*
11309 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
11310 echo "yes"
11311 cat >> confdefs.h <<\EOF
11312 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11315 else
11316 echo "no"
11319 # sometimes getopt_long cannot parse same arguments twice
11320 # e.g. on certain versions of CygWin32
11321 echo $ac_n "checking for working getopt_long""... $ac_c" 1>&6
11322 echo "configure:11323: checking for working getopt_long" >&5
11323 if eval "test \"\${samba_cv_HAVE_GETOPT_LONG+set}\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
11325 else
11327 if test "$cross_compiling" = yes; then
11328 samba_cv_HAVE_GETOPT_LONG=cross
11329 else
11330 cat > conftest.$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11333 #include <getopt.h>
11334 main() {
11335 int i, x = 0; char *argv[] = { "x", "--xx" };
11336 struct option o[] = {{"xx", 0, 0, 1}, {0,0,0,0}};
11337 getopt_long(2, argv, "x", o, &i) == 1 ? x++ : 0; optind = 0;
11338 getopt_long(2, argv, "x", o, &i) == 1 ? x++ : 0;
11339 exit(x == 2 ? 0 : 1);
11342 if { (eval echo configure:11343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11343 then
11344 samba_cv_HAVE_GETOPT_LONG=yes
11345 else
11346 echo "configure: failed program was:" >&5
11347 cat conftest.$ac_ext >&5
11348 rm -fr conftest*
11349 samba_cv_HAVE_GETOPT_LONG=no
11351 rm -fr conftest*
11356 echo "$ac_t""$samba_cv_HAVE_GETOPT_LONG" 1>&6
11357 if test x"$samba_cv_HAVE_GETOPT_LONG" = x"yes"; then
11358 cat >> confdefs.h <<\EOF
11359 #define HAVE_GETOPT_LONG 1
11364 echo "checking configure summary"
11365 if test "$cross_compiling" = yes; then
11367 else
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 #include "${srcdir-.}/tests/summary.c"
11373 if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11374 then
11375 echo "configure OK";
11376 else
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11379 rm -fr conftest*
11380 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11382 rm -fr conftest*
11386 builddir=`pwd`
11389 trap '' 1 2 15
11390 cat > confcache <<\EOF
11391 # This file is a shell script that caches the results of configure
11392 # tests run on this system so they can be shared between configure
11393 # scripts and configure runs. It is not useful on other systems.
11394 # If it contains results you don't want to keep, you may remove or edit it.
11396 # By default, configure uses ./config.cache as the cache file,
11397 # creating it if it does not exist already. You can give configure
11398 # the --cache-file=FILE option to use a different cache file; that is
11399 # what configure does when it calls configure scripts in
11400 # subdirectories, so they share the cache.
11401 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11402 # config.status only pays attention to the cache file if you give it the
11403 # --recheck option to rerun configure.
11406 # The following way of writing the cache mishandles newlines in values,
11407 # but we know of no workaround that is simple, portable, and efficient.
11408 # So, don't put newlines in cache variables' values.
11409 # Ultrix sh set writes to stderr and can't be redirected directly,
11410 # and sets the high bit in the cache file unless we assign to the vars.
11411 (set) 2>&1 |
11412 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11413 *ac_space=\ *)
11414 # `set' does not quote correctly, so add quotes (double-quote substitution
11415 # turns \\\\ into \\, and sed turns \\ into \).
11416 sed -n \
11417 -e "s/'/'\\\\''/g" \
11418 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11421 # `set' quotes correctly as required by POSIX, so do not add quotes.
11422 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11424 esac >> confcache
11425 if cmp -s $cache_file confcache; then
11427 else
11428 if test -w $cache_file; then
11429 echo "updating cache $cache_file"
11430 cat confcache > $cache_file
11431 else
11432 echo "not updating unwritable cache $cache_file"
11435 rm -f confcache
11437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11440 # Let make expand exec_prefix.
11441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11443 # Any assignment to VPATH causes Sun make to only execute
11444 # the first set of double-colon rules, so remove it if not needed.
11445 # If there is a colon in the path, we need to keep it.
11446 if test "x$srcdir" = x.; then
11447 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11450 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11452 DEFS=-DHAVE_CONFIG_H
11454 # Without the "./", some shells look in PATH for config.status.
11455 : ${CONFIG_STATUS=./config.status}
11457 echo creating $CONFIG_STATUS
11458 rm -f $CONFIG_STATUS
11459 cat > $CONFIG_STATUS <<EOF
11460 #! /bin/sh
11461 # Generated automatically by configure.
11462 # Run this file to recreate the current configuration.
11463 # This directory was configured as follows,
11464 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11466 # $0 $ac_configure_args
11468 # Compiler output produced by configure, useful for debugging
11469 # configure, is in ./config.log if it exists.
11471 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11472 for ac_option
11474 case "\$ac_option" in
11475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11476 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11477 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11478 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11479 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
11480 exit 0 ;;
11481 -help | --help | --hel | --he | --h)
11482 echo "\$ac_cs_usage"; exit 0 ;;
11483 *) echo "\$ac_cs_usage"; exit 1 ;;
11484 esac
11485 done
11487 ac_given_srcdir=$srcdir
11488 ac_given_INSTALL="$INSTALL"
11490 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11492 cat >> $CONFIG_STATUS <<EOF
11494 # Protect against being on the right side of a sed subst in config.status.
11495 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11496 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11497 $ac_vpsub
11498 $extrasub
11499 s%@SHELL@%$SHELL%g
11500 s%@CFLAGS@%$CFLAGS%g
11501 s%@CPPFLAGS@%$CPPFLAGS%g
11502 s%@CXXFLAGS@%$CXXFLAGS%g
11503 s%@FFLAGS@%$FFLAGS%g
11504 s%@DEFS@%$DEFS%g
11505 s%@LDFLAGS@%$LDFLAGS%g
11506 s%@LIBS@%$LIBS%g
11507 s%@exec_prefix@%$exec_prefix%g
11508 s%@prefix@%$prefix%g
11509 s%@program_transform_name@%$program_transform_name%g
11510 s%@bindir@%$bindir%g
11511 s%@sbindir@%$sbindir%g
11512 s%@libexecdir@%$libexecdir%g
11513 s%@datadir@%$datadir%g
11514 s%@sysconfdir@%$sysconfdir%g
11515 s%@sharedstatedir@%$sharedstatedir%g
11516 s%@localstatedir@%$localstatedir%g
11517 s%@libdir@%$libdir%g
11518 s%@includedir@%$includedir%g
11519 s%@oldincludedir@%$oldincludedir%g
11520 s%@infodir@%$infodir%g
11521 s%@mandir@%$mandir%g
11522 s%@RUNPROG@%$RUNPROG%g
11523 s%@MPROGS@%$MPROGS%g
11524 s%@LDSHFLAGS@%$LDSHFLAGS%g
11525 s%@HOST_OS@%$HOST_OS%g
11526 s%@WRAP@%$WRAP%g
11527 s%@WRAP32@%$WRAP32%g
11528 s%@PICFLAG@%$PICFLAG%g
11529 s%@SHLIBEXT@%$SHLIBEXT%g
11530 s%@CC@%$CC%g
11531 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11532 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11533 s%@INSTALL_DATA@%$INSTALL_DATA%g
11534 s%@AWK@%$AWK%g
11535 s%@host@%$host%g
11536 s%@host_alias@%$host_alias%g
11537 s%@host_cpu@%$host_cpu%g
11538 s%@host_vendor@%$host_vendor%g
11539 s%@host_os@%$host_os%g
11540 s%@build@%$build%g
11541 s%@build_alias@%$build_alias%g
11542 s%@build_cpu@%$build_cpu%g
11543 s%@build_vendor@%$build_vendor%g
11544 s%@build_os@%$build_os%g
11545 s%@RANLIB@%$RANLIB%g
11546 s%@LN_S@%$LN_S%g
11547 s%@LIBTOOL@%$LIBTOOL%g
11548 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11549 s%@BROKEN_CC@%$BROKEN_CC%g
11550 s%@target@%$target%g
11551 s%@target_alias@%$target_alias%g
11552 s%@target_cpu@%$target_cpu%g
11553 s%@target_vendor@%$target_vendor%g
11554 s%@target_os@%$target_os%g
11555 s%@MAINT@%$MAINT%g
11556 s%@AUTOCONF@%$AUTOCONF%g
11557 s%@AUTOHEADER@%$AUTOHEADER%g
11558 s%@CPP@%$CPP%g
11559 s%@LIBOBJS@%$LIBOBJS%g
11560 s%@ROFF@%$ROFF%g
11561 s%@SAM_PWDB_LIB@%$SAM_PWDB_LIB%g
11562 s%@QUOTAOBJS@%$QUOTAOBJS%g
11563 s%@privatedir@%$privatedir%g
11564 s%@lockdir@%$lockdir%g
11565 s%@swatdir@%$swatdir%g
11566 s%@builddir@%$builddir%g
11568 CEOF
11571 cat >> $CONFIG_STATUS <<\EOF
11573 # Split the substitutions into bite-sized pieces for seds with
11574 # small command number limits, like on Digital OSF/1 and HP-UX.
11575 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11576 ac_file=1 # Number of current file.
11577 ac_beg=1 # First line for current file.
11578 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11579 ac_more_lines=:
11580 ac_sed_cmds=""
11581 while $ac_more_lines; do
11582 if test $ac_beg -gt 1; then
11583 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11584 else
11585 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11587 if test ! -s conftest.s$ac_file; then
11588 ac_more_lines=false
11589 rm -f conftest.s$ac_file
11590 else
11591 if test -z "$ac_sed_cmds"; then
11592 ac_sed_cmds="sed -f conftest.s$ac_file"
11593 else
11594 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11596 ac_file=`expr $ac_file + 1`
11597 ac_beg=$ac_end
11598 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11600 done
11601 if test -z "$ac_sed_cmds"; then
11602 ac_sed_cmds=cat
11606 cat >> $CONFIG_STATUS <<EOF
11608 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11610 cat >> $CONFIG_STATUS <<\EOF
11611 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11612 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11613 case "$ac_file" in
11614 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11615 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11616 *) ac_file_in="${ac_file}.in" ;;
11617 esac
11619 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11621 # Remove last slash and all that follows it. Not all systems have dirname.
11622 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11623 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11624 # The file is in a subdirectory.
11625 test ! -d "$ac_dir" && mkdir "$ac_dir"
11626 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11627 # A "../" for each directory in $ac_dir_suffix.
11628 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11629 else
11630 ac_dir_suffix= ac_dots=
11633 case "$ac_given_srcdir" in
11634 .) srcdir=.
11635 if test -z "$ac_dots"; then top_srcdir=.
11636 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11637 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11638 *) # Relative path.
11639 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11640 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11641 esac
11643 case "$ac_given_INSTALL" in
11644 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11645 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11646 esac
11648 echo creating "$ac_file"
11649 rm -f "$ac_file"
11650 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11651 case "$ac_file" in
11652 *Makefile*) ac_comsub="1i\\
11653 # $configure_input" ;;
11654 *) ac_comsub= ;;
11655 esac
11657 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11658 sed -e "$ac_comsub
11659 s%@configure_input@%$configure_input%g
11660 s%@srcdir@%$srcdir%g
11661 s%@top_srcdir@%$top_srcdir%g
11662 s%@INSTALL@%$INSTALL%g
11663 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11664 fi; done
11665 rm -f conftest.s*
11667 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11668 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11670 # ac_d sets the value in "#define NAME VALUE" lines.
11671 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11672 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11673 ac_dC='\3'
11674 ac_dD='%g'
11675 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11676 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11677 ac_uB='\([ ]\)%\1#\2define\3'
11678 ac_uC=' '
11679 ac_uD='\4%g'
11680 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11681 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11682 ac_eB='$%\1#\2define\3'
11683 ac_eC=' '
11684 ac_eD='%g'
11686 if test "${CONFIG_HEADERS+set}" != set; then
11688 cat >> $CONFIG_STATUS <<EOF
11689 CONFIG_HEADERS="include/config.h"
11691 cat >> $CONFIG_STATUS <<\EOF
11693 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11695 case "$ac_file" in
11696 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11697 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11698 *) ac_file_in="${ac_file}.in" ;;
11699 esac
11701 echo creating $ac_file
11703 rm -f conftest.frag conftest.in conftest.out
11704 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11705 cat $ac_file_inputs > conftest.in
11709 # Transform confdefs.h into a sed script conftest.vals that substitutes
11710 # the proper values into config.h.in to produce config.h. And first:
11711 # Protect against being on the right side of a sed subst in config.status.
11712 # Protect against being in an unquoted here document in config.status.
11713 rm -f conftest.vals
11714 cat > conftest.hdr <<\EOF
11715 s/[\\&%]/\\&/g
11716 s%[\\$`]%\\&%g
11717 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11718 s%ac_d%ac_u%gp
11719 s%ac_u%ac_e%gp
11721 sed -n -f conftest.hdr confdefs.h > conftest.vals
11722 rm -f conftest.hdr
11724 # This sed command replaces #undef with comments. This is necessary, for
11725 # example, in the case of _POSIX_SOURCE, which is predefined and required
11726 # on some systems where configure will not decide to define it.
11727 cat >> conftest.vals <<\EOF
11728 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11731 # Break up conftest.vals because some shells have a limit on
11732 # the size of here documents, and old seds have small limits too.
11734 rm -f conftest.tail
11735 while :
11737 ac_lines=`grep -c . conftest.vals`
11738 # grep -c gives empty output for an empty file on some AIX systems.
11739 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11740 # Write a limited-size here document to conftest.frag.
11741 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11742 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11743 echo 'CEOF
11744 sed -f conftest.frag conftest.in > conftest.out
11745 rm -f conftest.in
11746 mv conftest.out conftest.in
11747 ' >> $CONFIG_STATUS
11748 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11749 rm -f conftest.vals
11750 mv conftest.tail conftest.vals
11751 done
11752 rm -f conftest.vals
11754 cat >> $CONFIG_STATUS <<\EOF
11755 rm -f conftest.frag conftest.h
11756 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11757 cat conftest.in >> conftest.h
11758 rm -f conftest.in
11759 if cmp -s $ac_file conftest.h 2>/dev/null; then
11760 echo "$ac_file is unchanged"
11761 rm -f conftest.h
11762 else
11763 # Remove last slash and all that follows it. Not all systems have dirname.
11764 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11765 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11766 # The file is in a subdirectory.
11767 test ! -d "$ac_dir" && mkdir "$ac_dir"
11769 rm -f $ac_file
11770 mv conftest.h $ac_file
11772 fi; done
11775 cat >> $CONFIG_STATUS <<EOF
11778 cat >> $CONFIG_STATUS <<\EOF
11780 exit 0
11782 chmod +x $CONFIG_STATUS
11783 rm -fr confdefs* $ac_clean_files
11784 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1