don't attempt to answer QFILEINFO/SMB_QUERY_FILE_STREAM_INFO queries -
[samba.git] / source3 / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-afs     Include AFS support
16   --without-afs  Don't include AFS support (default)"
17 ac_help="$ac_help
18   --with-dfs     Include DFS support
19   --without-dfs  Don't include DFS support (default)"
20 ac_help="$ac_help
21   --with-automount     Include AUTOMOUNT support
22   --without-automount  Don't include AUTOMOUNT support (default)"
23 ac_help="$ac_help
24   --with-ldap     Include LDAP support
25   --without-ldap  Don't include LDAP support (default)"
26 ac_help="$ac_help
27   --with-nisplus     Include NISPLUS password database support
28   --without-nisplus  Don't include NISPLUS password database support (default)"
29 ac_help="$ac_help
30   --with-nisplus-home     Include NISPLUS_HOME support
31   --without-nisplus-home  Don't include NISPLUS_HOME support (default)"
32 ac_help="$ac_help
33   --with-ssl     Include SSL support
34   --without-ssl  Don't include SSL support (default)"
35 ac_help="$ac_help
36   --with-mmap     Include experimental MMAP support
37   --without-mmap  Don't include MMAP support (default)"
38 ac_help="$ac_help
39   --with-syslog     Include experimental SYSLOG support
40   --without-syslog  Don't include SYSLOG support (default)"
41 ac_help="$ac_help
42   --with-netatalk     Include experimental Netatalk support
43   --without-netatalk  Don't include experimental Netatalk support (default)"
44
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
48 build=NONE
49 cache_file=./config.cache
50 exec_prefix=NONE
51 host=NONE
52 no_create=
53 nonopt=NONE
54 no_recursion=
55 prefix=NONE
56 program_prefix=NONE
57 program_suffix=NONE
58 program_transform_name=s,x,x,
59 silent=
60 site=
61 srcdir=
62 target=NONE
63 verbose=
64 x_includes=NONE
65 x_libraries=NONE
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
78
79 # Initialize some other variables.
80 subdirs=
81 MFLAGS= MAKEFLAGS=
82 # Maximum number of lines to put in a shell here document.
83 ac_max_here_lines=12
84
85 ac_prev=
86 for ac_option
87 do
88
89   # If the previous option needs an argument, assign it.
90   if test -n "$ac_prev"; then
91     eval "$ac_prev=\$ac_option"
92     ac_prev=
93     continue
94   fi
95
96   case "$ac_option" in
97   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98   *) ac_optarg= ;;
99   esac
100
101   # Accept the important Cygnus configure options, so we can diagnose typos.
102
103   case "$ac_option" in
104
105   -bindir | --bindir | --bindi | --bind | --bin | --bi)
106     ac_prev=bindir ;;
107   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108     bindir="$ac_optarg" ;;
109
110   -build | --build | --buil | --bui | --bu)
111     ac_prev=build ;;
112   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113     build="$ac_optarg" ;;
114
115   -cache-file | --cache-file | --cache-fil | --cache-fi \
116   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117     ac_prev=cache_file ;;
118   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120     cache_file="$ac_optarg" ;;
121
122   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123     ac_prev=datadir ;;
124   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125   | --da=*)
126     datadir="$ac_optarg" ;;
127
128   -disable-* | --disable-*)
129     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130     # Reject names that are not valid shell variable names.
131     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133     fi
134     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135     eval "enable_${ac_feature}=no" ;;
136
137   -enable-* | --enable-*)
138     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139     # Reject names that are not valid shell variable names.
140     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142     fi
143     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144     case "$ac_option" in
145       *=*) ;;
146       *) ac_optarg=yes ;;
147     esac
148     eval "enable_${ac_feature}='$ac_optarg'" ;;
149
150   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152   | --exec | --exe | --ex)
153     ac_prev=exec_prefix ;;
154   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156   | --exec=* | --exe=* | --ex=*)
157     exec_prefix="$ac_optarg" ;;
158
159   -gas | --gas | --ga | --g)
160     # Obsolete; use --with-gas.
161     with_gas=yes ;;
162
163   -help | --help | --hel | --he)
164     # Omit some internal or obsolete options to make the list less imposing.
165     # This message is too long to be a string in the A/UX 3.1 sh.
166     cat << EOF
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
169 Configuration:
170   --cache-file=FILE       cache test results in FILE
171   --help                  print this message
172   --no-create             do not create output files
173   --quiet, --silent       do not print \`checking...' messages
174   --version               print the version of autoconf that created configure
175 Directory and file names:
176   --prefix=PREFIX         install architecture-independent files in PREFIX
177                           [$ac_default_prefix]
178   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
179                           [same as prefix]
180   --bindir=DIR            user executables in DIR [EPREFIX/bin]
181   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
182   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
183   --datadir=DIR           read-only architecture-independent data in DIR
184                           [PREFIX/share]
185   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
186   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
187                           [PREFIX/com]
188   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
189   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
190   --includedir=DIR        C header files in DIR [PREFIX/include]
191   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
192   --infodir=DIR           info documentation in DIR [PREFIX/info]
193   --mandir=DIR            man documentation in DIR [PREFIX/man]
194   --srcdir=DIR            find the sources in DIR [configure dir or ..]
195   --program-prefix=PREFIX prepend PREFIX to installed program names
196   --program-suffix=SUFFIX append SUFFIX to installed program names
197   --program-transform-name=PROGRAM
198                           run sed PROGRAM on installed program names
199 EOF
200     cat << EOF
201 Host type:
202   --build=BUILD           configure for building on BUILD [BUILD=HOST]
203   --host=HOST             configure for HOST [guessed]
204   --target=TARGET         configure for TARGET [TARGET=HOST]
205 Features and packages:
206   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
207   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
208   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
209   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
210   --x-includes=DIR        X include files are in DIR
211   --x-libraries=DIR       X library files are in DIR
212 EOF
213     if test -n "$ac_help"; then
214       echo "--enable and --with options recognized:$ac_help"
215     fi
216     exit 0 ;;
217
218   -host | --host | --hos | --ho)
219     ac_prev=host ;;
220   -host=* | --host=* | --hos=* | --ho=*)
221     host="$ac_optarg" ;;
222
223   -includedir | --includedir | --includedi | --included | --include \
224   | --includ | --inclu | --incl | --inc)
225     ac_prev=includedir ;;
226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227   | --includ=* | --inclu=* | --incl=* | --inc=*)
228     includedir="$ac_optarg" ;;
229
230   -infodir | --infodir | --infodi | --infod | --info | --inf)
231     ac_prev=infodir ;;
232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233     infodir="$ac_optarg" ;;
234
235   -libdir | --libdir | --libdi | --libd)
236     ac_prev=libdir ;;
237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
238     libdir="$ac_optarg" ;;
239
240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241   | --libexe | --libex | --libe)
242     ac_prev=libexecdir ;;
243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244   | --libexe=* | --libex=* | --libe=*)
245     libexecdir="$ac_optarg" ;;
246
247   -localstatedir | --localstatedir | --localstatedi | --localstated \
248   | --localstate | --localstat | --localsta | --localst \
249   | --locals | --local | --loca | --loc | --lo)
250     ac_prev=localstatedir ;;
251   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254     localstatedir="$ac_optarg" ;;
255
256   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257     ac_prev=mandir ;;
258   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259     mandir="$ac_optarg" ;;
260
261   -nfp | --nfp | --nf)
262     # Obsolete; use --without-fp.
263     with_fp=no ;;
264
265   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266   | --no-cr | --no-c)
267     no_create=yes ;;
268
269   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271     no_recursion=yes ;;
272
273   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275   | --oldin | --oldi | --old | --ol | --o)
276     ac_prev=oldincludedir ;;
277   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280     oldincludedir="$ac_optarg" ;;
281
282   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283     ac_prev=prefix ;;
284   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285     prefix="$ac_optarg" ;;
286
287   -program-prefix | --program-prefix | --program-prefi | --program-pref \
288   | --program-pre | --program-pr | --program-p)
289     ac_prev=program_prefix ;;
290   -program-prefix=* | --program-prefix=* | --program-prefi=* \
291   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292     program_prefix="$ac_optarg" ;;
293
294   -program-suffix | --program-suffix | --program-suffi | --program-suff \
295   | --program-suf | --program-su | --program-s)
296     ac_prev=program_suffix ;;
297   -program-suffix=* | --program-suffix=* | --program-suffi=* \
298   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299     program_suffix="$ac_optarg" ;;
300
301   -program-transform-name | --program-transform-name \
302   | --program-transform-nam | --program-transform-na \
303   | --program-transform-n | --program-transform- \
304   | --program-transform | --program-transfor \
305   | --program-transfo | --program-transf \
306   | --program-trans | --program-tran \
307   | --progr-tra | --program-tr | --program-t)
308     ac_prev=program_transform_name ;;
309   -program-transform-name=* | --program-transform-name=* \
310   | --program-transform-nam=* | --program-transform-na=* \
311   | --program-transform-n=* | --program-transform-=* \
312   | --program-transform=* | --program-transfor=* \
313   | --program-transfo=* | --program-transf=* \
314   | --program-trans=* | --program-tran=* \
315   | --progr-tra=* | --program-tr=* | --program-t=*)
316     program_transform_name="$ac_optarg" ;;
317
318   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319   | -silent | --silent | --silen | --sile | --sil)
320     silent=yes ;;
321
322   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323     ac_prev=sbindir ;;
324   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325   | --sbi=* | --sb=*)
326     sbindir="$ac_optarg" ;;
327
328   -sharedstatedir | --sharedstatedir | --sharedstatedi \
329   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330   | --sharedst | --shareds | --shared | --share | --shar \
331   | --sha | --sh)
332     ac_prev=sharedstatedir ;;
333   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336   | --sha=* | --sh=*)
337     sharedstatedir="$ac_optarg" ;;
338
339   -site | --site | --sit)
340     ac_prev=site ;;
341   -site=* | --site=* | --sit=*)
342     site="$ac_optarg" ;;
343
344   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345     ac_prev=srcdir ;;
346   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347     srcdir="$ac_optarg" ;;
348
349   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350   | --syscon | --sysco | --sysc | --sys | --sy)
351     ac_prev=sysconfdir ;;
352   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354     sysconfdir="$ac_optarg" ;;
355
356   -target | --target | --targe | --targ | --tar | --ta | --t)
357     ac_prev=target ;;
358   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359     target="$ac_optarg" ;;
360
361   -v | -verbose | --verbose | --verbos | --verbo | --verb)
362     verbose=yes ;;
363
364   -version | --version | --versio | --versi | --vers)
365     echo "configure generated by autoconf version 2.12"
366     exit 0 ;;
367
368   -with-* | --with-*)
369     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370     # Reject names that are not valid shell variable names.
371     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373     fi
374     ac_package=`echo $ac_package| sed 's/-/_/g'`
375     case "$ac_option" in
376       *=*) ;;
377       *) ac_optarg=yes ;;
378     esac
379     eval "with_${ac_package}='$ac_optarg'" ;;
380
381   -without-* | --without-*)
382     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383     # Reject names that are not valid shell variable names.
384     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386     fi
387     ac_package=`echo $ac_package| sed 's/-/_/g'`
388     eval "with_${ac_package}=no" ;;
389
390   --x)
391     # Obsolete; use --with-x.
392     with_x=yes ;;
393
394   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395   | --x-incl | --x-inc | --x-in | --x-i)
396     ac_prev=x_includes ;;
397   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399     x_includes="$ac_optarg" ;;
400
401   -x-libraries | --x-libraries | --x-librarie | --x-librari \
402   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403     ac_prev=x_libraries ;;
404   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406     x_libraries="$ac_optarg" ;;
407
408   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409     ;;
410
411   *)
412     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413       echo "configure: warning: $ac_option: invalid host type" 1>&2
414     fi
415     if test "x$nonopt" != xNONE; then
416       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417     fi
418     nonopt="$ac_option"
419     ;;
420
421   esac
422 done
423
424 if test -n "$ac_prev"; then
425   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 fi
427
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429
430 # File descriptor usage:
431 # 0 standard input
432 # 1 file creation
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
439   exec 6>/dev/null
440 else
441   exec 6>&1
442 fi
443 exec 5>./config.log
444
445 echo "\
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
448 " 1>&5
449
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
452 ac_configure_args=
453 for ac_arg
454 do
455   case "$ac_arg" in
456   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457   | --no-cr | --no-c) ;;
458   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463   esac
464 done
465
466 # NLS nuisances.
467 # Only set these to C if already set.  These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
475
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 echo > confdefs.h
480
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=include/includes.h
484
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487   ac_srcdir_defaulted=yes
488   # Try the directory containing this script, then its parent.
489   ac_prog=$0
490   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492   srcdir=$ac_confdir
493   if test ! -r $srcdir/$ac_unique_file; then
494     srcdir=..
495   fi
496 else
497   ac_srcdir_defaulted=no
498 fi
499 if test ! -r $srcdir/$ac_unique_file; then
500   if test "$ac_srcdir_defaulted" = yes; then
501     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502   else
503     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504   fi
505 fi
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510   if test "x$prefix" != xNONE; then
511     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512   else
513     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514   fi
515 fi
516 for ac_site_file in $CONFIG_SITE; do
517   if test -r "$ac_site_file"; then
518     echo "loading site script $ac_site_file"
519     . "$ac_site_file"
520   fi
521 done
522
523 if test -r "$cache_file"; then
524   echo "loading cache $cache_file"
525   . $cache_file
526 else
527   echo "creating cache $cache_file"
528   > $cache_file
529 fi
530
531 ac_ext=c
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
537
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541     ac_n= ac_c='
542 ' ac_t='        '
543   else
544     ac_n=-n ac_c= ac_t=
545   fi
546 else
547   ac_n= ac_c='\c' ac_t=
548 fi
549
550
551
552
553 # Extract the first word of "gcc", so it can be a program name with args.
554 set dummy gcc; ac_word=$2
555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
556 echo "configure:557: checking for $ac_word" >&5
557 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558   echo $ac_n "(cached) $ac_c" 1>&6
559 else
560   if test -n "$CC"; then
561   ac_cv_prog_CC="$CC" # Let the user override the test.
562 else
563   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
564   for ac_dir in $PATH; do
565     test -z "$ac_dir" && ac_dir=.
566     if test -f $ac_dir/$ac_word; then
567       ac_cv_prog_CC="gcc"
568       break
569     fi
570   done
571   IFS="$ac_save_ifs"
572 fi
573 fi
574 CC="$ac_cv_prog_CC"
575 if test -n "$CC"; then
576   echo "$ac_t""$CC" 1>&6
577 else
578   echo "$ac_t""no" 1>&6
579 fi
580
581 if test -z "$CC"; then
582   # Extract the first word of "cc", so it can be a program name with args.
583 set dummy cc; ac_word=$2
584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
585 echo "configure:586: checking for $ac_word" >&5
586 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
587   echo $ac_n "(cached) $ac_c" 1>&6
588 else
589   if test -n "$CC"; then
590   ac_cv_prog_CC="$CC" # Let the user override the test.
591 else
592   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
593   ac_prog_rejected=no
594   for ac_dir in $PATH; do
595     test -z "$ac_dir" && ac_dir=.
596     if test -f $ac_dir/$ac_word; then
597       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
598         ac_prog_rejected=yes
599         continue
600       fi
601       ac_cv_prog_CC="cc"
602       break
603     fi
604   done
605   IFS="$ac_save_ifs"
606 if test $ac_prog_rejected = yes; then
607   # We found a bogon in the path, so make sure we never use it.
608   set dummy $ac_cv_prog_CC
609   shift
610   if test $# -gt 0; then
611     # We chose a different compiler from the bogus one.
612     # However, it has the same basename, so the bogon will be chosen
613     # first if we set CC to just the basename; use the full file name.
614     shift
615     set dummy "$ac_dir/$ac_word" "$@"
616     shift
617     ac_cv_prog_CC="$@"
618   fi
619 fi
620 fi
621 fi
622 CC="$ac_cv_prog_CC"
623 if test -n "$CC"; then
624   echo "$ac_t""$CC" 1>&6
625 else
626   echo "$ac_t""no" 1>&6
627 fi
628
629   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
630 fi
631
632 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
633 echo "configure:634: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
634
635 ac_ext=c
636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
637 ac_cpp='$CPP $CPPFLAGS'
638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
639 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
640 cross_compiling=$ac_cv_prog_cc_cross
641
642 cat > conftest.$ac_ext <<EOF
643 #line 644 "configure"
644 #include "confdefs.h"
645 main(){return(0);}
646 EOF
647 if { (eval echo configure:648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
648   ac_cv_prog_cc_works=yes
649   # If we can't run a trivial program, we are probably using a cross compiler.
650   if (./conftest; exit) 2>/dev/null; then
651     ac_cv_prog_cc_cross=no
652   else
653     ac_cv_prog_cc_cross=yes
654   fi
655 else
656   echo "configure: failed program was:" >&5
657   cat conftest.$ac_ext >&5
658   ac_cv_prog_cc_works=no
659 fi
660 rm -fr conftest*
661
662 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
663 if test $ac_cv_prog_cc_works = no; then
664   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
665 fi
666 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
667 echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
668 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
669 cross_compiling=$ac_cv_prog_cc_cross
670
671 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
672 echo "configure:673: checking whether we are using GNU C" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
674   echo $ac_n "(cached) $ac_c" 1>&6
675 else
676   cat > conftest.c <<EOF
677 #ifdef __GNUC__
678   yes;
679 #endif
680 EOF
681 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
682   ac_cv_prog_gcc=yes
683 else
684   ac_cv_prog_gcc=no
685 fi
686 fi
687
688 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
689
690 if test $ac_cv_prog_gcc = yes; then
691   GCC=yes
692   ac_test_CFLAGS="${CFLAGS+set}"
693   ac_save_CFLAGS="$CFLAGS"
694   CFLAGS=
695   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
696 echo "configure:697: checking whether ${CC-cc} accepts -g" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
698   echo $ac_n "(cached) $ac_c" 1>&6
699 else
700   echo 'void f(){}' > conftest.c
701 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
702   ac_cv_prog_cc_g=yes
703 else
704   ac_cv_prog_cc_g=no
705 fi
706 rm -f conftest*
707
708 fi
709
710 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
711   if test "$ac_test_CFLAGS" = set; then
712     CFLAGS="$ac_save_CFLAGS"
713   elif test $ac_cv_prog_cc_g = yes; then
714     CFLAGS="-g -O2"
715   else
716     CFLAGS="-O2"
717   fi
718 else
719   GCC=
720   test "${CFLAGS+set}" = set || CFLAGS="-g"
721 fi
722
723 ac_aux_dir=
724 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
725   if test -f $ac_dir/install-sh; then
726     ac_aux_dir=$ac_dir
727     ac_install_sh="$ac_aux_dir/install-sh -c"
728     break
729   elif test -f $ac_dir/install.sh; then
730     ac_aux_dir=$ac_dir
731     ac_install_sh="$ac_aux_dir/install.sh -c"
732     break
733   fi
734 done
735 if test -z "$ac_aux_dir"; then
736   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
737 fi
738 ac_config_guess=$ac_aux_dir/config.guess
739 ac_config_sub=$ac_aux_dir/config.sub
740 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
741
742 # Find a good install program.  We prefer a C program (faster),
743 # so one script is as good as another.  But avoid the broken or
744 # incompatible versions:
745 # SysV /etc/install, /usr/sbin/install
746 # SunOS /usr/etc/install
747 # IRIX /sbin/install
748 # AIX /bin/install
749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
751 # ./install, which can be erroneously created by make from ./install.sh.
752 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
753 echo "configure:754: checking for a BSD compatible install" >&5
754 if test -z "$INSTALL"; then
755 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
756   echo $ac_n "(cached) $ac_c" 1>&6
757 else
758     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
759   for ac_dir in $PATH; do
760     # Account for people who put trailing slashes in PATH elements.
761     case "$ac_dir/" in
762     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
763     *)
764       # OSF1 and SCO ODT 3.0 have their own names for install.
765       for ac_prog in ginstall installbsd scoinst install; do
766         if test -f $ac_dir/$ac_prog; then
767           if test $ac_prog = install &&
768             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
769             # AIX install.  It has an incompatible calling convention.
770             # OSF/1 installbsd also uses dspmsg, but is usable.
771             :
772           else
773             ac_cv_path_install="$ac_dir/$ac_prog -c"
774             break 2
775           fi
776         fi
777       done
778       ;;
779     esac
780   done
781   IFS="$ac_save_IFS"
782
783 fi
784   if test "${ac_cv_path_install+set}" = set; then
785     INSTALL="$ac_cv_path_install"
786   else
787     # As a last resort, use the slow shell script.  We don't cache a
788     # path for INSTALL within a source directory, because that will
789     # break other packages using the cache if that directory is
790     # removed, or if the path is relative.
791     INSTALL="$ac_install_sh"
792   fi
793 fi
794 echo "$ac_t""$INSTALL" 1>&6
795
796 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
797 # It thinks the first close brace ends the variable substitution.
798 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
799
800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
801
802
803 for ac_prog in mawk gawk nawk awk
804 do
805 # Extract the first word of "$ac_prog", so it can be a program name with args.
806 set dummy $ac_prog; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
810   echo $ac_n "(cached) $ac_c" 1>&6
811 else
812   if test -n "$AWK"; then
813   ac_cv_prog_AWK="$AWK" # Let the user override the test.
814 else
815   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
816   for ac_dir in $PATH; do
817     test -z "$ac_dir" && ac_dir=.
818     if test -f $ac_dir/$ac_word; then
819       ac_cv_prog_AWK="$ac_prog"
820       break
821     fi
822   done
823   IFS="$ac_save_ifs"
824 fi
825 fi
826 AWK="$ac_cv_prog_AWK"
827 if test -n "$AWK"; then
828   echo "$ac_t""$AWK" 1>&6
829 else
830   echo "$ac_t""no" 1>&6
831 fi
832
833 test -n "$AWK" && break
834 done
835
836
837
838 # Do some error checking and defaulting for the host and target type.
839 # The inputs are:
840 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
841 #
842 # The rules are:
843 # 1. You are not allowed to specify --host, --target, and nonopt at the
844 #    same time.
845 # 2. Host defaults to nonopt.
846 # 3. If nonopt is not specified, then host defaults to the current host,
847 #    as determined by config.guess.
848 # 4. Target and build default to nonopt.
849 # 5. If nonopt is not specified, then target and build default to host.
850
851 # The aliases save the names the user supplied, while $host etc.
852 # will get canonicalized.
853 case $host---$target---$nonopt in
854 NONE---*---* | *---NONE---* | *---*---NONE) ;;
855 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
856 esac
857
858
859 # Make sure we can run config.sub.
860 if $ac_config_sub sun4 >/dev/null 2>&1; then :
861 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
862 fi
863
864 echo $ac_n "checking host system type""... $ac_c" 1>&6
865 echo "configure:866: checking host system type" >&5
866
867 host_alias=$host
868 case "$host_alias" in
869 NONE)
870   case $nonopt in
871   NONE)
872     if host_alias=`$ac_config_guess`; then :
873     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
874     fi ;;
875   *) host_alias=$nonopt ;;
876   esac ;;
877 esac
878
879 host=`$ac_config_sub $host_alias`
880 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
881 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
882 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
883 echo "$ac_t""$host" 1>&6
884
885 echo $ac_n "checking target system type""... $ac_c" 1>&6
886 echo "configure:887: checking target system type" >&5
887
888 target_alias=$target
889 case "$target_alias" in
890 NONE)
891   case $nonopt in
892   NONE) target_alias=$host_alias ;;
893   *) target_alias=$nonopt ;;
894   esac ;;
895 esac
896
897 target=`$ac_config_sub $target_alias`
898 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
899 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
900 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
901 echo "$ac_t""$target" 1>&6
902
903 echo $ac_n "checking build system type""... $ac_c" 1>&6
904 echo "configure:905: checking build system type" >&5
905
906 build_alias=$build
907 case "$build_alias" in
908 NONE)
909   case $nonopt in
910   NONE) build_alias=$host_alias ;;
911   *) build_alias=$nonopt ;;
912   esac ;;
913 esac
914
915 build=`$ac_config_sub $build_alias`
916 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
917 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
918 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
919 echo "$ac_t""$build" 1>&6
920
921 test "$host_alias" != "$target_alias" &&
922   test "$program_prefix$program_suffix$program_transform_name" = \
923     NONENONEs,x,x, &&
924   program_prefix=${target_alias}-
925
926 case "$host_os" in
927         *linux*)   cat >> confdefs.h <<\EOF
928 #define LINUX 1
929 EOF
930 ;;
931         *solaris*) cat >> confdefs.h <<\EOF
932 #define SUNOS5 1
933 EOF
934 ;;
935         *sunos*) cat >> confdefs.h <<\EOF
936 #define SUNOS4 1
937 EOF
938 ;;
939         *irix*) cat >> confdefs.h <<\EOF
940 #define IRIX 1
941 EOF
942 ;;
943         *aix*) cat >> confdefs.h <<\EOF
944 #define AIX 1
945 EOF
946 ;;
947         *hpux*) cat >> confdefs.h <<\EOF
948 #define HPUX 1
949 EOF
950 ;;
951         *qnx*) cat >> confdefs.h <<\EOF
952 #define QNX 1
953 EOF
954 ;;
955         *osf1*) cat >> confdefs.h <<\EOF
956 #define OSF1 1
957 EOF
958 ;;
959         *sco*) cat >> confdefs.h <<\EOF
960 #define SCO 1
961 EOF
962 ;;
963         *next2*) cat >> confdefs.h <<\EOF
964 #define NEXT2 1
965 EOF
966 ;;
967 esac
968
969 echo $ac_n "checking for inline""... $ac_c" 1>&6
970 echo "configure:971: checking for inline" >&5
971 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
972   echo $ac_n "(cached) $ac_c" 1>&6
973 else
974   ac_cv_c_inline=no
975 for ac_kw in inline __inline__ __inline; do
976   cat > conftest.$ac_ext <<EOF
977 #line 978 "configure"
978 #include "confdefs.h"
979
980 int main() {
981 } $ac_kw foo() {
982 ; return 0; }
983 EOF
984 if { (eval echo configure:985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
985   rm -rf conftest*
986   ac_cv_c_inline=$ac_kw; break
987 else
988   echo "configure: failed program was:" >&5
989   cat conftest.$ac_ext >&5
990 fi
991 rm -f conftest*
992 done
993
994 fi
995
996 echo "$ac_t""$ac_cv_c_inline" 1>&6
997 case "$ac_cv_c_inline" in
998   inline | yes) ;;
999   no) cat >> confdefs.h <<\EOF
1000 #define inline 
1001 EOF
1002  ;;
1003   *)  cat >> confdefs.h <<EOF
1004 #define inline $ac_cv_c_inline
1005 EOF
1006  ;;
1007 esac
1008
1009 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010 echo "configure:1011: checking how to run the C preprocessor" >&5
1011 # On Suns, sometimes $CPP names a directory.
1012 if test -n "$CPP" && test -d "$CPP"; then
1013   CPP=
1014 fi
1015 if test -z "$CPP"; then
1016 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1017   echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019     # This must be in double quotes, not single quotes, because CPP may get
1020   # substituted into the Makefile and "${CC-cc}" will confuse make.
1021   CPP="${CC-cc} -E"
1022   # On the NeXT, cc -E runs the code through the compiler's parser,
1023   # not just through cpp.
1024   cat > conftest.$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1027 #include <assert.h>
1028 Syntax Error
1029 EOF
1030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031 { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032 ac_err=`grep -v '^ *+' conftest.out`
1033 if test -z "$ac_err"; then
1034   :
1035 else
1036   echo "$ac_err" >&5
1037   echo "configure: failed program was:" >&5
1038   cat conftest.$ac_ext >&5
1039   rm -rf conftest*
1040   CPP="${CC-cc} -E -traditional-cpp"
1041   cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1044 #include <assert.h>
1045 Syntax Error
1046 EOF
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out`
1050 if test -z "$ac_err"; then
1051   :
1052 else
1053   echo "$ac_err" >&5
1054   echo "configure: failed program was:" >&5
1055   cat conftest.$ac_ext >&5
1056   rm -rf conftest*
1057   CPP=/lib/cpp
1058 fi
1059 rm -f conftest*
1060 fi
1061 rm -f conftest*
1062   ac_cv_prog_CPP="$CPP"
1063 fi
1064   CPP="$ac_cv_prog_CPP"
1065 else
1066   ac_cv_prog_CPP="$CPP"
1067 fi
1068 echo "$ac_t""$CPP" 1>&6
1069
1070 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1071 echo "configure:1072: checking for ANSI C header files" >&5
1072 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1073   echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075   cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1078 #include <stdlib.h>
1079 #include <stdarg.h>
1080 #include <string.h>
1081 #include <float.h>
1082 EOF
1083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1084 { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1085 ac_err=`grep -v '^ *+' conftest.out`
1086 if test -z "$ac_err"; then
1087   rm -rf conftest*
1088   ac_cv_header_stdc=yes
1089 else
1090   echo "$ac_err" >&5
1091   echo "configure: failed program was:" >&5
1092   cat conftest.$ac_ext >&5
1093   rm -rf conftest*
1094   ac_cv_header_stdc=no
1095 fi
1096 rm -f conftest*
1097
1098 if test $ac_cv_header_stdc = yes; then
1099   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1103 #include <string.h>
1104 EOF
1105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1106   egrep "memchr" >/dev/null 2>&1; then
1107   :
1108 else
1109   rm -rf conftest*
1110   ac_cv_header_stdc=no
1111 fi
1112 rm -f conftest*
1113
1114 fi
1115
1116 if test $ac_cv_header_stdc = yes; then
1117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1121 #include <stdlib.h>
1122 EOF
1123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1124   egrep "free" >/dev/null 2>&1; then
1125   :
1126 else
1127   rm -rf conftest*
1128   ac_cv_header_stdc=no
1129 fi
1130 rm -f conftest*
1131
1132 fi
1133
1134 if test $ac_cv_header_stdc = yes; then
1135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1136 if test "$cross_compiling" = yes; then
1137   :
1138 else
1139   cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1142 #include <ctype.h>
1143 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1144 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1146 int main () { int i; for (i = 0; i < 256; i++)
1147 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1148 exit (0); }
1149
1150 EOF
1151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1152 then
1153   :
1154 else
1155   echo "configure: failed program was:" >&5
1156   cat conftest.$ac_ext >&5
1157   rm -fr conftest*
1158   ac_cv_header_stdc=no
1159 fi
1160 rm -fr conftest*
1161 fi
1162
1163 fi
1164 fi
1165
1166 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1167 if test $ac_cv_header_stdc = yes; then
1168   cat >> confdefs.h <<\EOF
1169 #define STDC_HEADERS 1
1170 EOF
1171
1172 fi
1173
1174 ac_header_dirent=no
1175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1176 do
1177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1178 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_hdr that defines DIR" >&5
1180 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1181   echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183   cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 #include <sys/types.h>
1187 #include <$ac_hdr>
1188 int main() {
1189 DIR *dirp = 0;
1190 ; return 0; }
1191 EOF
1192 if { (eval echo configure:1193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1193   rm -rf conftest*
1194   eval "ac_cv_header_dirent_$ac_safe=yes"
1195 else
1196   echo "configure: failed program was:" >&5
1197   cat conftest.$ac_ext >&5
1198   rm -rf conftest*
1199   eval "ac_cv_header_dirent_$ac_safe=no"
1200 fi
1201 rm -f conftest*
1202 fi
1203 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1204   echo "$ac_t""yes" 1>&6
1205     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1206   cat >> confdefs.h <<EOF
1207 #define $ac_tr_hdr 1
1208 EOF
1209  ac_header_dirent=$ac_hdr; break
1210 else
1211   echo "$ac_t""no" 1>&6
1212 fi
1213 done
1214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1215 if test $ac_header_dirent = dirent.h; then
1216 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1217 echo "configure:1218: checking for opendir in -ldir" >&5
1218 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1220   echo $ac_n "(cached) $ac_c" 1>&6
1221 else
1222   ac_save_LIBS="$LIBS"
1223 LIBS="-ldir  $LIBS"
1224 cat > conftest.$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1227 /* Override any gcc2 internal prototype to avoid an error.  */
1228 /* We use char because int might match the return type of a gcc2
1229     builtin and then its argument prototype would still apply.  */
1230 char opendir();
1231
1232 int main() {
1233 opendir()
1234 ; return 0; }
1235 EOF
1236 if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1237   rm -rf conftest*
1238   eval "ac_cv_lib_$ac_lib_var=yes"
1239 else
1240   echo "configure: failed program was:" >&5
1241   cat conftest.$ac_ext >&5
1242   rm -rf conftest*
1243   eval "ac_cv_lib_$ac_lib_var=no"
1244 fi
1245 rm -f conftest*
1246 LIBS="$ac_save_LIBS"
1247
1248 fi
1249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1250   echo "$ac_t""yes" 1>&6
1251   LIBS="$LIBS -ldir"
1252 else
1253   echo "$ac_t""no" 1>&6
1254 fi
1255
1256 else
1257 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1258 echo "configure:1259: checking for opendir in -lx" >&5
1259 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1261   echo $ac_n "(cached) $ac_c" 1>&6
1262 else
1263   ac_save_LIBS="$LIBS"
1264 LIBS="-lx  $LIBS"
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1268 /* Override any gcc2 internal prototype to avoid an error.  */
1269 /* We use char because int might match the return type of a gcc2
1270     builtin and then its argument prototype would still apply.  */
1271 char opendir();
1272
1273 int main() {
1274 opendir()
1275 ; return 0; }
1276 EOF
1277 if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1278   rm -rf conftest*
1279   eval "ac_cv_lib_$ac_lib_var=yes"
1280 else
1281   echo "configure: failed program was:" >&5
1282   cat conftest.$ac_ext >&5
1283   rm -rf conftest*
1284   eval "ac_cv_lib_$ac_lib_var=no"
1285 fi
1286 rm -f conftest*
1287 LIBS="$ac_save_LIBS"
1288
1289 fi
1290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1291   echo "$ac_t""yes" 1>&6
1292   LIBS="$LIBS -lx"
1293 else
1294   echo "$ac_t""no" 1>&6
1295 fi
1296
1297 fi
1298
1299 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether time.h and sys/time.h may both be included" >&5
1301 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1302   echo $ac_n "(cached) $ac_c" 1>&6
1303 else
1304   cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 #include <sys/types.h>
1308 #include <sys/time.h>
1309 #include <time.h>
1310 int main() {
1311 struct tm *tp;
1312 ; return 0; }
1313 EOF
1314 if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1315   rm -rf conftest*
1316   ac_cv_header_time=yes
1317 else
1318   echo "configure: failed program was:" >&5
1319   cat conftest.$ac_ext >&5
1320   rm -rf conftest*
1321   ac_cv_header_time=no
1322 fi
1323 rm -f conftest*
1324 fi
1325
1326 echo "$ac_t""$ac_cv_header_time" 1>&6
1327 if test $ac_cv_header_time = yes; then
1328   cat >> confdefs.h <<\EOF
1329 #define TIME_WITH_SYS_TIME 1
1330 EOF
1331
1332 fi
1333
1334 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1335 echo "configure:1336: checking for sys/wait.h that is POSIX.1 compatible" >&5
1336 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1337   echo $ac_n "(cached) $ac_c" 1>&6
1338 else
1339   cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 #include <sys/types.h>
1343 #include <sys/wait.h>
1344 #ifndef WEXITSTATUS
1345 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1346 #endif
1347 #ifndef WIFEXITED
1348 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1349 #endif
1350 int main() {
1351 int s;
1352 wait (&s);
1353 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1354 ; return 0; }
1355 EOF
1356 if { (eval echo configure:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1357   rm -rf conftest*
1358   ac_cv_header_sys_wait_h=yes
1359 else
1360   echo "configure: failed program was:" >&5
1361   cat conftest.$ac_ext >&5
1362   rm -rf conftest*
1363   ac_cv_header_sys_wait_h=no
1364 fi
1365 rm -f conftest*
1366 fi
1367
1368 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1369 if test $ac_cv_header_sys_wait_h = yes; then
1370   cat >> confdefs.h <<\EOF
1371 #define HAVE_SYS_WAIT_H 1
1372 EOF
1373
1374 fi
1375
1376 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1377 do
1378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1380 echo "configure:1381: checking for $ac_hdr" >&5
1381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1382   echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384   cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1387 #include <$ac_hdr>
1388 EOF
1389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1390 { (eval echo configure:1391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1391 ac_err=`grep -v '^ *+' conftest.out`
1392 if test -z "$ac_err"; then
1393   rm -rf conftest*
1394   eval "ac_cv_header_$ac_safe=yes"
1395 else
1396   echo "$ac_err" >&5
1397   echo "configure: failed program was:" >&5
1398   cat conftest.$ac_ext >&5
1399   rm -rf conftest*
1400   eval "ac_cv_header_$ac_safe=no"
1401 fi
1402 rm -f conftest*
1403 fi
1404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1405   echo "$ac_t""yes" 1>&6
1406     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1407   cat >> confdefs.h <<EOF
1408 #define $ac_tr_hdr 1
1409 EOF
1410  
1411 else
1412   echo "$ac_t""no" 1>&6
1413 fi
1414 done
1415
1416 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1417 do
1418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_hdr" >&5
1421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1422   echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424   cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 #include <$ac_hdr>
1428 EOF
1429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1431 ac_err=`grep -v '^ *+' conftest.out`
1432 if test -z "$ac_err"; then
1433   rm -rf conftest*
1434   eval "ac_cv_header_$ac_safe=yes"
1435 else
1436   echo "$ac_err" >&5
1437   echo "configure: failed program was:" >&5
1438   cat conftest.$ac_ext >&5
1439   rm -rf conftest*
1440   eval "ac_cv_header_$ac_safe=no"
1441 fi
1442 rm -f conftest*
1443 fi
1444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1445   echo "$ac_t""yes" 1>&6
1446     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1447   cat >> confdefs.h <<EOF
1448 #define $ac_tr_hdr 1
1449 EOF
1450  
1451 else
1452   echo "$ac_t""no" 1>&6
1453 fi
1454 done
1455
1456 for ac_hdr in compat.h rpcsvc/ypclnt.h sys/param.h ctype.h sys/wait.h
1457 do
1458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_hdr" >&5
1461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1462   echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464   cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <$ac_hdr>
1468 EOF
1469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1470 { (eval echo configure:1471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1471 ac_err=`grep -v '^ *+' conftest.out`
1472 if test -z "$ac_err"; then
1473   rm -rf conftest*
1474   eval "ac_cv_header_$ac_safe=yes"
1475 else
1476   echo "$ac_err" >&5
1477   echo "configure: failed program was:" >&5
1478   cat conftest.$ac_ext >&5
1479   rm -rf conftest*
1480   eval "ac_cv_header_$ac_safe=no"
1481 fi
1482 rm -f conftest*
1483 fi
1484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1485   echo "$ac_t""yes" 1>&6
1486     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1487   cat >> confdefs.h <<EOF
1488 #define $ac_tr_hdr 1
1489 EOF
1490  
1491 else
1492   echo "$ac_t""no" 1>&6
1493 fi
1494 done
1495
1496 for ac_hdr in sys/resource.h sys/ioctl.h sys/mode.h
1497 do
1498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1500 echo "configure:1501: checking for $ac_hdr" >&5
1501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1502   echo $ac_n "(cached) $ac_c" 1>&6
1503 else
1504   cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1507 #include <$ac_hdr>
1508 EOF
1509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1510 { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1511 ac_err=`grep -v '^ *+' conftest.out`
1512 if test -z "$ac_err"; then
1513   rm -rf conftest*
1514   eval "ac_cv_header_$ac_safe=yes"
1515 else
1516   echo "$ac_err" >&5
1517   echo "configure: failed program was:" >&5
1518   cat conftest.$ac_ext >&5
1519   rm -rf conftest*
1520   eval "ac_cv_header_$ac_safe=no"
1521 fi
1522 rm -f conftest*
1523 fi
1524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1525   echo "$ac_t""yes" 1>&6
1526     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1527   cat >> confdefs.h <<EOF
1528 #define $ac_tr_hdr 1
1529 EOF
1530  
1531 else
1532   echo "$ac_t""no" 1>&6
1533 fi
1534 done
1535
1536 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1537 do
1538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_hdr" >&5
1541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1542   echo $ac_n "(cached) $ac_c" 1>&6
1543 else
1544   cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 #include <$ac_hdr>
1548 EOF
1549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1550 { (eval echo configure:1551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1551 ac_err=`grep -v '^ *+' conftest.out`
1552 if test -z "$ac_err"; then
1553   rm -rf conftest*
1554   eval "ac_cv_header_$ac_safe=yes"
1555 else
1556   echo "$ac_err" >&5
1557   echo "configure: failed program was:" >&5
1558   cat conftest.$ac_ext >&5
1559   rm -rf conftest*
1560   eval "ac_cv_header_$ac_safe=no"
1561 fi
1562 rm -f conftest*
1563 fi
1564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1565   echo "$ac_t""yes" 1>&6
1566     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1567   cat >> confdefs.h <<EOF
1568 #define $ac_tr_hdr 1
1569 EOF
1570  
1571 else
1572   echo "$ac_t""no" 1>&6
1573 fi
1574 done
1575
1576 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1577 do
1578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_hdr" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1582   echo $ac_n "(cached) $ac_c" 1>&6
1583 else
1584   cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 #include <$ac_hdr>
1588 EOF
1589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1590 { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1591 ac_err=`grep -v '^ *+' conftest.out`
1592 if test -z "$ac_err"; then
1593   rm -rf conftest*
1594   eval "ac_cv_header_$ac_safe=yes"
1595 else
1596   echo "$ac_err" >&5
1597   echo "configure: failed program was:" >&5
1598   cat conftest.$ac_ext >&5
1599   rm -rf conftest*
1600   eval "ac_cv_header_$ac_safe=no"
1601 fi
1602 rm -f conftest*
1603 fi
1604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1605   echo "$ac_t""yes" 1>&6
1606     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1607   cat >> confdefs.h <<EOF
1608 #define $ac_tr_hdr 1
1609 EOF
1610  
1611 else
1612   echo "$ac_t""no" 1>&6
1613 fi
1614 done
1615
1616 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1617 do
1618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1620 echo "configure:1621: checking for $ac_hdr" >&5
1621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1622   echo $ac_n "(cached) $ac_c" 1>&6
1623 else
1624   cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 #include <$ac_hdr>
1628 EOF
1629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err=`grep -v '^ *+' conftest.out`
1632 if test -z "$ac_err"; then
1633   rm -rf conftest*
1634   eval "ac_cv_header_$ac_safe=yes"
1635 else
1636   echo "$ac_err" >&5
1637   echo "configure: failed program was:" >&5
1638   cat conftest.$ac_ext >&5
1639   rm -rf conftest*
1640   eval "ac_cv_header_$ac_safe=no"
1641 fi
1642 rm -f conftest*
1643 fi
1644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1645   echo "$ac_t""yes" 1>&6
1646     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1647   cat >> confdefs.h <<EOF
1648 #define $ac_tr_hdr 1
1649 EOF
1650  
1651 else
1652   echo "$ac_t""no" 1>&6
1653 fi
1654 done
1655
1656 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1657 do
1658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_hdr" >&5
1661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1662   echo $ac_n "(cached) $ac_c" 1>&6
1663 else
1664   cat > conftest.$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1667 #include <$ac_hdr>
1668 EOF
1669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err=`grep -v '^ *+' conftest.out`
1672 if test -z "$ac_err"; then
1673   rm -rf conftest*
1674   eval "ac_cv_header_$ac_safe=yes"
1675 else
1676   echo "$ac_err" >&5
1677   echo "configure: failed program was:" >&5
1678   cat conftest.$ac_ext >&5
1679   rm -rf conftest*
1680   eval "ac_cv_header_$ac_safe=no"
1681 fi
1682 rm -f conftest*
1683 fi
1684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1685   echo "$ac_t""yes" 1>&6
1686     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1687   cat >> confdefs.h <<EOF
1688 #define $ac_tr_hdr 1
1689 EOF
1690  
1691 else
1692   echo "$ac_t""no" 1>&6
1693 fi
1694 done
1695
1696
1697 echo $ac_n "checking size of int""... $ac_c" 1>&6
1698 echo "configure:1699: checking size of int" >&5
1699 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1700   echo $ac_n "(cached) $ac_c" 1>&6
1701 else
1702   if test "$cross_compiling" = yes; then
1703     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1704 else
1705   cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 #include <stdio.h>
1709 main()
1710 {
1711   FILE *f=fopen("conftestval", "w");
1712   if (!f) exit(1);
1713   fprintf(f, "%d\n", sizeof(int));
1714   exit(0);
1715 }
1716 EOF
1717 if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1718 then
1719   ac_cv_sizeof_int=`cat conftestval`
1720 else
1721   echo "configure: failed program was:" >&5
1722   cat conftest.$ac_ext >&5
1723   rm -fr conftest*
1724   ac_cv_sizeof_int=0
1725 fi
1726 rm -fr conftest*
1727 fi
1728
1729 fi
1730 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1731 cat >> confdefs.h <<EOF
1732 #define SIZEOF_INT $ac_cv_sizeof_int
1733 EOF
1734
1735
1736 echo $ac_n "checking size of long""... $ac_c" 1>&6
1737 echo "configure:1738: checking size of long" >&5
1738 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1739   echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741   if test "$cross_compiling" = yes; then
1742     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1743 else
1744   cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1747 #include <stdio.h>
1748 main()
1749 {
1750   FILE *f=fopen("conftestval", "w");
1751   if (!f) exit(1);
1752   fprintf(f, "%d\n", sizeof(long));
1753   exit(0);
1754 }
1755 EOF
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1757 then
1758   ac_cv_sizeof_long=`cat conftestval`
1759 else
1760   echo "configure: failed program was:" >&5
1761   cat conftest.$ac_ext >&5
1762   rm -fr conftest*
1763   ac_cv_sizeof_long=0
1764 fi
1765 rm -fr conftest*
1766 fi
1767
1768 fi
1769 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1770 cat >> confdefs.h <<EOF
1771 #define SIZEOF_LONG $ac_cv_sizeof_long
1772 EOF
1773
1774
1775 echo $ac_n "checking size of short""... $ac_c" 1>&6
1776 echo "configure:1777: checking size of short" >&5
1777 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1778   echo $ac_n "(cached) $ac_c" 1>&6
1779 else
1780   if test "$cross_compiling" = yes; then
1781     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1782 else
1783   cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1786 #include <stdio.h>
1787 main()
1788 {
1789   FILE *f=fopen("conftestval", "w");
1790   if (!f) exit(1);
1791   fprintf(f, "%d\n", sizeof(short));
1792   exit(0);
1793 }
1794 EOF
1795 if { (eval echo configure:1796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1796 then
1797   ac_cv_sizeof_short=`cat conftestval`
1798 else
1799   echo "configure: failed program was:" >&5
1800   cat conftest.$ac_ext >&5
1801   rm -fr conftest*
1802   ac_cv_sizeof_short=0
1803 fi
1804 rm -fr conftest*
1805 fi
1806
1807 fi
1808 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1809 cat >> confdefs.h <<EOF
1810 #define SIZEOF_SHORT $ac_cv_sizeof_short
1811 EOF
1812
1813
1814
1815 echo $ac_n "checking for working const""... $ac_c" 1>&6
1816 echo "configure:1817: checking for working const" >&5
1817 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1818   echo $ac_n "(cached) $ac_c" 1>&6
1819 else
1820   cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823
1824 int main() {
1825
1826 /* Ultrix mips cc rejects this.  */
1827 typedef int charset[2]; const charset x;
1828 /* SunOS 4.1.1 cc rejects this.  */
1829 char const *const *ccp;
1830 char **p;
1831 /* NEC SVR4.0.2 mips cc rejects this.  */
1832 struct point {int x, y;};
1833 static struct point const zero = {0,0};
1834 /* AIX XL C 1.02.0.0 rejects this.
1835    It does not let you subtract one const X* pointer from another in an arm
1836    of an if-expression whose if-part is not a constant expression */
1837 const char *g = "string";
1838 ccp = &g + (g ? g-g : 0);
1839 /* HPUX 7.0 cc rejects these. */
1840 ++ccp;
1841 p = (char**) ccp;
1842 ccp = (char const *const *) p;
1843 { /* SCO 3.2v4 cc rejects this.  */
1844   char *t;
1845   char const *s = 0 ? (char *) 0 : (char const *) 0;
1846
1847   *t++ = 0;
1848 }
1849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1850   int x[] = {25, 17};
1851   const int *foo = &x[0];
1852   ++foo;
1853 }
1854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1855   typedef const int *iptr;
1856   iptr p = 0;
1857   ++p;
1858 }
1859 { /* AIX XL C 1.02.0.0 rejects this saying
1860      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1861   struct s { int j; const int *ap[3]; };
1862   struct s *b; b->j = 5;
1863 }
1864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1865   const int foo = 10;
1866 }
1867
1868 ; return 0; }
1869 EOF
1870 if { (eval echo configure:1871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1871   rm -rf conftest*
1872   ac_cv_c_const=yes
1873 else
1874   echo "configure: failed program was:" >&5
1875   cat conftest.$ac_ext >&5
1876   rm -rf conftest*
1877   ac_cv_c_const=no
1878 fi
1879 rm -f conftest*
1880 fi
1881
1882 echo "$ac_t""$ac_cv_c_const" 1>&6
1883 if test $ac_cv_c_const = no; then
1884   cat >> confdefs.h <<\EOF
1885 #define const 
1886 EOF
1887
1888 fi
1889
1890 echo $ac_n "checking for inline""... $ac_c" 1>&6
1891 echo "configure:1892: checking for inline" >&5
1892 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1893   echo $ac_n "(cached) $ac_c" 1>&6
1894 else
1895   ac_cv_c_inline=no
1896 for ac_kw in inline __inline__ __inline; do
1897   cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1900
1901 int main() {
1902 } $ac_kw foo() {
1903 ; return 0; }
1904 EOF
1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1906   rm -rf conftest*
1907   ac_cv_c_inline=$ac_kw; break
1908 else
1909   echo "configure: failed program was:" >&5
1910   cat conftest.$ac_ext >&5
1911 fi
1912 rm -f conftest*
1913 done
1914
1915 fi
1916
1917 echo "$ac_t""$ac_cv_c_inline" 1>&6
1918 case "$ac_cv_c_inline" in
1919   inline | yes) ;;
1920   no) cat >> confdefs.h <<\EOF
1921 #define inline 
1922 EOF
1923  ;;
1924   *)  cat >> confdefs.h <<EOF
1925 #define inline $ac_cv_c_inline
1926 EOF
1927  ;;
1928 esac
1929
1930 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1931 echo "configure:1932: checking whether byte ordering is bigendian" >&5
1932 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1933   echo $ac_n "(cached) $ac_c" 1>&6
1934 else
1935   ac_cv_c_bigendian=unknown
1936 # See if sys/param.h defines the BYTE_ORDER macro.
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 #include <sys/types.h>
1941 #include <sys/param.h>
1942 int main() {
1943
1944 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1945  bogus endian macros
1946 #endif
1947 ; return 0; }
1948 EOF
1949 if { (eval echo configure:1950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1950   rm -rf conftest*
1951   # It does; now see whether it defined to BIG_ENDIAN or not.
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1955 #include <sys/types.h>
1956 #include <sys/param.h>
1957 int main() {
1958
1959 #if BYTE_ORDER != BIG_ENDIAN
1960  not big endian
1961 #endif
1962 ; return 0; }
1963 EOF
1964 if { (eval echo configure:1965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1965   rm -rf conftest*
1966   ac_cv_c_bigendian=yes
1967 else
1968   echo "configure: failed program was:" >&5
1969   cat conftest.$ac_ext >&5
1970   rm -rf conftest*
1971   ac_cv_c_bigendian=no
1972 fi
1973 rm -f conftest*
1974 else
1975   echo "configure: failed program was:" >&5
1976   cat conftest.$ac_ext >&5
1977 fi
1978 rm -f conftest*
1979 if test $ac_cv_c_bigendian = unknown; then
1980 if test "$cross_compiling" = yes; then
1981     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1982 else
1983   cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 main () {
1987   /* Are we little or big endian?  From Harbison&Steele.  */
1988   union
1989   {
1990     long l;
1991     char c[sizeof (long)];
1992   } u;
1993   u.l = 1;
1994   exit (u.c[sizeof (long) - 1] == 1);
1995 }
1996 EOF
1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1998 then
1999   ac_cv_c_bigendian=no
2000 else
2001   echo "configure: failed program was:" >&5
2002   cat conftest.$ac_ext >&5
2003   rm -fr conftest*
2004   ac_cv_c_bigendian=yes
2005 fi
2006 rm -fr conftest*
2007 fi
2008
2009 fi
2010 fi
2011
2012 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2013 if test $ac_cv_c_bigendian = yes; then
2014   cat >> confdefs.h <<\EOF
2015 #define WORDS_BIGENDIAN 1
2016 EOF
2017
2018 fi
2019
2020 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2021 echo "configure:2022: checking whether char is unsigned" >&5
2022 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2023   echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025   if test "$GCC" = yes; then
2026   # GCC predefines this symbol on systems where it applies.
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #ifdef __CHAR_UNSIGNED__
2031   yes
2032 #endif
2033
2034 EOF
2035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2036   egrep "yes" >/dev/null 2>&1; then
2037   rm -rf conftest*
2038   ac_cv_c_char_unsigned=yes
2039 else
2040   rm -rf conftest*
2041   ac_cv_c_char_unsigned=no
2042 fi
2043 rm -f conftest*
2044
2045 else
2046 if test "$cross_compiling" = yes; then
2047     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2048 else
2049   cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
2053 #if !defined(__STDC__) || __STDC__ != 1
2054 #define volatile
2055 #endif
2056 main() {
2057   volatile char c = 255; exit(c < 0);
2058 }
2059 EOF
2060 if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2061 then
2062   ac_cv_c_char_unsigned=yes
2063 else
2064   echo "configure: failed program was:" >&5
2065   cat conftest.$ac_ext >&5
2066   rm -fr conftest*
2067   ac_cv_c_char_unsigned=no
2068 fi
2069 rm -fr conftest*
2070 fi
2071
2072 fi
2073 fi
2074
2075 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2076 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2077   cat >> confdefs.h <<\EOF
2078 #define __CHAR_UNSIGNED__ 1
2079 EOF
2080
2081 fi
2082
2083
2084 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2085 echo "configure:2086: checking return type of signal handlers" >&5
2086 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2087   echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089   cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 #include <sys/types.h>
2093 #include <signal.h>
2094 #ifdef signal
2095 #undef signal
2096 #endif
2097 #ifdef __cplusplus
2098 extern "C" void (*signal (int, void (*)(int)))(int);
2099 #else
2100 void (*signal ()) ();
2101 #endif
2102
2103 int main() {
2104 int i;
2105 ; return 0; }
2106 EOF
2107 if { (eval echo configure:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2108   rm -rf conftest*
2109   ac_cv_type_signal=void
2110 else
2111   echo "configure: failed program was:" >&5
2112   cat conftest.$ac_ext >&5
2113   rm -rf conftest*
2114   ac_cv_type_signal=int
2115 fi
2116 rm -f conftest*
2117 fi
2118
2119 echo "$ac_t""$ac_cv_type_signal" 1>&6
2120 cat >> confdefs.h <<EOF
2121 #define RETSIGTYPE $ac_cv_type_signal
2122 EOF
2123
2124
2125 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2126 echo "configure:2127: checking for uid_t in sys/types.h" >&5
2127 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2128   echo $ac_n "(cached) $ac_c" 1>&6
2129 else
2130   cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2133 #include <sys/types.h>
2134 EOF
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136   egrep "uid_t" >/dev/null 2>&1; then
2137   rm -rf conftest*
2138   ac_cv_type_uid_t=yes
2139 else
2140   rm -rf conftest*
2141   ac_cv_type_uid_t=no
2142 fi
2143 rm -f conftest*
2144
2145 fi
2146
2147 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2148 if test $ac_cv_type_uid_t = no; then
2149   cat >> confdefs.h <<\EOF
2150 #define uid_t int
2151 EOF
2152
2153   cat >> confdefs.h <<\EOF
2154 #define gid_t int
2155 EOF
2156
2157 fi
2158
2159 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2160 echo "configure:2161: checking for mode_t" >&5
2161 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2162   echo $ac_n "(cached) $ac_c" 1>&6
2163 else
2164   cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 #include <sys/types.h>
2168 #if STDC_HEADERS
2169 #include <stdlib.h>
2170 #include <stddef.h>
2171 #endif
2172 EOF
2173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2174   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2175   rm -rf conftest*
2176   ac_cv_type_mode_t=yes
2177 else
2178   rm -rf conftest*
2179   ac_cv_type_mode_t=no
2180 fi
2181 rm -f conftest*
2182
2183 fi
2184 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2185 if test $ac_cv_type_mode_t = no; then
2186   cat >> confdefs.h <<\EOF
2187 #define mode_t int
2188 EOF
2189
2190 fi
2191
2192 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2193 echo "configure:2194: checking for off_t" >&5
2194 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2195   echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197   cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 #include <sys/types.h>
2201 #if STDC_HEADERS
2202 #include <stdlib.h>
2203 #include <stddef.h>
2204 #endif
2205 EOF
2206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2207   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2208   rm -rf conftest*
2209   ac_cv_type_off_t=yes
2210 else
2211   rm -rf conftest*
2212   ac_cv_type_off_t=no
2213 fi
2214 rm -f conftest*
2215
2216 fi
2217 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2218 if test $ac_cv_type_off_t = no; then
2219   cat >> confdefs.h <<\EOF
2220 #define off_t long
2221 EOF
2222
2223 fi
2224
2225 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2226 echo "configure:2227: checking for size_t" >&5
2227 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2228   echo $ac_n "(cached) $ac_c" 1>&6
2229 else
2230   cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <sys/types.h>
2234 #if STDC_HEADERS
2235 #include <stdlib.h>
2236 #include <stddef.h>
2237 #endif
2238 EOF
2239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2240   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2241   rm -rf conftest*
2242   ac_cv_type_size_t=yes
2243 else
2244   rm -rf conftest*
2245   ac_cv_type_size_t=no
2246 fi
2247 rm -f conftest*
2248
2249 fi
2250 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2251 if test $ac_cv_type_size_t = no; then
2252   cat >> confdefs.h <<\EOF
2253 #define size_t unsigned
2254 EOF
2255
2256 fi
2257
2258 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2259 echo "configure:2260: checking for pid_t" >&5
2260 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2261   echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263   cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2267 #if STDC_HEADERS
2268 #include <stdlib.h>
2269 #include <stddef.h>
2270 #endif
2271 EOF
2272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2273   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2274   rm -rf conftest*
2275   ac_cv_type_pid_t=yes
2276 else
2277   rm -rf conftest*
2278   ac_cv_type_pid_t=no
2279 fi
2280 rm -f conftest*
2281
2282 fi
2283 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2284 if test $ac_cv_type_pid_t = no; then
2285   cat >> confdefs.h <<\EOF
2286 #define pid_t int
2287 EOF
2288
2289 fi
2290
2291 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2292 echo "configure:2293: checking for st_rdev in struct stat" >&5
2293 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2294   echo $ac_n "(cached) $ac_c" 1>&6
2295 else
2296   cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 #include <sys/types.h>
2300 #include <sys/stat.h>
2301 int main() {
2302 struct stat s; s.st_rdev;
2303 ; return 0; }
2304 EOF
2305 if { (eval echo configure:2306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2306   rm -rf conftest*
2307   ac_cv_struct_st_rdev=yes
2308 else
2309   echo "configure: failed program was:" >&5
2310   cat conftest.$ac_ext >&5
2311   rm -rf conftest*
2312   ac_cv_struct_st_rdev=no
2313 fi
2314 rm -f conftest*
2315 fi
2316
2317 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2318 if test $ac_cv_struct_st_rdev = yes; then
2319   cat >> confdefs.h <<\EOF
2320 #define HAVE_ST_RDEV 1
2321 EOF
2322
2323 fi
2324
2325 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2326 echo "configure:2327: checking for ino_t" >&5
2327 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2328   echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330   cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <sys/types.h>
2334 #if STDC_HEADERS
2335 #include <stdlib.h>
2336 #include <stddef.h>
2337 #endif
2338 EOF
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340   egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2341   rm -rf conftest*
2342   ac_cv_type_ino_t=yes
2343 else
2344   rm -rf conftest*
2345   ac_cv_type_ino_t=no
2346 fi
2347 rm -f conftest*
2348
2349 fi
2350 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2351 if test $ac_cv_type_ino_t = no; then
2352   cat >> confdefs.h <<\EOF
2353 #define ino_t unsigned
2354 EOF
2355
2356 fi
2357
2358
2359 echo $ac_n "checking for errno in errno.h... $ac_c"
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 #include <errno.h>
2364 int main() {
2365 int i = errno
2366 ; return 0; }
2367 EOF
2368 if { (eval echo configure:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2369   rm -rf conftest*
2370   echo yes; cat >> confdefs.h <<\EOF
2371 #define HAVE_ERRNO_DECL 1
2372 EOF
2373
2374 else
2375   echo "configure: failed program was:" >&5
2376   cat conftest.$ac_ext >&5
2377   rm -rf conftest*
2378   echo no
2379 fi
2380 rm -f conftest*
2381
2382 # stupid glibc has the functions but no declaration. grrrr.
2383 echo $ac_n "checking for setresuid declaration $ac_c"
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 #include <unistd.h>
2388 int main() {
2389 int i = setresuid
2390 ; return 0; }
2391 EOF
2392 if { (eval echo configure:2393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2393   rm -rf conftest*
2394   echo yes; cat >> confdefs.h <<\EOF
2395 #define HAVE_SETRESUID_DECL 1
2396 EOF
2397
2398 else
2399   echo "configure: failed program was:" >&5
2400   cat conftest.$ac_ext >&5
2401   rm -rf conftest*
2402   echo no
2403 fi
2404 rm -f conftest*
2405
2406 # and glibc has setresuid under linux but the function does
2407 # nothing until kernel 2.1.44! very dumb.
2408 echo $ac_n "checking for real setresuid $ac_c"
2409 if test "$cross_compiling" = yes; then
2410     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2411 else
2412   cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 #include <errno.h>
2416 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2417 EOF
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2419 then
2420   echo yes;cat >> confdefs.h <<\EOF
2421 #define HAVE_SETRESUID 1
2422 EOF
2423
2424 else
2425   echo "configure: failed program was:" >&5
2426   cat conftest.$ac_ext >&5
2427   rm -fr conftest*
2428   echo no
2429 fi
2430 rm -fr conftest*
2431 fi
2432
2433
2434
2435 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2436 echo "configure:2437: checking for 8-bit clean memcmp" >&5
2437 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2438   echo $ac_n "(cached) $ac_c" 1>&6
2439 else
2440   if test "$cross_compiling" = yes; then
2441   ac_cv_func_memcmp_clean=no
2442 else
2443   cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446
2447 main()
2448 {
2449   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2450   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2451 }
2452
2453 EOF
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2455 then
2456   ac_cv_func_memcmp_clean=yes
2457 else
2458   echo "configure: failed program was:" >&5
2459   cat conftest.$ac_ext >&5
2460   rm -fr conftest*
2461   ac_cv_func_memcmp_clean=no
2462 fi
2463 rm -fr conftest*
2464 fi
2465
2466 fi
2467
2468 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2469 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2470
2471
2472 ###############################################
2473 # test for where we get crypt() from
2474 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2475   echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2476 echo "configure:2477: checking for crypt in -lcrypt" >&5
2477 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2479   echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481   ac_save_LIBS="$LIBS"
2482 LIBS="-lcrypt  $LIBS"
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 /* Override any gcc2 internal prototype to avoid an error.  */
2487 /* We use char because int might match the return type of a gcc2
2488     builtin and then its argument prototype would still apply.  */
2489 char crypt();
2490
2491 int main() {
2492 crypt()
2493 ; return 0; }
2494 EOF
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2496   rm -rf conftest*
2497   eval "ac_cv_lib_$ac_lib_var=yes"
2498 else
2499   echo "configure: failed program was:" >&5
2500   cat conftest.$ac_ext >&5
2501   rm -rf conftest*
2502   eval "ac_cv_lib_$ac_lib_var=no"
2503 fi
2504 rm -f conftest*
2505 LIBS="$ac_save_LIBS"
2506
2507 fi
2508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509   echo "$ac_t""yes" 1>&6
2510     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2511     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2512   cat >> confdefs.h <<EOF
2513 #define $ac_tr_lib 1
2514 EOF
2515
2516   LIBS="-lcrypt $LIBS"
2517
2518 else
2519   echo "$ac_t""no" 1>&6
2520 fi
2521
2522   cat >> confdefs.h <<\EOF
2523 #define HAVE_CRYPT 1
2524 EOF
2525
2526 fi
2527 if test "$ac_cv_lib_crypt_crypt" = "no" || 
2528    test "$ac_cv_lib_crypt_crypt" = ""; then
2529 # look for crypt 
2530 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2531 echo "configure:2532: checking for crypt" >&5
2532 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2533   echo $ac_n "(cached) $ac_c" 1>&6
2534 else
2535   cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 /* System header to define __stub macros and hopefully few prototypes,
2539     which can conflict with char crypt(); below.  */
2540 #include <assert.h>
2541 /* Override any gcc2 internal prototype to avoid an error.  */
2542 /* We use char because int might match the return type of a gcc2
2543     builtin and then its argument prototype would still apply.  */
2544 char crypt();
2545
2546 int main() {
2547
2548 /* The GNU C library defines this for functions which it implements
2549     to always fail with ENOSYS.  Some functions are actually named
2550     something starting with __ and the normal name is an alias.  */
2551 #if defined (__stub_crypt) || defined (__stub___crypt)
2552 choke me
2553 #else
2554 crypt();
2555 #endif
2556
2557 ; return 0; }
2558 EOF
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2560   rm -rf conftest*
2561   eval "ac_cv_func_crypt=yes"
2562 else
2563   echo "configure: failed program was:" >&5
2564   cat conftest.$ac_ext >&5
2565   rm -rf conftest*
2566   eval "ac_cv_func_crypt=no"
2567 fi
2568 rm -f conftest*
2569 fi
2570
2571 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2572   echo "$ac_t""yes" 1>&6
2573   cat >> confdefs.h <<\EOF
2574 #define HAVE_CRYPT 1
2575 EOF
2576
2577 else
2578   echo "$ac_t""no" 1>&6
2579 case "$LIBS" in
2580 *-lcrypt*) ;;
2581 *) echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2582 echo "configure:2583: checking for crypt in -lcrypt" >&5
2583 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2585   echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587   ac_save_LIBS="$LIBS"
2588 LIBS="-lcrypt  $LIBS"
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 /* Override any gcc2 internal prototype to avoid an error.  */
2593 /* We use char because int might match the return type of a gcc2
2594     builtin and then its argument prototype would still apply.  */
2595 char crypt();
2596
2597 int main() {
2598 crypt()
2599 ; return 0; }
2600 EOF
2601 if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2602   rm -rf conftest*
2603   eval "ac_cv_lib_$ac_lib_var=yes"
2604 else
2605   echo "configure: failed program was:" >&5
2606   cat conftest.$ac_ext >&5
2607   rm -rf conftest*
2608   eval "ac_cv_lib_$ac_lib_var=no"
2609 fi
2610 rm -f conftest*
2611 LIBS="$ac_save_LIBS"
2612
2613 fi
2614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2615   echo "$ac_t""yes" 1>&6
2616     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2617     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2618   cat >> confdefs.h <<EOF
2619 #define $ac_tr_lib 1
2620 EOF
2621
2622   LIBS="-lcrypt $LIBS"
2623
2624 else
2625   echo "$ac_t""no" 1>&6
2626 fi
2627  ;;
2628 esac
2629 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2630   ac_cv_func_crypt=yes
2631   cat >> confdefs.h <<\EOF
2632 #define HAVE_CRYPT 1
2633 EOF
2634
2635 fi
2636 fi
2637
2638 fi
2639
2640
2641 ###############################################
2642 # test for where we get pam_authenticate() from
2643 # might need libdl for this to work
2644 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
2645   echo $ac_n "checking for -ldl""... $ac_c" 1>&6
2646 echo "configure:2647: checking for -ldl" >&5
2647 if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then
2648   echo $ac_n "(cached) $ac_c" 1>&6
2649 else
2650   ac_save_LIBS="$LIBS"
2651 LIBS="-ldl  $LIBS"
2652 cat > conftest.$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2655
2656 int main() {
2657 main()
2658 ; return 0; }
2659 EOF
2660 if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2661   rm -rf conftest*
2662   ac_cv_lib_dl=yes
2663 else
2664   echo "configure: failed program was:" >&5
2665   cat conftest.$ac_ext >&5
2666   rm -rf conftest*
2667   ac_cv_lib_dl=no
2668 fi
2669 rm -f conftest*
2670 LIBS="$ac_save_LIBS"
2671
2672 fi
2673 echo "$ac_t""$ac_cv_lib_dl" 1>&6
2674 if test "$ac_cv_lib_dl" = yes; then
2675   cat >> confdefs.h <<\EOF
2676 #define HAVE_LIBDL 1
2677 EOF
2678
2679   LIBS="-ldl $LIBS"
2680
2681 fi
2682
2683 fi
2684 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2685   echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2686 echo "configure:2687: checking for pam_authenticate in -lpam" >&5
2687 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2689   echo $ac_n "(cached) $ac_c" 1>&6
2690 else
2691   ac_save_LIBS="$LIBS"
2692 LIBS="-lpam  $LIBS"
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* Override any gcc2 internal prototype to avoid an error.  */
2697 /* We use char because int might match the return type of a gcc2
2698     builtin and then its argument prototype would still apply.  */
2699 char pam_authenticate();
2700
2701 int main() {
2702 pam_authenticate()
2703 ; return 0; }
2704 EOF
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2706   rm -rf conftest*
2707   eval "ac_cv_lib_$ac_lib_var=yes"
2708 else
2709   echo "configure: failed program was:" >&5
2710   cat conftest.$ac_ext >&5
2711   rm -rf conftest*
2712   eval "ac_cv_lib_$ac_lib_var=no"
2713 fi
2714 rm -f conftest*
2715 LIBS="$ac_save_LIBS"
2716
2717 fi
2718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2719   echo "$ac_t""yes" 1>&6
2720     ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2721     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2722   cat >> confdefs.h <<EOF
2723 #define $ac_tr_lib 1
2724 EOF
2725
2726   LIBS="-lpam $LIBS"
2727
2728 else
2729   echo "$ac_t""no" 1>&6
2730 fi
2731
2732   cat >> confdefs.h <<\EOF
2733 #define HAVE_PAM_AUTHENTICATE 1
2734 EOF
2735
2736 fi
2737 if test "$ac_cv_lib_pam_pam_authenticate" = "no" || 
2738    test "$ac_cv_lib_pam_pam_authenticate" = ""; then
2739 # look for pam_authenticate
2740 echo $ac_n "checking for pam_authenticate""... $ac_c" 1>&6
2741 echo "configure:2742: checking for pam_authenticate" >&5
2742 if eval "test \"`echo '$''{'ac_cv_func_pam_authenticate'+set}'`\" = set"; then
2743   echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745   cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* System header to define __stub macros and hopefully few prototypes,
2749     which can conflict with char pam_authenticate(); below.  */
2750 #include <assert.h>
2751 /* Override any gcc2 internal prototype to avoid an error.  */
2752 /* We use char because int might match the return type of a gcc2
2753     builtin and then its argument prototype would still apply.  */
2754 char pam_authenticate();
2755
2756 int main() {
2757
2758 /* The GNU C library defines this for functions which it implements
2759     to always fail with ENOSYS.  Some functions are actually named
2760     something starting with __ and the normal name is an alias.  */
2761 #if defined (__stub_pam_authenticate) || defined (__stub___pam_authenticate)
2762 choke me
2763 #else
2764 pam_authenticate();
2765 #endif
2766
2767 ; return 0; }
2768 EOF
2769 if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2770   rm -rf conftest*
2771   eval "ac_cv_func_pam_authenticate=yes"
2772 else
2773   echo "configure: failed program was:" >&5
2774   cat conftest.$ac_ext >&5
2775   rm -rf conftest*
2776   eval "ac_cv_func_pam_authenticate=no"
2777 fi
2778 rm -f conftest*
2779 fi
2780
2781 if eval "test \"`echo '$ac_cv_func_'pam_authenticate`\" = yes"; then
2782   echo "$ac_t""yes" 1>&6
2783   cat >> confdefs.h <<\EOF
2784 #define HAVE_PAM_AUTHENTICATE 1
2785 EOF
2786
2787 else
2788   echo "$ac_t""no" 1>&6
2789 case "$LIBS" in
2790 *-lpam*) ;;
2791 *) echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2792 echo "configure:2793: checking for pam_authenticate in -lpam" >&5
2793 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2795   echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797   ac_save_LIBS="$LIBS"
2798 LIBS="-lpam  $LIBS"
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* Override any gcc2 internal prototype to avoid an error.  */
2803 /* We use char because int might match the return type of a gcc2
2804     builtin and then its argument prototype would still apply.  */
2805 char pam_authenticate();
2806
2807 int main() {
2808 pam_authenticate()
2809 ; return 0; }
2810 EOF
2811 if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2812   rm -rf conftest*
2813   eval "ac_cv_lib_$ac_lib_var=yes"
2814 else
2815   echo "configure: failed program was:" >&5
2816   cat conftest.$ac_ext >&5
2817   rm -rf conftest*
2818   eval "ac_cv_lib_$ac_lib_var=no"
2819 fi
2820 rm -f conftest*
2821 LIBS="$ac_save_LIBS"
2822
2823 fi
2824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2825   echo "$ac_t""yes" 1>&6
2826     ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2827     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2828   cat >> confdefs.h <<EOF
2829 #define $ac_tr_lib 1
2830 EOF
2831
2832   LIBS="-lpam $LIBS"
2833
2834 else
2835   echo "$ac_t""no" 1>&6
2836 fi
2837  ;;
2838 esac
2839 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2840   ac_cv_func_pam_authenticate=yes
2841   cat >> confdefs.h <<\EOF
2842 #define HAVE_PAM_AUTHENTICATE 1
2843 EOF
2844
2845 fi
2846 fi
2847
2848 fi
2849
2850 # The following test taken from the cvs sources
2851 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
2852 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
2853 # libsocket.so which has a bad implementation of gethostbyname (it
2854 # only looks in /etc/hosts), so we only look for -lsocket if we need
2855 # it.
2856 echo $ac_n "checking for connect""... $ac_c" 1>&6
2857 echo "configure:2858: checking for connect" >&5
2858 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2859   echo $ac_n "(cached) $ac_c" 1>&6
2860 else
2861   cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 /* System header to define __stub macros and hopefully few prototypes,
2865     which can conflict with char connect(); below.  */
2866 #include <assert.h>
2867 /* Override any gcc2 internal prototype to avoid an error.  */
2868 /* We use char because int might match the return type of a gcc2
2869     builtin and then its argument prototype would still apply.  */
2870 char connect();
2871
2872 int main() {
2873
2874 /* The GNU C library defines this for functions which it implements
2875     to always fail with ENOSYS.  Some functions are actually named
2876     something starting with __ and the normal name is an alias.  */
2877 #if defined (__stub_connect) || defined (__stub___connect)
2878 choke me
2879 #else
2880 connect();
2881 #endif
2882
2883 ; return 0; }
2884 EOF
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2886   rm -rf conftest*
2887   eval "ac_cv_func_connect=yes"
2888 else
2889   echo "configure: failed program was:" >&5
2890   cat conftest.$ac_ext >&5
2891   rm -rf conftest*
2892   eval "ac_cv_func_connect=no"
2893 fi
2894 rm -f conftest*
2895 fi
2896
2897 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2898   echo "$ac_t""yes" 1>&6
2899   :
2900 else
2901   echo "$ac_t""no" 1>&6
2902 case "$LIBS" in
2903 *-lnsl*) ;;
2904 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
2905 echo "configure:2906: checking for printf in -lnsl_s" >&5
2906 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
2907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2908   echo $ac_n "(cached) $ac_c" 1>&6
2909 else
2910   ac_save_LIBS="$LIBS"
2911 LIBS="-lnsl_s  $LIBS"
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 /* Override any gcc2 internal prototype to avoid an error.  */
2916 /* We use char because int might match the return type of a gcc2
2917     builtin and then its argument prototype would still apply.  */
2918 char printf();
2919
2920 int main() {
2921 printf()
2922 ; return 0; }
2923 EOF
2924 if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2925   rm -rf conftest*
2926   eval "ac_cv_lib_$ac_lib_var=yes"
2927 else
2928   echo "configure: failed program was:" >&5
2929   cat conftest.$ac_ext >&5
2930   rm -rf conftest*
2931   eval "ac_cv_lib_$ac_lib_var=no"
2932 fi
2933 rm -f conftest*
2934 LIBS="$ac_save_LIBS"
2935
2936 fi
2937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2938   echo "$ac_t""yes" 1>&6
2939     ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2940     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2941   cat >> confdefs.h <<EOF
2942 #define $ac_tr_lib 1
2943 EOF
2944
2945   LIBS="-lnsl_s $LIBS"
2946
2947 else
2948   echo "$ac_t""no" 1>&6
2949 fi
2950  ;;
2951 esac
2952 case "$LIBS" in
2953 *-lnsl*) ;;
2954 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
2955 echo "configure:2956: checking for printf in -lnsl" >&5
2956 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
2957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2958   echo $ac_n "(cached) $ac_c" 1>&6
2959 else
2960   ac_save_LIBS="$LIBS"
2961 LIBS="-lnsl  $LIBS"
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* Override any gcc2 internal prototype to avoid an error.  */
2966 /* We use char because int might match the return type of a gcc2
2967     builtin and then its argument prototype would still apply.  */
2968 char printf();
2969
2970 int main() {
2971 printf()
2972 ; return 0; }
2973 EOF
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2975   rm -rf conftest*
2976   eval "ac_cv_lib_$ac_lib_var=yes"
2977 else
2978   echo "configure: failed program was:" >&5
2979   cat conftest.$ac_ext >&5
2980   rm -rf conftest*
2981   eval "ac_cv_lib_$ac_lib_var=no"
2982 fi
2983 rm -f conftest*
2984 LIBS="$ac_save_LIBS"
2985
2986 fi
2987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2988   echo "$ac_t""yes" 1>&6
2989     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2990     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2991   cat >> confdefs.h <<EOF
2992 #define $ac_tr_lib 1
2993 EOF
2994
2995   LIBS="-lnsl $LIBS"
2996
2997 else
2998   echo "$ac_t""no" 1>&6
2999 fi
3000  ;;
3001 esac
3002 case "$LIBS" in
3003 *-lsocket*) ;;
3004 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3005 echo "configure:3006: checking for connect in -lsocket" >&5
3006 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3008   echo $ac_n "(cached) $ac_c" 1>&6
3009 else
3010   ac_save_LIBS="$LIBS"
3011 LIBS="-lsocket  $LIBS"
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 /* Override any gcc2 internal prototype to avoid an error.  */
3016 /* We use char because int might match the return type of a gcc2
3017     builtin and then its argument prototype would still apply.  */
3018 char connect();
3019
3020 int main() {
3021 connect()
3022 ; return 0; }
3023 EOF
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3025   rm -rf conftest*
3026   eval "ac_cv_lib_$ac_lib_var=yes"
3027 else
3028   echo "configure: failed program was:" >&5
3029   cat conftest.$ac_ext >&5
3030   rm -rf conftest*
3031   eval "ac_cv_lib_$ac_lib_var=no"
3032 fi
3033 rm -f conftest*
3034 LIBS="$ac_save_LIBS"
3035
3036 fi
3037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3038   echo "$ac_t""yes" 1>&6
3039     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3040     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3041   cat >> confdefs.h <<EOF
3042 #define $ac_tr_lib 1
3043 EOF
3044
3045   LIBS="-lsocket $LIBS"
3046
3047 else
3048   echo "$ac_t""no" 1>&6
3049 fi
3050  ;;
3051 esac
3052 case "$LIBS" in
3053 *-linet*) ;;
3054 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3055 echo "configure:3056: checking for connect in -linet" >&5
3056 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3058   echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3060   ac_save_LIBS="$LIBS"
3061 LIBS="-linet  $LIBS"
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 /* Override any gcc2 internal prototype to avoid an error.  */
3066 /* We use char because int might match the return type of a gcc2
3067     builtin and then its argument prototype would still apply.  */
3068 char connect();
3069
3070 int main() {
3071 connect()
3072 ; return 0; }
3073 EOF
3074 if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3075   rm -rf conftest*
3076   eval "ac_cv_lib_$ac_lib_var=yes"
3077 else
3078   echo "configure: failed program was:" >&5
3079   cat conftest.$ac_ext >&5
3080   rm -rf conftest*
3081   eval "ac_cv_lib_$ac_lib_var=no"
3082 fi
3083 rm -f conftest*
3084 LIBS="$ac_save_LIBS"
3085
3086 fi
3087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3088   echo "$ac_t""yes" 1>&6
3089     ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3090     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3091   cat >> confdefs.h <<EOF
3092 #define $ac_tr_lib 1
3093 EOF
3094
3095   LIBS="-linet $LIBS"
3096
3097 else
3098   echo "$ac_t""no" 1>&6
3099 fi
3100  ;;
3101 esac
3102 if test "$ac_cv_lib_socket_connect" = "yes" || 
3103    test "$ac_cv_lib_inet_connect" = "yes"; then
3104   ac_cv_func_connect=yes
3105   cat >> confdefs.h <<\EOF
3106 #define HAVE_CONNECT 1
3107 EOF
3108
3109 fi
3110 fi
3111
3112
3113
3114 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3115 do
3116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_func" >&5
3118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3119   echo $ac_n "(cached) $ac_c" 1>&6
3120 else
3121   cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 /* System header to define __stub macros and hopefully few prototypes,
3125     which can conflict with char $ac_func(); below.  */
3126 #include <assert.h>
3127 /* Override any gcc2 internal prototype to avoid an error.  */
3128 /* We use char because int might match the return type of a gcc2
3129     builtin and then its argument prototype would still apply.  */
3130 char $ac_func();
3131
3132 int main() {
3133
3134 /* The GNU C library defines this for functions which it implements
3135     to always fail with ENOSYS.  Some functions are actually named
3136     something starting with __ and the normal name is an alias.  */
3137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3138 choke me
3139 #else
3140 $ac_func();
3141 #endif
3142
3143 ; return 0; }
3144 EOF
3145 if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3146   rm -rf conftest*
3147   eval "ac_cv_func_$ac_func=yes"
3148 else
3149   echo "configure: failed program was:" >&5
3150   cat conftest.$ac_ext >&5
3151   rm -rf conftest*
3152   eval "ac_cv_func_$ac_func=no"
3153 fi
3154 rm -f conftest*
3155 fi
3156
3157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3158   echo "$ac_t""yes" 1>&6
3159     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3160   cat >> confdefs.h <<EOF
3161 #define $ac_tr_func 1
3162 EOF
3163  
3164 else
3165   echo "$ac_t""no" 1>&6
3166 fi
3167 done
3168
3169 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3170 do
3171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_func" >&5
3173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3174   echo $ac_n "(cached) $ac_c" 1>&6
3175 else
3176   cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 /* System header to define __stub macros and hopefully few prototypes,
3180     which can conflict with char $ac_func(); below.  */
3181 #include <assert.h>
3182 /* Override any gcc2 internal prototype to avoid an error.  */
3183 /* We use char because int might match the return type of a gcc2
3184     builtin and then its argument prototype would still apply.  */
3185 char $ac_func();
3186
3187 int main() {
3188
3189 /* The GNU C library defines this for functions which it implements
3190     to always fail with ENOSYS.  Some functions are actually named
3191     something starting with __ and the normal name is an alias.  */
3192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3193 choke me
3194 #else
3195 $ac_func();
3196 #endif
3197
3198 ; return 0; }
3199 EOF
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3201   rm -rf conftest*
3202   eval "ac_cv_func_$ac_func=yes"
3203 else
3204   echo "configure: failed program was:" >&5
3205   cat conftest.$ac_ext >&5
3206   rm -rf conftest*
3207   eval "ac_cv_func_$ac_func=no"
3208 fi
3209 rm -f conftest*
3210 fi
3211
3212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3213   echo "$ac_t""yes" 1>&6
3214     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3215   cat >> confdefs.h <<EOF
3216 #define $ac_tr_func 1
3217 EOF
3218  
3219 else
3220   echo "$ac_t""no" 1>&6
3221 fi
3222 done
3223
3224 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
3225 do
3226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_func" >&5
3228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3229   echo $ac_n "(cached) $ac_c" 1>&6
3230 else
3231   cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* System header to define __stub macros and hopefully few prototypes,
3235     which can conflict with char $ac_func(); below.  */
3236 #include <assert.h>
3237 /* Override any gcc2 internal prototype to avoid an error.  */
3238 /* We use char because int might match the return type of a gcc2
3239     builtin and then its argument prototype would still apply.  */
3240 char $ac_func();
3241
3242 int main() {
3243
3244 /* The GNU C library defines this for functions which it implements
3245     to always fail with ENOSYS.  Some functions are actually named
3246     something starting with __ and the normal name is an alias.  */
3247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3248 choke me
3249 #else
3250 $ac_func();
3251 #endif
3252
3253 ; return 0; }
3254 EOF
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3256   rm -rf conftest*
3257   eval "ac_cv_func_$ac_func=yes"
3258 else
3259   echo "configure: failed program was:" >&5
3260   cat conftest.$ac_ext >&5
3261   rm -rf conftest*
3262   eval "ac_cv_func_$ac_func=no"
3263 fi
3264 rm -f conftest*
3265 fi
3266
3267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3268   echo "$ac_t""yes" 1>&6
3269     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3270   cat >> confdefs.h <<EOF
3271 #define $ac_tr_func 1
3272 EOF
3273  
3274 else
3275   echo "$ac_t""no" 1>&6
3276 fi
3277 done
3278
3279 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3280 do
3281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3282 echo "configure:3283: checking for $ac_func" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3284   echo $ac_n "(cached) $ac_c" 1>&6
3285 else
3286   cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290     which can conflict with char $ac_func(); below.  */
3291 #include <assert.h>
3292 /* Override any gcc2 internal prototype to avoid an error.  */
3293 /* We use char because int might match the return type of a gcc2
3294     builtin and then its argument prototype would still apply.  */
3295 char $ac_func();
3296
3297 int main() {
3298
3299 /* The GNU C library defines this for functions which it implements
3300     to always fail with ENOSYS.  Some functions are actually named
3301     something starting with __ and the normal name is an alias.  */
3302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3303 choke me
3304 #else
3305 $ac_func();
3306 #endif
3307
3308 ; return 0; }
3309 EOF
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3311   rm -rf conftest*
3312   eval "ac_cv_func_$ac_func=yes"
3313 else
3314   echo "configure: failed program was:" >&5
3315   cat conftest.$ac_ext >&5
3316   rm -rf conftest*
3317   eval "ac_cv_func_$ac_func=no"
3318 fi
3319 rm -f conftest*
3320 fi
3321
3322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3323   echo "$ac_t""yes" 1>&6
3324     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3325   cat >> confdefs.h <<EOF
3326 #define $ac_tr_func 1
3327 EOF
3328  
3329 else
3330   echo "$ac_t""no" 1>&6
3331 fi
3332 done
3333
3334 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3335 do
3336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_func" >&5
3338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3339   echo $ac_n "(cached) $ac_c" 1>&6
3340 else
3341   cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 /* System header to define __stub macros and hopefully few prototypes,
3345     which can conflict with char $ac_func(); below.  */
3346 #include <assert.h>
3347 /* Override any gcc2 internal prototype to avoid an error.  */
3348 /* We use char because int might match the return type of a gcc2
3349     builtin and then its argument prototype would still apply.  */
3350 char $ac_func();
3351
3352 int main() {
3353
3354 /* The GNU C library defines this for functions which it implements
3355     to always fail with ENOSYS.  Some functions are actually named
3356     something starting with __ and the normal name is an alias.  */
3357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3358 choke me
3359 #else
3360 $ac_func();
3361 #endif
3362
3363 ; return 0; }
3364 EOF
3365 if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3366   rm -rf conftest*
3367   eval "ac_cv_func_$ac_func=yes"
3368 else
3369   echo "configure: failed program was:" >&5
3370   cat conftest.$ac_ext >&5
3371   rm -rf conftest*
3372   eval "ac_cv_func_$ac_func=no"
3373 fi
3374 rm -f conftest*
3375 fi
3376
3377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3378   echo "$ac_t""yes" 1>&6
3379     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3380   cat >> confdefs.h <<EOF
3381 #define $ac_tr_func 1
3382 EOF
3383  
3384 else
3385   echo "$ac_t""no" 1>&6
3386 fi
3387 done
3388
3389 for ac_func in setuidx setgroups mktime rename ftruncate
3390 do
3391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_func" >&5
3393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3394   echo $ac_n "(cached) $ac_c" 1>&6
3395 else
3396   cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* System header to define __stub macros and hopefully few prototypes,
3400     which can conflict with char $ac_func(); below.  */
3401 #include <assert.h>
3402 /* Override any gcc2 internal prototype to avoid an error.  */
3403 /* We use char because int might match the return type of a gcc2
3404     builtin and then its argument prototype would still apply.  */
3405 char $ac_func();
3406
3407 int main() {
3408
3409 /* The GNU C library defines this for functions which it implements
3410     to always fail with ENOSYS.  Some functions are actually named
3411     something starting with __ and the normal name is an alias.  */
3412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3413 choke me
3414 #else
3415 $ac_func();
3416 #endif
3417
3418 ; return 0; }
3419 EOF
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3421   rm -rf conftest*
3422   eval "ac_cv_func_$ac_func=yes"
3423 else
3424   echo "configure: failed program was:" >&5
3425   cat conftest.$ac_ext >&5
3426   rm -rf conftest*
3427   eval "ac_cv_func_$ac_func=no"
3428 fi
3429 rm -f conftest*
3430 fi
3431
3432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3433   echo "$ac_t""yes" 1>&6
3434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3435   cat >> confdefs.h <<EOF
3436 #define $ac_tr_func 1
3437 EOF
3438  
3439 else
3440   echo "$ac_t""no" 1>&6
3441 fi
3442 done
3443
3444 for ac_func in set_auth_parameters atexit grantpt getspnam dup2
3445 do
3446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_func" >&5
3448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3449   echo $ac_n "(cached) $ac_c" 1>&6
3450 else
3451   cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* System header to define __stub macros and hopefully few prototypes,
3455     which can conflict with char $ac_func(); below.  */
3456 #include <assert.h>
3457 /* Override any gcc2 internal prototype to avoid an error.  */
3458 /* We use char because int might match the return type of a gcc2
3459     builtin and then its argument prototype would still apply.  */
3460 char $ac_func();
3461
3462 int main() {
3463
3464 /* The GNU C library defines this for functions which it implements
3465     to always fail with ENOSYS.  Some functions are actually named
3466     something starting with __ and the normal name is an alias.  */
3467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3468 choke me
3469 #else
3470 $ac_func();
3471 #endif
3472
3473 ; return 0; }
3474 EOF
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3476   rm -rf conftest*
3477   eval "ac_cv_func_$ac_func=yes"
3478 else
3479   echo "configure: failed program was:" >&5
3480   cat conftest.$ac_ext >&5
3481   rm -rf conftest*
3482   eval "ac_cv_func_$ac_func=no"
3483 fi
3484 rm -f conftest*
3485 fi
3486
3487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3488   echo "$ac_t""yes" 1>&6
3489     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3490   cat >> confdefs.h <<EOF
3491 #define $ac_tr_func 1
3492 EOF
3493  
3494 else
3495   echo "$ac_t""no" 1>&6
3496 fi
3497 done
3498
3499 for ac_func in bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3500 do
3501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3502 echo "configure:3503: checking for $ac_func" >&5
3503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3504   echo $ac_n "(cached) $ac_c" 1>&6
3505 else
3506   cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* System header to define __stub macros and hopefully few prototypes,
3510     which can conflict with char $ac_func(); below.  */
3511 #include <assert.h>
3512 /* Override any gcc2 internal prototype to avoid an error.  */
3513 /* We use char because int might match the return type of a gcc2
3514     builtin and then its argument prototype would still apply.  */
3515 char $ac_func();
3516
3517 int main() {
3518
3519 /* The GNU C library defines this for functions which it implements
3520     to always fail with ENOSYS.  Some functions are actually named
3521     something starting with __ and the normal name is an alias.  */
3522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3523 choke me
3524 #else
3525 $ac_func();
3526 #endif
3527
3528 ; return 0; }
3529 EOF
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3531   rm -rf conftest*
3532   eval "ac_cv_func_$ac_func=yes"
3533 else
3534   echo "configure: failed program was:" >&5
3535   cat conftest.$ac_ext >&5
3536   rm -rf conftest*
3537   eval "ac_cv_func_$ac_func=no"
3538 fi
3539 rm -f conftest*
3540 fi
3541
3542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3543   echo "$ac_t""yes" 1>&6
3544     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3545   cat >> confdefs.h <<EOF
3546 #define $ac_tr_func 1
3547 EOF
3548  
3549 else
3550   echo "$ac_t""no" 1>&6
3551 fi
3552 done
3553
3554
3555 echo $ac_n "checking for long long ... $ac_c"
3556 if test "$cross_compiling" = yes; then
3557     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3558 else
3559   cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <stdio.h>
3563 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
3564 EOF
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3566 then
3567   echo yes;cat >> confdefs.h <<\EOF
3568 #define HAVE_LONGLONG 1
3569 EOF
3570
3571 else
3572   echo "configure: failed program was:" >&5
3573   cat conftest.$ac_ext >&5
3574   rm -fr conftest*
3575   echo no
3576 fi
3577 rm -fr conftest*
3578 fi
3579
3580
3581 echo $ac_n "checking for off64_t ... $ac_c"
3582 if test "$cross_compiling" = yes; then
3583     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3584 else
3585   cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <stdio.h>
3589 #include <sys/stat.h>
3590 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3591 EOF
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3593 then
3594   echo yes;cat >> confdefs.h <<\EOF
3595 #define HAVE_OFF64_T 1
3596 EOF
3597
3598 else
3599   echo "configure: failed program was:" >&5
3600   cat conftest.$ac_ext >&5
3601   rm -fr conftest*
3602   echo no
3603 fi
3604 rm -fr conftest*
3605 fi
3606
3607
3608 echo $ac_n "checking for union semun ... $ac_c"
3609 if test "$cross_compiling" = yes; then
3610     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3611 else
3612   cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615
3616 #include <sys/types.h>
3617 #include <sys/ipc.h>
3618 #include <sys/sem.h>
3619 main() { union semun ss; exit(0); }
3620 EOF
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3622 then
3623   echo yes;cat >> confdefs.h <<\EOF
3624 #define HAVE_UNION_SEMUN 1
3625 EOF
3626
3627 else
3628   echo "configure: failed program was:" >&5
3629   cat conftest.$ac_ext >&5
3630   rm -fr conftest*
3631   echo no
3632 fi
3633 rm -fr conftest*
3634 fi
3635
3636
3637 echo $ac_n "checking for unsigned char ... $ac_c"
3638 if test "$cross_compiling" = yes; then
3639     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3640 else
3641   cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 #include <stdio.h>
3645 main() { char c; c=250; exit((c > 0)?0:1); }
3646 EOF
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3648 then
3649   echo yes;cat >> confdefs.h <<\EOF
3650 #define HAVE_UNSIGNED_CHAR 1
3651 EOF
3652
3653 else
3654   echo "configure: failed program was:" >&5
3655   cat conftest.$ac_ext >&5
3656   rm -fr conftest*
3657   echo no
3658 fi
3659 rm -fr conftest*
3660 fi
3661
3662
3663 echo $ac_n "checking for sin_len in sock ... $ac_c"
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3668 #include <sys/socket.h>
3669 #include <netinet/in.h>
3670 int main() {
3671 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
3672 ; return 0; }
3673 EOF
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3675   rm -rf conftest*
3676   echo yes;cat >> confdefs.h <<\EOF
3677 #define HAVE_SOCK_SIN_LEN 1
3678 EOF
3679
3680 else
3681   echo "configure: failed program was:" >&5
3682   cat conftest.$ac_ext >&5
3683   rm -rf conftest*
3684   echo no
3685 fi
3686 rm -f conftest*
3687
3688 echo $ac_n "checking for __FILE__ macro ... $ac_c"
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 #include <stdio.h>
3693 int main() {
3694 printf("%s\n", __FILE__);
3695 ; return 0; }
3696 EOF
3697 if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3698   rm -rf conftest*
3699   echo yes;cat >> confdefs.h <<\EOF
3700 #define HAVE_FILE_MACRO 1
3701 EOF
3702
3703 else
3704   echo "configure: failed program was:" >&5
3705   cat conftest.$ac_ext >&5
3706   rm -rf conftest*
3707   echo no
3708 fi
3709 rm -f conftest*
3710
3711 echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3715 #include <stdio.h>
3716 int main() {
3717 printf("%s\n", __FUNCTION__);
3718 ; return 0; }
3719 EOF
3720 if { (eval echo configure:3721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3721   rm -rf conftest*
3722   echo yes;cat >> confdefs.h <<\EOF
3723 #define HAVE_FUNCTION_MACRO 1
3724 EOF
3725
3726 else
3727   echo "configure: failed program was:" >&5
3728   cat conftest.$ac_ext >&5
3729   rm -rf conftest*
3730   echo no
3731 fi
3732 rm -f conftest*
3733
3734 echo $ac_n "checking if gettimeofday takes tz argument ... $ac_c"
3735 if test "$cross_compiling" = yes; then
3736     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3737 else
3738   cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3741
3742 #include <sys/time.h>
3743 #include <unistd.h>
3744 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
3745 EOF
3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3747 then
3748   echo yes;cat >> confdefs.h <<\EOF
3749 #define HAVE_GETTIMEOFDAY_TZ 1
3750 EOF
3751
3752 else
3753   echo "configure: failed program was:" >&5
3754   cat conftest.$ac_ext >&5
3755   rm -fr conftest*
3756   echo no
3757 fi
3758 rm -fr conftest*
3759 fi
3760
3761
3762
3763 echo $ac_n "checking for broken readdir ... $ac_c"
3764 if test "$cross_compiling" = yes; then
3765     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3766 else
3767   cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 #include <sys/types.h>
3771 #include <dirent.h>
3772 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
3773 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
3774 di->d_name[0] == 0) exit(0); exit(1);} 
3775 EOF
3776 if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3777 then
3778   echo yes - you are using the broken /usr/ucb/cc;cat >> confdefs.h <<\EOF
3779 #define HAVE_BROKEN_READDIR 1
3780 EOF
3781
3782 else
3783   echo "configure: failed program was:" >&5
3784   cat conftest.$ac_ext >&5
3785   rm -fr conftest*
3786   echo no
3787 fi
3788 rm -fr conftest*
3789 fi
3790
3791
3792 echo $ac_n "checking for utimbuf ... $ac_c"
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 #include <sys/types.h>
3797 #include <utime.h>
3798 int main() {
3799 struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
3800 ; return 0; }
3801 EOF
3802 if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3803   rm -rf conftest*
3804   echo yes;cat >> confdefs.h <<\EOF
3805 #define HAVE_UTIMBUF 1
3806 EOF
3807
3808 else
3809   echo "configure: failed program was:" >&5
3810   cat conftest.$ac_ext >&5
3811   rm -rf conftest*
3812   echo no
3813 fi
3814 rm -f conftest*
3815
3816 echo $ac_n "checking for ftruncate extend ... $ac_c"
3817 if test "$cross_compiling" = yes; then
3818     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3819 else
3820   cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 #include "tests/ftruncate.c"
3824 EOF
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3826 then
3827   echo yes;cat >> confdefs.h <<\EOF
3828 #define HAVE_FTRUNCATE_EXTEND 1
3829 EOF
3830
3831 else
3832   echo "configure: failed program was:" >&5
3833   cat conftest.$ac_ext >&5
3834   rm -fr conftest*
3835   echo no
3836 fi
3837 rm -fr conftest*
3838 fi
3839
3840
3841 echo $ac_n "checking for broken getgroups ... $ac_c"
3842 if test "$cross_compiling" = yes; then
3843     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3844 else
3845   cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 #include "tests/getgroups.c"
3849 EOF
3850 if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3851 then
3852   echo yes;cat >> confdefs.h <<\EOF
3853 #define HAVE_BROKEN_GETGROUPS 1
3854 EOF
3855
3856 else
3857   echo "configure: failed program was:" >&5
3858   cat conftest.$ac_ext >&5
3859   rm -fr conftest*
3860   echo no
3861 fi
3862 rm -fr conftest*
3863 fi
3864
3865
3866
3867 echo $ac_n "checking for broken inet_ntoa ... $ac_c"
3868 if test "$cross_compiling" = yes; then
3869     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3870 else
3871   cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874
3875 #include <stdio.h>
3876 #include <sys/types.h>
3877 #include <netinet/in.h>
3878 #include <arpa/inet.h>
3879 main() { struct in_addr ip; ip.s_addr = 0x12345678;
3880 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
3881     strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); } 
3882 exit(1);}
3883 EOF
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3885 then
3886   echo yes;cat >> confdefs.h <<\EOF
3887 #define REPLACE_INET_NTOA 1
3888 EOF
3889
3890 else
3891   echo "configure: failed program was:" >&5
3892   cat conftest.$ac_ext >&5
3893   rm -fr conftest*
3894   echo no
3895 fi
3896 rm -fr conftest*
3897 fi
3898
3899
3900 echo $ac_n "checking for root ... $ac_c"
3901 if test "$cross_compiling" = yes; then
3902     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3903 else
3904   cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 main() { exit(getuid() != 0); }
3908 EOF
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3910 then
3911   echo yes;cat >> confdefs.h <<\EOF
3912 #define HAVE_ROOT 1
3913 EOF
3914
3915 else
3916   echo "configure: failed program was:" >&5
3917   cat conftest.$ac_ext >&5
3918   rm -fr conftest*
3919   echo WARNING: running as non-root will disable some tests;
3920 fi
3921 rm -fr conftest*
3922 fi
3923
3924
3925 netmask=no;
3926 echo $ac_n "checking for netmask ifconf ... $ac_c"
3927 if test "$cross_compiling" = yes; then
3928     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3929 else
3930   cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3933
3934 #define HAVE_NETMASK_IFCONF 1
3935 #define AUTOCONF 1
3936 #include "lib/netmask.c"
3937 EOF
3938 if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3939 then
3940   echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3941 #define HAVE_NETMASK_IFCONF 1
3942 EOF
3943
3944 else
3945   echo "configure: failed program was:" >&5
3946   cat conftest.$ac_ext >&5
3947   rm -fr conftest*
3948   echo no
3949 fi
3950 rm -fr conftest*
3951 fi
3952
3953
3954 if test $netmask = no; then
3955 echo $ac_n "checking for netmask ifreq ... $ac_c"
3956 if test "$cross_compiling" = yes; then
3957     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3958 else
3959   cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962
3963 #define HAVE_NETMASK_IFREQ 1
3964 #define AUTOCONF 1
3965 #include "lib/netmask.c"
3966 EOF
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3968 then
3969   echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3970 #define HAVE_NETMASK_IFREQ 1
3971 EOF
3972
3973 else
3974   echo "configure: failed program was:" >&5
3975   cat conftest.$ac_ext >&5
3976   rm -fr conftest*
3977   echo no
3978 fi
3979 rm -fr conftest*
3980 fi
3981
3982 fi
3983
3984 if test $netmask = no; then
3985 echo $ac_n "checking for netmask AIX ... $ac_c"
3986 if test "$cross_compiling" = yes; then
3987     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3988 else
3989   cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992
3993 #define HAVE_NETMASK_AIX 1
3994 #define AUTOCONF 1
3995 #include "lib/netmask.c"
3996 EOF
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3998 then
3999   echo yes;netmask=yes;cat >> confdefs.h <<\EOF
4000 #define HAVE_NETMASK_AIX 1
4001 EOF
4002
4003 else
4004   echo "configure: failed program was:" >&5
4005   cat conftest.$ac_ext >&5
4006   rm -fr conftest*
4007   echo no
4008 fi
4009 rm -fr conftest*
4010 fi
4011
4012 fi
4013
4014 echo $ac_n "checking for trapdoor seteuid ... $ac_c"
4015 if test "$cross_compiling" = yes; then
4016     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4017 else
4018   cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 #include "tests/trapdoor.c"
4022 EOF
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4024 then
4025   echo no
4026 else
4027   echo "configure: failed program was:" >&5
4028   cat conftest.$ac_ext >&5
4029   rm -fr conftest*
4030   echo yes;cat >> confdefs.h <<\EOF
4031 #define HAVE_TRAPDOOR_UID 1
4032 EOF
4033
4034 fi
4035 rm -fr conftest*
4036 fi
4037
4038
4039 echo $ac_n "checking for shared mmap ... $ac_c"
4040 if test "$cross_compiling" = yes; then
4041     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4042 else
4043   cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4046 #include "tests/shared_mmap.c"
4047 EOF
4048 if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4049 then
4050   echo yes;cat >> confdefs.h <<\EOF
4051 #define HAVE_SHARED_MMAP 1
4052 EOF
4053
4054 else
4055   echo "configure: failed program was:" >&5
4056   cat conftest.$ac_ext >&5
4057   rm -fr conftest*
4058   echo no
4059 fi
4060 rm -fr conftest*
4061 fi
4062
4063
4064 echo $ac_n "checking for fcntl locking ... $ac_c"
4065 if test "$cross_compiling" = yes; then
4066     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4067 else
4068   cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 #include "tests/fcntl_lock.c"
4072 EOF
4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4074 then
4075   echo yes;cat >> confdefs.h <<\EOF
4076 #define HAVE_FCNTL_LOCK 1
4077 EOF
4078
4079 else
4080   echo "configure: failed program was:" >&5
4081   cat conftest.$ac_ext >&5
4082   rm -fr conftest*
4083   echo no
4084 fi
4085 rm -fr conftest*
4086 fi
4087
4088
4089 echo $ac_n "checking for sysv ipc ... $ac_c"
4090 if test "$cross_compiling" = yes; then
4091     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4092 else
4093   cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 #include "tests/sysv_ipc.c"
4097 EOF
4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4099 then
4100   echo yes;cat >> confdefs.h <<\EOF
4101 #define HAVE_SYSV_IPC 1
4102 EOF
4103
4104 else
4105   echo "configure: failed program was:" >&5
4106   cat conftest.$ac_ext >&5
4107   rm -fr conftest*
4108   echo no
4109 fi
4110 rm -fr conftest*
4111 fi
4112
4113
4114 #################################################
4115 # check for the AFS filesystem
4116 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
4117 echo "configure:4118: checking whether to use AFS" >&5
4118 # Check whether --with-afs or --without-afs was given.
4119 if test "${with_afs+set}" = set; then
4120   withval="$with_afs"
4121    case "$withval" in
4122   yes)
4123     echo "$ac_t""yes" 1>&6
4124     cat >> confdefs.h <<\EOF
4125 #define WITH_AFS 1
4126 EOF
4127
4128     ;;
4129   *)
4130     echo "$ac_t""no" 1>&6
4131     ;;
4132   esac 
4133 else
4134   echo "$ac_t""no" 1>&6
4135
4136 fi
4137
4138
4139
4140 #################################################
4141 # check for the DFS auth system
4142 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
4143 echo "configure:4144: checking whether to use DFS auth" >&5
4144 # Check whether --with-dfs or --without-dfs was given.
4145 if test "${with_dfs+set}" = set; then
4146   withval="$with_dfs"
4147    case "$withval" in
4148   yes)
4149     echo "$ac_t""yes" 1>&6
4150     cat >> confdefs.h <<\EOF
4151 #define WITH_DFS 1
4152 EOF
4153
4154     ;;
4155   *)
4156     echo "$ac_t""no" 1>&6
4157     ;;
4158   esac 
4159 else
4160   echo "$ac_t""no" 1>&6
4161
4162 fi
4163
4164
4165 #################################################
4166 # check for automount support
4167 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
4168 echo "configure:4169: checking whether to use AUTOMOUNT" >&5
4169 # Check whether --with-automount or --without-automount was given.
4170 if test "${with_automount+set}" = set; then
4171   withval="$with_automount"
4172    case "$withval" in
4173   yes)
4174     echo "$ac_t""yes" 1>&6
4175     cat >> confdefs.h <<\EOF
4176 #define WITH_AUTOMOUNT 1
4177 EOF
4178
4179     ;;
4180   *)
4181     echo "$ac_t""no" 1>&6
4182     ;;
4183   esac 
4184 else
4185   echo "$ac_t""no" 1>&6
4186
4187 fi
4188
4189
4190 #################################################
4191 # check for a LDAP password database
4192 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
4193 echo "configure:4194: checking whether to use LDAP password database" >&5
4194 # Check whether --with-ldap or --without-ldap was given.
4195 if test "${with_ldap+set}" = set; then
4196   withval="$with_ldap"
4197    case "$withval" in
4198   yes)
4199     echo "$ac_t""yes" 1>&6
4200     cat >> confdefs.h <<\EOF
4201 #define WITH_LDAP 1
4202 EOF
4203
4204     ;;
4205   *)
4206     echo "$ac_t""no" 1>&6
4207     ;;
4208   esac 
4209 else
4210   echo "$ac_t""no" 1>&6
4211
4212 fi
4213
4214
4215 #################################################
4216 # check for a NISPLUS password database
4217 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
4218 echo "configure:4219: checking whether to use NISPLUS password database" >&5
4219 # Check whether --with-nisplus or --without-nisplus was given.
4220 if test "${with_nisplus+set}" = set; then
4221   withval="$with_nisplus"
4222    case "$withval" in
4223   yes)
4224     echo "$ac_t""yes" 1>&6
4225     cat >> confdefs.h <<\EOF
4226 #define WITH_NISPLUS 1
4227 EOF
4228
4229     ;;
4230   *)
4231     echo "$ac_t""no" 1>&6
4232     ;;
4233   esac 
4234 else
4235   echo "$ac_t""no" 1>&6
4236
4237 fi
4238
4239
4240 #################################################
4241 # check for a NISPLUS_HOME support 
4242 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
4243 echo "configure:4244: checking whether to use NISPLUS_HOME" >&5
4244 # Check whether --with-nisplus-home or --without-nisplus-home was given.
4245 if test "${with_nisplus_home+set}" = set; then
4246   withval="$with_nisplus_home"
4247    case "$withval" in
4248   yes)
4249     echo "$ac_t""yes" 1>&6
4250     cat >> confdefs.h <<\EOF
4251 #define WITH_NISPLUS_HOME 1
4252 EOF
4253
4254     ;;
4255   *)
4256     echo "$ac_t""no" 1>&6
4257     ;;
4258   esac 
4259 else
4260   echo "$ac_t""no" 1>&6
4261
4262 fi
4263
4264
4265 #################################################
4266 # check for the secure socket layer
4267 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
4268 echo "configure:4269: checking whether to use SSL" >&5
4269 # Check whether --with-ssl or --without-ssl was given.
4270 if test "${with_ssl+set}" = set; then
4271   withval="$with_ssl"
4272    case "$withval" in
4273   yes)
4274     echo "$ac_t""yes" 1>&6
4275     cat >> confdefs.h <<\EOF
4276 #define WITH_SSL 1
4277 EOF
4278
4279     ;;
4280   *)
4281     echo "$ac_t""no" 1>&6
4282     ;;
4283   esac 
4284 else
4285   echo "$ac_t""no" 1>&6
4286
4287 fi
4288
4289
4290 #################################################
4291 # check for experimental mmap support
4292 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
4293 echo "configure:4294: checking whether to use MMAP" >&5
4294 # Check whether --with-mmap or --without-mmap was given.
4295 if test "${with_mmap+set}" = set; then
4296   withval="$with_mmap"
4297    case "$withval" in
4298   yes)
4299     echo "$ac_t""yes" 1>&6
4300     cat >> confdefs.h <<\EOF
4301 #define WITH_MMAP 1
4302 EOF
4303
4304     ;;
4305   *)
4306     echo "$ac_t""no" 1>&6
4307     ;;
4308   esac 
4309 else
4310   echo "$ac_t""no" 1>&6
4311
4312 fi
4313
4314
4315 #################################################
4316 # check for syslog logging
4317 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
4318 echo "configure:4319: checking whether to use syslog logging" >&5
4319 # Check whether --with-syslog or --without-syslog was given.
4320 if test "${with_syslog+set}" = set; then
4321   withval="$with_syslog"
4322    case "$withval" in
4323   yes)
4324     echo "$ac_t""yes" 1>&6
4325     cat >> confdefs.h <<\EOF
4326 #define WITH_SYSLOG 1
4327 EOF
4328
4329     ;;
4330   *)
4331     echo "$ac_t""no" 1>&6
4332     ;;
4333   esac 
4334 else
4335   echo "$ac_t""no" 1>&6
4336
4337 fi
4338
4339
4340 #################################################
4341 # check for experimental netatalk resource fork support
4342 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
4343 echo "configure:4344: checking whether to support netatalk" >&5
4344 # Check whether --with-netatalk or --without-netatalk was given.
4345 if test "${with_netatalk+set}" = set; then
4346   withval="$with_netatalk"
4347    case "$withval" in
4348   yes)
4349     echo "$ac_t""yes" 1>&6
4350     cat >> confdefs.h <<\EOF
4351 #define WITH_NETATALK 1
4352 EOF
4353
4354     ;;
4355   *)
4356     echo "$ac_t""no" 1>&6
4357     ;;
4358   esac 
4359 else
4360   echo "$ac_t""no" 1>&6
4361
4362 fi
4363
4364
4365
4366 #################################################
4367 # these tests are taken from the GNU fileutils package
4368 echo "checking how to get filesystem space usage" 1>&6
4369 echo "configure:4370: checking how to get filesystem space usage" >&5
4370 space=no
4371
4372 # Perform only the link test since it seems there are no variants of the
4373 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
4374 # because that got a false positive on SCO OSR5.  Adding the declaration
4375 # of a `struct statvfs' causes this test to fail (as it should) on such
4376 # systems.  That system is reported to work fine with STAT_STATFS4 which
4377 # is what it gets when this test fails.
4378 if test $space = no; then
4379   # SVR4
4380   echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
4381 echo "configure:4382: checking statvfs function (SVR4)" >&5
4382 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
4383   echo $ac_n "(cached) $ac_c" 1>&6
4384 else
4385   cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 #include <sys/types.h>
4389 #include <sys/statvfs.h>
4390 int main() {
4391 struct statvfs fsd; statvfs (0, &fsd);
4392 ; return 0; }
4393 EOF
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4395   rm -rf conftest*
4396   fu_cv_sys_stat_statvfs=yes
4397 else
4398   echo "configure: failed program was:" >&5
4399   cat conftest.$ac_ext >&5
4400   rm -rf conftest*
4401   fu_cv_sys_stat_statvfs=no
4402 fi
4403 rm -f conftest*
4404 fi
4405
4406 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
4407   if test $fu_cv_sys_stat_statvfs = yes; then
4408     space=yes
4409     cat >> confdefs.h <<\EOF
4410 #define STAT_STATVFS 1
4411 EOF
4412
4413   fi
4414 fi
4415
4416 if test $space = no; then
4417   # DEC Alpha running OSF/1
4418   echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
4419 echo "configure:4420: checking for 3-argument statfs function (DEC OSF/1)" >&5
4420   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
4421   echo $ac_n "(cached) $ac_c" 1>&6
4422 else
4423   if test "$cross_compiling" = yes; then
4424   fu_cv_sys_stat_statfs3_osf1=no
4425 else
4426   cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429
4430 #include <sys/param.h>
4431 #include <sys/types.h>
4432 #include <sys/mount.h>
4433   main ()
4434   {
4435     struct statfs fsd;
4436     fsd.f_fsize = 0;
4437     exit (statfs (".", &fsd, sizeof (struct statfs)));
4438   }
4439 EOF
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4441 then
4442   fu_cv_sys_stat_statfs3_osf1=yes
4443 else
4444   echo "configure: failed program was:" >&5
4445   cat conftest.$ac_ext >&5
4446   rm -fr conftest*
4447   fu_cv_sys_stat_statfs3_osf1=no
4448 fi
4449 rm -fr conftest*
4450 fi
4451
4452 fi
4453
4454   echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
4455   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
4456     space=yes
4457     cat >> confdefs.h <<\EOF
4458 #define STAT_STATFS3_OSF1 1
4459 EOF
4460
4461   fi
4462 fi
4463
4464 if test $space = no; then
4465 # AIX
4466   echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
4467 echo "configure:4468: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
4468   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
4469   echo $ac_n "(cached) $ac_c" 1>&6
4470 else
4471   if test "$cross_compiling" = yes; then
4472   fu_cv_sys_stat_statfs2_bsize=no
4473 else
4474   cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477
4478 #ifdef HAVE_SYS_PARAM_H
4479 #include <sys/param.h>
4480 #endif
4481 #ifdef HAVE_SYS_MOUNT_H
4482 #include <sys/mount.h>
4483 #endif
4484 #ifdef HAVE_SYS_VFS_H
4485 #include <sys/vfs.h>
4486 #endif
4487   main ()
4488   {
4489   struct statfs fsd;
4490   fsd.f_bsize = 0;
4491   exit (statfs (".", &fsd));
4492   }
4493 EOF
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4495 then
4496   fu_cv_sys_stat_statfs2_bsize=yes
4497 else
4498   echo "configure: failed program was:" >&5
4499   cat conftest.$ac_ext >&5
4500   rm -fr conftest*
4501   fu_cv_sys_stat_statfs2_bsize=no
4502 fi
4503 rm -fr conftest*
4504 fi
4505
4506 fi
4507
4508   echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
4509   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
4510     space=yes
4511     cat >> confdefs.h <<\EOF
4512 #define STAT_STATFS2_BSIZE 1
4513 EOF
4514
4515   fi
4516 fi
4517
4518 if test $space = no; then
4519 # SVR3
4520   echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
4521 echo "configure:4522: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
4522   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
4523   echo $ac_n "(cached) $ac_c" 1>&6
4524 else
4525   if test "$cross_compiling" = yes; then
4526   fu_cv_sys_stat_statfs4=no
4527 else
4528   cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531 #include <sys/types.h>
4532 #include <sys/statfs.h>
4533   main ()
4534   {
4535   struct statfs fsd;
4536   exit (statfs (".", &fsd, sizeof fsd, 0));
4537   }
4538 EOF
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4540 then
4541   fu_cv_sys_stat_statfs4=yes
4542 else
4543   echo "configure: failed program was:" >&5
4544   cat conftest.$ac_ext >&5
4545   rm -fr conftest*
4546   fu_cv_sys_stat_statfs4=no
4547 fi
4548 rm -fr conftest*
4549 fi
4550
4551 fi
4552
4553   echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
4554   if test $fu_cv_sys_stat_statfs4 = yes; then
4555     space=yes
4556     cat >> confdefs.h <<\EOF
4557 #define STAT_STATFS4 1
4558 EOF
4559
4560   fi
4561 fi
4562
4563 if test $space = no; then
4564 # 4.4BSD and NetBSD
4565   echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
4566 echo "configure:4567: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
4567   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
4568   echo $ac_n "(cached) $ac_c" 1>&6
4569 else
4570   if test "$cross_compiling" = yes; then
4571   fu_cv_sys_stat_statfs2_fsize=no
4572 else
4573   cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4576 #include <sys/types.h>
4577 #ifdef HAVE_SYS_PARAM_H
4578 #include <sys/param.h>
4579 #endif
4580 #ifdef HAVE_SYS_MOUNT_H
4581 #include <sys/mount.h>
4582 #endif
4583   main ()
4584   {
4585   struct statfs fsd;
4586   fsd.f_fsize = 0;
4587   exit (statfs (".", &fsd));
4588   }
4589 EOF
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4591 then
4592   fu_cv_sys_stat_statfs2_fsize=yes
4593 else
4594   echo "configure: failed program was:" >&5
4595   cat conftest.$ac_ext >&5
4596   rm -fr conftest*
4597   fu_cv_sys_stat_statfs2_fsize=no
4598 fi
4599 rm -fr conftest*
4600 fi
4601
4602 fi
4603
4604   echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
4605   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
4606     space=yes
4607     cat >> confdefs.h <<\EOF
4608 #define STAT_STATFS2_FSIZE 1
4609 EOF
4610
4611   fi
4612 fi
4613
4614 if test $space = no; then
4615   # Ultrix
4616   echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
4617 echo "configure:4618: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
4618   if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
4619   echo $ac_n "(cached) $ac_c" 1>&6
4620 else
4621   if test "$cross_compiling" = yes; then
4622   fu_cv_sys_stat_fs_data=no
4623 else
4624   cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 #include <sys/types.h>
4628 #ifdef HAVE_SYS_PARAM_H
4629 #include <sys/param.h>
4630 #endif
4631 #ifdef HAVE_SYS_MOUNT_H
4632 #include <sys/mount.h>
4633 #endif
4634 #ifdef HAVE_SYS_FS_TYPES_H
4635 #include <sys/fs_types.h>
4636 #endif
4637   main ()
4638   {
4639   struct fs_data fsd;
4640   /* Ultrix's statfs returns 1 for success,
4641      0 for not mounted, -1 for failure.  */
4642   exit (statfs (".", &fsd) != 1);
4643   }
4644 EOF
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4646 then
4647   fu_cv_sys_stat_fs_data=yes
4648 else
4649   echo "configure: failed program was:" >&5
4650   cat conftest.$ac_ext >&5
4651   rm -fr conftest*
4652   fu_cv_sys_stat_fs_data=no
4653 fi
4654 rm -fr conftest*
4655 fi
4656
4657 fi
4658
4659   echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
4660   if test $fu_cv_sys_stat_fs_data = yes; then
4661     space=yes
4662     cat >> confdefs.h <<\EOF
4663 #define STAT_STATFS2_FS_DATA 1
4664 EOF
4665
4666   fi
4667 fi
4668
4669
4670 trap '' 1 2 15
4671 cat > confcache <<\EOF
4672 # This file is a shell script that caches the results of configure
4673 # tests run on this system so they can be shared between configure
4674 # scripts and configure runs.  It is not useful on other systems.
4675 # If it contains results you don't want to keep, you may remove or edit it.
4676 #
4677 # By default, configure uses ./config.cache as the cache file,
4678 # creating it if it does not exist already.  You can give configure
4679 # the --cache-file=FILE option to use a different cache file; that is
4680 # what configure does when it calls configure scripts in
4681 # subdirectories, so they share the cache.
4682 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4683 # config.status only pays attention to the cache file if you give it the
4684 # --recheck option to rerun configure.
4685 #
4686 EOF
4687 # The following way of writing the cache mishandles newlines in values,
4688 # but we know of no workaround that is simple, portable, and efficient.
4689 # So, don't put newlines in cache variables' values.
4690 # Ultrix sh set writes to stderr and can't be redirected directly,
4691 # and sets the high bit in the cache file unless we assign to the vars.
4692 (set) 2>&1 |
4693   case `(ac_space=' '; set) 2>&1` in
4694   *ac_space=\ *)
4695     # `set' does not quote correctly, so add quotes (double-quote substitution
4696     # turns \\\\ into \\, and sed turns \\ into \).
4697     sed -n \
4698       -e "s/'/'\\\\''/g" \
4699       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4700     ;;
4701   *)
4702     # `set' quotes correctly as required by POSIX, so do not add quotes.
4703     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4704     ;;
4705   esac >> confcache
4706 if cmp -s $cache_file confcache; then
4707   :
4708 else
4709   if test -w $cache_file; then
4710     echo "updating cache $cache_file"
4711     cat confcache > $cache_file
4712   else
4713     echo "not updating unwritable cache $cache_file"
4714   fi
4715 fi
4716 rm -f confcache
4717
4718 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4719
4720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4721 # Let make expand exec_prefix.
4722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4723
4724 # Any assignment to VPATH causes Sun make to only execute
4725 # the first set of double-colon rules, so remove it if not needed.
4726 # If there is a colon in the path, we need to keep it.
4727 if test "x$srcdir" = x.; then
4728   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4729 fi
4730
4731 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4732
4733 DEFS=-DHAVE_CONFIG_H
4734
4735 # Without the "./", some shells look in PATH for config.status.
4736 : ${CONFIG_STATUS=./config.status}
4737
4738 echo creating $CONFIG_STATUS
4739 rm -f $CONFIG_STATUS
4740 cat > $CONFIG_STATUS <<EOF
4741 #! /bin/sh
4742 # Generated automatically by configure.
4743 # Run this file to recreate the current configuration.
4744 # This directory was configured as follows,
4745 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4746 #
4747 # $0 $ac_configure_args
4748 #
4749 # Compiler output produced by configure, useful for debugging
4750 # configure, is in ./config.log if it exists.
4751
4752 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4753 for ac_option
4754 do
4755   case "\$ac_option" in
4756   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4757     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4758     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4759   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4760     echo "$CONFIG_STATUS generated by autoconf version 2.12"
4761     exit 0 ;;
4762   -help | --help | --hel | --he | --h)
4763     echo "\$ac_cs_usage"; exit 0 ;;
4764   *) echo "\$ac_cs_usage"; exit 1 ;;
4765   esac
4766 done
4767
4768 ac_given_srcdir=$srcdir
4769 ac_given_INSTALL="$INSTALL"
4770
4771 trap 'rm -fr `echo "Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy
4772 web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy
4773 rpc_parse/dummy script/dummy include/dummy codepages/dummy
4774 libsmb/dummy bin/dummy printing/dummy include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4775 EOF
4776 cat >> $CONFIG_STATUS <<EOF
4777
4778 # Protect against being on the right side of a sed subst in config.status.
4779 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4780  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4781 $ac_vpsub
4782 $extrasub
4783 s%@CFLAGS@%$CFLAGS%g
4784 s%@CPPFLAGS@%$CPPFLAGS%g
4785 s%@CXXFLAGS@%$CXXFLAGS%g
4786 s%@DEFS@%$DEFS%g
4787 s%@LDFLAGS@%$LDFLAGS%g
4788 s%@LIBS@%$LIBS%g
4789 s%@exec_prefix@%$exec_prefix%g
4790 s%@prefix@%$prefix%g
4791 s%@program_transform_name@%$program_transform_name%g
4792 s%@bindir@%$bindir%g
4793 s%@sbindir@%$sbindir%g
4794 s%@libexecdir@%$libexecdir%g
4795 s%@datadir@%$datadir%g
4796 s%@sysconfdir@%$sysconfdir%g
4797 s%@sharedstatedir@%$sharedstatedir%g
4798 s%@localstatedir@%$localstatedir%g
4799 s%@libdir@%$libdir%g
4800 s%@includedir@%$includedir%g
4801 s%@oldincludedir@%$oldincludedir%g
4802 s%@infodir@%$infodir%g
4803 s%@mandir@%$mandir%g
4804 s%@CC@%$CC%g
4805 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4806 s%@INSTALL_DATA@%$INSTALL_DATA%g
4807 s%@SHELL@%$SHELL%g
4808 s%@AWK@%$AWK%g
4809 s%@host@%$host%g
4810 s%@host_alias@%$host_alias%g
4811 s%@host_cpu@%$host_cpu%g
4812 s%@host_vendor@%$host_vendor%g
4813 s%@host_os@%$host_os%g
4814 s%@target@%$target%g
4815 s%@target_alias@%$target_alias%g
4816 s%@target_cpu@%$target_cpu%g
4817 s%@target_vendor@%$target_vendor%g
4818 s%@target_os@%$target_os%g
4819 s%@build@%$build%g
4820 s%@build_alias@%$build_alias%g
4821 s%@build_cpu@%$build_cpu%g
4822 s%@build_vendor@%$build_vendor%g
4823 s%@build_os@%$build_os%g
4824 s%@CPP@%$CPP%g
4825 s%@LIBOBJS@%$LIBOBJS%g
4826
4827 CEOF
4828 EOF
4829
4830 cat >> $CONFIG_STATUS <<\EOF
4831
4832 # Split the substitutions into bite-sized pieces for seds with
4833 # small command number limits, like on Digital OSF/1 and HP-UX.
4834 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4835 ac_file=1 # Number of current file.
4836 ac_beg=1 # First line for current file.
4837 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4838 ac_more_lines=:
4839 ac_sed_cmds=""
4840 while $ac_more_lines; do
4841   if test $ac_beg -gt 1; then
4842     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4843   else
4844     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4845   fi
4846   if test ! -s conftest.s$ac_file; then
4847     ac_more_lines=false
4848     rm -f conftest.s$ac_file
4849   else
4850     if test -z "$ac_sed_cmds"; then
4851       ac_sed_cmds="sed -f conftest.s$ac_file"
4852     else
4853       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4854     fi
4855     ac_file=`expr $ac_file + 1`
4856     ac_beg=$ac_end
4857     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4858   fi
4859 done
4860 if test -z "$ac_sed_cmds"; then
4861   ac_sed_cmds=cat
4862 fi
4863 EOF
4864
4865 cat >> $CONFIG_STATUS <<EOF
4866
4867 CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy
4868 web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy
4869 rpc_parse/dummy script/dummy include/dummy codepages/dummy
4870 libsmb/dummy bin/dummy printing/dummy"}
4871 EOF
4872 cat >> $CONFIG_STATUS <<\EOF
4873 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4874   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4875   case "$ac_file" in
4876   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4877        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4878   *) ac_file_in="${ac_file}.in" ;;
4879   esac
4880
4881   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4882
4883   # Remove last slash and all that follows it.  Not all systems have dirname.
4884   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4885   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4886     # The file is in a subdirectory.
4887     test ! -d "$ac_dir" && mkdir "$ac_dir"
4888     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4889     # A "../" for each directory in $ac_dir_suffix.
4890     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4891   else
4892     ac_dir_suffix= ac_dots=
4893   fi
4894
4895   case "$ac_given_srcdir" in
4896   .)  srcdir=.
4897       if test -z "$ac_dots"; then top_srcdir=.
4898       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4899   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4900   *) # Relative path.
4901     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4902     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4903   esac
4904
4905   case "$ac_given_INSTALL" in
4906   [/$]*) INSTALL="$ac_given_INSTALL" ;;
4907   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4908   esac
4909
4910   echo creating "$ac_file"
4911   rm -f "$ac_file"
4912   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4913   case "$ac_file" in
4914   *Makefile*) ac_comsub="1i\\
4915 # $configure_input" ;;
4916   *) ac_comsub= ;;
4917   esac
4918
4919   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4920   sed -e "$ac_comsub
4921 s%@configure_input@%$configure_input%g
4922 s%@srcdir@%$srcdir%g
4923 s%@top_srcdir@%$top_srcdir%g
4924 s%@INSTALL@%$INSTALL%g
4925 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4926 fi; done
4927 rm -f conftest.s*
4928
4929 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4930 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4931 #
4932 # ac_d sets the value in "#define NAME VALUE" lines.
4933 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4934 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4935 ac_dC='\3'
4936 ac_dD='%g'
4937 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4938 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4939 ac_uB='\([      ]\)%\1#\2define\3'
4940 ac_uC=' '
4941 ac_uD='\4%g'
4942 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4943 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4944 ac_eB='$%\1#\2define\3'
4945 ac_eC=' '
4946 ac_eD='%g'
4947
4948 if test "${CONFIG_HEADERS+set}" != set; then
4949 EOF
4950 cat >> $CONFIG_STATUS <<EOF
4951   CONFIG_HEADERS="include/config.h"
4952 EOF
4953 cat >> $CONFIG_STATUS <<\EOF
4954 fi
4955 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4956   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4957   case "$ac_file" in
4958   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4959        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4960   *) ac_file_in="${ac_file}.in" ;;
4961   esac
4962
4963   echo creating $ac_file
4964
4965   rm -f conftest.frag conftest.in conftest.out
4966   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4967   cat $ac_file_inputs > conftest.in
4968
4969 EOF
4970
4971 # Transform confdefs.h into a sed script conftest.vals that substitutes
4972 # the proper values into config.h.in to produce config.h.  And first:
4973 # Protect against being on the right side of a sed subst in config.status.
4974 # Protect against being in an unquoted here document in config.status.
4975 rm -f conftest.vals
4976 cat > conftest.hdr <<\EOF
4977 s/[\\&%]/\\&/g
4978 s%[\\$`]%\\&%g
4979 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4980 s%ac_d%ac_u%gp
4981 s%ac_u%ac_e%gp
4982 EOF
4983 sed -n -f conftest.hdr confdefs.h > conftest.vals
4984 rm -f conftest.hdr
4985
4986 # This sed command replaces #undef with comments.  This is necessary, for
4987 # example, in the case of _POSIX_SOURCE, which is predefined and required
4988 # on some systems where configure will not decide to define it.
4989 cat >> conftest.vals <<\EOF
4990 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4991 EOF
4992
4993 # Break up conftest.vals because some shells have a limit on
4994 # the size of here documents, and old seds have small limits too.
4995
4996 rm -f conftest.tail
4997 while :
4998 do
4999   ac_lines=`grep -c . conftest.vals`
5000   # grep -c gives empty output for an empty file on some AIX systems.
5001   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5002   # Write a limited-size here document to conftest.frag.
5003   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5004   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5005   echo 'CEOF
5006   sed -f conftest.frag conftest.in > conftest.out
5007   rm -f conftest.in
5008   mv conftest.out conftest.in
5009 ' >> $CONFIG_STATUS
5010   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5011   rm -f conftest.vals
5012   mv conftest.tail conftest.vals
5013 done
5014 rm -f conftest.vals
5015
5016 cat >> $CONFIG_STATUS <<\EOF
5017   rm -f conftest.frag conftest.h
5018   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5019   cat conftest.in >> conftest.h
5020   rm -f conftest.in
5021   if cmp -s $ac_file conftest.h 2>/dev/null; then
5022     echo "$ac_file is unchanged"
5023     rm -f conftest.h
5024   else
5025     # Remove last slash and all that follows it.  Not all systems have dirname.
5026       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5027       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5028       # The file is in a subdirectory.
5029       test ! -d "$ac_dir" && mkdir "$ac_dir"
5030     fi
5031     rm -f $ac_file
5032     mv conftest.h $ac_file
5033   fi
5034 fi; done
5035
5036 EOF
5037 cat >> $CONFIG_STATUS <<EOF
5038
5039 EOF
5040 cat >> $CONFIG_STATUS <<\EOF
5041
5042 exit 0
5043 EOF
5044 chmod +x $CONFIG_STATUS
5045 rm -fr confdefs* $ac_clean_files
5046 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5047