added file from 2.0 branch
[Samba/gebeck_regimport.git] / source / configure
blobcb1c65abe057d167976003017b220c3d173e6db4
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-maintainer-mode enable some make rules for maintainers"
17 ac_help="$ac_help
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
20 ac_help="$ac_help
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
23 ac_help="$ac_help
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
26 ac_help="$ac_help
27 --with-krb4=base-dir Include Kerberos IV support
28 --whithout-krb4 Don't include Kerbers IV support (default)"
29 ac_help="$ac_help
30 --with-automount Include AUTOMOUNT support
31 --without-automount Don't include AUTOMOUNT support (default)"
32 ac_help="$ac_help
33 --with-smbmount Include SMBMOUNT (Linux only) support
34 --without-smbmount Don't include SMBMOUNT support (default)"
35 ac_help="$ac_help
36 --with-ldap Include LDAP support
37 --without-ldap Don't include LDAP support (default)"
38 ac_help="$ac_help
39 --with-nisplus Include NISPLUS password database support
40 --without-nisplus Don't include NISPLUS password database support (default)"
41 ac_help="$ac_help
42 --with-nisplus-home Include NISPLUS_HOME support
43 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
44 ac_help="$ac_help
45 --with-ssl Include SSL support
46 --without-ssl Don't include SSL support (default)"
47 ac_help="$ac_help
48 --with-mmap Include experimental MMAP support
49 --without-mmap Don't include MMAP support (default)"
50 ac_help="$ac_help
51 --with-syslog Include experimental SYSLOG support
52 --without-syslog Don't include SYSLOG support (default)"
53 ac_help="$ac_help
54 --with-netatalk Include experimental Netatalk support
55 --without-netatalk Don't include experimental Netatalk support (default)"
56 ac_help="$ac_help
57 --with-quotas Include experimental disk-quota support
58 --without-quotas Don't include experimental disk-quota support (default)"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
63 build=NONE
64 cache_file=./config.cache
65 exec_prefix=NONE
66 host=NONE
67 no_create=
68 nonopt=NONE
69 no_recursion=
70 prefix=NONE
71 program_prefix=NONE
72 program_suffix=NONE
73 program_transform_name=s,x,x,
74 silent=
75 site=
76 srcdir=
77 target=NONE
78 verbose=
79 x_includes=NONE
80 x_libraries=NONE
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
94 # Initialize some other variables.
95 subdirs=
96 MFLAGS= MAKEFLAGS=
97 # Maximum number of lines to put in a shell here document.
98 ac_max_here_lines=12
100 ac_prev=
101 for ac_option
104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
107 ac_prev=
108 continue
111 case "$ac_option" in
112 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 *) ac_optarg= ;;
114 esac
116 # Accept the important Cygnus configure options, so we can diagnose typos.
118 case "$ac_option" in
120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 ac_prev=bindir ;;
122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123 bindir="$ac_optarg" ;;
125 -build | --build | --buil | --bui | --bu)
126 ac_prev=build ;;
127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
128 build="$ac_optarg" ;;
130 -cache-file | --cache-file | --cache-fil | --cache-fi \
131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
132 ac_prev=cache_file ;;
133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
135 cache_file="$ac_optarg" ;;
137 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 ac_prev=datadir ;;
139 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 | --da=*)
141 datadir="$ac_optarg" ;;
143 -disable-* | --disable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
152 -enable-* | --enable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 case "$ac_option" in
160 *=*) ;;
161 *) ac_optarg=yes ;;
162 esac
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
165 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
166 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
167 | --exec | --exe | --ex)
168 ac_prev=exec_prefix ;;
169 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
170 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
171 | --exec=* | --exe=* | --ex=*)
172 exec_prefix="$ac_optarg" ;;
174 -gas | --gas | --ga | --g)
175 # Obsolete; use --with-gas.
176 with_gas=yes ;;
178 -help | --help | --hel | --he)
179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
181 cat << EOF
182 Usage: configure [options] [host]
183 Options: [defaults in brackets after descriptions]
184 Configuration:
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --version print the version of autoconf that created configure
190 Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
192 [$ac_default_prefix]
193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
194 [same as prefix]
195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
199 [PREFIX/share]
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 [PREFIX/com]
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
215 cat << EOF
216 Host type:
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220 Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
231 exit 0 ;;
233 -host | --host | --hos | --ho)
234 ac_prev=host ;;
235 -host=* | --host=* | --hos=* | --ho=*)
236 host="$ac_optarg" ;;
238 -includedir | --includedir | --includedi | --included | --include \
239 | --includ | --inclu | --incl | --inc)
240 ac_prev=includedir ;;
241 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
242 | --includ=* | --inclu=* | --incl=* | --inc=*)
243 includedir="$ac_optarg" ;;
245 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 ac_prev=infodir ;;
247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
248 infodir="$ac_optarg" ;;
250 -libdir | --libdir | --libdi | --libd)
251 ac_prev=libdir ;;
252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
253 libdir="$ac_optarg" ;;
255 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
256 | --libexe | --libex | --libe)
257 ac_prev=libexecdir ;;
258 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
259 | --libexe=* | --libex=* | --libe=*)
260 libexecdir="$ac_optarg" ;;
262 -localstatedir | --localstatedir | --localstatedi | --localstated \
263 | --localstate | --localstat | --localsta | --localst \
264 | --locals | --local | --loca | --loc | --lo)
265 ac_prev=localstatedir ;;
266 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
267 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
268 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
269 localstatedir="$ac_optarg" ;;
271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 ac_prev=mandir ;;
273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
274 mandir="$ac_optarg" ;;
276 -nfp | --nfp | --nf)
277 # Obsolete; use --without-fp.
278 with_fp=no ;;
280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 | --no-cr | --no-c)
282 no_create=yes ;;
284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
286 no_recursion=yes ;;
288 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
290 | --oldin | --oldi | --old | --ol | --o)
291 ac_prev=oldincludedir ;;
292 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
295 oldincludedir="$ac_optarg" ;;
297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 ac_prev=prefix ;;
299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
300 prefix="$ac_optarg" ;;
302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
303 | --program-pre | --program-pr | --program-p)
304 ac_prev=program_prefix ;;
305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
307 program_prefix="$ac_optarg" ;;
309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
310 | --program-suf | --program-su | --program-s)
311 ac_prev=program_suffix ;;
312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
314 program_suffix="$ac_optarg" ;;
316 -program-transform-name | --program-transform-name \
317 | --program-transform-nam | --program-transform-na \
318 | --program-transform-n | --program-transform- \
319 | --program-transform | --program-transfor \
320 | --program-transfo | --program-transf \
321 | --program-trans | --program-tran \
322 | --progr-tra | --program-tr | --program-t)
323 ac_prev=program_transform_name ;;
324 -program-transform-name=* | --program-transform-name=* \
325 | --program-transform-nam=* | --program-transform-na=* \
326 | --program-transform-n=* | --program-transform-=* \
327 | --program-transform=* | --program-transfor=* \
328 | --program-transfo=* | --program-transf=* \
329 | --program-trans=* | --program-tran=* \
330 | --progr-tra=* | --program-tr=* | --program-t=*)
331 program_transform_name="$ac_optarg" ;;
333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
334 | -silent | --silent | --silen | --sile | --sil)
335 silent=yes ;;
337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 ac_prev=sbindir ;;
339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 | --sbi=* | --sb=*)
341 sbindir="$ac_optarg" ;;
343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
345 | --sharedst | --shareds | --shared | --share | --shar \
346 | --sha | --sh)
347 ac_prev=sharedstatedir ;;
348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351 | --sha=* | --sh=*)
352 sharedstatedir="$ac_optarg" ;;
354 -site | --site | --sit)
355 ac_prev=site ;;
356 -site=* | --site=* | --sit=*)
357 site="$ac_optarg" ;;
359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360 ac_prev=srcdir ;;
361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
362 srcdir="$ac_optarg" ;;
364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
365 | --syscon | --sysco | --sysc | --sys | --sy)
366 ac_prev=sysconfdir ;;
367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
369 sysconfdir="$ac_optarg" ;;
371 -target | --target | --targe | --targ | --tar | --ta | --t)
372 ac_prev=target ;;
373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
374 target="$ac_optarg" ;;
376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
377 verbose=yes ;;
379 -version | --version | --versio | --versi | --vers)
380 echo "configure generated by autoconf version 2.12"
381 exit 0 ;;
383 -with-* | --with-*)
384 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 case "$ac_option" in
391 *=*) ;;
392 *) ac_optarg=yes ;;
393 esac
394 eval "with_${ac_package}='$ac_optarg'" ;;
396 -without-* | --without-*)
397 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
405 --x)
406 # Obsolete; use --with-x.
407 with_x=yes ;;
409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
410 | --x-incl | --x-inc | --x-in | --x-i)
411 ac_prev=x_includes ;;
412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
414 x_includes="$ac_optarg" ;;
416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
418 ac_prev=x_libraries ;;
419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
421 x_libraries="$ac_optarg" ;;
423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428 echo "configure: warning: $ac_option: invalid host type" 1>&2
430 if test "x$nonopt" != xNONE; then
431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 nonopt="$ac_option"
436 esac
437 done
439 if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445 # File descriptor usage:
446 # 0 standard input
447 # 1 file creation
448 # 2 errors and warnings
449 # 3 some systems may open it to /dev/tty
450 # 4 used on the Kubota Titan
451 # 6 checking for... messages and results
452 # 5 compiler messages saved in config.log
453 if test "$silent" = yes; then
454 exec 6>/dev/null
455 else
456 exec 6>&1
458 exec 5>./config.log
460 echo "\
461 This file contains any messages produced by compilers while
462 running configure, to aid debugging if configure makes a mistake.
463 " 1>&5
465 # Strip out --no-create and --no-recursion so they do not pile up.
466 # Also quote any args containing shell metacharacters.
467 ac_configure_args=
468 for ac_arg
470 case "$ac_arg" in
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c) ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
477 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 esac
479 done
481 # NLS nuisances.
482 # Only set these to C if already set. These must not be set unconditionally
483 # because not all systems understand e.g. LANG=C (notably SCO).
484 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485 # Non-C LC_CTYPE values break the ctype check.
486 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
487 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
492 rm -rf conftest* confdefs.h
493 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
494 echo > confdefs.h
496 # A filename unique to this package, relative to the directory that
497 # configure is in, which we can look for to find out if srcdir is correct.
498 ac_unique_file=include/includes.h
500 # Find the source files, if location was not specified.
501 if test -z "$srcdir"; then
502 ac_srcdir_defaulted=yes
503 # Try the directory containing this script, then its parent.
504 ac_prog=$0
505 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
507 srcdir=$ac_confdir
508 if test ! -r $srcdir/$ac_unique_file; then
509 srcdir=..
511 else
512 ac_srcdir_defaulted=no
514 if test ! -r $srcdir/$ac_unique_file; then
515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517 else
518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
523 # Prefer explicitly selected file to automatically selected ones.
524 if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE; then
526 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 else
528 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
531 for ac_site_file in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
534 . "$ac_site_file"
536 done
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
540 . $cache_file
541 else
542 echo "creating cache $cache_file"
543 > $cache_file
546 ac_ext=c
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp='$CPP $CPPFLAGS'
549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling=$ac_cv_prog_cc_cross
553 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='
557 ' ac_t=' '
558 else
559 ac_n=-n ac_c= ac_t=
561 else
562 ac_n= ac_c='\c' ac_t=
567 # we want to be compatibe with older versions of Samba
578 # compile with optimisation and without debugging by default
579 CFLAGS=${CFLAGS-"-O"}
581 # Extract the first word of "gcc", so it can be a program name with args.
582 set dummy gcc; ac_word=$2
583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584 echo "configure:585: checking for $ac_word" >&5
585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
587 else
588 if test -n "$CC"; then
589 ac_cv_prog_CC="$CC" # Let the user override the test.
590 else
591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
592 for ac_dir in $PATH; do
593 test -z "$ac_dir" && ac_dir=.
594 if test -f $ac_dir/$ac_word; then
595 ac_cv_prog_CC="gcc"
596 break
598 done
599 IFS="$ac_save_ifs"
602 CC="$ac_cv_prog_CC"
603 if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
605 else
606 echo "$ac_t""no" 1>&6
609 if test -z "$CC"; then
610 # Extract the first word of "cc", so it can be a program name with args.
611 set dummy cc; ac_word=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 echo "configure:614: checking for $ac_word" >&5
614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
616 else
617 if test -n "$CC"; then
618 ac_cv_prog_CC="$CC" # Let the user override the test.
619 else
620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
621 ac_prog_rejected=no
622 for ac_dir in $PATH; do
623 test -z "$ac_dir" && ac_dir=.
624 if test -f $ac_dir/$ac_word; then
625 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
626 ac_prog_rejected=yes
627 continue
629 ac_cv_prog_CC="cc"
630 break
632 done
633 IFS="$ac_save_ifs"
634 if test $ac_prog_rejected = yes; then
635 # We found a bogon in the path, so make sure we never use it.
636 set dummy $ac_cv_prog_CC
637 shift
638 if test $# -gt 0; then
639 # We chose a different compiler from the bogus one.
640 # However, it has the same basename, so the bogon will be chosen
641 # first if we set CC to just the basename; use the full file name.
642 shift
643 set dummy "$ac_dir/$ac_word" "$@"
644 shift
645 ac_cv_prog_CC="$@"
650 CC="$ac_cv_prog_CC"
651 if test -n "$CC"; then
652 echo "$ac_t""$CC" 1>&6
653 else
654 echo "$ac_t""no" 1>&6
657 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
661 echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
663 ac_ext=c
664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
665 ac_cpp='$CPP $CPPFLAGS'
666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
667 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
668 cross_compiling=$ac_cv_prog_cc_cross
670 cat > conftest.$ac_ext <<EOF
671 #line 672 "configure"
672 #include "confdefs.h"
673 main(){return(0);}
675 if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
676 ac_cv_prog_cc_works=yes
677 # If we can't run a trivial program, we are probably using a cross compiler.
678 if (./conftest; exit) 2>/dev/null; then
679 ac_cv_prog_cc_cross=no
680 else
681 ac_cv_prog_cc_cross=yes
683 else
684 echo "configure: failed program was:" >&5
685 cat conftest.$ac_ext >&5
686 ac_cv_prog_cc_works=no
688 rm -fr conftest*
690 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
691 if test $ac_cv_prog_cc_works = no; then
692 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
694 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
695 echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
696 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
697 cross_compiling=$ac_cv_prog_cc_cross
699 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
700 echo "configure:701: checking whether we are using GNU C" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
703 else
704 cat > conftest.c <<EOF
705 #ifdef __GNUC__
706 yes;
707 #endif
709 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
710 ac_cv_prog_gcc=yes
711 else
712 ac_cv_prog_gcc=no
716 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
718 if test $ac_cv_prog_gcc = yes; then
719 GCC=yes
720 ac_test_CFLAGS="${CFLAGS+set}"
721 ac_save_CFLAGS="$CFLAGS"
722 CFLAGS=
723 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724 echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
727 else
728 echo 'void f(){}' > conftest.c
729 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
730 ac_cv_prog_cc_g=yes
731 else
732 ac_cv_prog_cc_g=no
734 rm -f conftest*
738 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739 if test "$ac_test_CFLAGS" = set; then
740 CFLAGS="$ac_save_CFLAGS"
741 elif test $ac_cv_prog_cc_g = yes; then
742 CFLAGS="-g -O2"
743 else
744 CFLAGS="-O2"
746 else
747 GCC=
748 test "${CFLAGS+set}" = set || CFLAGS="-g"
751 ac_aux_dir=
752 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
753 if test -f $ac_dir/install-sh; then
754 ac_aux_dir=$ac_dir
755 ac_install_sh="$ac_aux_dir/install-sh -c"
756 break
757 elif test -f $ac_dir/install.sh; then
758 ac_aux_dir=$ac_dir
759 ac_install_sh="$ac_aux_dir/install.sh -c"
760 break
762 done
763 if test -z "$ac_aux_dir"; then
764 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
766 ac_config_guess=$ac_aux_dir/config.guess
767 ac_config_sub=$ac_aux_dir/config.sub
768 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
770 # Find a good install program. We prefer a C program (faster),
771 # so one script is as good as another. But avoid the broken or
772 # incompatible versions:
773 # SysV /etc/install, /usr/sbin/install
774 # SunOS /usr/etc/install
775 # IRIX /sbin/install
776 # AIX /bin/install
777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
779 # ./install, which can be erroneously created by make from ./install.sh.
780 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
781 echo "configure:782: checking for a BSD compatible install" >&5
782 if test -z "$INSTALL"; then
783 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785 else
786 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
787 for ac_dir in $PATH; do
788 # Account for people who put trailing slashes in PATH elements.
789 case "$ac_dir/" in
790 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
792 # OSF1 and SCO ODT 3.0 have their own names for install.
793 for ac_prog in ginstall installbsd scoinst install; do
794 if test -f $ac_dir/$ac_prog; then
795 if test $ac_prog = install &&
796 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
797 # AIX install. It has an incompatible calling convention.
798 # OSF/1 installbsd also uses dspmsg, but is usable.
800 else
801 ac_cv_path_install="$ac_dir/$ac_prog -c"
802 break 2
805 done
807 esac
808 done
809 IFS="$ac_save_IFS"
812 if test "${ac_cv_path_install+set}" = set; then
813 INSTALL="$ac_cv_path_install"
814 else
815 # As a last resort, use the slow shell script. We don't cache a
816 # path for INSTALL within a source directory, because that will
817 # break other packages using the cache if that directory is
818 # removed, or if the path is relative.
819 INSTALL="$ac_install_sh"
822 echo "$ac_t""$INSTALL" 1>&6
824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
825 # It thinks the first close brace ends the variable substitution.
826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
830 for ac_prog in mawk gawk nawk awk
832 # Extract the first word of "$ac_prog", so it can be a program name with args.
833 set dummy $ac_prog; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
838 else
839 if test -n "$AWK"; then
840 ac_cv_prog_AWK="$AWK" # Let the user override the test.
841 else
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
843 for ac_dir in $PATH; do
844 test -z "$ac_dir" && ac_dir=.
845 if test -f $ac_dir/$ac_word; then
846 ac_cv_prog_AWK="$ac_prog"
847 break
849 done
850 IFS="$ac_save_ifs"
853 AWK="$ac_cv_prog_AWK"
854 if test -n "$AWK"; then
855 echo "$ac_t""$AWK" 1>&6
856 else
857 echo "$ac_t""no" 1>&6
860 test -n "$AWK" && break
861 done
865 # Do some error checking and defaulting for the host and target type.
866 # The inputs are:
867 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
869 # The rules are:
870 # 1. You are not allowed to specify --host, --target, and nonopt at the
871 # same time.
872 # 2. Host defaults to nonopt.
873 # 3. If nonopt is not specified, then host defaults to the current host,
874 # as determined by config.guess.
875 # 4. Target and build default to nonopt.
876 # 5. If nonopt is not specified, then target and build default to host.
878 # The aliases save the names the user supplied, while $host etc.
879 # will get canonicalized.
880 case $host---$target---$nonopt in
881 NONE---*---* | *---NONE---* | *---*---NONE) ;;
882 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
883 esac
886 # Make sure we can run config.sub.
887 if $ac_config_sub sun4 >/dev/null 2>&1; then :
888 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
891 echo $ac_n "checking host system type""... $ac_c" 1>&6
892 echo "configure:893: checking host system type" >&5
894 host_alias=$host
895 case "$host_alias" in
896 NONE)
897 case $nonopt in
898 NONE)
899 if host_alias=`$ac_config_guess`; then :
900 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
901 fi ;;
902 *) host_alias=$nonopt ;;
903 esac ;;
904 esac
906 host=`$ac_config_sub $host_alias`
907 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
908 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
909 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
910 echo "$ac_t""$host" 1>&6
912 echo $ac_n "checking target system type""... $ac_c" 1>&6
913 echo "configure:914: checking target system type" >&5
915 target_alias=$target
916 case "$target_alias" in
917 NONE)
918 case $nonopt in
919 NONE) target_alias=$host_alias ;;
920 *) target_alias=$nonopt ;;
921 esac ;;
922 esac
924 target=`$ac_config_sub $target_alias`
925 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
926 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
927 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
928 echo "$ac_t""$target" 1>&6
930 echo $ac_n "checking build system type""... $ac_c" 1>&6
931 echo "configure:932: checking build system type" >&5
933 build_alias=$build
934 case "$build_alias" in
935 NONE)
936 case $nonopt in
937 NONE) build_alias=$host_alias ;;
938 *) build_alias=$nonopt ;;
939 esac ;;
940 esac
942 build=`$ac_config_sub $build_alias`
943 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
946 echo "$ac_t""$build" 1>&6
948 test "$host_alias" != "$target_alias" &&
949 test "$program_prefix$program_suffix$program_transform_name" = \
950 NONENONEs,x,x, &&
951 program_prefix=${target_alias}-
955 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
956 echo "configure:957: checking config.cache system type" >&5
957 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
958 test x"$ac_cv_host_system_type" != x"$host"; } ||
959 { test x"${ac_cv_build_system_type+set}" = x"set" &&
960 test x"$ac_cv_build_system_type" != x"$build"; } ||
961 { test x"${ac_cv_target_system_type+set}" = x"set" &&
962 test x"$ac_cv_target_system_type" != x"$target"; }; then
963 echo "$ac_t""different" 1>&6
964 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
965 else
966 echo "$ac_t""same" 1>&6
968 ac_cv_host_system_type="$host"
969 ac_cv_build_system_type="$build"
970 ac_cv_target_system_type="$target"
973 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
974 if test "${enable_maintainer_mode+set}" = set; then
975 enableval="$enable_maintainer_mode"
976 maint_mode=$enableval
977 else
978 maint_mode=no
981 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
983 # Extract the first word of "autoconf", so it can be a program name with args.
984 set dummy autoconf; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 case "$AUTOCONF" in
992 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
996 for ac_dir in $PATH; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1000 break
1002 done
1003 IFS="$ac_save_ifs"
1004 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1006 esac
1008 AUTOCONF="$ac_cv_path_AUTOCONF"
1009 if test -n "$AUTOCONF"; then
1010 echo "$ac_t""$AUTOCONF" 1>&6
1011 else
1012 echo "$ac_t""no" 1>&6
1016 # Extract the first word of "autoheader", so it can be a program name with args.
1017 set dummy autoheader; ac_word=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1022 else
1023 case "$AUTOHEADER" in
1025 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1029 for ac_dir in $PATH; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1033 break
1035 done
1036 IFS="$ac_save_ifs"
1037 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1039 esac
1041 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1042 if test -n "$AUTOHEADER"; then
1043 echo "$ac_t""$AUTOHEADER" 1>&6
1044 else
1045 echo "$ac_t""no" 1>&6
1052 # Config CPPFLAG settings for strange OS's that must be set
1053 # before other tests.
1055 case "$host_os" in
1056 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1057 *hpux*)
1058 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1059 echo "configure:1060: checking whether ${CC-cc} accepts -Ae" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1062 else
1063 echo 'void f(){}' > conftest.c
1064 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1065 ac_cv_prog_cc_Ae=yes
1066 else
1067 ac_cv_prog_cc_Ae=no
1069 rm -f conftest*
1073 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1074 if test $ac_cv_prog_cc_Ae = yes; then
1075 CPPFLAGS="$CPPFLAGS -Ae"
1079 # AIX4.x is *so* broken. It doesn't even admit to having large
1080 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1082 *aix4*)
1083 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1085 esac
1087 echo $ac_n "checking for inline""... $ac_c" 1>&6
1088 echo "configure:1089: checking for inline" >&5
1089 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092 ac_cv_c_inline=no
1093 for ac_kw in inline __inline__ __inline; do
1094 cat > conftest.$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1098 int main() {
1099 } $ac_kw foo() {
1100 ; return 0; }
1102 if { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1103 rm -rf conftest*
1104 ac_cv_c_inline=$ac_kw; break
1105 else
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1109 rm -f conftest*
1110 done
1114 echo "$ac_t""$ac_cv_c_inline" 1>&6
1115 case "$ac_cv_c_inline" in
1116 inline | yes) ;;
1117 no) cat >> confdefs.h <<\EOF
1118 #define inline
1121 *) cat >> confdefs.h <<EOF
1122 #define inline $ac_cv_c_inline
1125 esac
1127 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1128 echo "configure:1129: checking how to run the C preprocessor" >&5
1129 # On Suns, sometimes $CPP names a directory.
1130 if test -n "$CPP" && test -d "$CPP"; then
1131 CPP=
1133 if test -z "$CPP"; then
1134 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1136 else
1137 # This must be in double quotes, not single quotes, because CPP may get
1138 # substituted into the Makefile and "${CC-cc}" will confuse make.
1139 CPP="${CC-cc} -E"
1140 # On the NeXT, cc -E runs the code through the compiler's parser,
1141 # not just through cpp.
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 #include <assert.h>
1146 Syntax Error
1148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1149 { (eval echo configure:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1150 ac_err=`grep -v '^ *+' conftest.out`
1151 if test -z "$ac_err"; then
1153 else
1154 echo "$ac_err" >&5
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1157 rm -rf conftest*
1158 CPP="${CC-cc} -E -traditional-cpp"
1159 cat > conftest.$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1162 #include <assert.h>
1163 Syntax Error
1165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1166 { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1167 ac_err=`grep -v '^ *+' conftest.out`
1168 if test -z "$ac_err"; then
1170 else
1171 echo "$ac_err" >&5
1172 echo "configure: failed program was:" >&5
1173 cat conftest.$ac_ext >&5
1174 rm -rf conftest*
1175 CPP=/lib/cpp
1177 rm -f conftest*
1179 rm -f conftest*
1180 ac_cv_prog_CPP="$CPP"
1182 CPP="$ac_cv_prog_CPP"
1183 else
1184 ac_cv_prog_CPP="$CPP"
1186 echo "$ac_t""$CPP" 1>&6
1188 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1189 echo "configure:1190: checking for ANSI C header files" >&5
1190 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1192 else
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1196 #include <stdlib.h>
1197 #include <stdarg.h>
1198 #include <string.h>
1199 #include <float.h>
1201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1202 { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1203 ac_err=`grep -v '^ *+' conftest.out`
1204 if test -z "$ac_err"; then
1205 rm -rf conftest*
1206 ac_cv_header_stdc=yes
1207 else
1208 echo "$ac_err" >&5
1209 echo "configure: failed program was:" >&5
1210 cat conftest.$ac_ext >&5
1211 rm -rf conftest*
1212 ac_cv_header_stdc=no
1214 rm -f conftest*
1216 if test $ac_cv_header_stdc = yes; then
1217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1221 #include <string.h>
1223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1224 egrep "memchr" >/dev/null 2>&1; then
1226 else
1227 rm -rf conftest*
1228 ac_cv_header_stdc=no
1230 rm -f conftest*
1234 if test $ac_cv_header_stdc = yes; then
1235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1239 #include <stdlib.h>
1241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1242 egrep "free" >/dev/null 2>&1; then
1244 else
1245 rm -rf conftest*
1246 ac_cv_header_stdc=no
1248 rm -f conftest*
1252 if test $ac_cv_header_stdc = yes; then
1253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1254 if test "$cross_compiling" = yes; then
1256 else
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1260 #include <ctype.h>
1261 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1262 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1264 int main () { int i; for (i = 0; i < 256; i++)
1265 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1266 exit (0); }
1269 if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1270 then
1272 else
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1275 rm -fr conftest*
1276 ac_cv_header_stdc=no
1278 rm -fr conftest*
1284 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1285 if test $ac_cv_header_stdc = yes; then
1286 cat >> confdefs.h <<\EOF
1287 #define STDC_HEADERS 1
1292 ac_header_dirent=no
1293 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1296 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_hdr that defines DIR" >&5
1298 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1300 else
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 #include <sys/types.h>
1305 #include <$ac_hdr>
1306 int main() {
1307 DIR *dirp = 0;
1308 ; return 0; }
1310 if { (eval echo configure:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1311 rm -rf conftest*
1312 eval "ac_cv_header_dirent_$ac_safe=yes"
1313 else
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1316 rm -rf conftest*
1317 eval "ac_cv_header_dirent_$ac_safe=no"
1319 rm -f conftest*
1321 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1322 echo "$ac_t""yes" 1>&6
1323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1324 cat >> confdefs.h <<EOF
1325 #define $ac_tr_hdr 1
1327 ac_header_dirent=$ac_hdr; break
1328 else
1329 echo "$ac_t""no" 1>&6
1331 done
1332 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1333 if test $ac_header_dirent = dirent.h; then
1334 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1335 echo "configure:1336: checking for opendir in -ldir" >&5
1336 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 ac_save_LIBS="$LIBS"
1341 LIBS="-ldir $LIBS"
1342 cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1345 /* Override any gcc2 internal prototype to avoid an error. */
1346 /* We use char because int might match the return type of a gcc2
1347 builtin and then its argument prototype would still apply. */
1348 char opendir();
1350 int main() {
1351 opendir()
1352 ; return 0; }
1354 if { (eval echo configure:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1355 rm -rf conftest*
1356 eval "ac_cv_lib_$ac_lib_var=yes"
1357 else
1358 echo "configure: failed program was:" >&5
1359 cat conftest.$ac_ext >&5
1360 rm -rf conftest*
1361 eval "ac_cv_lib_$ac_lib_var=no"
1363 rm -f conftest*
1364 LIBS="$ac_save_LIBS"
1367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1368 echo "$ac_t""yes" 1>&6
1369 LIBS="$LIBS -ldir"
1370 else
1371 echo "$ac_t""no" 1>&6
1374 else
1375 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1376 echo "configure:1377: checking for opendir in -lx" >&5
1377 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1380 else
1381 ac_save_LIBS="$LIBS"
1382 LIBS="-lx $LIBS"
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 /* Override any gcc2 internal prototype to avoid an error. */
1387 /* We use char because int might match the return type of a gcc2
1388 builtin and then its argument prototype would still apply. */
1389 char opendir();
1391 int main() {
1392 opendir()
1393 ; return 0; }
1395 if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1396 rm -rf conftest*
1397 eval "ac_cv_lib_$ac_lib_var=yes"
1398 else
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1401 rm -rf conftest*
1402 eval "ac_cv_lib_$ac_lib_var=no"
1404 rm -f conftest*
1405 LIBS="$ac_save_LIBS"
1408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1410 LIBS="$LIBS -lx"
1411 else
1412 echo "$ac_t""no" 1>&6
1417 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether time.h and sys/time.h may both be included" >&5
1419 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 #include <sys/types.h>
1426 #include <sys/time.h>
1427 #include <time.h>
1428 int main() {
1429 struct tm *tp;
1430 ; return 0; }
1432 if { (eval echo configure:1433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1433 rm -rf conftest*
1434 ac_cv_header_time=yes
1435 else
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1438 rm -rf conftest*
1439 ac_cv_header_time=no
1441 rm -f conftest*
1444 echo "$ac_t""$ac_cv_header_time" 1>&6
1445 if test $ac_cv_header_time = yes; then
1446 cat >> confdefs.h <<\EOF
1447 #define TIME_WITH_SYS_TIME 1
1452 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1453 echo "configure:1454: checking for sys/wait.h that is POSIX.1 compatible" >&5
1454 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1456 else
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 #include <sys/types.h>
1461 #include <sys/wait.h>
1462 #ifndef WEXITSTATUS
1463 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1464 #endif
1465 #ifndef WIFEXITED
1466 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1467 #endif
1468 int main() {
1469 int s;
1470 wait (&s);
1471 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1472 ; return 0; }
1474 if { (eval echo configure:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1475 rm -rf conftest*
1476 ac_cv_header_sys_wait_h=yes
1477 else
1478 echo "configure: failed program was:" >&5
1479 cat conftest.$ac_ext >&5
1480 rm -rf conftest*
1481 ac_cv_header_sys_wait_h=no
1483 rm -f conftest*
1486 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1487 if test $ac_cv_header_sys_wait_h = yes; then
1488 cat >> confdefs.h <<\EOF
1489 #define HAVE_SYS_WAIT_H 1
1494 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1498 echo "configure:1499: checking for $ac_hdr" >&5
1499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1501 else
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 #include <$ac_hdr>
1507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1508 { (eval echo configure:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1509 ac_err=`grep -v '^ *+' conftest.out`
1510 if test -z "$ac_err"; then
1511 rm -rf conftest*
1512 eval "ac_cv_header_$ac_safe=yes"
1513 else
1514 echo "$ac_err" >&5
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1517 rm -rf conftest*
1518 eval "ac_cv_header_$ac_safe=no"
1520 rm -f conftest*
1522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1525 cat >> confdefs.h <<EOF
1526 #define $ac_tr_hdr 1
1529 else
1530 echo "$ac_t""no" 1>&6
1532 done
1534 for ac_hdr in sys/param.h ctype.h
1536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_hdr" >&5
1539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1541 else
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1545 #include <$ac_hdr>
1547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1548 { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1549 ac_err=`grep -v '^ *+' conftest.out`
1550 if test -z "$ac_err"; then
1551 rm -rf conftest*
1552 eval "ac_cv_header_$ac_safe=yes"
1553 else
1554 echo "$ac_err" >&5
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1557 rm -rf conftest*
1558 eval "ac_cv_header_$ac_safe=no"
1560 rm -f conftest*
1562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1563 echo "$ac_t""yes" 1>&6
1564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1565 cat >> confdefs.h <<EOF
1566 #define $ac_tr_hdr 1
1569 else
1570 echo "$ac_t""no" 1>&6
1572 done
1574 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/route.h net/if.h
1576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_hdr" >&5
1579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1581 else
1582 cat > conftest.$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1585 #include <$ac_hdr>
1587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588 { (eval echo configure:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589 ac_err=`grep -v '^ *+' conftest.out`
1590 if test -z "$ac_err"; then
1591 rm -rf conftest*
1592 eval "ac_cv_header_$ac_safe=yes"
1593 else
1594 echo "$ac_err" >&5
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1597 rm -rf conftest*
1598 eval "ac_cv_header_$ac_safe=no"
1600 rm -f conftest*
1602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1603 echo "$ac_t""yes" 1>&6
1604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1605 cat >> confdefs.h <<EOF
1606 #define $ac_tr_hdr 1
1609 else
1610 echo "$ac_t""no" 1>&6
1612 done
1614 for ac_hdr in compat.h rpc/rpc.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_hdr" >&5
1619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1621 else
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 #include <$ac_hdr>
1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1629 ac_err=`grep -v '^ *+' conftest.out`
1630 if test -z "$ac_err"; then
1631 rm -rf conftest*
1632 eval "ac_cv_header_$ac_safe=yes"
1633 else
1634 echo "$ac_err" >&5
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1637 rm -rf conftest*
1638 eval "ac_cv_header_$ac_safe=no"
1640 rm -f conftest*
1642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1643 echo "$ac_t""yes" 1>&6
1644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1645 cat >> confdefs.h <<EOF
1646 #define $ac_tr_hdr 1
1649 else
1650 echo "$ac_t""no" 1>&6
1652 done
1654 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_hdr" >&5
1659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1661 else
1662 cat > conftest.$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1665 #include <$ac_hdr>
1667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1668 { (eval echo configure:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1669 ac_err=`grep -v '^ *+' conftest.out`
1670 if test -z "$ac_err"; then
1671 rm -rf conftest*
1672 eval "ac_cv_header_$ac_safe=yes"
1673 else
1674 echo "$ac_err" >&5
1675 echo "configure: failed program was:" >&5
1676 cat conftest.$ac_ext >&5
1677 rm -rf conftest*
1678 eval "ac_cv_header_$ac_safe=no"
1680 rm -f conftest*
1682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1685 cat >> confdefs.h <<EOF
1686 #define $ac_tr_hdr 1
1689 else
1690 echo "$ac_t""no" 1>&6
1692 done
1694 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1698 echo "configure:1699: checking for $ac_hdr" >&5
1699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1701 else
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 #include <$ac_hdr>
1707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1708 { (eval echo configure:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1709 ac_err=`grep -v '^ *+' conftest.out`
1710 if test -z "$ac_err"; then
1711 rm -rf conftest*
1712 eval "ac_cv_header_$ac_safe=yes"
1713 else
1714 echo "$ac_err" >&5
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1717 rm -rf conftest*
1718 eval "ac_cv_header_$ac_safe=no"
1720 rm -f conftest*
1722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1723 echo "$ac_t""yes" 1>&6
1724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1725 cat >> confdefs.h <<EOF
1726 #define $ac_tr_hdr 1
1729 else
1730 echo "$ac_t""no" 1>&6
1732 done
1734 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_hdr" >&5
1739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1741 else
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1745 #include <$ac_hdr>
1747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1748 { (eval echo configure:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1749 ac_err=`grep -v '^ *+' conftest.out`
1750 if test -z "$ac_err"; then
1751 rm -rf conftest*
1752 eval "ac_cv_header_$ac_safe=yes"
1753 else
1754 echo "$ac_err" >&5
1755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1757 rm -rf conftest*
1758 eval "ac_cv_header_$ac_safe=no"
1760 rm -f conftest*
1762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1763 echo "$ac_t""yes" 1>&6
1764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1765 cat >> confdefs.h <<EOF
1766 #define $ac_tr_hdr 1
1769 else
1770 echo "$ac_t""no" 1>&6
1772 done
1774 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_hdr" >&5
1779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1781 else
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #include <$ac_hdr>
1787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err=`grep -v '^ *+' conftest.out`
1790 if test -z "$ac_err"; then
1791 rm -rf conftest*
1792 eval "ac_cv_header_$ac_safe=yes"
1793 else
1794 echo "$ac_err" >&5
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1797 rm -rf conftest*
1798 eval "ac_cv_header_$ac_safe=no"
1800 rm -f conftest*
1802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1805 cat >> confdefs.h <<EOF
1806 #define $ac_tr_hdr 1
1809 else
1810 echo "$ac_t""no" 1>&6
1812 done
1814 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_hdr" >&5
1819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 #include <$ac_hdr>
1827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1828 { (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1829 ac_err=`grep -v '^ *+' conftest.out`
1830 if test -z "$ac_err"; then
1831 rm -rf conftest*
1832 eval "ac_cv_header_$ac_safe=yes"
1833 else
1834 echo "$ac_err" >&5
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1837 rm -rf conftest*
1838 eval "ac_cv_header_$ac_safe=no"
1840 rm -f conftest*
1842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1845 cat >> confdefs.h <<EOF
1846 #define $ac_tr_hdr 1
1849 else
1850 echo "$ac_t""no" 1>&6
1852 done
1854 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_hdr" >&5
1859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 #include <$ac_hdr>
1867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1868 { (eval echo configure:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1869 ac_err=`grep -v '^ *+' conftest.out`
1870 if test -z "$ac_err"; then
1871 rm -rf conftest*
1872 eval "ac_cv_header_$ac_safe=yes"
1873 else
1874 echo "$ac_err" >&5
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 rm -rf conftest*
1878 eval "ac_cv_header_$ac_safe=no"
1880 rm -f conftest*
1882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1885 cat >> confdefs.h <<EOF
1886 #define $ac_tr_hdr 1
1889 else
1890 echo "$ac_t""no" 1>&6
1892 done
1894 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_hdr" >&5
1899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1901 else
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 #include <$ac_hdr>
1907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908 { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909 ac_err=`grep -v '^ *+' conftest.out`
1910 if test -z "$ac_err"; then
1911 rm -rf conftest*
1912 eval "ac_cv_header_$ac_safe=yes"
1913 else
1914 echo "$ac_err" >&5
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 rm -rf conftest*
1918 eval "ac_cv_header_$ac_safe=no"
1920 rm -f conftest*
1922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1923 echo "$ac_t""yes" 1>&6
1924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1925 cat >> confdefs.h <<EOF
1926 #define $ac_tr_hdr 1
1929 else
1930 echo "$ac_t""no" 1>&6
1932 done
1934 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
1936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_hdr" >&5
1939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 #include <$ac_hdr>
1947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1948 { (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1949 ac_err=`grep -v '^ *+' conftest.out`
1950 if test -z "$ac_err"; then
1951 rm -rf conftest*
1952 eval "ac_cv_header_$ac_safe=yes"
1953 else
1954 echo "$ac_err" >&5
1955 echo "configure: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1957 rm -rf conftest*
1958 eval "ac_cv_header_$ac_safe=no"
1960 rm -f conftest*
1962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1963 echo "$ac_t""yes" 1>&6
1964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1965 cat >> confdefs.h <<EOF
1966 #define $ac_tr_hdr 1
1969 else
1970 echo "$ac_t""no" 1>&6
1972 done
1975 echo $ac_n "checking size of int""... $ac_c" 1>&6
1976 echo "configure:1977: checking size of int" >&5
1977 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1979 else
1980 if test "$cross_compiling" = yes; then
1981 ac_cv_sizeof_int=cross
1982 else
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 #include <stdio.h>
1987 main()
1989 FILE *f=fopen("conftestval", "w");
1990 if (!f) exit(1);
1991 fprintf(f, "%d\n", sizeof(int));
1992 exit(0);
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1996 then
1997 ac_cv_sizeof_int=`cat conftestval`
1998 else
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 rm -fr conftest*
2002 ac_cv_sizeof_int=0
2004 rm -fr conftest*
2008 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2009 cat >> confdefs.h <<EOF
2010 #define SIZEOF_INT $ac_cv_sizeof_int
2014 echo $ac_n "checking size of long""... $ac_c" 1>&6
2015 echo "configure:2016: checking size of long" >&5
2016 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018 else
2019 if test "$cross_compiling" = yes; then
2020 ac_cv_sizeof_long=cross
2021 else
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2025 #include <stdio.h>
2026 main()
2028 FILE *f=fopen("conftestval", "w");
2029 if (!f) exit(1);
2030 fprintf(f, "%d\n", sizeof(long));
2031 exit(0);
2034 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2035 then
2036 ac_cv_sizeof_long=`cat conftestval`
2037 else
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 rm -fr conftest*
2041 ac_cv_sizeof_long=0
2043 rm -fr conftest*
2047 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2048 cat >> confdefs.h <<EOF
2049 #define SIZEOF_LONG $ac_cv_sizeof_long
2053 echo $ac_n "checking size of short""... $ac_c" 1>&6
2054 echo "configure:2055: checking size of short" >&5
2055 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057 else
2058 if test "$cross_compiling" = yes; then
2059 ac_cv_sizeof_short=cross
2060 else
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 #include <stdio.h>
2065 main()
2067 FILE *f=fopen("conftestval", "w");
2068 if (!f) exit(1);
2069 fprintf(f, "%d\n", sizeof(short));
2070 exit(0);
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2074 then
2075 ac_cv_sizeof_short=`cat conftestval`
2076 else
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 rm -fr conftest*
2080 ac_cv_sizeof_short=0
2082 rm -fr conftest*
2086 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2087 cat >> confdefs.h <<EOF
2088 #define SIZEOF_SHORT $ac_cv_sizeof_short
2093 echo $ac_n "checking for working const""... $ac_c" 1>&6
2094 echo "configure:2095: checking for working const" >&5
2095 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2097 else
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2102 int main() {
2104 /* Ultrix mips cc rejects this. */
2105 typedef int charset[2]; const charset x;
2106 /* SunOS 4.1.1 cc rejects this. */
2107 char const *const *ccp;
2108 char **p;
2109 /* NEC SVR4.0.2 mips cc rejects this. */
2110 struct point {int x, y;};
2111 static struct point const zero = {0,0};
2112 /* AIX XL C 1.02.0.0 rejects this.
2113 It does not let you subtract one const X* pointer from another in an arm
2114 of an if-expression whose if-part is not a constant expression */
2115 const char *g = "string";
2116 ccp = &g + (g ? g-g : 0);
2117 /* HPUX 7.0 cc rejects these. */
2118 ++ccp;
2119 p = (char**) ccp;
2120 ccp = (char const *const *) p;
2121 { /* SCO 3.2v4 cc rejects this. */
2122 char *t;
2123 char const *s = 0 ? (char *) 0 : (char const *) 0;
2125 *t++ = 0;
2127 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2128 int x[] = {25, 17};
2129 const int *foo = &x[0];
2130 ++foo;
2132 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2133 typedef const int *iptr;
2134 iptr p = 0;
2135 ++p;
2137 { /* AIX XL C 1.02.0.0 rejects this saying
2138 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2139 struct s { int j; const int *ap[3]; };
2140 struct s *b; b->j = 5;
2142 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2143 const int foo = 10;
2146 ; return 0; }
2148 if { (eval echo configure:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2149 rm -rf conftest*
2150 ac_cv_c_const=yes
2151 else
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 rm -rf conftest*
2155 ac_cv_c_const=no
2157 rm -f conftest*
2160 echo "$ac_t""$ac_cv_c_const" 1>&6
2161 if test $ac_cv_c_const = no; then
2162 cat >> confdefs.h <<\EOF
2163 #define const
2168 echo $ac_n "checking for inline""... $ac_c" 1>&6
2169 echo "configure:2170: checking for inline" >&5
2170 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2172 else
2173 ac_cv_c_inline=no
2174 for ac_kw in inline __inline__ __inline; do
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2179 int main() {
2180 } $ac_kw foo() {
2181 ; return 0; }
2183 if { (eval echo configure:2184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2184 rm -rf conftest*
2185 ac_cv_c_inline=$ac_kw; break
2186 else
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2190 rm -f conftest*
2191 done
2195 echo "$ac_t""$ac_cv_c_inline" 1>&6
2196 case "$ac_cv_c_inline" in
2197 inline | yes) ;;
2198 no) cat >> confdefs.h <<\EOF
2199 #define inline
2202 *) cat >> confdefs.h <<EOF
2203 #define inline $ac_cv_c_inline
2206 esac
2208 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2209 echo "configure:2210: checking whether byte ordering is bigendian" >&5
2210 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213 ac_cv_c_bigendian=unknown
2214 # See if sys/param.h defines the BYTE_ORDER macro.
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 #include <sys/types.h>
2219 #include <sys/param.h>
2220 int main() {
2222 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2223 bogus endian macros
2224 #endif
2225 ; return 0; }
2227 if { (eval echo configure:2228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2228 rm -rf conftest*
2229 # It does; now see whether it defined to BIG_ENDIAN or not.
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <sys/types.h>
2234 #include <sys/param.h>
2235 int main() {
2237 #if BYTE_ORDER != BIG_ENDIAN
2238 not big endian
2239 #endif
2240 ; return 0; }
2242 if { (eval echo configure:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2243 rm -rf conftest*
2244 ac_cv_c_bigendian=yes
2245 else
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2248 rm -rf conftest*
2249 ac_cv_c_bigendian=no
2251 rm -f conftest*
2252 else
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 rm -f conftest*
2257 if test $ac_cv_c_bigendian = unknown; then
2258 if test "$cross_compiling" = yes; then
2259 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2260 else
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 main () {
2265 /* Are we little or big endian? From Harbison&Steele. */
2266 union
2268 long l;
2269 char c[sizeof (long)];
2270 } u;
2271 u.l = 1;
2272 exit (u.c[sizeof (long) - 1] == 1);
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2276 then
2277 ac_cv_c_bigendian=no
2278 else
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2281 rm -fr conftest*
2282 ac_cv_c_bigendian=yes
2284 rm -fr conftest*
2290 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2291 if test $ac_cv_c_bigendian = yes; then
2292 cat >> confdefs.h <<\EOF
2293 #define WORDS_BIGENDIAN 1
2298 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether char is unsigned" >&5
2300 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2302 else
2303 if test "$GCC" = yes; then
2304 # GCC predefines this symbol on systems where it applies.
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #ifdef __CHAR_UNSIGNED__
2310 #endif
2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2314 egrep "yes" >/dev/null 2>&1; then
2315 rm -rf conftest*
2316 ac_cv_c_char_unsigned=yes
2317 else
2318 rm -rf conftest*
2319 ac_cv_c_char_unsigned=no
2321 rm -f conftest*
2323 else
2324 if test "$cross_compiling" = yes; then
2325 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2326 else
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2331 #if !defined(__STDC__) || __STDC__ != 1
2332 #define volatile
2333 #endif
2334 main() {
2335 volatile char c = 255; exit(c < 0);
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2339 then
2340 ac_cv_c_char_unsigned=yes
2341 else
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 rm -fr conftest*
2345 ac_cv_c_char_unsigned=no
2347 rm -fr conftest*
2353 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2354 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2355 cat >> confdefs.h <<\EOF
2356 #define __CHAR_UNSIGNED__ 1
2362 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2363 echo "configure:2364: checking return type of signal handlers" >&5
2364 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2366 else
2367 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2370 #include <sys/types.h>
2371 #include <signal.h>
2372 #ifdef signal
2373 #undef signal
2374 #endif
2375 #ifdef __cplusplus
2376 extern "C" void (*signal (int, void (*)(int)))(int);
2377 #else
2378 void (*signal ()) ();
2379 #endif
2381 int main() {
2382 int i;
2383 ; return 0; }
2385 if { (eval echo configure:2386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2386 rm -rf conftest*
2387 ac_cv_type_signal=void
2388 else
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2391 rm -rf conftest*
2392 ac_cv_type_signal=int
2394 rm -f conftest*
2397 echo "$ac_t""$ac_cv_type_signal" 1>&6
2398 cat >> confdefs.h <<EOF
2399 #define RETSIGTYPE $ac_cv_type_signal
2403 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2404 echo "configure:2405: checking for uid_t in sys/types.h" >&5
2405 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2407 else
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 #include <sys/types.h>
2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2414 egrep "uid_t" >/dev/null 2>&1; then
2415 rm -rf conftest*
2416 ac_cv_type_uid_t=yes
2417 else
2418 rm -rf conftest*
2419 ac_cv_type_uid_t=no
2421 rm -f conftest*
2425 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2426 if test $ac_cv_type_uid_t = no; then
2427 cat >> confdefs.h <<\EOF
2428 #define uid_t int
2431 cat >> confdefs.h <<\EOF
2432 #define gid_t int
2437 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2438 echo "configure:2439: checking for mode_t" >&5
2439 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441 else
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 #include <sys/types.h>
2446 #if STDC_HEADERS
2447 #include <stdlib.h>
2448 #include <stddef.h>
2449 #endif
2451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2452 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2453 rm -rf conftest*
2454 ac_cv_type_mode_t=yes
2455 else
2456 rm -rf conftest*
2457 ac_cv_type_mode_t=no
2459 rm -f conftest*
2462 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2463 if test $ac_cv_type_mode_t = no; then
2464 cat >> confdefs.h <<\EOF
2465 #define mode_t int
2470 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2471 echo "configure:2472: checking for off_t" >&5
2472 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2474 else
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 #include <sys/types.h>
2479 #if STDC_HEADERS
2480 #include <stdlib.h>
2481 #include <stddef.h>
2482 #endif
2484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2485 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2486 rm -rf conftest*
2487 ac_cv_type_off_t=yes
2488 else
2489 rm -rf conftest*
2490 ac_cv_type_off_t=no
2492 rm -f conftest*
2495 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2496 if test $ac_cv_type_off_t = no; then
2497 cat >> confdefs.h <<\EOF
2498 #define off_t long
2503 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2504 echo "configure:2505: checking for size_t" >&5
2505 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <sys/types.h>
2512 #if STDC_HEADERS
2513 #include <stdlib.h>
2514 #include <stddef.h>
2515 #endif
2517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2518 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2519 rm -rf conftest*
2520 ac_cv_type_size_t=yes
2521 else
2522 rm -rf conftest*
2523 ac_cv_type_size_t=no
2525 rm -f conftest*
2528 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2529 if test $ac_cv_type_size_t = no; then
2530 cat >> confdefs.h <<\EOF
2531 #define size_t unsigned
2536 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2537 echo "configure:2538: checking for pid_t" >&5
2538 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2540 else
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 #include <sys/types.h>
2545 #if STDC_HEADERS
2546 #include <stdlib.h>
2547 #include <stddef.h>
2548 #endif
2550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2551 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2552 rm -rf conftest*
2553 ac_cv_type_pid_t=yes
2554 else
2555 rm -rf conftest*
2556 ac_cv_type_pid_t=no
2558 rm -f conftest*
2561 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2562 if test $ac_cv_type_pid_t = no; then
2563 cat >> confdefs.h <<\EOF
2564 #define pid_t int
2569 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2570 echo "configure:2571: checking for st_rdev in struct stat" >&5
2571 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2573 else
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <sys/types.h>
2578 #include <sys/stat.h>
2579 int main() {
2580 struct stat s; s.st_rdev;
2581 ; return 0; }
2583 if { (eval echo configure:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2584 rm -rf conftest*
2585 ac_cv_struct_st_rdev=yes
2586 else
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2589 rm -rf conftest*
2590 ac_cv_struct_st_rdev=no
2592 rm -f conftest*
2595 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2596 if test $ac_cv_struct_st_rdev = yes; then
2597 cat >> confdefs.h <<\EOF
2598 #define HAVE_ST_RDEV 1
2603 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2604 echo "configure:2605: checking for d_off in dirent" >&5
2605 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2607 else
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2612 #include <unistd.h>
2613 #include <sys/types.h>
2614 #include <dirent.h>
2615 int main() {
2616 struct dirent d; d.d_off;
2617 ; return 0; }
2619 if { (eval echo configure:2620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2620 rm -rf conftest*
2621 ac_cv_dirent_d_off=yes
2622 else
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 rm -rf conftest*
2626 ac_cv_dirent_d_off=no
2628 rm -f conftest*
2631 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2632 if test $ac_cv_dirent_d_off = yes; then
2633 cat >> confdefs.h <<\EOF
2634 #define HAVE_DIRENT_D_OFF 1
2639 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2640 echo "configure:2641: checking for ino_t" >&5
2641 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647 #include <sys/types.h>
2648 #if STDC_HEADERS
2649 #include <stdlib.h>
2650 #include <stddef.h>
2651 #endif
2653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2654 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2655 rm -rf conftest*
2656 ac_cv_type_ino_t=yes
2657 else
2658 rm -rf conftest*
2659 ac_cv_type_ino_t=no
2661 rm -f conftest*
2664 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2665 if test $ac_cv_type_ino_t = no; then
2666 cat >> confdefs.h <<\EOF
2667 #define ino_t unsigned
2672 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2673 echo "configure:2674: checking for loff_t" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2681 #if STDC_HEADERS
2682 #include <stdlib.h>
2683 #include <stddef.h>
2684 #endif
2686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2687 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2688 rm -rf conftest*
2689 ac_cv_type_loff_t=yes
2690 else
2691 rm -rf conftest*
2692 ac_cv_type_loff_t=no
2694 rm -f conftest*
2697 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2698 if test $ac_cv_type_loff_t = no; then
2699 cat >> confdefs.h <<\EOF
2700 #define loff_t off_t
2705 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2706 echo "configure:2707: checking for offset_t" >&5
2707 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 #include <sys/types.h>
2714 #if STDC_HEADERS
2715 #include <stdlib.h>
2716 #include <stddef.h>
2717 #endif
2719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2720 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2721 rm -rf conftest*
2722 ac_cv_type_offset_t=yes
2723 else
2724 rm -rf conftest*
2725 ac_cv_type_offset_t=no
2727 rm -f conftest*
2730 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2731 if test $ac_cv_type_offset_t = no; then
2732 cat >> confdefs.h <<\EOF
2733 #define offset_t loff_t
2738 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2739 echo "configure:2740: checking for ssize_t" >&5
2740 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 #include <sys/types.h>
2747 #if STDC_HEADERS
2748 #include <stdlib.h>
2749 #include <stddef.h>
2750 #endif
2752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2754 rm -rf conftest*
2755 ac_cv_type_ssize_t=yes
2756 else
2757 rm -rf conftest*
2758 ac_cv_type_ssize_t=no
2760 rm -f conftest*
2763 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2764 if test $ac_cv_type_ssize_t = no; then
2765 cat >> confdefs.h <<\EOF
2766 #define ssize_t int
2772 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2773 echo "configure:2774: checking for errno in errno.h" >&5
2774 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2776 else
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <errno.h>
2782 int main() {
2783 int i = errno
2784 ; return 0; }
2786 if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2787 rm -rf conftest*
2788 samba_cv_errno=yes
2789 else
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -rf conftest*
2793 samba_cv_have_errno_decl=no
2795 rm -f conftest*
2798 echo "$ac_t""$samba_cv_errno" 1>&6
2799 if test x"$samba_cv_errno" = x"yes"; then
2800 cat >> confdefs.h <<\EOF
2801 #define HAVE_ERRNO_DECL 1
2806 # stupid glibc has the functions but no declaration. grrrr.
2807 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2808 echo "configure:2809: checking for setresuid declaration" >&5
2809 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2811 else
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 #include <unistd.h>
2817 int main() {
2818 int i = (int)setresuid
2819 ; return 0; }
2821 if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2822 rm -rf conftest*
2823 samba_cv_have_setresuid_decl=yes
2824 else
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2827 rm -rf conftest*
2828 samba_cv_have_setresuid_decl=no
2830 rm -f conftest*
2833 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2834 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2835 cat >> confdefs.h <<\EOF
2836 #define HAVE_SETRESUID_DECL 1
2841 # stupid glibc has the functions but no declaration. grrrr.
2842 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2843 echo "configure:2844: checking for crypt declaration" >&5
2844 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2846 else
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #include <unistd.h>
2852 int main() {
2853 int i = (int)crypt
2854 ; return 0; }
2856 if { (eval echo configure:2857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2857 rm -rf conftest*
2858 samba_cv_have_crypt_decl=yes
2859 else
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2862 rm -rf conftest*
2863 samba_cv_have_crypt_decl=no
2865 rm -f conftest*
2868 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2869 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2870 cat >> confdefs.h <<\EOF
2871 #define HAVE_CRYPT_DECL 1
2876 # and glibc has setresuid under linux but the function does
2877 # nothing until kernel 2.1.44! very dumb.
2878 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2879 echo "configure:2880: checking for real setresuid" >&5
2880 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2882 else
2884 if test "$cross_compiling" = yes; then
2885 samba_cv_have_setresuid=cross
2886 else
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #include <errno.h>
2891 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2894 then
2895 samba_cv_have_setresuid=yes
2896 else
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2899 rm -fr conftest*
2900 samba_cv_have_setresuid=no
2902 rm -fr conftest*
2907 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2908 if test x"$samba_cv_have_setresuid" = x"yes"; then
2909 cat >> confdefs.h <<\EOF
2910 #define HAVE_SETRESUID 1
2915 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2916 echo "configure:2917: checking for 8-bit clean memcmp" >&5
2917 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2919 else
2920 if test "$cross_compiling" = yes; then
2921 ac_cv_func_memcmp_clean=no
2922 else
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2927 main()
2929 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2930 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2935 then
2936 ac_cv_func_memcmp_clean=yes
2937 else
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 rm -fr conftest*
2941 ac_cv_func_memcmp_clean=no
2943 rm -fr conftest*
2948 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2949 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2952 ###############################################
2953 # test for where we get crypt() from
2954 for ac_func in crypt
2956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_func" >&5
2958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2960 else
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 /* System header to define __stub macros and hopefully few prototypes,
2965 which can conflict with char $ac_func(); below. */
2966 #include <assert.h>
2967 /* Override any gcc2 internal prototype to avoid an error. */
2968 /* We use char because int might match the return type of a gcc2
2969 builtin and then its argument prototype would still apply. */
2970 char $ac_func();
2972 int main() {
2974 /* The GNU C library defines this for functions which it implements
2975 to always fail with ENOSYS. Some functions are actually named
2976 something starting with __ and the normal name is an alias. */
2977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2978 choke me
2979 #else
2980 $ac_func();
2981 #endif
2983 ; return 0; }
2985 if { (eval echo configure:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2986 rm -rf conftest*
2987 eval "ac_cv_func_$ac_func=yes"
2988 else
2989 echo "configure: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2991 rm -rf conftest*
2992 eval "ac_cv_func_$ac_func=no"
2994 rm -f conftest*
2997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2998 echo "$ac_t""yes" 1>&6
2999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3000 cat >> confdefs.h <<EOF
3001 #define $ac_tr_func 1
3004 else
3005 echo "$ac_t""no" 1>&6
3007 done
3009 if test x"$ac_cv_func_crypt" = x"no"; then
3010 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3011 echo "configure:3012: checking for crypt in -lcrypt" >&5
3012 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3015 else
3016 ac_save_LIBS="$LIBS"
3017 LIBS="-lcrypt $LIBS"
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3024 char crypt();
3026 int main() {
3027 crypt()
3028 ; return 0; }
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3031 rm -rf conftest*
3032 eval "ac_cv_lib_$ac_lib_var=yes"
3033 else
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3036 rm -rf conftest*
3037 eval "ac_cv_lib_$ac_lib_var=no"
3039 rm -f conftest*
3040 LIBS="$ac_save_LIBS"
3043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 LIBS="$LIBS -lcrypt";
3046 cat >> confdefs.h <<\EOF
3047 #define HAVE_CRYPT 1
3050 else
3051 echo "$ac_t""no" 1>&6
3057 ###############################################
3058 # test for where we get pam_authenticate() from
3059 # might need libdl for this to work
3060 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3061 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3062 echo "configure:3063: checking for main in -ldl" >&5
3063 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066 else
3067 ac_save_LIBS="$LIBS"
3068 LIBS="-ldl $LIBS"
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3073 int main() {
3074 main()
3075 ; return 0; }
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3078 rm -rf conftest*
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3080 else
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3083 rm -rf conftest*
3084 eval "ac_cv_lib_$ac_lib_var=no"
3086 rm -f conftest*
3087 LIBS="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3094 cat >> confdefs.h <<EOF
3095 #define $ac_tr_lib 1
3098 LIBS="-ldl $LIBS"
3100 else
3101 echo "$ac_t""no" 1>&6
3105 for ac_func in pam_authenticate
3107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3108 echo "configure:3109: checking for $ac_func" >&5
3109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3111 else
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 /* System header to define __stub macros and hopefully few prototypes,
3116 which can conflict with char $ac_func(); below. */
3117 #include <assert.h>
3118 /* Override any gcc2 internal prototype to avoid an error. */
3119 /* We use char because int might match the return type of a gcc2
3120 builtin and then its argument prototype would still apply. */
3121 char $ac_func();
3123 int main() {
3125 /* The GNU C library defines this for functions which it implements
3126 to always fail with ENOSYS. Some functions are actually named
3127 something starting with __ and the normal name is an alias. */
3128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3129 choke me
3130 #else
3131 $ac_func();
3132 #endif
3134 ; return 0; }
3136 if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3137 rm -rf conftest*
3138 eval "ac_cv_func_$ac_func=yes"
3139 else
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3142 rm -rf conftest*
3143 eval "ac_cv_func_$ac_func=no"
3145 rm -f conftest*
3148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3151 cat >> confdefs.h <<EOF
3152 #define $ac_tr_func 1
3155 else
3156 echo "$ac_t""no" 1>&6
3158 done
3160 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3161 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3162 echo "configure:3163: checking for pam_authenticate in -lpam" >&5
3163 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3166 else
3167 ac_save_LIBS="$LIBS"
3168 LIBS="-lpam $LIBS"
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* Override any gcc2 internal prototype to avoid an error. */
3173 /* We use char because int might match the return type of a gcc2
3174 builtin and then its argument prototype would still apply. */
3175 char pam_authenticate();
3177 int main() {
3178 pam_authenticate()
3179 ; return 0; }
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3182 rm -rf conftest*
3183 eval "ac_cv_lib_$ac_lib_var=yes"
3184 else
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3187 rm -rf conftest*
3188 eval "ac_cv_lib_$ac_lib_var=no"
3190 rm -f conftest*
3191 LIBS="$ac_save_LIBS"
3194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3196 LIBS="$LIBS -lpam"
3197 cat >> confdefs.h <<\EOF
3198 #define HAVE_PAM_AUTHENTICATE 1
3201 else
3202 echo "$ac_t""no" 1>&6
3208 ###############################################
3209 # test for where we get readline() from
3210 if test "$ac_cv_header_readline_h" = "yes" ||
3211 test "$ac_cv_header_readline_readline_h" = "yes"; then
3212 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3213 echo "configure:3214: checking for readline in -lreadline" >&5
3214 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3217 else
3218 ac_save_LIBS="$LIBS"
3219 LIBS="-lreadline $LIBS"
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226 char readline();
3228 int main() {
3229 readline()
3230 ; return 0; }
3232 if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3233 rm -rf conftest*
3234 eval "ac_cv_lib_$ac_lib_var=yes"
3235 else
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3238 rm -rf conftest*
3239 eval "ac_cv_lib_$ac_lib_var=no"
3241 rm -f conftest*
3242 LIBS="$ac_save_LIBS"
3245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3246 echo "$ac_t""yes" 1>&6
3247 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3249 cat >> confdefs.h <<EOF
3250 #define $ac_tr_lib 1
3253 LIBS="-lreadline $LIBS"
3255 else
3256 echo "$ac_t""no" 1>&6
3262 # The following test taken from the cvs sources
3263 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3264 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3265 # libsocket.so which has a bad implementation of gethostbyname (it
3266 # only looks in /etc/hosts), so we only look for -lsocket if we need
3267 # it.
3268 for ac_func in connect
3270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_func" >&5
3272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3274 else
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 /* System header to define __stub macros and hopefully few prototypes,
3279 which can conflict with char $ac_func(); below. */
3280 #include <assert.h>
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3284 char $ac_func();
3286 int main() {
3288 /* The GNU C library defines this for functions which it implements
3289 to always fail with ENOSYS. Some functions are actually named
3290 something starting with __ and the normal name is an alias. */
3291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3292 choke me
3293 #else
3294 $ac_func();
3295 #endif
3297 ; return 0; }
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3300 rm -rf conftest*
3301 eval "ac_cv_func_$ac_func=yes"
3302 else
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3305 rm -rf conftest*
3306 eval "ac_cv_func_$ac_func=no"
3308 rm -f conftest*
3311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3314 cat >> confdefs.h <<EOF
3315 #define $ac_tr_func 1
3318 else
3319 echo "$ac_t""no" 1>&6
3321 done
3323 if test x"$ac_cv_func_connect" = x"no"; then
3324 case "$LIBS" in
3325 *-lnsl*) ;;
3326 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3327 echo "configure:3328: checking for printf in -lnsl_s" >&5
3328 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3331 else
3332 ac_save_LIBS="$LIBS"
3333 LIBS="-lnsl_s $LIBS"
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3340 char printf();
3342 int main() {
3343 printf()
3344 ; return 0; }
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3347 rm -rf conftest*
3348 eval "ac_cv_lib_$ac_lib_var=yes"
3349 else
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 rm -rf conftest*
3353 eval "ac_cv_lib_$ac_lib_var=no"
3355 rm -f conftest*
3356 LIBS="$ac_save_LIBS"
3359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3363 cat >> confdefs.h <<EOF
3364 #define $ac_tr_lib 1
3367 LIBS="-lnsl_s $LIBS"
3369 else
3370 echo "$ac_t""no" 1>&6
3373 esac
3374 case "$LIBS" in
3375 *-lnsl*) ;;
3376 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3377 echo "configure:3378: checking for printf in -lnsl" >&5
3378 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3381 else
3382 ac_save_LIBS="$LIBS"
3383 LIBS="-lnsl $LIBS"
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 /* Override any gcc2 internal prototype to avoid an error. */
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3390 char printf();
3392 int main() {
3393 printf()
3394 ; return 0; }
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3397 rm -rf conftest*
3398 eval "ac_cv_lib_$ac_lib_var=yes"
3399 else
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 rm -rf conftest*
3403 eval "ac_cv_lib_$ac_lib_var=no"
3405 rm -f conftest*
3406 LIBS="$ac_save_LIBS"
3409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3413 cat >> confdefs.h <<EOF
3414 #define $ac_tr_lib 1
3417 LIBS="-lnsl $LIBS"
3419 else
3420 echo "$ac_t""no" 1>&6
3423 esac
3424 case "$LIBS" in
3425 *-lsocket*) ;;
3426 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3427 echo "configure:3428: checking for connect in -lsocket" >&5
3428 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3431 else
3432 ac_save_LIBS="$LIBS"
3433 LIBS="-lsocket $LIBS"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3440 char connect();
3442 int main() {
3443 connect()
3444 ; return 0; }
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3447 rm -rf conftest*
3448 eval "ac_cv_lib_$ac_lib_var=yes"
3449 else
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3452 rm -rf conftest*
3453 eval "ac_cv_lib_$ac_lib_var=no"
3455 rm -f conftest*
3456 LIBS="$ac_save_LIBS"
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3463 cat >> confdefs.h <<EOF
3464 #define $ac_tr_lib 1
3467 LIBS="-lsocket $LIBS"
3469 else
3470 echo "$ac_t""no" 1>&6
3473 esac
3474 case "$LIBS" in
3475 *-linet*) ;;
3476 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3477 echo "configure:3478: checking for connect in -linet" >&5
3478 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3481 else
3482 ac_save_LIBS="$LIBS"
3483 LIBS="-linet $LIBS"
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 /* Override any gcc2 internal prototype to avoid an error. */
3488 /* We use char because int might match the return type of a gcc2
3489 builtin and then its argument prototype would still apply. */
3490 char connect();
3492 int main() {
3493 connect()
3494 ; return 0; }
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3497 rm -rf conftest*
3498 eval "ac_cv_lib_$ac_lib_var=yes"
3499 else
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3502 rm -rf conftest*
3503 eval "ac_cv_lib_$ac_lib_var=no"
3505 rm -f conftest*
3506 LIBS="$ac_save_LIBS"
3509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3511 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3512 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3513 cat >> confdefs.h <<EOF
3514 #define $ac_tr_lib 1
3517 LIBS="-linet $LIBS"
3519 else
3520 echo "$ac_t""no" 1>&6
3523 esac
3524 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3525 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3526 # ac_cv_func_connect=yes
3527 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3528 cat >> confdefs.h <<\EOF
3529 #define HAVE_CONNECT 1
3536 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3539 echo "configure:3540: checking for $ac_func" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3542 else
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char $ac_func(); below. */
3548 #include <assert.h>
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3552 char $ac_func();
3554 int main() {
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3560 choke me
3561 #else
3562 $ac_func();
3563 #endif
3565 ; return 0; }
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3568 rm -rf conftest*
3569 eval "ac_cv_func_$ac_func=yes"
3570 else
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 rm -rf conftest*
3574 eval "ac_cv_func_$ac_func=no"
3576 rm -f conftest*
3579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3582 cat >> confdefs.h <<EOF
3583 #define $ac_tr_func 1
3586 else
3587 echo "$ac_t""no" 1>&6
3589 done
3591 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_func" >&5
3595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
3602 which can conflict with char $ac_func(); below. */
3603 #include <assert.h>
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3607 char $ac_func();
3609 int main() {
3611 /* The GNU C library defines this for functions which it implements
3612 to always fail with ENOSYS. Some functions are actually named
3613 something starting with __ and the normal name is an alias. */
3614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3615 choke me
3616 #else
3617 $ac_func();
3618 #endif
3620 ; return 0; }
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3623 rm -rf conftest*
3624 eval "ac_cv_func_$ac_func=yes"
3625 else
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3628 rm -rf conftest*
3629 eval "ac_cv_func_$ac_func=no"
3631 rm -f conftest*
3634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3637 cat >> confdefs.h <<EOF
3638 #define $ac_tr_func 1
3641 else
3642 echo "$ac_t""no" 1>&6
3644 done
3646 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3649 echo "configure:3650: checking for $ac_func" >&5
3650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3652 else
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* System header to define __stub macros and hopefully few prototypes,
3657 which can conflict with char $ac_func(); below. */
3658 #include <assert.h>
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3662 char $ac_func();
3664 int main() {
3666 /* The GNU C library defines this for functions which it implements
3667 to always fail with ENOSYS. Some functions are actually named
3668 something starting with __ and the normal name is an alias. */
3669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3670 choke me
3671 #else
3672 $ac_func();
3673 #endif
3675 ; return 0; }
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3678 rm -rf conftest*
3679 eval "ac_cv_func_$ac_func=yes"
3680 else
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3683 rm -rf conftest*
3684 eval "ac_cv_func_$ac_func=no"
3686 rm -f conftest*
3689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3690 echo "$ac_t""yes" 1>&6
3691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3692 cat >> confdefs.h <<EOF
3693 #define $ac_tr_func 1
3696 else
3697 echo "$ac_t""no" 1>&6
3699 done
3701 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
3703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3704 echo "configure:3705: checking for $ac_func" >&5
3705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3707 else
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 /* System header to define __stub macros and hopefully few prototypes,
3712 which can conflict with char $ac_func(); below. */
3713 #include <assert.h>
3714 /* Override any gcc2 internal prototype to avoid an error. */
3715 /* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3717 char $ac_func();
3719 int main() {
3721 /* The GNU C library defines this for functions which it implements
3722 to always fail with ENOSYS. Some functions are actually named
3723 something starting with __ and the normal name is an alias. */
3724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3725 choke me
3726 #else
3727 $ac_func();
3728 #endif
3730 ; return 0; }
3732 if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3733 rm -rf conftest*
3734 eval "ac_cv_func_$ac_func=yes"
3735 else
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -rf conftest*
3739 eval "ac_cv_func_$ac_func=no"
3741 rm -f conftest*
3744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3747 cat >> confdefs.h <<EOF
3748 #define $ac_tr_func 1
3751 else
3752 echo "$ac_t""no" 1>&6
3754 done
3756 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_func" >&5
3760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762 else
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 /* System header to define __stub macros and hopefully few prototypes,
3767 which can conflict with char $ac_func(); below. */
3768 #include <assert.h>
3769 /* Override any gcc2 internal prototype to avoid an error. */
3770 /* We use char because int might match the return type of a gcc2
3771 builtin and then its argument prototype would still apply. */
3772 char $ac_func();
3774 int main() {
3776 /* The GNU C library defines this for functions which it implements
3777 to always fail with ENOSYS. Some functions are actually named
3778 something starting with __ and the normal name is an alias. */
3779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3780 choke me
3781 #else
3782 $ac_func();
3783 #endif
3785 ; return 0; }
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3788 rm -rf conftest*
3789 eval "ac_cv_func_$ac_func=yes"
3790 else
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 rm -rf conftest*
3794 eval "ac_cv_func_$ac_func=no"
3796 rm -f conftest*
3799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3802 cat >> confdefs.h <<EOF
3803 #define $ac_tr_func 1
3806 else
3807 echo "$ac_t""no" 1>&6
3809 done
3811 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
3813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3814 echo "configure:3815: checking for $ac_func" >&5
3815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3817 else
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 /* System header to define __stub macros and hopefully few prototypes,
3822 which can conflict with char $ac_func(); below. */
3823 #include <assert.h>
3824 /* Override any gcc2 internal prototype to avoid an error. */
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3827 char $ac_func();
3829 int main() {
3831 /* The GNU C library defines this for functions which it implements
3832 to always fail with ENOSYS. Some functions are actually named
3833 something starting with __ and the normal name is an alias. */
3834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3835 choke me
3836 #else
3837 $ac_func();
3838 #endif
3840 ; return 0; }
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3843 rm -rf conftest*
3844 eval "ac_cv_func_$ac_func=yes"
3845 else
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3848 rm -rf conftest*
3849 eval "ac_cv_func_$ac_func=no"
3851 rm -f conftest*
3854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3857 cat >> confdefs.h <<EOF
3858 #define $ac_tr_func 1
3861 else
3862 echo "$ac_t""no" 1>&6
3864 done
3866 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3869 echo "configure:3870: checking for $ac_func" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3872 else
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char $ac_func(); below. */
3878 #include <assert.h>
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3882 char $ac_func();
3884 int main() {
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3890 choke me
3891 #else
3892 $ac_func();
3893 #endif
3895 ; return 0; }
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3898 rm -rf conftest*
3899 eval "ac_cv_func_$ac_func=yes"
3900 else
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3903 rm -rf conftest*
3904 eval "ac_cv_func_$ac_func=no"
3906 rm -f conftest*
3909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3912 cat >> confdefs.h <<EOF
3913 #define $ac_tr_func 1
3916 else
3917 echo "$ac_t""no" 1>&6
3919 done
3921 for ac_func in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_func" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927 else
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char $ac_func(); below. */
3933 #include <assert.h>
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3937 char $ac_func();
3939 int main() {
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3945 choke me
3946 #else
3947 $ac_func();
3948 #endif
3950 ; return 0; }
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3953 rm -rf conftest*
3954 eval "ac_cv_func_$ac_func=yes"
3955 else
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3958 rm -rf conftest*
3959 eval "ac_cv_func_$ac_func=no"
3961 rm -f conftest*
3964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3967 cat >> confdefs.h <<EOF
3968 #define $ac_tr_func 1
3971 else
3972 echo "$ac_t""no" 1>&6
3974 done
3976 for ac_func in srandom random srand rand setenv mmap64
3978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_func" >&5
3980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3982 else
3983 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 /* System header to define __stub macros and hopefully few prototypes,
3987 which can conflict with char $ac_func(); below. */
3988 #include <assert.h>
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3992 char $ac_func();
3994 int main() {
3996 /* The GNU C library defines this for functions which it implements
3997 to always fail with ENOSYS. Some functions are actually named
3998 something starting with __ and the normal name is an alias. */
3999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4000 choke me
4001 #else
4002 $ac_func();
4003 #endif
4005 ; return 0; }
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4008 rm -rf conftest*
4009 eval "ac_cv_func_$ac_func=yes"
4010 else
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4013 rm -rf conftest*
4014 eval "ac_cv_func_$ac_func=no"
4016 rm -f conftest*
4019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4020 echo "$ac_t""yes" 1>&6
4021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4022 cat >> confdefs.h <<EOF
4023 #define $ac_tr_func 1
4026 else
4027 echo "$ac_t""no" 1>&6
4029 done
4031 # syscall() is needed for smbwrapper.
4032 for ac_func in syscall
4034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4035 echo "configure:4036: checking for $ac_func" >&5
4036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4038 else
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 /* System header to define __stub macros and hopefully few prototypes,
4043 which can conflict with char $ac_func(); below. */
4044 #include <assert.h>
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4048 char $ac_func();
4050 int main() {
4052 /* The GNU C library defines this for functions which it implements
4053 to always fail with ENOSYS. Some functions are actually named
4054 something starting with __ and the normal name is an alias. */
4055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4056 choke me
4057 #else
4058 $ac_func();
4059 #endif
4061 ; return 0; }
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4064 rm -rf conftest*
4065 eval "ac_cv_func_$ac_func=yes"
4066 else
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4069 rm -rf conftest*
4070 eval "ac_cv_func_$ac_func=no"
4072 rm -f conftest*
4075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4076 echo "$ac_t""yes" 1>&6
4077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4078 cat >> confdefs.h <<EOF
4079 #define $ac_tr_func 1
4082 else
4083 echo "$ac_t""no" 1>&6
4085 done
4088 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4091 echo "configure:4092: checking for $ac_func" >&5
4092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4094 else
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 /* System header to define __stub macros and hopefully few prototypes,
4099 which can conflict with char $ac_func(); below. */
4100 #include <assert.h>
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4104 char $ac_func();
4106 int main() {
4108 /* The GNU C library defines this for functions which it implements
4109 to always fail with ENOSYS. Some functions are actually named
4110 something starting with __ and the normal name is an alias. */
4111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4112 choke me
4113 #else
4114 $ac_func();
4115 #endif
4117 ; return 0; }
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4120 rm -rf conftest*
4121 eval "ac_cv_func_$ac_func=yes"
4122 else
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4125 rm -rf conftest*
4126 eval "ac_cv_func_$ac_func=no"
4128 rm -f conftest*
4131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4134 cat >> confdefs.h <<EOF
4135 #define $ac_tr_func 1
4138 else
4139 echo "$ac_t""no" 1>&6
4141 done
4143 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4146 echo "configure:4147: checking for $ac_func" >&5
4147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4149 else
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 /* System header to define __stub macros and hopefully few prototypes,
4154 which can conflict with char $ac_func(); below. */
4155 #include <assert.h>
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4159 char $ac_func();
4161 int main() {
4163 /* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4167 choke me
4168 #else
4169 $ac_func();
4170 #endif
4172 ; return 0; }
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4175 rm -rf conftest*
4176 eval "ac_cv_func_$ac_func=yes"
4177 else
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 rm -rf conftest*
4181 eval "ac_cv_func_$ac_func=no"
4183 rm -f conftest*
4186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4189 cat >> confdefs.h <<EOF
4190 #define $ac_tr_func 1
4193 else
4194 echo "$ac_t""no" 1>&6
4196 done
4198 for ac_func in __getcwd _getcwd
4200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4201 echo "configure:4202: checking for $ac_func" >&5
4202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4204 else
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 /* System header to define __stub macros and hopefully few prototypes,
4209 which can conflict with char $ac_func(); below. */
4210 #include <assert.h>
4211 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4214 char $ac_func();
4216 int main() {
4218 /* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4222 choke me
4223 #else
4224 $ac_func();
4225 #endif
4227 ; return 0; }
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4230 rm -rf conftest*
4231 eval "ac_cv_func_$ac_func=yes"
4232 else
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 rm -rf conftest*
4236 eval "ac_cv_func_$ac_func=no"
4238 rm -f conftest*
4241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4244 cat >> confdefs.h <<EOF
4245 #define $ac_tr_func 1
4248 else
4249 echo "$ac_t""no" 1>&6
4251 done
4253 for ac_func in __xstat __fxstat __lxstat
4255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_func" >&5
4257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4259 else
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 /* System header to define __stub macros and hopefully few prototypes,
4264 which can conflict with char $ac_func(); below. */
4265 #include <assert.h>
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4269 char $ac_func();
4271 int main() {
4273 /* The GNU C library defines this for functions which it implements
4274 to always fail with ENOSYS. Some functions are actually named
4275 something starting with __ and the normal name is an alias. */
4276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4277 choke me
4278 #else
4279 $ac_func();
4280 #endif
4282 ; return 0; }
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4285 rm -rf conftest*
4286 eval "ac_cv_func_$ac_func=yes"
4287 else
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4290 rm -rf conftest*
4291 eval "ac_cv_func_$ac_func=no"
4293 rm -f conftest*
4296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4299 cat >> confdefs.h <<EOF
4300 #define $ac_tr_func 1
4303 else
4304 echo "$ac_t""no" 1>&6
4306 done
4308 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4311 echo "configure:4312: checking for $ac_func" >&5
4312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4314 else
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 /* System header to define __stub macros and hopefully few prototypes,
4319 which can conflict with char $ac_func(); below. */
4320 #include <assert.h>
4321 /* Override any gcc2 internal prototype to avoid an error. */
4322 /* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4324 char $ac_func();
4326 int main() {
4328 /* The GNU C library defines this for functions which it implements
4329 to always fail with ENOSYS. Some functions are actually named
4330 something starting with __ and the normal name is an alias. */
4331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4332 choke me
4333 #else
4334 $ac_func();
4335 #endif
4337 ; return 0; }
4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4340 rm -rf conftest*
4341 eval "ac_cv_func_$ac_func=yes"
4342 else
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4345 rm -rf conftest*
4346 eval "ac_cv_func_$ac_func=no"
4348 rm -f conftest*
4351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4352 echo "$ac_t""yes" 1>&6
4353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4354 cat >> confdefs.h <<EOF
4355 #define $ac_tr_func 1
4358 else
4359 echo "$ac_t""no" 1>&6
4361 done
4363 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_func" >&5
4367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* System header to define __stub macros and hopefully few prototypes,
4374 which can conflict with char $ac_func(); below. */
4375 #include <assert.h>
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4379 char $ac_func();
4381 int main() {
4383 /* The GNU C library defines this for functions which it implements
4384 to always fail with ENOSYS. Some functions are actually named
4385 something starting with __ and the normal name is an alias. */
4386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4387 choke me
4388 #else
4389 $ac_func();
4390 #endif
4392 ; return 0; }
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4395 rm -rf conftest*
4396 eval "ac_cv_func_$ac_func=yes"
4397 else
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4400 rm -rf conftest*
4401 eval "ac_cv_func_$ac_func=no"
4403 rm -f conftest*
4406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4409 cat >> confdefs.h <<EOF
4410 #define $ac_tr_func 1
4413 else
4414 echo "$ac_t""no" 1>&6
4416 done
4418 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_func" >&5
4422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4424 else
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 /* System header to define __stub macros and hopefully few prototypes,
4429 which can conflict with char $ac_func(); below. */
4430 #include <assert.h>
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4434 char $ac_func();
4436 int main() {
4438 /* The GNU C library defines this for functions which it implements
4439 to always fail with ENOSYS. Some functions are actually named
4440 something starting with __ and the normal name is an alias. */
4441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4442 choke me
4443 #else
4444 $ac_func();
4445 #endif
4447 ; return 0; }
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4450 rm -rf conftest*
4451 eval "ac_cv_func_$ac_func=yes"
4452 else
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 rm -rf conftest*
4456 eval "ac_cv_func_$ac_func=no"
4458 rm -f conftest*
4461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4464 cat >> confdefs.h <<EOF
4465 #define $ac_tr_func 1
4468 else
4469 echo "$ac_t""no" 1>&6
4471 done
4473 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4476 echo "configure:4477: checking for $ac_func" >&5
4477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4479 else
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* System header to define __stub macros and hopefully few prototypes,
4484 which can conflict with char $ac_func(); below. */
4485 #include <assert.h>
4486 /* Override any gcc2 internal prototype to avoid an error. */
4487 /* We use char because int might match the return type of a gcc2
4488 builtin and then its argument prototype would still apply. */
4489 char $ac_func();
4491 int main() {
4493 /* The GNU C library defines this for functions which it implements
4494 to always fail with ENOSYS. Some functions are actually named
4495 something starting with __ and the normal name is an alias. */
4496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4497 choke me
4498 #else
4499 $ac_func();
4500 #endif
4502 ; return 0; }
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4505 rm -rf conftest*
4506 eval "ac_cv_func_$ac_func=yes"
4507 else
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4510 rm -rf conftest*
4511 eval "ac_cv_func_$ac_func=no"
4513 rm -f conftest*
4516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4519 cat >> confdefs.h <<EOF
4520 #define $ac_tr_func 1
4523 else
4524 echo "$ac_t""no" 1>&6
4526 done
4528 for ac_func in _write __write _fork __fork
4530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4531 echo "configure:4532: checking for $ac_func" >&5
4532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4534 else
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char $ac_func(); below. */
4540 #include <assert.h>
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4544 char $ac_func();
4546 int main() {
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4552 choke me
4553 #else
4554 $ac_func();
4555 #endif
4557 ; return 0; }
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4560 rm -rf conftest*
4561 eval "ac_cv_func_$ac_func=yes"
4562 else
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4565 rm -rf conftest*
4566 eval "ac_cv_func_$ac_func=no"
4568 rm -f conftest*
4571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4572 echo "$ac_t""yes" 1>&6
4573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4574 cat >> confdefs.h <<EOF
4575 #define $ac_tr_func 1
4578 else
4579 echo "$ac_t""no" 1>&6
4581 done
4583 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4586 echo "configure:4587: checking for $ac_func" >&5
4587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4589 else
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 /* System header to define __stub macros and hopefully few prototypes,
4594 which can conflict with char $ac_func(); below. */
4595 #include <assert.h>
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 /* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4599 char $ac_func();
4601 int main() {
4603 /* The GNU C library defines this for functions which it implements
4604 to always fail with ENOSYS. Some functions are actually named
4605 something starting with __ and the normal name is an alias. */
4606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4607 choke me
4608 #else
4609 $ac_func();
4610 #endif
4612 ; return 0; }
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4615 rm -rf conftest*
4616 eval "ac_cv_func_$ac_func=yes"
4617 else
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -rf conftest*
4621 eval "ac_cv_func_$ac_func=no"
4623 rm -f conftest*
4626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4629 cat >> confdefs.h <<EOF
4630 #define $ac_tr_func 1
4633 else
4634 echo "$ac_t""no" 1>&6
4636 done
4638 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_func" >&5
4642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4644 else
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 /* System header to define __stub macros and hopefully few prototypes,
4649 which can conflict with char $ac_func(); below. */
4650 #include <assert.h>
4651 /* Override any gcc2 internal prototype to avoid an error. */
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4654 char $ac_func();
4656 int main() {
4658 /* The GNU C library defines this for functions which it implements
4659 to always fail with ENOSYS. Some functions are actually named
4660 something starting with __ and the normal name is an alias. */
4661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4662 choke me
4663 #else
4664 $ac_func();
4665 #endif
4667 ; return 0; }
4669 if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4670 rm -rf conftest*
4671 eval "ac_cv_func_$ac_func=yes"
4672 else
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 eval "ac_cv_func_$ac_func=no"
4678 rm -f conftest*
4681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4684 cat >> confdefs.h <<EOF
4685 #define $ac_tr_func 1
4688 else
4689 echo "$ac_t""no" 1>&6
4691 done
4693 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_func" >&5
4697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4699 else
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 /* System header to define __stub macros and hopefully few prototypes,
4704 which can conflict with char $ac_func(); below. */
4705 #include <assert.h>
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4709 char $ac_func();
4711 int main() {
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4717 choke me
4718 #else
4719 $ac_func();
4720 #endif
4722 ; return 0; }
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4725 rm -rf conftest*
4726 eval "ac_cv_func_$ac_func=yes"
4727 else
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -rf conftest*
4731 eval "ac_cv_func_$ac_func=no"
4733 rm -f conftest*
4736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4739 cat >> confdefs.h <<EOF
4740 #define $ac_tr_func 1
4743 else
4744 echo "$ac_t""no" 1>&6
4746 done
4748 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_func" >&5
4752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4754 else
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4760 #include <assert.h>
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4764 char $ac_func();
4766 int main() {
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4772 choke me
4773 #else
4774 $ac_func();
4775 #endif
4777 ; return 0; }
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4780 rm -rf conftest*
4781 eval "ac_cv_func_$ac_func=yes"
4782 else
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4785 rm -rf conftest*
4786 eval "ac_cv_func_$ac_func=no"
4788 rm -f conftest*
4791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_func 1
4798 else
4799 echo "$ac_t""no" 1>&6
4801 done
4803 for ac_func in open64 _open64 __open64 creat64
4805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4806 echo "configure:4807: checking for $ac_func" >&5
4807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4809 else
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 /* System header to define __stub macros and hopefully few prototypes,
4814 which can conflict with char $ac_func(); below. */
4815 #include <assert.h>
4816 /* Override any gcc2 internal prototype to avoid an error. */
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4819 char $ac_func();
4821 int main() {
4823 /* The GNU C library defines this for functions which it implements
4824 to always fail with ENOSYS. Some functions are actually named
4825 something starting with __ and the normal name is an alias. */
4826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4827 choke me
4828 #else
4829 $ac_func();
4830 #endif
4832 ; return 0; }
4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4835 rm -rf conftest*
4836 eval "ac_cv_func_$ac_func=yes"
4837 else
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 rm -rf conftest*
4841 eval "ac_cv_func_$ac_func=no"
4843 rm -f conftest*
4846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4847 echo "$ac_t""yes" 1>&6
4848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4849 cat >> confdefs.h <<EOF
4850 #define $ac_tr_func 1
4853 else
4854 echo "$ac_t""no" 1>&6
4856 done
4860 # Check for the functions putprpwnam, set_auth_parameters,
4861 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
4862 # Needed for OSF1 and HPUX.
4865 if test x"$ac_cv_func_putprpwnam" = x"no"; then
4866 case "$LIBS" in
4867 *-lsecurity*) ;;
4868 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
4869 echo "configure:4870: checking for putprpwnam in -lsecurity" >&5
4870 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
4871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4873 else
4874 ac_save_LIBS="$LIBS"
4875 LIBS="-lsecurity $LIBS"
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4879 /* Override any gcc2 internal prototype to avoid an error. */
4880 /* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */
4882 char putprpwnam();
4884 int main() {
4885 putprpwnam()
4886 ; return 0; }
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4889 rm -rf conftest*
4890 eval "ac_cv_lib_$ac_lib_var=yes"
4891 else
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4894 rm -rf conftest*
4895 eval "ac_cv_lib_$ac_lib_var=no"
4897 rm -f conftest*
4898 LIBS="$ac_save_LIBS"
4901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4902 echo "$ac_t""yes" 1>&6
4903 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4904 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4905 cat >> confdefs.h <<EOF
4906 #define $ac_tr_lib 1
4909 LIBS="-lsecurity $LIBS"
4911 else
4912 echo "$ac_t""no" 1>&6
4915 esac
4916 case "$LIBS" in
4917 *-lsec*) ;;
4918 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
4919 echo "configure:4920: checking for putprpwnam in -lsec" >&5
4920 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
4921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4923 else
4924 ac_save_LIBS="$LIBS"
4925 LIBS="-lsec $LIBS"
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4932 char putprpwnam();
4934 int main() {
4935 putprpwnam()
4936 ; return 0; }
4938 if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4939 rm -rf conftest*
4940 eval "ac_cv_lib_$ac_lib_var=yes"
4941 else
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 rm -rf conftest*
4945 eval "ac_cv_lib_$ac_lib_var=no"
4947 rm -f conftest*
4948 LIBS="$ac_save_LIBS"
4951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4955 cat >> confdefs.h <<EOF
4956 #define $ac_tr_lib 1
4959 LIBS="-lsec $LIBS"
4961 else
4962 echo "$ac_t""no" 1>&6
4965 esac
4966 if test x"$ac_cv_lib_security_putprpwnam" = x"yes" ||
4967 test x"$ac_cv_lib_sec_putprpwnam" = x"yes"; then
4968 cat >> confdefs.h <<\EOF
4969 #define HAVE_PUTPRPWNAM 1
4975 if test x"$ac_cv_func_set_auth_parameters" = x"no"; then
4976 case "$LIBS" in
4977 *-lsecurity*) ;;
4978 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
4979 echo "configure:4980: checking for set_auth_parameters in -lsecurity" >&5
4980 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
4981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4983 else
4984 ac_save_LIBS="$LIBS"
4985 LIBS="-lsecurity $LIBS"
4986 cat > conftest.$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4992 char set_auth_parameters();
4994 int main() {
4995 set_auth_parameters()
4996 ; return 0; }
4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4999 rm -rf conftest*
5000 eval "ac_cv_lib_$ac_lib_var=yes"
5001 else
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5004 rm -rf conftest*
5005 eval "ac_cv_lib_$ac_lib_var=no"
5007 rm -f conftest*
5008 LIBS="$ac_save_LIBS"
5011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6
5013 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5015 cat >> confdefs.h <<EOF
5016 #define $ac_tr_lib 1
5019 LIBS="-lsecurity $LIBS"
5021 else
5022 echo "$ac_t""no" 1>&6
5025 esac
5026 case "$LIBS" in
5027 *-lsec*) ;;
5028 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5029 echo "configure:5030: checking for set_auth_parameters in -lsec" >&5
5030 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5033 else
5034 ac_save_LIBS="$LIBS"
5035 LIBS="-lsec $LIBS"
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5042 char set_auth_parameters();
5044 int main() {
5045 set_auth_parameters()
5046 ; return 0; }
5048 if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5049 rm -rf conftest*
5050 eval "ac_cv_lib_$ac_lib_var=yes"
5051 else
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5054 rm -rf conftest*
5055 eval "ac_cv_lib_$ac_lib_var=no"
5057 rm -f conftest*
5058 LIBS="$ac_save_LIBS"
5061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5062 echo "$ac_t""yes" 1>&6
5063 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5065 cat >> confdefs.h <<EOF
5066 #define $ac_tr_lib 1
5069 LIBS="-lsec $LIBS"
5071 else
5072 echo "$ac_t""no" 1>&6
5075 esac
5076 if test x"$ac_cv_lib_security_set_auth_parameters" = x"yes" ||
5077 test x"$ac_cv_lib_sec_set_auth_parameters" = x"yes"; then
5078 cat >> confdefs.h <<\EOF
5079 #define HAVE_SET_AUTH_PARAMETERS 1
5085 if test x"$ac_cv_func_getspnam" = x"no"; then
5086 case "$LIBS" in
5087 *-lsecurity*) ;;
5088 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
5089 echo "configure:5090: checking for getspnam in -lsecurity" >&5
5090 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
5091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094 ac_save_LIBS="$LIBS"
5095 LIBS="-lsecurity $LIBS"
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* Override any gcc2 internal prototype to avoid an error. */
5100 /* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */
5102 char getspnam();
5104 int main() {
5105 getspnam()
5106 ; return 0; }
5108 if { (eval echo configure:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5109 rm -rf conftest*
5110 eval "ac_cv_lib_$ac_lib_var=yes"
5111 else
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 rm -rf conftest*
5115 eval "ac_cv_lib_$ac_lib_var=no"
5117 rm -f conftest*
5118 LIBS="$ac_save_LIBS"
5121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5122 echo "$ac_t""yes" 1>&6
5123 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5124 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5125 cat >> confdefs.h <<EOF
5126 #define $ac_tr_lib 1
5129 LIBS="-lsecurity $LIBS"
5131 else
5132 echo "$ac_t""no" 1>&6
5135 esac
5136 case "$LIBS" in
5137 *-lsec*) ;;
5138 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
5139 echo "configure:5140: checking for getspnam in -lsec" >&5
5140 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
5141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5143 else
5144 ac_save_LIBS="$LIBS"
5145 LIBS="-lsec $LIBS"
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5152 char getspnam();
5154 int main() {
5155 getspnam()
5156 ; return 0; }
5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5159 rm -rf conftest*
5160 eval "ac_cv_lib_$ac_lib_var=yes"
5161 else
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5164 rm -rf conftest*
5165 eval "ac_cv_lib_$ac_lib_var=no"
5167 rm -f conftest*
5168 LIBS="$ac_save_LIBS"
5171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5172 echo "$ac_t""yes" 1>&6
5173 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5175 cat >> confdefs.h <<EOF
5176 #define $ac_tr_lib 1
5179 LIBS="-lsec $LIBS"
5181 else
5182 echo "$ac_t""no" 1>&6
5185 esac
5186 if test x"$ac_cv_lib_security_getspnam" = x"yes" ||
5187 test x"$ac_cv_lib_sec_getspnam" = x"yes"; then
5188 cat >> confdefs.h <<\EOF
5189 #define HAVE_GETSPNAM 1
5195 if test x"$ac_cv_func_bigcrypt" = x"no"; then
5196 case "$LIBS" in
5197 *-lsecurity*) ;;
5198 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
5199 echo "configure:5200: checking for bigcrypt in -lsecurity" >&5
5200 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
5201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5203 else
5204 ac_save_LIBS="$LIBS"
5205 LIBS="-lsecurity $LIBS"
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5212 char bigcrypt();
5214 int main() {
5215 bigcrypt()
5216 ; return 0; }
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5219 rm -rf conftest*
5220 eval "ac_cv_lib_$ac_lib_var=yes"
5221 else
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5224 rm -rf conftest*
5225 eval "ac_cv_lib_$ac_lib_var=no"
5227 rm -f conftest*
5228 LIBS="$ac_save_LIBS"
5231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5232 echo "$ac_t""yes" 1>&6
5233 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5234 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5235 cat >> confdefs.h <<EOF
5236 #define $ac_tr_lib 1
5239 LIBS="-lsecurity $LIBS"
5241 else
5242 echo "$ac_t""no" 1>&6
5245 esac
5246 case "$LIBS" in
5247 *-lsec*) ;;
5248 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
5249 echo "configure:5250: checking for bigcrypt in -lsec" >&5
5250 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
5251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5253 else
5254 ac_save_LIBS="$LIBS"
5255 LIBS="-lsec $LIBS"
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 /* Override any gcc2 internal prototype to avoid an error. */
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5262 char bigcrypt();
5264 int main() {
5265 bigcrypt()
5266 ; return 0; }
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5269 rm -rf conftest*
5270 eval "ac_cv_lib_$ac_lib_var=yes"
5271 else
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5274 rm -rf conftest*
5275 eval "ac_cv_lib_$ac_lib_var=no"
5277 rm -f conftest*
5278 LIBS="$ac_save_LIBS"
5281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5283 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5285 cat >> confdefs.h <<EOF
5286 #define $ac_tr_lib 1
5289 LIBS="-lsec $LIBS"
5291 else
5292 echo "$ac_t""no" 1>&6
5295 esac
5296 if test x"$ac_cv_lib_security_bigcrypt" = x"yes" ||
5297 test x"$ac_cv_lib_sec_bigcrypt" = x"yes"; then
5298 cat >> confdefs.h <<\EOF
5299 #define HAVE_BIGCRYPT 1
5305 if test x"$ac_cv_func_getprpwnam" = x"no"; then
5306 case "$LIBS" in
5307 *-lsecurity*) ;;
5308 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
5309 echo "configure:5310: checking for getprpwnam in -lsecurity" >&5
5310 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
5311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5313 else
5314 ac_save_LIBS="$LIBS"
5315 LIBS="-lsecurity $LIBS"
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319 /* Override any gcc2 internal prototype to avoid an error. */
5320 /* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5322 char getprpwnam();
5324 int main() {
5325 getprpwnam()
5326 ; return 0; }
5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5329 rm -rf conftest*
5330 eval "ac_cv_lib_$ac_lib_var=yes"
5331 else
5332 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5334 rm -rf conftest*
5335 eval "ac_cv_lib_$ac_lib_var=no"
5337 rm -f conftest*
5338 LIBS="$ac_save_LIBS"
5341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5342 echo "$ac_t""yes" 1>&6
5343 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5345 cat >> confdefs.h <<EOF
5346 #define $ac_tr_lib 1
5349 LIBS="-lsecurity $LIBS"
5351 else
5352 echo "$ac_t""no" 1>&6
5355 esac
5356 case "$LIBS" in
5357 *-lsec*) ;;
5358 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
5359 echo "configure:5360: checking for getprpwnam in -lsec" >&5
5360 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
5361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5363 else
5364 ac_save_LIBS="$LIBS"
5365 LIBS="-lsec $LIBS"
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5372 char getprpwnam();
5374 int main() {
5375 getprpwnam()
5376 ; return 0; }
5378 if { (eval echo configure:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5379 rm -rf conftest*
5380 eval "ac_cv_lib_$ac_lib_var=yes"
5381 else
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 rm -rf conftest*
5385 eval "ac_cv_lib_$ac_lib_var=no"
5387 rm -f conftest*
5388 LIBS="$ac_save_LIBS"
5391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5392 echo "$ac_t""yes" 1>&6
5393 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5395 cat >> confdefs.h <<EOF
5396 #define $ac_tr_lib 1
5399 LIBS="-lsec $LIBS"
5401 else
5402 echo "$ac_t""no" 1>&6
5405 esac
5406 if test x"$ac_cv_lib_security_getprpwnam" = x"yes" ||
5407 test x"$ac_cv_lib_sec_getprpwnam" = x"yes"; then
5408 cat >> confdefs.h <<\EOF
5409 #define HAVE_GETPRPWNAM 1
5415 # this bit needs to be modified for each OS that is suported by
5416 # smbwrapper. You need to specify how to created a shared library and
5417 # how to compile C code to produce PIC object files
5419 # these are the defaults, good for lots of systems
5420 HOST_OS="$host_os"
5421 LDSHFLAGS="-shared"
5423 # and these are for particular systems
5424 case "$host_os" in
5425 *linux*) cat >> confdefs.h <<\EOF
5426 #define LINUX 1
5429 *solaris*) cat >> confdefs.h <<\EOF
5430 #define SUNOS5 1
5433 LDSHFLAGS="-G"
5435 *sunos*) cat >> confdefs.h <<\EOF
5436 #define SUNOS4 1
5439 LDSHFLAGS=""
5441 *bsd*) LDSHFLAGS="-shared -Bshareable"
5443 *irix*) cat >> confdefs.h <<\EOF
5444 #define IRIX 1
5447 ATTEMPT_WRAP32_BUILD=yes
5449 *aix*) cat >> confdefs.h <<\EOF
5450 #define AIX 1
5453 *hpux*) cat >> confdefs.h <<\EOF
5454 #define HPUX 1
5457 *qnx*) cat >> confdefs.h <<\EOF
5458 #define QNX 1
5461 *osf*) cat >> confdefs.h <<\EOF
5462 #define OSF1 1
5465 *sco*) cat >> confdefs.h <<\EOF
5466 #define SCO 1
5469 *next2*) cat >> confdefs.h <<\EOF
5470 #define NEXT2 1
5473 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
5474 set dummy groff; ac_word=$2
5475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5476 echo "configure:5477: checking for $ac_word" >&5
5477 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5479 else
5480 if test -n "$ROFF"; then
5481 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
5482 else
5483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5484 for ac_dir in $PATH; do
5485 test -z "$ac_dir" && ac_dir=.
5486 if test -f $ac_dir/$ac_word; then
5487 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
5488 break
5490 done
5491 IFS="$ac_save_ifs"
5494 ROFF="$ac_cv_prog_ROFF"
5495 if test -n "$ROFF"; then
5496 echo "$ac_t""$ROFF" 1>&6
5497 else
5498 echo "$ac_t""no" 1>&6
5501 *sysv4.2*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5502 echo "configure:5503: checking for strcasecmp in -lresolv" >&5
5503 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5507 ac_save_LIBS="$LIBS"
5508 LIBS="-lresolv $LIBS"
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5515 char strcasecmp();
5517 int main() {
5518 strcasecmp()
5519 ; return 0; }
5521 if { (eval echo configure:5522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5522 rm -rf conftest*
5523 eval "ac_cv_lib_$ac_lib_var=yes"
5524 else
5525 echo "configure: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5527 rm -rf conftest*
5528 eval "ac_cv_lib_$ac_lib_var=no"
5530 rm -f conftest*
5531 LIBS="$ac_save_LIBS"
5534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5535 echo "$ac_t""yes" 1>&6
5536 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5538 cat >> confdefs.h <<EOF
5539 #define $ac_tr_lib 1
5542 LIBS="-lresolv $LIBS"
5544 else
5545 echo "$ac_t""no" 1>&6
5548 esac
5550 # try to work out how to produce pic code with this compiler
5551 PICFLAG=""
5552 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
5553 echo "configure:5554: checking whether ${CC-cc} accepts -fpic" >&5
5554 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5556 else
5557 echo 'void f(){}' > conftest.c
5558 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
5559 ac_cv_prog_cc_fpic=yes
5560 else
5561 ac_cv_prog_cc_fpic=no
5563 rm -f conftest*
5567 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
5568 if test $ac_cv_prog_cc_fpic = yes; then
5569 PICFLAG="-fpic";
5571 if test x$PICFLAG = x; then
5572 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
5573 echo "configure:5574: checking whether ${CC-cc} accepts -Kpic" >&5
5574 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
5575 echo $ac_n "(cached) $ac_c" 1>&6
5576 else
5577 echo 'void f(){}' > conftest.c
5578 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
5579 ac_cv_prog_cc_Kpic=yes
5580 else
5581 ac_cv_prog_cc_Kpic=no
5583 rm -f conftest*
5587 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
5588 if test $ac_cv_prog_cc_Kpic = yes; then
5589 PICFLAG="-Kpic";
5592 if test x$PICFLAG = x; then
5593 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
5594 echo "configure:5595: checking whether ${CC-cc} accepts -KPIC" >&5
5595 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5597 else
5598 echo 'void f(){}' > conftest.c
5599 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
5600 ac_cv_prog_cc_KPIC=yes
5601 else
5602 ac_cv_prog_cc_KPIC=no
5604 rm -f conftest*
5608 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
5609 if test $ac_cv_prog_cc_KPIC = yes; then
5610 PICFLAG="-KPIC";
5614 ################
5616 echo $ac_n "checking for long long""... $ac_c" 1>&6
5617 echo "configure:5618: checking for long long" >&5
5618 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5620 else
5622 if test "$cross_compiling" = yes; then
5623 samba_cv_have_longlong=cross
5624 else
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 #include <stdio.h>
5629 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
5631 if { (eval echo configure:5632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5632 then
5633 samba_cv_have_longlong=yes
5634 else
5635 echo "configure: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5637 rm -fr conftest*
5638 samba_cv_have_longlong=no
5640 rm -fr conftest*
5645 echo "$ac_t""$samba_cv_have_longlong" 1>&6
5646 if test x"$samba_cv_have_longlong" = x"yes"; then
5647 cat >> confdefs.h <<\EOF
5648 #define HAVE_LONGLONG 1
5653 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
5654 echo "configure:5655: checking for 64 bit off_t" >&5
5655 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5657 else
5659 if test "$cross_compiling" = yes; then
5660 samba_cv_SIZEOF_OFF_T=cross
5661 else
5662 cat > conftest.$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5665 #include <stdio.h>
5666 #include <sys/stat.h>
5667 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5670 then
5671 samba_cv_SIZEOF_OFF_T=yes
5672 else
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 rm -fr conftest*
5676 samba_cv_SIZEOF_OFF_T=no
5678 rm -fr conftest*
5683 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
5684 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
5685 cat >> confdefs.h <<\EOF
5686 #define SIZEOF_OFF_T 8
5691 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
5692 echo "configure:5693: checking for off64_t" >&5
5693 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5695 else
5697 if test "$cross_compiling" = yes; then
5698 samba_cv_HAVE_OFF64_T=cross
5699 else
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 #include <stdio.h>
5704 #include <sys/stat.h>
5705 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5707 if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5708 then
5709 samba_cv_HAVE_OFF64_T=yes
5710 else
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5713 rm -fr conftest*
5714 samba_cv_HAVE_OFF64_T=no
5716 rm -fr conftest*
5721 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
5722 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
5723 cat >> confdefs.h <<\EOF
5724 #define HAVE_OFF64_T 1
5729 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
5730 echo "configure:5731: checking for 64 bit ino_t" >&5
5731 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5733 else
5735 if test "$cross_compiling" = yes; then
5736 samba_cv_SIZEOF_INO_T=cross
5737 else
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 #include <stdio.h>
5742 #include <sys/stat.h>
5743 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5746 then
5747 samba_cv_SIZEOF_INO_T=yes
5748 else
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5751 rm -fr conftest*
5752 samba_cv_SIZEOF_INO_T=no
5754 rm -fr conftest*
5759 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
5760 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
5761 cat >> confdefs.h <<\EOF
5762 #define SIZEOF_INO_T 8
5767 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
5768 echo "configure:5769: checking for ino64_t" >&5
5769 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5771 else
5773 if test "$cross_compiling" = yes; then
5774 samba_cv_HAVE_INO64_T=cross
5775 else
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 #include <stdio.h>
5780 #include <sys/stat.h>
5781 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5784 then
5785 samba_cv_HAVE_INO64_T=yes
5786 else
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5789 rm -fr conftest*
5790 samba_cv_HAVE_INO64_T=no
5792 rm -fr conftest*
5797 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
5798 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
5799 cat >> confdefs.h <<\EOF
5800 #define HAVE_INO64_T 1
5805 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5806 echo "configure:5807: checking for union semun" >&5
5807 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5809 else
5811 if test "$cross_compiling" = yes; then
5812 samba_cv_HAVE_UNION_SEMUN=cross
5813 else
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5818 #include <sys/types.h>
5819 #include <sys/ipc.h>
5820 #include <sys/sem.h>
5821 main() { union semun ss; exit(0); }
5823 if { (eval echo configure:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5824 then
5825 samba_cv_HAVE_UNION_SEMUN=yes
5826 else
5827 echo "configure: failed program was:" >&5
5828 cat conftest.$ac_ext >&5
5829 rm -fr conftest*
5830 samba_cv_HAVE_UNION_SEMUN=no
5832 rm -fr conftest*
5837 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
5838 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_UNION_SEMUN 1
5845 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
5846 echo "configure:5847: checking for unsigned char" >&5
5847 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
5848 echo $ac_n "(cached) $ac_c" 1>&6
5849 else
5851 if test "$cross_compiling" = yes; then
5852 samba_cv_HAVE_UNSIGNED_CHAR=cross
5853 else
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5857 #include <stdio.h>
5858 main() { char c; c=250; exit((c > 0)?0:1); }
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5861 then
5862 samba_cv_HAVE_UNSIGNED_CHAR=yes
5863 else
5864 echo "configure: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5866 rm -fr conftest*
5867 samba_cv_HAVE_UNSIGNED_CHAR=no
5869 rm -fr conftest*
5874 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
5875 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
5876 cat >> confdefs.h <<\EOF
5877 #define HAVE_UNSIGNED_CHAR 1
5882 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
5883 echo "configure:5884: checking for sin_len in sock" >&5
5884 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5886 else
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 #include <sys/types.h>
5892 #include <sys/socket.h>
5893 #include <netinet/in.h>
5894 int main() {
5895 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
5896 ; return 0; }
5898 if { (eval echo configure:5899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5899 rm -rf conftest*
5900 samba_cv_HAVE_SOCK_SIN_LEN=yes
5901 else
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5904 rm -rf conftest*
5905 samba_cv_HAVE_SOCK_SIN_LEN=no
5907 rm -f conftest*
5910 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
5911 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
5912 cat >> confdefs.h <<\EOF
5913 #define HAVE_SOCK_SIN_LEN 1
5918 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
5919 echo "configure:5920: checking whether seekdir returns void" >&5
5920 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5922 else
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure"
5926 #include "confdefs.h"
5927 #include <sys/types.h>
5928 #include <dirent.h>
5929 void seekdir(DIR *d, long loc) { return; }
5930 int main() {
5931 return 0;
5932 ; return 0; }
5934 if { (eval echo configure:5935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5935 rm -rf conftest*
5936 samba_cv_SEEKDIR_RETURNS_VOID=yes
5937 else
5938 echo "configure: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5940 rm -rf conftest*
5941 samba_cv_SEEKDIR_RETURNS_VOID=no
5943 rm -f conftest*
5946 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
5947 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
5948 cat >> confdefs.h <<\EOF
5949 #define SEEKDIR_RETURNS_VOID 1
5954 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
5955 echo "configure:5956: checking for __FILE__ macro" >&5
5956 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5958 else
5960 cat > conftest.$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5963 #include <stdio.h>
5964 int main() {
5965 printf("%s\n", __FILE__);
5966 ; return 0; }
5968 if { (eval echo configure:5969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5969 rm -rf conftest*
5970 samba_cv_HAVE_FILE_MACRO=yes
5971 else
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5974 rm -rf conftest*
5975 samba_cv_HAVE_FILE_MACRO=no
5977 rm -f conftest*
5980 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
5981 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
5982 cat >> confdefs.h <<\EOF
5983 #define HAVE_FILE_MACRO 1
5988 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
5989 echo "configure:5990: checking for __FUNCTION__ macro" >&5
5990 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5992 else
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 #include <stdio.h>
5998 int main() {
5999 printf("%s\n", __FUNCTION__);
6000 ; return 0; }
6002 if { (eval echo configure:6003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6003 rm -rf conftest*
6004 samba_cv_HAVE_FUNCTION_MACRO=yes
6005 else
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6008 rm -rf conftest*
6009 samba_cv_HAVE_FUNCTION_MACRO=no
6011 rm -f conftest*
6014 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
6015 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
6016 cat >> confdefs.h <<\EOF
6017 #define HAVE_FUNCTION_MACRO 1
6022 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
6023 echo "configure:6024: checking if gettimeofday takes tz argument" >&5
6024 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6026 else
6028 if test "$cross_compiling" = yes; then
6029 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
6030 else
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6035 #include <sys/time.h>
6036 #include <unistd.h>
6037 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
6039 if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6040 then
6041 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
6042 else
6043 echo "configure: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6045 rm -fr conftest*
6046 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
6048 rm -fr conftest*
6053 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
6054 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
6055 cat >> confdefs.h <<\EOF
6056 #define HAVE_GETTIMEOFDAY_TZ 1
6062 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
6063 echo "configure:6064: checking for broken readdir" >&5
6064 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6066 else
6068 if test "$cross_compiling" = yes; then
6069 samba_cv_HAVE_BROKEN_READDIR=cross
6070 else
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 #include <sys/types.h>
6075 #include <dirent.h>
6076 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
6077 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
6078 di->d_name[0] == 0) exit(0); exit(1);}
6080 if { (eval echo configure:6081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6081 then
6082 samba_cv_HAVE_BROKEN_READDIR=yes
6083 else
6084 echo "configure: failed program was:" >&5
6085 cat conftest.$ac_ext >&5
6086 rm -fr conftest*
6087 samba_cv_HAVE_BROKEN_READDIR=no
6089 rm -fr conftest*
6094 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
6095 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
6096 cat >> confdefs.h <<\EOF
6097 #define HAVE_BROKEN_READDIR 1
6102 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
6103 echo "configure:6104: checking for utimbuf" >&5
6104 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6106 else
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 #include <sys/types.h>
6112 #include <utime.h>
6113 int main() {
6114 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
6115 ; return 0; }
6117 if { (eval echo configure:6118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6118 rm -rf conftest*
6119 samba_cv_HAVE_UTIMBUF=yes
6120 else
6121 echo "configure: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6123 rm -rf conftest*
6124 samba_cv_HAVE_UTIMBUF=no
6126 rm -f conftest*
6129 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
6130 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
6131 cat >> confdefs.h <<\EOF
6132 #define HAVE_UTIMBUF 1
6137 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
6138 echo "configure:6139: checking for kernel oplock type definitions" >&5
6139 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6141 else
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 #include <sys/types.h>
6147 #include <fcntl.h>
6148 int main() {
6149 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
6150 ; return 0; }
6152 if { (eval echo configure:6153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6153 rm -rf conftest*
6154 samba_cv_HAVE_KERNEL_OPLOCKS=yes
6155 else
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6158 rm -rf conftest*
6159 samba_cv_HAVE_KERNEL_OPLOCKS=no
6161 rm -f conftest*
6164 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
6165 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
6166 cat >> confdefs.h <<\EOF
6167 #define HAVE_KERNEL_OPLOCKS 1
6172 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
6173 echo "configure:6174: checking for irix specific capabilities" >&5
6174 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6176 else
6178 if test "$cross_compiling" = yes; then
6179 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
6180 else
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 #include <sys/types.h>
6185 #include <sys/capability.h>
6186 main() {
6187 cap_t cap;
6188 if ((cap = cap_get_proc()) == NULL)
6189 exit(1);
6190 cap->cap_effective |= CAP_NETWORK_MGT;
6191 cap->cap_inheritable |= CAP_NETWORK_MGT;
6192 cap_set_proc(cap);
6193 exit(0);
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6198 then
6199 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
6200 else
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6203 rm -fr conftest*
6204 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
6206 rm -fr conftest*
6211 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
6212 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
6213 cat >> confdefs.h <<\EOF
6214 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
6220 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
6221 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
6224 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
6225 echo "configure:6226: checking for int16 typedef included by rpc/rpc.h" >&5
6226 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6228 else
6230 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6233 #include <sys/types.h>
6234 #if defined(HAVE_RPC_RPC_H)
6235 #include <rpc/rpc.h>
6236 #endif
6237 int main() {
6238 int16 testvar;
6239 ; return 0; }
6241 if { (eval echo configure:6242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6242 rm -rf conftest*
6243 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
6244 else
6245 echo "configure: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6247 rm -rf conftest*
6248 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
6250 rm -f conftest*
6253 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
6254 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
6255 cat >> confdefs.h <<\EOF
6256 #define HAVE_INT16_FROM_RPC_RPC_H 1
6261 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
6262 echo "configure:6263: checking for uint16 typedef included by rpc/rpc.h" >&5
6263 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
6264 echo $ac_n "(cached) $ac_c" 1>&6
6265 else
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 #include <sys/types.h>
6271 #if defined(HAVE_RPC_RPC_H)
6272 #include <rpc/rpc.h>
6273 #endif
6274 int main() {
6275 uint16 testvar;
6276 ; return 0; }
6278 if { (eval echo configure:6279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6279 rm -rf conftest*
6280 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
6281 else
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6284 rm -rf conftest*
6285 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
6287 rm -f conftest*
6290 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
6291 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
6292 cat >> confdefs.h <<\EOF
6293 #define HAVE_UINT16_FROM_RPC_RPC_H 1
6298 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
6299 echo "configure:6300: checking for int32 typedef included by rpc/rpc.h" >&5
6300 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6302 else
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6307 #include <sys/types.h>
6308 #if defined(HAVE_RPC_RPC_H)
6309 #include <rpc/rpc.h>
6310 #endif
6311 int main() {
6312 int32 testvar;
6313 ; return 0; }
6315 if { (eval echo configure:6316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6316 rm -rf conftest*
6317 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
6318 else
6319 echo "configure: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6321 rm -rf conftest*
6322 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
6324 rm -f conftest*
6327 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
6328 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
6329 cat >> confdefs.h <<\EOF
6330 #define HAVE_INT32_FROM_RPC_RPC_H 1
6335 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
6336 echo "configure:6337: checking for uint32 typedef included by rpc/rpc.h" >&5
6337 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6339 else
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 #include <sys/types.h>
6345 #if defined(HAVE_RPC_RPC_H)
6346 #include <rpc/rpc.h>
6347 #endif
6348 int main() {
6349 uint32 testvar;
6350 ; return 0; }
6352 if { (eval echo configure:6353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6353 rm -rf conftest*
6354 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
6355 else
6356 echo "configure: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6358 rm -rf conftest*
6359 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
6361 rm -f conftest*
6364 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
6365 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
6366 cat >> confdefs.h <<\EOF
6367 #define HAVE_UINT32_FROM_RPC_RPC_H 1
6372 echo $ac_n "checking for test routines""... $ac_c" 1>&6
6373 echo "configure:6374: checking for test routines" >&5
6374 if test "$cross_compiling" = yes; then
6375 echo "configure: warning: cannot run when cross-compiling" 1>&2
6376 else
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6380 #include "${srcdir-.}/tests/trivial.c"
6382 if { (eval echo configure:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6383 then
6384 echo "$ac_t""yes" 1>&6
6385 else
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6388 rm -fr conftest*
6389 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
6391 rm -fr conftest*
6395 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
6396 echo "configure:6397: checking for ftruncate extend" >&5
6397 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
6398 echo $ac_n "(cached) $ac_c" 1>&6
6399 else
6401 if test "$cross_compiling" = yes; then
6402 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
6403 else
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407 #include "${srcdir-.}/tests/ftruncate.c"
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6410 then
6411 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
6412 else
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6415 rm -fr conftest*
6416 samba_cv_HAVE_FTRUNCATE_EXTEND=no
6418 rm -fr conftest*
6423 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
6424 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
6425 cat >> confdefs.h <<\EOF
6426 #define HAVE_FTRUNCATE_EXTEND 1
6431 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
6432 echo "configure:6433: checking for broken getgroups" >&5
6433 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6435 else
6437 if test "$cross_compiling" = yes; then
6438 samba_cv_HAVE_BROKEN_GETGROUPS=cross
6439 else
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 #include "${srcdir-.}/tests/getgroups.c"
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6446 then
6447 samba_cv_HAVE_BROKEN_GETGROUPS=yes
6448 else
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 rm -fr conftest*
6452 samba_cv_HAVE_BROKEN_GETGROUPS=no
6454 rm -fr conftest*
6459 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
6460 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
6461 cat >> confdefs.h <<\EOF
6462 #define HAVE_BROKEN_GETGROUPS 1
6467 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
6468 echo "configure:6469: checking whether getpass should be replaced" >&5
6469 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6471 else
6473 SAVE_CPPFLAGS="$CPPFLAGS"
6474 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6479 #define REPLACE_GETPASS 1
6480 #define NO_CONFIG_H 1
6481 #define main dont_declare_main
6482 #include "${srcdir-.}/lib/getsmbpass.c"
6483 #undef main
6485 int main() {
6487 ; return 0; }
6489 if { (eval echo configure:6490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6490 rm -rf conftest*
6491 samba_cv_REPLACE_GETPASS=yes
6492 else
6493 echo "configure: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6495 rm -rf conftest*
6496 samba_cv_REPLACE_GETPASS=no
6498 rm -f conftest*
6499 CPPFLAGS="$SAVE_CPPFLAGS"
6503 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
6504 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
6505 cat >> confdefs.h <<\EOF
6506 #define REPLACE_GETPASS 1
6511 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
6512 echo "configure:6513: checking for broken inet_ntoa" >&5
6513 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6515 else
6517 if test "$cross_compiling" = yes; then
6518 samba_cv_REPLACE_INET_NTOA=cross
6519 else
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure"
6522 #include "confdefs.h"
6524 #include <stdio.h>
6525 #include <sys/types.h>
6526 #include <netinet/in.h>
6527 #include <arpa/inet.h>
6528 main() { struct in_addr ip; ip.s_addr = 0x12345678;
6529 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
6530 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
6531 exit(1);}
6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6534 then
6535 samba_cv_REPLACE_INET_NTOA=yes
6536 else
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6539 rm -fr conftest*
6540 samba_cv_REPLACE_INET_NTOA=no
6542 rm -fr conftest*
6547 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
6548 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
6549 cat >> confdefs.h <<\EOF
6550 #define REPLACE_INET_NTOA 1
6555 echo $ac_n "checking for root""... $ac_c" 1>&6
6556 echo "configure:6557: checking for root" >&5
6557 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6559 else
6561 if test "$cross_compiling" = yes; then
6562 samba_cv_HAVE_ROOT=cross
6563 else
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6567 main() { exit(getuid() != 0); }
6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6570 then
6571 samba_cv_HAVE_ROOT=yes
6572 else
6573 echo "configure: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6575 rm -fr conftest*
6576 samba_cv_HAVE_ROOT=no
6578 rm -fr conftest*
6583 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
6584 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
6585 cat >> confdefs.h <<\EOF
6586 #define HAVE_ROOT 1
6589 else
6590 echo "configure: warning: running as non-root will disable some tests" 1>&2
6593 netmask=no;
6594 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
6595 echo "configure:6596: checking for netmask ifconf" >&5
6596 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6598 else
6600 if test "$cross_compiling" = yes; then
6601 samba_cv_HAVE_NETMASK_IFCONF=cross
6602 else
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6607 #define HAVE_NETMASK_IFCONF 1
6608 #define AUTOCONF 1
6609 #include "${srcdir-.}/lib/netmask.c"
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6612 then
6613 samba_cv_HAVE_NETMASK_IFCONF=yes
6614 else
6615 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6617 rm -fr conftest*
6618 samba_cv_HAVE_NETMASK_IFCONF=no
6620 rm -fr conftest*
6625 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
6626 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
6627 netmask=yes;cat >> confdefs.h <<\EOF
6628 #define HAVE_NETMASK_IFCONF 1
6633 if test $netmask = no; then
6634 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
6635 echo "configure:6636: checking for netmask ifreq" >&5
6636 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6638 else
6640 if test "$cross_compiling" = yes; then
6641 samba_cv_HAVE_NETMASK_IFREQ=cross
6642 else
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6647 #define HAVE_NETMASK_IFREQ 1
6648 #define AUTOCONF 1
6649 #include "${srcdir-.}/lib/netmask.c"
6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6652 then
6653 samba_cv_HAVE_NETMASK_IFREQ=yes
6654 else
6655 echo "configure: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6657 rm -fr conftest*
6658 samba_cv_HAVE_NETMASK_IFREQ=no
6660 rm -fr conftest*
6665 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
6666 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
6667 netmask=yes;cat >> confdefs.h <<\EOF
6668 #define HAVE_NETMASK_IFREQ 1
6674 if test $netmask = no; then
6675 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
6676 echo "configure:6677: checking for netmask AIX" >&5
6677 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6679 else
6681 if test "$cross_compiling" = yes; then
6682 samba_cv_HAVE_NETMASK_AIX=cross
6683 else
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6688 #define HAVE_NETMASK_AIX 1
6689 #define AUTOCONF 1
6690 #include "${srcdir-.}/lib/netmask.c"
6692 if { (eval echo configure:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6693 then
6694 samba_cv_HAVE_NETMASK_AIX=yes
6695 else
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 rm -fr conftest*
6699 samba_cv_HAVE_NETMASK_AIX=no
6701 rm -fr conftest*
6706 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
6707 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
6708 netmask=yes;cat >> confdefs.h <<\EOF
6709 #define HAVE_NETMASK_AIX 1
6715 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
6716 echo "configure:6717: checking for trapdoor seteuid" >&5
6717 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6719 else
6721 if test "$cross_compiling" = yes; then
6723 else
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 #include "${srcdir-.}/tests/trapdoor.c"
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6730 then
6731 samba_cv_HAVE_TRAPDOOR_UID=no
6732 else
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6735 rm -fr conftest*
6736 samba_cv_HAVE_TRAPDOOR_UID=yes
6738 rm -fr conftest*
6743 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
6744 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
6745 cat >> confdefs.h <<\EOF
6746 #define HAVE_TRAPDOOR_UID 1
6751 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
6752 echo "configure:6753: checking for shared mmap" >&5
6753 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6755 else
6757 if test "$cross_compiling" = yes; then
6758 samba_cv_HAVE_SHARED_MMAP=cross
6759 else
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 #include "${srcdir-.}/tests/shared_mmap.c"
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6766 then
6767 samba_cv_HAVE_SHARED_MMAP=yes
6768 else
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6771 rm -fr conftest*
6772 samba_cv_HAVE_SHARED_MMAP=no
6774 rm -fr conftest*
6779 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
6780 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
6781 cat >> confdefs.h <<\EOF
6782 #define HAVE_SHARED_MMAP 1
6787 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
6788 echo "configure:6789: checking for fcntl locking" >&5
6789 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6791 else
6793 if test "$cross_compiling" = yes; then
6794 samba_cv_HAVE_FCNTL_LOCK=cross
6795 else
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 #include "${srcdir-.}/tests/fcntl_lock.c"
6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6802 then
6803 samba_cv_HAVE_FCNTL_LOCK=yes
6804 else
6805 echo "configure: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6807 rm -fr conftest*
6808 samba_cv_HAVE_FCNTL_LOCK=no
6810 rm -fr conftest*
6815 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
6816 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
6817 cat >> confdefs.h <<\EOF
6818 #define HAVE_FCNTL_LOCK 1
6823 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
6824 echo "configure:6825: checking for 64 bit fcntl locking" >&5
6825 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6827 else
6829 if test "$cross_compiling" = yes; then
6830 samba_cv_HAVE_STRUCT_FLOCK64=cross
6831 else
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6836 #include <stdio.h>
6837 #include <stdlib.h>
6839 #ifdef HAVE_FCNTL_H
6840 #include <fcntl.h>
6841 #endif
6843 #ifdef HAVE_SYS_FCNTL_H
6844 #include <sys/fcntl.h>
6845 #endif
6846 main() { struct flock64 fl64;
6847 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
6848 exit(0);
6849 #else
6850 exit(1);
6851 #endif
6854 if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6855 then
6856 samba_cv_HAVE_STRUCT_FLOCK64=yes
6857 else
6858 echo "configure: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6860 rm -fr conftest*
6861 samba_cv_HAVE_STRUCT_FLOCK64=no
6863 rm -fr conftest*
6868 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
6869 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
6870 cat >> confdefs.h <<\EOF
6871 #define HAVE_STRUCT_FLOCK64 1
6876 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
6877 echo "configure:6878: checking for sysv ipc" >&5
6878 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6880 else
6882 if test "$cross_compiling" = yes; then
6883 samba_cv_HAVE_SYSV_IPC=cross
6884 else
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 #include "${srcdir-.}/tests/sysv_ipc.c"
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6891 then
6892 samba_cv_HAVE_SYSV_IPC=yes
6893 else
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6896 rm -fr conftest*
6897 samba_cv_HAVE_SYSV_IPC=no
6899 rm -fr conftest*
6904 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
6905 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
6906 cat >> confdefs.h <<\EOF
6907 #define HAVE_SYSV_IPC 1
6912 #################################################
6913 # check for smbwrapper support
6914 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
6915 echo "configure:6916: checking whether to use smbwrapper" >&5
6916 # Check whether --with-smbwrapper or --without-smbwrapper was given.
6917 if test "${with_smbwrapper+set}" = set; then
6918 withval="$with_smbwrapper"
6919 case "$withval" in
6920 yes)
6921 echo "$ac_t""yes" 1>&6
6922 cat >> confdefs.h <<\EOF
6923 #define WITH_SMBWRAPPER 1
6926 WRAP="bin/smbsh bin/smbwrapper.so"
6928 if test x$ATTEMPT_WRAP32_BUILD = x; then
6929 WRAP32=""
6930 else
6931 WRAP32=bin/smbwrapper.32.so
6934 # Conditions under which smbwrapper should not be built.
6936 if test x$PICFLAG = x; then
6937 echo No support for PIC code - disabling smbwrapper and smbsh
6938 WRAP=""
6939 WRAP32=""
6940 elif test x$ac_cv_func_syscall = xno; then
6941 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
6942 WRAP=""
6943 WRAP32=""
6947 echo "$ac_t""no" 1>&6
6949 esac
6950 else
6951 echo "$ac_t""no" 1>&6
6956 #################################################
6957 # check for the AFS filesystem
6958 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
6959 echo "configure:6960: checking whether to use AFS" >&5
6960 # Check whether --with-afs or --without-afs was given.
6961 if test "${with_afs+set}" = set; then
6962 withval="$with_afs"
6963 case "$withval" in
6964 yes)
6965 echo "$ac_t""yes" 1>&6
6966 cat >> confdefs.h <<\EOF
6967 #define WITH_AFS 1
6972 echo "$ac_t""no" 1>&6
6974 esac
6975 else
6976 echo "$ac_t""no" 1>&6
6982 #################################################
6983 # check for the DFS auth system
6984 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
6985 echo "configure:6986: checking whether to use DFS auth" >&5
6986 # Check whether --with-dfs or --without-dfs was given.
6987 if test "${with_dfs+set}" = set; then
6988 withval="$with_dfs"
6989 case "$withval" in
6990 yes)
6991 echo "$ac_t""yes" 1>&6
6992 cat >> confdefs.h <<\EOF
6993 #define WITH_DFS 1
6998 echo "$ac_t""no" 1>&6
7000 esac
7001 else
7002 echo "$ac_t""no" 1>&6
7007 #################################################
7008 # check for Kerberos IV auth system
7009 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
7010 echo "configure:7011: checking whether to use Kerberos IV" >&5
7011 # Check whether --with-krb4 or --without-krb4 was given.
7012 if test "${with_krb4+set}" = set; then
7013 withval="$with_krb4"
7014 echo "$ac_t""yes" 1>&6
7015 cat >> confdefs.h <<\EOF
7016 #define KRB4_AUTH 1
7019 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7020 echo "configure:7021: checking for dn_expand in -lresolv" >&5
7021 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7024 else
7025 ac_save_LIBS="$LIBS"
7026 LIBS="-lresolv $LIBS"
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7033 char dn_expand();
7035 int main() {
7036 dn_expand()
7037 ; return 0; }
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7040 rm -rf conftest*
7041 eval "ac_cv_lib_$ac_lib_var=yes"
7042 else
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 rm -rf conftest*
7046 eval "ac_cv_lib_$ac_lib_var=no"
7048 rm -f conftest*
7049 LIBS="$ac_save_LIBS"
7052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7055 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7056 cat >> confdefs.h <<EOF
7057 #define $ac_tr_lib 1
7060 LIBS="-lresolv $LIBS"
7062 else
7063 echo "$ac_t""no" 1>&6
7066 LIBS="$LIBS -lkrb -ldes"
7067 CFLAGS="$CFLAGS -I$withval/include"
7068 LDFLAGS="$LDFLAGS -L$withval/lib"
7069 else
7070 echo "$ac_t""no" 1>&6
7075 #################################################
7076 # check for automount support
7077 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
7078 echo "configure:7079: checking whether to use AUTOMOUNT" >&5
7079 # Check whether --with-automount or --without-automount was given.
7080 if test "${with_automount+set}" = set; then
7081 withval="$with_automount"
7082 case "$withval" in
7083 yes)
7084 echo "$ac_t""yes" 1>&6
7085 cat >> confdefs.h <<\EOF
7086 #define WITH_AUTOMOUNT 1
7091 echo "$ac_t""no" 1>&6
7093 esac
7094 else
7095 echo "$ac_t""no" 1>&6
7100 #################################################
7101 # check for smbmount support
7102 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
7103 echo "configure:7104: checking whether to use SMBMOUNT" >&5
7104 # Check whether --with-smbmount or --without-smbmount was given.
7105 if test "${with_smbmount+set}" = set; then
7106 withval="$with_smbmount"
7107 case "$withval" in
7108 yes)
7109 echo "$ac_t""yes" 1>&6
7110 cat >> confdefs.h <<\EOF
7111 #define WITH_SMBMOUNT 1
7114 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
7117 echo "$ac_t""no" 1>&6
7118 MPROGS=
7120 esac
7121 else
7122 echo "$ac_t""no" 1>&6
7123 MPROGS=
7128 #################################################
7129 # check for a LDAP password database
7130 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
7131 echo "configure:7132: checking whether to use LDAP password database" >&5
7132 # Check whether --with-ldap or --without-ldap was given.
7133 if test "${with_ldap+set}" = set; then
7134 withval="$with_ldap"
7135 case "$withval" in
7136 yes)
7137 echo "$ac_t""yes" 1>&6
7138 cat >> confdefs.h <<\EOF
7139 #define WITH_LDAP 1
7144 echo "$ac_t""no" 1>&6
7146 esac
7147 else
7148 echo "$ac_t""no" 1>&6
7153 #################################################
7154 # check for a NISPLUS password database
7155 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
7156 echo "configure:7157: checking whether to use NISPLUS password database" >&5
7157 # Check whether --with-nisplus or --without-nisplus was given.
7158 if test "${with_nisplus+set}" = set; then
7159 withval="$with_nisplus"
7160 case "$withval" in
7161 yes)
7162 echo "$ac_t""yes" 1>&6
7163 cat >> confdefs.h <<\EOF
7164 #define WITH_NISPLUS 1
7169 echo "$ac_t""no" 1>&6
7171 esac
7172 else
7173 echo "$ac_t""no" 1>&6
7178 #################################################
7179 # check for a NISPLUS_HOME support
7180 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
7181 echo "configure:7182: checking whether to use NISPLUS_HOME" >&5
7182 # Check whether --with-nisplus-home or --without-nisplus-home was given.
7183 if test "${with_nisplus_home+set}" = set; then
7184 withval="$with_nisplus_home"
7185 case "$withval" in
7186 yes)
7187 echo "$ac_t""yes" 1>&6
7188 cat >> confdefs.h <<\EOF
7189 #define WITH_NISPLUS_HOME 1
7194 echo "$ac_t""no" 1>&6
7196 esac
7197 else
7198 echo "$ac_t""no" 1>&6
7203 #################################################
7204 # check for the secure socket layer
7205 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
7206 echo "configure:7207: checking whether to use SSL" >&5
7207 # Check whether --with-ssl or --without-ssl was given.
7208 if test "${with_ssl+set}" = set; then
7209 withval="$with_ssl"
7210 case "$withval" in
7211 yes)
7212 echo "$ac_t""yes" 1>&6
7213 cat >> confdefs.h <<\EOF
7214 #define WITH_SSL 1
7219 echo "$ac_t""no" 1>&6
7221 esac
7222 else
7223 echo "$ac_t""no" 1>&6
7228 #################################################
7229 # check for experimental mmap support
7230 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
7231 echo "configure:7232: checking whether to use MMAP" >&5
7232 # Check whether --with-mmap or --without-mmap was given.
7233 if test "${with_mmap+set}" = set; then
7234 withval="$with_mmap"
7235 case "$withval" in
7236 yes)
7237 echo "$ac_t""yes" 1>&6
7238 cat >> confdefs.h <<\EOF
7239 #define WITH_MMAP 1
7244 echo "$ac_t""no" 1>&6
7246 esac
7247 else
7248 echo "$ac_t""no" 1>&6
7253 #################################################
7254 # check for syslog logging
7255 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
7256 echo "configure:7257: checking whether to use syslog logging" >&5
7257 # Check whether --with-syslog or --without-syslog was given.
7258 if test "${with_syslog+set}" = set; then
7259 withval="$with_syslog"
7260 case "$withval" in
7261 yes)
7262 echo "$ac_t""yes" 1>&6
7263 cat >> confdefs.h <<\EOF
7264 #define WITH_SYSLOG 1
7269 echo "$ac_t""no" 1>&6
7271 esac
7272 else
7273 echo "$ac_t""no" 1>&6
7278 #################################################
7279 # check for experimental netatalk resource fork support
7280 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
7281 echo "configure:7282: checking whether to support netatalk" >&5
7282 # Check whether --with-netatalk or --without-netatalk was given.
7283 if test "${with_netatalk+set}" = set; then
7284 withval="$with_netatalk"
7285 case "$withval" in
7286 yes)
7287 echo "$ac_t""yes" 1>&6
7288 cat >> confdefs.h <<\EOF
7289 #define WITH_NETATALK 1
7294 echo "$ac_t""no" 1>&6
7296 esac
7297 else
7298 echo "$ac_t""no" 1>&6
7303 #################################################
7304 # check for experimental disk-quotas support
7305 QUOTAOBJS=noquotas.o
7307 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
7308 echo "configure:7309: checking whether to support disk-quotas" >&5
7309 # Check whether --with-quotas or --without-quotas was given.
7310 if test "${with_quotas+set}" = set; then
7311 withval="$with_quotas"
7312 case "$withval" in
7313 yes)
7314 echo "$ac_t""yes" 1>&6
7315 QUOTAOBJS=quotas.o
7318 echo "$ac_t""no" 1>&6
7320 esac
7321 else
7322 echo "$ac_t""no" 1>&6
7328 #################################################
7329 # these tests are taken from the GNU fileutils package
7330 echo "checking how to get filesystem space usage" 1>&6
7331 echo "configure:7332: checking how to get filesystem space usage" >&5
7332 space=no
7334 # Test for statvfs64.
7335 if test $space = no; then
7336 # SVR4
7337 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
7338 echo "configure:7339: checking statvfs64 function (SVR4)" >&5
7339 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7341 else
7342 if test "$cross_compiling" = yes; then
7343 fu_cv_sys_stat_statvfs64=cross
7344 else
7345 cat > conftest.$ac_ext <<EOF
7346 #line 7347 "configure"
7347 #include "confdefs.h"
7349 #include <sys/types.h>
7350 #include <sys/statvfs.h>
7351 main ()
7353 struct statvfs64 fsd;
7354 exit (statfs64 (".", &fsd));
7357 if { (eval echo configure:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7358 then
7359 fu_cv_sys_stat_statvfs64=yes
7360 else
7361 echo "configure: failed program was:" >&5
7362 cat conftest.$ac_ext >&5
7363 rm -fr conftest*
7364 fu_cv_sys_stat_statvfs64=no
7366 rm -fr conftest*
7371 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
7372 if test $fu_cv_sys_stat_statvfs64 = yes; then
7373 space=yes
7374 cat >> confdefs.h <<\EOF
7375 #define STAT_STATVFS64 1
7381 # Perform only the link test since it seems there are no variants of the
7382 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
7383 # because that got a false positive on SCO OSR5. Adding the declaration
7384 # of a `struct statvfs' causes this test to fail (as it should) on such
7385 # systems. That system is reported to work fine with STAT_STATFS4 which
7386 # is what it gets when this test fails.
7387 if test $space = no; then
7388 # SVR4
7389 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
7390 echo "configure:7391: checking statvfs function (SVR4)" >&5
7391 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7393 else
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 #include <sys/types.h>
7398 #include <sys/statvfs.h>
7399 int main() {
7400 struct statvfs fsd; statvfs (0, &fsd);
7401 ; return 0; }
7403 if { (eval echo configure:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7404 rm -rf conftest*
7405 fu_cv_sys_stat_statvfs=yes
7406 else
7407 echo "configure: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7409 rm -rf conftest*
7410 fu_cv_sys_stat_statvfs=no
7412 rm -f conftest*
7415 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
7416 if test $fu_cv_sys_stat_statvfs = yes; then
7417 space=yes
7418 cat >> confdefs.h <<\EOF
7419 #define STAT_STATVFS 1
7425 if test $space = no; then
7426 # DEC Alpha running OSF/1
7427 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
7428 echo "configure:7429: checking for 3-argument statfs function (DEC OSF/1)" >&5
7429 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7431 else
7432 if test "$cross_compiling" = yes; then
7433 fu_cv_sys_stat_statfs3_osf1=no
7434 else
7435 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7439 #include <sys/param.h>
7440 #include <sys/types.h>
7441 #include <sys/mount.h>
7442 main ()
7444 struct statfs fsd;
7445 fsd.f_fsize = 0;
7446 exit (statfs (".", &fsd, sizeof (struct statfs)));
7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7450 then
7451 fu_cv_sys_stat_statfs3_osf1=yes
7452 else
7453 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7455 rm -fr conftest*
7456 fu_cv_sys_stat_statfs3_osf1=no
7458 rm -fr conftest*
7463 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
7464 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
7465 space=yes
7466 cat >> confdefs.h <<\EOF
7467 #define STAT_STATFS3_OSF1 1
7473 if test $space = no; then
7474 # AIX
7475 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
7476 echo "configure:7477: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
7477 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
7478 echo $ac_n "(cached) $ac_c" 1>&6
7479 else
7480 if test "$cross_compiling" = yes; then
7481 fu_cv_sys_stat_statfs2_bsize=no
7482 else
7483 cat > conftest.$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7487 #ifdef HAVE_SYS_PARAM_H
7488 #include <sys/param.h>
7489 #endif
7490 #ifdef HAVE_SYS_MOUNT_H
7491 #include <sys/mount.h>
7492 #endif
7493 #ifdef HAVE_SYS_VFS_H
7494 #include <sys/vfs.h>
7495 #endif
7496 main ()
7498 struct statfs fsd;
7499 fsd.f_bsize = 0;
7500 exit (statfs (".", &fsd));
7503 if { (eval echo configure:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7504 then
7505 fu_cv_sys_stat_statfs2_bsize=yes
7506 else
7507 echo "configure: failed program was:" >&5
7508 cat conftest.$ac_ext >&5
7509 rm -fr conftest*
7510 fu_cv_sys_stat_statfs2_bsize=no
7512 rm -fr conftest*
7517 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
7518 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
7519 space=yes
7520 cat >> confdefs.h <<\EOF
7521 #define STAT_STATFS2_BSIZE 1
7527 if test $space = no; then
7528 # SVR3
7529 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
7530 echo "configure:7531: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
7531 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7533 else
7534 if test "$cross_compiling" = yes; then
7535 fu_cv_sys_stat_statfs4=no
7536 else
7537 cat > conftest.$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 #include <sys/types.h>
7541 #include <sys/statfs.h>
7542 main ()
7544 struct statfs fsd;
7545 exit (statfs (".", &fsd, sizeof fsd, 0));
7548 if { (eval echo configure:7549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7549 then
7550 fu_cv_sys_stat_statfs4=yes
7551 else
7552 echo "configure: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7554 rm -fr conftest*
7555 fu_cv_sys_stat_statfs4=no
7557 rm -fr conftest*
7562 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
7563 if test $fu_cv_sys_stat_statfs4 = yes; then
7564 space=yes
7565 cat >> confdefs.h <<\EOF
7566 #define STAT_STATFS4 1
7572 if test $space = no; then
7573 # 4.4BSD and NetBSD
7574 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
7575 echo "configure:7576: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
7576 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7578 else
7579 if test "$cross_compiling" = yes; then
7580 fu_cv_sys_stat_statfs2_fsize=no
7581 else
7582 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7585 #include <sys/types.h>
7586 #ifdef HAVE_SYS_PARAM_H
7587 #include <sys/param.h>
7588 #endif
7589 #ifdef HAVE_SYS_MOUNT_H
7590 #include <sys/mount.h>
7591 #endif
7592 main ()
7594 struct statfs fsd;
7595 fsd.f_fsize = 0;
7596 exit (statfs (".", &fsd));
7599 if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7600 then
7601 fu_cv_sys_stat_statfs2_fsize=yes
7602 else
7603 echo "configure: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7605 rm -fr conftest*
7606 fu_cv_sys_stat_statfs2_fsize=no
7608 rm -fr conftest*
7613 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
7614 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
7615 space=yes
7616 cat >> confdefs.h <<\EOF
7617 #define STAT_STATFS2_FSIZE 1
7623 if test $space = no; then
7624 # Ultrix
7625 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
7626 echo "configure:7627: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
7627 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7629 else
7630 if test "$cross_compiling" = yes; then
7631 fu_cv_sys_stat_fs_data=no
7632 else
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 #include <sys/types.h>
7637 #ifdef HAVE_SYS_PARAM_H
7638 #include <sys/param.h>
7639 #endif
7640 #ifdef HAVE_SYS_MOUNT_H
7641 #include <sys/mount.h>
7642 #endif
7643 #ifdef HAVE_SYS_FS_TYPES_H
7644 #include <sys/fs_types.h>
7645 #endif
7646 main ()
7648 struct fs_data fsd;
7649 /* Ultrix's statfs returns 1 for success,
7650 0 for not mounted, -1 for failure. */
7651 exit (statfs (".", &fsd) != 1);
7654 if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7655 then
7656 fu_cv_sys_stat_fs_data=yes
7657 else
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7660 rm -fr conftest*
7661 fu_cv_sys_stat_fs_data=no
7663 rm -fr conftest*
7668 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
7669 if test $fu_cv_sys_stat_fs_data = yes; then
7670 space=yes
7671 cat >> confdefs.h <<\EOF
7672 #define STAT_STATFS2_FS_DATA 1
7678 echo "checking configure summary"
7679 if test "$cross_compiling" = yes; then
7681 else
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7685 #include "${srcdir-.}/tests/summary.c"
7687 if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7688 then
7689 echo "configure OK";
7690 else
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -fr conftest*
7694 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
7696 rm -fr conftest*
7700 builddir=`pwd`
7703 trap '' 1 2 15
7704 cat > confcache <<\EOF
7705 # This file is a shell script that caches the results of configure
7706 # tests run on this system so they can be shared between configure
7707 # scripts and configure runs. It is not useful on other systems.
7708 # If it contains results you don't want to keep, you may remove or edit it.
7710 # By default, configure uses ./config.cache as the cache file,
7711 # creating it if it does not exist already. You can give configure
7712 # the --cache-file=FILE option to use a different cache file; that is
7713 # what configure does when it calls configure scripts in
7714 # subdirectories, so they share the cache.
7715 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7716 # config.status only pays attention to the cache file if you give it the
7717 # --recheck option to rerun configure.
7720 # The following way of writing the cache mishandles newlines in values,
7721 # but we know of no workaround that is simple, portable, and efficient.
7722 # So, don't put newlines in cache variables' values.
7723 # Ultrix sh set writes to stderr and can't be redirected directly,
7724 # and sets the high bit in the cache file unless we assign to the vars.
7725 (set) 2>&1 |
7726 case `(ac_space=' '; set) 2>&1` in
7727 *ac_space=\ *)
7728 # `set' does not quote correctly, so add quotes (double-quote substitution
7729 # turns \\\\ into \\, and sed turns \\ into \).
7730 sed -n \
7731 -e "s/'/'\\\\''/g" \
7732 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7735 # `set' quotes correctly as required by POSIX, so do not add quotes.
7736 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7738 esac >> confcache
7739 if cmp -s $cache_file confcache; then
7741 else
7742 if test -w $cache_file; then
7743 echo "updating cache $cache_file"
7744 cat confcache > $cache_file
7745 else
7746 echo "not updating unwritable cache $cache_file"
7749 rm -f confcache
7751 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7754 # Let make expand exec_prefix.
7755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7757 # Any assignment to VPATH causes Sun make to only execute
7758 # the first set of double-colon rules, so remove it if not needed.
7759 # If there is a colon in the path, we need to keep it.
7760 if test "x$srcdir" = x.; then
7761 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7764 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7766 DEFS=-DHAVE_CONFIG_H
7768 # Without the "./", some shells look in PATH for config.status.
7769 : ${CONFIG_STATUS=./config.status}
7771 echo creating $CONFIG_STATUS
7772 rm -f $CONFIG_STATUS
7773 cat > $CONFIG_STATUS <<EOF
7774 #! /bin/sh
7775 # Generated automatically by configure.
7776 # Run this file to recreate the current configuration.
7777 # This directory was configured as follows,
7778 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7780 # $0 $ac_configure_args
7782 # Compiler output produced by configure, useful for debugging
7783 # configure, is in ./config.log if it exists.
7785 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7786 for ac_option
7788 case "\$ac_option" in
7789 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7790 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7791 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7792 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7793 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7794 exit 0 ;;
7795 -help | --help | --hel | --he | --h)
7796 echo "\$ac_cs_usage"; exit 0 ;;
7797 *) echo "\$ac_cs_usage"; exit 1 ;;
7798 esac
7799 done
7801 ac_given_srcdir=$srcdir
7802 ac_given_INSTALL="$INSTALL"
7804 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7806 cat >> $CONFIG_STATUS <<EOF
7808 # Protect against being on the right side of a sed subst in config.status.
7809 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7810 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7811 $ac_vpsub
7812 $extrasub
7813 s%@CFLAGS@%$CFLAGS%g
7814 s%@CPPFLAGS@%$CPPFLAGS%g
7815 s%@CXXFLAGS@%$CXXFLAGS%g
7816 s%@DEFS@%$DEFS%g
7817 s%@LDFLAGS@%$LDFLAGS%g
7818 s%@LIBS@%$LIBS%g
7819 s%@exec_prefix@%$exec_prefix%g
7820 s%@prefix@%$prefix%g
7821 s%@program_transform_name@%$program_transform_name%g
7822 s%@bindir@%$bindir%g
7823 s%@sbindir@%$sbindir%g
7824 s%@libexecdir@%$libexecdir%g
7825 s%@datadir@%$datadir%g
7826 s%@sysconfdir@%$sysconfdir%g
7827 s%@sharedstatedir@%$sharedstatedir%g
7828 s%@localstatedir@%$localstatedir%g
7829 s%@libdir@%$libdir%g
7830 s%@includedir@%$includedir%g
7831 s%@oldincludedir@%$oldincludedir%g
7832 s%@infodir@%$infodir%g
7833 s%@mandir@%$mandir%g
7834 s%@SHELL@%$SHELL%g
7835 s%@MPROGS@%$MPROGS%g
7836 s%@LDSHFLAGS@%$LDSHFLAGS%g
7837 s%@HOST_OS@%$HOST_OS%g
7838 s%@WRAP@%$WRAP%g
7839 s%@WRAP32@%$WRAP32%g
7840 s%@PICFLAG@%$PICFLAG%g
7841 s%@CC@%$CC%g
7842 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7843 s%@INSTALL_DATA@%$INSTALL_DATA%g
7844 s%@AWK@%$AWK%g
7845 s%@host@%$host%g
7846 s%@host_alias@%$host_alias%g
7847 s%@host_cpu@%$host_cpu%g
7848 s%@host_vendor@%$host_vendor%g
7849 s%@host_os@%$host_os%g
7850 s%@target@%$target%g
7851 s%@target_alias@%$target_alias%g
7852 s%@target_cpu@%$target_cpu%g
7853 s%@target_vendor@%$target_vendor%g
7854 s%@target_os@%$target_os%g
7855 s%@build@%$build%g
7856 s%@build_alias@%$build_alias%g
7857 s%@build_cpu@%$build_cpu%g
7858 s%@build_vendor@%$build_vendor%g
7859 s%@build_os@%$build_os%g
7860 s%@MAINT@%$MAINT%g
7861 s%@AUTOCONF@%$AUTOCONF%g
7862 s%@AUTOHEADER@%$AUTOHEADER%g
7863 s%@CPP@%$CPP%g
7864 s%@LIBOBJS@%$LIBOBJS%g
7865 s%@ROFF@%$ROFF%g
7866 s%@QUOTAOBJS@%$QUOTAOBJS%g
7867 s%@builddir@%$builddir%g
7869 CEOF
7872 cat >> $CONFIG_STATUS <<\EOF
7874 # Split the substitutions into bite-sized pieces for seds with
7875 # small command number limits, like on Digital OSF/1 and HP-UX.
7876 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7877 ac_file=1 # Number of current file.
7878 ac_beg=1 # First line for current file.
7879 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7880 ac_more_lines=:
7881 ac_sed_cmds=""
7882 while $ac_more_lines; do
7883 if test $ac_beg -gt 1; then
7884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7885 else
7886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7888 if test ! -s conftest.s$ac_file; then
7889 ac_more_lines=false
7890 rm -f conftest.s$ac_file
7891 else
7892 if test -z "$ac_sed_cmds"; then
7893 ac_sed_cmds="sed -f conftest.s$ac_file"
7894 else
7895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7897 ac_file=`expr $ac_file + 1`
7898 ac_beg=$ac_end
7899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7901 done
7902 if test -z "$ac_sed_cmds"; then
7903 ac_sed_cmds=cat
7907 cat >> $CONFIG_STATUS <<EOF
7909 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
7911 cat >> $CONFIG_STATUS <<\EOF
7912 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7914 case "$ac_file" in
7915 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7916 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7917 *) ac_file_in="${ac_file}.in" ;;
7918 esac
7920 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7922 # Remove last slash and all that follows it. Not all systems have dirname.
7923 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7925 # The file is in a subdirectory.
7926 test ! -d "$ac_dir" && mkdir "$ac_dir"
7927 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7928 # A "../" for each directory in $ac_dir_suffix.
7929 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7930 else
7931 ac_dir_suffix= ac_dots=
7934 case "$ac_given_srcdir" in
7935 .) srcdir=.
7936 if test -z "$ac_dots"; then top_srcdir=.
7937 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7938 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7939 *) # Relative path.
7940 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7941 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7942 esac
7944 case "$ac_given_INSTALL" in
7945 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7946 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7947 esac
7949 echo creating "$ac_file"
7950 rm -f "$ac_file"
7951 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7952 case "$ac_file" in
7953 *Makefile*) ac_comsub="1i\\
7954 # $configure_input" ;;
7955 *) ac_comsub= ;;
7956 esac
7958 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7959 sed -e "$ac_comsub
7960 s%@configure_input@%$configure_input%g
7961 s%@srcdir@%$srcdir%g
7962 s%@top_srcdir@%$top_srcdir%g
7963 s%@INSTALL@%$INSTALL%g
7964 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7965 fi; done
7966 rm -f conftest.s*
7968 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7969 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7971 # ac_d sets the value in "#define NAME VALUE" lines.
7972 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7973 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7974 ac_dC='\3'
7975 ac_dD='%g'
7976 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7977 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7978 ac_uB='\([ ]\)%\1#\2define\3'
7979 ac_uC=' '
7980 ac_uD='\4%g'
7981 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7982 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7983 ac_eB='$%\1#\2define\3'
7984 ac_eC=' '
7985 ac_eD='%g'
7987 if test "${CONFIG_HEADERS+set}" != set; then
7989 cat >> $CONFIG_STATUS <<EOF
7990 CONFIG_HEADERS="include/config.h"
7992 cat >> $CONFIG_STATUS <<\EOF
7994 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7996 case "$ac_file" in
7997 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7998 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7999 *) ac_file_in="${ac_file}.in" ;;
8000 esac
8002 echo creating $ac_file
8004 rm -f conftest.frag conftest.in conftest.out
8005 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8006 cat $ac_file_inputs > conftest.in
8010 # Transform confdefs.h into a sed script conftest.vals that substitutes
8011 # the proper values into config.h.in to produce config.h. And first:
8012 # Protect against being on the right side of a sed subst in config.status.
8013 # Protect against being in an unquoted here document in config.status.
8014 rm -f conftest.vals
8015 cat > conftest.hdr <<\EOF
8016 s/[\\&%]/\\&/g
8017 s%[\\$`]%\\&%g
8018 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8019 s%ac_d%ac_u%gp
8020 s%ac_u%ac_e%gp
8022 sed -n -f conftest.hdr confdefs.h > conftest.vals
8023 rm -f conftest.hdr
8025 # This sed command replaces #undef with comments. This is necessary, for
8026 # example, in the case of _POSIX_SOURCE, which is predefined and required
8027 # on some systems where configure will not decide to define it.
8028 cat >> conftest.vals <<\EOF
8029 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8032 # Break up conftest.vals because some shells have a limit on
8033 # the size of here documents, and old seds have small limits too.
8035 rm -f conftest.tail
8036 while :
8038 ac_lines=`grep -c . conftest.vals`
8039 # grep -c gives empty output for an empty file on some AIX systems.
8040 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8041 # Write a limited-size here document to conftest.frag.
8042 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8043 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8044 echo 'CEOF
8045 sed -f conftest.frag conftest.in > conftest.out
8046 rm -f conftest.in
8047 mv conftest.out conftest.in
8048 ' >> $CONFIG_STATUS
8049 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8050 rm -f conftest.vals
8051 mv conftest.tail conftest.vals
8052 done
8053 rm -f conftest.vals
8055 cat >> $CONFIG_STATUS <<\EOF
8056 rm -f conftest.frag conftest.h
8057 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8058 cat conftest.in >> conftest.h
8059 rm -f conftest.in
8060 if cmp -s $ac_file conftest.h 2>/dev/null; then
8061 echo "$ac_file is unchanged"
8062 rm -f conftest.h
8063 else
8064 # Remove last slash and all that follows it. Not all systems have dirname.
8065 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8067 # The file is in a subdirectory.
8068 test ! -d "$ac_dir" && mkdir "$ac_dir"
8070 rm -f $ac_file
8071 mv conftest.h $ac_file
8073 fi; done
8076 cat >> $CONFIG_STATUS <<EOF
8079 cat >> $CONFIG_STATUS <<\EOF
8081 exit 0
8083 chmod +x $CONFIG_STATUS
8084 rm -fr confdefs* $ac_clean_files
8085 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1