When testing for /usr/include/heimdal, don't include /usr/heimdal/include
[ira/wip.git] / source / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245 exec 6>&1
246
247 #
248 # Initializations.
249 #
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete.  It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
262
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
269
270 ac_unique_file="include/includes.h"
271 ac_default_prefix=/usr/local/samba
272 # Factoring default headers for most tests.
273 ac_includes_default="\
274 #include <stdio.h>
275 #if HAVE_SYS_TYPES_H
276 # include <sys/types.h>
277 #endif
278 #if HAVE_SYS_STAT_H
279 # include <sys/stat.h>
280 #endif
281 #if STDC_HEADERS
282 # include <stdlib.h>
283 # include <stddef.h>
284 #else
285 # if HAVE_STDLIB_H
286 #  include <stdlib.h>
287 # endif
288 #endif
289 #if HAVE_STRING_H
290 # if !STDC_HEADERS && HAVE_MEMORY_H
291 #  include <memory.h>
292 # endif
293 # include <string.h>
294 #endif
295 #if HAVE_STRINGS_H
296 # include <strings.h>
297 #endif
298 #if HAVE_INTTYPES_H
299 # include <inttypes.h>
300 #else
301 # if HAVE_STDINT_H
302 #  include <stdint.h>
303 # endif
304 #endif
305 #if HAVE_UNISTD_H
306 # include <unistd.h>
307 #endif"
308
309 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configdir lockdir piddir logfilebase privatedir swatdir RUNPROG MPROGS LDSHFLAGS SONAMEFLAG SHLD HOST_OS PAM_MOD WRAP WRAP32 WRAPPROG PICFLAG PICSUFFIX POBAD_CC SHLIBEXT LIBSMBCLIENT_SHARED LIBSMBCLIENT PRINTLIBS AUTHLIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS ROFF DYNEXP MYSQL_CONFIG MYSQL_CFLAGS MYSQL_LIBS MODULE_PDB_MYSQL XML2_CONFIG XML_CFLAGS XML_LIBS MODULE_PDB_XML QUOTAOBJS manlangs WINBIND_TARGETS WINBIND_STARGETS WINBIND_LTARGETS WINBIND_PAM_TARGETS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS BUILD_POPT FLAGS1 PYTHON builddir LTLIBOBJS'
310 ac_subst_files=''
311
312 # Initialize some variables set by options.
313 ac_init_help=
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
317 cache_file=/dev/null
318 exec_prefix=NONE
319 no_create=
320 no_recursion=
321 prefix=NONE
322 program_prefix=NONE
323 program_suffix=NONE
324 program_transform_name=s,x,x,
325 silent=
326 site=
327 srcdir=
328 verbose=
329 x_includes=NONE
330 x_libraries=NONE
331
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
349
350 ac_prev=
351 for ac_option
352 do
353   # If the previous option needs an argument, assign it.
354   if test -n "$ac_prev"; then
355     eval "$ac_prev=\$ac_option"
356     ac_prev=
357     continue
358   fi
359
360   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361
362   # Accept the important Cygnus configure options, so we can diagnose typos.
363
364   case $ac_option in
365
366   -bindir | --bindir | --bindi | --bind | --bin | --bi)
367     ac_prev=bindir ;;
368   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369     bindir=$ac_optarg ;;
370
371   -build | --build | --buil | --bui | --bu)
372     ac_prev=build_alias ;;
373   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374     build_alias=$ac_optarg ;;
375
376   -cache-file | --cache-file | --cache-fil | --cache-fi \
377   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378     ac_prev=cache_file ;;
379   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381     cache_file=$ac_optarg ;;
382
383   --config-cache | -C)
384     cache_file=config.cache ;;
385
386   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387     ac_prev=datadir ;;
388   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389   | --da=*)
390     datadir=$ac_optarg ;;
391
392   -disable-* | --disable-*)
393     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394     # Reject names that are not valid shell variable names.
395     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397    { (exit 1); exit 1; }; }
398     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399     eval "enable_$ac_feature=no" ;;
400
401   -enable-* | --enable-*)
402     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403     # Reject names that are not valid shell variable names.
404     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406    { (exit 1); exit 1; }; }
407     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408     case $ac_option in
409       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
410       *) ac_optarg=yes ;;
411     esac
412     eval "enable_$ac_feature='$ac_optarg'" ;;
413
414   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416   | --exec | --exe | --ex)
417     ac_prev=exec_prefix ;;
418   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420   | --exec=* | --exe=* | --ex=*)
421     exec_prefix=$ac_optarg ;;
422
423   -gas | --gas | --ga | --g)
424     # Obsolete; use --with-gas.
425     with_gas=yes ;;
426
427   -help | --help | --hel | --he | -h)
428     ac_init_help=long ;;
429   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430     ac_init_help=recursive ;;
431   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432     ac_init_help=short ;;
433
434   -host | --host | --hos | --ho)
435     ac_prev=host_alias ;;
436   -host=* | --host=* | --hos=* | --ho=*)
437     host_alias=$ac_optarg ;;
438
439   -includedir | --includedir | --includedi | --included | --include \
440   | --includ | --inclu | --incl | --inc)
441     ac_prev=includedir ;;
442   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443   | --includ=* | --inclu=* | --incl=* | --inc=*)
444     includedir=$ac_optarg ;;
445
446   -infodir | --infodir | --infodi | --infod | --info | --inf)
447     ac_prev=infodir ;;
448   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449     infodir=$ac_optarg ;;
450
451   -libdir | --libdir | --libdi | --libd)
452     ac_prev=libdir ;;
453   -libdir=* | --libdir=* | --libdi=* | --libd=*)
454     libdir=$ac_optarg ;;
455
456   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457   | --libexe | --libex | --libe)
458     ac_prev=libexecdir ;;
459   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460   | --libexe=* | --libex=* | --libe=*)
461     libexecdir=$ac_optarg ;;
462
463   -localstatedir | --localstatedir | --localstatedi | --localstated \
464   | --localstate | --localstat | --localsta | --localst \
465   | --locals | --local | --loca | --loc | --lo)
466     ac_prev=localstatedir ;;
467   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470     localstatedir=$ac_optarg ;;
471
472   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473     ac_prev=mandir ;;
474   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
475     mandir=$ac_optarg ;;
476
477   -nfp | --nfp | --nf)
478     # Obsolete; use --without-fp.
479     with_fp=no ;;
480
481   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482   | --no-cr | --no-c | -n)
483     no_create=yes ;;
484
485   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
487     no_recursion=yes ;;
488
489   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491   | --oldin | --oldi | --old | --ol | --o)
492     ac_prev=oldincludedir ;;
493   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496     oldincludedir=$ac_optarg ;;
497
498   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499     ac_prev=prefix ;;
500   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
501     prefix=$ac_optarg ;;
502
503   -program-prefix | --program-prefix | --program-prefi | --program-pref \
504   | --program-pre | --program-pr | --program-p)
505     ac_prev=program_prefix ;;
506   -program-prefix=* | --program-prefix=* | --program-prefi=* \
507   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508     program_prefix=$ac_optarg ;;
509
510   -program-suffix | --program-suffix | --program-suffi | --program-suff \
511   | --program-suf | --program-su | --program-s)
512     ac_prev=program_suffix ;;
513   -program-suffix=* | --program-suffix=* | --program-suffi=* \
514   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515     program_suffix=$ac_optarg ;;
516
517   -program-transform-name | --program-transform-name \
518   | --program-transform-nam | --program-transform-na \
519   | --program-transform-n | --program-transform- \
520   | --program-transform | --program-transfor \
521   | --program-transfo | --program-transf \
522   | --program-trans | --program-tran \
523   | --progr-tra | --program-tr | --program-t)
524     ac_prev=program_transform_name ;;
525   -program-transform-name=* | --program-transform-name=* \
526   | --program-transform-nam=* | --program-transform-na=* \
527   | --program-transform-n=* | --program-transform-=* \
528   | --program-transform=* | --program-transfor=* \
529   | --program-transfo=* | --program-transf=* \
530   | --program-trans=* | --program-tran=* \
531   | --progr-tra=* | --program-tr=* | --program-t=*)
532     program_transform_name=$ac_optarg ;;
533
534   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535   | -silent | --silent | --silen | --sile | --sil)
536     silent=yes ;;
537
538   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539     ac_prev=sbindir ;;
540   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541   | --sbi=* | --sb=*)
542     sbindir=$ac_optarg ;;
543
544   -sharedstatedir | --sharedstatedir | --sharedstatedi \
545   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546   | --sharedst | --shareds | --shared | --share | --shar \
547   | --sha | --sh)
548     ac_prev=sharedstatedir ;;
549   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552   | --sha=* | --sh=*)
553     sharedstatedir=$ac_optarg ;;
554
555   -site | --site | --sit)
556     ac_prev=site ;;
557   -site=* | --site=* | --sit=*)
558     site=$ac_optarg ;;
559
560   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561     ac_prev=srcdir ;;
562   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
563     srcdir=$ac_optarg ;;
564
565   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566   | --syscon | --sysco | --sysc | --sys | --sy)
567     ac_prev=sysconfdir ;;
568   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570     sysconfdir=$ac_optarg ;;
571
572   -target | --target | --targe | --targ | --tar | --ta | --t)
573     ac_prev=target_alias ;;
574   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575     target_alias=$ac_optarg ;;
576
577   -v | -verbose | --verbose | --verbos | --verbo | --verb)
578     verbose=yes ;;
579
580   -version | --version | --versio | --versi | --vers | -V)
581     ac_init_version=: ;;
582
583   -with-* | --with-*)
584     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585     # Reject names that are not valid shell variable names.
586     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587       { echo "$as_me: error: invalid package name: $ac_package" >&2
588    { (exit 1); exit 1; }; }
589     ac_package=`echo $ac_package| sed 's/-/_/g'`
590     case $ac_option in
591       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
592       *) ac_optarg=yes ;;
593     esac
594     eval "with_$ac_package='$ac_optarg'" ;;
595
596   -without-* | --without-*)
597     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598     # Reject names that are not valid shell variable names.
599     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600       { echo "$as_me: error: invalid package name: $ac_package" >&2
601    { (exit 1); exit 1; }; }
602     ac_package=`echo $ac_package | sed 's/-/_/g'`
603     eval "with_$ac_package=no" ;;
604
605   --x)
606     # Obsolete; use --with-x.
607     with_x=yes ;;
608
609   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610   | --x-incl | --x-inc | --x-in | --x-i)
611     ac_prev=x_includes ;;
612   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614     x_includes=$ac_optarg ;;
615
616   -x-libraries | --x-libraries | --x-librarie | --x-librari \
617   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618     ac_prev=x_libraries ;;
619   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621     x_libraries=$ac_optarg ;;
622
623   -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625    { (exit 1); exit 1; }; }
626     ;;
627
628   *=*)
629     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630     # Reject names that are not valid shell variable names.
631     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633    { (exit 1); exit 1; }; }
634     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635     eval "$ac_envvar='$ac_optarg'"
636     export $ac_envvar ;;
637
638   *)
639     # FIXME: should be removed in autoconf 3.0.
640     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
644     ;;
645
646   esac
647 done
648
649 if test -n "$ac_prev"; then
650   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651   { echo "$as_me: error: missing argument to $ac_option" >&2
652    { (exit 1); exit 1; }; }
653 fi
654
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668               localstatedir libdir includedir oldincludedir infodir mandir
669 do
670   eval ac_val=$`echo $ac_var`
671   case $ac_val in
672     [\\/$]* | ?:[\\/]* ) ;;
673     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674    { (exit 1); exit 1; }; };;
675   esac
676 done
677
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
681 build=$build_alias
682 host=$host_alias
683 target=$target_alias
684
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687   if test "x$build_alias" = x; then
688     cross_compiling=maybe
689     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690     If a cross compiler is detected then cross compile mode will be used." >&2
691   elif test "x$build_alias" != "x$host_alias"; then
692     cross_compiling=yes
693   fi
694 fi
695
696 ac_tool_prefix=
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698
699 test "$silent" = yes && exec 6>/dev/null
700
701
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704   ac_srcdir_defaulted=yes
705   # Try the directory containing this script, then its parent.
706   ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708          X"$0" : 'X\(//\)[^/]' \| \
709          X"$0" : 'X\(//\)$' \| \
710          X"$0" : 'X\(/\)' \| \
711          .     : '\(.\)' 2>/dev/null ||
712 echo X"$0" |
713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715           /^X\(\/\/\)$/{ s//\1/; q; }
716           /^X\(\/\).*/{ s//\1/; q; }
717           s/.*/./; q'`
718   srcdir=$ac_confdir
719   if test ! -r $srcdir/$ac_unique_file; then
720     srcdir=..
721   fi
722 else
723   ac_srcdir_defaulted=no
724 fi
725 if test ! -r $srcdir/$ac_unique_file; then
726   if test "$ac_srcdir_defaulted" = yes; then
727     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728    { (exit 1); exit 1; }; }
729   else
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731    { (exit 1); exit 1; }; }
732   fi
733 fi
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736    { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
751 ac_env_CC_value=$CC
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775   # Omit some internal or obsolete options to make the list less imposing.
776   # This message is too long to be a string in the A/UX 3.1 sh.
777   cat <<_ACEOF
778 \`configure' configures this package to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE.  See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788   -h, --help              display this help and exit
789       --help=short        display options specific to this package
790       --help=recursive    display the short help of all the included packages
791   -V, --version           display version information and exit
792   -q, --quiet, --silent   do not print \`checking...' messages
793       --cache-file=FILE   cache test results in FILE [disabled]
794   -C, --config-cache      alias for \`--cache-file=config.cache'
795   -n, --no-create         do not create output files
796       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800   cat <<_ACEOF
801 Installation directories:
802   --prefix=PREFIX         install architecture-independent files in PREFIX
803                           [$ac_default_prefix]
804   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
805                           [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815   --bindir=DIR           user executables [EPREFIX/bin]
816   --sbindir=DIR          system admin executables [EPREFIX/sbin]
817   --libexecdir=DIR       program executables [EPREFIX/libexec]
818   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
819   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
820   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
821   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
822   --libdir=DIR           object code libraries [EPREFIX/lib]
823   --includedir=DIR       C header files [PREFIX/include]
824   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
825   --infodir=DIR          info documentation [PREFIX/info]
826   --mandir=DIR           man documentation [PREFIX/man]
827 _ACEOF
828
829   cat <<\_ACEOF
830
831 System types:
832   --build=BUILD     configure for building on BUILD [guessed]
833   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
834   --target=TARGET   configure for building compilers for TARGET [HOST]
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839
840   cat <<\_ACEOF
841
842 Optional Features:
843   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
844   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
845   --enable-debug          Turn on compiler debugging information (default=no)
846   --enable-developer      Turn on developer warnings and debugging (default=no)
847   --enable-krb5developer  Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
848   --enable-dmalloc        Enable heap debugging default=no
849   --enable-cups           Turn on CUPS support (default=auto)
850   --disable-mysqltest       Do not try to compile and run a test MYSQL program
851   --disable-xmltest       Do not try to compile and run a test LIBXML program
852
853 Optional Packages:
854   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
855   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
856   --with-fhs              Use FHS-compliant paths (default=no)
857   --with-privatedir=DIR   Where to put smbpasswd ($ac_default_prefix/private)
858   --with-lockdir=DIR      Where to put lock files ($ac_default_prefix/var/locks)
859   --with-piddir=DIR       Where to put pid files ($ac_default_prefix/var/locks)
860   --with-swatdir=DIR      Where to put SWAT files ($ac_default_prefix/swat)
861   --with-configdir=DIR    Where to put configuration files (\$libdir)
862   --with-logfilebase=DIR  Where to put log files (\$(VARDIR))
863   --with-readline=DIR   Look for readline include/libs in DIR (default=auto)
864   --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
865   --with-smbwrapper       Include SMB wrapper support (default=no)
866   --with-afs              Include AFS clear-text auth support (default=no)
867   --with-dce-dfs          Include DCE/DFS clear-text auth support (default=no)
868    --with-ads  Active Directory support (default yes)
869   --with-krb5=base-dir    Locate Kerberos 5 support (default=/usr)
870    --with-ldap  LDAP support (default yes)
871   --with-mysql-prefix=PFX   Prefix where MYSQL is installed (optional)
872   --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
873   --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
874   --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
875   --with-automount        Include AUTOMOUNT support (default=no)
876   --with-smbmount         Include SMBMOUNT (Linux only) support (default=no)
877   --with-pam              Include PAM support (default=no)
878   --with-pam_smbpass      Build a PAM module to allow other applications to use our smbpasswd file (default=no)
879   --with-sam              Build new (experimental) SAM database (default=no)
880   --with-ldapsam           Include LDAP SAM 2.2 compatible configuration (default=no)
881   --with-tdbsam           Include experimental TDB SAM support (default=no)
882   --with-nisplussam       Include NISPLUS SAM support (default=no)
883   --with-nisplus-home     Include NISPLUS_HOME support (default=no)
884   --with-syslog           Include experimental SYSLOG support (default=no)
885   --with-profiling-data   Include gathering source code profile information (default=no)
886   --with-quotas           Include experimental disk-quota support (default=no)
887   --with-utmp             Include experimental utmp accounting (default=no)
888   --with-manpages-langs={en,ja,pl}  Choose man pages' language(s). (en)
889   --with-libsmbclient     Build the libsmbclient shared library (default=yes)
890   --with-spinlocks        Use spin locks instead of fcntl locks (default=no)
891   --with-acl-support      Include ACL support (default=no)
892   --with-sendfile-support      Check for sendfile support (default=yes)
893   --with-winbind          Build winbind (default, if supported by OS)
894   --with-included-popt    use bundled popt library, not from system
895   --with-python=PYTHONNAME  build Python libraries
896
897 Some influential environment variables:
898   CC          C compiler command
899   CFLAGS      C compiler flags
900   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
901               nonstandard directory <lib dir>
902   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
903               headers in a nonstandard directory <include dir>
904   CPP         C preprocessor
905
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
908
909 _ACEOF
910 fi
911
912 if test "$ac_init_help" = "recursive"; then
913   # If there are subdirs, report their specific --help.
914   ac_popdir=`pwd`
915   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916     test -d $ac_dir || continue
917     ac_builddir=.
918
919 if test "$ac_dir" != .; then
920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921   # A "../" for each directory in $ac_dir_suffix.
922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924   ac_dir_suffix= ac_top_builddir=
925 fi
926
927 case $srcdir in
928   .)  # No --srcdir option.  We are building in place.
929     ac_srcdir=.
930     if test -z "$ac_top_builddir"; then
931        ac_top_srcdir=.
932     else
933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934     fi ;;
935   [\\/]* | ?:[\\/]* )  # Absolute path.
936     ac_srcdir=$srcdir$ac_dir_suffix;
937     ac_top_srcdir=$srcdir ;;
938   *) # Relative path.
939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 # absolute.
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948
949     cd $ac_dir
950     # Check for guested configure; otherwise get Cygnus style configure.
951     if test -f $ac_srcdir/configure.gnu; then
952       echo
953       $SHELL $ac_srcdir/configure.gnu  --help=recursive
954     elif test -f $ac_srcdir/configure; then
955       echo
956       $SHELL $ac_srcdir/configure  --help=recursive
957     elif test -f $ac_srcdir/configure.ac ||
958            test -f $ac_srcdir/configure.in; then
959       echo
960       $ac_configure --help
961     else
962       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963     fi
964     cd $ac_popdir
965   done
966 fi
967
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970   cat <<\_ACEOF
971
972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
976 _ACEOF
977   exit 0
978 fi
979 exec 5>config.log
980 cat >&5 <<_ACEOF
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
983
984 It was created by $as_me, which was
985 generated by GNU Autoconf 2.54.  Invocation command line was
986
987   $ $0 $@
988
989 _ACEOF
990 {
991 cat <<_ASUNAME
992 ## --------- ##
993 ## Platform. ##
994 ## --------- ##
995
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1004
1005 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1006 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1009 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1010 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1011 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1012
1013 _ASUNAME
1014
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 for as_dir in $PATH
1017 do
1018   IFS=$as_save_IFS
1019   test -z "$as_dir" && as_dir=.
1020   echo "PATH: $as_dir"
1021 done
1022
1023 } >&5
1024
1025 cat >&5 <<_ACEOF
1026
1027
1028 ## ----------- ##
1029 ## Core tests. ##
1030 ## ----------- ##
1031
1032 _ACEOF
1033
1034
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Also quote any args containing shell meta-characters.
1038 ac_configure_args=
1039 ac_sep=
1040 for ac_arg
1041 do
1042   case $ac_arg in
1043   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044   | --no-cr | --no-c | -n ) continue ;;
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     continue ;;
1048   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050   esac
1051   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052   # Get rid of the leading space.
1053   ac_sep=" "
1054 done
1055
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log.  We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062   # Save into config.log some information that might help in debugging.
1063   {
1064     echo
1065
1066     cat <<\_ASBOX
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1070 _ASBOX
1071     echo
1072     # The following way of writing the cache mishandles newlines in values,
1073 {
1074   (set) 2>&1 |
1075     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076     *ac_space=\ *)
1077       sed -n \
1078         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080       ;;
1081     *)
1082       sed -n \
1083         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084       ;;
1085     esac;
1086 }
1087     echo
1088
1089     cat <<\_ASBOX
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1093 _ASBOX
1094     echo
1095     for ac_var in $ac_subst_vars
1096     do
1097       eval ac_val=$`echo $ac_var`
1098       echo "$ac_var='"'"'$ac_val'"'"'"
1099     done | sort
1100     echo
1101
1102     if test -n "$ac_subst_files"; then
1103       cat <<\_ASBOX
1104 ## ------------- ##
1105 ## Output files. ##
1106 ## ------------- ##
1107 _ASBOX
1108       echo
1109       for ac_var in $ac_subst_files
1110       do
1111         eval ac_val=$`echo $ac_var`
1112         echo "$ac_var='"'"'$ac_val'"'"'"
1113       done | sort
1114       echo
1115     fi
1116
1117     if test -s confdefs.h; then
1118       cat <<\_ASBOX
1119 ## ----------- ##
1120 ## confdefs.h. ##
1121 ## ----------- ##
1122 _ASBOX
1123       echo
1124       sed "/^$/d" confdefs.h | sort
1125       echo
1126     fi
1127     test "$ac_signal" != 0 &&
1128       echo "$as_me: caught signal $ac_signal"
1129     echo "$as_me: exit $exit_status"
1130   } >&5
1131   rm -f core core.* *.core &&
1132   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133     exit $exit_status
1134      ' 0
1135 for ac_signal in 1 2 13 15; do
1136   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137 done
1138 ac_signal=0
1139
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143 echo >confdefs.h
1144
1145 # Predefined preprocessor variables.
1146
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1149 _ACEOF
1150
1151
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154 _ACEOF
1155
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169 _ACEOF
1170
1171
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175   if test "x$prefix" != xNONE; then
1176     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177   else
1178     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179   fi
1180 fi
1181 for ac_site_file in $CONFIG_SITE; do
1182   if test -r "$ac_site_file"; then
1183     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185     sed 's/^/| /' "$ac_site_file" >&5
1186     . "$ac_site_file"
1187   fi
1188 done
1189
1190 if test -r "$cache_file"; then
1191   # Some versions of bash will fail to source /dev/null (special
1192   # files actually), so we avoid doing that.
1193   if test -f "$cache_file"; then
1194     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1196     case $cache_file in
1197       [\\/]* | ?:[\\/]* ) . $cache_file;;
1198       *)                      . ./$cache_file;;
1199     esac
1200   fi
1201 else
1202   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1204   >$cache_file
1205 fi
1206
1207 # Check that the precious variables saved in the cache have kept the same
1208 # value.
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213   eval ac_new_set=\$ac_env_${ac_var}_set
1214   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215   eval ac_new_val="\$ac_env_${ac_var}_value"
1216   case $ac_old_set,$ac_new_set in
1217     set,)
1218       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220       ac_cache_corrupted=: ;;
1221     ,set)
1222       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224       ac_cache_corrupted=: ;;
1225     ,);;
1226     *)
1227       if test "x$ac_old_val" != "x$ac_new_val"; then
1228         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1231 echo "$as_me:   former value:  $ac_old_val" >&2;}
1232         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1233 echo "$as_me:   current value: $ac_new_val" >&2;}
1234         ac_cache_corrupted=:
1235       fi;;
1236   esac
1237   # Pass precious variables to config.status.
1238   if test "$ac_new_set" = set; then
1239     case $ac_new_val in
1240     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242     *) ac_arg=$ac_var=$ac_new_val ;;
1243     esac
1244     case " $ac_configure_args " in
1245       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1246       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1247     esac
1248   fi
1249 done
1250 if $ac_cache_corrupted; then
1251   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255    { (exit 1); exit 1; }; }
1256 fi
1257
1258 ac_ext=c
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282           ac_config_headers="$ac_config_headers include/config.h"
1283
1284
1285 #################################################
1286 # Directory handling stuff to support both the
1287 # legacy SAMBA directories and FHS compliant
1288 # ones...
1289
1290
1291
1292 # Check whether --with-fhs or --without-fhs was given.
1293 if test "${with_fhs+set}" = set; then
1294   withval="$with_fhs"
1295   configdir="${sysconfdir}/samba"
1296     lockdir="\${VARDIR}/cache/samba"
1297     piddir="\$(VARDIR)/run/samba"
1298     logfilebase="\${VARDIR}/log/samba"
1299     privatedir="\${CONFIGDIR}/private"
1300     swatdir="\${DATADIR}/samba/swat"
1301 else
1302   configdir="\$(LIBDIR)"
1303     logfilebase="\$(VARDIR)"
1304     lockdir="\${VARDIR}/locks"
1305     piddir="\$(VARDIR)/locks"
1306     privatedir="\${prefix}/private"
1307     swatdir="\${prefix}/swat"
1308 fi;
1309
1310 #################################################
1311 # set private directory location
1312
1313 # Check whether --with-privatedir or --without-privatedir was given.
1314 if test "${with_privatedir+set}" = set; then
1315   withval="$with_privatedir"
1316    case "$withval" in
1317   yes|no)
1318   #
1319   # Just in case anybody calls it without argument
1320   #
1321     { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1322 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1323   ;;
1324   * )
1325     privatedir="$withval"
1326     ;;
1327   esac
1328 fi;
1329
1330 #################################################
1331 # set lock directory location
1332
1333 # Check whether --with-lockdir or --without-lockdir was given.
1334 if test "${with_lockdir+set}" = set; then
1335   withval="$with_lockdir"
1336    case "$withval" in
1337   yes|no)
1338   #
1339   # Just in case anybody calls it without argument
1340   #
1341     { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1342 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1343   ;;
1344   * )
1345     lockdir="$withval"
1346     ;;
1347   esac
1348 fi;
1349
1350 #################################################
1351 # set pid directory location
1352
1353 # Check whether --with-piddir or --without-piddir was given.
1354 if test "${with_piddir+set}" = set; then
1355   withval="$with_piddir"
1356    case "$withval" in
1357   yes|no)
1358   #
1359   # Just in case anybody calls it without argument
1360   #
1361     { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1362 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1363   ;;
1364   * )
1365     piddir="$withval"
1366     ;;
1367   esac
1368 fi;
1369
1370 #################################################
1371 # set SWAT directory location
1372
1373 # Check whether --with-swatdir or --without-swatdir was given.
1374 if test "${with_swatdir+set}" = set; then
1375   withval="$with_swatdir"
1376    case "$withval" in
1377   yes|no)
1378   #
1379   # Just in case anybody does it
1380   #
1381     { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1382 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1383   ;;
1384   * )
1385     swatdir="$withval"
1386     ;;
1387   esac
1388 fi;
1389
1390 #################################################
1391 # set configuration directory location
1392
1393 # Check whether --with-configdir or --without-configdir was given.
1394 if test "${with_configdir+set}" = set; then
1395   withval="$with_configdir"
1396    case "$withval" in
1397   yes|no)
1398   #
1399   # Just in case anybody does it
1400   #
1401     { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1402 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1403   ;;
1404   * )
1405     configdir="$withval"
1406     ;;
1407   esac
1408 fi;
1409
1410 #################################################
1411 # set log directory location
1412
1413 # Check whether --with-logfilebase or --without-logfilebase was given.
1414 if test "${with_logfilebase+set}" = set; then
1415   withval="$with_logfilebase"
1416    case "$withval" in
1417   yes|no)
1418   #
1419   # Just in case anybody does it
1420   #
1421     { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1422 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1423   ;;
1424   * )
1425     logfilebase="$withval"
1426     ;;
1427   esac
1428 fi;
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459 # compile with optimization and without debugging by default
1460 CFLAGS="-O ${CFLAGS}"
1461
1462 # Check whether --enable-debug or --disable-debug was given.
1463 if test "${enable_debug+set}" = set; then
1464   enableval="$enable_debug"
1465   if eval "test x$enable_debug = xyes"; then
1466         CFLAGS="${CFLAGS} -g"
1467     fi
1468 fi;
1469
1470 # Check whether --enable-developer or --disable-developer was given.
1471 if test "${enable_developer+set}" = set; then
1472   enableval="$enable_developer"
1473   if eval "test x$enable_developer = xyes"; then
1474         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1475     fi
1476 fi;
1477
1478 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1479 if test "${enable_krb5developer+set}" = set; then
1480   enableval="$enable_krb5developer"
1481   if eval "test x$enable_krb5developer = xyes"; then
1482         CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1483     fi
1484 fi;
1485
1486 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1487 if test "${enable_dmalloc+set}" = set; then
1488   enableval="$enable_dmalloc"
1489
1490 fi;
1491
1492 if test "x$enable_dmalloc" = xyes
1493 then
1494
1495 cat >>confdefs.h <<\_ACEOF
1496 #define ENABLE_DMALLOC 1
1497 _ACEOF
1498
1499
1500 cat >>confdefs.h <<\_ACEOF
1501 #define DMALLOC_FUNC_CHECK 1
1502 _ACEOF
1503
1504         LIBS="$LIBS -ldmalloc"
1505 fi
1506
1507 ac_ext=c
1508 ac_cpp='$CPP $CPPFLAGS'
1509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512 if test -n "$ac_tool_prefix"; then
1513   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518   echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520   if test -n "$CC"; then
1521   ac_cv_prog_CC="$CC" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526   IFS=$as_save_IFS
1527   test -z "$as_dir" && as_dir=.
1528   for ac_exec_ext in '' $ac_executable_extensions; do
1529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532     break 2
1533   fi
1534 done
1535 done
1536
1537 fi
1538 fi
1539 CC=$ac_cv_prog_CC
1540 if test -n "$CC"; then
1541   echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1543 else
1544   echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548 fi
1549 if test -z "$ac_cv_prog_CC"; then
1550   ac_ct_CC=$CC
1551   # Extract the first word of "gcc", so it can be a program name with args.
1552 set dummy gcc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   if test -n "$ac_ct_CC"; then
1559   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1560 else
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   for ac_exec_ext in '' $ac_executable_extensions; do
1567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568     ac_cv_prog_ac_ct_CC="gcc"
1569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571   fi
1572 done
1573 done
1574
1575 fi
1576 fi
1577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1578 if test -n "$ac_ct_CC"; then
1579   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1580 echo "${ECHO_T}$ac_ct_CC" >&6
1581 else
1582   echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1584 fi
1585
1586   CC=$ac_ct_CC
1587 else
1588   CC="$ac_cv_prog_CC"
1589 fi
1590
1591 if test -z "$CC"; then
1592   if test -n "$ac_tool_prefix"; then
1593   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1594 set dummy ${ac_tool_prefix}cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   if test -n "$CC"; then
1601   ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   for ac_exec_ext in '' $ac_executable_extensions; do
1609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610     ac_cv_prog_CC="${ac_tool_prefix}cc"
1611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612     break 2
1613   fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 CC=$ac_cv_prog_CC
1620 if test -n "$CC"; then
1621   echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1623 else
1624   echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628 fi
1629 if test -z "$ac_cv_prog_CC"; then
1630   ac_ct_CC=$CC
1631   # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   if test -n "$ac_ct_CC"; then
1639   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   for ac_exec_ext in '' $ac_executable_extensions; do
1647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648     ac_cv_prog_ac_ct_CC="cc"
1649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650     break 2
1651   fi
1652 done
1653 done
1654
1655 fi
1656 fi
1657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658 if test -n "$ac_ct_CC"; then
1659   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660 echo "${ECHO_T}$ac_ct_CC" >&6
1661 else
1662   echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1664 fi
1665
1666   CC=$ac_ct_CC
1667 else
1668   CC="$ac_cv_prog_CC"
1669 fi
1670
1671 fi
1672 if test -z "$CC"; then
1673   # Extract the first word of "cc", so it can be a program name with args.
1674 set dummy cc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   if test -n "$CC"; then
1681   ac_cv_prog_CC="$CC" # Let the user override the test.
1682 else
1683   ac_prog_rejected=no
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1692        ac_prog_rejected=yes
1693        continue
1694      fi
1695     ac_cv_prog_CC="cc"
1696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697     break 2
1698   fi
1699 done
1700 done
1701
1702 if test $ac_prog_rejected = yes; then
1703   # We found a bogon in the path, so make sure we never use it.
1704   set dummy $ac_cv_prog_CC
1705   shift
1706   if test $# != 0; then
1707     # We chose a different compiler from the bogus one.
1708     # However, it has the same basename, so the bogon will be chosen
1709     # first if we set CC to just the basename; use the full file name.
1710     shift
1711     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1712   fi
1713 fi
1714 fi
1715 fi
1716 CC=$ac_cv_prog_CC
1717 if test -n "$CC"; then
1718   echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 fi
1726 if test -z "$CC"; then
1727   if test -n "$ac_tool_prefix"; then
1728   for ac_prog in cl
1729   do
1730     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$CC"; then
1738   ac_cv_prog_CC="$CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 CC=$ac_cv_prog_CC
1757 if test -n "$CC"; then
1758   echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765     test -n "$CC" && break
1766   done
1767 fi
1768 if test -z "$CC"; then
1769   ac_ct_CC=$CC
1770   for ac_prog in cl
1771 do
1772   # Extract the first word of "$ac_prog", so it can be a program name with args.
1773 set dummy $ac_prog; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1777   echo $ECHO_N "(cached) $ECHO_C" >&6
1778 else
1779   if test -n "$ac_ct_CC"; then
1780   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1781 else
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1784 do
1785   IFS=$as_save_IFS
1786   test -z "$as_dir" && as_dir=.
1787   for ac_exec_ext in '' $ac_executable_extensions; do
1788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789     ac_cv_prog_ac_ct_CC="$ac_prog"
1790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791     break 2
1792   fi
1793 done
1794 done
1795
1796 fi
1797 fi
1798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1799 if test -n "$ac_ct_CC"; then
1800   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1801 echo "${ECHO_T}$ac_ct_CC" >&6
1802 else
1803   echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 fi
1806
1807   test -n "$ac_ct_CC" && break
1808 done
1809
1810   CC=$ac_ct_CC
1811 fi
1812
1813 fi
1814
1815
1816 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1817 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1818    { (exit 1); exit 1; }; }
1819
1820 # Provide some information about the compiler.
1821 echo "$as_me:$LINENO:" \
1822      "checking for C compiler version" >&5
1823 ac_compiler=`set X $ac_compile; echo $2`
1824 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1825   (eval $ac_compiler --version </dev/null >&5) 2>&5
1826   ac_status=$?
1827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828   (exit $ac_status); }
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1830   (eval $ac_compiler -v </dev/null >&5) 2>&5
1831   ac_status=$?
1832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833   (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1835   (eval $ac_compiler -V </dev/null >&5) 2>&5
1836   ac_status=$?
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); }
1839
1840 cat >conftest.$ac_ext <<_ACEOF
1841 #line $LINENO "configure"
1842 #include "confdefs.h"
1843
1844 int
1845 main ()
1846 {
1847
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 ac_clean_files_save=$ac_clean_files
1853 ac_clean_files="$ac_clean_files a.out a.exe"
1854 # Try to create an executable without -o first, disregard a.out.
1855 # It will help us diagnose broken compilers, and finding out an intuition
1856 # of exeext.
1857 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1858 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1859 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1860 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1861   (eval $ac_link_default) 2>&5
1862   ac_status=$?
1863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864   (exit $ac_status); }; then
1865   # Find the output, starting from the most likely.  This scheme is
1866 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1867 # resort.
1868
1869 # Be careful to initialize this variable, since it used to be cached.
1870 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1871 ac_cv_exeext=
1872 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1873   test -f "$ac_file" || continue
1874   case $ac_file in
1875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1876     a.out ) # We found the default executable, but exeext='' is most
1877             # certainly right.
1878             break;;
1879     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1880           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1881           export ac_cv_exeext
1882           break;;
1883     * ) break;;
1884   esac
1885 done
1886 else
1887   echo "$as_me: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1890 check \`config.log' for details." >&5
1891 echo "$as_me: error: C compiler cannot create executables
1892 check \`config.log' for details." >&2;}
1893    { (exit 77); exit 77; }; }
1894 fi
1895
1896 ac_exeext=$ac_cv_exeext
1897 echo "$as_me:$LINENO: result: $ac_file" >&5
1898 echo "${ECHO_T}$ac_file" >&6
1899
1900 # Check the compiler produces executables we can run.  If not, either
1901 # the compiler is broken, or we cross compile.
1902 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1903 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1904 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1905 # If not cross compiling, check that we can run a simple program.
1906 if test "$cross_compiling" != yes; then
1907   if { ac_try='./$ac_file'
1908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1909   (eval $ac_try) 2>&5
1910   ac_status=$?
1911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912   (exit $ac_status); }; }; then
1913     cross_compiling=no
1914   else
1915     if test "$cross_compiling" = maybe; then
1916         cross_compiling=yes
1917     else
1918         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1919 If you meant to cross compile, use \`--host'." >&5
1920 echo "$as_me: error: cannot run C compiled programs.
1921 If you meant to cross compile, use \`--host'." >&2;}
1922    { (exit 1); exit 1; }; }
1923     fi
1924   fi
1925 fi
1926 echo "$as_me:$LINENO: result: yes" >&5
1927 echo "${ECHO_T}yes" >&6
1928
1929 rm -f a.out a.exe conftest$ac_cv_exeext
1930 ac_clean_files=$ac_clean_files_save
1931 # Check the compiler produces executables we can run.  If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1934 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1935 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1936 echo "${ECHO_T}$cross_compiling" >&6
1937
1938 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1939 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1941   (eval $ac_link) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }; then
1945   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1946 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1947 # work properly (i.e., refer to `conftest.exe'), while it won't with
1948 # `rm'.
1949 for ac_file in conftest.exe conftest conftest.*; do
1950   test -f "$ac_file" || continue
1951   case $ac_file in
1952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1953     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1954           export ac_cv_exeext
1955           break;;
1956     * ) break;;
1957   esac
1958 done
1959 else
1960   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1961 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 rm -f conftest$ac_cv_exeext
1966 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1967 echo "${ECHO_T}$ac_cv_exeext" >&6
1968
1969 rm -f conftest.$ac_ext
1970 EXEEXT=$ac_cv_exeext
1971 ac_exeext=$EXEEXT
1972 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1973 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1974 if test "${ac_cv_objext+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   cat >conftest.$ac_ext <<_ACEOF
1978 #line $LINENO "configure"
1979 #include "confdefs.h"
1980
1981 int
1982 main ()
1983 {
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991   (eval $ac_compile) 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }; then
1995   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996   case $ac_file in
1997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999        break;;
2000   esac
2001 done
2002 else
2003   echo "$as_me: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2006 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2007    { (exit 1); exit 1; }; }
2008 fi
2009
2010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2011 fi
2012 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2013 echo "${ECHO_T}$ac_cv_objext" >&6
2014 OBJEXT=$ac_cv_objext
2015 ac_objext=$OBJEXT
2016 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2017 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2018 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 #include "confdefs.h"
2024
2025 int
2026 main ()
2027 {
2028 #ifndef __GNUC__
2029        choke me
2030 #endif
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038   (eval $ac_compile) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); } &&
2042          { ac_try='test -s conftest.$ac_objext'
2043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044   (eval $ac_try) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); }; }; then
2048   ac_compiler_gnu=yes
2049 else
2050   echo "$as_me: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 ac_compiler_gnu=no
2053 fi
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060 GCC=`test $ac_compiler_gnu = yes && echo yes`
2061 ac_test_CFLAGS=${CFLAGS+set}
2062 ac_save_CFLAGS=$CFLAGS
2063 CFLAGS="-g"
2064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066 if test "${ac_cv_prog_cc_g+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   cat >conftest.$ac_ext <<_ACEOF
2070 #line $LINENO "configure"
2071 #include "confdefs.h"
2072
2073 int
2074 main ()
2075 {
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_cv_prog_cc_g=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2128 #include <stdarg.h>
2129 #include <stdio.h>
2130 #include <sys/types.h>
2131 #include <sys/stat.h>
2132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2133 struct buf { int x; };
2134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135 static char *e (p, i)
2136      char **p;
2137      int i;
2138 {
2139   return p[i];
2140 }
2141 static char *f (char * (*g) (char **, int), char **p, ...)
2142 {
2143   char *s;
2144   va_list v;
2145   va_start (v,p);
2146   s = g (p, va_arg (v,int));
2147   va_end (v);
2148   return s;
2149 }
2150 int test (int i, double x);
2151 struct s1 {int (*f) (int a);};
2152 struct s2 {int (*f) (double a);};
2153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2154 int argc;
2155 char **argv;
2156 int
2157 main ()
2158 {
2159 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 # Don't try gcc -ansi; that turns off useful extensions and
2165 # breaks some systems' header files.
2166 # AIX                   -qlanglvl=ansi
2167 # Ultrix and OSF/1      -std1
2168 # HP-UX 10.20 and later -Ae
2169 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2170 # SVR4                  -Xc -D__EXTENSIONS__
2171 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2172 do
2173   CC="$ac_save_CC $ac_arg"
2174   rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176   (eval $ac_compile) 2>&5
2177   ac_status=$?
2178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179   (exit $ac_status); } &&
2180          { ac_try='test -s conftest.$ac_objext'
2181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182   (eval $ac_try) 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }; }; then
2186   ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 fi
2192 rm -f conftest.$ac_objext
2193 done
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2195 CC=$ac_save_CC
2196
2197 fi
2198
2199 case "x$ac_cv_prog_cc_stdc" in
2200   x|xno)
2201     echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2203   *)
2204     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206     CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 esac
2208
2209 # Some people use a C++ compiler to compile C.  Since we use `exit',
2210 # in C++ we need to declare it.  In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #ifndef __cplusplus
2215   choke me
2216 #endif
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220   (eval $ac_compile) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); } &&
2224          { ac_try='test -s conftest.$ac_objext'
2225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226   (eval $ac_try) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }; }; then
2230   for ac_declaration in \
2231    ''\
2232    '#include <stdlib.h>' \
2233    'extern "C" void std::exit (int) throw (); using std::exit;' \
2234    'extern "C" void std::exit (int); using std::exit;' \
2235    'extern "C" void exit (int) throw ();' \
2236    'extern "C" void exit (int);' \
2237    'void exit (int);'
2238 do
2239   cat >conftest.$ac_ext <<_ACEOF
2240 #line $LINENO "configure"
2241 #include "confdefs.h"
2242 #include <stdlib.h>
2243 $ac_declaration
2244 int
2245 main ()
2246 {
2247 exit (42);
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); } &&
2258          { ac_try='test -s conftest.$ac_objext'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; }; then
2264   :
2265 else
2266   echo "$as_me: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2268 continue
2269 fi
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271   cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2273 #include "confdefs.h"
2274 $ac_declaration
2275 int
2276 main ()
2277 {
2278 exit (42);
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); } &&
2289          { ac_try='test -s conftest.$ac_objext'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; }; then
2295   break
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 fi
2300 rm -f conftest.$ac_objext conftest.$ac_ext
2301 done
2302 rm -f conftest*
2303 if test -n "$ac_declaration"; then
2304   echo '#ifdef __cplusplus' >>confdefs.h
2305   echo $ac_declaration      >>confdefs.h
2306   echo '#endif'             >>confdefs.h
2307 fi
2308
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 fi
2313 rm -f conftest.$ac_objext conftest.$ac_ext
2314 ac_ext=c
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319
2320 ac_aux_dir=
2321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2322   if test -f $ac_dir/install-sh; then
2323     ac_aux_dir=$ac_dir
2324     ac_install_sh="$ac_aux_dir/install-sh -c"
2325     break
2326   elif test -f $ac_dir/install.sh; then
2327     ac_aux_dir=$ac_dir
2328     ac_install_sh="$ac_aux_dir/install.sh -c"
2329     break
2330   elif test -f $ac_dir/shtool; then
2331     ac_aux_dir=$ac_dir
2332     ac_install_sh="$ac_aux_dir/shtool install -c"
2333     break
2334   fi
2335 done
2336 if test -z "$ac_aux_dir"; then
2337   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2344
2345 # Find a good install program.  We prefer a C program (faster),
2346 # so one script is as good as another.  But avoid the broken or
2347 # incompatible versions:
2348 # SysV /etc/install, /usr/sbin/install
2349 # SunOS /usr/etc/install
2350 # IRIX /sbin/install
2351 # AIX /bin/install
2352 # AmigaOS /C/install, which installs bootblocks on floppy discs
2353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2356 # ./install, which can be erroneously created by make from ./install.sh.
2357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2359 if test -z "$INSTALL"; then
2360 if test "${ac_cv_path_install+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   # Account for people who put trailing slashes in PATH elements.
2369 case $as_dir/ in
2370   ./ | .// | /cC/* | \
2371   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2372   /usr/ucb/* ) ;;
2373   *)
2374     # OSF1 and SCO ODT 3.0 have their own names for install.
2375     # Don't use installbsd from OSF since it installs stuff as root
2376     # by default.
2377     for ac_prog in ginstall scoinst install; do
2378       for ac_exec_ext in '' $ac_executable_extensions; do
2379         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2380           if test $ac_prog = install &&
2381             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382             # AIX install.  It has an incompatible calling convention.
2383             :
2384           elif test $ac_prog = install &&
2385             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386             # program-specific install script used by HP pwplus--don't use.
2387             :
2388           else
2389             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2390             break 3
2391           fi
2392         fi
2393       done
2394     done
2395     ;;
2396 esac
2397 done
2398
2399
2400 fi
2401   if test "${ac_cv_path_install+set}" = set; then
2402     INSTALL=$ac_cv_path_install
2403   else
2404     # As a last resort, use the slow shell script.  We don't cache a
2405     # path for INSTALL within a source directory, because that will
2406     # break other packages using the cache if that directory is
2407     # removed, or if the path is relative.
2408     INSTALL=$ac_install_sh
2409   fi
2410 fi
2411 echo "$as_me:$LINENO: result: $INSTALL" >&5
2412 echo "${ECHO_T}$INSTALL" >&6
2413
2414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415 # It thinks the first close brace ends the variable substitution.
2416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417
2418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419
2420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421
2422 for ac_prog in gawk mawk nawk awk
2423 do
2424   # Extract the first word of "$ac_prog", so it can be a program name with args.
2425 set dummy $ac_prog; ac_word=$2
2426 echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428 if test "${ac_cv_prog_AWK+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   if test -n "$AWK"; then
2432   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2436 do
2437   IFS=$as_save_IFS
2438   test -z "$as_dir" && as_dir=.
2439   for ac_exec_ext in '' $ac_executable_extensions; do
2440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441     ac_cv_prog_AWK="$ac_prog"
2442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443     break 2
2444   fi
2445 done
2446 done
2447
2448 fi
2449 fi
2450 AWK=$ac_cv_prog_AWK
2451 if test -n "$AWK"; then
2452   echo "$as_me:$LINENO: result: $AWK" >&5
2453 echo "${ECHO_T}$AWK" >&6
2454 else
2455   echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2457 fi
2458
2459   test -n "$AWK" && break
2460 done
2461
2462
2463 LD=ld
2464 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2465 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2466 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2470 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2471   ac_cv_prog_gnu_ld=yes
2472 else
2473   ac_cv_prog_gnu_ld=no
2474 fi
2475 fi
2476 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2477 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2478
2479
2480
2481 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2482 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2483 if test "${ac_cv_search_strerror+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   ac_func_search_save_LIBS=$LIBS
2487 ac_cv_search_strerror=no
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 #include "confdefs.h"
2491
2492 /* Override any gcc2 internal prototype to avoid an error.  */
2493 #ifdef __cplusplus
2494 extern "C"
2495 #endif
2496 /* We use char because int might match the return type of a gcc2
2497    builtin and then its argument prototype would still apply.  */
2498 char strerror ();
2499 int
2500 main ()
2501 {
2502 strerror ();
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 rm -f conftest.$ac_objext conftest$ac_exeext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509   (eval $ac_link) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -s conftest$ac_exeext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_search_strerror="none required"
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 fi
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 if test "$ac_cv_search_strerror" = no; then
2526   for ac_lib in cposix; do
2527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2528     cat >conftest.$ac_ext <<_ACEOF
2529 #line $LINENO "configure"
2530 #include "confdefs.h"
2531
2532 /* Override any gcc2 internal prototype to avoid an error.  */
2533 #ifdef __cplusplus
2534 extern "C"
2535 #endif
2536 /* We use char because int might match the return type of a gcc2
2537    builtin and then its argument prototype would still apply.  */
2538 char strerror ();
2539 int
2540 main ()
2541 {
2542 strerror ();
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 rm -f conftest.$ac_objext conftest$ac_exeext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549   (eval $ac_link) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -s conftest$ac_exeext'
2554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555   (eval $ac_try) 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; }; then
2559   ac_cv_search_strerror="-l$ac_lib"
2560 break
2561 else
2562   echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 fi
2565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2566   done
2567 fi
2568 LIBS=$ac_func_search_save_LIBS
2569 fi
2570 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2571 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2572 if test "$ac_cv_search_strerror" != no; then
2573   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2574
2575 fi
2576
2577
2578 if test "x$CC" != xcc; then
2579   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2580 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2581 else
2582   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2583 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2584 fi
2585 set dummy $CC; ac_cc=`echo $2 |
2586                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2587 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 #include "confdefs.h"
2593
2594 int
2595 main ()
2596 {
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 # Make sure it works both with $CC and with simple cc.
2603 # We do the test twice because some compilers refuse to overwrite an
2604 # existing .o file with -o, though they will create one.
2605 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2606 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } &&
2611    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); };
2616 then
2617   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2618   if test "x$CC" != xcc; then
2619     # Test first that cc exists at all.
2620     if { ac_try='cc -c conftest.$ac_ext >&5'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; }; then
2626       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2627       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); };
2637       then
2638         # cc works too.
2639         :
2640       else
2641         # cc exists but doesn't like -o.
2642         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2643       fi
2644     fi
2645   fi
2646 else
2647   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2648 fi
2649 rm -f conftest*
2650
2651 fi
2652 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2653   echo "$as_me:$LINENO: result: yes" >&5
2654 echo "${ECHO_T}yes" >&6
2655 else
2656   echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2658
2659 cat >>confdefs.h <<\_ACEOF
2660 #define NO_MINUS_C_MINUS_O 1
2661 _ACEOF
2662
2663 fi
2664
2665 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2666       BROKEN_CC=
2667 else
2668       BROKEN_CC=#
2669 fi
2670
2671
2672 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2673 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2674 if test "${samba_cv_volatile+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677
2678     cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 #include "confdefs.h"
2681 #include <sys/types.h>
2682 int
2683 main ()
2684 {
2685 volatile int i = 0
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   samba_cv_volatile=yes
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 samba_cv_volatile=no
2707 fi
2708 rm -f conftest.$ac_objext conftest.$ac_ext
2709 fi
2710 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2711 echo "${ECHO_T}$samba_cv_volatile" >&6
2712 if test x"$samba_cv_volatile" = x"yes"; then
2713
2714 cat >>confdefs.h <<\_ACEOF
2715 #define HAVE_VOLATILE 1
2716 _ACEOF
2717
2718 fi
2719
2720
2721 # Make sure we can run config.sub.
2722 $ac_config_sub sun4 >/dev/null 2>&1 ||
2723   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2725    { (exit 1); exit 1; }; }
2726
2727 echo "$as_me:$LINENO: checking build system type" >&5
2728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2729 if test "${ac_cv_build+set}" = set; then
2730   echo $ECHO_N "(cached) $ECHO_C" >&6
2731 else
2732   ac_cv_build_alias=$build_alias
2733 test -z "$ac_cv_build_alias" &&
2734   ac_cv_build_alias=`$ac_config_guess`
2735 test -z "$ac_cv_build_alias" &&
2736   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2738    { (exit 1); exit 1; }; }
2739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2740   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2742    { (exit 1); exit 1; }; }
2743
2744 fi
2745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2746 echo "${ECHO_T}$ac_cv_build" >&6
2747 build=$ac_cv_build
2748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2751
2752
2753 echo "$as_me:$LINENO: checking host system type" >&5
2754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2755 if test "${ac_cv_host+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_cv_host_alias=$host_alias
2759 test -z "$ac_cv_host_alias" &&
2760   ac_cv_host_alias=$ac_cv_build_alias
2761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2762   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2764    { (exit 1); exit 1; }; }
2765
2766 fi
2767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2768 echo "${ECHO_T}$ac_cv_host" >&6
2769 host=$ac_cv_host
2770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2773
2774
2775 echo "$as_me:$LINENO: checking target system type" >&5
2776 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2777 if test "${ac_cv_target+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   ac_cv_target_alias=$target_alias
2781 test "x$ac_cv_target_alias" = "x" &&
2782   ac_cv_target_alias=$ac_cv_host_alias
2783 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2784   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2785 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2786    { (exit 1); exit 1; }; }
2787
2788 fi
2789 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2790 echo "${ECHO_T}$ac_cv_target" >&6
2791 target=$ac_cv_target
2792 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2793 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2794 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2795
2796
2797 # The aliases save the names the user supplied, while $host etc.
2798 # will get canonicalized.
2799 test -n "$target_alias" &&
2800   test "$program_prefix$program_suffix$program_transform_name" = \
2801     NONENONEs,x,x, &&
2802   program_prefix=${target_alias}-
2803
2804   case "$host_os" in
2805         *irix6*) cat >> confdefs.h <<\EOF
2806 #include <standards.h>
2807 EOF
2808
2809         ;;
2810 esac
2811
2812
2813
2814     echo "$as_me:$LINENO: checking config.cache system type" >&5
2815 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2816     if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2817          test x"$ac_cv_host_system_type" != x"$host"; } ||
2818        { test x"${ac_cv_build_system_type+set}" = x"set" &&
2819          test x"$ac_cv_build_system_type" != x"$build"; } ||
2820        { test x"${ac_cv_target_system_type+set}" = x"set" &&
2821          test x"$ac_cv_target_system_type" != x"$target"; }; then
2822         echo "$as_me:$LINENO: result: different" >&5
2823 echo "${ECHO_T}different" >&6
2824         { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2825 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2826    { (exit 1); exit 1; }; }
2827     else
2828         echo "$as_me:$LINENO: result: same" >&5
2829 echo "${ECHO_T}same" >&6
2830     fi
2831     ac_cv_host_system_type="$host"
2832     ac_cv_build_system_type="$build"
2833     ac_cv_target_system_type="$target"
2834
2835
2836 DYNEXP=
2837
2838 #
2839 # Config CPPFLAG settings for strange OS's that must be set
2840 # before other tests.
2841 #
2842 case "$host_os" in
2843 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2844     *hpux*)
2845
2846       echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2847 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2848 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2849   echo $ECHO_N "(cached) $ECHO_C" >&6
2850 else
2851   echo 'void f(){}' > conftest.c
2852 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2853   ac_cv_prog_cc_Ae=yes
2854 else
2855   ac_cv_prog_cc_Ae=no
2856 fi
2857 rm -f conftest*
2858
2859 fi
2860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2862       # mmap on HPUX is completely broken...
2863
2864 cat >>confdefs.h <<\_ACEOF
2865 #define MMAP_BLACKLIST 1
2866 _ACEOF
2867
2868       if test $ac_cv_prog_cc_Ae = yes; then
2869         CPPFLAGS="$CPPFLAGS -Ae"
2870       fi
2871 #
2872 # Defines needed for HPUX support.
2873 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2874 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2875 #
2876       case `uname -r` in
2877                         *9*|*10*)
2878                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2879
2880 cat >>confdefs.h <<\_ACEOF
2881 #define USE_BOTH_CRYPT_CALLS 1
2882 _ACEOF
2883
2884
2885 cat >>confdefs.h <<\_ACEOF
2886 #define _HPUX_SOURCE 1
2887 _ACEOF
2888
2889
2890 cat >>confdefs.h <<\_ACEOF
2891 #define _POSIX_SOURCE 1
2892 _ACEOF
2893
2894
2895 cat >>confdefs.h <<\_ACEOF
2896 #define _ALIGNMENT_REQUIRED 1
2897 _ACEOF
2898
2899
2900 cat >>confdefs.h <<\_ACEOF
2901 #define _MAX_ALIGNMENT 4
2902 _ACEOF
2903
2904                                 ;;
2905                         *11*)
2906                                 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2907
2908 cat >>confdefs.h <<\_ACEOF
2909 #define USE_BOTH_CRYPT_CALLS 1
2910 _ACEOF
2911
2912
2913 cat >>confdefs.h <<\_ACEOF
2914 #define _HPUX_SOURCE 1
2915 _ACEOF
2916
2917
2918 cat >>confdefs.h <<\_ACEOF
2919 #define _POSIX_SOURCE 1
2920 _ACEOF
2921
2922
2923 cat >>confdefs.h <<\_ACEOF
2924 #define _LARGEFILE64_SOURCE 1
2925 _ACEOF
2926
2927
2928 cat >>confdefs.h <<\_ACEOF
2929 #define _ALIGNMENT_REQUIRED 1
2930 _ACEOF
2931
2932
2933 cat >>confdefs.h <<\_ACEOF
2934 #define _MAX_ALIGNMENT 4
2935 _ACEOF
2936
2937                                 ;;
2938       esac
2939       DYNEXP="-Wl,-E"
2940       ;;
2941
2942 #
2943 # CRAY Unicos has broken const handling
2944        *unicos*)
2945           echo "$as_me:$LINENO: result: disabling const" >&5
2946 echo "${ECHO_T}disabling const" >&6
2947           CPPFLAGS="$CPPFLAGS -Dconst="
2948           ;;
2949
2950 #
2951 # AIX4.x doesn't even admit to having large
2952 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2953 #
2954     *aix4*)
2955           echo "$as_me:$LINENO: result: enabling large file support" >&5
2956 echo "${ECHO_T}enabling large file support" >&6
2957       CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2958
2959 cat >>confdefs.h <<\_ACEOF
2960 #define _LARGE_FILES 1
2961 _ACEOF
2962
2963       ;;
2964 #
2965 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2966 # to the existance of large files..
2967 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2968 # recommendations on large file support, however it makes the
2969 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2970 # recommendation makes the compile fail on gcc2.7. JRA.
2971 #
2972         *solaris*)
2973                 case `uname -r` in
2974                         5.0*|5.1*|5.2*|5.3*|5.5*)
2975                                 echo "$as_me:$LINENO: result: no large file support" >&5
2976 echo "${ECHO_T}no large file support" >&6
2977                                 ;;
2978                         5.*)
2979                         echo "$as_me:$LINENO: result: enabling large file support" >&5
2980 echo "${ECHO_T}enabling large file support" >&6
2981                         if test "$ac_cv_c_compiler_gnu" = yes; then
2982                                 ${CC-cc} -v >conftest.c 2>&1
2983                                 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2984                                 rm -fr conftest.c
2985                                 case "$ac_cv_gcc_compiler_version_number" in
2986                                         *"gcc version 2.6"*|*"gcc version 2.7"*)
2987                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2988
2989 cat >>confdefs.h <<\_ACEOF
2990 #define _LARGEFILE64_SOURCE 1
2991 _ACEOF
2992
2993                                                 ;;
2994                                         *)
2995                                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2996
2997 cat >>confdefs.h <<\_ACEOF
2998 #define _LARGEFILE64_SOURCE 1
2999 _ACEOF
3000
3001
3002 cat >>confdefs.h <<\_ACEOF
3003 #define _FILE_OFFSET_BITS 64
3004 _ACEOF
3005
3006                                                 ;;
3007                                 esac
3008                         else
3009                                 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3010
3011 cat >>confdefs.h <<\_ACEOF
3012 #define _LARGEFILE64_SOURCE 1
3013 _ACEOF
3014
3015
3016 cat >>confdefs.h <<\_ACEOF
3017 #define _FILE_OFFSET_BITS 64
3018 _ACEOF
3019
3020                         fi
3021                         ;;
3022                 esac
3023                 ;;
3024 #
3025 # Tests needed for SINIX large file support.
3026 #
3027     *sysv4*)
3028       if test $host = mips-sni-sysv4 ; then
3029         echo "$as_me:$LINENO: checking for LFS support" >&5
3030 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3031         old_CPPFLAGS="$CPPFLAGS"
3032         CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3033         if test "$cross_compiling" = yes; then
3034   SINIX_LFS_SUPPORT=cross
3035 else
3036   cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3039
3040 #include <unistd.h>
3041 main () {
3042 #if _LFS64_LARGEFILE == 1
3043 exit(0);
3044 #else
3045 exit(1);
3046 #endif
3047 }
3048 _ACEOF
3049 rm -f conftest$ac_exeext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3051   (eval $ac_link) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056   (eval $ac_try) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; }; then
3060   SINIX_LFS_SUPPORT=yes
3061 else
3062   echo "$as_me: program exited with status $ac_status" >&5
3063 echo "$as_me: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 ( exit $ac_status )
3066 SINIX_LFS_SUPPORT=no
3067 fi
3068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3069 fi
3070         CPPFLAGS="$old_CPPFLAGS"
3071         if test x$SINIX_LFS_SUPPORT = xyes ; then
3072           CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3073
3074 cat >>confdefs.h <<\_ACEOF
3075 #define _LARGEFILE64_SOURCE 1
3076 _ACEOF
3077
3078           CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3079           LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3080           LIBS="`getconf LFS64_LIBS` $LIBS"
3081         fi
3082       echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3083 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3084       fi
3085     ;;
3086
3087 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3088 #
3089     *linux*)
3090         echo "$as_me:$LINENO: checking for LFS support" >&5
3091 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3092         old_CPPFLAGS="$CPPFLAGS"
3093         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3094        if test "$cross_compiling" = yes; then
3095   LINUX_LFS_SUPPORT=cross
3096 else
3097   cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 #include "confdefs.h"
3100
3101 #include <unistd.h>
3102 #include <sys/utsname.h>
3103 main() {
3104 #if _LFS64_LARGEFILE == 1
3105        struct utsname uts;
3106        char *release;
3107        int major, minor;
3108
3109        /* Ensure this is glibc 2.2 or higher */
3110 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3111        int libc_major = __GLIBC__;
3112        int libc_minor = __GLIBC_MINOR__;
3113
3114        if (libc_major < 2)
3115               exit(1);
3116        if (libc_minor < 2)
3117               exit(1);
3118 #endif
3119
3120        /* Ensure this is kernel 2.4 or higher */
3121
3122        uname(&uts);
3123        release = uts.release;
3124        major = atoi(strsep(&release, "."));
3125        minor = atoi(strsep(&release, "."));
3126
3127        if (major > 2 || (major == 2 && minor > 3))
3128                exit(0);
3129        exit(1);
3130 #else
3131        exit(1);
3132 #endif
3133 }
3134
3135 _ACEOF
3136 rm -f conftest$ac_exeext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138   (eval $ac_link) 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; }; then
3147   LINUX_LFS_SUPPORT=yes
3148 else
3149   echo "$as_me: program exited with status $ac_status" >&5
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3152 ( exit $ac_status )
3153 LINUX_LFS_SUPPORT=no
3154 fi
3155 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3156 fi
3157         CPPFLAGS="$old_CPPFLAGS"
3158         if test x$LINUX_LFS_SUPPORT = xyes ; then
3159           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3160
3161 cat >>confdefs.h <<\_ACEOF
3162 #define _LARGEFILE64_SOURCE 1
3163 _ACEOF
3164
3165
3166 cat >>confdefs.h <<\_ACEOF
3167 #define _FILE_OFFSET_BITS 64
3168 _ACEOF
3169
3170
3171 cat >>confdefs.h <<\_ACEOF
3172 #define _GNU_SOURCE 1
3173 _ACEOF
3174
3175         fi
3176        echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3177 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3178                 ;;
3179
3180     *hurd*)
3181         echo "$as_me:$LINENO: checking for LFS support" >&5
3182 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3183         old_CPPFLAGS="$CPPFLAGS"
3184         CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3185         if test "$cross_compiling" = yes; then
3186   GLIBC_LFS_SUPPORT=cross
3187 else
3188   cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3190 #include "confdefs.h"
3191
3192 #include <unistd.h>
3193 main () {
3194 #if _LFS64_LARGEFILE == 1
3195 exit(0);
3196 #else
3197 exit(1);
3198 #endif
3199 }
3200 _ACEOF
3201 rm -f conftest$ac_exeext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3203   (eval $ac_link) 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208   (eval $ac_try) 2>&5
3209   ac_status=$?
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; }; then
3212   GLIBC_LFS_SUPPORT=yes
3213 else
3214   echo "$as_me: program exited with status $ac_status" >&5
3215 echo "$as_me: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3217 ( exit $ac_status )
3218 GLIBC_LFS_SUPPORT=no
3219 fi
3220 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3221 fi
3222         CPPFLAGS="$old_CPPFLAGS"
3223         if test x$GLIBC_LFS_SUPPORT = xyes ; then
3224           CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3225
3226 cat >>confdefs.h <<\_ACEOF
3227 #define _LARGEFILE64_SOURCE 1
3228 _ACEOF
3229
3230
3231 cat >>confdefs.h <<\_ACEOF
3232 #define _GNU_SOURCE 1
3233 _ACEOF
3234
3235         fi
3236       echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3237 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3238     ;;
3239
3240 esac
3241
3242 echo "$as_me:$LINENO: checking for inline" >&5
3243 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3244 if test "${ac_cv_c_inline+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   ac_cv_c_inline=no
3248 for ac_kw in inline __inline__ __inline; do
3249   cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 #include "confdefs.h"
3252 #ifndef __cplusplus
3253 typedef int foo_t;
3254 static $ac_kw foo_t static_foo () {return 0; }
3255 $ac_kw foo_t foo () {return 0; }
3256 #endif
3257
3258 _ACEOF
3259 rm -f conftest.$ac_objext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3261   (eval $ac_compile) 2>&5
3262   ac_status=$?
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } &&
3265          { ac_try='test -s conftest.$ac_objext'
3266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267   (eval $ac_try) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); }; }; then
3271   ac_cv_c_inline=$ac_kw; break
3272 else
3273   echo "$as_me: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3275 fi
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3277 done
3278
3279 fi
3280 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3281 echo "${ECHO_T}$ac_cv_c_inline" >&6
3282 case $ac_cv_c_inline in
3283   inline | yes) ;;
3284   no)
3285 cat >>confdefs.h <<\_ACEOF
3286 #define inline
3287 _ACEOF
3288  ;;
3289   *)  cat >>confdefs.h <<_ACEOF
3290 #define inline $ac_cv_c_inline
3291 _ACEOF
3292  ;;
3293 esac
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3304   CPP=
3305 fi
3306 if test -z "$CPP"; then
3307   if test "${ac_cv_prog_CPP+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310       # Double quotes because CPP needs to be expanded
3311     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312     do
3313       ac_preproc_ok=false
3314 for ac_c_preproc_warn_flag in '' yes
3315 do
3316   # Use a header file that comes with gcc, so configuring glibc
3317   # with a fresh cross-compiler works.
3318   # On the NeXT, cc -E runs the code through the compiler's parser,
3319   # not just through cpp. "Syntax error" is here to catch this case.
3320   cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 #include "confdefs.h"
3323 #include <assert.h>
3324                      Syntax error
3325 _ACEOF
3326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } >/dev/null; then
3334   if test -s conftest.err; then
3335     ac_cpp_err=$ac_c_preproc_warn_flag
3336   else
3337     ac_cpp_err=
3338   fi
3339 else
3340   ac_cpp_err=yes
3341 fi
3342 if test -z "$ac_cpp_err"; then
3343   :
3344 else
3345   echo "$as_me: failed program was:" >&5
3346   cat conftest.$ac_ext >&5
3347   # Broken: fails on valid input.
3348 continue
3349 fi
3350 rm -f conftest.err conftest.$ac_ext
3351
3352   # OK, works on sane cases.  Now check whether non-existent headers
3353   # can be detected and how.
3354   cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3356 #include "confdefs.h"
3357 #include <ac_nonexistent.h>
3358 _ACEOF
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369   else
3370     ac_cpp_err=
3371   fi
3372 else
3373   ac_cpp_err=yes
3374 fi
3375 if test -z "$ac_cpp_err"; then
3376   # Broken: success on invalid input.
3377 continue
3378 else
3379   echo "$as_me: failed program was:" >&5
3380   cat conftest.$ac_ext >&5
3381   # Passes both tests.
3382 ac_preproc_ok=:
3383 break
3384 fi
3385 rm -f conftest.err conftest.$ac_ext
3386
3387 done
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.err conftest.$ac_ext
3390 if $ac_preproc_ok; then
3391   break
3392 fi
3393
3394     done
3395     ac_cv_prog_CPP=$CPP
3396
3397 fi
3398   CPP=$ac_cv_prog_CPP
3399 else
3400   ac_cv_prog_CPP=$CPP
3401 fi
3402 echo "$as_me:$LINENO: result: $CPP" >&5
3403 echo "${ECHO_T}$CPP" >&6
3404 ac_preproc_ok=false
3405 for ac_c_preproc_warn_flag in '' yes
3406 do
3407   # Use a header file that comes with gcc, so configuring glibc
3408   # with a fresh cross-compiler works.
3409   # On the NeXT, cc -E runs the code through the compiler's parser,
3410   # not just through cpp. "Syntax error" is here to catch this case.
3411   cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3414 #include <assert.h>
3415                      Syntax error
3416 _ACEOF
3417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } >/dev/null; then
3425   if test -s conftest.err; then
3426     ac_cpp_err=$ac_c_preproc_warn_flag
3427   else
3428     ac_cpp_err=
3429   fi
3430 else
3431   ac_cpp_err=yes
3432 fi
3433 if test -z "$ac_cpp_err"; then
3434   :
3435 else
3436   echo "$as_me: failed program was:" >&5
3437   cat conftest.$ac_ext >&5
3438   # Broken: fails on valid input.
3439 continue
3440 fi
3441 rm -f conftest.err conftest.$ac_ext
3442
3443   # OK, works on sane cases.  Now check whether non-existent headers
3444   # can be detected and how.
3445   cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 #include "confdefs.h"
3448 #include <ac_nonexistent.h>
3449 _ACEOF
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } >/dev/null; then
3458   if test -s conftest.err; then
3459     ac_cpp_err=$ac_c_preproc_warn_flag
3460   else
3461     ac_cpp_err=
3462   fi
3463 else
3464   ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467   # Broken: success on invalid input.
3468 continue
3469 else
3470   echo "$as_me: failed program was:" >&5
3471   cat conftest.$ac_ext >&5
3472   # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   :
3483 else
3484   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3486    { (exit 1); exit 1; }; }
3487 fi
3488
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494
3495
3496 echo "$as_me:$LINENO: checking for egrep" >&5
3497 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3498 if test "${ac_cv_prog_egrep+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3502     then ac_cv_prog_egrep='grep -E'
3503     else ac_cv_prog_egrep='egrep'
3504     fi
3505 fi
3506 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3507 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3508  EGREP=$ac_cv_prog_egrep
3509
3510
3511 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3512 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3513 if test "${ac_cv_header_stdc+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   cat >conftest.$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3518 #include "confdefs.h"
3519 #include <stdlib.h>
3520 #include <stdarg.h>
3521 #include <string.h>
3522 #include <float.h>
3523
3524 _ACEOF
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } >/dev/null; then
3533   if test -s conftest.err; then
3534     ac_cpp_err=$ac_c_preproc_warn_flag
3535   else
3536     ac_cpp_err=
3537   fi
3538 else
3539   ac_cpp_err=yes
3540 fi
3541 if test -z "$ac_cpp_err"; then
3542   ac_cv_header_stdc=yes
3543 else
3544   echo "$as_me: failed program was:" >&5
3545   cat conftest.$ac_ext >&5
3546   ac_cv_header_stdc=no
3547 fi
3548 rm -f conftest.err conftest.$ac_ext
3549
3550 if test $ac_cv_header_stdc = yes; then
3551   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3552   cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 #include "confdefs.h"
3555 #include <string.h>
3556
3557 _ACEOF
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559   $EGREP "memchr" >/dev/null 2>&1; then
3560   :
3561 else
3562   ac_cv_header_stdc=no
3563 fi
3564 rm -f conftest*
3565
3566 fi
3567
3568 if test $ac_cv_header_stdc = yes; then
3569   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570   cat >conftest.$ac_ext <<_ACEOF
3571 #line $LINENO "configure"
3572 #include "confdefs.h"
3573 #include <stdlib.h>
3574
3575 _ACEOF
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577   $EGREP "free" >/dev/null 2>&1; then
3578   :
3579 else
3580   ac_cv_header_stdc=no
3581 fi
3582 rm -f conftest*
3583
3584 fi
3585
3586 if test $ac_cv_header_stdc = yes; then
3587   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588   if test "$cross_compiling" = yes; then
3589   :
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3593 #include "confdefs.h"
3594 #include <ctype.h>
3595 #if ((' ' & 0x0FF) == 0x020)
3596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3598 #else
3599 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3600                      || ('j' <= (c) && (c) <= 'r') \
3601                      || ('s' <= (c) && (c) <= 'z'))
3602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3603 #endif
3604
3605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3606 int
3607 main ()
3608 {
3609   int i;
3610   for (i = 0; i < 256; i++)
3611     if (XOR (islower (i), ISLOWER (i))
3612         || toupper (i) != TOUPPER (i))
3613       exit(2);
3614   exit (0);
3615 }
3616 _ACEOF
3617 rm -f conftest$ac_exeext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619   (eval $ac_link) 2>&5
3620   ac_status=$?
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; }; then
3628   :
3629 else
3630   echo "$as_me: program exited with status $ac_status" >&5
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 ( exit $ac_status )
3634 ac_cv_header_stdc=no
3635 fi
3636 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3637 fi
3638 fi
3639 fi
3640 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3642 if test $ac_cv_header_stdc = yes; then
3643
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3646 _ACEOF
3647
3648 fi
3649
3650
3651
3652
3653
3654
3655 ac_header_dirent=no
3656 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3657   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3658 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3659 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   cat >conftest.$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3666 #include <sys/types.h>
3667 #include <$ac_hdr>
3668
3669 int
3670 main ()
3671 {
3672 if ((DIR *) 0)
3673 return 0;
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680   (eval $ac_compile) 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } &&
3684          { ac_try='test -s conftest.$ac_objext'
3685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686   (eval $ac_try) 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }; }; then
3690   eval "$as_ac_Header=yes"
3691 else
3692   echo "$as_me: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 eval "$as_ac_Header=no"
3695 fi
3696 rm -f conftest.$ac_objext conftest.$ac_ext
3697 fi
3698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3701   cat >>confdefs.h <<_ACEOF
3702 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3703 _ACEOF
3704
3705 ac_header_dirent=$ac_hdr; break
3706 fi
3707
3708 done
3709 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3710 if test $ac_header_dirent = dirent.h; then
3711   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3713 if test "${ac_cv_search_opendir+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   ac_func_search_save_LIBS=$LIBS
3717 ac_cv_search_opendir=no
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line $LINENO "configure"
3720 #include "confdefs.h"
3721
3722 /* Override any gcc2 internal prototype to avoid an error.  */
3723 #ifdef __cplusplus
3724 extern "C"
3725 #endif
3726 /* We use char because int might match the return type of a gcc2
3727    builtin and then its argument prototype would still apply.  */
3728 char opendir ();
3729 int
3730 main ()
3731 {
3732 opendir ();
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 rm -f conftest.$ac_objext conftest$ac_exeext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739   (eval $ac_link) 2>&5
3740   ac_status=$?
3741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742   (exit $ac_status); } &&
3743          { ac_try='test -s conftest$ac_exeext'
3744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745   (eval $ac_try) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }; }; then
3749   ac_cv_search_opendir="none required"
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 fi
3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755 if test "$ac_cv_search_opendir" = no; then
3756   for ac_lib in dir; do
3757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3758     cat >conftest.$ac_ext <<_ACEOF
3759 #line $LINENO "configure"
3760 #include "confdefs.h"
3761
3762 /* Override any gcc2 internal prototype to avoid an error.  */
3763 #ifdef __cplusplus
3764 extern "C"
3765 #endif
3766 /* We use char because int might match the return type of a gcc2
3767    builtin and then its argument prototype would still apply.  */
3768 char opendir ();
3769 int
3770 main ()
3771 {
3772 opendir ();
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 rm -f conftest.$ac_objext conftest$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779   (eval $ac_link) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } &&
3783          { ac_try='test -s conftest$ac_exeext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   ac_cv_search_opendir="-l$ac_lib"
3790 break
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 fi
3795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3796   done
3797 fi
3798 LIBS=$ac_func_search_save_LIBS
3799 fi
3800 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3801 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3802 if test "$ac_cv_search_opendir" != no; then
3803   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3804
3805 fi
3806
3807 else
3808   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3810 if test "${ac_cv_search_opendir+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   ac_func_search_save_LIBS=$LIBS
3814 ac_cv_search_opendir=no
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 #include "confdefs.h"
3818
3819 /* Override any gcc2 internal prototype to avoid an error.  */
3820 #ifdef __cplusplus
3821 extern "C"
3822 #endif
3823 /* We use char because int might match the return type of a gcc2
3824    builtin and then its argument prototype would still apply.  */
3825 char opendir ();
3826 int
3827 main ()
3828 {
3829 opendir ();
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836   (eval $ac_link) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } &&
3840          { ac_try='test -s conftest$ac_exeext'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; }; then
3846   ac_cv_search_opendir="none required"
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 fi
3851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852 if test "$ac_cv_search_opendir" = no; then
3853   for ac_lib in x; do
3854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3855     cat >conftest.$ac_ext <<_ACEOF
3856 #line $LINENO "configure"
3857 #include "confdefs.h"
3858
3859 /* Override any gcc2 internal prototype to avoid an error.  */
3860 #ifdef __cplusplus
3861 extern "C"
3862 #endif
3863 /* We use char because int might match the return type of a gcc2
3864    builtin and then its argument prototype would still apply.  */