merge from 2.2
[Samba/gbeck.git] / source / configure
blob419d2cf542289f63be12601efc383d5f62ce19a6
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 ac_help="$ac_help
18 --enable-static[=PKGS] build static libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 ac_help="$ac_help
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 ac_help="$ac_help
24 --disable-libtool-lock avoid locking (might break parallel builds)"
25 ac_help="$ac_help
26 --with-smbwrapper Include SMB wrapper support
27 --without-smbwrapper Don't include SMB wrapper support (default)"
28 ac_help="$ac_help
29 --with-afs Include AFS support
30 --without-afs Don't include AFS support (default)"
31 ac_help="$ac_help
32 --with-dfs Include DFS support
33 --without-dfs Don't include DFS support (default)"
34 ac_help="$ac_help
35 --with-krb4=base-dir Include Kerberos IV support
36 --without-krb4 Don't include Kerberos IV support (default)"
37 ac_help="$ac_help
38 --with-krb5=base-dir Include Kerberos 5 support
39 --without-krb5 Don't include Kerberos 5 support (default)"
40 ac_help="$ac_help
41 --with-automount Include AUTOMOUNT support
42 --without-automount Don't include AUTOMOUNT support (default)"
43 ac_help="$ac_help
44 --with-smbmount Include SMBMOUNT (Linux only) support
45 --without-smbmount Don't include SMBMOUNT support (default)"
46 ac_help="$ac_help
47 --with-pam Include PAM password database support
48 --without-pam Don't include PAM password database support (default)"
49 ac_help="$ac_help
50 --with-tdbsam Include experimental TDB password database
51 --without-tdbsam Don't include experimental TDB password database (default)"
52 ac_help="$ac_help
53 --with-ldap Include LDAP support
54 --without-ldap Don't include LDAP support (default)"
55 ac_help="$ac_help
56 --with-nisplus Include NISPLUS password database support
57 --without-nisplus Don't include NISPLUS password database support (default)"
58 ac_help="$ac_help
59 --with-nisplus-home Include NISPLUS_HOME support
60 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
61 ac_help="$ac_help
62 --with-ssl Include SSL support
63 --without-ssl Don't include SSL support (default)
64 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
65 ac_help="$ac_help
66 --with-syslog Include experimental SYSLOG support
67 --without-syslog Don't include SYSLOG support (default)"
68 ac_help="$ac_help
69 --with-profile Include profile support
70 --without-profile Don't include profile support (default)"
71 ac_help="$ac_help
72 --with-netatalk Include experimental Netatalk support
73 --without-netatalk Don't include experimental Netatalk support (default)"
74 ac_help="$ac_help
75 --with-quotas Include experimental disk-quota support
76 --without-quotas Don't include experimental disk-quota support (default)"
77 ac_help="$ac_help
78 --with-utmp Include experimental utmp accounting
79 --without-utmp Don't include experimental utmp accounting (default)"
80 ac_help="$ac_help
81 --with-msdfs Include MS Dfs support
82 --without-msdfs Don't include MS Dfs support (default)"
83 ac_help="$ac_help
84 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
85 ac_help="$ac_help
86 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
87 ac_help="$ac_help
88 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
89 ac_help="$ac_help
90 --with-spinlocks use spin locks instead of fcntl locks "
91 ac_help="$ac_help
92 --with-acl-support Include ACL support
93 --without-acl-support Don't include ACL support (default)"
95 # Initialize some variables set by options.
96 # The variables have the same names as the options, with
97 # dashes changed to underlines.
98 build=NONE
99 cache_file=./config.cache
100 exec_prefix=NONE
101 host=NONE
102 no_create=
103 nonopt=NONE
104 no_recursion=
105 prefix=NONE
106 program_prefix=NONE
107 program_suffix=NONE
108 program_transform_name=s,x,x,
109 silent=
110 site=
111 srcdir=
112 target=NONE
113 verbose=
114 x_includes=NONE
115 x_libraries=NONE
116 bindir='${exec_prefix}/bin'
117 sbindir='${exec_prefix}/sbin'
118 libexecdir='${exec_prefix}/libexec'
119 datadir='${prefix}/share'
120 sysconfdir='${prefix}/etc'
121 sharedstatedir='${prefix}/com'
122 localstatedir='${prefix}/var'
123 libdir='${exec_prefix}/lib'
124 includedir='${prefix}/include'
125 oldincludedir='/usr/include'
126 infodir='${prefix}/info'
127 mandir='${prefix}/man'
129 # Initialize some other variables.
130 subdirs=
131 MFLAGS= MAKEFLAGS=
132 SHELL=${CONFIG_SHELL-/bin/sh}
133 # Maximum number of lines to put in a shell here document.
134 ac_max_here_lines=12
136 ac_prev=
137 for ac_option
140 # If the previous option needs an argument, assign it.
141 if test -n "$ac_prev"; then
142 eval "$ac_prev=\$ac_option"
143 ac_prev=
144 continue
147 case "$ac_option" in
148 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
149 *) ac_optarg= ;;
150 esac
152 # Accept the important Cygnus configure options, so we can diagnose typos.
154 case "$ac_option" in
156 -bindir | --bindir | --bindi | --bind | --bin | --bi)
157 ac_prev=bindir ;;
158 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
159 bindir="$ac_optarg" ;;
161 -build | --build | --buil | --bui | --bu)
162 ac_prev=build ;;
163 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
164 build="$ac_optarg" ;;
166 -cache-file | --cache-file | --cache-fil | --cache-fi \
167 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
168 ac_prev=cache_file ;;
169 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
170 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
171 cache_file="$ac_optarg" ;;
173 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
174 ac_prev=datadir ;;
175 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
176 | --da=*)
177 datadir="$ac_optarg" ;;
179 -disable-* | --disable-*)
180 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}=no" ;;
188 -enable-* | --enable-*)
189 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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 case "$ac_option" in
196 *=*) ;;
197 *) ac_optarg=yes ;;
198 esac
199 eval "enable_${ac_feature}='$ac_optarg'" ;;
201 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
202 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
203 | --exec | --exe | --ex)
204 ac_prev=exec_prefix ;;
205 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
206 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
207 | --exec=* | --exe=* | --ex=*)
208 exec_prefix="$ac_optarg" ;;
210 -gas | --gas | --ga | --g)
211 # Obsolete; use --with-gas.
212 with_gas=yes ;;
214 -help | --help | --hel | --he)
215 # Omit some internal or obsolete options to make the list less imposing.
216 # This message is too long to be a string in the A/UX 3.1 sh.
217 cat << EOF
218 Usage: configure [options] [host]
219 Options: [defaults in brackets after descriptions]
220 Configuration:
221 --cache-file=FILE cache test results in FILE
222 --help print this message
223 --no-create do not create output files
224 --quiet, --silent do not print \`checking...' messages
225 --version print the version of autoconf that created configure
226 Directory and file names:
227 --prefix=PREFIX install architecture-independent files in PREFIX
228 [$ac_default_prefix]
229 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 [same as prefix]
231 --bindir=DIR user executables in DIR [EPREFIX/bin]
232 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
233 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
234 --datadir=DIR read-only architecture-independent data in DIR
235 [PREFIX/share]
236 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
237 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 [PREFIX/com]
239 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
240 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
241 --includedir=DIR C header files in DIR [PREFIX/include]
242 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
243 --infodir=DIR info documentation in DIR [PREFIX/info]
244 --mandir=DIR man documentation in DIR [PREFIX/man]
245 --srcdir=DIR find the sources in DIR [configure dir or ..]
246 --program-prefix=PREFIX prepend PREFIX to installed program names
247 --program-suffix=SUFFIX append SUFFIX to installed program names
248 --program-transform-name=PROGRAM
249 run sed PROGRAM on installed program names
251 cat << EOF
252 Host type:
253 --build=BUILD configure for building on BUILD [BUILD=HOST]
254 --host=HOST configure for HOST [guessed]
255 --target=TARGET configure for TARGET [TARGET=HOST]
256 Features and packages:
257 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
258 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
259 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
260 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
261 --x-includes=DIR X include files are in DIR
262 --x-libraries=DIR X library files are in DIR
264 if test -n "$ac_help"; then
265 echo "--enable and --with options recognized:$ac_help"
267 exit 0 ;;
269 -host | --host | --hos | --ho)
270 ac_prev=host ;;
271 -host=* | --host=* | --hos=* | --ho=*)
272 host="$ac_optarg" ;;
274 -includedir | --includedir | --includedi | --included | --include \
275 | --includ | --inclu | --incl | --inc)
276 ac_prev=includedir ;;
277 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
278 | --includ=* | --inclu=* | --incl=* | --inc=*)
279 includedir="$ac_optarg" ;;
281 -infodir | --infodir | --infodi | --infod | --info | --inf)
282 ac_prev=infodir ;;
283 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
284 infodir="$ac_optarg" ;;
286 -libdir | --libdir | --libdi | --libd)
287 ac_prev=libdir ;;
288 -libdir=* | --libdir=* | --libdi=* | --libd=*)
289 libdir="$ac_optarg" ;;
291 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
292 | --libexe | --libex | --libe)
293 ac_prev=libexecdir ;;
294 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
295 | --libexe=* | --libex=* | --libe=*)
296 libexecdir="$ac_optarg" ;;
298 -localstatedir | --localstatedir | --localstatedi | --localstated \
299 | --localstate | --localstat | --localsta | --localst \
300 | --locals | --local | --loca | --loc | --lo)
301 ac_prev=localstatedir ;;
302 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
303 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
304 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
305 localstatedir="$ac_optarg" ;;
307 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
308 ac_prev=mandir ;;
309 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
310 mandir="$ac_optarg" ;;
312 -nfp | --nfp | --nf)
313 # Obsolete; use --without-fp.
314 with_fp=no ;;
316 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
317 | --no-cr | --no-c)
318 no_create=yes ;;
320 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
321 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
322 no_recursion=yes ;;
324 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
325 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
326 | --oldin | --oldi | --old | --ol | --o)
327 ac_prev=oldincludedir ;;
328 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
329 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
330 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
331 oldincludedir="$ac_optarg" ;;
333 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
334 ac_prev=prefix ;;
335 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
336 prefix="$ac_optarg" ;;
338 -program-prefix | --program-prefix | --program-prefi | --program-pref \
339 | --program-pre | --program-pr | --program-p)
340 ac_prev=program_prefix ;;
341 -program-prefix=* | --program-prefix=* | --program-prefi=* \
342 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
343 program_prefix="$ac_optarg" ;;
345 -program-suffix | --program-suffix | --program-suffi | --program-suff \
346 | --program-suf | --program-su | --program-s)
347 ac_prev=program_suffix ;;
348 -program-suffix=* | --program-suffix=* | --program-suffi=* \
349 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
350 program_suffix="$ac_optarg" ;;
352 -program-transform-name | --program-transform-name \
353 | --program-transform-nam | --program-transform-na \
354 | --program-transform-n | --program-transform- \
355 | --program-transform | --program-transfor \
356 | --program-transfo | --program-transf \
357 | --program-trans | --program-tran \
358 | --progr-tra | --program-tr | --program-t)
359 ac_prev=program_transform_name ;;
360 -program-transform-name=* | --program-transform-name=* \
361 | --program-transform-nam=* | --program-transform-na=* \
362 | --program-transform-n=* | --program-transform-=* \
363 | --program-transform=* | --program-transfor=* \
364 | --program-transfo=* | --program-transf=* \
365 | --program-trans=* | --program-tran=* \
366 | --progr-tra=* | --program-tr=* | --program-t=*)
367 program_transform_name="$ac_optarg" ;;
369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
370 | -silent | --silent | --silen | --sile | --sil)
371 silent=yes ;;
373 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
374 ac_prev=sbindir ;;
375 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
376 | --sbi=* | --sb=*)
377 sbindir="$ac_optarg" ;;
379 -sharedstatedir | --sharedstatedir | --sharedstatedi \
380 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
381 | --sharedst | --shareds | --shared | --share | --shar \
382 | --sha | --sh)
383 ac_prev=sharedstatedir ;;
384 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
385 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
386 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
387 | --sha=* | --sh=*)
388 sharedstatedir="$ac_optarg" ;;
390 -site | --site | --sit)
391 ac_prev=site ;;
392 -site=* | --site=* | --sit=*)
393 site="$ac_optarg" ;;
395 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
396 ac_prev=srcdir ;;
397 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
398 srcdir="$ac_optarg" ;;
400 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
401 | --syscon | --sysco | --sysc | --sys | --sy)
402 ac_prev=sysconfdir ;;
403 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
404 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
405 sysconfdir="$ac_optarg" ;;
407 -target | --target | --targe | --targ | --tar | --ta | --t)
408 ac_prev=target ;;
409 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
410 target="$ac_optarg" ;;
412 -v | -verbose | --verbose | --verbos | --verbo | --verb)
413 verbose=yes ;;
415 -version | --version | --versio | --versi | --vers)
416 echo "configure generated by autoconf version 2.13"
417 exit 0 ;;
419 -with-* | --with-*)
420 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 case "$ac_option" in
427 *=*) ;;
428 *) ac_optarg=yes ;;
429 esac
430 eval "with_${ac_package}='$ac_optarg'" ;;
432 -without-* | --without-*)
433 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
439 eval "with_${ac_package}=no" ;;
441 --x)
442 # Obsolete; use --with-x.
443 with_x=yes ;;
445 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
446 | --x-incl | --x-inc | --x-in | --x-i)
447 ac_prev=x_includes ;;
448 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
449 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
450 x_includes="$ac_optarg" ;;
452 -x-libraries | --x-libraries | --x-librarie | --x-librari \
453 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
454 ac_prev=x_libraries ;;
455 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
456 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
457 x_libraries="$ac_optarg" ;;
459 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
463 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
464 echo "configure: warning: $ac_option: invalid host type" 1>&2
466 if test "x$nonopt" != xNONE; then
467 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
469 nonopt="$ac_option"
472 esac
473 done
475 if test -n "$ac_prev"; then
476 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
479 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
481 # File descriptor usage:
482 # 0 standard input
483 # 1 file creation
484 # 2 errors and warnings
485 # 3 some systems may open it to /dev/tty
486 # 4 used on the Kubota Titan
487 # 6 checking for... messages and results
488 # 5 compiler messages saved in config.log
489 if test "$silent" = yes; then
490 exec 6>/dev/null
491 else
492 exec 6>&1
494 exec 5>./config.log
496 echo "\
497 This file contains any messages produced by compilers while
498 running configure, to aid debugging if configure makes a mistake.
499 " 1>&5
501 # Strip out --no-create and --no-recursion so they do not pile up.
502 # Also quote any args containing shell metacharacters.
503 ac_configure_args=
504 for ac_arg
506 case "$ac_arg" in
507 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
508 | --no-cr | --no-c) ;;
509 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
510 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
511 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
512 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
513 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
514 esac
515 done
517 # NLS nuisances.
518 # Only set these to C if already set. These must not be set unconditionally
519 # because not all systems understand e.g. LANG=C (notably SCO).
520 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
521 # Non-C LC_CTYPE values break the ctype check.
522 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
523 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
524 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
525 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
527 # confdefs.h avoids OS command line length limits that DEFS can exceed.
528 rm -rf conftest* confdefs.h
529 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
530 echo > confdefs.h
532 # A filename unique to this package, relative to the directory that
533 # configure is in, which we can look for to find out if srcdir is correct.
534 ac_unique_file=include/includes.h
536 # Find the source files, if location was not specified.
537 if test -z "$srcdir"; then
538 ac_srcdir_defaulted=yes
539 # Try the directory containing this script, then its parent.
540 ac_prog=$0
541 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
542 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
543 srcdir=$ac_confdir
544 if test ! -r $srcdir/$ac_unique_file; then
545 srcdir=..
547 else
548 ac_srcdir_defaulted=no
550 if test ! -r $srcdir/$ac_unique_file; then
551 if test "$ac_srcdir_defaulted" = yes; then
552 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 else
554 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
557 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
559 # Prefer explicitly selected file to automatically selected ones.
560 if test -z "$CONFIG_SITE"; then
561 if test "x$prefix" != xNONE; then
562 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
563 else
564 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
567 for ac_site_file in $CONFIG_SITE; do
568 if test -r "$ac_site_file"; then
569 echo "loading site script $ac_site_file"
570 . "$ac_site_file"
572 done
574 if test -r "$cache_file"; then
575 echo "loading cache $cache_file"
576 . $cache_file
577 else
578 echo "creating cache $cache_file"
579 > $cache_file
582 ac_ext=c
583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
584 ac_cpp='$CPP $CPPFLAGS'
585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
587 cross_compiling=$ac_cv_prog_cc_cross
589 ac_exeext=
590 ac_objext=o
591 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
592 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
593 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
594 ac_n= ac_c='
595 ' ac_t=' '
596 else
597 ac_n=-n ac_c= ac_t=
599 else
600 ac_n= ac_c='\c' ac_t=
605 # we want to be compatibe with older versions of Samba
618 # compile with optimisation and without debugging by default
619 CFLAGS=${CFLAGS-"-O"}
621 # Extract the first word of "gcc", so it can be a program name with args.
622 set dummy gcc; ac_word=$2
623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
624 echo "configure:625: checking for $ac_word" >&5
625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
627 else
628 if test -n "$CC"; then
629 ac_cv_prog_CC="$CC" # Let the user override the test.
630 else
631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
632 ac_dummy="$PATH"
633 for ac_dir in $ac_dummy; do
634 test -z "$ac_dir" && ac_dir=.
635 if test -f $ac_dir/$ac_word; then
636 ac_cv_prog_CC="gcc"
637 break
639 done
640 IFS="$ac_save_ifs"
643 CC="$ac_cv_prog_CC"
644 if test -n "$CC"; then
645 echo "$ac_t""$CC" 1>&6
646 else
647 echo "$ac_t""no" 1>&6
650 if test -z "$CC"; then
651 # Extract the first word of "cc", so it can be a program name with args.
652 set dummy cc; ac_word=$2
653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654 echo "configure:655: checking for $ac_word" >&5
655 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
657 else
658 if test -n "$CC"; then
659 ac_cv_prog_CC="$CC" # Let the user override the test.
660 else
661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
662 ac_prog_rejected=no
663 ac_dummy="$PATH"
664 for ac_dir in $ac_dummy; do
665 test -z "$ac_dir" && ac_dir=.
666 if test -f $ac_dir/$ac_word; then
667 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
668 ac_prog_rejected=yes
669 continue
671 ac_cv_prog_CC="cc"
672 break
674 done
675 IFS="$ac_save_ifs"
676 if test $ac_prog_rejected = yes; then
677 # We found a bogon in the path, so make sure we never use it.
678 set dummy $ac_cv_prog_CC
679 shift
680 if test $# -gt 0; then
681 # We chose a different compiler from the bogus one.
682 # However, it has the same basename, so the bogon will be chosen
683 # first if we set CC to just the basename; use the full file name.
684 shift
685 set dummy "$ac_dir/$ac_word" "$@"
686 shift
687 ac_cv_prog_CC="$@"
692 CC="$ac_cv_prog_CC"
693 if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
695 else
696 echo "$ac_t""no" 1>&6
699 if test -z "$CC"; then
700 case "`uname -s`" in
701 *win32* | *WIN32*)
702 # Extract the first word of "cl", so it can be a program name with args.
703 set dummy cl; ac_word=$2
704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
705 echo "configure:706: checking for $ac_word" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
708 else
709 if test -n "$CC"; then
710 ac_cv_prog_CC="$CC" # Let the user override the test.
711 else
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
713 ac_dummy="$PATH"
714 for ac_dir in $ac_dummy; do
715 test -z "$ac_dir" && ac_dir=.
716 if test -f $ac_dir/$ac_word; then
717 ac_cv_prog_CC="cl"
718 break
720 done
721 IFS="$ac_save_ifs"
724 CC="$ac_cv_prog_CC"
725 if test -n "$CC"; then
726 echo "$ac_t""$CC" 1>&6
727 else
728 echo "$ac_t""no" 1>&6
731 esac
733 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
736 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
737 echo "configure:738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
739 ac_ext=c
740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
741 ac_cpp='$CPP $CPPFLAGS'
742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
744 cross_compiling=$ac_cv_prog_cc_cross
746 cat > conftest.$ac_ext << EOF
748 #line 749 "configure"
749 #include "confdefs.h"
751 main(){return(0);}
753 if { (eval echo configure:754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
754 ac_cv_prog_cc_works=yes
755 # If we can't run a trivial program, we are probably using a cross compiler.
756 if (./conftest; exit) 2>/dev/null; then
757 ac_cv_prog_cc_cross=no
758 else
759 ac_cv_prog_cc_cross=yes
761 else
762 echo "configure: failed program was:" >&5
763 cat conftest.$ac_ext >&5
764 ac_cv_prog_cc_works=no
766 rm -fr conftest*
767 ac_ext=c
768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
769 ac_cpp='$CPP $CPPFLAGS'
770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
772 cross_compiling=$ac_cv_prog_cc_cross
774 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
775 if test $ac_cv_prog_cc_works = no; then
776 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
780 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
781 cross_compiling=$ac_cv_prog_cc_cross
783 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
784 echo "configure:785: checking whether we are using GNU C" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
787 else
788 cat > conftest.c <<EOF
789 #ifdef __GNUC__
790 yes;
791 #endif
793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
794 ac_cv_prog_gcc=yes
795 else
796 ac_cv_prog_gcc=no
800 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
802 if test $ac_cv_prog_gcc = yes; then
803 GCC=yes
804 else
805 GCC=
808 ac_test_CFLAGS="${CFLAGS+set}"
809 ac_save_CFLAGS="$CFLAGS"
810 CFLAGS=
811 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
812 echo "configure:813: checking whether ${CC-cc} accepts -g" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
815 else
816 echo 'void f(){}' > conftest.c
817 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
818 ac_cv_prog_cc_g=yes
819 else
820 ac_cv_prog_cc_g=no
822 rm -f conftest*
826 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
827 if test "$ac_test_CFLAGS" = set; then
828 CFLAGS="$ac_save_CFLAGS"
829 elif test $ac_cv_prog_cc_g = yes; then
830 if test "$GCC" = yes; then
831 CFLAGS="-g -O2"
832 else
833 CFLAGS="-g"
835 else
836 if test "$GCC" = yes; then
837 CFLAGS="-O2"
838 else
839 CFLAGS=
843 ac_aux_dir=
844 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
845 if test -f $ac_dir/install-sh; then
846 ac_aux_dir=$ac_dir
847 ac_install_sh="$ac_aux_dir/install-sh -c"
848 break
849 elif test -f $ac_dir/install.sh; then
850 ac_aux_dir=$ac_dir
851 ac_install_sh="$ac_aux_dir/install.sh -c"
852 break
854 done
855 if test -z "$ac_aux_dir"; then
856 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
858 ac_config_guess=$ac_aux_dir/config.guess
859 ac_config_sub=$ac_aux_dir/config.sub
860 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
862 # Find a good install program. We prefer a C program (faster),
863 # so one script is as good as another. But avoid the broken or
864 # incompatible versions:
865 # SysV /etc/install, /usr/sbin/install
866 # SunOS /usr/etc/install
867 # IRIX /sbin/install
868 # AIX /bin/install
869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
872 # ./install, which can be erroneously created by make from ./install.sh.
873 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
874 echo "configure:875: checking for a BSD compatible install" >&5
875 if test -z "$INSTALL"; then
876 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
878 else
879 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
880 for ac_dir in $PATH; do
881 # Account for people who put trailing slashes in PATH elements.
882 case "$ac_dir/" in
883 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
885 # OSF1 and SCO ODT 3.0 have their own names for install.
886 # Don't use installbsd from OSF since it installs stuff as root
887 # by default.
888 for ac_prog in ginstall scoinst install; do
889 if test -f $ac_dir/$ac_prog; then
890 if test $ac_prog = install &&
891 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
892 # AIX install. It has an incompatible calling convention.
894 else
895 ac_cv_path_install="$ac_dir/$ac_prog -c"
896 break 2
899 done
901 esac
902 done
903 IFS="$ac_save_IFS"
906 if test "${ac_cv_path_install+set}" = set; then
907 INSTALL="$ac_cv_path_install"
908 else
909 # As a last resort, use the slow shell script. We don't cache a
910 # path for INSTALL within a source directory, because that will
911 # break other packages using the cache if that directory is
912 # removed, or if the path is relative.
913 INSTALL="$ac_install_sh"
916 echo "$ac_t""$INSTALL" 1>&6
918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
919 # It thinks the first close brace ends the variable substitution.
920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
926 for ac_prog in gawk mawk nawk awk
928 # Extract the first word of "$ac_prog", so it can be a program name with args.
929 set dummy $ac_prog; ac_word=$2
930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931 echo "configure:932: checking for $ac_word" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
934 else
935 if test -n "$AWK"; then
936 ac_cv_prog_AWK="$AWK" # Let the user override the test.
937 else
938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 ac_dummy="$PATH"
940 for ac_dir in $ac_dummy; do
941 test -z "$ac_dir" && ac_dir=.
942 if test -f $ac_dir/$ac_word; then
943 ac_cv_prog_AWK="$ac_prog"
944 break
946 done
947 IFS="$ac_save_ifs"
950 AWK="$ac_cv_prog_AWK"
951 if test -n "$AWK"; then
952 echo "$ac_t""$AWK" 1>&6
953 else
954 echo "$ac_t""no" 1>&6
957 test -n "$AWK" && break
958 done
960 # Check whether --enable-shared or --disable-shared was given.
961 if test "${enable_shared+set}" = set; then
962 enableval="$enable_shared"
963 p=${PACKAGE-default}
964 case "$enableval" in
965 yes) enable_shared=yes ;;
966 no) enable_shared=no ;;
968 enable_shared=no
969 # Look at the argument we got. We use all the common list separators.
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
971 for pkg in $enableval; do
972 if test "X$pkg" = "X$p"; then
973 enable_shared=yes
975 done
976 IFS="$ac_save_ifs"
978 esac
979 else
980 enable_shared=yes
983 # Check whether --enable-static or --disable-static was given.
984 if test "${enable_static+set}" = set; then
985 enableval="$enable_static"
986 p=${PACKAGE-default}
987 case "$enableval" in
988 yes) enable_static=yes ;;
989 no) enable_static=no ;;
991 enable_static=no
992 # Look at the argument we got. We use all the common list separators.
993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
994 for pkg in $enableval; do
995 if test "X$pkg" = "X$p"; then
996 enable_static=yes
998 done
999 IFS="$ac_save_ifs"
1001 esac
1002 else
1003 enable_static=yes
1006 # Check whether --enable-fast-install or --disable-fast-install was given.
1007 if test "${enable_fast_install+set}" = set; then
1008 enableval="$enable_fast_install"
1009 p=${PACKAGE-default}
1010 case "$enableval" in
1011 yes) enable_fast_install=yes ;;
1012 no) enable_fast_install=no ;;
1014 enable_fast_install=no
1015 # Look at the argument we got. We use all the common list separators.
1016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1017 for pkg in $enableval; do
1018 if test "X$pkg" = "X$p"; then
1019 enable_fast_install=yes
1021 done
1022 IFS="$ac_save_ifs"
1024 esac
1025 else
1026 enable_fast_install=yes
1030 # Make sure we can run config.sub.
1031 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1032 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1035 echo $ac_n "checking host system type""... $ac_c" 1>&6
1036 echo "configure:1037: checking host system type" >&5
1038 host_alias=$host
1039 case "$host_alias" in
1040 NONE)
1041 case $nonopt in
1042 NONE)
1043 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1044 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1045 fi ;;
1046 *) host_alias=$nonopt ;;
1047 esac ;;
1048 esac
1050 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1051 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1052 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1053 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1054 echo "$ac_t""$host" 1>&6
1056 echo $ac_n "checking build system type""... $ac_c" 1>&6
1057 echo "configure:1058: checking build system type" >&5
1059 build_alias=$build
1060 case "$build_alias" in
1061 NONE)
1062 case $nonopt in
1063 NONE) build_alias=$host_alias ;;
1064 *) build_alias=$nonopt ;;
1065 esac ;;
1066 esac
1068 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1069 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1070 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1071 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1072 echo "$ac_t""$build" 1>&6
1074 # Extract the first word of "ranlib", so it can be a program name with args.
1075 set dummy ranlib; ac_word=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1080 else
1081 if test -n "$RANLIB"; then
1082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1083 else
1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1085 ac_dummy="$PATH"
1086 for ac_dir in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_prog_RANLIB="ranlib"
1090 break
1092 done
1093 IFS="$ac_save_ifs"
1094 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1097 RANLIB="$ac_cv_prog_RANLIB"
1098 if test -n "$RANLIB"; then
1099 echo "$ac_t""$RANLIB" 1>&6
1100 else
1101 echo "$ac_t""no" 1>&6
1104 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1105 if test "${with_gnu_ld+set}" = set; then
1106 withval="$with_gnu_ld"
1107 test "$withval" = no || with_gnu_ld=yes
1108 else
1109 with_gnu_ld=no
1112 ac_prog=ld
1113 if test "$ac_cv_prog_gcc" = yes; then
1114 # Check if gcc -print-prog-name=ld gives a path.
1115 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1116 echo "configure:1117: checking for ld used by GCC" >&5
1117 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1118 case "$ac_prog" in
1119 # Accept absolute paths.
1120 [\\/]* | [A-Za-z]:[\\/]*)
1121 re_direlt='/[^/][^/]*/\.\./'
1122 # Canonicalize the path of ld
1123 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1124 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1125 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1126 done
1127 test -z "$LD" && LD="$ac_prog"
1130 # If it fails, then pretend we aren't using GCC.
1131 ac_prog=ld
1134 # If it is relative, then search for the first ld in PATH.
1135 with_gnu_ld=unknown
1137 esac
1138 elif test "$with_gnu_ld" = yes; then
1139 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1140 echo "configure:1141: checking for GNU ld" >&5
1141 else
1142 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1143 echo "configure:1144: checking for non-GNU ld" >&5
1145 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148 if test -z "$LD"; then
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1150 for ac_dir in $PATH; do
1151 test -z "$ac_dir" && ac_dir=.
1152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1153 ac_cv_path_LD="$ac_dir/$ac_prog"
1154 # Check to see if the program is GNU ld. I'd rather use --version,
1155 # but apparently some GNU ld's only accept -v.
1156 # Break only if it was the GNU/non-GNU ld that we prefer.
1157 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1158 test "$with_gnu_ld" != no && break
1159 else
1160 test "$with_gnu_ld" != yes && break
1163 done
1164 IFS="$ac_save_ifs"
1165 else
1166 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1170 LD="$ac_cv_path_LD"
1171 if test -n "$LD"; then
1172 echo "$ac_t""$LD" 1>&6
1173 else
1174 echo "$ac_t""no" 1>&6
1176 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1177 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1178 echo "configure:1179: checking if the linker ($LD) is GNU ld" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1183 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1184 ac_cv_prog_gnu_ld=yes
1185 else
1186 ac_cv_prog_gnu_ld=no
1190 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1193 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1194 echo "configure:1195: checking for BSD-compatible nm" >&5
1195 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198 if test -n "$NM"; then
1199 # Let the user override the test.
1200 ac_cv_path_NM="$NM"
1201 else
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1203 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1206 # Check to see if the nm accepts a BSD-compat flag.
1207 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1208 # nm: unknown option "B" ignored
1209 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1210 ac_cv_path_NM="$ac_dir/nm -B"
1211 break
1212 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1213 ac_cv_path_NM="$ac_dir/nm -p"
1214 break
1215 else
1216 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1217 continue # so that we can try to find one that supports BSD flags
1220 done
1221 IFS="$ac_save_ifs"
1222 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1226 NM="$ac_cv_path_NM"
1227 echo "$ac_t""$NM" 1>&6
1229 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether ln -s works" >&5
1231 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1233 else
1234 rm -f conftestdata
1235 if ln -s X conftestdata 2>/dev/null
1236 then
1237 rm -f conftestdata
1238 ac_cv_prog_LN_S="ln -s"
1239 else
1240 ac_cv_prog_LN_S=ln
1243 LN_S="$ac_cv_prog_LN_S"
1244 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1245 echo "$ac_t""yes" 1>&6
1246 else
1247 echo "$ac_t""no" 1>&6
1251 case "$target" in
1252 NONE) lt_target="$host" ;;
1253 *) lt_target="$target" ;;
1254 esac
1256 # Check for any special flags to pass to ltconfig.
1257 libtool_flags="--cache-file=$cache_file"
1258 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1259 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1260 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1261 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1262 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1265 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1266 if test "${enable_libtool_lock+set}" = set; then
1267 enableval="$enable_libtool_lock"
1271 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1272 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1274 # Some flags need to be propagated to the compiler or linker for good
1275 # libtool support.
1276 case "$lt_target" in
1277 *-*-irix6*)
1278 # Find out which ABI we are using.
1279 echo '#line 1280 "configure"' > conftest.$ac_ext
1280 if { (eval echo configure:1281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1281 case "`/usr/bin/file conftest.o`" in
1282 *32-bit*)
1283 LD="${LD-ld} -32"
1285 *N32*)
1286 LD="${LD-ld} -n32"
1288 *64-bit*)
1289 LD="${LD-ld} -64"
1291 esac
1293 rm -rf conftest*
1296 *-*-sco3.2v5*)
1297 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1298 SAVE_CFLAGS="$CFLAGS"
1299 CFLAGS="$CFLAGS -belf"
1300 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether the C compiler needs -belf" >&5
1302 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1304 else
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1309 int main() {
1311 ; return 0; }
1313 if { (eval echo configure:1314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1314 rm -rf conftest*
1315 lt_cv_cc_needs_belf=yes
1316 else
1317 echo "configure: failed program was:" >&5
1318 cat conftest.$ac_ext >&5
1319 rm -rf conftest*
1320 lt_cv_cc_needs_belf=no
1322 rm -f conftest*
1325 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1328 CFLAGS="$SAVE_CFLAGS"
1333 esac
1336 # Save cache, so that ltconfig can load it
1337 cat > confcache <<\EOF
1338 # This file is a shell script that caches the results of configure
1339 # tests run on this system so they can be shared between configure
1340 # scripts and configure runs. It is not useful on other systems.
1341 # If it contains results you don't want to keep, you may remove or edit it.
1343 # By default, configure uses ./config.cache as the cache file,
1344 # creating it if it does not exist already. You can give configure
1345 # the --cache-file=FILE option to use a different cache file; that is
1346 # what configure does when it calls configure scripts in
1347 # subdirectories, so they share the cache.
1348 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1349 # config.status only pays attention to the cache file if you give it the
1350 # --recheck option to rerun configure.
1353 # The following way of writing the cache mishandles newlines in values,
1354 # but we know of no workaround that is simple, portable, and efficient.
1355 # So, don't put newlines in cache variables' values.
1356 # Ultrix sh set writes to stderr and can't be redirected directly,
1357 # and sets the high bit in the cache file unless we assign to the vars.
1358 (set) 2>&1 |
1359 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1360 *ac_space=\ *)
1361 # `set' does not quote correctly, so add quotes (double-quote substitution
1362 # turns \\\\ into \\, and sed turns \\ into \).
1363 sed -n \
1364 -e "s/'/'\\\\''/g" \
1365 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1368 # `set' quotes correctly as required by POSIX, so do not add quotes.
1369 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1371 esac >> confcache
1372 if cmp -s $cache_file confcache; then
1374 else
1375 if test -w $cache_file; then
1376 echo "updating cache $cache_file"
1377 cat confcache > $cache_file
1378 else
1379 echo "not updating unwritable cache $cache_file"
1382 rm -f confcache
1385 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1386 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1387 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1388 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1389 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1390 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1391 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1392 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1394 # Reload cache, that may have been modified by ltconfig
1395 if test -r "$cache_file"; then
1396 echo "loading cache $cache_file"
1397 . $cache_file
1398 else
1399 echo "creating cache $cache_file"
1400 > $cache_file
1404 # This can be used to rebuild libtool when needed
1405 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1407 # Always use our own libtool.
1408 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1410 # Redirect the config.log output again, so that the ltconfig log is not
1411 # clobbered by the next message.
1412 exec 5>>./config.log
1416 if test "x$CC" != xcc; then
1417 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether $CC and cc understand -c and -o together" >&5
1419 else
1420 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether cc understands -c and -o together" >&5
1423 set dummy $CC; ac_cc="`echo $2 |
1424 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1425 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1427 else
1428 echo 'foo(){}' > conftest.c
1429 # Make sure it works both with $CC and with simple cc.
1430 # We do the test twice because some compilers refuse to overwrite an
1431 # existing .o file with -o, though they will create one.
1432 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1433 if { (eval echo configure:1434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1434 test -f conftest.o && { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1435 then
1436 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1437 if test "x$CC" != xcc; then
1438 # Test first that cc exists at all.
1439 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1440 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1441 if { (eval echo configure:1442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1442 test -f conftest.o && { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1443 then
1444 # cc works too.
1446 else
1447 # cc exists but doesn't like -o.
1448 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1452 else
1453 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1455 rm -f conftest*
1458 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1459 echo "$ac_t""yes" 1>&6
1460 else
1461 echo "$ac_t""no" 1>&6
1462 cat >> confdefs.h <<\EOF
1463 #define NO_MINUS_C_MINUS_O 1
1468 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1469 BROKEN_CC=
1470 else
1471 BROKEN_CC=#
1475 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1476 echo "configure:1477: checking that the C compiler understands volatile" >&5
1477 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1481 cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 #include <sys/types.h>
1485 int main() {
1486 volatile int i = 0
1487 ; return 0; }
1489 if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490 rm -rf conftest*
1491 samba_cv_volatile=yes
1492 else
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 rm -rf conftest*
1496 samba_cv_volatile=no
1498 rm -f conftest*
1501 echo "$ac_t""$samba_cv_volatile" 1>&6
1502 if test x"$samba_cv_volatile" = x"yes"; then
1503 cat >> confdefs.h <<\EOF
1504 #define HAVE_VOLATILE 1
1512 # Do some error checking and defaulting for the host and target type.
1513 # The inputs are:
1514 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1516 # The rules are:
1517 # 1. You are not allowed to specify --host, --target, and nonopt at the
1518 # same time.
1519 # 2. Host defaults to nonopt.
1520 # 3. If nonopt is not specified, then host defaults to the current host,
1521 # as determined by config.guess.
1522 # 4. Target and build default to nonopt.
1523 # 5. If nonopt is not specified, then target and build default to host.
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 case $host---$target---$nonopt in
1528 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1529 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1530 esac
1533 # Make sure we can run config.sub.
1534 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1535 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1538 echo $ac_n "checking host system type""... $ac_c" 1>&6
1539 echo "configure:1540: checking host system type" >&5
1541 host_alias=$host
1542 case "$host_alias" in
1543 NONE)
1544 case $nonopt in
1545 NONE)
1546 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1547 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1548 fi ;;
1549 *) host_alias=$nonopt ;;
1550 esac ;;
1551 esac
1553 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1554 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557 echo "$ac_t""$host" 1>&6
1559 echo $ac_n "checking target system type""... $ac_c" 1>&6
1560 echo "configure:1561: checking target system type" >&5
1562 target_alias=$target
1563 case "$target_alias" in
1564 NONE)
1565 case $nonopt in
1566 NONE) target_alias=$host_alias ;;
1567 *) target_alias=$nonopt ;;
1568 esac ;;
1569 esac
1571 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1572 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 echo "$ac_t""$target" 1>&6
1577 echo $ac_n "checking build system type""... $ac_c" 1>&6
1578 echo "configure:1579: checking build system type" >&5
1580 build_alias=$build
1581 case "$build_alias" in
1582 NONE)
1583 case $nonopt in
1584 NONE) build_alias=$host_alias ;;
1585 *) build_alias=$nonopt ;;
1586 esac ;;
1587 esac
1589 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1590 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593 echo "$ac_t""$build" 1>&6
1595 test "$host_alias" != "$target_alias" &&
1596 test "$program_prefix$program_suffix$program_transform_name" = \
1597 NONENONEs,x,x, &&
1598 program_prefix=${target_alias}-
1601 case "$host_os" in
1602 *irix*) cat >> confdefs.h <<\EOF
1603 #include <standards.h>
1607 esac
1611 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1612 echo "configure:1613: checking config.cache system type" >&5
1613 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1614 test x"$ac_cv_host_system_type" != x"$host"; } ||
1615 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1616 test x"$ac_cv_build_system_type" != x"$build"; } ||
1617 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1618 test x"$ac_cv_target_system_type" != x"$target"; }; then
1619 echo "$ac_t""different" 1>&6
1620 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1621 else
1622 echo "$ac_t""same" 1>&6
1624 ac_cv_host_system_type="$host"
1625 ac_cv_build_system_type="$build"
1626 ac_cv_target_system_type="$target"
1630 # Config CPPFLAG settings for strange OS's that must be set
1631 # before other tests.
1633 case "$host_os" in
1634 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1635 *hpux*)
1636 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1637 echo "configure:1638: checking whether ${CC-cc} accepts -Ae" >&5
1638 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1640 else
1641 echo 'void f(){}' > conftest.c
1642 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1643 ac_cv_prog_cc_Ae=yes
1644 else
1645 ac_cv_prog_cc_Ae=no
1647 rm -f conftest*
1651 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1652 if test $ac_cv_prog_cc_Ae = yes; then
1653 CPPFLAGS="$CPPFLAGS -Ae"
1656 # Defines needed for HPUX support.
1657 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1658 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1660 case `uname -r` in
1661 *9*|*10*)
1662 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1663 cat >> confdefs.h <<\EOF
1664 #define USE_BOTH_CRYPT_CALLS 1
1668 *11*)
1669 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1670 cat >> confdefs.h <<\EOF
1671 #define USE_BOTH_CRYPT_CALLS 1
1675 esac
1678 # AIX4.x doesn't even admit to having large
1679 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1681 *aix4*)
1682 echo "$ac_t""enabling large file support" 1>&6
1683 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1686 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1687 # to the existance of large files..
1688 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1689 # recommendations on large file support, however it makes the
1690 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1691 # recommendation makes the compile fail on gcc2.7. JRA.
1693 *solaris*)
1694 case `uname -r` in
1695 5.6*|5.7*)
1696 echo "$ac_t""enabling large file support" 1>&6
1697 if test "$ac_cv_prog_gcc" = yes; then
1698 ${CC-cc} -v >conftest.c 2>&1
1699 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1700 rm -fr conftest.c
1701 case "$ac_cv_gcc_compiler_version_number" in
1702 *"gcc version 2.6"*|*"gcc version 2.7"*)
1703 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1706 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1708 esac
1709 else
1710 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1713 esac
1716 # Tests needed for SINIX large file support.
1718 *sysv4*)
1719 if test $host = mips-sni-sysv4 ; then
1720 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1721 echo "configure:1722: checking for LFS support" >&5
1722 old_CPPFLAGS="$CPPFLAGS"
1723 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1724 if test "$cross_compiling" = yes; then
1725 SINIX_LFS_SUPPORT=cross
1726 else
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1731 #include <unistd.h>
1732 main () {
1733 #if _LFS64_LARGEFILE == 1
1734 exit(0);
1735 #else
1736 exit(1);
1737 #endif
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1741 then
1742 SINIX_LFS_SUPPORT=yes
1743 else
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1746 rm -fr conftest*
1747 SINIX_LFS_SUPPORT=no
1749 rm -fr conftest*
1752 CPPFLAGS="$old_CPPFLAGS"
1753 if test x$SINIX_LFS_SUPPORT = xyes ; then
1754 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1755 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1756 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1757 LIBS="`getconf LFS64_LIBS` $LIBS"
1759 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1763 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1765 *linux*)
1766 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1767 echo "configure:1768: checking for LFS support" >&5
1768 old_CPPFLAGS="$CPPFLAGS"
1769 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1770 if test "$cross_compiling" = yes; then
1771 LINUX_LFS_SUPPORT=cross
1772 else
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1777 #include <unistd.h>
1778 #include <sys/utsname.h>
1779 main() {
1780 #if _LFS64_LARGEFILE == 1
1781 struct utsname uts;
1782 char *release;
1783 int major, minor;
1785 /* Ensure this is glibc 2.2 or higher */
1786 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1787 int libc_major = __GLIBC__;
1788 int libc_minor = __GLIBC_MINOR__;
1790 if (libc_major < 2)
1791 exit(1);
1792 if (libc_minor < 2)
1793 exit(1);
1794 #endif
1796 /* Ensure this is kernel 2.4 or higher */
1798 uname(&uts);
1799 release = uts.release;
1800 major = atoi(strsep(&release, "."));
1801 minor = atoi(strsep(&release, "."));
1803 if (major > 2 || (major == 2 && minor > 3))
1804 exit(0);
1805 exit(1);
1806 #else
1807 exit(1);
1808 #endif
1812 if { (eval echo configure:1813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1813 then
1814 LINUX_LFS_SUPPORT=yes
1815 else
1816 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5
1818 rm -fr conftest*
1819 LINUX_LFS_SUPPORT=no
1821 rm -fr conftest*
1824 CPPFLAGS="$old_CPPFLAGS"
1825 if test x$LINUX_LFS_SUPPORT = xyes ; then
1826 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1828 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1831 *hurd*)
1832 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1833 echo "configure:1834: checking for LFS support" >&5
1834 old_CPPFLAGS="$CPPFLAGS"
1835 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1836 if test "$cross_compiling" = yes; then
1837 GLIBC_LFS_SUPPORT=cross
1838 else
1839 cat > conftest.$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1843 #include <unistd.h>
1844 main () {
1845 #if _LFS64_LARGEFILE == 1
1846 exit(0);
1847 #else
1848 exit(1);
1849 #endif
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1853 then
1854 GLIBC_LFS_SUPPORT=yes
1855 else
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1858 rm -fr conftest*
1859 GLIBC_LFS_SUPPORT=no
1861 rm -fr conftest*
1864 CPPFLAGS="$old_CPPFLAGS"
1865 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1866 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1868 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1871 esac
1873 echo $ac_n "checking for inline""... $ac_c" 1>&6
1874 echo "configure:1875: checking for inline" >&5
1875 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1877 else
1878 ac_cv_c_inline=no
1879 for ac_kw in inline __inline__ __inline; do
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1884 int main() {
1885 } $ac_kw foo() {
1886 ; return 0; }
1888 if { (eval echo configure:1889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1889 rm -rf conftest*
1890 ac_cv_c_inline=$ac_kw; break
1891 else
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1895 rm -f conftest*
1896 done
1900 echo "$ac_t""$ac_cv_c_inline" 1>&6
1901 case "$ac_cv_c_inline" in
1902 inline | yes) ;;
1903 no) cat >> confdefs.h <<\EOF
1904 #define inline
1907 *) cat >> confdefs.h <<EOF
1908 #define inline $ac_cv_c_inline
1911 esac
1913 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1914 echo "configure:1915: checking how to run the C preprocessor" >&5
1915 # On Suns, sometimes $CPP names a directory.
1916 if test -n "$CPP" && test -d "$CPP"; then
1917 CPP=
1919 if test -z "$CPP"; then
1920 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1922 else
1923 # This must be in double quotes, not single quotes, because CPP may get
1924 # substituted into the Makefile and "${CC-cc}" will confuse make.
1925 CPP="${CC-cc} -E"
1926 # On the NeXT, cc -E runs the code through the compiler's parser,
1927 # not just through cpp.
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 #include <assert.h>
1932 Syntax Error
1934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1935 { (eval echo configure:1936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1937 if test -z "$ac_err"; then
1939 else
1940 echo "$ac_err" >&5
1941 echo "configure: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1943 rm -rf conftest*
1944 CPP="${CC-cc} -E -traditional-cpp"
1945 cat > conftest.$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1948 #include <assert.h>
1949 Syntax Error
1951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1952 { (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1954 if test -z "$ac_err"; then
1956 else
1957 echo "$ac_err" >&5
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1960 rm -rf conftest*
1961 CPP="${CC-cc} -nologo -E"
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 #include <assert.h>
1966 Syntax Error
1968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1969 { (eval echo configure:1970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1971 if test -z "$ac_err"; then
1973 else
1974 echo "$ac_err" >&5
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 rm -rf conftest*
1978 CPP=/lib/cpp
1980 rm -f conftest*
1982 rm -f conftest*
1984 rm -f conftest*
1985 ac_cv_prog_CPP="$CPP"
1987 CPP="$ac_cv_prog_CPP"
1988 else
1989 ac_cv_prog_CPP="$CPP"
1991 echo "$ac_t""$CPP" 1>&6
1993 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1994 echo "configure:1995: checking for ANSI C header files" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1997 else
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include <stdlib.h>
2002 #include <stdarg.h>
2003 #include <string.h>
2004 #include <float.h>
2006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2009 if test -z "$ac_err"; then
2010 rm -rf conftest*
2011 ac_cv_header_stdc=yes
2012 else
2013 echo "$ac_err" >&5
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2016 rm -rf conftest*
2017 ac_cv_header_stdc=no
2019 rm -f conftest*
2021 if test $ac_cv_header_stdc = yes; then
2022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2023 cat > conftest.$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 #include <string.h>
2028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2029 egrep "memchr" >/dev/null 2>&1; then
2031 else
2032 rm -rf conftest*
2033 ac_cv_header_stdc=no
2035 rm -f conftest*
2039 if test $ac_cv_header_stdc = yes; then
2040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 #include <stdlib.h>
2046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2047 egrep "free" >/dev/null 2>&1; then
2049 else
2050 rm -rf conftest*
2051 ac_cv_header_stdc=no
2053 rm -f conftest*
2057 if test $ac_cv_header_stdc = yes; then
2058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2059 if test "$cross_compiling" = yes; then
2061 else
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 #include <ctype.h>
2066 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2067 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2068 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2069 int main () { int i; for (i = 0; i < 256; i++)
2070 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2071 exit (0); }
2074 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2075 then
2077 else
2078 echo "configure: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2080 rm -fr conftest*
2081 ac_cv_header_stdc=no
2083 rm -fr conftest*
2089 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2090 if test $ac_cv_header_stdc = yes; then
2091 cat >> confdefs.h <<\EOF
2092 #define STDC_HEADERS 1
2097 ac_header_dirent=no
2098 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2101 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_hdr that defines DIR" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #include <sys/types.h>
2110 #include <$ac_hdr>
2111 int main() {
2112 DIR *dirp = 0;
2113 ; return 0; }
2115 if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 rm -rf conftest*
2117 eval "ac_cv_header_dirent_$ac_safe=yes"
2118 else
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2121 rm -rf conftest*
2122 eval "ac_cv_header_dirent_$ac_safe=no"
2124 rm -f conftest*
2126 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2127 echo "$ac_t""yes" 1>&6
2128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2129 cat >> confdefs.h <<EOF
2130 #define $ac_tr_hdr 1
2132 ac_header_dirent=$ac_hdr; break
2133 else
2134 echo "$ac_t""no" 1>&6
2136 done
2137 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2138 if test $ac_header_dirent = dirent.h; then
2139 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2140 echo "configure:2141: checking for opendir in -ldir" >&5
2141 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2144 else
2145 ac_save_LIBS="$LIBS"
2146 LIBS="-ldir $LIBS"
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 /* Override any gcc2 internal prototype to avoid an error. */
2151 /* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2153 char opendir();
2155 int main() {
2156 opendir()
2157 ; return 0; }
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2160 rm -rf conftest*
2161 eval "ac_cv_lib_$ac_lib_var=yes"
2162 else
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 rm -rf conftest*
2166 eval "ac_cv_lib_$ac_lib_var=no"
2168 rm -f conftest*
2169 LIBS="$ac_save_LIBS"
2172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 LIBS="$LIBS -ldir"
2175 else
2176 echo "$ac_t""no" 1>&6
2179 else
2180 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2181 echo "configure:2182: checking for opendir in -lx" >&5
2182 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2183 if eval "test \"`echo '$''{'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="-lx $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 -lx"
2216 else
2217 echo "$ac_t""no" 1>&6
2222 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2223 echo "configure:2224: checking whether time.h and sys/time.h may both be included" >&5
2224 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2226 else
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <sys/types.h>
2231 #include <sys/time.h>
2232 #include <time.h>
2233 int main() {
2234 struct tm *tp;
2235 ; return 0; }
2237 if { (eval echo configure:2238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2238 rm -rf conftest*
2239 ac_cv_header_time=yes
2240 else
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2243 rm -rf conftest*
2244 ac_cv_header_time=no
2246 rm -f conftest*
2249 echo "$ac_t""$ac_cv_header_time" 1>&6
2250 if test $ac_cv_header_time = yes; then
2251 cat >> confdefs.h <<\EOF
2252 #define TIME_WITH_SYS_TIME 1
2257 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2258 echo "configure:2259: checking for sys/wait.h that is POSIX.1 compatible" >&5
2259 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2261 else
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 #include <sys/types.h>
2266 #include <sys/wait.h>
2267 #ifndef WEXITSTATUS
2268 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2269 #endif
2270 #ifndef WIFEXITED
2271 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2272 #endif
2273 int main() {
2274 int s;
2275 wait (&s);
2276 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2277 ; return 0; }
2279 if { (eval echo configure:2280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2280 rm -rf conftest*
2281 ac_cv_header_sys_wait_h=yes
2282 else
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 rm -rf conftest*
2286 ac_cv_header_sys_wait_h=no
2288 rm -f conftest*
2291 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2292 if test $ac_cv_header_sys_wait_h = yes; then
2293 cat >> confdefs.h <<\EOF
2294 #define HAVE_SYS_WAIT_H 1
2299 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_hdr" >&5
2304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 #include <$ac_hdr>
2312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2313 { (eval echo configure:2314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2315 if test -z "$ac_err"; then
2316 rm -rf conftest*
2317 eval "ac_cv_header_$ac_safe=yes"
2318 else
2319 echo "$ac_err" >&5
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2322 rm -rf conftest*
2323 eval "ac_cv_header_$ac_safe=no"
2325 rm -f conftest*
2327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2330 cat >> confdefs.h <<EOF
2331 #define $ac_tr_hdr 1
2334 else
2335 echo "$ac_t""no" 1>&6
2337 done
2339 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2343 echo "configure:2344: checking for $ac_hdr" >&5
2344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2346 else
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2350 #include <$ac_hdr>
2352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2353 { (eval echo configure:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2355 if test -z "$ac_err"; then
2356 rm -rf conftest*
2357 eval "ac_cv_header_$ac_safe=yes"
2358 else
2359 echo "$ac_err" >&5
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2362 rm -rf conftest*
2363 eval "ac_cv_header_$ac_safe=no"
2365 rm -f conftest*
2367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2370 cat >> confdefs.h <<EOF
2371 #define $ac_tr_hdr 1
2374 else
2375 echo "$ac_t""no" 1>&6
2377 done
2379 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2383 echo "configure:2384: checking for $ac_hdr" >&5
2384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2386 else
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #include <$ac_hdr>
2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then
2396 rm -rf conftest*
2397 eval "ac_cv_header_$ac_safe=yes"
2398 else
2399 echo "$ac_err" >&5
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 rm -rf conftest*
2403 eval "ac_cv_header_$ac_safe=no"
2405 rm -f conftest*
2407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2410 cat >> confdefs.h <<EOF
2411 #define $ac_tr_hdr 1
2414 else
2415 echo "$ac_t""no" 1>&6
2417 done
2419 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
2421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_hdr" >&5
2424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2426 else
2427 cat > conftest.$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 #include <$ac_hdr>
2432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2433 { (eval echo configure:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2435 if test -z "$ac_err"; then
2436 rm -rf conftest*
2437 eval "ac_cv_header_$ac_safe=yes"
2438 else
2439 echo "$ac_err" >&5
2440 echo "configure: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2442 rm -rf conftest*
2443 eval "ac_cv_header_$ac_safe=no"
2445 rm -f conftest*
2447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2450 cat >> confdefs.h <<EOF
2451 #define $ac_tr_hdr 1
2454 else
2455 echo "$ac_t""no" 1>&6
2457 done
2459 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_hdr" >&5
2464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2466 else
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2470 #include <$ac_hdr>
2472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2473 { (eval echo configure:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2475 if test -z "$ac_err"; then
2476 rm -rf conftest*
2477 eval "ac_cv_header_$ac_safe=yes"
2478 else
2479 echo "$ac_err" >&5
2480 echo "configure: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2482 rm -rf conftest*
2483 eval "ac_cv_header_$ac_safe=no"
2485 rm -f conftest*
2487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2488 echo "$ac_t""yes" 1>&6
2489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2490 cat >> confdefs.h <<EOF
2491 #define $ac_tr_hdr 1
2494 else
2495 echo "$ac_t""no" 1>&6
2497 done
2499 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2506 else
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 #include <$ac_hdr>
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2516 rm -rf conftest*
2517 eval "ac_cv_header_$ac_safe=yes"
2518 else
2519 echo "$ac_err" >&5
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -rf conftest*
2523 eval "ac_cv_header_$ac_safe=no"
2525 rm -f conftest*
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h <<EOF
2531 #define $ac_tr_hdr 1
2534 else
2535 echo "$ac_t""no" 1>&6
2537 done
2539 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_hdr" >&5
2544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 #include <$ac_hdr>
2552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2556 rm -rf conftest*
2557 eval "ac_cv_header_$ac_safe=yes"
2558 else
2559 echo "$ac_err" >&5
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2562 rm -rf conftest*
2563 eval "ac_cv_header_$ac_safe=no"
2565 rm -f conftest*
2567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2568 echo "$ac_t""yes" 1>&6
2569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2570 cat >> confdefs.h <<EOF
2571 #define $ac_tr_hdr 1
2574 else
2575 echo "$ac_t""no" 1>&6
2577 done
2580 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2581 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2583 case "$host_os" in
2584 *hpux*)
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <shadow.h>
2589 int main() {
2590 struct spwd testme
2591 ; return 0; }
2593 if { (eval echo configure:2594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2594 rm -rf conftest*
2595 ac_cv_header_shadow_h=yes
2596 else
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2599 rm -rf conftest*
2600 ac_cv_header_shadow_h=no
2602 rm -f conftest*
2603 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2604 cat >> confdefs.h <<\EOF
2605 #define HAVE_SHADOW_H 1
2610 esac
2611 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_hdr" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2618 else
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <$ac_hdr>
2624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2628 rm -rf conftest*
2629 eval "ac_cv_header_$ac_safe=yes"
2630 else
2631 echo "$ac_err" >&5
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 rm -rf conftest*
2635 eval "ac_cv_header_$ac_safe=no"
2637 rm -f conftest*
2639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2642 cat >> confdefs.h <<EOF
2643 #define $ac_tr_hdr 1
2646 else
2647 echo "$ac_t""no" 1>&6
2649 done
2651 for ac_hdr in nss.h sys/security.h security/pam_appl.h
2653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_hdr" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2658 else
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <$ac_hdr>
2664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2668 rm -rf conftest*
2669 eval "ac_cv_header_$ac_safe=yes"
2670 else
2671 echo "$ac_err" >&5
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 rm -rf conftest*
2675 eval "ac_cv_header_$ac_safe=no"
2677 rm -f conftest*
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2682 cat >> confdefs.h <<EOF
2683 #define $ac_tr_hdr 1
2686 else
2687 echo "$ac_t""no" 1>&6
2689 done
2691 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2698 else
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <$ac_hdr>
2704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2708 rm -rf conftest*
2709 eval "ac_cv_header_$ac_safe=yes"
2710 else
2711 echo "$ac_err" >&5
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 eval "ac_cv_header_$ac_safe=no"
2717 rm -f conftest*
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h <<EOF
2723 #define $ac_tr_hdr 1
2726 else
2727 echo "$ac_t""no" 1>&6
2729 done
2731 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2733 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2735 echo "configure:2736: checking for $ac_hdr" >&5
2736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <$ac_hdr>
2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2748 rm -rf conftest*
2749 eval "ac_cv_header_$ac_safe=yes"
2750 else
2751 echo "$ac_err" >&5
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 rm -rf conftest*
2755 eval "ac_cv_header_$ac_safe=no"
2757 rm -f conftest*
2759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2762 cat >> confdefs.h <<EOF
2763 #define $ac_tr_hdr 1
2766 else
2767 echo "$ac_t""no" 1>&6
2769 done
2771 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_hdr" >&5
2776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 #include <$ac_hdr>
2784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2788 rm -rf conftest*
2789 eval "ac_cv_header_$ac_safe=yes"
2790 else
2791 echo "$ac_err" >&5
2792 echo "configure: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 rm -rf conftest*
2795 eval "ac_cv_header_$ac_safe=no"
2797 rm -f conftest*
2799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2800 echo "$ac_t""yes" 1>&6
2801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2802 cat >> confdefs.h <<EOF
2803 #define $ac_tr_hdr 1
2806 else
2807 echo "$ac_t""no" 1>&6
2809 done
2812 # For experimental utmp support (lastlog on some BSD-like systems)
2813 for ac_hdr in utmp.h utmpx.h lastlog.h
2815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_hdr" >&5
2818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2820 else
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 #include <$ac_hdr>
2826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2827 { (eval echo configure:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2829 if test -z "$ac_err"; then
2830 rm -rf conftest*
2831 eval "ac_cv_header_$ac_safe=yes"
2832 else
2833 echo "$ac_err" >&5
2834 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2836 rm -rf conftest*
2837 eval "ac_cv_header_$ac_safe=no"
2839 rm -f conftest*
2841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2844 cat >> confdefs.h <<EOF
2845 #define $ac_tr_hdr 1
2848 else
2849 echo "$ac_t""no" 1>&6
2851 done
2854 # For quotas on Veritas VxFS filesystems
2855 for ac_hdr in sys/fs/vx_quota.h
2857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_hdr" >&5
2860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2862 else
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2866 #include <$ac_hdr>
2868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2872 rm -rf conftest*
2873 eval "ac_cv_header_$ac_safe=yes"
2874 else
2875 echo "$ac_err" >&5
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 rm -rf conftest*
2879 eval "ac_cv_header_$ac_safe=no"
2881 rm -f conftest*
2883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2886 cat >> confdefs.h <<EOF
2887 #define $ac_tr_hdr 1
2890 else
2891 echo "$ac_t""no" 1>&6
2893 done
2896 echo $ac_n "checking size of int""... $ac_c" 1>&6
2897 echo "configure:2898: checking size of int" >&5
2898 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2900 else
2901 if test "$cross_compiling" = yes; then
2902 ac_cv_sizeof_int=cross
2903 else
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2907 #include <stdio.h>
2908 main()
2910 FILE *f=fopen("conftestval", "w");
2911 if (!f) exit(1);
2912 fprintf(f, "%d\n", sizeof(int));
2913 exit(0);
2916 if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2917 then
2918 ac_cv_sizeof_int=`cat conftestval`
2919 else
2920 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2922 rm -fr conftest*
2923 ac_cv_sizeof_int=0
2925 rm -fr conftest*
2929 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2930 cat >> confdefs.h <<EOF
2931 #define SIZEOF_INT $ac_cv_sizeof_int
2935 echo $ac_n "checking size of long""... $ac_c" 1>&6
2936 echo "configure:2937: checking size of long" >&5
2937 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+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_long=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(long));
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_long=`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_long=0
2964 rm -fr conftest*
2968 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2969 cat >> confdefs.h <<EOF
2970 #define SIZEOF_LONG $ac_cv_sizeof_long
2974 echo $ac_n "checking size of short""... $ac_c" 1>&6
2975 echo "configure:2976: checking size of short" >&5
2976 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+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_short=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(short));
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_short=`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_short=0
3003 rm -fr conftest*
3007 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3008 cat >> confdefs.h <<EOF
3009 #define SIZEOF_SHORT $ac_cv_sizeof_short
3014 echo $ac_n "checking for working const""... $ac_c" 1>&6
3015 echo "configure:3016: checking for working const" >&5
3016 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3018 else
3019 cat > conftest.$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3023 int main() {
3025 /* Ultrix mips cc rejects this. */
3026 typedef int charset[2]; const charset x;
3027 /* SunOS 4.1.1 cc rejects this. */
3028 char const *const *ccp;
3029 char **p;
3030 /* NEC SVR4.0.2 mips cc rejects this. */
3031 struct point {int x, y;};
3032 static struct point const zero = {0,0};
3033 /* AIX XL C 1.02.0.0 rejects this.
3034 It does not let you subtract one const X* pointer from another in an arm
3035 of an if-expression whose if-part is not a constant expression */
3036 const char *g = "string";
3037 ccp = &g + (g ? g-g : 0);
3038 /* HPUX 7.0 cc rejects these. */
3039 ++ccp;
3040 p = (char**) ccp;
3041 ccp = (char const *const *) p;
3042 { /* SCO 3.2v4 cc rejects this. */
3043 char *t;
3044 char const *s = 0 ? (char *) 0 : (char const *) 0;
3046 *t++ = 0;
3048 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3049 int x[] = {25, 17};
3050 const int *foo = &x[0];
3051 ++foo;
3053 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3054 typedef const int *iptr;
3055 iptr p = 0;
3056 ++p;
3058 { /* AIX XL C 1.02.0.0 rejects this saying
3059 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3060 struct s { int j; const int *ap[3]; };
3061 struct s *b; b->j = 5;
3063 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3064 const int foo = 10;
3067 ; return 0; }
3069 if { (eval echo configure:3070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 rm -rf conftest*
3071 ac_cv_c_const=yes
3072 else
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3075 rm -rf conftest*
3076 ac_cv_c_const=no
3078 rm -f conftest*
3081 echo "$ac_t""$ac_cv_c_const" 1>&6
3082 if test $ac_cv_c_const = no; then
3083 cat >> confdefs.h <<\EOF
3084 #define const
3089 echo $ac_n "checking for inline""... $ac_c" 1>&6
3090 echo "configure:3091: checking for inline" >&5
3091 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3093 else
3094 ac_cv_c_inline=no
3095 for ac_kw in inline __inline__ __inline; do
3096 cat > conftest.$ac_ext <<EOF
3097 #line 3098 "configure"
3098 #include "confdefs.h"
3100 int main() {
3101 } $ac_kw foo() {
3102 ; return 0; }
3104 if { (eval echo configure:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3105 rm -rf conftest*
3106 ac_cv_c_inline=$ac_kw; break
3107 else
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3111 rm -f conftest*
3112 done
3116 echo "$ac_t""$ac_cv_c_inline" 1>&6
3117 case "$ac_cv_c_inline" in
3118 inline | yes) ;;
3119 no) cat >> confdefs.h <<\EOF
3120 #define inline
3123 *) cat >> confdefs.h <<EOF
3124 #define inline $ac_cv_c_inline
3127 esac
3129 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3130 echo "configure:3131: checking whether byte ordering is bigendian" >&5
3131 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3133 else
3134 ac_cv_c_bigendian=unknown
3135 # See if sys/param.h defines the BYTE_ORDER macro.
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 #include <sys/types.h>
3140 #include <sys/param.h>
3141 int main() {
3143 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3144 bogus endian macros
3145 #endif
3146 ; return 0; }
3148 if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3149 rm -rf conftest*
3150 # It does; now see whether it defined to BIG_ENDIAN or not.
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 #include <sys/types.h>
3155 #include <sys/param.h>
3156 int main() {
3158 #if BYTE_ORDER != BIG_ENDIAN
3159 not big endian
3160 #endif
3161 ; return 0; }
3163 if { (eval echo configure:3164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 rm -rf conftest*
3165 ac_cv_c_bigendian=yes
3166 else
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3169 rm -rf conftest*
3170 ac_cv_c_bigendian=no
3172 rm -f conftest*
3173 else
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3177 rm -f conftest*
3178 if test $ac_cv_c_bigendian = unknown; then
3179 if test "$cross_compiling" = yes; then
3180 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3181 else
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 main () {
3186 /* Are we little or big endian? From Harbison&Steele. */
3187 union
3189 long l;
3190 char c[sizeof (long)];
3191 } u;
3192 u.l = 1;
3193 exit (u.c[sizeof (long) - 1] == 1);
3196 if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3197 then
3198 ac_cv_c_bigendian=no
3199 else
3200 echo "configure: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3202 rm -fr conftest*
3203 ac_cv_c_bigendian=yes
3205 rm -fr conftest*
3211 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3212 if test $ac_cv_c_bigendian = yes; then
3213 cat >> confdefs.h <<\EOF
3214 #define WORDS_BIGENDIAN 1
3219 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3220 echo "configure:3221: checking whether char is unsigned" >&5
3221 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224 if test "$GCC" = yes; then
3225 # GCC predefines this symbol on systems where it applies.
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 #ifdef __CHAR_UNSIGNED__
3231 #endif
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235 egrep "yes" >/dev/null 2>&1; then
3236 rm -rf conftest*
3237 ac_cv_c_char_unsigned=yes
3238 else
3239 rm -rf conftest*
3240 ac_cv_c_char_unsigned=no
3242 rm -f conftest*
3244 else
3245 if test "$cross_compiling" = yes; then
3246 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3247 else
3248 cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3252 #if !defined(__STDC__) || __STDC__ != 1
3253 #define volatile
3254 #endif
3255 main() {
3256 volatile char c = 255; exit(c < 0);
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3260 then
3261 ac_cv_c_char_unsigned=yes
3262 else
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3265 rm -fr conftest*
3266 ac_cv_c_char_unsigned=no
3268 rm -fr conftest*
3274 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3275 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3276 cat >> confdefs.h <<\EOF
3277 #define __CHAR_UNSIGNED__ 1
3283 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3284 echo "configure:3285: checking return type of signal handlers" >&5
3285 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3287 else
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <sys/types.h>
3292 #include <signal.h>
3293 #ifdef signal
3294 #undef signal
3295 #endif
3296 #ifdef __cplusplus
3297 extern "C" void (*signal (int, void (*)(int)))(int);
3298 #else
3299 void (*signal ()) ();
3300 #endif
3302 int main() {
3303 int i;
3304 ; return 0; }
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3307 rm -rf conftest*
3308 ac_cv_type_signal=void
3309 else
3310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 rm -rf conftest*
3313 ac_cv_type_signal=int
3315 rm -f conftest*
3318 echo "$ac_t""$ac_cv_type_signal" 1>&6
3319 cat >> confdefs.h <<EOF
3320 #define RETSIGTYPE $ac_cv_type_signal
3324 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3325 echo "configure:3326: checking for uid_t in sys/types.h" >&5
3326 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3328 else
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 #include <sys/types.h>
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 egrep "uid_t" >/dev/null 2>&1; then
3336 rm -rf conftest*
3337 ac_cv_type_uid_t=yes
3338 else
3339 rm -rf conftest*
3340 ac_cv_type_uid_t=no
3342 rm -f conftest*
3346 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3347 if test $ac_cv_type_uid_t = no; then
3348 cat >> confdefs.h <<\EOF
3349 #define uid_t int
3352 cat >> confdefs.h <<\EOF
3353 #define gid_t int
3358 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3359 echo "configure:3360: checking for mode_t" >&5
3360 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3362 else
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <sys/types.h>
3367 #if STDC_HEADERS
3368 #include <stdlib.h>
3369 #include <stddef.h>
3370 #endif
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3374 rm -rf conftest*
3375 ac_cv_type_mode_t=yes
3376 else
3377 rm -rf conftest*
3378 ac_cv_type_mode_t=no
3380 rm -f conftest*
3383 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3384 if test $ac_cv_type_mode_t = no; then
3385 cat >> confdefs.h <<\EOF
3386 #define mode_t int
3391 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3392 echo "configure:3393: checking for off_t" >&5
3393 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3395 else
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 #include <sys/types.h>
3400 #if STDC_HEADERS
3401 #include <stdlib.h>
3402 #include <stddef.h>
3403 #endif
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3407 rm -rf conftest*
3408 ac_cv_type_off_t=yes
3409 else
3410 rm -rf conftest*
3411 ac_cv_type_off_t=no
3413 rm -f conftest*
3416 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3417 if test $ac_cv_type_off_t = no; then
3418 cat >> confdefs.h <<\EOF
3419 #define off_t long
3424 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3425 echo "configure:3426: checking for size_t" >&5
3426 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3428 else
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 #include <sys/types.h>
3433 #if STDC_HEADERS
3434 #include <stdlib.h>
3435 #include <stddef.h>
3436 #endif
3438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3439 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3440 rm -rf conftest*
3441 ac_cv_type_size_t=yes
3442 else
3443 rm -rf conftest*
3444 ac_cv_type_size_t=no
3446 rm -f conftest*
3449 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3450 if test $ac_cv_type_size_t = no; then
3451 cat >> confdefs.h <<\EOF
3452 #define size_t unsigned
3457 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3458 echo "configure:3459: checking for pid_t" >&5
3459 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <sys/types.h>
3466 #if STDC_HEADERS
3467 #include <stdlib.h>
3468 #include <stddef.h>
3469 #endif
3471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3472 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3473 rm -rf conftest*
3474 ac_cv_type_pid_t=yes
3475 else
3476 rm -rf conftest*
3477 ac_cv_type_pid_t=no
3479 rm -f conftest*
3482 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3483 if test $ac_cv_type_pid_t = no; then
3484 cat >> confdefs.h <<\EOF
3485 #define pid_t int
3490 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3491 echo "configure:3492: checking for st_rdev in struct stat" >&5
3492 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3494 else
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 #include <sys/types.h>
3499 #include <sys/stat.h>
3500 int main() {
3501 struct stat s; s.st_rdev;
3502 ; return 0; }
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3505 rm -rf conftest*
3506 ac_cv_struct_st_rdev=yes
3507 else
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 rm -rf conftest*
3511 ac_cv_struct_st_rdev=no
3513 rm -f conftest*
3516 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3517 if test $ac_cv_struct_st_rdev = yes; then
3518 cat >> confdefs.h <<\EOF
3519 #define HAVE_ST_RDEV 1
3524 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3525 echo "configure:3526: checking for d_off in dirent" >&5
3526 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3528 else
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3533 #include <unistd.h>
3534 #include <sys/types.h>
3535 #include <dirent.h>
3536 int main() {
3537 struct dirent d; d.d_off;
3538 ; return 0; }
3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3541 rm -rf conftest*
3542 ac_cv_dirent_d_off=yes
3543 else
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 rm -rf conftest*
3547 ac_cv_dirent_d_off=no
3549 rm -f conftest*
3552 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3553 if test $ac_cv_dirent_d_off = yes; then
3554 cat >> confdefs.h <<\EOF
3555 #define HAVE_DIRENT_D_OFF 1
3560 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3561 echo "configure:3562: checking for ino_t" >&5
3562 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3564 else
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 #include <sys/types.h>
3569 #if STDC_HEADERS
3570 #include <stdlib.h>
3571 #include <stddef.h>
3572 #endif
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3576 rm -rf conftest*
3577 ac_cv_type_ino_t=yes
3578 else
3579 rm -rf conftest*
3580 ac_cv_type_ino_t=no
3582 rm -f conftest*
3585 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3586 if test $ac_cv_type_ino_t = no; then
3587 cat >> confdefs.h <<\EOF
3588 #define ino_t unsigned
3593 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3594 echo "configure:3595: checking for loff_t" >&5
3595 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3597 else
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 #include <sys/types.h>
3602 #if STDC_HEADERS
3603 #include <stdlib.h>
3604 #include <stddef.h>
3605 #endif
3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3609 rm -rf conftest*
3610 ac_cv_type_loff_t=yes
3611 else
3612 rm -rf conftest*
3613 ac_cv_type_loff_t=no
3615 rm -f conftest*
3618 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3619 if test $ac_cv_type_loff_t = no; then
3620 cat >> confdefs.h <<\EOF
3621 #define loff_t off_t
3626 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3627 echo "configure:3628: checking for offset_t" >&5
3628 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3630 else
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <sys/types.h>
3635 #if STDC_HEADERS
3636 #include <stdlib.h>
3637 #include <stddef.h>
3638 #endif
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3642 rm -rf conftest*
3643 ac_cv_type_offset_t=yes
3644 else
3645 rm -rf conftest*
3646 ac_cv_type_offset_t=no
3648 rm -f conftest*
3651 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3652 if test $ac_cv_type_offset_t = no; then
3653 cat >> confdefs.h <<\EOF
3654 #define offset_t loff_t
3659 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3660 echo "configure:3661: checking for ssize_t" >&5
3661 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3663 else
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3668 #if STDC_HEADERS
3669 #include <stdlib.h>
3670 #include <stddef.h>
3671 #endif
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3675 rm -rf conftest*
3676 ac_cv_type_ssize_t=yes
3677 else
3678 rm -rf conftest*
3679 ac_cv_type_ssize_t=no
3681 rm -f conftest*
3684 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3685 if test $ac_cv_type_ssize_t = no; then
3686 cat >> confdefs.h <<\EOF
3687 #define ssize_t int
3692 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3693 echo "configure:3694: checking for wchar_t" >&5
3694 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3696 else
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3701 #if STDC_HEADERS
3702 #include <stdlib.h>
3703 #include <stddef.h>
3704 #endif
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3708 rm -rf conftest*
3709 ac_cv_type_wchar_t=yes
3710 else
3711 rm -rf conftest*
3712 ac_cv_type_wchar_t=no
3714 rm -f conftest*
3717 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3718 if test $ac_cv_type_wchar_t = no; then
3719 cat >> confdefs.h <<\EOF
3720 #define wchar_t unsigned short
3726 # we need libcups for CUPS support...
3727 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3728 echo "configure:3729: checking for httpConnect in -lcups" >&5
3729 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3732 else
3733 ac_save_LIBS="$LIBS"
3734 LIBS="-lcups $LIBS"
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 /* Override any gcc2 internal prototype to avoid an error. */
3739 /* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3741 char httpConnect();
3743 int main() {
3744 httpConnect()
3745 ; return 0; }
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748 rm -rf conftest*
3749 eval "ac_cv_lib_$ac_lib_var=yes"
3750 else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 eval "ac_cv_lib_$ac_lib_var=no"
3756 rm -f conftest*
3757 LIBS="$ac_save_LIBS"
3760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3764 cat >> confdefs.h <<EOF
3765 #define $ac_tr_lib 1
3768 LIBS="-lcups $LIBS"
3770 else
3771 echo "$ac_t""no" 1>&6
3775 # we need libdl for PAM and the new VFS code
3776 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3777 echo "configure:3778: checking for dlopen in -ldl" >&5
3778 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3781 else
3782 ac_save_LIBS="$LIBS"
3783 LIBS="-ldl $LIBS"
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3790 char dlopen();
3792 int main() {
3793 dlopen()
3794 ; return 0; }
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 rm -rf conftest*
3798 eval "ac_cv_lib_$ac_lib_var=yes"
3799 else
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 rm -rf conftest*
3803 eval "ac_cv_lib_$ac_lib_var=no"
3805 rm -f conftest*
3806 LIBS="$ac_save_LIBS"
3809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3811 LIBS="$LIBS -ldl";
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_LIBDL 1
3816 else
3817 echo "$ac_t""no" 1>&6
3821 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3822 echo "configure:3823: checking for sig_atomic_t type" >&5
3823 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825 else
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3831 #include <sys/types.h>
3832 #if STDC_HEADERS
3833 #include <stdlib.h>
3834 #include <stddef.h>
3835 #endif
3836 #include <signal.h>
3837 int main() {
3838 sig_atomic_t i = 0
3839 ; return 0; }
3841 if { (eval echo configure:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3842 rm -rf conftest*
3843 samba_cv_sig_atomic_t=yes
3844 else
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 rm -rf conftest*
3848 samba_cv_sig_atomic_t=no
3850 rm -f conftest*
3853 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3854 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3855 cat >> confdefs.h <<\EOF
3856 #define HAVE_SIG_ATOMIC_T_TYPE 1
3861 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3862 echo "configure:3863: checking for errno in errno.h" >&5
3863 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3865 else
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 #include <errno.h>
3871 int main() {
3872 int i = errno
3873 ; return 0; }
3875 if { (eval echo configure:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3876 rm -rf conftest*
3877 samba_cv_errno=yes
3878 else
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3881 rm -rf conftest*
3882 samba_cv_have_errno=no
3884 rm -f conftest*
3887 echo "$ac_t""$samba_cv_errno" 1>&6
3888 if test x"$samba_cv_errno" = x"yes"; then
3889 cat >> confdefs.h <<\EOF
3890 #define HAVE_ERRNO_DECL 1
3895 # stupid glibc has the functions but no declaration. grrrr.
3896 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3897 echo "configure:3898: checking for setresuid declaration" >&5
3898 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3900 else
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 #include <unistd.h>
3906 int main() {
3907 int i = (int)setresuid
3908 ; return 0; }
3910 if { (eval echo configure:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3911 rm -rf conftest*
3912 samba_cv_have_setresuid_decl=yes
3913 else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -rf conftest*
3917 samba_cv_have_setresuid_decl=no
3919 rm -f conftest*
3922 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3923 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3924 cat >> confdefs.h <<\EOF
3925 #define HAVE_SETRESUID_DECL 1
3930 # stupid glibc has the functions but no declaration. grrrr.
3931 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3932 echo "configure:3933: checking for setresgid declaration" >&5
3933 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3935 else
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 #include <unistd.h>
3941 int main() {
3942 int i = (int)setresgid
3943 ; return 0; }
3945 if { (eval echo configure:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3946 rm -rf conftest*
3947 samba_cv_have_setresgid_decl=yes
3948 else
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3951 rm -rf conftest*
3952 samba_cv_have_setresgid_decl=no
3954 rm -f conftest*
3957 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3958 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3959 cat >> confdefs.h <<\EOF
3960 #define HAVE_SETRESGID_DECL 1
3965 # and glibc has setresuid under linux but the function does
3966 # nothing until kernel 2.1.44! very dumb.
3967 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3968 echo "configure:3969: checking for real setresuid" >&5
3969 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3971 else
3973 if test "$cross_compiling" = yes; then
3974 samba_cv_have_setresuid=cross
3975 else
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 #include <errno.h>
3980 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3983 then
3984 samba_cv_have_setresuid=yes
3985 else
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 rm -fr conftest*
3989 samba_cv_have_setresuid=no
3991 rm -fr conftest*
3996 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3997 if test x"$samba_cv_have_setresuid" = x"yes"; then
3998 cat >> confdefs.h <<\EOF
3999 #define HAVE_SETRESUID 1
4004 # Do the same check for setresguid...
4006 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4007 echo "configure:4008: checking for real setresgid" >&5
4008 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4010 else
4012 if test "$cross_compiling" = yes; then
4013 samba_cv_have_setresgid=cross
4014 else
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 #include <unistd.h>
4019 #include <errno.h>
4020 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4023 then
4024 samba_cv_have_setresgid=yes
4025 else
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 rm -fr conftest*
4029 samba_cv_have_setresgid=no
4031 rm -fr conftest*
4036 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4037 if test x"$samba_cv_have_setresgid" = x"yes"; then
4038 cat >> confdefs.h <<\EOF
4039 #define HAVE_SETRESGID 1
4044 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4045 echo "configure:4046: checking for 8-bit clean memcmp" >&5
4046 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4048 else
4049 if test "$cross_compiling" = yes; then
4050 ac_cv_func_memcmp_clean=no
4051 else
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4056 main()
4058 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4059 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4064 then
4065 ac_cv_func_memcmp_clean=yes
4066 else
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4069 rm -fr conftest*
4070 ac_cv_func_memcmp_clean=no
4072 rm -fr conftest*
4077 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4078 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4081 ###############################################
4082 # test for where we get crypt() from
4083 for ac_func in crypt
4085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4086 echo "configure:4087: checking for $ac_func" >&5
4087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4089 else
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* System header to define __stub macros and hopefully few prototypes,
4094 which can conflict with char $ac_func(); below. */
4095 #include <assert.h>
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char $ac_func();
4101 int main() {
4103 /* The GNU C library defines this for functions which it implements
4104 to always fail with ENOSYS. Some functions are actually named
4105 something starting with __ and the normal name is an alias. */
4106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4107 choke me
4108 #else
4109 $ac_func();
4110 #endif
4112 ; return 0; }
4114 if { (eval echo configure:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4115 rm -rf conftest*
4116 eval "ac_cv_func_$ac_func=yes"
4117 else
4118 echo "configure: failed program was:" >&5
4119 cat conftest.$ac_ext >&5
4120 rm -rf conftest*
4121 eval "ac_cv_func_$ac_func=no"
4123 rm -f conftest*
4126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4129 cat >> confdefs.h <<EOF
4130 #define $ac_tr_func 1
4133 else
4134 echo "$ac_t""no" 1>&6
4136 done
4138 if test x"$ac_cv_func_crypt" = x"no"; then
4139 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4140 echo "configure:4141: checking for crypt in -lcrypt" >&5
4141 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4144 else
4145 ac_save_LIBS="$LIBS"
4146 LIBS="-lcrypt $LIBS"
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 /* Override any gcc2 internal prototype to avoid an error. */
4151 /* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
4153 char crypt();
4155 int main() {
4156 crypt()
4157 ; return 0; }
4159 if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4160 rm -rf conftest*
4161 eval "ac_cv_lib_$ac_lib_var=yes"
4162 else
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4165 rm -rf conftest*
4166 eval "ac_cv_lib_$ac_lib_var=no"
4168 rm -f conftest*
4169 LIBS="$ac_save_LIBS"
4172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4174 LIBS="$LIBS -lcrypt";
4175 cat >> confdefs.h <<\EOF
4176 #define HAVE_CRYPT 1
4179 else
4180 echo "$ac_t""no" 1>&6
4186 ###############################################
4187 # test for where we get readline() from
4188 if test "$ac_cv_header_readline_h" = "yes" ||
4189 test "$ac_cv_header_readline_readline_h" = "yes"; then
4190 # we need to also pull in termcap for some systems to use readline
4191 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
4192 echo "configure:4193: checking for tgetent in -ltermcap" >&5
4193 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
4194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4196 else
4197 ac_save_LIBS="$LIBS"
4198 LIBS="-ltermcap $LIBS"
4199 cat > conftest.$ac_ext <<EOF
4200 #line 4201 "configure"
4201 #include "confdefs.h"
4202 /* Override any gcc2 internal prototype to avoid an error. */
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4205 char tgetent();
4207 int main() {
4208 tgetent()
4209 ; return 0; }
4211 if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4212 rm -rf conftest*
4213 eval "ac_cv_lib_$ac_lib_var=yes"
4214 else
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4217 rm -rf conftest*
4218 eval "ac_cv_lib_$ac_lib_var=no"
4220 rm -f conftest*
4221 LIBS="$ac_save_LIBS"
4224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4225 echo "$ac_t""yes" 1>&6
4226 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4227 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4228 cat >> confdefs.h <<EOF
4229 #define $ac_tr_lib 1
4232 LIBS="-ltermcap $LIBS"
4234 else
4235 echo "$ac_t""no" 1>&6
4238 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4239 echo "configure:4240: checking for rl_callback_handler_install in -lreadline" >&5
4240 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4243 else
4244 ac_save_LIBS="$LIBS"
4245 LIBS="-lreadline $LIBS"
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252 char rl_callback_handler_install();
4254 int main() {
4255 rl_callback_handler_install()
4256 ; return 0; }
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 rm -rf conftest*
4260 eval "ac_cv_lib_$ac_lib_var=yes"
4261 else
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4264 rm -rf conftest*
4265 eval "ac_cv_lib_$ac_lib_var=no"
4267 rm -f conftest*
4268 LIBS="$ac_save_LIBS"
4271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4275 cat >> confdefs.h <<EOF
4276 #define $ac_tr_lib 1
4279 LIBS="-lreadline $LIBS"
4281 else
4282 echo "$ac_t""no" 1>&6
4288 # The following test taken from the cvs sources
4289 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4290 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4291 # libsocket.so which has a bad implementation of gethostbyname (it
4292 # only looks in /etc/hosts), so we only look for -lsocket if we need
4293 # it.
4294 for ac_func in connect
4296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4297 echo "configure:4298: checking for $ac_func" >&5
4298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4300 else
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 /* System header to define __stub macros and hopefully few prototypes,
4305 which can conflict with char $ac_func(); below. */
4306 #include <assert.h>
4307 /* Override any gcc2 internal prototype to avoid an error. */
4308 /* We use char because int might match the return type of a gcc2
4309 builtin and then its argument prototype would still apply. */
4310 char $ac_func();
4312 int main() {
4314 /* The GNU C library defines this for functions which it implements
4315 to always fail with ENOSYS. Some functions are actually named
4316 something starting with __ and the normal name is an alias. */
4317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4318 choke me
4319 #else
4320 $ac_func();
4321 #endif
4323 ; return 0; }
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4326 rm -rf conftest*
4327 eval "ac_cv_func_$ac_func=yes"
4328 else
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 rm -rf conftest*
4332 eval "ac_cv_func_$ac_func=no"
4334 rm -f conftest*
4337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4338 echo "$ac_t""yes" 1>&6
4339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4340 cat >> confdefs.h <<EOF
4341 #define $ac_tr_func 1
4344 else
4345 echo "$ac_t""no" 1>&6
4347 done
4349 if test x"$ac_cv_func_connect" = x"no"; then
4350 case "$LIBS" in
4351 *-lnsl*) ;;
4352 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4353 echo "configure:4354: checking for printf in -lnsl_s" >&5
4354 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4357 else
4358 ac_save_LIBS="$LIBS"
4359 LIBS="-lnsl_s $LIBS"
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 /* Override any gcc2 internal prototype to avoid an error. */
4364 /* We use char because int might match the return type of a gcc2
4365 builtin and then its argument prototype would still apply. */
4366 char printf();
4368 int main() {
4369 printf()
4370 ; return 0; }
4372 if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4373 rm -rf conftest*
4374 eval "ac_cv_lib_$ac_lib_var=yes"
4375 else
4376 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4378 rm -rf conftest*
4379 eval "ac_cv_lib_$ac_lib_var=no"
4381 rm -f conftest*
4382 LIBS="$ac_save_LIBS"
4385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4386 echo "$ac_t""yes" 1>&6
4387 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4388 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4389 cat >> confdefs.h <<EOF
4390 #define $ac_tr_lib 1
4393 LIBS="-lnsl_s $LIBS"
4395 else
4396 echo "$ac_t""no" 1>&6
4399 esac
4400 case "$LIBS" in
4401 *-lnsl*) ;;
4402 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4403 echo "configure:4404: checking for printf in -lnsl" >&5
4404 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4407 else
4408 ac_save_LIBS="$LIBS"
4409 LIBS="-lnsl $LIBS"
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */
4416 char printf();
4418 int main() {
4419 printf()
4420 ; return 0; }
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 rm -rf conftest*
4424 eval "ac_cv_lib_$ac_lib_var=yes"
4425 else
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4428 rm -rf conftest*
4429 eval "ac_cv_lib_$ac_lib_var=no"
4431 rm -f conftest*
4432 LIBS="$ac_save_LIBS"
4435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4436 echo "$ac_t""yes" 1>&6
4437 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4439 cat >> confdefs.h <<EOF
4440 #define $ac_tr_lib 1
4443 LIBS="-lnsl $LIBS"
4445 else
4446 echo "$ac_t""no" 1>&6
4449 esac
4450 case "$LIBS" in
4451 *-lsocket*) ;;
4452 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4453 echo "configure:4454: checking for connect in -lsocket" >&5
4454 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457 else
4458 ac_save_LIBS="$LIBS"
4459 LIBS="-lsocket $LIBS"
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 /* Override any gcc2 internal prototype to avoid an error. */
4464 /* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4466 char connect();
4468 int main() {
4469 connect()
4470 ; return 0; }
4472 if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 rm -rf conftest*
4474 eval "ac_cv_lib_$ac_lib_var=yes"
4475 else
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4478 rm -rf conftest*
4479 eval "ac_cv_lib_$ac_lib_var=no"
4481 rm -f conftest*
4482 LIBS="$ac_save_LIBS"
4485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4487 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4488 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4489 cat >> confdefs.h <<EOF
4490 #define $ac_tr_lib 1
4493 LIBS="-lsocket $LIBS"
4495 else
4496 echo "$ac_t""no" 1>&6
4499 esac
4500 case "$LIBS" in
4501 *-linet*) ;;
4502 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4503 echo "configure:4504: checking for connect in -linet" >&5
4504 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4507 else
4508 ac_save_LIBS="$LIBS"
4509 LIBS="-linet $LIBS"
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* Override any gcc2 internal prototype to avoid an error. */
4514 /* We use char because int might match the return type of a gcc2
4515 builtin and then its argument prototype would still apply. */
4516 char connect();
4518 int main() {
4519 connect()
4520 ; return 0; }
4522 if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4523 rm -rf conftest*
4524 eval "ac_cv_lib_$ac_lib_var=yes"
4525 else
4526 echo "configure: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4528 rm -rf conftest*
4529 eval "ac_cv_lib_$ac_lib_var=no"
4531 rm -f conftest*
4532 LIBS="$ac_save_LIBS"
4535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4538 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4539 cat >> confdefs.h <<EOF
4540 #define $ac_tr_lib 1
4543 LIBS="-linet $LIBS"
4545 else
4546 echo "$ac_t""no" 1>&6
4549 esac
4550 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4551 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4552 # ac_cv_func_connect=yes
4553 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4554 cat >> confdefs.h <<\EOF
4555 #define HAVE_CONNECT 1
4561 ###############################################
4562 # test for where we get get_yp_default_domain() from
4563 for ac_func in yp_get_default_domain
4565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_func" >&5
4567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 /* System header to define __stub macros and hopefully few prototypes,
4574 which can conflict with char $ac_func(); below. */
4575 #include <assert.h>
4576 /* Override any gcc2 internal prototype to avoid an error. */
4577 /* We use char because int might match the return type of a gcc2
4578 builtin and then its argument prototype would still apply. */
4579 char $ac_func();
4581 int main() {
4583 /* The GNU C library defines this for functions which it implements
4584 to always fail with ENOSYS. Some functions are actually named
4585 something starting with __ and the normal name is an alias. */
4586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4587 choke me
4588 #else
4589 $ac_func();
4590 #endif
4592 ; return 0; }
4594 if { (eval echo configure:4595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 rm -rf conftest*
4596 eval "ac_cv_func_$ac_func=yes"
4597 else
4598 echo "configure: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4600 rm -rf conftest*
4601 eval "ac_cv_func_$ac_func=no"
4603 rm -f conftest*
4606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4607 echo "$ac_t""yes" 1>&6
4608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4609 cat >> confdefs.h <<EOF
4610 #define $ac_tr_func 1
4613 else
4614 echo "$ac_t""no" 1>&6
4616 done
4618 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4619 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4620 echo "configure:4621: checking for yp_get_default_domain in -lnsl" >&5
4621 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4624 else
4625 ac_save_LIBS="$LIBS"
4626 LIBS="-lnsl $LIBS"
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4633 char yp_get_default_domain();
4635 int main() {
4636 yp_get_default_domain()
4637 ; return 0; }
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640 rm -rf conftest*
4641 eval "ac_cv_lib_$ac_lib_var=yes"
4642 else
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4645 rm -rf conftest*
4646 eval "ac_cv_lib_$ac_lib_var=no"
4648 rm -f conftest*
4649 LIBS="$ac_save_LIBS"
4652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4654 LIBS="$LIBS -lnsl";
4655 cat >> confdefs.h <<\EOF
4656 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4659 else
4660 echo "$ac_t""no" 1>&6
4665 # Check if we have execl, if not we need to compile smbrun.
4666 for ac_func in execl
4668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4669 echo "configure:4670: checking for $ac_func" >&5
4670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4672 else
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 /* System header to define __stub macros and hopefully few prototypes,
4677 which can conflict with char $ac_func(); below. */
4678 #include <assert.h>
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682 char $ac_func();
4684 int main() {
4686 /* The GNU C library defines this for functions which it implements
4687 to always fail with ENOSYS. Some functions are actually named
4688 something starting with __ and the normal name is an alias. */
4689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4690 choke me
4691 #else
4692 $ac_func();
4693 #endif
4695 ; return 0; }
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4698 rm -rf conftest*
4699 eval "ac_cv_func_$ac_func=yes"
4700 else
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4703 rm -rf conftest*
4704 eval "ac_cv_func_$ac_func=no"
4706 rm -f conftest*
4709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4712 cat >> confdefs.h <<EOF
4713 #define $ac_tr_func 1
4716 else
4717 echo "$ac_t""no" 1>&6
4719 done
4721 if test x"$ac_cv_func_execl" = x"no"; then
4722 RUNPROG="bin/smbrun"
4723 else
4724 RUNPROG=""
4727 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4730 echo "configure:4731: checking for $ac_func" >&5
4731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4733 else
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4737 /* System header to define __stub macros and hopefully few prototypes,
4738 which can conflict with char $ac_func(); below. */
4739 #include <assert.h>
4740 /* Override any gcc2 internal prototype to avoid an error. */
4741 /* We use char because int might match the return type of a gcc2
4742 builtin and then its argument prototype would still apply. */
4743 char $ac_func();
4745 int main() {
4747 /* The GNU C library defines this for functions which it implements
4748 to always fail with ENOSYS. Some functions are actually named
4749 something starting with __ and the normal name is an alias. */
4750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4751 choke me
4752 #else
4753 $ac_func();
4754 #endif
4756 ; return 0; }
4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4759 rm -rf conftest*
4760 eval "ac_cv_func_$ac_func=yes"
4761 else
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 rm -rf conftest*
4765 eval "ac_cv_func_$ac_func=no"
4767 rm -f conftest*
4770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4773 cat >> confdefs.h <<EOF
4774 #define $ac_tr_func 1
4777 else
4778 echo "$ac_t""no" 1>&6
4780 done
4782 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4785 echo "configure:4786: checking for $ac_func" >&5
4786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4788 else
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792 /* System header to define __stub macros and hopefully few prototypes,
4793 which can conflict with char $ac_func(); below. */
4794 #include <assert.h>
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4798 char $ac_func();
4800 int main() {
4802 /* The GNU C library defines this for functions which it implements
4803 to always fail with ENOSYS. Some functions are actually named
4804 something starting with __ and the normal name is an alias. */
4805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4806 choke me
4807 #else
4808 $ac_func();
4809 #endif
4811 ; return 0; }
4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4814 rm -rf conftest*
4815 eval "ac_cv_func_$ac_func=yes"
4816 else
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4819 rm -rf conftest*
4820 eval "ac_cv_func_$ac_func=no"
4822 rm -f conftest*
4825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4828 cat >> confdefs.h <<EOF
4829 #define $ac_tr_func 1
4832 else
4833 echo "$ac_t""no" 1>&6
4835 done
4837 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4840 echo "configure:4841: checking for $ac_func" >&5
4841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4843 else
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 /* System header to define __stub macros and hopefully few prototypes,
4848 which can conflict with char $ac_func(); below. */
4849 #include <assert.h>
4850 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4853 char $ac_func();
4855 int main() {
4857 /* The GNU C library defines this for functions which it implements
4858 to always fail with ENOSYS. Some functions are actually named
4859 something starting with __ and the normal name is an alias. */
4860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4861 choke me
4862 #else
4863 $ac_func();
4864 #endif
4866 ; return 0; }
4868 if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4869 rm -rf conftest*
4870 eval "ac_cv_func_$ac_func=yes"
4871 else
4872 echo "configure: failed program was:" >&5
4873 cat conftest.$ac_ext >&5
4874 rm -rf conftest*
4875 eval "ac_cv_func_$ac_func=no"
4877 rm -f conftest*
4880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4881 echo "$ac_t""yes" 1>&6
4882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4883 cat >> confdefs.h <<EOF
4884 #define $ac_tr_func 1
4887 else
4888 echo "$ac_t""no" 1>&6
4890 done
4892 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4895 echo "configure:4896: checking for $ac_func" >&5
4896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4898 else
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4902 /* System header to define __stub macros and hopefully few prototypes,
4903 which can conflict with char $ac_func(); below. */
4904 #include <assert.h>
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 /* We use char because int might match the return type of a gcc2
4907 builtin and then its argument prototype would still apply. */
4908 char $ac_func();
4910 int main() {
4912 /* The GNU C library defines this for functions which it implements
4913 to always fail with ENOSYS. Some functions are actually named
4914 something starting with __ and the normal name is an alias. */
4915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4916 choke me
4917 #else
4918 $ac_func();
4919 #endif
4921 ; return 0; }
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 rm -rf conftest*
4925 eval "ac_cv_func_$ac_func=yes"
4926 else
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4929 rm -rf conftest*
4930 eval "ac_cv_func_$ac_func=no"
4932 rm -f conftest*
4935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4938 cat >> confdefs.h <<EOF
4939 #define $ac_tr_func 1
4942 else
4943 echo "$ac_t""no" 1>&6
4945 done
4947 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
4949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4950 echo "configure:4951: checking for $ac_func" >&5
4951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4953 else
4954 cat > conftest.$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 /* System header to define __stub macros and hopefully few prototypes,
4958 which can conflict with char $ac_func(); below. */
4959 #include <assert.h>
4960 /* Override any gcc2 internal prototype to avoid an error. */
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4963 char $ac_func();
4965 int main() {
4967 /* The GNU C library defines this for functions which it implements
4968 to always fail with ENOSYS. Some functions are actually named
4969 something starting with __ and the normal name is an alias. */
4970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4971 choke me
4972 #else
4973 $ac_func();
4974 #endif
4976 ; return 0; }
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 rm -rf conftest*
4980 eval "ac_cv_func_$ac_func=yes"
4981 else
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 rm -rf conftest*
4985 eval "ac_cv_func_$ac_func=no"
4987 rm -f conftest*
4990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4993 cat >> confdefs.h <<EOF
4994 #define $ac_tr_func 1
4997 else
4998 echo "$ac_t""no" 1>&6
5000 done
5002 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5005 echo "configure:5006: checking for $ac_func" >&5
5006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5008 else
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5012 /* System header to define __stub macros and hopefully few prototypes,
5013 which can conflict with char $ac_func(); below. */
5014 #include <assert.h>
5015 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */
5018 char $ac_func();
5020 int main() {
5022 /* The GNU C library defines this for functions which it implements
5023 to always fail with ENOSYS. Some functions are actually named
5024 something starting with __ and the normal name is an alias. */
5025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5026 choke me
5027 #else
5028 $ac_func();
5029 #endif
5031 ; return 0; }
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5034 rm -rf conftest*
5035 eval "ac_cv_func_$ac_func=yes"
5036 else
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5039 rm -rf conftest*
5040 eval "ac_cv_func_$ac_func=no"
5042 rm -f conftest*
5045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5046 echo "$ac_t""yes" 1>&6
5047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5048 cat >> confdefs.h <<EOF
5049 #define $ac_tr_func 1
5052 else
5053 echo "$ac_t""no" 1>&6
5055 done
5057 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_func" >&5
5061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5063 else
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 /* System header to define __stub macros and hopefully few prototypes,
5068 which can conflict with char $ac_func(); below. */
5069 #include <assert.h>
5070 /* Override any gcc2 internal prototype to avoid an error. */
5071 /* We use char because int might match the return type of a gcc2
5072 builtin and then its argument prototype would still apply. */
5073 char $ac_func();
5075 int main() {
5077 /* The GNU C library defines this for functions which it implements
5078 to always fail with ENOSYS. Some functions are actually named
5079 something starting with __ and the normal name is an alias. */
5080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5081 choke me
5082 #else
5083 $ac_func();
5084 #endif
5086 ; return 0; }
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5089 rm -rf conftest*
5090 eval "ac_cv_func_$ac_func=yes"
5091 else
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5094 rm -rf conftest*
5095 eval "ac_cv_func_$ac_func=no"
5097 rm -f conftest*
5100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5101 echo "$ac_t""yes" 1>&6
5102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5103 cat >> confdefs.h <<EOF
5104 #define $ac_tr_func 1
5107 else
5108 echo "$ac_t""no" 1>&6
5110 done
5112 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam
5114 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5115 echo "configure:5116: checking for $ac_func" >&5
5116 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5118 else
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5122 /* System header to define __stub macros and hopefully few prototypes,
5123 which can conflict with char $ac_func(); below. */
5124 #include <assert.h>
5125 /* Override any gcc2 internal prototype to avoid an error. */
5126 /* We use char because int might match the return type of a gcc2
5127 builtin and then its argument prototype would still apply. */
5128 char $ac_func();
5130 int main() {
5132 /* The GNU C library defines this for functions which it implements
5133 to always fail with ENOSYS. Some functions are actually named
5134 something starting with __ and the normal name is an alias. */
5135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5136 choke me
5137 #else
5138 $ac_func();
5139 #endif
5141 ; return 0; }
5143 if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5144 rm -rf conftest*
5145 eval "ac_cv_func_$ac_func=yes"
5146 else
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5149 rm -rf conftest*
5150 eval "ac_cv_func_$ac_func=no"
5152 rm -f conftest*
5155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5156 echo "$ac_t""yes" 1>&6
5157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5158 cat >> confdefs.h <<EOF
5159 #define $ac_tr_func 1
5162 else
5163 echo "$ac_t""no" 1>&6
5165 done
5167 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5170 echo "configure:5171: checking for $ac_func" >&5
5171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5173 else
5174 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 /* System header to define __stub macros and hopefully few prototypes,
5178 which can conflict with char $ac_func(); below. */
5179 #include <assert.h>
5180 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */
5183 char $ac_func();
5185 int main() {
5187 /* The GNU C library defines this for functions which it implements
5188 to always fail with ENOSYS. Some functions are actually named
5189 something starting with __ and the normal name is an alias. */
5190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5191 choke me
5192 #else
5193 $ac_func();
5194 #endif
5196 ; return 0; }
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5199 rm -rf conftest*
5200 eval "ac_cv_func_$ac_func=yes"
5201 else
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5204 rm -rf conftest*
5205 eval "ac_cv_func_$ac_func=no"
5207 rm -f conftest*
5210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5213 cat >> confdefs.h <<EOF
5214 #define $ac_tr_func 1
5217 else
5218 echo "$ac_t""no" 1>&6
5220 done
5223 # syscall() is needed for smbwrapper.
5224 for ac_func in syscall
5226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5227 echo "configure:5228: checking for $ac_func" >&5
5228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5230 else
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234 /* System header to define __stub macros and hopefully few prototypes,
5235 which can conflict with char $ac_func(); below. */
5236 #include <assert.h>
5237 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5240 char $ac_func();
5242 int main() {
5244 /* The GNU C library defines this for functions which it implements
5245 to always fail with ENOSYS. Some functions are actually named
5246 something starting with __ and the normal name is an alias. */
5247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5248 choke me
5249 #else
5250 $ac_func();
5251 #endif
5253 ; return 0; }
5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 rm -rf conftest*
5257 eval "ac_cv_func_$ac_func=yes"
5258 else
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 rm -rf conftest*
5262 eval "ac_cv_func_$ac_func=no"
5264 rm -f conftest*
5267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5270 cat >> confdefs.h <<EOF
5271 #define $ac_tr_func 1
5274 else
5275 echo "$ac_t""no" 1>&6
5277 done
5280 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_func" >&5
5284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5286 else
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290 /* System header to define __stub macros and hopefully few prototypes,
5291 which can conflict with char $ac_func(); below. */
5292 #include <assert.h>
5293 /* Override any gcc2 internal prototype to avoid an error. */
5294 /* We use char because int might match the return type of a gcc2
5295 builtin and then its argument prototype would still apply. */
5296 char $ac_func();
5298 int main() {
5300 /* The GNU C library defines this for functions which it implements
5301 to always fail with ENOSYS. Some functions are actually named
5302 something starting with __ and the normal name is an alias. */
5303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5304 choke me
5305 #else
5306 $ac_func();
5307 #endif
5309 ; return 0; }
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312 rm -rf conftest*
5313 eval "ac_cv_func_$ac_func=yes"
5314 else
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5317 rm -rf conftest*
5318 eval "ac_cv_func_$ac_func=no"
5320 rm -f conftest*
5323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5326 cat >> confdefs.h <<EOF
5327 #define $ac_tr_func 1
5330 else
5331 echo "$ac_t""no" 1>&6
5333 done
5335 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5341 else
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char $ac_func(); below. */
5347 #include <assert.h>
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5351 char $ac_func();
5353 int main() {
5355 /* The GNU C library defines this for functions which it implements
5356 to always fail with ENOSYS. Some functions are actually named
5357 something starting with __ and the normal name is an alias. */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5359 choke me
5360 #else
5361 $ac_func();
5362 #endif
5364 ; return 0; }
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367 rm -rf conftest*
5368 eval "ac_cv_func_$ac_func=yes"
5369 else
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 rm -rf conftest*
5373 eval "ac_cv_func_$ac_func=no"
5375 rm -f conftest*
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379 echo "$ac_t""yes" 1>&6
5380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381 cat >> confdefs.h <<EOF
5382 #define $ac_tr_func 1
5385 else
5386 echo "$ac_t""no" 1>&6
5388 done
5390 for ac_func in __getcwd _getcwd
5392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_func" >&5
5394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5396 else
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 /* System header to define __stub macros and hopefully few prototypes,
5401 which can conflict with char $ac_func(); below. */
5402 #include <assert.h>
5403 /* Override any gcc2 internal prototype to avoid an error. */
5404 /* We use char because int might match the return type of a gcc2
5405 builtin and then its argument prototype would still apply. */
5406 char $ac_func();
5408 int main() {
5410 /* The GNU C library defines this for functions which it implements
5411 to always fail with ENOSYS. Some functions are actually named
5412 something starting with __ and the normal name is an alias. */
5413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5414 choke me
5415 #else
5416 $ac_func();
5417 #endif
5419 ; return 0; }
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422 rm -rf conftest*
5423 eval "ac_cv_func_$ac_func=yes"
5424 else
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5427 rm -rf conftest*
5428 eval "ac_cv_func_$ac_func=no"
5430 rm -f conftest*
5433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5434 echo "$ac_t""yes" 1>&6
5435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5436 cat >> confdefs.h <<EOF
5437 #define $ac_tr_func 1
5440 else
5441 echo "$ac_t""no" 1>&6
5443 done
5445 for ac_func in __xstat __fxstat __lxstat
5447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5448 echo "configure:5449: checking for $ac_func" >&5
5449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5451 else
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 /* System header to define __stub macros and hopefully few prototypes,
5456 which can conflict with char $ac_func(); below. */
5457 #include <assert.h>
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5461 char $ac_func();
5463 int main() {
5465 /* The GNU C library defines this for functions which it implements
5466 to always fail with ENOSYS. Some functions are actually named
5467 something starting with __ and the normal name is an alias. */
5468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5469 choke me
5470 #else
5471 $ac_func();
5472 #endif
5474 ; return 0; }
5476 if { (eval echo configure:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5477 rm -rf conftest*
5478 eval "ac_cv_func_$ac_func=yes"
5479 else
5480 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5482 rm -rf conftest*
5483 eval "ac_cv_func_$ac_func=no"
5485 rm -f conftest*
5488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5491 cat >> confdefs.h <<EOF
5492 #define $ac_tr_func 1
5495 else
5496 echo "$ac_t""no" 1>&6
5498 done
5500 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5503 echo "configure:5504: checking for $ac_func" >&5
5504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 /* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func(); below. */
5512 #include <assert.h>
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5516 char $ac_func();
5518 int main() {
5520 /* The GNU C library defines this for functions which it implements
5521 to always fail with ENOSYS. Some functions are actually named
5522 something starting with __ and the normal name is an alias. */
5523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5524 choke me
5525 #else
5526 $ac_func();
5527 #endif
5529 ; return 0; }
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 rm -rf conftest*
5533 eval "ac_cv_func_$ac_func=yes"
5534 else
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 rm -rf conftest*
5538 eval "ac_cv_func_$ac_func=no"
5540 rm -f conftest*
5543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5546 cat >> confdefs.h <<EOF
5547 #define $ac_tr_func 1
5550 else
5551 echo "$ac_t""no" 1>&6
5553 done
5555 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5558 echo "configure:5559: checking for $ac_func" >&5
5559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5561 else
5562 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5565 /* System header to define __stub macros and hopefully few prototypes,
5566 which can conflict with char $ac_func(); below. */
5567 #include <assert.h>
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5571 char $ac_func();
5573 int main() {
5575 /* The GNU C library defines this for functions which it implements
5576 to always fail with ENOSYS. Some functions are actually named
5577 something starting with __ and the normal name is an alias. */
5578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5579 choke me
5580 #else
5581 $ac_func();
5582 #endif
5584 ; return 0; }
5586 if { (eval echo configure:5587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5587 rm -rf conftest*
5588 eval "ac_cv_func_$ac_func=yes"
5589 else
5590 echo "configure: failed program was:" >&5
5591 cat conftest.$ac_ext >&5
5592 rm -rf conftest*
5593 eval "ac_cv_func_$ac_func=no"
5595 rm -f conftest*
5598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5599 echo "$ac_t""yes" 1>&6
5600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5601 cat >> confdefs.h <<EOF
5602 #define $ac_tr_func 1
5605 else
5606 echo "$ac_t""no" 1>&6
5608 done
5610 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5613 echo "configure:5614: checking for $ac_func" >&5
5614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5616 else
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5620 /* System header to define __stub macros and hopefully few prototypes,
5621 which can conflict with char $ac_func(); below. */
5622 #include <assert.h>
5623 /* Override any gcc2 internal prototype to avoid an error. */
5624 /* We use char because int might match the return type of a gcc2
5625 builtin and then its argument prototype would still apply. */
5626 char $ac_func();
5628 int main() {
5630 /* The GNU C library defines this for functions which it implements
5631 to always fail with ENOSYS. Some functions are actually named
5632 something starting with __ and the normal name is an alias. */
5633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5634 choke me
5635 #else
5636 $ac_func();
5637 #endif
5639 ; return 0; }
5641 if { (eval echo configure:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5642 rm -rf conftest*
5643 eval "ac_cv_func_$ac_func=yes"
5644 else
5645 echo "configure: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5647 rm -rf conftest*
5648 eval "ac_cv_func_$ac_func=no"
5650 rm -f conftest*
5653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5654 echo "$ac_t""yes" 1>&6
5655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5656 cat >> confdefs.h <<EOF
5657 #define $ac_tr_func 1
5660 else
5661 echo "$ac_t""no" 1>&6
5663 done
5665 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5668 echo "configure:5669: checking for $ac_func" >&5
5669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5671 else
5672 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 /* System header to define __stub macros and hopefully few prototypes,
5676 which can conflict with char $ac_func(); below. */
5677 #include <assert.h>
5678 /* Override any gcc2 internal prototype to avoid an error. */
5679 /* We use char because int might match the return type of a gcc2
5680 builtin and then its argument prototype would still apply. */
5681 char $ac_func();
5683 int main() {
5685 /* The GNU C library defines this for functions which it implements
5686 to always fail with ENOSYS. Some functions are actually named
5687 something starting with __ and the normal name is an alias. */
5688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689 choke me
5690 #else
5691 $ac_func();
5692 #endif
5694 ; return 0; }
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5697 rm -rf conftest*
5698 eval "ac_cv_func_$ac_func=yes"
5699 else
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5702 rm -rf conftest*
5703 eval "ac_cv_func_$ac_func=no"
5705 rm -f conftest*
5708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5709 echo "$ac_t""yes" 1>&6
5710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5711 cat >> confdefs.h <<EOF
5712 #define $ac_tr_func 1
5715 else
5716 echo "$ac_t""no" 1>&6
5718 done
5720 for ac_func in _write __write _fork __fork
5722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5723 echo "configure:5724: checking for $ac_func" >&5
5724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5726 else
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 /* System header to define __stub macros and hopefully few prototypes,
5731 which can conflict with char $ac_func(); below. */
5732 #include <assert.h>
5733 /* Override any gcc2 internal prototype to avoid an error. */
5734 /* We use char because int might match the return type of a gcc2
5735 builtin and then its argument prototype would still apply. */
5736 char $ac_func();
5738 int main() {
5740 /* The GNU C library defines this for functions which it implements
5741 to always fail with ENOSYS. Some functions are actually named
5742 something starting with __ and the normal name is an alias. */
5743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5744 choke me
5745 #else
5746 $ac_func();
5747 #endif
5749 ; return 0; }
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 rm -rf conftest*
5753 eval "ac_cv_func_$ac_func=yes"
5754 else
5755 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5
5757 rm -rf conftest*
5758 eval "ac_cv_func_$ac_func=no"
5760 rm -f conftest*
5763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5766 cat >> confdefs.h <<EOF
5767 #define $ac_tr_func 1
5770 else
5771 echo "$ac_t""no" 1>&6
5773 done
5775 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5778 echo "configure:5779: checking for $ac_func" >&5
5779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5781 else
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 /* System header to define __stub macros and hopefully few prototypes,
5786 which can conflict with char $ac_func(); below. */
5787 #include <assert.h>
5788 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5791 char $ac_func();
5793 int main() {
5795 /* The GNU C library defines this for functions which it implements
5796 to always fail with ENOSYS. Some functions are actually named
5797 something starting with __ and the normal name is an alias. */
5798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5799 choke me
5800 #else
5801 $ac_func();
5802 #endif
5804 ; return 0; }
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5807 rm -rf conftest*
5808 eval "ac_cv_func_$ac_func=yes"
5809 else
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5812 rm -rf conftest*
5813 eval "ac_cv_func_$ac_func=no"
5815 rm -f conftest*
5818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5821 cat >> confdefs.h <<EOF
5822 #define $ac_tr_func 1
5825 else
5826 echo "$ac_t""no" 1>&6
5828 done
5830 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5833 echo "configure:5834: checking for $ac_func" >&5
5834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5836 else
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 /* System header to define __stub macros and hopefully few prototypes,
5841 which can conflict with char $ac_func(); below. */
5842 #include <assert.h>
5843 /* Override any gcc2 internal prototype to avoid an error. */
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5846 char $ac_func();
5848 int main() {
5850 /* The GNU C library defines this for functions which it implements
5851 to always fail with ENOSYS. Some functions are actually named
5852 something starting with __ and the normal name is an alias. */
5853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5854 choke me
5855 #else
5856 $ac_func();
5857 #endif
5859 ; return 0; }
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5862 rm -rf conftest*
5863 eval "ac_cv_func_$ac_func=yes"
5864 else
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5867 rm -rf conftest*
5868 eval "ac_cv_func_$ac_func=no"
5870 rm -f conftest*
5873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5876 cat >> confdefs.h <<EOF
5877 #define $ac_tr_func 1
5880 else
5881 echo "$ac_t""no" 1>&6
5883 done
5885 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5888 echo "configure:5889: checking for $ac_func" >&5
5889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5891 else
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* System header to define __stub macros and hopefully few prototypes,
5896 which can conflict with char $ac_func(); below. */
5897 #include <assert.h>
5898 /* Override any gcc2 internal prototype to avoid an error. */
5899 /* We use char because int might match the return type of a gcc2
5900 builtin and then its argument prototype would still apply. */
5901 char $ac_func();
5903 int main() {
5905 /* The GNU C library defines this for functions which it implements
5906 to always fail with ENOSYS. Some functions are actually named
5907 something starting with __ and the normal name is an alias. */
5908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5909 choke me
5910 #else
5911 $ac_func();
5912 #endif
5914 ; return 0; }
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 rm -rf conftest*
5918 eval "ac_cv_func_$ac_func=yes"
5919 else
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 rm -rf conftest*
5923 eval "ac_cv_func_$ac_func=no"
5925 rm -f conftest*
5928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5929 echo "$ac_t""yes" 1>&6
5930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5931 cat >> confdefs.h <<EOF
5932 #define $ac_tr_func 1
5935 else
5936 echo "$ac_t""no" 1>&6
5938 done
5940 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5943 echo "configure:5944: checking for $ac_func" >&5
5944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5946 else
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950 /* System header to define __stub macros and hopefully few prototypes,
5951 which can conflict with char $ac_func(); below. */
5952 #include <assert.h>
5953 /* Override any gcc2 internal prototype to avoid an error. */
5954 /* We use char because int might match the return type of a gcc2
5955 builtin and then its argument prototype would still apply. */
5956 char $ac_func();
5958 int main() {
5960 /* The GNU C library defines this for functions which it implements
5961 to always fail with ENOSYS. Some functions are actually named
5962 something starting with __ and the normal name is an alias. */
5963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5964 choke me
5965 #else
5966 $ac_func();
5967 #endif
5969 ; return 0; }
5971 if { (eval echo configure:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5972 rm -rf conftest*
5973 eval "ac_cv_func_$ac_func=yes"
5974 else
5975 echo "configure: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5977 rm -rf conftest*
5978 eval "ac_cv_func_$ac_func=no"
5980 rm -f conftest*
5983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5984 echo "$ac_t""yes" 1>&6
5985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5986 cat >> confdefs.h <<EOF
5987 #define $ac_tr_func 1
5990 else
5991 echo "$ac_t""no" 1>&6
5993 done
5995 for ac_func in open64 _open64 __open64 creat64
5997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5998 echo "configure:5999: checking for $ac_func" >&5
5999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6001 else
6002 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure"
6004 #include "confdefs.h"
6005 /* System header to define __stub macros and hopefully few prototypes,
6006 which can conflict with char $ac_func(); below. */
6007 #include <assert.h>
6008 /* Override any gcc2 internal prototype to avoid an error. */
6009 /* We use char because int might match the return type of a gcc2
6010 builtin and then its argument prototype would still apply. */
6011 char $ac_func();
6013 int main() {
6015 /* The GNU C library defines this for functions which it implements
6016 to always fail with ENOSYS. Some functions are actually named
6017 something starting with __ and the normal name is an alias. */
6018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6019 choke me
6020 #else
6021 $ac_func();
6022 #endif
6024 ; return 0; }
6026 if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6027 rm -rf conftest*
6028 eval "ac_cv_func_$ac_func=yes"
6029 else
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 rm -rf conftest*
6033 eval "ac_cv_func_$ac_func=no"
6035 rm -f conftest*
6038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6039 echo "$ac_t""yes" 1>&6
6040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6041 cat >> confdefs.h <<EOF
6042 #define $ac_tr_func 1
6045 else
6046 echo "$ac_t""no" 1>&6
6048 done
6052 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6055 if test x$ac_cv_func_stat64 = xno ; then
6056 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6057 echo "configure:6058: checking for stat64 in <sys/stat.h>" >&5
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6062 #if defined(HAVE_UNISTD_H)
6063 #include <unistd.h>
6064 #endif
6065 #include <sys/stat.h>
6067 int main() {
6068 struct stat64 st64; exit(stat64(".",&st64));
6069 ; return 0; }
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6072 rm -rf conftest*
6073 ac_cv_func_stat64=yes
6074 else
6075 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6078 rm -f conftest*
6079 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6080 if test x$ac_cv_func_stat64 = xyes ; then
6081 cat >> confdefs.h <<\EOF
6082 #define HAVE_STAT64 1
6088 if test x$ac_cv_func_lstat64 = xno ; then
6089 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6090 echo "configure:6091: checking for lstat64 in <sys/stat.h>" >&5
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6095 #if defined(HAVE_UNISTD_H)
6096 #include <unistd.h>
6097 #endif
6098 #include <sys/stat.h>
6100 int main() {
6101 struct stat64 st64; exit(lstat64(".",&st64));
6102 ; return 0; }
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6105 rm -rf conftest*
6106 ac_cv_func_lstat64=yes
6107 else
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 rm -f conftest*
6112 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6113 if test x$ac_cv_func_lstat64 = xyes ; then
6114 cat >> confdefs.h <<\EOF
6115 #define HAVE_LSTAT64 1
6121 if test x$ac_cv_func_fstat64 = xno ; then
6122 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6123 echo "configure:6124: checking for fstat64 in <sys/stat.h>" >&5
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6128 #if defined(HAVE_UNISTD_H)
6129 #include <unistd.h>
6130 #endif
6131 #include <sys/stat.h>
6133 int main() {
6134 struct stat64 st64; exit(fstat64(0,&st64));
6135 ; return 0; }
6137 if { (eval echo configure:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6138 rm -rf conftest*
6139 ac_cv_func_fstat64=yes
6140 else
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6144 rm -f conftest*
6145 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6146 if test x$ac_cv_func_fstat64 = xyes ; then
6147 cat >> confdefs.h <<\EOF
6148 #define HAVE_FSTAT64 1
6155 # If no strcasecmp, check for it in some known places
6156 # It is in -lresolv on ReliantUNIX and UnixWare
6157 # -lresolve *must* follow -lnsl for name resolution to work properly
6160 if test x$ac_cv_func_strcasecmp = xno ; then
6161 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6162 echo "configure:6163: checking for strcasecmp in -lresolv" >&5
6163 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6166 else
6167 ac_save_LIBS="$LIBS"
6168 LIBS="-lresolv $LIBS"
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6175 char strcasecmp();
6177 int main() {
6178 strcasecmp()
6179 ; return 0; }
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6182 rm -rf conftest*
6183 eval "ac_cv_lib_$ac_lib_var=yes"
6184 else
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6187 rm -rf conftest*
6188 eval "ac_cv_lib_$ac_lib_var=no"
6190 rm -f conftest*
6191 LIBS="$ac_save_LIBS"
6194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6196 LIBS="$LIBS -lresolv"
6197 cat >> confdefs.h <<\EOF
6198 #define HAVE_STRCASECMP 1
6201 else
6202 echo "$ac_t""no" 1>&6
6208 # Check for the functions putprpwnam, set_auth_parameters,
6209 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6210 # Needed for OSF1 and HPUX.
6213 case "$LIBS" in
6214 *-lsecurity*) for ac_func in putprpwnam
6216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6217 echo "configure:6218: checking for $ac_func" >&5
6218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6220 else
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func(); below. */
6226 #include <assert.h>
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6230 char $ac_func();
6232 int main() {
6234 /* The GNU C library defines this for functions which it implements
6235 to always fail with ENOSYS. Some functions are actually named
6236 something starting with __ and the normal name is an alias. */
6237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6238 choke me
6239 #else
6240 $ac_func();
6241 #endif
6243 ; return 0; }
6245 if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246 rm -rf conftest*
6247 eval "ac_cv_func_$ac_func=yes"
6248 else
6249 echo "configure: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6251 rm -rf conftest*
6252 eval "ac_cv_func_$ac_func=no"
6254 rm -f conftest*
6257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6258 echo "$ac_t""yes" 1>&6
6259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6260 cat >> confdefs.h <<EOF
6261 #define $ac_tr_func 1
6264 else
6265 echo "$ac_t""no" 1>&6
6267 done
6269 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6270 echo "configure:6271: checking for putprpwnam in -lsecurity" >&5
6271 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6274 else
6275 ac_save_LIBS="$LIBS"
6276 LIBS="-lsecurity $LIBS"
6277 cat > conftest.$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6280 /* Override any gcc2 internal prototype to avoid an error. */
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6283 char putprpwnam();
6285 int main() {
6286 putprpwnam()
6287 ; return 0; }
6289 if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6290 rm -rf conftest*
6291 eval "ac_cv_lib_$ac_lib_var=yes"
6292 else
6293 echo "configure: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6295 rm -rf conftest*
6296 eval "ac_cv_lib_$ac_lib_var=no"
6298 rm -f conftest*
6299 LIBS="$ac_save_LIBS"
6302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6303 echo "$ac_t""yes" 1>&6
6304 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6306 cat >> confdefs.h <<EOF
6307 #define $ac_tr_lib 1
6310 LIBS="-lsecurity $LIBS"
6312 else
6313 echo "$ac_t""no" 1>&6
6316 for ac_func in putprpwnam
6318 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6319 echo "configure:6320: checking for $ac_func" >&5
6320 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6322 else
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6326 /* System header to define __stub macros and hopefully few prototypes,
6327 which can conflict with char $ac_func(); below. */
6328 #include <assert.h>
6329 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6332 char $ac_func();
6334 int main() {
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6340 choke me
6341 #else
6342 $ac_func();
6343 #endif
6345 ; return 0; }
6347 if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6348 rm -rf conftest*
6349 eval "ac_cv_func_$ac_func=yes"
6350 else
6351 echo "configure: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6353 rm -rf conftest*
6354 eval "ac_cv_func_$ac_func=no"
6356 rm -f conftest*
6359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6360 echo "$ac_t""yes" 1>&6
6361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6362 cat >> confdefs.h <<EOF
6363 #define $ac_tr_func 1
6366 else
6367 echo "$ac_t""no" 1>&6
6369 done
6372 esac
6374 case "$LIBS" in
6375 *-lsec*) for ac_func in putprpwnam
6377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_func" >&5
6379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6381 else
6382 cat > conftest.$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6385 /* System header to define __stub macros and hopefully few prototypes,
6386 which can conflict with char $ac_func(); below. */
6387 #include <assert.h>
6388 /* Override any gcc2 internal prototype to avoid an error. */
6389 /* We use char because int might match the return type of a gcc2
6390 builtin and then its argument prototype would still apply. */
6391 char $ac_func();
6393 int main() {
6395 /* The GNU C library defines this for functions which it implements
6396 to always fail with ENOSYS. Some functions are actually named
6397 something starting with __ and the normal name is an alias. */
6398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6399 choke me
6400 #else
6401 $ac_func();
6402 #endif
6404 ; return 0; }
6406 if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6407 rm -rf conftest*
6408 eval "ac_cv_func_$ac_func=yes"
6409 else
6410 echo "configure: failed program was:" >&5
6411 cat conftest.$ac_ext >&5
6412 rm -rf conftest*
6413 eval "ac_cv_func_$ac_func=no"
6415 rm -f conftest*
6418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6421 cat >> confdefs.h <<EOF
6422 #define $ac_tr_func 1
6425 else
6426 echo "$ac_t""no" 1>&6
6428 done
6430 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6431 echo "configure:6432: checking for putprpwnam in -lsec" >&5
6432 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6435 else
6436 ac_save_LIBS="$LIBS"
6437 LIBS="-lsec $LIBS"
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 /* Override any gcc2 internal prototype to avoid an error. */
6442 /* We use char because int might match the return type of a gcc2
6443 builtin and then its argument prototype would still apply. */
6444 char putprpwnam();
6446 int main() {
6447 putprpwnam()
6448 ; return 0; }
6450 if { (eval echo configure:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6451 rm -rf conftest*
6452 eval "ac_cv_lib_$ac_lib_var=yes"
6453 else
6454 echo "configure: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 rm -rf conftest*
6457 eval "ac_cv_lib_$ac_lib_var=no"
6459 rm -f conftest*
6460 LIBS="$ac_save_LIBS"
6463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6465 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6467 cat >> confdefs.h <<EOF
6468 #define $ac_tr_lib 1
6471 LIBS="-lsec $LIBS"
6473 else
6474 echo "$ac_t""no" 1>&6
6477 for ac_func in putprpwnam
6479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6480 echo "configure:6481: checking for $ac_func" >&5
6481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6483 else
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* System header to define __stub macros and hopefully few prototypes,
6488 which can conflict with char $ac_func(); below. */
6489 #include <assert.h>
6490 /* Override any gcc2 internal prototype to avoid an error. */
6491 /* We use char because int might match the return type of a gcc2
6492 builtin and then its argument prototype would still apply. */
6493 char $ac_func();
6495 int main() {
6497 /* The GNU C library defines this for functions which it implements
6498 to always fail with ENOSYS. Some functions are actually named
6499 something starting with __ and the normal name is an alias. */
6500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6501 choke me
6502 #else
6503 $ac_func();
6504 #endif
6506 ; return 0; }
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 rm -rf conftest*
6510 eval "ac_cv_func_$ac_func=yes"
6511 else
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6514 rm -rf conftest*
6515 eval "ac_cv_func_$ac_func=no"
6517 rm -f conftest*
6520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6521 echo "$ac_t""yes" 1>&6
6522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6523 cat >> confdefs.h <<EOF
6524 #define $ac_tr_func 1
6527 else
6528 echo "$ac_t""no" 1>&6
6530 done
6533 esac
6536 case "$LIBS" in
6537 *-lsecurity*) for ac_func in set_auth_parameters
6539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6540 echo "configure:6541: checking for $ac_func" >&5
6541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6542 echo $ac_n "(cached) $ac_c" 1>&6
6543 else
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 /* System header to define __stub macros and hopefully few prototypes,
6548 which can conflict with char $ac_func(); below. */
6549 #include <assert.h>
6550 /* Override any gcc2 internal prototype to avoid an error. */
6551 /* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */
6553 char $ac_func();
6555 int main() {
6557 /* The GNU C library defines this for functions which it implements
6558 to always fail with ENOSYS. Some functions are actually named
6559 something starting with __ and the normal name is an alias. */
6560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6561 choke me
6562 #else
6563 $ac_func();
6564 #endif
6566 ; return 0; }
6568 if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6569 rm -rf conftest*
6570 eval "ac_cv_func_$ac_func=yes"
6571 else
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6574 rm -rf conftest*
6575 eval "ac_cv_func_$ac_func=no"
6577 rm -f conftest*
6580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6581 echo "$ac_t""yes" 1>&6
6582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6583 cat >> confdefs.h <<EOF
6584 #define $ac_tr_func 1
6587 else
6588 echo "$ac_t""no" 1>&6
6590 done
6592 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6593 echo "configure:6594: checking for set_auth_parameters in -lsecurity" >&5
6594 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6596 echo $ac_n "(cached) $ac_c" 1>&6
6597 else
6598 ac_save_LIBS="$LIBS"
6599 LIBS="-lsecurity $LIBS"
6600 cat > conftest.$ac_ext <<EOF
6601 #line 6602 "configure"
6602 #include "confdefs.h"
6603 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6606 char set_auth_parameters();
6608 int main() {
6609 set_auth_parameters()
6610 ; return 0; }
6612 if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 rm -rf conftest*
6614 eval "ac_cv_lib_$ac_lib_var=yes"
6615 else
6616 echo "configure: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6618 rm -rf conftest*
6619 eval "ac_cv_lib_$ac_lib_var=no"
6621 rm -f conftest*
6622 LIBS="$ac_save_LIBS"
6625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6629 cat >> confdefs.h <<EOF
6630 #define $ac_tr_lib 1
6633 LIBS="-lsecurity $LIBS"
6635 else
6636 echo "$ac_t""no" 1>&6
6639 for ac_func in set_auth_parameters
6641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6642 echo "configure:6643: checking for $ac_func" >&5
6643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6645 else
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 /* System header to define __stub macros and hopefully few prototypes,
6650 which can conflict with char $ac_func(); below. */
6651 #include <assert.h>
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6655 char $ac_func();
6657 int main() {
6659 /* The GNU C library defines this for functions which it implements
6660 to always fail with ENOSYS. Some functions are actually named
6661 something starting with __ and the normal name is an alias. */
6662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6663 choke me
6664 #else
6665 $ac_func();
6666 #endif
6668 ; return 0; }
6670 if { (eval echo configure:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6671 rm -rf conftest*
6672 eval "ac_cv_func_$ac_func=yes"
6673 else
6674 echo "configure: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6676 rm -rf conftest*
6677 eval "ac_cv_func_$ac_func=no"
6679 rm -f conftest*
6682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6683 echo "$ac_t""yes" 1>&6
6684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6685 cat >> confdefs.h <<EOF
6686 #define $ac_tr_func 1
6689 else
6690 echo "$ac_t""no" 1>&6
6692 done
6695 esac
6697 case "$LIBS" in
6698 *-lsec*) for ac_func in set_auth_parameters
6700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6701 echo "configure:6702: checking for $ac_func" >&5
6702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6704 else
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure"
6707 #include "confdefs.h"
6708 /* System header to define __stub macros and hopefully few prototypes,
6709 which can conflict with char $ac_func(); below. */
6710 #include <assert.h>
6711 /* Override any gcc2 internal prototype to avoid an error. */
6712 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */
6714 char $ac_func();
6716 int main() {
6718 /* The GNU C library defines this for functions which it implements
6719 to always fail with ENOSYS. Some functions are actually named
6720 something starting with __ and the normal name is an alias. */
6721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6722 choke me
6723 #else
6724 $ac_func();
6725 #endif
6727 ; return 0; }
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6730 rm -rf conftest*
6731 eval "ac_cv_func_$ac_func=yes"
6732 else
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6735 rm -rf conftest*
6736 eval "ac_cv_func_$ac_func=no"
6738 rm -f conftest*
6741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6742 echo "$ac_t""yes" 1>&6
6743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6744 cat >> confdefs.h <<EOF
6745 #define $ac_tr_func 1
6748 else
6749 echo "$ac_t""no" 1>&6
6751 done
6753 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6754 echo "configure:6755: checking for set_auth_parameters in -lsec" >&5
6755 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6758 else
6759 ac_save_LIBS="$LIBS"
6760 LIBS="-lsec $LIBS"
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 /* Override any gcc2 internal prototype to avoid an error. */
6765 /* We use char because int might match the return type of a gcc2
6766 builtin and then its argument prototype would still apply. */
6767 char set_auth_parameters();
6769 int main() {
6770 set_auth_parameters()
6771 ; return 0; }
6773 if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 rm -rf conftest*
6775 eval "ac_cv_lib_$ac_lib_var=yes"
6776 else
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6779 rm -rf conftest*
6780 eval "ac_cv_lib_$ac_lib_var=no"
6782 rm -f conftest*
6783 LIBS="$ac_save_LIBS"
6786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6790 cat >> confdefs.h <<EOF
6791 #define $ac_tr_lib 1
6794 LIBS="-lsec $LIBS"
6796 else
6797 echo "$ac_t""no" 1>&6
6800 for ac_func in set_auth_parameters
6802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6803 echo "configure:6804: checking for $ac_func" >&5
6804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6806 else
6807 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6810 /* System header to define __stub macros and hopefully few prototypes,
6811 which can conflict with char $ac_func(); below. */
6812 #include <assert.h>
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6816 char $ac_func();
6818 int main() {
6820 /* The GNU C library defines this for functions which it implements
6821 to always fail with ENOSYS. Some functions are actually named
6822 something starting with __ and the normal name is an alias. */
6823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6824 choke me
6825 #else
6826 $ac_func();
6827 #endif
6829 ; return 0; }
6831 if { (eval echo configure:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6832 rm -rf conftest*
6833 eval "ac_cv_func_$ac_func=yes"
6834 else
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6837 rm -rf conftest*
6838 eval "ac_cv_func_$ac_func=no"
6840 rm -f conftest*
6843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6844 echo "$ac_t""yes" 1>&6
6845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6846 cat >> confdefs.h <<EOF
6847 #define $ac_tr_func 1
6850 else
6851 echo "$ac_t""no" 1>&6
6853 done
6856 esac
6859 # UnixWare 7.x has its getspnam in -lgen
6860 case "$LIBS" in
6861 *-lgen*) for ac_func in getspnam
6863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6864 echo "configure:6865: checking for $ac_func" >&5
6865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6867 else
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func(); below. */
6873 #include <assert.h>
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6877 char $ac_func();
6879 int main() {
6881 /* The GNU C library defines this for functions which it implements
6882 to always fail with ENOSYS. Some functions are actually named
6883 something starting with __ and the normal name is an alias. */
6884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6885 choke me
6886 #else
6887 $ac_func();
6888 #endif
6890 ; return 0; }
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 rm -rf conftest*
6894 eval "ac_cv_func_$ac_func=yes"
6895 else
6896 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6898 rm -rf conftest*
6899 eval "ac_cv_func_$ac_func=no"
6901 rm -f conftest*
6904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6905 echo "$ac_t""yes" 1>&6
6906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6907 cat >> confdefs.h <<EOF
6908 #define $ac_tr_func 1
6911 else
6912 echo "$ac_t""no" 1>&6
6914 done
6916 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6917 echo "configure:6918: checking for getspnam in -lgen" >&5
6918 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6921 else
6922 ac_save_LIBS="$LIBS"
6923 LIBS="-lgen $LIBS"
6924 cat > conftest.$ac_ext <<EOF
6925 #line 6926 "configure"
6926 #include "confdefs.h"
6927 /* Override any gcc2 internal prototype to avoid an error. */
6928 /* We use char because int might match the return type of a gcc2
6929 builtin and then its argument prototype would still apply. */
6930 char getspnam();
6932 int main() {
6933 getspnam()
6934 ; return 0; }
6936 if { (eval echo configure:6937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 rm -rf conftest*
6938 eval "ac_cv_lib_$ac_lib_var=yes"
6939 else
6940 echo "configure: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6942 rm -rf conftest*
6943 eval "ac_cv_lib_$ac_lib_var=no"
6945 rm -f conftest*
6946 LIBS="$ac_save_LIBS"
6949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6950 echo "$ac_t""yes" 1>&6
6951 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6953 cat >> confdefs.h <<EOF
6954 #define $ac_tr_lib 1
6957 LIBS="-lgen $LIBS"
6959 else
6960 echo "$ac_t""no" 1>&6
6963 for ac_func in getspnam
6965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6966 echo "configure:6967: checking for $ac_func" >&5
6967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6969 else
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* System header to define __stub macros and hopefully few prototypes,
6974 which can conflict with char $ac_func(); below. */
6975 #include <assert.h>
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6979 char $ac_func();
6981 int main() {
6983 /* The GNU C library defines this for functions which it implements
6984 to always fail with ENOSYS. Some functions are actually named
6985 something starting with __ and the normal name is an alias. */
6986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6987 choke me
6988 #else
6989 $ac_func();
6990 #endif
6992 ; return 0; }
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6995 rm -rf conftest*
6996 eval "ac_cv_func_$ac_func=yes"
6997 else
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7000 rm -rf conftest*
7001 eval "ac_cv_func_$ac_func=no"
7003 rm -f conftest*
7006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7009 cat >> confdefs.h <<EOF
7010 #define $ac_tr_func 1
7013 else
7014 echo "$ac_t""no" 1>&6
7016 done
7019 esac
7022 case "$LIBS" in
7023 *-lsecurity*) for ac_func in getspnam
7025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7026 echo "configure:7027: checking for $ac_func" >&5
7027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7029 else
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* System header to define __stub macros and hopefully few prototypes,
7034 which can conflict with char $ac_func(); below. */
7035 #include <assert.h>
7036 /* Override any gcc2 internal prototype to avoid an error. */
7037 /* We use char because int might match the return type of a gcc2
7038 builtin and then its argument prototype would still apply. */
7039 char $ac_func();
7041 int main() {
7043 /* The GNU C library defines this for functions which it implements
7044 to always fail with ENOSYS. Some functions are actually named
7045 something starting with __ and the normal name is an alias. */
7046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7047 choke me
7048 #else
7049 $ac_func();
7050 #endif
7052 ; return 0; }
7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7055 rm -rf conftest*
7056 eval "ac_cv_func_$ac_func=yes"
7057 else
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7060 rm -rf conftest*
7061 eval "ac_cv_func_$ac_func=no"
7063 rm -f conftest*
7066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7067 echo "$ac_t""yes" 1>&6
7068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7069 cat >> confdefs.h <<EOF
7070 #define $ac_tr_func 1
7073 else
7074 echo "$ac_t""no" 1>&6
7076 done
7078 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7079 echo "configure:7080: checking for getspnam in -lsecurity" >&5
7080 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7082 echo $ac_n "(cached) $ac_c" 1>&6
7083 else
7084 ac_save_LIBS="$LIBS"
7085 LIBS="-lsecurity $LIBS"
7086 cat > conftest.$ac_ext <<EOF
7087 #line 7088 "configure"
7088 #include "confdefs.h"
7089 /* Override any gcc2 internal prototype to avoid an error. */
7090 /* We use char because int might match the return type of a gcc2
7091 builtin and then its argument prototype would still apply. */
7092 char getspnam();
7094 int main() {
7095 getspnam()
7096 ; return 0; }
7098 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7099 rm -rf conftest*
7100 eval "ac_cv_lib_$ac_lib_var=yes"
7101 else
7102 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7104 rm -rf conftest*
7105 eval "ac_cv_lib_$ac_lib_var=no"
7107 rm -f conftest*
7108 LIBS="$ac_save_LIBS"
7111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7115 cat >> confdefs.h <<EOF
7116 #define $ac_tr_lib 1
7119 LIBS="-lsecurity $LIBS"
7121 else
7122 echo "$ac_t""no" 1>&6
7125 for ac_func in getspnam
7127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7128 echo "configure:7129: checking for $ac_func" >&5
7129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7131 else
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* System header to define __stub macros and hopefully few prototypes,
7136 which can conflict with char $ac_func(); below. */
7137 #include <assert.h>
7138 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */
7141 char $ac_func();
7143 int main() {
7145 /* The GNU C library defines this for functions which it implements
7146 to always fail with ENOSYS. Some functions are actually named
7147 something starting with __ and the normal name is an alias. */
7148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7149 choke me
7150 #else
7151 $ac_func();
7152 #endif
7154 ; return 0; }
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7157 rm -rf conftest*
7158 eval "ac_cv_func_$ac_func=yes"
7159 else
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7162 rm -rf conftest*
7163 eval "ac_cv_func_$ac_func=no"
7165 rm -f conftest*
7168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7171 cat >> confdefs.h <<EOF
7172 #define $ac_tr_func 1
7175 else
7176 echo "$ac_t""no" 1>&6
7178 done
7181 esac
7183 case "$LIBS" in
7184 *-lsec*) for ac_func in getspnam
7186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7187 echo "configure:7188: checking for $ac_func" >&5
7188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7190 else
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* System header to define __stub macros and hopefully few prototypes,
7195 which can conflict with char $ac_func(); below. */
7196 #include <assert.h>
7197 /* Override any gcc2 internal prototype to avoid an error. */
7198 /* We use char because int might match the return type of a gcc2
7199 builtin and then its argument prototype would still apply. */
7200 char $ac_func();
7202 int main() {
7204 /* The GNU C library defines this for functions which it implements
7205 to always fail with ENOSYS. Some functions are actually named
7206 something starting with __ and the normal name is an alias. */
7207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7208 choke me
7209 #else
7210 $ac_func();
7211 #endif
7213 ; return 0; }
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7216 rm -rf conftest*
7217 eval "ac_cv_func_$ac_func=yes"
7218 else
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7221 rm -rf conftest*
7222 eval "ac_cv_func_$ac_func=no"
7224 rm -f conftest*
7227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7230 cat >> confdefs.h <<EOF
7231 #define $ac_tr_func 1
7234 else
7235 echo "$ac_t""no" 1>&6
7237 done
7239 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7240 echo "configure:7241: checking for getspnam in -lsec" >&5
7241 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7244 else
7245 ac_save_LIBS="$LIBS"
7246 LIBS="-lsec $LIBS"
7247 cat > conftest.$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7250 /* Override any gcc2 internal prototype to avoid an error. */
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7253 char getspnam();
7255 int main() {
7256 getspnam()
7257 ; return 0; }
7259 if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 rm -rf conftest*
7261 eval "ac_cv_lib_$ac_lib_var=yes"
7262 else
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7265 rm -rf conftest*
7266 eval "ac_cv_lib_$ac_lib_var=no"
7268 rm -f conftest*
7269 LIBS="$ac_save_LIBS"
7272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7275 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7276 cat >> confdefs.h <<EOF
7277 #define $ac_tr_lib 1
7280 LIBS="-lsec $LIBS"
7282 else
7283 echo "$ac_t""no" 1>&6
7286 for ac_func in getspnam
7288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7289 echo "configure:7290: checking for $ac_func" >&5
7290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7292 else
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 /* System header to define __stub macros and hopefully few prototypes,
7297 which can conflict with char $ac_func(); below. */
7298 #include <assert.h>
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7302 char $ac_func();
7304 int main() {
7306 /* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7310 choke me
7311 #else
7312 $ac_func();
7313 #endif
7315 ; return 0; }
7317 if { (eval echo configure:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7318 rm -rf conftest*
7319 eval "ac_cv_func_$ac_func=yes"
7320 else
7321 echo "configure: failed program was:" >&5
7322 cat conftest.$ac_ext >&5
7323 rm -rf conftest*
7324 eval "ac_cv_func_$ac_func=no"
7326 rm -f conftest*
7329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7332 cat >> confdefs.h <<EOF
7333 #define $ac_tr_func 1
7336 else
7337 echo "$ac_t""no" 1>&6
7339 done
7342 esac
7345 case "$LIBS" in
7346 *-lsecurity*) for ac_func in bigcrypt
7348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7349 echo "configure:7350: checking for $ac_func" >&5
7350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7352 else
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7356 /* System header to define __stub macros and hopefully few prototypes,
7357 which can conflict with char $ac_func(); below. */
7358 #include <assert.h>
7359 /* Override any gcc2 internal prototype to avoid an error. */
7360 /* We use char because int might match the return type of a gcc2
7361 builtin and then its argument prototype would still apply. */
7362 char $ac_func();
7364 int main() {
7366 /* The GNU C library defines this for functions which it implements
7367 to always fail with ENOSYS. Some functions are actually named
7368 something starting with __ and the normal name is an alias. */
7369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7370 choke me
7371 #else
7372 $ac_func();
7373 #endif
7375 ; return 0; }
7377 if { (eval echo configure:7378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7378 rm -rf conftest*
7379 eval "ac_cv_func_$ac_func=yes"
7380 else
7381 echo "configure: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7383 rm -rf conftest*
7384 eval "ac_cv_func_$ac_func=no"
7386 rm -f conftest*
7389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7390 echo "$ac_t""yes" 1>&6
7391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7392 cat >> confdefs.h <<EOF
7393 #define $ac_tr_func 1
7396 else
7397 echo "$ac_t""no" 1>&6
7399 done
7401 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7402 echo "configure:7403: checking for bigcrypt in -lsecurity" >&5
7403 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7406 else
7407 ac_save_LIBS="$LIBS"
7408 LIBS="-lsecurity $LIBS"
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7412 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7415 char bigcrypt();
7417 int main() {
7418 bigcrypt()
7419 ; return 0; }
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 rm -rf conftest*
7423 eval "ac_cv_lib_$ac_lib_var=yes"
7424 else
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7427 rm -rf conftest*
7428 eval "ac_cv_lib_$ac_lib_var=no"
7430 rm -f conftest*
7431 LIBS="$ac_save_LIBS"
7434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7438 cat >> confdefs.h <<EOF
7439 #define $ac_tr_lib 1
7442 LIBS="-lsecurity $LIBS"
7444 else
7445 echo "$ac_t""no" 1>&6
7448 for ac_func in bigcrypt
7450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7451 echo "configure:7452: checking for $ac_func" >&5
7452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7454 else
7455 cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 /* System header to define __stub macros and hopefully few prototypes,
7459 which can conflict with char $ac_func(); below. */
7460 #include <assert.h>
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 /* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7464 char $ac_func();
7466 int main() {
7468 /* The GNU C library defines this for functions which it implements
7469 to always fail with ENOSYS. Some functions are actually named
7470 something starting with __ and the normal name is an alias. */
7471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7472 choke me
7473 #else
7474 $ac_func();
7475 #endif
7477 ; return 0; }
7479 if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7480 rm -rf conftest*
7481 eval "ac_cv_func_$ac_func=yes"
7482 else
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 rm -rf conftest*
7486 eval "ac_cv_func_$ac_func=no"
7488 rm -f conftest*
7491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7492 echo "$ac_t""yes" 1>&6
7493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7494 cat >> confdefs.h <<EOF
7495 #define $ac_tr_func 1
7498 else
7499 echo "$ac_t""no" 1>&6
7501 done
7504 esac
7506 case "$LIBS" in
7507 *-lsec*) for ac_func in bigcrypt
7509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_func" >&5
7511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7513 else
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517 /* System header to define __stub macros and hopefully few prototypes,
7518 which can conflict with char $ac_func(); below. */
7519 #include <assert.h>
7520 /* Override any gcc2 internal prototype to avoid an error. */
7521 /* We use char because int might match the return type of a gcc2
7522 builtin and then its argument prototype would still apply. */
7523 char $ac_func();
7525 int main() {
7527 /* The GNU C library defines this for functions which it implements
7528 to always fail with ENOSYS. Some functions are actually named
7529 something starting with __ and the normal name is an alias. */
7530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7531 choke me
7532 #else
7533 $ac_func();
7534 #endif
7536 ; return 0; }
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7539 rm -rf conftest*
7540 eval "ac_cv_func_$ac_func=yes"
7541 else
7542 echo "configure: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7544 rm -rf conftest*
7545 eval "ac_cv_func_$ac_func=no"
7547 rm -f conftest*
7550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7553 cat >> confdefs.h <<EOF
7554 #define $ac_tr_func 1
7557 else
7558 echo "$ac_t""no" 1>&6
7560 done
7562 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7563 echo "configure:7564: checking for bigcrypt in -lsec" >&5
7564 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7567 else
7568 ac_save_LIBS="$LIBS"
7569 LIBS="-lsec $LIBS"
7570 cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7573 /* Override any gcc2 internal prototype to avoid an error. */
7574 /* We use char because int might match the return type of a gcc2
7575 builtin and then its argument prototype would still apply. */
7576 char bigcrypt();
7578 int main() {
7579 bigcrypt()
7580 ; return 0; }
7582 if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7583 rm -rf conftest*
7584 eval "ac_cv_lib_$ac_lib_var=yes"
7585 else
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7588 rm -rf conftest*
7589 eval "ac_cv_lib_$ac_lib_var=no"
7591 rm -f conftest*
7592 LIBS="$ac_save_LIBS"
7595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7599 cat >> confdefs.h <<EOF
7600 #define $ac_tr_lib 1
7603 LIBS="-lsec $LIBS"
7605 else
7606 echo "$ac_t""no" 1>&6
7609 for ac_func in bigcrypt
7611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7612 echo "configure:7613: checking for $ac_func" >&5
7613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7615 else
7616 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure"
7618 #include "confdefs.h"
7619 /* System header to define __stub macros and hopefully few prototypes,
7620 which can conflict with char $ac_func(); below. */
7621 #include <assert.h>
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7625 char $ac_func();
7627 int main() {
7629 /* The GNU C library defines this for functions which it implements
7630 to always fail with ENOSYS. Some functions are actually named
7631 something starting with __ and the normal name is an alias. */
7632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7633 choke me
7634 #else
7635 $ac_func();
7636 #endif
7638 ; return 0; }
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7641 rm -rf conftest*
7642 eval "ac_cv_func_$ac_func=yes"
7643 else
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7646 rm -rf conftest*
7647 eval "ac_cv_func_$ac_func=no"
7649 rm -f conftest*
7652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7653 echo "$ac_t""yes" 1>&6
7654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7655 cat >> confdefs.h <<EOF
7656 #define $ac_tr_func 1
7659 else
7660 echo "$ac_t""no" 1>&6
7662 done
7665 esac
7668 case "$LIBS" in
7669 *-lsecurity*) for ac_func in getprpwnam
7671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7672 echo "configure:7673: checking for $ac_func" >&5
7673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7675 else
7676 cat > conftest.$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 /* System header to define __stub macros and hopefully few prototypes,
7680 which can conflict with char $ac_func(); below. */
7681 #include <assert.h>
7682 /* Override any gcc2 internal prototype to avoid an error. */
7683 /* We use char because int might match the return type of a gcc2
7684 builtin and then its argument prototype would still apply. */
7685 char $ac_func();
7687 int main() {
7689 /* The GNU C library defines this for functions which it implements
7690 to always fail with ENOSYS. Some functions are actually named
7691 something starting with __ and the normal name is an alias. */
7692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7693 choke me
7694 #else
7695 $ac_func();
7696 #endif
7698 ; return 0; }
7700 if { (eval echo configure:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7701 rm -rf conftest*
7702 eval "ac_cv_func_$ac_func=yes"
7703 else
7704 echo "configure: failed program was:" >&5
7705 cat conftest.$ac_ext >&5
7706 rm -rf conftest*
7707 eval "ac_cv_func_$ac_func=no"
7709 rm -f conftest*
7712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7713 echo "$ac_t""yes" 1>&6
7714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7715 cat >> confdefs.h <<EOF
7716 #define $ac_tr_func 1
7719 else
7720 echo "$ac_t""no" 1>&6
7722 done
7724 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7725 echo "configure:7726: checking for getprpwnam in -lsecurity" >&5
7726 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7730 ac_save_LIBS="$LIBS"
7731 LIBS="-lsecurity $LIBS"
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 /* Override any gcc2 internal prototype to avoid an error. */
7736 /* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7738 char getprpwnam();
7740 int main() {
7741 getprpwnam()
7742 ; return 0; }
7744 if { (eval echo configure:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7745 rm -rf conftest*
7746 eval "ac_cv_lib_$ac_lib_var=yes"
7747 else
7748 echo "configure: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7750 rm -rf conftest*
7751 eval "ac_cv_lib_$ac_lib_var=no"
7753 rm -f conftest*
7754 LIBS="$ac_save_LIBS"
7757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7758 echo "$ac_t""yes" 1>&6
7759 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7761 cat >> confdefs.h <<EOF
7762 #define $ac_tr_lib 1
7765 LIBS="-lsecurity $LIBS"
7767 else
7768 echo "$ac_t""no" 1>&6
7771 for ac_func in getprpwnam
7773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7774 echo "configure:7775: checking for $ac_func" >&5
7775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7777 else
7778 cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 /* System header to define __stub macros and hopefully few prototypes,
7782 which can conflict with char $ac_func(); below. */
7783 #include <assert.h>
7784 /* Override any gcc2 internal prototype to avoid an error. */
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7787 char $ac_func();
7789 int main() {
7791 /* The GNU C library defines this for functions which it implements
7792 to always fail with ENOSYS. Some functions are actually named
7793 something starting with __ and the normal name is an alias. */
7794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7795 choke me
7796 #else
7797 $ac_func();
7798 #endif
7800 ; return 0; }
7802 if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7803 rm -rf conftest*
7804 eval "ac_cv_func_$ac_func=yes"
7805 else
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7808 rm -rf conftest*
7809 eval "ac_cv_func_$ac_func=no"
7811 rm -f conftest*
7814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7815 echo "$ac_t""yes" 1>&6
7816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7817 cat >> confdefs.h <<EOF
7818 #define $ac_tr_func 1
7821 else
7822 echo "$ac_t""no" 1>&6
7824 done
7827 esac
7829 case "$LIBS" in
7830 *-lsec*) for ac_func in getprpwnam
7832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7833 echo "configure:7834: checking for $ac_func" >&5
7834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7836 else
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 /* System header to define __stub macros and hopefully few prototypes,
7841 which can conflict with char $ac_func(); below. */
7842 #include <assert.h>
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7846 char $ac_func();
7848 int main() {
7850 /* The GNU C library defines this for functions which it implements
7851 to always fail with ENOSYS. Some functions are actually named
7852 something starting with __ and the normal name is an alias. */
7853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7854 choke me
7855 #else
7856 $ac_func();
7857 #endif
7859 ; return 0; }
7861 if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7862 rm -rf conftest*
7863 eval "ac_cv_func_$ac_func=yes"
7864 else
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7867 rm -rf conftest*
7868 eval "ac_cv_func_$ac_func=no"
7870 rm -f conftest*
7873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7876 cat >> confdefs.h <<EOF
7877 #define $ac_tr_func 1
7880 else
7881 echo "$ac_t""no" 1>&6
7883 done
7885 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7886 echo "configure:7887: checking for getprpwnam in -lsec" >&5
7887 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7890 else
7891 ac_save_LIBS="$LIBS"
7892 LIBS="-lsec $LIBS"
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 /* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7899 char getprpwnam();
7901 int main() {
7902 getprpwnam()
7903 ; return 0; }
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7906 rm -rf conftest*
7907 eval "ac_cv_lib_$ac_lib_var=yes"
7908 else
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7911 rm -rf conftest*
7912 eval "ac_cv_lib_$ac_lib_var=no"
7914 rm -f conftest*
7915 LIBS="$ac_save_LIBS"
7918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7919 echo "$ac_t""yes" 1>&6
7920 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7922 cat >> confdefs.h <<EOF
7923 #define $ac_tr_lib 1
7926 LIBS="-lsec $LIBS"
7928 else
7929 echo "$ac_t""no" 1>&6
7932 for ac_func in getprpwnam
7934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7935 echo "configure:7936: checking for $ac_func" >&5
7936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7938 else
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942 /* System header to define __stub macros and hopefully few prototypes,
7943 which can conflict with char $ac_func(); below. */
7944 #include <assert.h>
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7948 char $ac_func();
7950 int main() {
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7956 choke me
7957 #else
7958 $ac_func();
7959 #endif
7961 ; return 0; }
7963 if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7964 rm -rf conftest*
7965 eval "ac_cv_func_$ac_func=yes"
7966 else
7967 echo "configure: failed program was:" >&5
7968 cat conftest.$ac_ext >&5
7969 rm -rf conftest*
7970 eval "ac_cv_func_$ac_func=no"
7972 rm -f conftest*
7975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7976 echo "$ac_t""yes" 1>&6
7977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7978 cat >> confdefs.h <<EOF
7979 #define $ac_tr_func 1
7982 else
7983 echo "$ac_t""no" 1>&6
7985 done
7988 esac
7991 # this bit needs to be modified for each OS that is suported by
7992 # smbwrapper. You need to specify how to created a shared library and
7993 # how to compile C code to produce PIC object files
7995 # these are the defaults, good for lots of systems
7996 HOST_OS="$host_os"
7997 LDSHFLAGS="-shared"
7998 PICFLAG=""
7999 SHLIBEXT="so"
8001 # and these are for particular systems
8002 case "$host_os" in
8003 *linux*) cat >> confdefs.h <<\EOF
8004 #define LINUX 1
8007 *solaris*) cat >> confdefs.h <<\EOF
8008 #define SUNOS5 1
8011 LDSHFLAGS="-G"
8013 *sunos*) cat >> confdefs.h <<\EOF
8014 #define SUNOS4 1
8017 LDSHFLAGS=""
8019 *bsd*) LDSHFLAGS="-shared -Bshareable"
8021 *irix*) cat >> confdefs.h <<\EOF
8022 #define IRIX 1
8025 case "$host_os" in
8026 *irix6*) cat >> confdefs.h <<\EOF
8027 #define IRIX6 1
8031 esac
8032 ATTEMPT_WRAP32_BUILD=yes
8034 *aix*) cat >> confdefs.h <<\EOF
8035 #define AIX 1
8038 *hpux*) cat >> confdefs.h <<\EOF
8039 #define HPUX 1
8042 SHLIBEXT="sl"
8043 # Use special PIC flags for the native HP-UX compiler.
8044 if test $ac_cv_prog_cc_Ae = yes; then
8045 LDSHFLAGS="-b"
8046 PICFLAG="+z"
8049 *qnx*) cat >> confdefs.h <<\EOF
8050 #define QNX 1
8053 *osf*) cat >> confdefs.h <<\EOF
8054 #define OSF1 1
8057 *sco*) cat >> confdefs.h <<\EOF
8058 #define SCO 1
8061 *next2*) cat >> confdefs.h <<\EOF
8062 #define NEXT2 1
8065 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8066 set dummy groff; ac_word=$2
8067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8068 echo "configure:8069: checking for $ac_word" >&5
8069 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8071 else
8072 if test -n "$ROFF"; then
8073 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8074 else
8075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8076 ac_dummy="$PATH"
8077 for ac_dir in $ac_dummy; do
8078 test -z "$ac_dir" && ac_dir=.
8079 if test -f $ac_dir/$ac_word; then
8080 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8081 break
8083 done
8084 IFS="$ac_save_ifs"
8087 ROFF="$ac_cv_prog_ROFF"
8088 if test -n "$ROFF"; then
8089 echo "$ac_t""$ROFF" 1>&6
8090 else
8091 echo "$ac_t""no" 1>&6
8094 *sysv4*)
8095 case "$host" in
8096 *-univel-*) if test "$GCC" != yes ; then
8097 cat >> confdefs.h <<\EOF
8098 #define HAVE_MEMSET 1
8102 LDSHFLAGS="-G"
8104 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8105 #define RELIANTUNIX 1
8108 esac
8110 *sysv5*)
8111 if test "$GCC" != yes ; then
8112 cat >> confdefs.h <<\EOF
8113 #define HAVE_MEMSET 1
8117 LDSHFLAGS="-G"
8119 esac
8121 # try to work out how to produce pic code with this compiler
8122 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8123 echo "configure:8124: checking whether ${CC-cc} accepts -fpic" >&5
8124 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8126 else
8127 echo 'void f(){}' > conftest.c
8128 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8129 ac_cv_prog_cc_fpic=yes
8130 else
8131 ac_cv_prog_cc_fpic=no
8133 rm -f conftest*
8137 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8138 if test $ac_cv_prog_cc_fpic = yes; then
8139 PICFLAG="-fpic";
8141 if test x$PICFLAG = x; then
8142 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8143 echo "configure:8144: checking whether ${CC-cc} accepts -Kpic" >&5
8144 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8146 else
8147 echo 'void f(){}' > conftest.c
8148 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8149 ac_cv_prog_cc_Kpic=yes
8150 else
8151 ac_cv_prog_cc_Kpic=no
8153 rm -f conftest*
8157 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8158 if test $ac_cv_prog_cc_Kpic = yes; then
8159 PICFLAG="-Kpic";
8162 if test x$PICFLAG = x; then
8163 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8164 echo "configure:8165: checking whether ${CC-cc} accepts -KPIC" >&5
8165 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8167 else
8168 echo 'void f(){}' > conftest.c
8169 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8170 ac_cv_prog_cc_KPIC=yes
8171 else
8172 ac_cv_prog_cc_KPIC=no
8174 rm -f conftest*
8178 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8179 if test $ac_cv_prog_cc_KPIC = yes; then
8180 PICFLAG="-KPIC";
8184 ################
8186 echo $ac_n "checking for long long""... $ac_c" 1>&6
8187 echo "configure:8188: checking for long long" >&5
8188 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8190 else
8192 if test "$cross_compiling" = yes; then
8193 samba_cv_have_longlong=cross
8194 else
8195 cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8198 #include <stdio.h>
8199 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8201 if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8202 then
8203 samba_cv_have_longlong=yes
8204 else
8205 echo "configure: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 rm -fr conftest*
8208 samba_cv_have_longlong=no
8210 rm -fr conftest*
8215 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8216 if test x"$samba_cv_have_longlong" = x"yes"; then
8217 cat >> confdefs.h <<\EOF
8218 #define HAVE_LONGLONG 1
8224 # Check if the compiler supports the LL prefix on long long integers.
8225 # AIX needs this.
8227 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8228 echo "configure:8229: checking for LL suffix on long long integers" >&5
8229 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8231 else
8233 cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 #include <stdio.h>
8237 int main() {
8238 long long i = 0x8000000000LL
8239 ; return 0; }
8241 if { (eval echo configure:8242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8242 rm -rf conftest*
8243 samba_cv_compiler_supports_ll=yes
8244 else
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8247 rm -rf conftest*
8248 samba_cv_compiler_supports_ll=no
8250 rm -f conftest*
8253 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8254 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8255 cat >> confdefs.h <<\EOF
8256 #define COMPILER_SUPPORTS_LL 1
8262 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8263 echo "configure:8264: checking for 64 bit off_t" >&5
8264 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8266 else
8268 if test "$cross_compiling" = yes; then
8269 samba_cv_SIZEOF_OFF_T=cross
8270 else
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 #include <stdio.h>
8275 #include <sys/stat.h>
8276 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8278 if { (eval echo configure:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8279 then
8280 samba_cv_SIZEOF_OFF_T=yes
8281 else
8282 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8284 rm -fr conftest*
8285 samba_cv_SIZEOF_OFF_T=no
8287 rm -fr conftest*
8292 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8293 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8294 cat >> confdefs.h <<\EOF
8295 #define SIZEOF_OFF_T 8
8300 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8301 echo "configure:8302: checking for off64_t" >&5
8302 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8304 else
8306 if test "$cross_compiling" = yes; then
8307 samba_cv_HAVE_OFF64_T=cross
8308 else
8309 cat > conftest.$ac_ext <<EOF
8310 #line 8311 "configure"
8311 #include "confdefs.h"
8313 #if defined(HAVE_UNISTD_H)
8314 #include <unistd.h>
8315 #endif
8316 #include <stdio.h>
8317 #include <sys/stat.h>
8318 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8321 then
8322 samba_cv_HAVE_OFF64_T=yes
8323 else
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8326 rm -fr conftest*
8327 samba_cv_HAVE_OFF64_T=no
8329 rm -fr conftest*
8334 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8335 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8336 cat >> confdefs.h <<\EOF
8337 #define HAVE_OFF64_T 1
8342 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8343 echo "configure:8344: checking for 64 bit ino_t" >&5
8344 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8346 else
8348 if test "$cross_compiling" = yes; then
8349 samba_cv_SIZEOF_INO_T=cross
8350 else
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 #include <stdio.h>
8355 #include <sys/stat.h>
8356 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8359 then
8360 samba_cv_SIZEOF_INO_T=yes
8361 else
8362 echo "configure: failed program was:" >&5
8363 cat conftest.$ac_ext >&5
8364 rm -fr conftest*
8365 samba_cv_SIZEOF_INO_T=no
8367 rm -fr conftest*
8372 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8373 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8374 cat >> confdefs.h <<\EOF
8375 #define SIZEOF_INO_T 8
8380 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8381 echo "configure:8382: checking for ino64_t" >&5
8382 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8384 else
8386 if test "$cross_compiling" = yes; then
8387 samba_cv_HAVE_INO64_T=cross
8388 else
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8393 #if defined(HAVE_UNISTD_H)
8394 #include <unistd.h>
8395 #endif
8396 #include <stdio.h>
8397 #include <sys/stat.h>
8398 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8400 if { (eval echo configure:8401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8401 then
8402 samba_cv_HAVE_INO64_T=yes
8403 else
8404 echo "configure: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 rm -fr conftest*
8407 samba_cv_HAVE_INO64_T=no
8409 rm -fr conftest*
8414 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8415 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8416 cat >> confdefs.h <<\EOF
8417 #define HAVE_INO64_T 1
8422 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8423 echo "configure:8424: checking for struct dirent64" >&5
8424 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8426 else
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8432 #if defined(HAVE_UNISTD_H)
8433 #include <unistd.h>
8434 #endif
8435 #include <sys/types.h>
8436 #include <dirent.h>
8437 int main() {
8438 struct dirent64 de;
8439 ; return 0; }
8441 if { (eval echo configure:8442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8442 rm -rf conftest*
8443 samba_cv_HAVE_STRUCT_DIRENT64=yes
8444 else
8445 echo "configure: failed program was:" >&5
8446 cat conftest.$ac_ext >&5
8447 rm -rf conftest*
8448 samba_cv_HAVE_STRUCT_DIRENT64=no
8450 rm -f conftest*
8453 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8454 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8455 cat >> confdefs.h <<\EOF
8456 #define HAVE_STRUCT_DIRENT64 1
8461 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8462 echo "configure:8463: checking for unsigned char" >&5
8463 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8464 echo $ac_n "(cached) $ac_c" 1>&6
8465 else
8467 if test "$cross_compiling" = yes; then
8468 samba_cv_HAVE_UNSIGNED_CHAR=cross
8469 else
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8473 #include <stdio.h>
8474 main() { char c; c=250; exit((c > 0)?0:1); }
8476 if { (eval echo configure:8477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8477 then
8478 samba_cv_HAVE_UNSIGNED_CHAR=yes
8479 else
8480 echo "configure: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8482 rm -fr conftest*
8483 samba_cv_HAVE_UNSIGNED_CHAR=no
8485 rm -fr conftest*
8490 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8491 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8492 cat >> confdefs.h <<\EOF
8493 #define HAVE_UNSIGNED_CHAR 1
8498 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8499 echo "configure:8500: checking for sin_len in sock" >&5
8500 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8501 echo $ac_n "(cached) $ac_c" 1>&6
8502 else
8504 cat > conftest.$ac_ext <<EOF
8505 #line 8506 "configure"
8506 #include "confdefs.h"
8507 #include <sys/types.h>
8508 #include <sys/socket.h>
8509 #include <netinet/in.h>
8510 int main() {
8511 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8512 ; return 0; }
8514 if { (eval echo configure:8515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8515 rm -rf conftest*
8516 samba_cv_HAVE_SOCK_SIN_LEN=yes
8517 else
8518 echo "configure: failed program was:" >&5
8519 cat conftest.$ac_ext >&5
8520 rm -rf conftest*
8521 samba_cv_HAVE_SOCK_SIN_LEN=no
8523 rm -f conftest*
8526 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8527 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8528 cat >> confdefs.h <<\EOF
8529 #define HAVE_SOCK_SIN_LEN 1
8534 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8535 echo "configure:8536: checking whether seekdir returns void" >&5
8536 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8537 echo $ac_n "(cached) $ac_c" 1>&6
8538 else
8540 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543 #include <sys/types.h>
8544 #include <dirent.h>
8545 void seekdir(DIR *d, long loc) { return; }
8546 int main() {
8547 return 0;
8548 ; return 0; }
8550 if { (eval echo configure:8551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8551 rm -rf conftest*
8552 samba_cv_SEEKDIR_RETURNS_VOID=yes
8553 else
8554 echo "configure: failed program was:" >&5
8555 cat conftest.$ac_ext >&5
8556 rm -rf conftest*
8557 samba_cv_SEEKDIR_RETURNS_VOID=no
8559 rm -f conftest*
8562 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8563 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8564 cat >> confdefs.h <<\EOF
8565 #define SEEKDIR_RETURNS_VOID 1
8570 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8571 echo "configure:8572: checking for __FILE__ macro" >&5
8572 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8574 else
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 #include <stdio.h>
8580 int main() {
8581 printf("%s\n", __FILE__);
8582 ; return 0; }
8584 if { (eval echo configure:8585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8585 rm -rf conftest*
8586 samba_cv_HAVE_FILE_MACRO=yes
8587 else
8588 echo "configure: failed program was:" >&5
8589 cat conftest.$ac_ext >&5
8590 rm -rf conftest*
8591 samba_cv_HAVE_FILE_MACRO=no
8593 rm -f conftest*
8596 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8597 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8598 cat >> confdefs.h <<\EOF
8599 #define HAVE_FILE_MACRO 1
8604 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8605 echo "configure:8606: checking for __FUNCTION__ macro" >&5
8606 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
8608 else
8610 cat > conftest.$ac_ext <<EOF
8611 #line 8612 "configure"
8612 #include "confdefs.h"
8613 #include <stdio.h>
8614 int main() {
8615 printf("%s\n", __FUNCTION__);
8616 ; return 0; }
8618 if { (eval echo configure:8619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8619 rm -rf conftest*
8620 samba_cv_HAVE_FUNCTION_MACRO=yes
8621 else
8622 echo "configure: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8624 rm -rf conftest*
8625 samba_cv_HAVE_FUNCTION_MACRO=no
8627 rm -f conftest*
8630 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8631 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8632 cat >> confdefs.h <<\EOF
8633 #define HAVE_FUNCTION_MACRO 1
8638 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8639 echo "configure:8640: checking if gettimeofday takes tz argument" >&5
8640 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8642 else
8644 if test "$cross_compiling" = yes; then
8645 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8646 else
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8651 #include <sys/time.h>
8652 #include <unistd.h>
8653 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8655 if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8656 then
8657 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8658 else
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 rm -fr conftest*
8662 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8664 rm -fr conftest*
8669 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8670 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8671 cat >> confdefs.h <<\EOF
8672 #define HAVE_GETTIMEOFDAY_TZ 1
8678 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8679 echo "configure:8680: checking for broken readdir" >&5
8680 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8682 else
8684 if test "$cross_compiling" = yes; then
8685 samba_cv_HAVE_BROKEN_READDIR=cross
8686 else
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 #include <sys/types.h>
8691 #include <dirent.h>
8692 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8693 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8694 di->d_name[0] == 0) exit(0); exit(1);}
8696 if { (eval echo configure:8697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8697 then
8698 samba_cv_HAVE_BROKEN_READDIR=yes
8699 else
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8702 rm -fr conftest*
8703 samba_cv_HAVE_BROKEN_READDIR=no
8705 rm -fr conftest*
8710 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8711 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8712 cat >> confdefs.h <<\EOF
8713 #define HAVE_BROKEN_READDIR 1
8718 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8719 echo "configure:8720: checking for utimbuf" >&5
8720 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8722 else
8724 cat > conftest.$ac_ext <<EOF
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727 #include <sys/types.h>
8728 #include <utime.h>
8729 int main() {
8730 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8731 ; return 0; }
8733 if { (eval echo configure:8734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8734 rm -rf conftest*
8735 samba_cv_HAVE_UTIMBUF=yes
8736 else
8737 echo "configure: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8739 rm -rf conftest*
8740 samba_cv_HAVE_UTIMBUF=no
8742 rm -f conftest*
8745 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8746 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8747 cat >> confdefs.h <<\EOF
8748 #define HAVE_UTIMBUF 1
8754 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
8756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8757 echo "configure:8758: checking for $ac_func" >&5
8758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8759 echo $ac_n "(cached) $ac_c" 1>&6
8760 else
8761 cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 /* System header to define __stub macros and hopefully few prototypes,
8765 which can conflict with char $ac_func(); below. */
8766 #include <assert.h>
8767 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8770 char $ac_func();
8772 int main() {
8774 /* The GNU C library defines this for functions which it implements
8775 to always fail with ENOSYS. Some functions are actually named
8776 something starting with __ and the normal name is an alias. */
8777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8778 choke me
8779 #else
8780 $ac_func();
8781 #endif
8783 ; return 0; }
8785 if { (eval echo configure:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8786 rm -rf conftest*
8787 eval "ac_cv_func_$ac_func=yes"
8788 else
8789 echo "configure: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8791 rm -rf conftest*
8792 eval "ac_cv_func_$ac_func=no"
8794 rm -f conftest*
8797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8798 echo "$ac_t""yes" 1>&6
8799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8800 cat >> confdefs.h <<EOF
8801 #define $ac_tr_func 1
8804 else
8805 echo "$ac_t""no" 1>&6
8807 done
8810 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
8811 echo "configure:8812: checking for ut_name in utmp" >&5
8812 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8814 else
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8819 #include <sys/types.h>
8820 #include <utmp.h>
8821 int main() {
8822 struct utmp ut; ut.ut_name[0] = 'a';
8823 ; return 0; }
8825 if { (eval echo configure:8826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8826 rm -rf conftest*
8827 samba_cv_HAVE_UT_UT_NAME=yes
8828 else
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8831 rm -rf conftest*
8832 samba_cv_HAVE_UT_UT_NAME=no
8834 rm -f conftest*
8837 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
8838 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
8839 cat >> confdefs.h <<\EOF
8840 #define HAVE_UT_UT_NAME 1
8845 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
8846 echo "configure:8847: checking for ut_user in utmp" >&5
8847 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8849 else
8851 cat > conftest.$ac_ext <<EOF
8852 #line 8853 "configure"
8853 #include "confdefs.h"
8854 #include <sys/types.h>
8855 #include <utmp.h>
8856 int main() {
8857 struct utmp ut; ut.ut_user[0] = 'a';
8858 ; return 0; }
8860 if { (eval echo configure:8861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8861 rm -rf conftest*
8862 samba_cv_HAVE_UT_UT_USER=yes
8863 else
8864 echo "configure: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8866 rm -rf conftest*
8867 samba_cv_HAVE_UT_UT_USER=no
8869 rm -f conftest*
8872 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
8873 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
8874 cat >> confdefs.h <<\EOF
8875 #define HAVE_UT_UT_USER 1
8880 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
8881 echo "configure:8882: checking for ut_id in utmp" >&5
8882 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8884 else
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8889 #include <sys/types.h>
8890 #include <utmp.h>
8891 int main() {
8892 struct utmp ut; ut.ut_id[0] = 'a';
8893 ; return 0; }
8895 if { (eval echo configure:8896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8896 rm -rf conftest*
8897 samba_cv_HAVE_UT_UT_ID=yes
8898 else
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 rm -rf conftest*
8902 samba_cv_HAVE_UT_UT_ID=no
8904 rm -f conftest*
8907 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
8908 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
8909 cat >> confdefs.h <<\EOF
8910 #define HAVE_UT_UT_ID 1
8915 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
8916 echo "configure:8917: checking for ut_host in utmp" >&5
8917 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8919 else
8921 cat > conftest.$ac_ext <<EOF
8922 #line 8923 "configure"
8923 #include "confdefs.h"
8924 #include <sys/types.h>
8925 #include <utmp.h>
8926 int main() {
8927 struct utmp ut; ut.ut_host[0] = 'a';
8928 ; return 0; }
8930 if { (eval echo configure:8931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8931 rm -rf conftest*
8932 samba_cv_HAVE_UT_UT_HOST=yes
8933 else
8934 echo "configure: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 rm -rf conftest*
8937 samba_cv_HAVE_UT_UT_HOST=no
8939 rm -f conftest*
8942 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
8943 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
8944 cat >> confdefs.h <<\EOF
8945 #define HAVE_UT_UT_HOST 1
8950 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
8951 echo "configure:8952: checking for ut_time in utmp" >&5
8952 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
8953 echo $ac_n "(cached) $ac_c" 1>&6
8954 else
8956 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8959 #include <sys/types.h>
8960 #include <utmp.h>
8961 int main() {
8962 struct utmp ut; time_t t; ut.ut_time = t;
8963 ; return 0; }
8965 if { (eval echo configure:8966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8966 rm -rf conftest*
8967 samba_cv_HAVE_UT_UT_TIME=yes
8968 else
8969 echo "configure: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 rm -rf conftest*
8972 samba_cv_HAVE_UT_UT_TIME=no
8974 rm -f conftest*
8977 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
8978 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
8979 cat >> confdefs.h <<\EOF
8980 #define HAVE_UT_UT_TIME 1
8985 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
8986 echo "configure:8987: checking for ut_tv in utmp" >&5
8987 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8989 else
8991 cat > conftest.$ac_ext <<EOF
8992 #line 8993 "configure"
8993 #include "confdefs.h"
8994 #include <sys/types.h>
8995 #include <utmp.h>
8996 int main() {
8997 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
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_UT_UT_TV=yes
9003 else
9004 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9006 rm -rf conftest*
9007 samba_cv_HAVE_UT_UT_TV=no
9009 rm -f conftest*
9012 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9013 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9014 cat >> confdefs.h <<\EOF
9015 #define HAVE_UT_UT_TV 1
9020 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9021 echo "configure:9022: checking for ut_type in utmp" >&5
9022 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9023 echo $ac_n "(cached) $ac_c" 1>&6
9024 else
9026 cat > conftest.$ac_ext <<EOF
9027 #line 9028 "configure"
9028 #include "confdefs.h"
9029 #include <sys/types.h>
9030 #include <utmp.h>
9031 int main() {
9032 struct utmp ut; ut.ut_type = 0;
9033 ; return 0; }
9035 if { (eval echo configure:9036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9036 rm -rf conftest*
9037 samba_cv_HAVE_UT_UT_TYPE=yes
9038 else
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 rm -rf conftest*
9042 samba_cv_HAVE_UT_UT_TYPE=no
9044 rm -f conftest*
9047 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9048 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9049 cat >> confdefs.h <<\EOF
9050 #define HAVE_UT_UT_TYPE 1
9055 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9056 echo "configure:9057: checking for ut_pid in utmp" >&5
9057 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9059 else
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <sys/types.h>
9065 #include <utmp.h>
9066 int main() {
9067 struct utmp ut; ut.ut_pid = 0;
9068 ; return 0; }
9070 if { (eval echo configure:9071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 rm -rf conftest*
9072 samba_cv_HAVE_UT_UT_PID=yes
9073 else
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9076 rm -rf conftest*
9077 samba_cv_HAVE_UT_UT_PID=no
9079 rm -f conftest*
9082 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9083 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9084 cat >> confdefs.h <<\EOF
9085 #define HAVE_UT_UT_PID 1
9090 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9091 echo "configure:9092: checking for ut_exit in utmp" >&5
9092 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9094 else
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 #include <sys/types.h>
9100 #include <utmp.h>
9101 int main() {
9102 struct utmp ut; ut.ut_exit.e_exit = 0;
9103 ; return 0; }
9105 if { (eval echo configure:9106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9106 rm -rf conftest*
9107 samba_cv_HAVE_UT_UT_EXIT=yes
9108 else
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9111 rm -rf conftest*
9112 samba_cv_HAVE_UT_UT_EXIT=no
9114 rm -f conftest*
9117 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9118 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9119 cat >> confdefs.h <<\EOF
9120 #define HAVE_UT_UT_EXIT 1
9125 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9126 echo "configure:9127: checking for ut_addr in utmp" >&5
9127 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9129 else
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 #include <sys/types.h>
9135 #include <utmp.h>
9136 int main() {
9137 struct utmp ut; ut.ut_addr = 0;
9138 ; return 0; }
9140 if { (eval echo configure:9141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9141 rm -rf conftest*
9142 samba_cv_HAVE_UT_UT_ADDR=yes
9143 else
9144 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9146 rm -rf conftest*
9147 samba_cv_HAVE_UT_UT_ADDR=no
9149 rm -f conftest*
9152 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9153 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9154 cat >> confdefs.h <<\EOF
9155 #define HAVE_UT_UT_ADDR 1
9160 if test x$ac_cv_func_pututline = xyes ; then
9161 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9162 echo "configure:9163: checking whether pututline returns pointer" >&5
9163 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9165 else
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 #include <sys/types.h>
9171 #include <utmp.h>
9172 int main() {
9173 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9174 ; return 0; }
9176 if { (eval echo configure:9177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9177 rm -rf conftest*
9178 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9179 else
9180 echo "configure: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9182 rm -rf conftest*
9183 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9185 rm -f conftest*
9188 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9189 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9190 cat >> confdefs.h <<\EOF
9191 #define PUTUTLINE_RETURNS_UTMP 1
9197 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9198 echo "configure:9199: checking for ut_syslen in utmpx" >&5
9199 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9200 echo $ac_n "(cached) $ac_c" 1>&6
9201 else
9203 cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 #include <sys/types.h>
9207 #include <utmpx.h>
9208 int main() {
9209 struct utmpx ux; ux.ut_syslen = 0;
9210 ; return 0; }
9212 if { (eval echo configure:9213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9213 rm -rf conftest*
9214 samba_cv_HAVE_UX_UT_SYSLEN=yes
9215 else
9216 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9218 rm -rf conftest*
9219 samba_cv_HAVE_UX_UT_SYSLEN=no
9221 rm -f conftest*
9224 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9225 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9226 cat >> confdefs.h <<\EOF
9227 #define HAVE_UX_UT_SYSLEN 1
9232 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9233 echo "configure:9234: checking for Linux kernel oplocks" >&5
9234 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9236 else
9238 if test "$cross_compiling" = yes; then
9239 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9240 else
9241 cat > conftest.$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9245 #include <sys/types.h>
9246 #include <fcntl.h>
9247 #ifndef F_GETLEASE
9248 #define F_GETLEASE 1025
9249 #endif
9250 main() {
9251 int fd = open("/dev/null", O_RDONLY);
9252 return fcntl(fd, F_GETLEASE, 0) == -1;
9256 if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9257 then
9258 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9259 else
9260 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9262 rm -fr conftest*
9263 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9265 rm -fr conftest*
9270 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9271 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9272 cat >> confdefs.h <<\EOF
9273 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9278 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9279 echo "configure:9280: checking for kernel change notify support" >&5
9280 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9282 else
9284 if test "$cross_compiling" = yes; then
9285 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9286 else
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9291 #include <sys/types.h>
9292 #include <fcntl.h>
9293 #include <signal.h>
9294 #ifndef F_NOTIFY
9295 #define F_NOTIFY 1026
9296 #endif
9297 main() {
9298 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9302 if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9303 then
9304 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9305 else
9306 echo "configure: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9308 rm -fr conftest*
9309 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9311 rm -fr conftest*
9316 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9317 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9318 cat >> confdefs.h <<\EOF
9319 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9324 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9325 echo "configure:9326: checking for kernel share modes" >&5
9326 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9328 else
9330 if test "$cross_compiling" = yes; then
9331 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9332 else
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #include <sys/types.h>
9338 #include <fcntl.h>
9339 #include <signal.h>
9340 #include <sys/file.h>
9341 #ifndef LOCK_MAND
9342 #define LOCK_MAND 32
9343 #define LOCK_READ 64
9344 #endif
9345 main() {
9346 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9350 if { (eval echo configure:9351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9351 then
9352 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9353 else
9354 echo "configure: failed program was:" >&5
9355 cat conftest.$ac_ext >&5
9356 rm -fr conftest*
9357 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9359 rm -fr conftest*
9364 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9365 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9366 cat >> confdefs.h <<\EOF
9367 #define HAVE_KERNEL_SHARE_MODES 1
9375 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9376 echo "configure:9377: checking for IRIX kernel oplock type definitions" >&5
9377 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9378 echo $ac_n "(cached) $ac_c" 1>&6
9379 else
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9385 #include <fcntl.h>
9386 int main() {
9387 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9388 ; return 0; }
9390 if { (eval echo configure:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9391 rm -rf conftest*
9392 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9393 else
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9396 rm -rf conftest*
9397 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9399 rm -f conftest*
9402 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9403 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9404 cat >> confdefs.h <<\EOF
9405 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9410 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9411 echo "configure:9412: checking for irix specific capabilities" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9414 else
9416 if test "$cross_compiling" = yes; then
9417 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9418 else
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 #include <sys/types.h>
9423 #include <sys/capability.h>
9424 main() {
9425 cap_t cap;
9426 if ((cap = cap_get_proc()) == NULL)
9427 exit(1);
9428 cap->cap_effective |= CAP_NETWORK_MGT;
9429 cap->cap_inheritable |= CAP_NETWORK_MGT;
9430 cap_set_proc(cap);
9431 exit(0);
9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9436 then
9437 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9438 else
9439 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5
9441 rm -fr conftest*
9442 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9444 rm -fr conftest*
9449 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9450 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9451 cat >> confdefs.h <<\EOF
9452 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9458 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9459 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9462 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9463 echo "configure:9464: checking for int16 typedef included by rpc/rpc.h" >&5
9464 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9466 else
9468 cat > conftest.$ac_ext <<EOF
9469 #line 9470 "configure"
9470 #include "confdefs.h"
9471 #include <sys/types.h>
9472 #if defined(HAVE_RPC_RPC_H)
9473 #include <rpc/rpc.h>
9474 #endif
9475 int main() {
9476 int16 testvar;
9477 ; return 0; }
9479 if { (eval echo configure:9480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9480 rm -rf conftest*
9481 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9482 else
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9485 rm -rf conftest*
9486 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9488 rm -f conftest*
9491 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9492 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9493 cat >> confdefs.h <<\EOF
9494 #define HAVE_INT16_FROM_RPC_RPC_H 1
9499 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9500 echo "configure:9501: checking for uint16 typedef included by rpc/rpc.h" >&5
9501 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9503 else
9505 cat > conftest.$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9508 #include <sys/types.h>
9509 #if defined(HAVE_RPC_RPC_H)
9510 #include <rpc/rpc.h>
9511 #endif
9512 int main() {
9513 uint16 testvar;
9514 ; return 0; }
9516 if { (eval echo configure:9517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9517 rm -rf conftest*
9518 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9519 else
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 rm -rf conftest*
9523 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9525 rm -f conftest*
9528 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9529 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9530 cat >> confdefs.h <<\EOF
9531 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9536 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9537 echo "configure:9538: checking for int32 typedef included by rpc/rpc.h" >&5
9538 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9540 else
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 #include <sys/types.h>
9546 #if defined(HAVE_RPC_RPC_H)
9547 #include <rpc/rpc.h>
9548 #endif
9549 int main() {
9550 int32 testvar;
9551 ; return 0; }
9553 if { (eval echo configure:9554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9554 rm -rf conftest*
9555 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9556 else
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9562 rm -f conftest*
9565 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9566 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9567 cat >> confdefs.h <<\EOF
9568 #define HAVE_INT32_FROM_RPC_RPC_H 1
9573 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9574 echo "configure:9575: checking for uint32 typedef included by rpc/rpc.h" >&5
9575 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9576 echo $ac_n "(cached) $ac_c" 1>&6
9577 else
9579 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 #include <sys/types.h>
9583 #if defined(HAVE_RPC_RPC_H)
9584 #include <rpc/rpc.h>
9585 #endif
9586 int main() {
9587 uint32 testvar;
9588 ; return 0; }
9590 if { (eval echo configure:9591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9591 rm -rf conftest*
9592 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9593 else
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -rf conftest*
9597 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9599 rm -f conftest*
9602 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9603 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9604 cat >> confdefs.h <<\EOF
9605 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9611 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9612 echo "configure:9613: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9613 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9615 else
9617 cat > conftest.$ac_ext <<EOF
9618 #line 9619 "configure"
9619 #include "confdefs.h"
9620 #include <sys/types.h>
9621 #ifdef HAVE_SYS_SECURITY_H
9622 #include <sys/security.h>
9623 #include <prot.h>
9624 #endif /* HAVE_SYS_SECURITY_H */
9625 #if defined(HAVE_RPC_RPC_H)
9626 #include <rpc/rpc.h>
9627 #endif
9628 int main() {
9629 int testvar;
9630 ; return 0; }
9632 if { (eval echo configure:9633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9633 rm -rf conftest*
9634 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9635 else
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9638 rm -rf conftest*
9639 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9641 rm -f conftest*
9644 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9645 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9646 cat >> confdefs.h <<\EOF
9647 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9652 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9653 echo "configure:9654: checking for test routines" >&5
9654 if test "$cross_compiling" = yes; then
9655 echo "configure: warning: cannot run when cross-compiling" 1>&2
9656 else
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 #include "${srcdir-.}/tests/trivial.c"
9662 if { (eval echo configure:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9663 then
9664 echo "$ac_t""yes" 1>&6
9665 else
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9668 rm -fr conftest*
9669 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9671 rm -fr conftest*
9675 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9676 echo "configure:9677: checking for ftruncate extend" >&5
9677 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9678 echo $ac_n "(cached) $ac_c" 1>&6
9679 else
9681 if test "$cross_compiling" = yes; then
9682 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9683 else
9684 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9687 #include "${srcdir-.}/tests/ftruncate.c"
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9690 then
9691 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9692 else
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 rm -fr conftest*
9696 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9698 rm -fr conftest*
9703 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9704 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9705 cat >> confdefs.h <<\EOF
9706 #define HAVE_FTRUNCATE_EXTEND 1
9711 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
9712 echo "configure:9713: checking for broken getgroups" >&5
9713 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9715 else
9717 if test "$cross_compiling" = yes; then
9718 samba_cv_HAVE_BROKEN_GETGROUPS=cross
9719 else
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 #include "${srcdir-.}/tests/getgroups.c"
9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9726 then
9727 samba_cv_HAVE_BROKEN_GETGROUPS=yes
9728 else
9729 echo "configure: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9731 rm -fr conftest*
9732 samba_cv_HAVE_BROKEN_GETGROUPS=no
9734 rm -fr conftest*
9739 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
9740 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
9741 cat >> confdefs.h <<\EOF
9742 #define HAVE_BROKEN_GETGROUPS 1
9747 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
9748 echo "configure:9749: checking whether getpass should be replaced" >&5
9749 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9751 else
9753 SAVE_CPPFLAGS="$CPPFLAGS"
9754 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9759 #define REPLACE_GETPASS 1
9760 #define NO_CONFIG_H 1
9761 #define main dont_declare_main
9762 #include "${srcdir-.}/lib/getsmbpass.c"
9763 #undef main
9765 int main() {
9767 ; return 0; }
9769 if { (eval echo configure:9770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9770 rm -rf conftest*
9771 samba_cv_REPLACE_GETPASS=yes
9772 else
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 rm -rf conftest*
9776 samba_cv_REPLACE_GETPASS=no
9778 rm -f conftest*
9779 CPPFLAGS="$SAVE_CPPFLAGS"
9783 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
9784 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
9785 cat >> confdefs.h <<\EOF
9786 #define REPLACE_GETPASS 1
9791 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
9792 echo "configure:9793: checking for broken inet_ntoa" >&5
9793 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
9794 echo $ac_n "(cached) $ac_c" 1>&6
9795 else
9797 if test "$cross_compiling" = yes; then
9798 samba_cv_REPLACE_INET_NTOA=cross
9799 else
9800 cat > conftest.$ac_ext <<EOF
9801 #line 9802 "configure"
9802 #include "confdefs.h"
9804 #include <stdio.h>
9805 #include <sys/types.h>
9806 #include <netinet/in.h>
9807 #ifdef HAVE_ARPA_INET_H
9808 #include <arpa/inet.h>
9809 #endif
9810 main() { struct in_addr ip; ip.s_addr = 0x12345678;
9811 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
9812 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
9813 exit(1);}
9815 if { (eval echo configure:9816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9816 then
9817 samba_cv_REPLACE_INET_NTOA=yes
9818 else
9819 echo "configure: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 rm -fr conftest*
9822 samba_cv_REPLACE_INET_NTOA=no
9824 rm -fr conftest*
9829 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
9830 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
9831 cat >> confdefs.h <<\EOF
9832 #define REPLACE_INET_NTOA 1
9837 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
9838 echo "configure:9839: checking for sysconf(_SC_NGROUPS_MAX)" >&5
9839 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
9840 echo $ac_n "(cached) $ac_c" 1>&6
9841 else
9843 if test "$cross_compiling" = yes; then
9844 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
9845 else
9846 cat > conftest.$ac_ext <<EOF
9847 #line 9848 "configure"
9848 #include "confdefs.h"
9849 #include <unistd.h>
9850 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
9852 if { (eval echo configure:9853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9853 then
9854 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
9855 else
9856 echo "configure: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9858 rm -fr conftest*
9859 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
9861 rm -fr conftest*
9866 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
9867 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
9868 cat >> confdefs.h <<\EOF
9869 #define SYSCONF_SC_NGROUPS_MAX 1
9874 echo $ac_n "checking for root""... $ac_c" 1>&6
9875 echo "configure:9876: checking for root" >&5
9876 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
9877 echo $ac_n "(cached) $ac_c" 1>&6
9878 else
9880 if test "$cross_compiling" = yes; then
9881 samba_cv_HAVE_ROOT=cross
9882 else
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9885 "configure"
9885 #include "confdefs.h"
9886 main() { exit(getuid() != 0); }
9888 if { (eval echo configure:9889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9889 then
9890 samba_cv_HAVE_ROOT=yes
9891 else
9892 echo "configure: failed program was:" >&5
9893 cat conftest.$ac_ext >&5
9894 rm -fr conftest*
9895 samba_cv_HAVE_ROOT=no
9897 rm -fr conftest*
9902 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
9903 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
9904 cat >> confdefs.h <<\EOF
9905 #define HAVE_ROOT 1
9908 else
9909 echo "configure: warning: running as non-root will disable some tests" 1>&2
9912 ##################
9913 # look for a method of finding the list of network interfaces
9914 iface=no;
9915 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
9916 echo "configure:9917: checking for iface AIX" >&5
9917 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
9918 echo $ac_n "(cached) $ac_c" 1>&6
9919 else
9921 if test "$cross_compiling" = yes; then
9922 samba_cv_HAVE_IFACE_AIX=cross
9923 else
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9928 #define HAVE_IFACE_AIX 1
9929 #define AUTOCONF_TEST 1
9930 #include "confdefs.h"
9931 #include "${srcdir-.}/lib/interfaces.c"
9933 if { (eval echo configure:9934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9934 then
9935 samba_cv_HAVE_IFACE_AIX=yes
9936 else
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 rm -fr conftest*
9940 samba_cv_HAVE_IFACE_AIX=no
9942 rm -fr conftest*
9947 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
9948 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
9949 iface=yes;cat >> confdefs.h <<\EOF
9950 #define HAVE_IFACE_AIX 1
9955 if test $iface = no; then
9956 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
9957 echo "configure:9958: checking for iface ifconf" >&5
9958 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
9959 echo $ac_n "(cached) $ac_c" 1>&6
9960 else
9962 if test "$cross_compiling" = yes; then
9963 samba_cv_HAVE_IFACE_IFCONF=cross
9964 else
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9969 #define HAVE_IFACE_IFCONF 1
9970 #define AUTOCONF_TEST 1
9971 #include "confdefs.h"
9972 #include "${srcdir-.}/lib/interfaces.c"
9974 if { (eval echo configure:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9975 then
9976 samba_cv_HAVE_IFACE_IFCONF=yes
9977 else
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 rm -fr conftest*
9981 samba_cv_HAVE_IFACE_IFCONF=no
9983 rm -fr conftest*
9988 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
9989 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
9990 iface=yes;cat >> confdefs.h <<\EOF
9991 #define HAVE_IFACE_IFCONF 1
9997 if test $iface = no; then
9998 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
9999 echo "configure:10000: checking for iface ifreq" >&5
10000 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10002 else
10004 if test "$cross_compiling" = yes; then
10005 samba_cv_HAVE_IFACE_IFREQ=cross
10006 else
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10011 #define HAVE_IFACE_IFREQ 1
10012 #define AUTOCONF_TEST 1
10013 #include "confdefs.h"
10014 #include "${srcdir-.}/lib/interfaces.c"
10016 if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10017 then
10018 samba_cv_HAVE_IFACE_IFREQ=yes
10019 else
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 rm -fr conftest*
10023 samba_cv_HAVE_IFACE_IFREQ=no
10025 rm -fr conftest*
10030 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10031 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10032 iface=yes;cat >> confdefs.h <<\EOF
10033 #define HAVE_IFACE_IFREQ 1
10040 ################################################
10041 # look for a method of setting the effective uid
10042 seteuid=no;
10043 if test $seteuid = no; then
10044 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10045 echo "configure:10046: checking for setresuid" >&5
10046 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10048 else
10050 if test "$cross_compiling" = yes; then
10051 samba_cv_USE_SETRESUID=cross
10052 else
10053 cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10057 #define AUTOCONF_TEST 1
10058 #define USE_SETRESUID 1
10059 #include "confdefs.h"
10060 #include "${srcdir-.}/lib/util_sec.c"
10062 if { (eval echo configure:10063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10063 then
10064 samba_cv_USE_SETRESUID=yes
10065 else
10066 echo "configure: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 rm -fr conftest*
10069 samba_cv_USE_SETRESUID=no
10071 rm -fr conftest*
10076 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10077 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10078 seteuid=yes;cat >> confdefs.h <<\EOF
10079 #define USE_SETRESUID 1
10086 if test $seteuid = no; then
10087 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10088 echo "configure:10089: checking for setreuid" >&5
10089 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10090 echo $ac_n "(cached) $ac_c" 1>&6
10091 else
10093 if test "$cross_compiling" = yes; then
10094 samba_cv_USE_SETREUID=cross
10095 else
10096 cat > conftest.$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10100 #define AUTOCONF_TEST 1
10101 #define USE_SETREUID 1
10102 #include "confdefs.h"
10103 #include "${srcdir-.}/lib/util_sec.c"
10105 if { (eval echo configure:10106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10106 then
10107 samba_cv_USE_SETREUID=yes
10108 else
10109 echo "configure: failed program was:" >&5
10110 cat conftest.$ac_ext >&5
10111 rm -fr conftest*
10112 samba_cv_USE_SETREUID=no
10114 rm -fr conftest*
10119 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10120 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10121 seteuid=yes;cat >> confdefs.h <<\EOF
10122 #define USE_SETREUID 1
10128 if test $seteuid = no; then
10129 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10130 echo "configure:10131: checking for seteuid" >&5
10131 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10133 else
10135 if test "$cross_compiling" = yes; then
10136 samba_cv_USE_SETEUID=cross
10137 else
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10142 #define AUTOCONF_TEST 1
10143 #define USE_SETEUID 1
10144 #include "confdefs.h"
10145 #include "${srcdir-.}/lib/util_sec.c"
10147 if { (eval echo configure:10148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10148 then
10149 samba_cv_USE_SETEUID=yes
10150 else
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10153 rm -fr conftest*
10154 samba_cv_USE_SETEUID=no
10156 rm -fr conftest*
10161 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10162 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10163 seteuid=yes;cat >> confdefs.h <<\EOF
10164 #define USE_SETEUID 1
10170 if test $seteuid = no; then
10171 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10172 echo "configure:10173: checking for setuidx" >&5
10173 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10175 else
10177 if test "$cross_compiling" = yes; then
10178 samba_cv_USE_SETUIDX=cross
10179 else
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10184 #define AUTOCONF_TEST 1
10185 #define USE_SETUIDX 1
10186 #include "confdefs.h"
10187 #include "${srcdir-.}/lib/util_sec.c"
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10190 then
10191 samba_cv_USE_SETUIDX=yes
10192 else
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10195 rm -fr conftest*
10196 samba_cv_USE_SETUIDX=no
10198 rm -fr conftest*
10203 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10204 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10205 seteuid=yes;cat >> confdefs.h <<\EOF
10206 #define USE_SETUIDX 1
10213 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10214 echo "configure:10215: checking for working mmap" >&5
10215 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10217 else
10219 if test "$cross_compiling" = yes; then
10220 samba_cv_HAVE_MMAP=cross
10221 else
10222 cat > conftest.$ac_ext <<EOF
10223 #line 10224 "configure"
10224 #include "confdefs.h"
10225 #include "${srcdir-.}/tests/shared_mmap.c"
10227 if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10228 then
10229 samba_cv_HAVE_MMAP=yes
10230 else
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 rm -fr conftest*
10234 samba_cv_HAVE_MMAP=no
10236 rm -fr conftest*
10241 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10242 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10243 cat >> confdefs.h <<\EOF
10244 #define HAVE_MMAP 1
10249 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10250 echo "configure:10251: checking for ftruncate needs root" >&5
10251 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10253 else
10255 if test "$cross_compiling" = yes; then
10256 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10257 else
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 #include "${srcdir-.}/tests/ftruncroot.c"
10263 if { (eval echo configure:10264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10264 then
10265 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10266 else
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10269 rm -fr conftest*
10270 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10272 rm -fr conftest*
10277 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10278 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10279 cat >> confdefs.h <<\EOF
10280 #define FTRUNCATE_NEEDS_ROOT 1
10285 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10286 echo "configure:10287: checking for fcntl locking" >&5
10287 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10289 else
10291 if test "$cross_compiling" = yes; then
10292 samba_cv_HAVE_FCNTL_LOCK=cross
10293 else
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10297 #include "${srcdir-.}/tests/fcntl_lock.c"
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10300 then
10301 samba_cv_HAVE_FCNTL_LOCK=yes
10302 else
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10305 rm -fr conftest*
10306 samba_cv_HAVE_FCNTL_LOCK=no
10308 rm -fr conftest*
10313 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10314 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10315 cat >> confdefs.h <<\EOF
10316 #define HAVE_FCNTL_LOCK 1
10321 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10322 echo "configure:10323: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10323 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10325 else
10327 if test "$cross_compiling" = yes; then
10328 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10329 else
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 #include "${srcdir-.}/tests/fcntl_lock64.c"
10335 if { (eval echo configure:10336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10336 then
10337 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10338 else
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10341 rm -fr conftest*
10342 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10344 rm -fr conftest*
10349 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10350 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10351 cat >> confdefs.h <<\EOF
10352 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10356 else
10359 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10360 echo "configure:10361: checking for 64 bit fcntl locking" >&5
10361 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10362 echo $ac_n "(cached) $ac_c" 1>&6
10363 else
10365 if test "$cross_compiling" = yes; then
10366 samba_cv_HAVE_STRUCT_FLOCK64=cross
10367 else
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10372 #if defined(HAVE_UNISTD_H)
10373 #include <unistd.h>
10374 #endif
10375 #include <stdio.h>
10376 #include <stdlib.h>
10378 #ifdef HAVE_FCNTL_H
10379 #include <fcntl.h>
10380 #endif
10382 #ifdef HAVE_SYS_FCNTL_H
10383 #include <sys/fcntl.h>
10384 #endif
10385 main() { struct flock64 fl64;
10386 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10387 exit(0);
10388 #else
10389 exit(1);
10390 #endif
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10394 then
10395 samba_cv_HAVE_STRUCT_FLOCK64=yes
10396 else
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 rm -fr conftest*
10400 samba_cv_HAVE_STRUCT_FLOCK64=no
10402 rm -fr conftest*
10407 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10409 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10410 cat >> confdefs.h <<\EOF
10411 #define HAVE_STRUCT_FLOCK64 1
10417 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10418 echo "configure:10419: checking for a crypt that needs truncated salt" >&5
10419 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10420 echo $ac_n "(cached) $ac_c" 1>&6
10421 else
10423 if test "$cross_compiling" = yes; then
10424 samba_cv_HAVE_TRUNCATED_SALT=cross
10425 else
10426 cat > conftest.$ac_ext <<EOF
10427 #line 10428 "configure"
10428 #include "confdefs.h"
10429 #include "${srcdir-.}/tests/crypttest.c"
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10432 then
10433 samba_cv_HAVE_TRUNCATED_SALT=no
10434 else
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10437 rm -fr conftest*
10438 samba_cv_HAVE_TRUNCATED_SALT=yes
10440 rm -fr conftest*
10445 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10446 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10447 cat >> confdefs.h <<\EOF
10448 #define HAVE_TRUNCATED_SALT 1
10453 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10454 echo "configure:10455: checking for broken nisplus include files" >&5
10455 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10457 else
10459 cat > conftest.$ac_ext <<EOF
10460 #line 10461 "configure"
10461 #include "confdefs.h"
10462 #include <sys/acl.h>
10463 #if defined(HAVE_RPCSVC_NIS_H)
10464 #include <rpcsvc/nis.h>
10465 #endif
10466 int main() {
10467 return 0;
10468 ; return 0; }
10470 if { (eval echo configure:10471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10471 rm -rf conftest*
10472 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10473 else
10474 echo "configure: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 rm -rf conftest*
10477 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10479 rm -f conftest*
10482 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10483 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10484 cat >> confdefs.h <<\EOF
10485 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10491 #################################################
10492 # check for smbwrapper support
10493 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10494 echo "configure:10495: checking whether to use smbwrapper" >&5
10495 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10496 if test "${with_smbwrapper+set}" = set; then
10497 withval="$with_smbwrapper"
10498 case "$withval" in
10499 yes)
10500 echo "$ac_t""yes" 1>&6
10501 cat >> confdefs.h <<\EOF
10502 #define WITH_SMBWRAPPER 1
10505 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10507 if test x$ATTEMPT_WRAP32_BUILD = x; then
10508 WRAP32=""
10509 else
10510 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10513 # Conditions under which smbwrapper should not be built.
10515 if test x$PICFLAG = x; then
10516 echo No support for PIC code - disabling smbwrapper and smbsh
10517 WRAP=""
10518 WRAP32=""
10519 elif test x$ac_cv_func_syscall = xno; then
10520 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10521 WRAP=""
10522 WRAP32=""
10526 echo "$ac_t""no" 1>&6
10528 esac
10529 else
10530 echo "$ac_t""no" 1>&6
10535 #################################################
10536 # check for the AFS filesystem
10537 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10538 echo "configure:10539: checking whether to use AFS" >&5
10539 # Check whether --with-afs or --without-afs was given.
10540 if test "${with_afs+set}" = set; then
10541 withval="$with_afs"
10542 case "$withval" in
10543 yes)
10544 echo "$ac_t""yes" 1>&6
10545 cat >> confdefs.h <<\EOF
10546 #define WITH_AFS 1
10551 echo "$ac_t""no" 1>&6
10553 esac
10554 else
10555 echo "$ac_t""no" 1>&6
10561 #################################################
10562 # check for the DFS auth system
10563 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10564 echo "configure:10565: checking whether to use DFS auth" >&5
10565 # Check whether --with-dfs or --without-dfs was given.
10566 if test "${with_dfs+set}" = set; then
10567 withval="$with_dfs"
10568 case "$withval" in
10569 yes)
10570 echo "$ac_t""yes" 1>&6
10571 cat >> confdefs.h <<\EOF
10572 #define WITH_DFS 1
10577 echo "$ac_t""no" 1>&6
10579 esac
10580 else
10581 echo "$ac_t""no" 1>&6
10586 #################################################
10587 # check for Kerberos IV auth system
10588 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10589 echo "configure:10590: checking whether to use Kerberos IV" >&5
10590 # Check whether --with-krb4 or --without-krb4 was given.
10591 if test "${with_krb4+set}" = set; then
10592 withval="$with_krb4"
10593 echo "$ac_t""yes" 1>&6
10594 cat >> confdefs.h <<\EOF
10595 #define KRB4_AUTH 1
10598 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10599 echo "configure:10600: checking for dn_expand in -lresolv" >&5
10600 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10603 else
10604 ac_save_LIBS="$LIBS"
10605 LIBS="-lresolv $LIBS"
10606 cat > conftest.$ac_ext <<EOF
10607 #line 10608 "configure"
10608 #include "confdefs.h"
10609 /* Override any gcc2 internal prototype to avoid an error. */
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10612 char dn_expand();
10614 int main() {
10615 dn_expand()
10616 ; return 0; }
10618 if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10619 rm -rf conftest*
10620 eval "ac_cv_lib_$ac_lib_var=yes"
10621 else
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10624 rm -rf conftest*
10625 eval "ac_cv_lib_$ac_lib_var=no"
10627 rm -f conftest*
10628 LIBS="$ac_save_LIBS"
10631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10632 echo "$ac_t""yes" 1>&6
10633 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10634 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10635 cat >> confdefs.h <<EOF
10636 #define $ac_tr_lib 1
10639 LIBS="-lresolv $LIBS"
10641 else
10642 echo "$ac_t""no" 1>&6
10645 LIBS="$LIBS -lkrb -ldes"
10646 CFLAGS="$CFLAGS -I$withval/include"
10647 LDFLAGS="$LDFLAGS -L$withval/lib"
10648 else
10649 echo "$ac_t""no" 1>&6
10654 #################################################
10655 # check for Kerberos 5 auth system
10656 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10657 echo "configure:10658: checking whether to use Kerberos 5" >&5
10658 # Check whether --with-krb5 or --without-krb5 was given.
10659 if test "${with_krb5+set}" = set; then
10660 withval="$with_krb5"
10661 echo "$ac_t""yes" 1>&6
10662 cat >> confdefs.h <<\EOF
10663 #define KRB5_AUTH 1
10666 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
10667 CFLAGS="$CFLAGS -I$withval/include"
10668 LDFLAGS="$LDFLAGS -L$withval/lib"
10669 else
10670 echo "$ac_t""no" 1>&6
10675 #################################################
10676 # check for automount support
10677 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
10678 echo "configure:10679: checking whether to use AUTOMOUNT" >&5
10679 # Check whether --with-automount or --without-automount was given.
10680 if test "${with_automount+set}" = set; then
10681 withval="$with_automount"
10682 case "$withval" in
10683 yes)
10684 echo "$ac_t""yes" 1>&6
10685 cat >> confdefs.h <<\EOF
10686 #define WITH_AUTOMOUNT 1
10691 echo "$ac_t""no" 1>&6
10693 esac
10694 else
10695 echo "$ac_t""no" 1>&6
10700 #################################################
10701 # check for smbmount support
10702 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
10703 echo "configure:10704: checking whether to use SMBMOUNT" >&5
10704 # Check whether --with-smbmount or --without-smbmount was given.
10705 if test "${with_smbmount+set}" = set; then
10706 withval="$with_smbmount"
10707 case "$withval" in
10708 yes)
10709 echo "$ac_t""yes" 1>&6
10710 cat >> confdefs.h <<\EOF
10711 #define WITH_SMBMOUNT 1
10714 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
10717 echo "$ac_t""no" 1>&6
10718 MPROGS=
10720 esac
10721 else
10722 echo "$ac_t""no" 1>&6
10723 MPROGS=
10729 #################################################
10730 # check for a PAM password database
10731 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
10732 echo "configure:10733: checking whether to use PAM password database" >&5
10733 # Check whether --with-pam or --without-pam was given.
10734 if test "${with_pam+set}" = set; then
10735 withval="$with_pam"
10736 case "$withval" in
10737 yes)
10738 echo "$ac_t""yes" 1>&6
10739 cat >> confdefs.h <<\EOF
10740 #define WITH_PAM 1
10743 LIBS="$LIBS -lpam"
10746 echo "$ac_t""no" 1>&6
10748 esac
10749 else
10750 echo "$ac_t""no" 1>&6
10755 #################################################
10756 # check for a TDB password database
10757 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
10758 echo "configure:10759: checking whether to use TDB password database" >&5
10759 # Check whether --with-tdbsam or --without-tdbsam was given.
10760 if test "${with_tdbsam+set}" = set; then
10761 withval="$with_tdbsam"
10762 case "$withval" in
10763 yes)
10764 echo "$ac_t""yes" 1>&6
10765 cat >> confdefs.h <<\EOF
10766 #define WITH_TDBPWD 1
10769 # AC_MSG_ERROR([TDB password database not supported in this version.])
10772 echo "$ac_t""no" 1>&6
10774 esac
10775 else
10776 echo "$ac_t""no" 1>&6
10781 #################################################
10782 # check for a LDAP password database
10783 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
10784 echo "configure:10785: checking whether to use LDAP password database" >&5
10785 # Check whether --with-ldap or --without-ldap was given.
10786 if test "${with_ldap+set}" = set; then
10787 withval="$with_ldap"
10788 case "$withval" in
10789 yes)
10790 echo "$ac_t""yes" 1>&6
10791 cat >> confdefs.h <<\EOF
10792 #define WITH_LDAP 1
10795 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
10798 echo "$ac_t""no" 1>&6
10800 esac
10801 else
10802 echo "$ac_t""no" 1>&6
10807 #################################################
10808 # check for a NISPLUS password database
10809 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
10810 echo "configure:10811: checking whether to use NISPLUS password database" >&5
10811 # Check whether --with-nisplus or --without-nisplus was given.
10812 if test "${with_nisplus+set}" = set; then
10813 withval="$with_nisplus"
10814 case "$withval" in
10815 yes)
10816 echo "$ac_t""yes" 1>&6
10817 cat >> confdefs.h <<\EOF
10818 #define WITH_NISPLUS 1
10823 echo "$ac_t""no" 1>&6
10825 esac
10826 else
10827 echo "$ac_t""no" 1>&6
10832 #################################################
10833 # check for a NISPLUS_HOME support
10834 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
10835 echo "configure:10836: checking whether to use NISPLUS_HOME" >&5
10836 # Check whether --with-nisplus-home or --without-nisplus-home was given.
10837 if test "${with_nisplus_home+set}" = set; then
10838 withval="$with_nisplus_home"
10839 case "$withval" in
10840 yes)
10841 echo "$ac_t""yes" 1>&6
10842 cat >> confdefs.h <<\EOF
10843 #define WITH_NISPLUS_HOME 1
10848 echo "$ac_t""no" 1>&6
10850 esac
10851 else
10852 echo "$ac_t""no" 1>&6
10857 #################################################
10858 # check for the secure socket layer
10859 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
10860 echo "configure:10861: checking whether to use SSL" >&5
10861 # Check whether --with-ssl or --without-ssl was given.
10862 if test "${with_ssl+set}" = set; then
10863 withval="$with_ssl"
10864 case "$withval" in
10865 yes)
10866 echo "$ac_t""yes" 1>&6
10867 cat >> confdefs.h <<\EOF
10868 #define WITH_SSL 1
10871 withval="/usr/local/ssl" # default
10873 if test "${with_sslinc+set}" = set; then
10875 withval="$with_sslinc"
10876 case "$withval" in
10877 yes|no)
10878 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
10879 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10880 LIBS="-lssl -lcrypto $LIBS"
10881 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
10884 CFLAGS="-I${withval}/include $CFLAGS"
10885 LIBS="-lssl -lcrypto $LIBS"
10886 LDFLAGS="-L${withval}/lib $LDFLAGS"
10888 esac
10890 else
10892 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
10893 LIBS="-lssl -lcrypto $LIBS"
10894 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
10898 if test ! -d ${withval}; then
10899 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
10900 exit 1
10903 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
10907 echo "$ac_t""no" 1>&6
10909 esac
10910 else
10911 echo "$ac_t""no" 1>&6
10916 #################################################
10917 # check for syslog logging
10918 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
10919 echo "configure:10920: checking whether to use syslog logging" >&5
10920 # Check whether --with-syslog or --without-syslog was given.
10921 if test "${with_syslog+set}" = set; then
10922 withval="$with_syslog"
10923 case "$withval" in
10924 yes)
10925 echo "$ac_t""yes" 1>&6
10926 cat >> confdefs.h <<\EOF
10927 #define WITH_SYSLOG 1
10932 echo "$ac_t""no" 1>&6
10934 esac
10935 else
10936 echo "$ac_t""no" 1>&6
10941 #################################################
10942 # check for a shared memory profiling support
10943 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
10944 echo "configure:10945: checking whether to use profiling" >&5
10945 # Check whether --with-profile or --without-profile was given.
10946 if test "${with_profile+set}" = set; then
10947 withval="$with_profile"
10948 case "$withval" in
10949 yes)
10950 echo "$ac_t""yes" 1>&6
10951 cat >> confdefs.h <<\EOF
10952 #define WITH_PROFILE 1
10957 echo "$ac_t""no" 1>&6
10959 esac
10960 else
10961 echo "$ac_t""no" 1>&6
10967 #################################################
10968 # check for experimental netatalk resource fork support
10969 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
10970 echo "configure:10971: checking whether to support netatalk" >&5
10971 # Check whether --with-netatalk or --without-netatalk was given.
10972 if test "${with_netatalk+set}" = set; then
10973 withval="$with_netatalk"
10974 case "$withval" in
10975 yes)
10976 echo "$ac_t""yes" 1>&6
10977 cat >> confdefs.h <<\EOF
10978 #define WITH_NETATALK 1
10983 echo "$ac_t""no" 1>&6
10985 esac
10986 else
10987 echo "$ac_t""no" 1>&6
10992 #################################################
10993 # check for experimental disk-quotas support
10994 QUOTAOBJS=smbd/noquotas.o
10996 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
10997 echo "configure:10998: checking whether to support disk-quotas" >&5
10998 # Check whether --with-quotas or --without-quotas was given.
10999 if test "${with_quotas+set}" = set; then
11000 withval="$with_quotas"
11001 case "$withval" in
11002 yes)
11003 echo "$ac_t""yes" 1>&6
11004 QUOTAOBJS=smbd/quotas.o
11007 echo "$ac_t""no" 1>&6
11009 esac
11010 else
11011 echo "$ac_t""no" 1>&6
11017 #################################################
11018 # check for experimental utmp accounting
11020 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11021 echo "configure:11022: checking whether to support utmp accounting" >&5
11022 # Check whether --with-utmp or --without-utmp was given.
11023 if test "${with_utmp+set}" = set; then
11024 withval="$with_utmp"
11025 case "$withval" in
11026 yes)
11027 echo "$ac_t""yes" 1>&6
11028 cat >> confdefs.h <<\EOF
11029 #define WITH_UTMP 1
11034 echo "$ac_t""no" 1>&6
11036 esac
11037 else
11038 echo "$ac_t""no" 1>&6
11043 #################################################
11044 # check for MS Dfs support
11046 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11047 echo "configure:11048: checking whether to support Microsoft Dfs" >&5
11048 # Check whether --with-msdfs or --without-msdfs was given.
11049 if test "${with_msdfs+set}" = set; then
11050 withval="$with_msdfs"
11051 case "$withval" in
11052 yes)
11053 echo "$ac_t""yes" 1>&6
11054 cat >> confdefs.h <<\EOF
11055 #define WITH_MSDFS 1
11060 echo "$ac_t""no" 1>&6
11062 esac
11063 else
11064 echo "$ac_t""no" 1>&6
11069 #################################################
11070 # set private directory location
11071 # Check whether --with-privatedir or --without-privatedir was given.
11072 if test "${with_privatedir+set}" = set; then
11073 withval="$with_privatedir"
11074 case "$withval" in
11075 yes|no)
11077 # Just in case anybody calls it without argument
11079 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11080 privatedir='${prefix}/private'
11083 privatedir="$withval"
11085 esac
11087 else
11088 privatedir='${prefix}/private'
11094 #################################################
11095 # set lock directory location
11096 # Check whether --with-lockdir or --without-lockdir was given.
11097 if test "${with_lockdir+set}" = set; then
11098 withval="$with_lockdir"
11099 case "$withval" in
11100 yes|no)
11102 # Just in case anybody calls it without argument
11104 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11105 lockdir='$(VARDIR)/locks'
11108 lockdir="$withval"
11110 esac
11112 else
11113 lockdir='$(VARDIR)/locks'
11119 #################################################
11120 # set SWAT directory location
11121 # Check whether --with-swatdir or --without-swatdir was given.
11122 if test "${with_swatdir+set}" = set; then
11123 withval="$with_swatdir"
11124 case "$withval" in
11125 yes|no)
11127 # Just in case anybody does it
11129 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11130 swatdir='${prefix}/swat'
11133 swatdir="$withval"
11135 esac
11137 else
11138 swatdir='${prefix}/swat'
11144 #################################################
11145 # these tests are taken from the GNU fileutils package
11146 echo "checking how to get filesystem space usage" 1>&6
11147 echo "configure:11148: checking how to get filesystem space usage" >&5
11148 space=no
11150 # Test for statvfs64.
11151 if test $space = no; then
11152 # SVR4
11153 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11154 echo "configure:11155: checking statvfs64 function (SVR4)" >&5
11155 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11156 echo $ac_n "(cached) $ac_c" 1>&6
11157 else
11158 if test "$cross_compiling" = yes; then
11159 fu_cv_sys_stat_statvfs64=cross
11160 else
11161 cat > conftest.$ac_ext <<EOF
11162 #line 11163 "configure"
11163 #include "confdefs.h"
11165 #if defined(HAVE_UNISTD_H)
11166 #include <unistd.h>
11167 #endif
11168 #include <sys/types.h>
11169 #include <sys/statvfs.h>
11170 main ()
11172 struct statvfs64 fsd;
11173 exit (statvfs64 (".", &fsd));
11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11177 then
11178 fu_cv_sys_stat_statvfs64=yes
11179 else
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11182 rm -fr conftest*
11183 fu_cv_sys_stat_statvfs64=no
11185 rm -fr conftest*
11190 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11191 if test $fu_cv_sys_stat_statvfs64 = yes; then
11192 space=yes
11193 cat >> confdefs.h <<\EOF
11194 #define STAT_STATVFS64 1
11200 # Perform only the link test since it seems there are no variants of the
11201 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11202 # because that got a false positive on SCO OSR5. Adding the declaration
11203 # of a `struct statvfs' causes this test to fail (as it should) on such
11204 # systems. That system is reported to work fine with STAT_STATFS4 which
11205 # is what it gets when this test fails.
11206 if test $space = no; then
11207 # SVR4
11208 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11209 echo "configure:11210: checking statvfs function (SVR4)" >&5
11210 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11212 else
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 #include <sys/types.h>
11217 #include <sys/statvfs.h>
11218 int main() {
11219 struct statvfs fsd; statvfs (0, &fsd);
11220 ; return 0; }
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11223 rm -rf conftest*
11224 fu_cv_sys_stat_statvfs=yes
11225 else
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11228 rm -rf conftest*
11229 fu_cv_sys_stat_statvfs=no
11231 rm -f conftest*
11234 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11235 if test $fu_cv_sys_stat_statvfs = yes; then
11236 space=yes
11237 cat >> confdefs.h <<\EOF
11238 #define STAT_STATVFS 1
11244 if test $space = no; then
11245 # DEC Alpha running OSF/1
11246 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11247 echo "configure:11248: checking for 3-argument statfs function (DEC OSF/1)" >&5
11248 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
11250 else
11251 if test "$cross_compiling" = yes; then
11252 fu_cv_sys_stat_statfs3_osf1=no
11253 else
11254 cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11258 #include <sys/param.h>
11259 #include <sys/types.h>
11260 #include <sys/mount.h>
11261 main ()
11263 struct statfs fsd;
11264 fsd.f_fsize = 0;
11265 exit (statfs (".", &fsd, sizeof (struct statfs)));
11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11269 then
11270 fu_cv_sys_stat_statfs3_osf1=yes
11271 else
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 rm -fr conftest*
11275 fu_cv_sys_stat_statfs3_osf1=no
11277 rm -fr conftest*
11282 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11283 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11284 space=yes
11285 cat >> confdefs.h <<\EOF
11286 #define STAT_STATFS3_OSF1 1
11292 if test $space = no; then
11293 # AIX
11294 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11295 echo "configure:11296: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11296 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11297 echo $ac_n "(cached) $ac_c" 1>&6
11298 else
11299 if test "$cross_compiling" = yes; then
11300 fu_cv_sys_stat_statfs2_bsize=no
11301 else
11302 cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11306 #ifdef HAVE_SYS_PARAM_H
11307 #include <sys/param.h>
11308 #endif
11309 #ifdef HAVE_SYS_MOUNT_H
11310 #include <sys/mount.h>
11311 #endif
11312 #ifdef HAVE_SYS_VFS_H
11313 #include <sys/vfs.h>
11314 #endif
11315 main ()
11317 struct statfs fsd;
11318 fsd.f_bsize = 0;
11319 exit (statfs (".", &fsd));
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11323 then
11324 fu_cv_sys_stat_statfs2_bsize=yes
11325 else
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 rm -fr conftest*
11329 fu_cv_sys_stat_statfs2_bsize=no
11331 rm -fr conftest*
11336 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11337 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11338 space=yes
11339 cat >> confdefs.h <<\EOF
11340 #define STAT_STATFS2_BSIZE 1
11346 if test $space = no; then
11347 # SVR3
11348 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11349 echo "configure:11350: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11350 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11352 else
11353 if test "$cross_compiling" = yes; then
11354 fu_cv_sys_stat_statfs4=no
11355 else
11356 cat > conftest.$ac_ext <<EOF
11357 #line 11358 "configure"
11358 #include "confdefs.h"
11359 #include <sys/types.h>
11360 #include <sys/statfs.h>
11361 main ()
11363 struct statfs fsd;
11364 exit (statfs (".", &fsd, sizeof fsd, 0));
11367 if { (eval echo configure:11368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11368 then
11369 fu_cv_sys_stat_statfs4=yes
11370 else
11371 echo "configure: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11373 rm -fr conftest*
11374 fu_cv_sys_stat_statfs4=no
11376 rm -fr conftest*
11381 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11382 if test $fu_cv_sys_stat_statfs4 = yes; then
11383 space=yes
11384 cat >> confdefs.h <<\EOF
11385 #define STAT_STATFS4 1
11391 if test $space = no; then
11392 # 4.4BSD and NetBSD
11393 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11394 echo "configure:11395: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11395 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11397 else
11398 if test "$cross_compiling" = yes; then
11399 fu_cv_sys_stat_statfs2_fsize=no
11400 else
11401 cat > conftest.$ac_ext <<EOF
11402 #line 11403 "configure"
11403 #include "confdefs.h"
11404 #include <sys/types.h>
11405 #ifdef HAVE_SYS_PARAM_H
11406 #include <sys/param.h>
11407 #endif
11408 #ifdef HAVE_SYS_MOUNT_H
11409 #include <sys/mount.h>
11410 #endif
11411 main ()
11413 struct statfs fsd;
11414 fsd.f_fsize = 0;
11415 exit (statfs (".", &fsd));
11418 if { (eval echo configure:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11419 then
11420 fu_cv_sys_stat_statfs2_fsize=yes
11421 else
11422 echo "configure: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 rm -fr conftest*
11425 fu_cv_sys_stat_statfs2_fsize=no
11427 rm -fr conftest*
11432 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11433 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11434 space=yes
11435 cat >> confdefs.h <<\EOF
11436 #define STAT_STATFS2_FSIZE 1
11442 if test $space = no; then
11443 # Ultrix
11444 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11445 echo "configure:11446: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11446 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
11448 else
11449 if test "$cross_compiling" = yes; then
11450 fu_cv_sys_stat_fs_data=no
11451 else
11452 cat > conftest.$ac_ext <<EOF
11453 #line 11454 "configure"
11454 #include "confdefs.h"
11455 #include <sys/types.h>
11456 #ifdef HAVE_SYS_PARAM_H
11457 #include <sys/param.h>
11458 #endif
11459 #ifdef HAVE_SYS_MOUNT_H
11460 #include <sys/mount.h>
11461 #endif
11462 #ifdef HAVE_SYS_FS_TYPES_H
11463 #include <sys/fs_types.h>
11464 #endif
11465 main ()
11467 struct fs_data fsd;
11468 /* Ultrix's statfs returns 1 for success,
11469 0 for not mounted, -1 for failure. */
11470 exit (statfs (".", &fsd) != 1);
11473 if { (eval echo configure:11474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11474 then
11475 fu_cv_sys_stat_fs_data=yes
11476 else
11477 echo "configure: failed program was:" >&5
11478 cat conftest.$ac_ext >&5
11479 rm -fr conftest*
11480 fu_cv_sys_stat_fs_data=no
11482 rm -fr conftest*
11487 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11488 if test $fu_cv_sys_stat_fs_data = yes; then
11489 space=yes
11490 cat >> confdefs.h <<\EOF
11491 #define STAT_STATFS2_FS_DATA 1
11498 # As a gating factor for large file support, in order to
11499 # use <4GB files we must have the following minimal support
11500 # available.
11501 # long long, and a 64 bit off_t or off64_t.
11502 # If we don't have all of these then disable large
11503 # file support.
11505 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
11506 echo "configure:11507: checking if large file support can be enabled" >&5
11507 cat > conftest.$ac_ext <<EOF
11508 #line 11509 "configure"
11509 #include "confdefs.h"
11511 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
11512 #include <sys/types.h>
11513 #else
11514 __COMPILE_ERROR_
11515 #endif
11517 int main() {
11518 int i
11519 ; return 0; }
11521 if { (eval echo configure:11522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11522 rm -rf conftest*
11523 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
11524 else
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
11530 rm -f conftest*
11531 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
11532 cat >> confdefs.h <<\EOF
11533 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
11537 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
11539 # Check whether --with-spinlocks or --without-spinlocks was given.
11540 if test "${with_spinlocks+set}" = set; then
11541 withval="$with_spinlocks"
11545 if test "x$with_spinlocks" = "xyes"; then
11546 cat >> confdefs.h <<\EOF
11547 #define USE_SPINLOCKS 1
11551 case "$host_cpu" in
11552 sparc)
11553 cat >> confdefs.h <<\EOF
11554 #define SPARC_SPINLOCKS 1
11559 i386|i486|i586|i686)
11560 cat >> confdefs.h <<\EOF
11561 #define INTEL_SPINLOCKS 1
11566 mips)
11567 cat >> confdefs.h <<\EOF
11568 #define MIPS_SPINLOCKS 1
11573 powerpc)
11574 cat >> confdefs.h <<\EOF
11575 #define POWERPC_SPINLOCKS 1
11579 esac
11582 #################################################
11583 # check for ACL support
11585 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
11586 echo "configure:11587: checking whether to support ACLs" >&5
11587 # Check whether --with-acl-support or --without-acl-support was given.
11588 if test "${with_acl_support+set}" = set; then
11589 withval="$with_acl_support"
11590 case "$withval" in
11591 yes)
11593 case "$host_os" in
11594 *unixware*)
11595 echo "$ac_t""Using SVR4 ACLs" 1>&6
11596 cat >> confdefs.h <<\EOF
11597 #define HAVE_UNIXWARE_ACLS 1
11601 *solaris*)
11602 echo "$ac_t""Using solaris ACLs" 1>&6
11603 cat >> confdefs.h <<\EOF
11604 #define HAVE_SOLARIS_ACLS 1
11609 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
11610 echo "configure:11611: checking for acl_get_file in -lacl" >&5
11611 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
11612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11613 echo $ac_n "(cached) $ac_c" 1>&6
11614 else
11615 ac_save_LIBS="$LIBS"
11616 LIBS="-lacl $LIBS"
11617 cat > conftest.$ac_ext <<EOF
11618 #line 11619 "configure"
11619 #include "confdefs.h"
11620 /* Override any gcc2 internal prototype to avoid an error. */
11621 /* We use char because int might match the return type of a gcc2
11622 builtin and then its argument prototype would still apply. */
11623 char acl_get_file();
11625 int main() {
11626 acl_get_file()
11627 ; return 0; }
11629 if { (eval echo configure:11630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11630 rm -rf conftest*
11631 eval "ac_cv_lib_$ac_lib_var=yes"
11632 else
11633 echo "configure: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11635 rm -rf conftest*
11636 eval "ac_cv_lib_$ac_lib_var=no"
11638 rm -f conftest*
11639 LIBS="$ac_save_LIBS"
11642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11643 echo "$ac_t""yes" 1>&6
11644 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11645 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11646 cat >> confdefs.h <<EOF
11647 #define $ac_tr_lib 1
11650 LIBS="-lacl $LIBS"
11652 else
11653 echo "$ac_t""no" 1>&6
11656 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
11657 echo "configure:11658: checking for ACL support" >&5
11658 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
11659 echo $ac_n "(cached) $ac_c" 1>&6
11660 else
11662 cat > conftest.$ac_ext <<EOF
11663 #line 11664 "configure"
11664 #include "confdefs.h"
11665 #include <sys/types.h>
11666 #include <sys/acl.h>
11667 int main() {
11668 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
11669 ; return 0; }
11671 if { (eval echo configure:11672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11672 rm -rf conftest*
11673 samba_cv_HAVE_POSIX_ACLS=yes
11674 else
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11677 rm -rf conftest*
11678 samba_cv_HAVE_POSIX_ACLS=no
11680 rm -f conftest*
11683 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
11684 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
11685 echo "$ac_t""Using posix ACLs" 1>&6
11686 cat >> confdefs.h <<\EOF
11687 #define HAVE_POSIX_ACLS 1
11692 esac
11695 echo "$ac_t""no" 1>&6
11696 cat >> confdefs.h <<\EOF
11697 #define HAVE_NO_ACLS 1
11701 esac
11702 else
11703 cat >> confdefs.h <<\EOF
11704 #define HAVE_NO_ACLS 1
11707 echo "$ac_t""no" 1>&6
11711 echo "checking configure summary"
11712 if test "$cross_compiling" = yes; then
11714 else
11715 cat > conftest.$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 #include "${srcdir-.}/tests/summary.c"
11720 if { (eval echo configure:11721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11721 then
11722 echo "configure OK";
11723 else
11724 echo "configure: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11726 rm -fr conftest*
11727 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
11729 rm -fr conftest*
11733 builddir=`pwd`
11736 trap '' 1 2 15
11737 cat > confcache <<\EOF
11738 # This file is a shell script that caches the results of configure
11739 # tests run on this system so they can be shared between configure
11740 # scripts and configure runs. It is not useful on other systems.
11741 # If it contains results you don't want to keep, you may remove or edit it.
11743 # By default, configure uses ./config.cache as the cache file,
11744 # creating it if it does not exist already. You can give configure
11745 # the --cache-file=FILE option to use a different cache file; that is
11746 # what configure does when it calls configure scripts in
11747 # subdirectories, so they share the cache.
11748 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11749 # config.status only pays attention to the cache file if you give it the
11750 # --recheck option to rerun configure.
11753 # The following way of writing the cache mishandles newlines in values,
11754 # but we know of no workaround that is simple, portable, and efficient.
11755 # So, don't put newlines in cache variables' values.
11756 # Ultrix sh set writes to stderr and can't be redirected directly,
11757 # and sets the high bit in the cache file unless we assign to the vars.
11758 (set) 2>&1 |
11759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11760 *ac_space=\ *)
11761 # `set' does not quote correctly, so add quotes (double-quote substitution
11762 # turns \\\\ into \\, and sed turns \\ into \).
11763 sed -n \
11764 -e "s/'/'\\\\''/g" \
11765 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11768 # `set' quotes correctly as required by POSIX, so do not add quotes.
11769 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11771 esac >> confcache
11772 if cmp -s $cache_file confcache; then
11774 else
11775 if test -w $cache_file; then
11776 echo "updating cache $cache_file"
11777 cat confcache > $cache_file
11778 else
11779 echo "not updating unwritable cache $cache_file"
11782 rm -f confcache
11784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11787 # Let make expand exec_prefix.
11788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11790 # Any assignment to VPATH causes Sun make to only execute
11791 # the first set of double-colon rules, so remove it if not needed.
11792 # If there is a colon in the path, we need to keep it.
11793 if test "x$srcdir" = x.; then
11794 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11797 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11799 DEFS=-DHAVE_CONFIG_H
11801 # Without the "./", some shells look in PATH for config.status.
11802 : ${CONFIG_STATUS=./config.status}
11804 echo creating $CONFIG_STATUS
11805 rm -f $CONFIG_STATUS
11806 cat > $CONFIG_STATUS <<EOF
11807 #! /bin/sh
11808 # Generated automatically by configure.
11809 # Run this file to recreate the current configuration.
11810 # This directory was configured as follows,
11811 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11813 # $0 $ac_configure_args
11815 # Compiler output produced by configure, useful for debugging
11816 # configure, is in ./config.log if it exists.
11818 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11819 for ac_option
11821 case "\$ac_option" in
11822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11823 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11824 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11825 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11826 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11827 exit 0 ;;
11828 -help | --help | --hel | --he | --h)
11829 echo "\$ac_cs_usage"; exit 0 ;;
11830 *) echo "\$ac_cs_usage"; exit 1 ;;
11831 esac
11832 done
11834 ac_given_srcdir=$srcdir
11835 ac_given_INSTALL="$INSTALL"
11837 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11839 cat >> $CONFIG_STATUS <<EOF
11841 # Protect against being on the right side of a sed subst in config.status.
11842 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11843 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11844 $ac_vpsub
11845 $extrasub
11846 s%@SHELL@%$SHELL%g
11847 s%@CFLAGS@%$CFLAGS%g
11848 s%@CPPFLAGS@%$CPPFLAGS%g
11849 s%@CXXFLAGS@%$CXXFLAGS%g
11850 s%@FFLAGS@%$FFLAGS%g
11851 s%@DEFS@%$DEFS%g
11852 s%@LDFLAGS@%$LDFLAGS%g
11853 s%@LIBS@%$LIBS%g
11854 s%@exec_prefix@%$exec_prefix%g
11855 s%@prefix@%$prefix%g
11856 s%@program_transform_name@%$program_transform_name%g
11857 s%@bindir@%$bindir%g
11858 s%@sbindir@%$sbindir%g
11859 s%@libexecdir@%$libexecdir%g
11860 s%@datadir@%$datadir%g
11861 s%@sysconfdir@%$sysconfdir%g
11862 s%@sharedstatedir@%$sharedstatedir%g
11863 s%@localstatedir@%$localstatedir%g
11864 s%@libdir@%$libdir%g
11865 s%@includedir@%$includedir%g
11866 s%@oldincludedir@%$oldincludedir%g
11867 s%@infodir@%$infodir%g
11868 s%@mandir@%$mandir%g
11869 s%@RUNPROG@%$RUNPROG%g
11870 s%@MPROGS@%$MPROGS%g
11871 s%@LDSHFLAGS@%$LDSHFLAGS%g
11872 s%@HOST_OS@%$HOST_OS%g
11873 s%@WRAP@%$WRAP%g
11874 s%@WRAP32@%$WRAP32%g
11875 s%@PICFLAG@%$PICFLAG%g
11876 s%@SHLIBEXT@%$SHLIBEXT%g
11877 s%@CC@%$CC%g
11878 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11879 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11880 s%@INSTALL_DATA@%$INSTALL_DATA%g
11881 s%@AWK@%$AWK%g
11882 s%@host@%$host%g
11883 s%@host_alias@%$host_alias%g
11884 s%@host_cpu@%$host_cpu%g
11885 s%@host_vendor@%$host_vendor%g
11886 s%@host_os@%$host_os%g
11887 s%@build@%$build%g
11888 s%@build_alias@%$build_alias%g
11889 s%@build_cpu@%$build_cpu%g
11890 s%@build_vendor@%$build_vendor%g
11891 s%@build_os@%$build_os%g
11892 s%@RANLIB@%$RANLIB%g
11893 s%@LN_S@%$LN_S%g
11894 s%@LIBTOOL@%$LIBTOOL%g
11895 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
11896 s%@BROKEN_CC@%$BROKEN_CC%g
11897 s%@target@%$target%g
11898 s%@target_alias@%$target_alias%g
11899 s%@target_cpu@%$target_cpu%g
11900 s%@target_vendor@%$target_vendor%g
11901 s%@target_os@%$target_os%g
11902 s%@CPP@%$CPP%g
11903 s%@LIBOBJS@%$LIBOBJS%g
11904 s%@ROFF@%$ROFF%g
11905 s%@QUOTAOBJS@%$QUOTAOBJS%g
11906 s%@privatedir@%$privatedir%g
11907 s%@lockdir@%$lockdir%g
11908 s%@swatdir@%$swatdir%g
11909 s%@builddir@%$builddir%g
11911 CEOF
11914 cat >> $CONFIG_STATUS <<\EOF
11916 # Split the substitutions into bite-sized pieces for seds with
11917 # small command number limits, like on Digital OSF/1 and HP-UX.
11918 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11919 ac_file=1 # Number of current file.
11920 ac_beg=1 # First line for current file.
11921 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11922 ac_more_lines=:
11923 ac_sed_cmds=""
11924 while $ac_more_lines; do
11925 if test $ac_beg -gt 1; then
11926 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11927 else
11928 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11930 if test ! -s conftest.s$ac_file; then
11931 ac_more_lines=false
11932 rm -f conftest.s$ac_file
11933 else
11934 if test -z "$ac_sed_cmds"; then
11935 ac_sed_cmds="sed -f conftest.s$ac_file"
11936 else
11937 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11939 ac_file=`expr $ac_file + 1`
11940 ac_beg=$ac_end
11941 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11943 done
11944 if test -z "$ac_sed_cmds"; then
11945 ac_sed_cmds=cat
11949 cat >> $CONFIG_STATUS <<EOF
11951 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
11953 cat >> $CONFIG_STATUS <<\EOF
11954 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11956 case "$ac_file" in
11957 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11958 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11959 *) ac_file_in="${ac_file}.in" ;;
11960 esac
11962 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11964 # Remove last slash and all that follows it. Not all systems have dirname.
11965 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11966 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11967 # The file is in a subdirectory.
11968 test ! -d "$ac_dir" && mkdir "$ac_dir"
11969 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11970 # A "../" for each directory in $ac_dir_suffix.
11971 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11972 else
11973 ac_dir_suffix= ac_dots=
11976 case "$ac_given_srcdir" in
11977 .) srcdir=.
11978 if test -z "$ac_dots"; then top_srcdir=.
11979 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11980 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11981 *) # Relative path.
11982 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11983 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11984 esac
11986 case "$ac_given_INSTALL" in
11987 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11988 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11989 esac
11991 echo creating "$ac_file"
11992 rm -f "$ac_file"
11993 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11994 case "$ac_file" in
11995 *Makefile*) ac_comsub="1i\\
11996 # $configure_input" ;;
11997 *) ac_comsub= ;;
11998 esac
12000 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12001 sed -e "$ac_comsub
12002 s%@configure_input@%$configure_input%g
12003 s%@srcdir@%$srcdir%g
12004 s%@top_srcdir@%$top_srcdir%g
12005 s%@INSTALL@%$INSTALL%g
12006 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12007 fi; done
12008 rm -f conftest.s*
12010 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12011 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12013 # ac_d sets the value in "#define NAME VALUE" lines.
12014 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12015 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12016 ac_dC='\3'
12017 ac_dD='%g'
12018 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12019 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12020 ac_uB='\([ ]\)%\1#\2define\3'
12021 ac_uC=' '
12022 ac_uD='\4%g'
12023 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12024 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12025 ac_eB='$%\1#\2define\3'
12026 ac_eC=' '
12027 ac_eD='%g'
12029 if test "${CONFIG_HEADERS+set}" != set; then
12031 cat >> $CONFIG_STATUS <<EOF
12032 CONFIG_HEADERS="include/config.h"
12034 cat >> $CONFIG_STATUS <<\EOF
12036 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12038 case "$ac_file" in
12039 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12040 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12041 *) ac_file_in="${ac_file}.in" ;;
12042 esac
12044 echo creating $ac_file
12046 rm -f conftest.frag conftest.in conftest.out
12047 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12048 cat $ac_file_inputs > conftest.in
12052 # Transform confdefs.h into a sed script conftest.vals that substitutes
12053 # the proper values into config.h.in to produce config.h. And first:
12054 # Protect against being on the right side of a sed subst in config.status.
12055 # Protect against being in an unquoted here document in config.status.
12056 rm -f conftest.vals
12057 cat > conftest.hdr <<\EOF
12058 s/[\\&%]/\\&/g
12059 s%[\\$`]%\\&%g
12060 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12061 s%ac_d%ac_u%gp
12062 s%ac_u%ac_e%gp
12064 sed -n -f conftest.hdr confdefs.h > conftest.vals
12065 rm -f conftest.hdr
12067 # This sed command replaces #undef with comments. This is necessary, for
12068 # example, in the case of _POSIX_SOURCE, which is predefined and required
12069 # on some systems where configure will not decide to define it.
12070 cat >> conftest.vals <<\EOF
12071 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12074 # Break up conftest.vals because some shells have a limit on
12075 # the size of here documents, and old seds have small limits too.
12077 rm -f conftest.tail
12078 while :
12080 ac_lines=`grep -c . conftest.vals`
12081 # grep -c gives empty output for an empty file on some AIX systems.
12082 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12083 # Write a limited-size here document to conftest.frag.
12084 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12085 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12086 echo 'CEOF
12087 sed -f conftest.frag conftest.in > conftest.out
12088 rm -f conftest.in
12089 mv conftest.out conftest.in
12090 ' >> $CONFIG_STATUS
12091 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12092 rm -f conftest.vals
12093 mv conftest.tail conftest.vals
12094 done
12095 rm -f conftest.vals
12097 cat >> $CONFIG_STATUS <<\EOF
12098 rm -f conftest.frag conftest.h
12099 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12100 cat conftest.in >> conftest.h
12101 rm -f conftest.in
12102 if cmp -s $ac_file conftest.h 2>/dev/null; then
12103 echo "$ac_file is unchanged"
12104 rm -f conftest.h
12105 else
12106 # Remove last slash and all that follows it. Not all systems have dirname.
12107 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12108 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12109 # The file is in a subdirectory.
12110 test ! -d "$ac_dir" && mkdir "$ac_dir"
12112 rm -f $ac_file
12113 mv conftest.h $ac_file
12115 fi; done
12118 cat >> $CONFIG_STATUS <<EOF
12121 cat >> $CONFIG_STATUS <<\EOF
12123 exit 0
12125 chmod +x $CONFIG_STATUS
12126 rm -fr confdefs* $ac_clean_files
12127 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1