1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="pam_ldap.c"
275ac_default_prefix=
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP pam_ldap_so_LD pam_ldap_so_LDFLAGS USE_NATIVE_LINKER_TRUE USE_NATIVE_LINKER_FALSE EXTENSION_SO_TRUE EXTENSION_SO_FALSE EXTENSION_1_TRUE EXTENSION_1_FALSE EGREP LIBOBJS LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672	      localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712	 X"$0" : 'X\(//\)[^/]' \| \
713	 X"$0" : 'X\(//\)$' \| \
714	 X"$0" : 'X\(/\)' \| \
715	 .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719  	  /^X\(\/\/\)$/{ s//\1/; q; }
720  	  /^X\(\/\).*/{ s//\1/; q; }
721  	  s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807			  [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809			  [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834
835Program names:
836  --program-prefix=PREFIX            prepend PREFIX to installed program names
837  --program-suffix=SUFFIX            append SUFFIX to installed program names
838  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839
840System types:
841  --build=BUILD     configure for building on BUILD [guessed]
842  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
843  --target=TARGET   configure for building compilers for TARGET [HOST]
844_ACEOF
845fi
846
847if test -n "$ac_init_help"; then
848
849  cat <<\_ACEOF
850
851Optional Features:
852  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854  --disable-dependency-tracking  speeds up one-time build
855  --enable-dependency-tracking   do not reject slow dependency extractors
856  --enable-ypldapd        enable PADL ypldapd specific features
857  --disable-ssl           disable SSL/TSL support
858
859Optional Packages:
860  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
861  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
862  --with-ldap-lib=type    select ldap library auto|netscape5|netscape4|netscape3|umich|openldap
863  --with-ldap-dir=DIR     base directory of ldap SDK
864  --with-ldap-conf-file     path to LDAP configuration file
865  --with-ldap-secret-file   path to LDAP root secret file
866
867Some influential environment variables:
868  CC          C compiler command
869  CFLAGS      C compiler flags
870  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
871              nonstandard directory <lib dir>
872  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
873              headers in a nonstandard directory <include dir>
874  CPP         C preprocessor
875
876Use these variables to override the choices made by `configure' or to help
877it to find libraries and programs with nonstandard names/locations.
878
879_ACEOF
880fi
881
882if test "$ac_init_help" = "recursive"; then
883  # If there are subdirs, report their specific --help.
884  ac_popdir=`pwd`
885  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886    test -d $ac_dir || continue
887    ac_builddir=.
888
889if test "$ac_dir" != .; then
890  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891  # A "../" for each directory in $ac_dir_suffix.
892  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
893else
894  ac_dir_suffix= ac_top_builddir=
895fi
896
897case $srcdir in
898  .)  # No --srcdir option.  We are building in place.
899    ac_srcdir=.
900    if test -z "$ac_top_builddir"; then
901       ac_top_srcdir=.
902    else
903       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904    fi ;;
905  [\\/]* | ?:[\\/]* )  # Absolute path.
906    ac_srcdir=$srcdir$ac_dir_suffix;
907    ac_top_srcdir=$srcdir ;;
908  *) # Relative path.
909    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910    ac_top_srcdir=$ac_top_builddir$srcdir ;;
911esac
912
913# Do not use `cd foo && pwd` to compute absolute paths, because
914# the directories may not exist.
915case `pwd` in
916.) ac_abs_builddir="$ac_dir";;
917*)
918  case "$ac_dir" in
919  .) ac_abs_builddir=`pwd`;;
920  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921  *) ac_abs_builddir=`pwd`/"$ac_dir";;
922  esac;;
923esac
924case $ac_abs_builddir in
925.) ac_abs_top_builddir=${ac_top_builddir}.;;
926*)
927  case ${ac_top_builddir}. in
928  .) ac_abs_top_builddir=$ac_abs_builddir;;
929  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931  esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_srcdir=$ac_srcdir;;
935*)
936  case $ac_srcdir in
937  .) ac_abs_srcdir=$ac_abs_builddir;;
938  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940  esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_top_srcdir=$ac_top_srcdir;;
944*)
945  case $ac_top_srcdir in
946  .) ac_abs_top_srcdir=$ac_abs_builddir;;
947  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949  esac;;
950esac
951
952    cd $ac_dir
953    # Check for guested configure; otherwise get Cygnus style configure.
954    if test -f $ac_srcdir/configure.gnu; then
955      echo
956      $SHELL $ac_srcdir/configure.gnu  --help=recursive
957    elif test -f $ac_srcdir/configure; then
958      echo
959      $SHELL $ac_srcdir/configure  --help=recursive
960    elif test -f $ac_srcdir/configure.ac ||
961	   test -f $ac_srcdir/configure.in; then
962      echo
963      $ac_configure --help
964    else
965      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966    fi
967    cd $ac_popdir
968  done
969fi
970
971test -n "$ac_init_help" && exit 0
972if $ac_init_version; then
973  cat <<\_ACEOF
974
975Copyright (C) 2003 Free Software Foundation, Inc.
976This configure script is free software; the Free Software Foundation
977gives unlimited permission to copy, distribute and modify it.
978_ACEOF
979  exit 0
980fi
981exec 5>config.log
982cat >&5 <<_ACEOF
983This file contains any messages produced by compilers while
984running configure, to aid debugging if configure makes a mistake.
985
986It was created by $as_me, which was
987generated by GNU Autoconf 2.59.  Invocation command line was
988
989  $ $0 $@
990
991_ACEOF
992{
993cat <<_ASUNAME
994## --------- ##
995## Platform. ##
996## --------- ##
997
998hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003
1004/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1006
1007/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1008/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1009/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1011/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1012/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1013/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1014
1015_ASUNAME
1016
1017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018for as_dir in $PATH
1019do
1020  IFS=$as_save_IFS
1021  test -z "$as_dir" && as_dir=.
1022  echo "PATH: $as_dir"
1023done
1024
1025} >&5
1026
1027cat >&5 <<_ACEOF
1028
1029
1030## ----------- ##
1031## Core tests. ##
1032## ----------- ##
1033
1034_ACEOF
1035
1036
1037# Keep a trace of the command line.
1038# Strip out --no-create and --no-recursion so they do not pile up.
1039# Strip out --silent because we don't want to record it for future runs.
1040# Also quote any args containing shell meta-characters.
1041# Make two passes to allow for proper duplicate-argument suppression.
1042ac_configure_args=
1043ac_configure_args0=
1044ac_configure_args1=
1045ac_sep=
1046ac_must_keep_next=false
1047for ac_pass in 1 2
1048do
1049  for ac_arg
1050  do
1051    case $ac_arg in
1052    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054    | -silent | --silent | --silen | --sile | --sil)
1055      continue ;;
1056    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058    esac
1059    case $ac_pass in
1060    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061    2)
1062      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063      if test $ac_must_keep_next = true; then
1064	ac_must_keep_next=false # Got value, back to normal.
1065      else
1066	case $ac_arg in
1067	  *=* | --config-cache | -C | -disable-* | --disable-* \
1068	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070	  | -with-* | --with-* | -without-* | --without-* | --x)
1071	    case "$ac_configure_args0 " in
1072	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073	    esac
1074	    ;;
1075	  -* ) ac_must_keep_next=true ;;
1076	esac
1077      fi
1078      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079      # Get rid of the leading space.
1080      ac_sep=" "
1081      ;;
1082    esac
1083  done
1084done
1085$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087
1088# When interrupted or exit'd, cleanup temporary files, and complete
1089# config.log.  We remove comments because anyway the quotes in there
1090# would cause problems or look ugly.
1091# WARNING: Be sure not to use single quotes in there, as some shells,
1092# such as our DU 5.0 friend, will then `close' the trap.
1093trap 'exit_status=$?
1094  # Save into config.log some information that might help in debugging.
1095  {
1096    echo
1097
1098    cat <<\_ASBOX
1099## ---------------- ##
1100## Cache variables. ##
1101## ---------------- ##
1102_ASBOX
1103    echo
1104    # The following way of writing the cache mishandles newlines in values,
1105{
1106  (set) 2>&1 |
1107    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108    *ac_space=\ *)
1109      sed -n \
1110	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112      ;;
1113    *)
1114      sed -n \
1115	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116      ;;
1117    esac;
1118}
1119    echo
1120
1121    cat <<\_ASBOX
1122## ----------------- ##
1123## Output variables. ##
1124## ----------------- ##
1125_ASBOX
1126    echo
1127    for ac_var in $ac_subst_vars
1128    do
1129      eval ac_val=$`echo $ac_var`
1130      echo "$ac_var='"'"'$ac_val'"'"'"
1131    done | sort
1132    echo
1133
1134    if test -n "$ac_subst_files"; then
1135      cat <<\_ASBOX
1136## ------------- ##
1137## Output files. ##
1138## ------------- ##
1139_ASBOX
1140      echo
1141      for ac_var in $ac_subst_files
1142      do
1143	eval ac_val=$`echo $ac_var`
1144	echo "$ac_var='"'"'$ac_val'"'"'"
1145      done | sort
1146      echo
1147    fi
1148
1149    if test -s confdefs.h; then
1150      cat <<\_ASBOX
1151## ----------- ##
1152## confdefs.h. ##
1153## ----------- ##
1154_ASBOX
1155      echo
1156      sed "/^$/d" confdefs.h | sort
1157      echo
1158    fi
1159    test "$ac_signal" != 0 &&
1160      echo "$as_me: caught signal $ac_signal"
1161    echo "$as_me: exit $exit_status"
1162  } >&5
1163  rm -f core *.core &&
1164  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165    exit $exit_status
1166     ' 0
1167for ac_signal in 1 2 13 15; do
1168  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169done
1170ac_signal=0
1171
1172# confdefs.h avoids OS command line length limits that DEFS can exceed.
1173rm -rf conftest* confdefs.h
1174# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175echo >confdefs.h
1176
1177# Predefined preprocessor variables.
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_NAME "$PACKAGE_NAME"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_VERSION "$PACKAGE_VERSION"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_STRING "$PACKAGE_STRING"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201_ACEOF
1202
1203
1204# Let the site file select an alternate cache file if it wants to.
1205# Prefer explicitly selected file to automatically selected ones.
1206if test -z "$CONFIG_SITE"; then
1207  if test "x$prefix" != xNONE; then
1208    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209  else
1210    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211  fi
1212fi
1213for ac_site_file in $CONFIG_SITE; do
1214  if test -r "$ac_site_file"; then
1215    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216echo "$as_me: loading site script $ac_site_file" >&6;}
1217    sed 's/^/| /' "$ac_site_file" >&5
1218    . "$ac_site_file"
1219  fi
1220done
1221
1222if test -r "$cache_file"; then
1223  # Some versions of bash will fail to source /dev/null (special
1224  # files actually), so we avoid doing that.
1225  if test -f "$cache_file"; then
1226    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227echo "$as_me: loading cache $cache_file" >&6;}
1228    case $cache_file in
1229      [\\/]* | ?:[\\/]* ) . $cache_file;;
1230      *)                      . ./$cache_file;;
1231    esac
1232  fi
1233else
1234  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235echo "$as_me: creating cache $cache_file" >&6;}
1236  >$cache_file
1237fi
1238
1239# Check that the precious variables saved in the cache have kept the same
1240# value.
1241ac_cache_corrupted=false
1242for ac_var in `(set) 2>&1 |
1243	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245  eval ac_new_set=\$ac_env_${ac_var}_set
1246  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247  eval ac_new_val="\$ac_env_${ac_var}_value"
1248  case $ac_old_set,$ac_new_set in
1249    set,)
1250      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252      ac_cache_corrupted=: ;;
1253    ,set)
1254      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256      ac_cache_corrupted=: ;;
1257    ,);;
1258    *)
1259      if test "x$ac_old_val" != "x$ac_new_val"; then
1260	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1263echo "$as_me:   former value:  $ac_old_val" >&2;}
1264	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1265echo "$as_me:   current value: $ac_new_val" >&2;}
1266	ac_cache_corrupted=:
1267      fi;;
1268  esac
1269  # Pass precious variables to config.status.
1270  if test "$ac_new_set" = set; then
1271    case $ac_new_val in
1272    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274    *) ac_arg=$ac_var=$ac_new_val ;;
1275    esac
1276    case " $ac_configure_args " in
1277      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1278      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279    esac
1280  fi
1281done
1282if $ac_cache_corrupted; then
1283  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287   { (exit 1); exit 1; }; }
1288fi
1289
1290ac_ext=c
1291ac_cpp='$CPP $CPPFLAGS'
1292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314ac_aux_dir=
1315for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1316  if test -f $ac_dir/install-sh; then
1317    ac_aux_dir=$ac_dir
1318    ac_install_sh="$ac_aux_dir/install-sh -c"
1319    break
1320  elif test -f $ac_dir/install.sh; then
1321    ac_aux_dir=$ac_dir
1322    ac_install_sh="$ac_aux_dir/install.sh -c"
1323    break
1324  elif test -f $ac_dir/shtool; then
1325    ac_aux_dir=$ac_dir
1326    ac_install_sh="$ac_aux_dir/shtool install -c"
1327    break
1328  fi
1329done
1330if test -z "$ac_aux_dir"; then
1331  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1332echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1333   { (exit 1); exit 1; }; }
1334fi
1335ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1336ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1337ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338
1339# Make sure we can run config.sub.
1340$ac_config_sub sun4 >/dev/null 2>&1 ||
1341  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1342echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1343   { (exit 1); exit 1; }; }
1344
1345echo "$as_me:$LINENO: checking build system type" >&5
1346echo $ECHO_N "checking build system type... $ECHO_C" >&6
1347if test "${ac_cv_build+set}" = set; then
1348  echo $ECHO_N "(cached) $ECHO_C" >&6
1349else
1350  ac_cv_build_alias=$build_alias
1351test -z "$ac_cv_build_alias" &&
1352  ac_cv_build_alias=`$ac_config_guess`
1353test -z "$ac_cv_build_alias" &&
1354  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1355echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1356   { (exit 1); exit 1; }; }
1357ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1358  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1359echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1360   { (exit 1); exit 1; }; }
1361
1362fi
1363echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1364echo "${ECHO_T}$ac_cv_build" >&6
1365build=$ac_cv_build
1366build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369
1370
1371echo "$as_me:$LINENO: checking host system type" >&5
1372echo $ECHO_N "checking host system type... $ECHO_C" >&6
1373if test "${ac_cv_host+set}" = set; then
1374  echo $ECHO_N "(cached) $ECHO_C" >&6
1375else
1376  ac_cv_host_alias=$host_alias
1377test -z "$ac_cv_host_alias" &&
1378  ac_cv_host_alias=$ac_cv_build_alias
1379ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1380  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1381echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1382   { (exit 1); exit 1; }; }
1383
1384fi
1385echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1386echo "${ECHO_T}$ac_cv_host" >&6
1387host=$ac_cv_host
1388host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391
1392
1393echo "$as_me:$LINENO: checking target system type" >&5
1394echo $ECHO_N "checking target system type... $ECHO_C" >&6
1395if test "${ac_cv_target+set}" = set; then
1396  echo $ECHO_N "(cached) $ECHO_C" >&6
1397else
1398  ac_cv_target_alias=$target_alias
1399test "x$ac_cv_target_alias" = "x" &&
1400  ac_cv_target_alias=$ac_cv_host_alias
1401ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1402  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1403echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1404   { (exit 1); exit 1; }; }
1405
1406fi
1407echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1408echo "${ECHO_T}$ac_cv_target" >&6
1409target=$ac_cv_target
1410target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413
1414
1415# The aliases save the names the user supplied, while $host etc.
1416# will get canonicalized.
1417test -n "$target_alias" &&
1418  test "$program_prefix$program_suffix$program_transform_name" = \
1419    NONENONEs,x,x, &&
1420  program_prefix=${target_alias}-
1421
1422
1423am__api_version="1.9"
1424# Find a good install program.  We prefer a C program (faster),
1425# so one script is as good as another.  But avoid the broken or
1426# incompatible versions:
1427# SysV /etc/install, /usr/sbin/install
1428# SunOS /usr/etc/install
1429# IRIX /sbin/install
1430# AIX /bin/install
1431# AmigaOS /C/install, which installs bootblocks on floppy discs
1432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1433# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1435# OS/2's system install, which has a completely different semantic
1436# ./install, which can be erroneously created by make from ./install.sh.
1437echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1438echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1439if test -z "$INSTALL"; then
1440if test "${ac_cv_path_install+set}" = set; then
1441  echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444for as_dir in $PATH
1445do
1446  IFS=$as_save_IFS
1447  test -z "$as_dir" && as_dir=.
1448  # Account for people who put trailing slashes in PATH elements.
1449case $as_dir/ in
1450  ./ | .// | /cC/* | \
1451  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1452  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1453  /usr/ucb/* ) ;;
1454  *)
1455    # OSF1 and SCO ODT 3.0 have their own names for install.
1456    # Don't use installbsd from OSF since it installs stuff as root
1457    # by default.
1458    for ac_prog in ginstall scoinst install; do
1459      for ac_exec_ext in '' $ac_executable_extensions; do
1460	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1461	  if test $ac_prog = install &&
1462	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1463	    # AIX install.  It has an incompatible calling convention.
1464	    :
1465	  elif test $ac_prog = install &&
1466	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1467	    # program-specific install script used by HP pwplus--don't use.
1468	    :
1469	  else
1470	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1471	    break 3
1472	  fi
1473	fi
1474      done
1475    done
1476    ;;
1477esac
1478done
1479
1480
1481fi
1482  if test "${ac_cv_path_install+set}" = set; then
1483    INSTALL=$ac_cv_path_install
1484  else
1485    # As a last resort, use the slow shell script.  We don't cache a
1486    # path for INSTALL within a source directory, because that will
1487    # break other packages using the cache if that directory is
1488    # removed, or if the path is relative.
1489    INSTALL=$ac_install_sh
1490  fi
1491fi
1492echo "$as_me:$LINENO: result: $INSTALL" >&5
1493echo "${ECHO_T}$INSTALL" >&6
1494
1495# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1496# It thinks the first close brace ends the variable substitution.
1497test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1498
1499test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1500
1501test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1502
1503echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1504echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1505# Just in case
1506sleep 1
1507echo timestamp > conftest.file
1508# Do `set' in a subshell so we don't clobber the current shell's
1509# arguments.  Must try -L first in case configure is actually a
1510# symlink; some systems play weird games with the mod time of symlinks
1511# (eg FreeBSD returns the mod time of the symlink's containing
1512# directory).
1513if (
1514   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1515   if test "$*" = "X"; then
1516      # -L didn't work.
1517      set X `ls -t $srcdir/configure conftest.file`
1518   fi
1519   rm -f conftest.file
1520   if test "$*" != "X $srcdir/configure conftest.file" \
1521      && test "$*" != "X conftest.file $srcdir/configure"; then
1522
1523      # If neither matched, then we have a broken ls.  This can happen
1524      # if, for instance, CONFIG_SHELL is bash and it inherits a
1525      # broken ls alias from the environment.  This has actually
1526      # happened.  Such a system could not be considered "sane".
1527      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1528alias in your environment" >&5
1529echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1530alias in your environment" >&2;}
1531   { (exit 1); exit 1; }; }
1532   fi
1533
1534   test "$2" = conftest.file
1535   )
1536then
1537   # Ok.
1538   :
1539else
1540   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1541Check your system clock" >&5
1542echo "$as_me: error: newly created file is older than distributed files!
1543Check your system clock" >&2;}
1544   { (exit 1); exit 1; }; }
1545fi
1546echo "$as_me:$LINENO: result: yes" >&5
1547echo "${ECHO_T}yes" >&6
1548test "$program_prefix" != NONE &&
1549  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1550# Use a double $ so make ignores it.
1551test "$program_suffix" != NONE &&
1552  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1553# Double any \ or $.  echo might interpret backslashes.
1554# By default was `s,x,x', remove it if useless.
1555cat <<\_ACEOF >conftest.sed
1556s/[\\$]/&&/g;s/;s,x,x,$//
1557_ACEOF
1558program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1559rm conftest.sed
1560
1561# expand $ac_aux_dir to an absolute path
1562am_aux_dir=`cd $ac_aux_dir && pwd`
1563
1564test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1565# Use eval to expand $SHELL
1566if eval "$MISSING --run true"; then
1567  am_missing_run="$MISSING --run "
1568else
1569  am_missing_run=
1570  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1571echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1572fi
1573
1574if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1575  # We used to keeping the `.' as first argument, in order to
1576  # allow $(mkdir_p) to be used without argument.  As in
1577  #   $(mkdir_p) $(somedir)
1578  # where $(somedir) is conditionally defined.  However this is wrong
1579  # for two reasons:
1580  #  1. if the package is installed by a user who cannot write `.'
1581  #     make install will fail,
1582  #  2. the above comment should most certainly read
1583  #     $(mkdir_p) $(DESTDIR)$(somedir)
1584  #     so it does not work when $(somedir) is undefined and
1585  #     $(DESTDIR) is not.
1586  #  To support the latter case, we have to write
1587  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1588  #  so the `.' trick is pointless.
1589  mkdir_p='mkdir -p --'
1590else
1591  # On NextStep and OpenStep, the `mkdir' command does not
1592  # recognize any option.  It will interpret all options as
1593  # directories to create, and then abort because `.' already
1594  # exists.
1595  for d in ./-p ./--version;
1596  do
1597    test -d $d && rmdir $d
1598  done
1599  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1600  if test -f "$ac_aux_dir/mkinstalldirs"; then
1601    mkdir_p='$(mkinstalldirs)'
1602  else
1603    mkdir_p='$(install_sh) -d'
1604  fi
1605fi
1606
1607for ac_prog in gawk mawk nawk awk
1608do
1609  # Extract the first word of "$ac_prog", so it can be a program name with args.
1610set dummy $ac_prog; ac_word=$2
1611echo "$as_me:$LINENO: checking for $ac_word" >&5
1612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613if test "${ac_cv_prog_AWK+set}" = set; then
1614  echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616  if test -n "$AWK"; then
1617  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1618else
1619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620for as_dir in $PATH
1621do
1622  IFS=$as_save_IFS
1623  test -z "$as_dir" && as_dir=.
1624  for ac_exec_ext in '' $ac_executable_extensions; do
1625  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626    ac_cv_prog_AWK="$ac_prog"
1627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628    break 2
1629  fi
1630done
1631done
1632
1633fi
1634fi
1635AWK=$ac_cv_prog_AWK
1636if test -n "$AWK"; then
1637  echo "$as_me:$LINENO: result: $AWK" >&5
1638echo "${ECHO_T}$AWK" >&6
1639else
1640  echo "$as_me:$LINENO: result: no" >&5
1641echo "${ECHO_T}no" >&6
1642fi
1643
1644  test -n "$AWK" && break
1645done
1646
1647echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1648echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1649set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1650if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1651  echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653  cat >conftest.make <<\_ACEOF
1654all:
1655	@echo 'ac_maketemp="$(MAKE)"'
1656_ACEOF
1657# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1658eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1659if test -n "$ac_maketemp"; then
1660  eval ac_cv_prog_make_${ac_make}_set=yes
1661else
1662  eval ac_cv_prog_make_${ac_make}_set=no
1663fi
1664rm -f conftest.make
1665fi
1666if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1667  echo "$as_me:$LINENO: result: yes" >&5
1668echo "${ECHO_T}yes" >&6
1669  SET_MAKE=
1670else
1671  echo "$as_me:$LINENO: result: no" >&5
1672echo "${ECHO_T}no" >&6
1673  SET_MAKE="MAKE=${MAKE-make}"
1674fi
1675
1676rm -rf .tst 2>/dev/null
1677mkdir .tst 2>/dev/null
1678if test -d .tst; then
1679  am__leading_dot=.
1680else
1681  am__leading_dot=_
1682fi
1683rmdir .tst 2>/dev/null
1684
1685# test to see if srcdir already configured
1686if test "`cd $srcdir && pwd`" != "`pwd`" &&
1687   test -f $srcdir/config.status; then
1688  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1689echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1690   { (exit 1); exit 1; }; }
1691fi
1692
1693# test whether we have cygpath
1694if test -z "$CYGPATH_W"; then
1695  if (cygpath --version) >/dev/null 2>/dev/null; then
1696    CYGPATH_W='cygpath -w'
1697  else
1698    CYGPATH_W=echo
1699  fi
1700fi
1701
1702
1703# Define the identity of the package.
1704 PACKAGE=pam_ldap
1705 VERSION=185
1706
1707
1708cat >>confdefs.h <<_ACEOF
1709#define PACKAGE "$PACKAGE"
1710_ACEOF
1711
1712
1713cat >>confdefs.h <<_ACEOF
1714#define VERSION "$VERSION"
1715_ACEOF
1716
1717# Some tools Automake needs.
1718
1719ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1720
1721
1722AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1723
1724
1725AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1726
1727
1728AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1729
1730
1731MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1732
1733install_sh=${install_sh-"$am_aux_dir/install-sh"}
1734
1735# Installed binaries are usually stripped using `strip' when the user
1736# run `make install-strip'.  However `strip' might not be the right
1737# tool to use in cross-compilation environments, therefore Automake
1738# will honor the `STRIP' environment variable to overrule this program.
1739if test "$cross_compiling" != no; then
1740  if test -n "$ac_tool_prefix"; then
1741  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1742set dummy ${ac_tool_prefix}strip; ac_word=$2
1743echo "$as_me:$LINENO: checking for $ac_word" >&5
1744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745if test "${ac_cv_prog_STRIP+set}" = set; then
1746  echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748  if test -n "$STRIP"; then
1749  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1750else
1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754  IFS=$as_save_IFS
1755  test -z "$as_dir" && as_dir=.
1756  for ac_exec_ext in '' $ac_executable_extensions; do
1757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760    break 2
1761  fi
1762done
1763done
1764
1765fi
1766fi
1767STRIP=$ac_cv_prog_STRIP
1768if test -n "$STRIP"; then
1769  echo "$as_me:$LINENO: result: $STRIP" >&5
1770echo "${ECHO_T}$STRIP" >&6
1771else
1772  echo "$as_me:$LINENO: result: no" >&5
1773echo "${ECHO_T}no" >&6
1774fi
1775
1776fi
1777if test -z "$ac_cv_prog_STRIP"; then
1778  ac_ct_STRIP=$STRIP
1779  # Extract the first word of "strip", so it can be a program name with args.
1780set dummy strip; ac_word=$2
1781echo "$as_me:$LINENO: checking for $ac_word" >&5
1782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1784  echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786  if test -n "$ac_ct_STRIP"; then
1787  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1788else
1789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790for as_dir in $PATH
1791do
1792  IFS=$as_save_IFS
1793  test -z "$as_dir" && as_dir=.
1794  for ac_exec_ext in '' $ac_executable_extensions; do
1795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796    ac_cv_prog_ac_ct_STRIP="strip"
1797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798    break 2
1799  fi
1800done
1801done
1802
1803  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1804fi
1805fi
1806ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1807if test -n "$ac_ct_STRIP"; then
1808  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1809echo "${ECHO_T}$ac_ct_STRIP" >&6
1810else
1811  echo "$as_me:$LINENO: result: no" >&5
1812echo "${ECHO_T}no" >&6
1813fi
1814
1815  STRIP=$ac_ct_STRIP
1816else
1817  STRIP="$ac_cv_prog_STRIP"
1818fi
1819
1820fi
1821INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1822
1823# We need awk for the "check" target.  The system "awk" is bad on
1824# some platforms.
1825# Always define AMTAR for backward compatibility.
1826
1827AMTAR=${AMTAR-"${am_missing_run}tar"}
1828
1829am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1830
1831
1832
1833
1834
1835          ac_config_headers="$ac_config_headers config.h"
1836
1837
1838ac_ext=c
1839ac_cpp='$CPP $CPPFLAGS'
1840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842ac_compiler_gnu=$ac_cv_c_compiler_gnu
1843if test -n "$ac_tool_prefix"; then
1844  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1845set dummy ${ac_tool_prefix}gcc; ac_word=$2
1846echo "$as_me:$LINENO: checking for $ac_word" >&5
1847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848if test "${ac_cv_prog_CC+set}" = set; then
1849  echo $ECHO_N "(cached) $ECHO_C" >&6
1850else
1851  if test -n "$CC"; then
1852  ac_cv_prog_CC="$CC" # Let the user override the test.
1853else
1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
1857  IFS=$as_save_IFS
1858  test -z "$as_dir" && as_dir=.
1859  for ac_exec_ext in '' $ac_executable_extensions; do
1860  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863    break 2
1864  fi
1865done
1866done
1867
1868fi
1869fi
1870CC=$ac_cv_prog_CC
1871if test -n "$CC"; then
1872  echo "$as_me:$LINENO: result: $CC" >&5
1873echo "${ECHO_T}$CC" >&6
1874else
1875  echo "$as_me:$LINENO: result: no" >&5
1876echo "${ECHO_T}no" >&6
1877fi
1878
1879fi
1880if test -z "$ac_cv_prog_CC"; then
1881  ac_ct_CC=$CC
1882  # Extract the first word of "gcc", so it can be a program name with args.
1883set dummy gcc; ac_word=$2
1884echo "$as_me:$LINENO: checking for $ac_word" >&5
1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1887  echo $ECHO_N "(cached) $ECHO_C" >&6
1888else
1889  if test -n "$ac_ct_CC"; then
1890  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1891else
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    ac_cv_prog_ac_ct_CC="gcc"
1900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901    break 2
1902  fi
1903done
1904done
1905
1906fi
1907fi
1908ac_ct_CC=$ac_cv_prog_ac_ct_CC
1909if test -n "$ac_ct_CC"; then
1910  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1911echo "${ECHO_T}$ac_ct_CC" >&6
1912else
1913  echo "$as_me:$LINENO: result: no" >&5
1914echo "${ECHO_T}no" >&6
1915fi
1916
1917  CC=$ac_ct_CC
1918else
1919  CC="$ac_cv_prog_CC"
1920fi
1921
1922if test -z "$CC"; then
1923  if test -n "$ac_tool_prefix"; then
1924  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1925set dummy ${ac_tool_prefix}cc; ac_word=$2
1926echo "$as_me:$LINENO: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928if test "${ac_cv_prog_CC+set}" = set; then
1929  echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931  if test -n "$CC"; then
1932  ac_cv_prog_CC="$CC" # Let the user override the test.
1933else
1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935for as_dir in $PATH
1936do
1937  IFS=$as_save_IFS
1938  test -z "$as_dir" && as_dir=.
1939  for ac_exec_ext in '' $ac_executable_extensions; do
1940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941    ac_cv_prog_CC="${ac_tool_prefix}cc"
1942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943    break 2
1944  fi
1945done
1946done
1947
1948fi
1949fi
1950CC=$ac_cv_prog_CC
1951if test -n "$CC"; then
1952  echo "$as_me:$LINENO: result: $CC" >&5
1953echo "${ECHO_T}$CC" >&6
1954else
1955  echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6
1957fi
1958
1959fi
1960if test -z "$ac_cv_prog_CC"; then
1961  ac_ct_CC=$CC
1962  # Extract the first word of "cc", so it can be a program name with args.
1963set dummy cc; ac_word=$2
1964echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967  echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969  if test -n "$ac_ct_CC"; then
1970  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1971else
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975  IFS=$as_save_IFS
1976  test -z "$as_dir" && as_dir=.
1977  for ac_exec_ext in '' $ac_executable_extensions; do
1978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979    ac_cv_prog_ac_ct_CC="cc"
1980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981    break 2
1982  fi
1983done
1984done
1985
1986fi
1987fi
1988ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989if test -n "$ac_ct_CC"; then
1990  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991echo "${ECHO_T}$ac_ct_CC" >&6
1992else
1993  echo "$as_me:$LINENO: result: no" >&5
1994echo "${ECHO_T}no" >&6
1995fi
1996
1997  CC=$ac_ct_CC
1998else
1999  CC="$ac_cv_prog_CC"
2000fi
2001
2002fi
2003if test -z "$CC"; then
2004  # Extract the first word of "cc", so it can be a program name with args.
2005set dummy cc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_CC+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$CC"; then
2012  ac_cv_prog_CC="$CC" # Let the user override the test.
2013else
2014  ac_prog_rejected=no
2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016for as_dir in $PATH
2017do
2018  IFS=$as_save_IFS
2019  test -z "$as_dir" && as_dir=.
2020  for ac_exec_ext in '' $ac_executable_extensions; do
2021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2023       ac_prog_rejected=yes
2024       continue
2025     fi
2026    ac_cv_prog_CC="cc"
2027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028    break 2
2029  fi
2030done
2031done
2032
2033if test $ac_prog_rejected = yes; then
2034  # We found a bogon in the path, so make sure we never use it.
2035  set dummy $ac_cv_prog_CC
2036  shift
2037  if test $# != 0; then
2038    # We chose a different compiler from the bogus one.
2039    # However, it has the same basename, so the bogon will be chosen
2040    # first if we set CC to just the basename; use the full file name.
2041    shift
2042    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2043  fi
2044fi
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049  echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6
2051else
2052  echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056fi
2057if test -z "$CC"; then
2058  if test -n "$ac_tool_prefix"; then
2059  for ac_prog in cl
2060  do
2061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2063echo "$as_me:$LINENO: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065if test "${ac_cv_prog_CC+set}" = set; then
2066  echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068  if test -n "$CC"; then
2069  ac_cv_prog_CC="$CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074  IFS=$as_save_IFS
2075  test -z "$as_dir" && as_dir=.
2076  for ac_exec_ext in '' $ac_executable_extensions; do
2077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080    break 2
2081  fi
2082done
2083done
2084
2085fi
2086fi
2087CC=$ac_cv_prog_CC
2088if test -n "$CC"; then
2089  echo "$as_me:$LINENO: result: $CC" >&5
2090echo "${ECHO_T}$CC" >&6
2091else
2092  echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6
2094fi
2095
2096    test -n "$CC" && break
2097  done
2098fi
2099if test -z "$CC"; then
2100  ac_ct_CC=$CC
2101  for ac_prog in cl
2102do
2103  # Extract the first word of "$ac_prog", so it can be a program name with args.
2104set dummy $ac_prog; ac_word=$2
2105echo "$as_me:$LINENO: checking for $ac_word" >&5
2106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2108  echo $ECHO_N "(cached) $ECHO_C" >&6
2109else
2110  if test -n "$ac_ct_CC"; then
2111  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2112else
2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH
2115do
2116  IFS=$as_save_IFS
2117  test -z "$as_dir" && as_dir=.
2118  for ac_exec_ext in '' $ac_executable_extensions; do
2119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120    ac_cv_prog_ac_ct_CC="$ac_prog"
2121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122    break 2
2123  fi
2124done
2125done
2126
2127fi
2128fi
2129ac_ct_CC=$ac_cv_prog_ac_ct_CC
2130if test -n "$ac_ct_CC"; then
2131  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2132echo "${ECHO_T}$ac_ct_CC" >&6
2133else
2134  echo "$as_me:$LINENO: result: no" >&5
2135echo "${ECHO_T}no" >&6
2136fi
2137
2138  test -n "$ac_ct_CC" && break
2139done
2140
2141  CC=$ac_ct_CC
2142fi
2143
2144fi
2145
2146
2147test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2148See \`config.log' for more details." >&5
2149echo "$as_me: error: no acceptable C compiler found in \$PATH
2150See \`config.log' for more details." >&2;}
2151   { (exit 1); exit 1; }; }
2152
2153# Provide some information about the compiler.
2154echo "$as_me:$LINENO:" \
2155     "checking for C compiler version" >&5
2156ac_compiler=`set X $ac_compile; echo $2`
2157{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2158  (eval $ac_compiler --version </dev/null >&5) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }
2162{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2163  (eval $ac_compiler -v </dev/null >&5) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }
2167{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2168  (eval $ac_compiler -V </dev/null >&5) 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); }
2172
2173cat >conftest.$ac_ext <<_ACEOF
2174/* confdefs.h.  */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h.  */
2179
2180int
2181main ()
2182{
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188ac_clean_files_save=$ac_clean_files
2189ac_clean_files="$ac_clean_files a.out a.exe b.out"
2190# Try to create an executable without -o first, disregard a.out.
2191# It will help us diagnose broken compilers, and finding out an intuition
2192# of exeext.
2193echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2194echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2195ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2196if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2197  (eval $ac_link_default) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; then
2201  # Find the output, starting from the most likely.  This scheme is
2202# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2203# resort.
2204
2205# Be careful to initialize this variable, since it used to be cached.
2206# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2207ac_cv_exeext=
2208# b.out is created by i960 compilers.
2209for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2210do
2211  test -f "$ac_file" || continue
2212  case $ac_file in
2213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2214	;;
2215    conftest.$ac_ext )
2216	# This is the source file.
2217	;;
2218    [ab].out )
2219	# We found the default executable, but exeext='' is most
2220	# certainly right.
2221	break;;
2222    *.* )
2223	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2224	# FIXME: I believe we export ac_cv_exeext for Libtool,
2225	# but it would be cool to find out if it's true.  Does anybody
2226	# maintain Libtool? --akim.
2227	export ac_cv_exeext
2228	break;;
2229    * )
2230	break;;
2231  esac
2232done
2233else
2234  echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: C compiler cannot create executables
2240See \`config.log' for more details." >&2;}
2241   { (exit 77); exit 77; }; }
2242fi
2243
2244ac_exeext=$ac_cv_exeext
2245echo "$as_me:$LINENO: result: $ac_file" >&5
2246echo "${ECHO_T}$ac_file" >&6
2247
2248# Check the compiler produces executables we can run.  If not, either
2249# the compiler is broken, or we cross compile.
2250echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2251echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2252# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2253# If not cross compiling, check that we can run a simple program.
2254if test "$cross_compiling" != yes; then
2255  if { ac_try='./$ac_file'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261    cross_compiling=no
2262  else
2263    if test "$cross_compiling" = maybe; then
2264	cross_compiling=yes
2265    else
2266	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267If you meant to cross compile, use \`--host'.
2268See \`config.log' for more details." >&5
2269echo "$as_me: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&2;}
2272   { (exit 1); exit 1; }; }
2273    fi
2274  fi
2275fi
2276echo "$as_me:$LINENO: result: yes" >&5
2277echo "${ECHO_T}yes" >&6
2278
2279rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280ac_clean_files=$ac_clean_files_save
2281# Check the compiler produces executables we can run.  If not, either
2282# the compiler is broken, or we cross compile.
2283echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2285echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286echo "${ECHO_T}$cross_compiling" >&6
2287
2288echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2291  (eval $ac_link) 2>&5
2292  ac_status=$?
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); }; then
2295  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2296# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2297# work properly (i.e., refer to `conftest.exe'), while it won't with
2298# `rm'.
2299for ac_file in conftest.exe conftest conftest.*; do
2300  test -f "$ac_file" || continue
2301  case $ac_file in
2302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2303    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2304	  export ac_cv_exeext
2305	  break;;
2306    * ) break;;
2307  esac
2308done
2309else
2310  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311See \`config.log' for more details." >&5
2312echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313See \`config.log' for more details." >&2;}
2314   { (exit 1); exit 1; }; }
2315fi
2316
2317rm -f conftest$ac_cv_exeext
2318echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319echo "${ECHO_T}$ac_cv_exeext" >&6
2320
2321rm -f conftest.$ac_ext
2322EXEEXT=$ac_cv_exeext
2323ac_exeext=$EXEEXT
2324echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2326if test "${ac_cv_objext+set}" = set; then
2327  echo $ECHO_N "(cached) $ECHO_C" >&6
2328else
2329  cat >conftest.$ac_ext <<_ACEOF
2330/* confdefs.h.  */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h.  */
2335
2336int
2337main ()
2338{
2339
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344rm -f conftest.o conftest.obj
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346  (eval $ac_compile) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; then
2350  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2351  case $ac_file in
2352    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2353    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2354       break;;
2355  esac
2356done
2357else
2358  echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2362See \`config.log' for more details." >&5
2363echo "$as_me: error: cannot compute suffix of object files: cannot compile
2364See \`config.log' for more details." >&2;}
2365   { (exit 1); exit 1; }; }
2366fi
2367
2368rm -f conftest.$ac_cv_objext conftest.$ac_ext
2369fi
2370echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2371echo "${ECHO_T}$ac_cv_objext" >&6
2372OBJEXT=$ac_cv_objext
2373ac_objext=$OBJEXT
2374echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2375echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2376if test "${ac_cv_c_compiler_gnu+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h.  */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h.  */
2385
2386int
2387main ()
2388{
2389#ifndef __GNUC__
2390       choke me
2391#endif
2392
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>conftest.er1
2400  ac_status=$?
2401  grep -v '^ *+' conftest.er1 >conftest.err
2402  rm -f conftest.er1
2403  cat conftest.err >&5
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406	 { ac_try='test -z "$ac_c_werror_flag"
2407			 || test ! -s conftest.err'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; } &&
2413	 { ac_try='test -s conftest.$ac_objext'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419  ac_compiler_gnu=yes
2420else
2421  echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424ac_compiler_gnu=no
2425fi
2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428
2429fi
2430echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2431echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2432GCC=`test $ac_compiler_gnu = yes && echo yes`
2433ac_test_CFLAGS=${CFLAGS+set}
2434ac_save_CFLAGS=$CFLAGS
2435CFLAGS="-g"
2436echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2438if test "${ac_cv_prog_cc_g+set}" = set; then
2439  echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441  cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h.  */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h.  */
2447
2448int
2449main ()
2450{
2451
2452  ;
2453  return 0;
2454}
2455_ACEOF
2456rm -f conftest.$ac_objext
2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458  (eval $ac_compile) 2>conftest.er1
2459  ac_status=$?
2460  grep -v '^ *+' conftest.er1 >conftest.err
2461  rm -f conftest.er1
2462  cat conftest.err >&5
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); } &&
2465	 { ac_try='test -z "$ac_c_werror_flag"
2466			 || test ! -s conftest.err'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; } &&
2472	 { ac_try='test -s conftest.$ac_objext'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; }; then
2478  ac_cv_prog_cc_g=yes
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483ac_cv_prog_cc_g=no
2484fi
2485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486fi
2487echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2488echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2489if test "$ac_test_CFLAGS" = set; then
2490  CFLAGS=$ac_save_CFLAGS
2491elif test $ac_cv_prog_cc_g = yes; then
2492  if test "$GCC" = yes; then
2493    CFLAGS="-g -O2"
2494  else
2495    CFLAGS="-g"
2496  fi
2497else
2498  if test "$GCC" = yes; then
2499    CFLAGS="-O2"
2500  else
2501    CFLAGS=
2502  fi
2503fi
2504echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2505echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2506if test "${ac_cv_prog_cc_stdc+set}" = set; then
2507  echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509  ac_cv_prog_cc_stdc=no
2510ac_save_CC=$CC
2511cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517#include <stdarg.h>
2518#include <stdio.h>
2519#include <sys/types.h>
2520#include <sys/stat.h>
2521/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2522struct buf { int x; };
2523FILE * (*rcsopen) (struct buf *, struct stat *, int);
2524static char *e (p, i)
2525     char **p;
2526     int i;
2527{
2528  return p[i];
2529}
2530static char *f (char * (*g) (char **, int), char **p, ...)
2531{
2532  char *s;
2533  va_list v;
2534  va_start (v,p);
2535  s = g (p, va_arg (v,int));
2536  va_end (v);
2537  return s;
2538}
2539
2540/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2541   function prototypes and stuff, but not '\xHH' hex character constants.
2542   These don't provoke an error unfortunately, instead are silently treated
2543   as 'x'.  The following induces an error, until -std1 is added to get
2544   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2545   array size at least.  It's necessary to write '\x00'==0 to get something
2546   that's true only with -std1.  */
2547int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2548
2549int test (int i, double x);
2550struct s1 {int (*f) (int a);};
2551struct s2 {int (*f) (double a);};
2552int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2553int argc;
2554char **argv;
2555int
2556main ()
2557{
2558return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2559  ;
2560  return 0;
2561}
2562_ACEOF
2563# Don't try gcc -ansi; that turns off useful extensions and
2564# breaks some systems' header files.
2565# AIX			-qlanglvl=ansi
2566# Ultrix and OSF/1	-std1
2567# HP-UX 10.20 and later	-Ae
2568# HP-UX older versions	-Aa -D_HPUX_SOURCE
2569# SVR4			-Xc -D__EXTENSIONS__
2570for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2571do
2572  CC="$ac_save_CC $ac_arg"
2573  rm -f conftest.$ac_objext
2574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575  (eval $ac_compile) 2>conftest.er1
2576  ac_status=$?
2577  grep -v '^ *+' conftest.er1 >conftest.err
2578  rm -f conftest.er1
2579  cat conftest.err >&5
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); } &&
2582	 { ac_try='test -z "$ac_c_werror_flag"
2583			 || test ! -s conftest.err'
2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585  (eval $ac_try) 2>&5
2586  ac_status=$?
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); }; } &&
2589	 { ac_try='test -s conftest.$ac_objext'
2590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591  (eval $ac_try) 2>&5
2592  ac_status=$?
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); }; }; then
2595  ac_cv_prog_cc_stdc=$ac_arg
2596break
2597else
2598  echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601fi
2602rm -f conftest.err conftest.$ac_objext
2603done
2604rm -f conftest.$ac_ext conftest.$ac_objext
2605CC=$ac_save_CC
2606
2607fi
2608
2609case "x$ac_cv_prog_cc_stdc" in
2610  x|xno)
2611    echo "$as_me:$LINENO: result: none needed" >&5
2612echo "${ECHO_T}none needed" >&6 ;;
2613  *)
2614    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2615echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2616    CC="$CC $ac_cv_prog_cc_stdc" ;;
2617esac
2618
2619# Some people use a C++ compiler to compile C.  Since we use `exit',
2620# in C++ we need to declare it.  In case someone uses the same compiler
2621# for both compiling C and C++ we need to have the C++ compiler decide
2622# the declaration of exit, since it's the most demanding environment.
2623cat >conftest.$ac_ext <<_ACEOF
2624#ifndef __cplusplus
2625  choke me
2626#endif
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630  (eval $ac_compile) 2>conftest.er1
2631  ac_status=$?
2632  grep -v '^ *+' conftest.er1 >conftest.err
2633  rm -f conftest.er1
2634  cat conftest.err >&5
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637	 { ac_try='test -z "$ac_c_werror_flag"
2638			 || test ! -s conftest.err'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; } &&
2644	 { ac_try='test -s conftest.$ac_objext'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; }; then
2650  for ac_declaration in \
2651   '' \
2652   'extern "C" void std::exit (int) throw (); using std::exit;' \
2653   'extern "C" void std::exit (int); using std::exit;' \
2654   'extern "C" void exit (int) throw ();' \
2655   'extern "C" void exit (int);' \
2656   'void exit (int);'
2657do
2658  cat >conftest.$ac_ext <<_ACEOF
2659/* confdefs.h.  */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h.  */
2664$ac_declaration
2665#include <stdlib.h>
2666int
2667main ()
2668{
2669exit (42);
2670  ;
2671  return 0;
2672}
2673_ACEOF
2674rm -f conftest.$ac_objext
2675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676  (eval $ac_compile) 2>conftest.er1
2677  ac_status=$?
2678  grep -v '^ *+' conftest.er1 >conftest.err
2679  rm -f conftest.er1
2680  cat conftest.err >&5
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); } &&
2683	 { ac_try='test -z "$ac_c_werror_flag"
2684			 || test ! -s conftest.err'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; } &&
2690	 { ac_try='test -s conftest.$ac_objext'
2691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692  (eval $ac_try) 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; }; then
2696  :
2697else
2698  echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701continue
2702fi
2703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2704  cat >conftest.$ac_ext <<_ACEOF
2705/* confdefs.h.  */
2706_ACEOF
2707cat confdefs.h >>conftest.$ac_ext
2708cat >>conftest.$ac_ext <<_ACEOF
2709/* end confdefs.h.  */
2710$ac_declaration
2711int
2712main ()
2713{
2714exit (42);
2715  ;
2716  return 0;
2717}
2718_ACEOF
2719rm -f conftest.$ac_objext
2720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721  (eval $ac_compile) 2>conftest.er1
2722  ac_status=$?
2723  grep -v '^ *+' conftest.er1 >conftest.err
2724  rm -f conftest.er1
2725  cat conftest.err >&5
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); } &&
2728	 { ac_try='test -z "$ac_c_werror_flag"
2729			 || test ! -s conftest.err'
2730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731  (eval $ac_try) 2>&5
2732  ac_status=$?
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); }; } &&
2735	 { ac_try='test -s conftest.$ac_objext'
2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737  (eval $ac_try) 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }; }; then
2741  break
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746fi
2747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748done
2749rm -f conftest*
2750if test -n "$ac_declaration"; then
2751  echo '#ifdef __cplusplus' >>confdefs.h
2752  echo $ac_declaration      >>confdefs.h
2753  echo '#endif'             >>confdefs.h
2754fi
2755
2756else
2757  echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760fi
2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762ac_ext=c
2763ac_cpp='$CPP $CPPFLAGS'
2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767DEPDIR="${am__leading_dot}deps"
2768
2769          ac_config_commands="$ac_config_commands depfiles"
2770
2771
2772am_make=${MAKE-make}
2773cat > confinc << 'END'
2774am__doit:
2775	@echo done
2776.PHONY: am__doit
2777END
2778# If we don't find an include directive, just comment out the code.
2779echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2780echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2781am__include="#"
2782am__quote=
2783_am_result=none
2784# First try GNU make style include.
2785echo "include confinc" > confmf
2786# We grep out `Entering directory' and `Leaving directory'
2787# messages which can occur if `w' ends up in MAKEFLAGS.
2788# In particular we don't look at `^make:' because GNU make might
2789# be invoked under some other name (usually "gmake"), in which
2790# case it prints its new name instead of `make'.
2791if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2792   am__include=include
2793   am__quote=
2794   _am_result=GNU
2795fi
2796# Now try BSD make style include.
2797if test "$am__include" = "#"; then
2798   echo '.include "confinc"' > confmf
2799   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2800      am__include=.include
2801      am__quote="\""
2802      _am_result=BSD
2803   fi
2804fi
2805
2806
2807echo "$as_me:$LINENO: result: $_am_result" >&5
2808echo "${ECHO_T}$_am_result" >&6
2809rm -f confinc confmf
2810
2811# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2812if test "${enable_dependency_tracking+set}" = set; then
2813  enableval="$enable_dependency_tracking"
2814
2815fi;
2816if test "x$enable_dependency_tracking" != xno; then
2817  am_depcomp="$ac_aux_dir/depcomp"
2818  AMDEPBACKSLASH='\'
2819fi
2820
2821
2822if test "x$enable_dependency_tracking" != xno; then
2823  AMDEP_TRUE=
2824  AMDEP_FALSE='#'
2825else
2826  AMDEP_TRUE='#'
2827  AMDEP_FALSE=
2828fi
2829
2830
2831
2832
2833depcc="$CC"   am_compiler_list=
2834
2835echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2836echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2837if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2838  echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2841  # We make a subdir and do the tests there.  Otherwise we can end up
2842  # making bogus files that we don't know about and never remove.  For
2843  # instance it was reported that on HP-UX the gcc test will end up
2844  # making a dummy file named `D' -- because `-MD' means `put the output
2845  # in D'.
2846  mkdir conftest.dir
2847  # Copy depcomp to subdir because otherwise we won't find it if we're
2848  # using a relative directory.
2849  cp "$am_depcomp" conftest.dir
2850  cd conftest.dir
2851  # We will build objects and dependencies in a subdirectory because
2852  # it helps to detect inapplicable dependency modes.  For instance
2853  # both Tru64's cc and ICC support -MD to output dependencies as a
2854  # side effect of compilation, but ICC will put the dependencies in
2855  # the current directory while Tru64 will put them in the object
2856  # directory.
2857  mkdir sub
2858
2859  am_cv_CC_dependencies_compiler_type=none
2860  if test "$am_compiler_list" = ""; then
2861     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2862  fi
2863  for depmode in $am_compiler_list; do
2864    # Setup a source with many dependencies, because some compilers
2865    # like to wrap large dependency lists on column 80 (with \), and
2866    # we should not choose a depcomp mode which is confused by this.
2867    #
2868    # We need to recreate these files for each test, as the compiler may
2869    # overwrite some of them when testing with obscure command lines.
2870    # This happens at least with the AIX C compiler.
2871    : > sub/conftest.c
2872    for i in 1 2 3 4 5 6; do
2873      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2874      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2875      # Solaris 8's {/usr,}/bin/sh.
2876      touch sub/conftst$i.h
2877    done
2878    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2879
2880    case $depmode in
2881    nosideeffect)
2882      # after this tag, mechanisms are not by side-effect, so they'll
2883      # only be used when explicitly requested
2884      if test "x$enable_dependency_tracking" = xyes; then
2885	continue
2886      else
2887	break
2888      fi
2889      ;;
2890    none) break ;;
2891    esac
2892    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2893    # mode.  It turns out that the SunPro C++ compiler does not properly
2894    # handle `-M -o', and we need to detect this.
2895    if depmode=$depmode \
2896       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2897       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2898       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2899         >/dev/null 2>conftest.err &&
2900       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2901       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2902       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2903      # icc doesn't choke on unknown options, it will just issue warnings
2904      # or remarks (even with -Werror).  So we grep stderr for any message
2905      # that says an option was ignored or not supported.
2906      # When given -MP, icc 7.0 and 7.1 complain thusly:
2907      #   icc: Command line warning: ignoring option '-M'; no argument required
2908      # The diagnosis changed in icc 8.0:
2909      #   icc: Command line remark: option '-MP' not supported
2910      if (grep 'ignoring option' conftest.err ||
2911          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2912        am_cv_CC_dependencies_compiler_type=$depmode
2913        break
2914      fi
2915    fi
2916  done
2917
2918  cd ..
2919  rm -rf conftest.dir
2920else
2921  am_cv_CC_dependencies_compiler_type=none
2922fi
2923
2924fi
2925echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2926echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2927CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2928
2929
2930
2931if
2932  test "x$enable_dependency_tracking" != xno \
2933  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2934  am__fastdepCC_TRUE=
2935  am__fastdepCC_FALSE='#'
2936else
2937  am__fastdepCC_TRUE='#'
2938  am__fastdepCC_FALSE=
2939fi
2940
2941
2942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2948echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2949# On Suns, sometimes $CPP names a directory.
2950if test -n "$CPP" && test -d "$CPP"; then
2951  CPP=
2952fi
2953if test -z "$CPP"; then
2954  if test "${ac_cv_prog_CPP+set}" = set; then
2955  echo $ECHO_N "(cached) $ECHO_C" >&6
2956else
2957      # Double quotes because CPP needs to be expanded
2958    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2959    do
2960      ac_preproc_ok=false
2961for ac_c_preproc_warn_flag in '' yes
2962do
2963  # Use a header file that comes with gcc, so configuring glibc
2964  # with a fresh cross-compiler works.
2965  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966  # <limits.h> exists even on freestanding compilers.
2967  # On the NeXT, cc -E runs the code through the compiler's parser,
2968  # not just through cpp. "Syntax error" is here to catch this case.
2969  cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h.  */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h.  */
2975#ifdef __STDC__
2976# include <limits.h>
2977#else
2978# include <assert.h>
2979#endif
2980		     Syntax error
2981_ACEOF
2982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2983  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984  ac_status=$?
2985  grep -v '^ *+' conftest.er1 >conftest.err
2986  rm -f conftest.er1
2987  cat conftest.err >&5
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); } >/dev/null; then
2990  if test -s conftest.err; then
2991    ac_cpp_err=$ac_c_preproc_warn_flag
2992    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2993  else
2994    ac_cpp_err=
2995  fi
2996else
2997  ac_cpp_err=yes
2998fi
2999if test -z "$ac_cpp_err"; then
3000  :
3001else
3002  echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005  # Broken: fails on valid input.
3006continue
3007fi
3008rm -f conftest.err conftest.$ac_ext
3009
3010  # OK, works on sane cases.  Now check whether non-existent headers
3011  # can be detected and how.
3012  cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018#include <ac_nonexistent.h>
3019_ACEOF
3020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } >/dev/null; then
3028  if test -s conftest.err; then
3029    ac_cpp_err=$ac_c_preproc_warn_flag
3030    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3031  else
3032    ac_cpp_err=
3033  fi
3034else
3035  ac_cpp_err=yes
3036fi
3037if test -z "$ac_cpp_err"; then
3038  # Broken: success on invalid input.
3039continue
3040else
3041  echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044  # Passes both tests.
3045ac_preproc_ok=:
3046break
3047fi
3048rm -f conftest.err conftest.$ac_ext
3049
3050done
3051# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3052rm -f conftest.err conftest.$ac_ext
3053if $ac_preproc_ok; then
3054  break
3055fi
3056
3057    done
3058    ac_cv_prog_CPP=$CPP
3059
3060fi
3061  CPP=$ac_cv_prog_CPP
3062else
3063  ac_cv_prog_CPP=$CPP
3064fi
3065echo "$as_me:$LINENO: result: $CPP" >&5
3066echo "${ECHO_T}$CPP" >&6
3067ac_preproc_ok=false
3068for ac_c_preproc_warn_flag in '' yes
3069do
3070  # Use a header file that comes with gcc, so configuring glibc
3071  # with a fresh cross-compiler works.
3072  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3073  # <limits.h> exists even on freestanding compilers.
3074  # On the NeXT, cc -E runs the code through the compiler's parser,
3075  # not just through cpp. "Syntax error" is here to catch this case.
3076  cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h.  */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h.  */
3082#ifdef __STDC__
3083# include <limits.h>
3084#else
3085# include <assert.h>
3086#endif
3087		     Syntax error
3088_ACEOF
3089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3090  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } >/dev/null; then
3097  if test -s conftest.err; then
3098    ac_cpp_err=$ac_c_preproc_warn_flag
3099    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100  else
3101    ac_cpp_err=
3102  fi
3103else
3104  ac_cpp_err=yes
3105fi
3106if test -z "$ac_cpp_err"; then
3107  :
3108else
3109  echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112  # Broken: fails on valid input.
3113continue
3114fi
3115rm -f conftest.err conftest.$ac_ext
3116
3117  # OK, works on sane cases.  Now check whether non-existent headers
3118  # can be detected and how.
3119  cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h.  */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h.  */
3125#include <ac_nonexistent.h>
3126_ACEOF
3127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3128  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3129  ac_status=$?
3130  grep -v '^ *+' conftest.er1 >conftest.err
3131  rm -f conftest.er1
3132  cat conftest.err >&5
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } >/dev/null; then
3135  if test -s conftest.err; then
3136    ac_cpp_err=$ac_c_preproc_warn_flag
3137    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3138  else
3139    ac_cpp_err=
3140  fi
3141else
3142  ac_cpp_err=yes
3143fi
3144if test -z "$ac_cpp_err"; then
3145  # Broken: success on invalid input.
3146continue
3147else
3148  echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151  # Passes both tests.
3152ac_preproc_ok=:
3153break
3154fi
3155rm -f conftest.err conftest.$ac_ext
3156
3157done
3158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159rm -f conftest.err conftest.$ac_ext
3160if $ac_preproc_ok; then
3161  :
3162else
3163  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164See \`config.log' for more details." >&5
3165echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166See \`config.log' for more details." >&2;}
3167   { (exit 1); exit 1; }; }
3168fi
3169
3170ac_ext=c
3171ac_cpp='$CPP $CPPFLAGS'
3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175
3176# Find a good install program.  We prefer a C program (faster),
3177# so one script is as good as another.  But avoid the broken or
3178# incompatible versions:
3179# SysV /etc/install, /usr/sbin/install
3180# SunOS /usr/etc/install
3181# IRIX /sbin/install
3182# AIX /bin/install
3183# AmigaOS /C/install, which installs bootblocks on floppy discs
3184# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3185# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3186# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3187# OS/2's system install, which has a completely different semantic
3188# ./install, which can be erroneously created by make from ./install.sh.
3189echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3190echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3191if test -z "$INSTALL"; then
3192if test "${ac_cv_path_install+set}" = set; then
3193  echo $ECHO_N "(cached) $ECHO_C" >&6
3194else
3195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200  # Account for people who put trailing slashes in PATH elements.
3201case $as_dir/ in
3202  ./ | .// | /cC/* | \
3203  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3204  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3205  /usr/ucb/* ) ;;
3206  *)
3207    # OSF1 and SCO ODT 3.0 have their own names for install.
3208    # Don't use installbsd from OSF since it installs stuff as root
3209    # by default.
3210    for ac_prog in ginstall scoinst install; do
3211      for ac_exec_ext in '' $ac_executable_extensions; do
3212	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3213	  if test $ac_prog = install &&
3214	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3215	    # AIX install.  It has an incompatible calling convention.
3216	    :
3217	  elif test $ac_prog = install &&
3218	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3219	    # program-specific install script used by HP pwplus--don't use.
3220	    :
3221	  else
3222	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3223	    break 3
3224	  fi
3225	fi
3226      done
3227    done
3228    ;;
3229esac
3230done
3231
3232
3233fi
3234  if test "${ac_cv_path_install+set}" = set; then
3235    INSTALL=$ac_cv_path_install
3236  else
3237    # As a last resort, use the slow shell script.  We don't cache a
3238    # path for INSTALL within a source directory, because that will
3239    # break other packages using the cache if that directory is
3240    # removed, or if the path is relative.
3241    INSTALL=$ac_install_sh
3242  fi
3243fi
3244echo "$as_me:$LINENO: result: $INSTALL" >&5
3245echo "${ECHO_T}$INSTALL" >&6
3246
3247# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3248# It thinks the first close brace ends the variable substitution.
3249test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3250
3251test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3252
3253test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3254
3255
3256# Check whether --enable-ypldapd or --disable-ypldapd was given.
3257if test "${enable_ypldapd+set}" = set; then
3258  enableval="$enable_ypldapd"
3259  cat >>confdefs.h <<\_ACEOF
3260#define YPLDAPD 1
3261_ACEOF
3262
3263fi;
3264# Check whether --enable-ssl or --disable-ssl was given.
3265if test "${enable_ssl+set}" = set; then
3266  enableval="$enable_ssl"
3267
3268fi;
3269
3270# Check whether --with-ldap-lib or --without-ldap-lib was given.
3271if test "${with_ldap_lib+set}" = set; then
3272  withval="$with_ldap_lib"
3273
3274fi;
3275
3276# Check whether --with-ldap-dir or --without-ldap-dir was given.
3277if test "${with_ldap_dir+set}" = set; then
3278  withval="$with_ldap_dir"
3279
3280fi;
3281
3282# Check whether --with-ldap-conf-file or --without-ldap-conf-file was given.
3283if test "${with_ldap_conf_file+set}" = set; then
3284  withval="$with_ldap_conf_file"
3285  cat >>confdefs.h <<_ACEOF
3286#define PAM_LDAP_PATH_CONF "$with_ldap_conf_file"
3287_ACEOF
3288
3289fi;
3290
3291# Check whether --with-ldap-secret-file or --without-ldap-secret-file was given.
3292if test "${with_ldap_secret_file+set}" = set; then
3293  withval="$with_ldap_secret_file"
3294  cat >>confdefs.h <<_ACEOF
3295#define PAM_LDAP_PATH_ROOTPASSWD "$with_ldap_secret_file"
3296_ACEOF
3297
3298fi;
3299
3300if test "$ac_cv_c_compiler_gnu" = "yes"; then CFLAGS="$CFLAGS -Wall -fPIC"; fi
3301
3302CPPFLAGS="$CPPFLAGS -DLDAP_REFERRALS -DLDAP_DEPRECATED"
3303
3304case "$target_os" in
3305freebsd*) CPPFLAGS="$CPPFLAGS -DPIC -D_REENTRANT $PTHREAD_CFLAGS" ;;
3306aix*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
3307*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
3308esac
3309
3310case "$target_os" in
3311aix*) if test "$ac_cv_c_compiler_gnu" = "yes"; then
3312    pam_ldap_so_LD="/usr/ccs/bin/ld"
3313  fi
3314  LDFLAGS="$LDFLAGS -Wl,-brtl"
3315  pam_ldap_so_LDFLAGS="-bM:SRE -bnoentry -bE:\$(srcdir)/exports.aix -brtl -lc"
3316  TARGET_OS="AIX" ;;
3317darwin*) pam_ldap_so_LDFLAGS="-bundle" ;;
3318hpux*) pam_ldap_so_LD="/bin/ld"
3319  pam_ldap_so_LDFLAGS="-b -dynamic -G `cat exports.hpux`"
3320  TARGET_OS="HPUX" ;;
3321solaris*) pam_ldap_so_LD="/usr/ccs/bin/ld"
3322  pam_ldap_so_LDFLAGS="-B dynamic -M \$(srcdir)/exports.solaris -G -B group -lc" ;;
3323linux*) pam_ldap_so_LDFLAGS="-shared -Wl,-Bdynamic -Wl,--version-script,\$(srcdir)/exports.linux" ;;
3324*) pam_ldap_so_LDFLAGS="-shared" ;;
3325esac
3326
3327
3328
3329
3330
3331
3332if test -n "$pam_ldap_so_LD"; then
3333  USE_NATIVE_LINKER_TRUE=
3334  USE_NATIVE_LINKER_FALSE='#'
3335else
3336  USE_NATIVE_LINKER_TRUE='#'
3337  USE_NATIVE_LINKER_FALSE=
3338fi
3339
3340
3341
3342if test "$target_os" = "linux" -o "$target_os" = "linux-gnu"; then
3343  EXTENSION_SO_TRUE=
3344  EXTENSION_SO_FALSE='#'
3345else
3346  EXTENSION_SO_TRUE='#'
3347  EXTENSION_SO_FALSE=
3348fi
3349
3350
3351
3352if test "$TARGET_OS" = "HPUX"; then
3353  EXTENSION_1_TRUE=
3354  EXTENSION_1_FALSE='#'
3355else
3356  EXTENSION_1_TRUE='#'
3357  EXTENSION_1_FALSE=
3358fi
3359
3360
3361if test -n "$with_ldap_dir"; then
3362  CPPFLAGS="$CPPFLAGS -I$with_ldap_dir/include"
3363  LDFLAGS="$LDFLAGS -L$with_ldap_dir/lib"
3364  case "$target_os" in
3365  aix*) LDFLAGS="$LDFLAGS -Wl,-blibpath:$with_ldap_dir/lib"
3366    pam_ldap_so_LDFLAGS="$pam_ldap_so_LDFLAGS -L$with_ldap_dir/lib -blibpath:$with_ldap_dir/lib" ;;
3367  hpux*) LDFLAGS="$LDFLAGS -Wl,+b$with_ldap_dir/lib"
3368    pam_ldap_so_LDFLAGS="$pam_ldap_so_LDFLAGS -L$with_ldap_dir/lib +b$with_ldap_dir/lib" ;;
3369  solaris*) LDFLAGS="$LDFLAGS -R$with_ldap_dir/lib"
3370    pam_ldap_so_LDFLAGS="$pam_ldap_so_LDFLAGS -L$with_ldap_dir/lib -R$with_ldap_dir/lib" ;;
3371  *) LDFLAGS="$LDFLAGS -Wl,-rpath,$with_ldap_dir/lib" ;;
3372  esac
3373fi
3374
3375
3376
3377echo "$as_me:$LINENO: checking for egrep" >&5
3378echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3379if test "${ac_cv_prog_egrep+set}" = set; then
3380  echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3383    then ac_cv_prog_egrep='grep -E'
3384    else ac_cv_prog_egrep='egrep'
3385    fi
3386fi
3387echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3388echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3389 EGREP=$ac_cv_prog_egrep
3390
3391
3392echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3393echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3394if test "${ac_cv_header_stdc+set}" = set; then
3395  echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397  cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h.  */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h.  */
3403#include <stdlib.h>
3404#include <stdarg.h>
3405#include <string.h>
3406#include <float.h>
3407
3408int
3409main ()
3410{
3411
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext
3417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418  (eval $ac_compile) 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); } &&
3425	 { ac_try='test -z "$ac_c_werror_flag"
3426			 || test ! -s conftest.err'
3427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428  (eval $ac_try) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }; } &&
3432	 { ac_try='test -s conftest.$ac_objext'
3433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434  (eval $ac_try) 2>&5
3435  ac_status=$?
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); }; }; then
3438  ac_cv_header_stdc=yes
3439else
3440  echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443ac_cv_header_stdc=no
3444fi
3445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446
3447if test $ac_cv_header_stdc = yes; then
3448  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3449  cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455#include <string.h>
3456
3457_ACEOF
3458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3459  $EGREP "memchr" >/dev/null 2>&1; then
3460  :
3461else
3462  ac_cv_header_stdc=no
3463fi
3464rm -f conftest*
3465
3466fi
3467
3468if test $ac_cv_header_stdc = yes; then
3469  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3470  cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h.  */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h.  */
3476#include <stdlib.h>
3477
3478_ACEOF
3479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480  $EGREP "free" >/dev/null 2>&1; then
3481  :
3482else
3483  ac_cv_header_stdc=no
3484fi
3485rm -f conftest*
3486
3487fi
3488
3489if test $ac_cv_header_stdc = yes; then
3490  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3491  if test "$cross_compiling" = yes; then
3492  :
3493else
3494  cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h.  */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h.  */
3500#include <ctype.h>
3501#if ((' ' & 0x0FF) == 0x020)
3502# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3503# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3504#else
3505# define ISLOWER(c) \
3506		   (('a' <= (c) && (c) <= 'i') \
3507		     || ('j' <= (c) && (c) <= 'r') \
3508		     || ('s' <= (c) && (c) <= 'z'))
3509# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3510#endif
3511
3512#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3513int
3514main ()
3515{
3516  int i;
3517  for (i = 0; i < 256; i++)
3518    if (XOR (islower (i), ISLOWER (i))
3519	|| toupper (i) != TOUPPER (i))
3520      exit(2);
3521  exit (0);
3522}
3523_ACEOF
3524rm -f conftest$ac_exeext
3525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526  (eval $ac_link) 2>&5
3527  ac_status=$?
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531  (eval $ac_try) 2>&5
3532  ac_status=$?
3533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); }; }; then
3535  :
3536else
3537  echo "$as_me: program exited with status $ac_status" >&5
3538echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541( exit $ac_status )
3542ac_cv_header_stdc=no
3543fi
3544rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3545fi
3546fi
3547fi
3548echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3549echo "${ECHO_T}$ac_cv_header_stdc" >&6
3550if test $ac_cv_header_stdc = yes; then
3551
3552cat >>confdefs.h <<\_ACEOF
3553#define STDC_HEADERS 1
3554_ACEOF
3555
3556fi
3557
3558# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3569		  inttypes.h stdint.h unistd.h
3570do
3571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3572echo "$as_me:$LINENO: checking for $ac_header" >&5
3573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3574if eval "test \"\${$as_ac_Header+set}\" = set"; then
3575  echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577  cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h.  */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h.  */
3583$ac_includes_default
3584
3585#include <$ac_header>
3586_ACEOF
3587rm -f conftest.$ac_objext
3588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589  (eval $ac_compile) 2>conftest.er1
3590  ac_status=$?
3591  grep -v '^ *+' conftest.er1 >conftest.err
3592  rm -f conftest.er1
3593  cat conftest.err >&5
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); } &&
3596	 { ac_try='test -z "$ac_c_werror_flag"
3597			 || test ! -s conftest.err'
3598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599  (eval $ac_try) 2>&5
3600  ac_status=$?
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); }; } &&
3603	 { ac_try='test -s conftest.$ac_objext'
3604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605  (eval $ac_try) 2>&5
3606  ac_status=$?
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); }; }; then
3609  eval "$as_ac_Header=yes"
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614eval "$as_ac_Header=no"
3615fi
3616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3620if test `eval echo '${'$as_ac_Header'}'` = yes; then
3621  cat >>confdefs.h <<_ACEOF
3622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623_ACEOF
3624
3625fi
3626
3627done
3628
3629
3630
3631
3632
3633for ac_header in security/pam_appl.h security/pam_misc.h security/pam_modules.h
3634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637  echo "$as_me:$LINENO: checking for $ac_header" >&5
3638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641fi
3642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3644else
3645  # Is the header compilable?
3646echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3648cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654$ac_includes_default
3655#include <$ac_header>
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659  (eval $ac_compile) 2>conftest.er1
3660  ac_status=$?
3661  grep -v '^ *+' conftest.er1 >conftest.err
3662  rm -f conftest.er1
3663  cat conftest.err >&5
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); } &&
3666	 { ac_try='test -z "$ac_c_werror_flag"
3667			 || test ! -s conftest.err'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; } &&
3673	 { ac_try='test -s conftest.$ac_objext'
3674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675  (eval $ac_try) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; }; then
3679  ac_header_compiler=yes
3680else
3681  echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684ac_header_compiler=no
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688echo "${ECHO_T}$ac_header_compiler" >&6
3689
3690# Is the header present?
3691echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3693cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h.  */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h.  */
3699#include <$ac_header>
3700_ACEOF
3701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } >/dev/null; then
3709  if test -s conftest.err; then
3710    ac_cpp_err=$ac_c_preproc_warn_flag
3711    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712  else
3713    ac_cpp_err=
3714  fi
3715else
3716  ac_cpp_err=yes
3717fi
3718if test -z "$ac_cpp_err"; then
3719  ac_header_preproc=yes
3720else
3721  echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724  ac_header_preproc=no
3725fi
3726rm -f conftest.err conftest.$ac_ext
3727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728echo "${ECHO_T}$ac_header_preproc" >&6
3729
3730# So?  What about this header?
3731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732  yes:no: )
3733    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737    ac_header_preproc=yes
3738    ;;
3739  no:yes:* )
3740    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3743echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3744    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3747echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3748    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3752    (
3753      cat <<\_ASBOX
3754## ------------------------------------------ ##
3755## Report this to the AC_PACKAGE_NAME lists.  ##
3756## ------------------------------------------ ##
3757_ASBOX
3758    ) |
3759      sed "s/^/$as_me: WARNING:     /" >&2
3760    ;;
3761esac
3762echo "$as_me:$LINENO: checking for $ac_header" >&5
3763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  eval "$as_ac_Header=\$ac_header_preproc"
3768fi
3769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771
3772fi
3773if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774  cat >>confdefs.h <<_ACEOF
3775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776_ACEOF
3777
3778fi
3779
3780done
3781
3782
3783
3784
3785for ac_header in pam/pam_appl.h pam/pam_misc.h pam/pam_modules.h
3786do
3787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3788if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789  echo "$as_me:$LINENO: checking for $ac_header" >&5
3790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3791if eval "test \"\${$as_ac_Header+set}\" = set"; then
3792  echo $ECHO_N "(cached) $ECHO_C" >&6
3793fi
3794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3796else
3797  # Is the header compilable?
3798echo "$as_me:$LINENO: checking $ac_header usability" >&5
3799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3800cat >conftest.$ac_ext <<_ACEOF
3801/* confdefs.h.  */
3802_ACEOF
3803cat confdefs.h >>conftest.$ac_ext
3804cat >>conftest.$ac_ext <<_ACEOF
3805/* end confdefs.h.  */
3806$ac_includes_default
3807#include <$ac_header>
3808_ACEOF
3809rm -f conftest.$ac_objext
3810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811  (eval $ac_compile) 2>conftest.er1
3812  ac_status=$?
3813  grep -v '^ *+' conftest.er1 >conftest.err
3814  rm -f conftest.er1
3815  cat conftest.err >&5
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); } &&
3818	 { ac_try='test -z "$ac_c_werror_flag"
3819			 || test ! -s conftest.err'
3820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821  (eval $ac_try) 2>&5
3822  ac_status=$?
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); }; } &&
3825	 { ac_try='test -s conftest.$ac_objext'
3826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827  (eval $ac_try) 2>&5
3828  ac_status=$?
3829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830  (exit $ac_status); }; }; then
3831  ac_header_compiler=yes
3832else
3833  echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836ac_header_compiler=no
3837fi
3838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3840echo "${ECHO_T}$ac_header_compiler" >&6
3841
3842# Is the header present?
3843echo "$as_me:$LINENO: checking $ac_header presence" >&5
3844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3845cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h.  */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h.  */
3851#include <$ac_header>
3852_ACEOF
3853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3855  ac_status=$?
3856  grep -v '^ *+' conftest.er1 >conftest.err
3857  rm -f conftest.er1
3858  cat conftest.err >&5
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); } >/dev/null; then
3861  if test -s conftest.err; then
3862    ac_cpp_err=$ac_c_preproc_warn_flag
3863    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3864  else
3865    ac_cpp_err=
3866  fi
3867else
3868  ac_cpp_err=yes
3869fi
3870if test -z "$ac_cpp_err"; then
3871  ac_header_preproc=yes
3872else
3873  echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876  ac_header_preproc=no
3877fi
3878rm -f conftest.err conftest.$ac_ext
3879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3880echo "${ECHO_T}$ac_header_preproc" >&6
3881
3882# So?  What about this header?
3883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3884  yes:no: )
3885    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3887    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3889    ac_header_preproc=yes
3890    ;;
3891  no:yes:* )
3892    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3894    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3895echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3896    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3898    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3899echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3900    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3902    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3904    (
3905      cat <<\_ASBOX
3906## ------------------------------------------ ##
3907## Report this to the AC_PACKAGE_NAME lists.  ##
3908## ------------------------------------------ ##
3909_ASBOX
3910    ) |
3911      sed "s/^/$as_me: WARNING:     /" >&2
3912    ;;
3913esac
3914echo "$as_me:$LINENO: checking for $ac_header" >&5
3915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3916if eval "test \"\${$as_ac_Header+set}\" = set"; then
3917  echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919  eval "$as_ac_Header=\$ac_header_preproc"
3920fi
3921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3923
3924fi
3925if test `eval echo '${'$as_ac_Header'}'` = yes; then
3926  cat >>confdefs.h <<_ACEOF
3927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3928_ACEOF
3929
3930fi
3931
3932done
3933
3934
3935
3936for ac_header in des.h crypt.h
3937do
3938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3939if eval "test \"\${$as_ac_Header+set}\" = set"; then
3940  echo "$as_me:$LINENO: checking for $ac_header" >&5
3941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943  echo $ECHO_N "(cached) $ECHO_C" >&6
3944fi
3945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3947else
3948  # Is the header compilable?
3949echo "$as_me:$LINENO: checking $ac_header usability" >&5
3950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3951cat >conftest.$ac_ext <<_ACEOF
3952/* confdefs.h.  */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h.  */
3957$ac_includes_default
3958#include <$ac_header>
3959_ACEOF
3960rm -f conftest.$ac_objext
3961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962  (eval $ac_compile) 2>conftest.er1
3963  ac_status=$?
3964  grep -v '^ *+' conftest.er1 >conftest.err
3965  rm -f conftest.er1
3966  cat conftest.err >&5
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); } &&
3969	 { ac_try='test -z "$ac_c_werror_flag"
3970			 || test ! -s conftest.err'
3971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972  (eval $ac_try) 2>&5
3973  ac_status=$?
3974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975  (exit $ac_status); }; } &&
3976	 { ac_try='test -s conftest.$ac_objext'
3977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978  (eval $ac_try) 2>&5
3979  ac_status=$?
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); }; }; then
3982  ac_header_compiler=yes
3983else
3984  echo "$as_me: failed program was:" >&5
3985sed 's/^/| /' conftest.$ac_ext >&5
3986
3987ac_header_compiler=no
3988fi
3989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3991echo "${ECHO_T}$ac_header_compiler" >&6
3992
3993# Is the header present?
3994echo "$as_me:$LINENO: checking $ac_header presence" >&5
3995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3996cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h.  */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h.  */
4002#include <$ac_header>
4003_ACEOF
4004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4005  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4006  ac_status=$?
4007  grep -v '^ *+' conftest.er1 >conftest.err
4008  rm -f conftest.er1
4009  cat conftest.err >&5
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); } >/dev/null; then
4012  if test -s conftest.err; then
4013    ac_cpp_err=$ac_c_preproc_warn_flag
4014    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4015  else
4016    ac_cpp_err=
4017  fi
4018else
4019  ac_cpp_err=yes
4020fi
4021if test -z "$ac_cpp_err"; then
4022  ac_header_preproc=yes
4023else
4024  echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027  ac_header_preproc=no
4028fi
4029rm -f conftest.err conftest.$ac_ext
4030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4031echo "${ECHO_T}$ac_header_preproc" >&6
4032
4033# So?  What about this header?
4034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4035  yes:no: )
4036    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4038    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4040    ac_header_preproc=yes
4041    ;;
4042  no:yes:* )
4043    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4045    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4046echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4047    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4049    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4050echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4051    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4053    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4055    (
4056      cat <<\_ASBOX
4057## ------------------------------------------ ##
4058## Report this to the AC_PACKAGE_NAME lists.  ##
4059## ------------------------------------------ ##
4060_ASBOX
4061    ) |
4062      sed "s/^/$as_me: WARNING:     /" >&2
4063    ;;
4064esac
4065echo "$as_me:$LINENO: checking for $ac_header" >&5
4066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4067if eval "test \"\${$as_ac_Header+set}\" = set"; then
4068  echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070  eval "$as_ac_Header=\$ac_header_preproc"
4071fi
4072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4074
4075fi
4076if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077  cat >>confdefs.h <<_ACEOF
4078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079_ACEOF
4080
4081fi
4082
4083done
4084
4085
4086for ac_header in lber.h
4087do
4088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4089if eval "test \"\${$as_ac_Header+set}\" = set"; then
4090  echo "$as_me:$LINENO: checking for $ac_header" >&5
4091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4092if eval "test \"\${$as_ac_Header+set}\" = set"; then
4093  echo $ECHO_N "(cached) $ECHO_C" >&6
4094fi
4095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4097else
4098  # Is the header compilable?
4099echo "$as_me:$LINENO: checking $ac_header usability" >&5
4100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4101cat >conftest.$ac_ext <<_ACEOF
4102/* confdefs.h.  */
4103_ACEOF
4104cat confdefs.h >>conftest.$ac_ext
4105cat >>conftest.$ac_ext <<_ACEOF
4106/* end confdefs.h.  */
4107$ac_includes_default
4108#include <$ac_header>
4109_ACEOF
4110rm -f conftest.$ac_objext
4111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112  (eval $ac_compile) 2>conftest.er1
4113  ac_status=$?
4114  grep -v '^ *+' conftest.er1 >conftest.err
4115  rm -f conftest.er1
4116  cat conftest.err >&5
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); } &&
4119	 { ac_try='test -z "$ac_c_werror_flag"
4120			 || test ! -s conftest.err'
4121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122  (eval $ac_try) 2>&5
4123  ac_status=$?
4124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125  (exit $ac_status); }; } &&
4126	 { ac_try='test -s conftest.$ac_objext'
4127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128  (eval $ac_try) 2>&5
4129  ac_status=$?
4130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131  (exit $ac_status); }; }; then
4132  ac_header_compiler=yes
4133else
4134  echo "$as_me: failed program was:" >&5
4135sed 's/^/| /' conftest.$ac_ext >&5
4136
4137ac_header_compiler=no
4138fi
4139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4141echo "${ECHO_T}$ac_header_compiler" >&6
4142
4143# Is the header present?
4144echo "$as_me:$LINENO: checking $ac_header presence" >&5
4145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4146cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h.  */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
4151/* end confdefs.h.  */
4152#include <$ac_header>
4153_ACEOF
4154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156  ac_status=$?
4157  grep -v '^ *+' conftest.er1 >conftest.err
4158  rm -f conftest.er1
4159  cat conftest.err >&5
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } >/dev/null; then
4162  if test -s conftest.err; then
4163    ac_cpp_err=$ac_c_preproc_warn_flag
4164    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165  else
4166    ac_cpp_err=
4167  fi
4168else
4169  ac_cpp_err=yes
4170fi
4171if test -z "$ac_cpp_err"; then
4172  ac_header_preproc=yes
4173else
4174  echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177  ac_header_preproc=no
4178fi
4179rm -f conftest.err conftest.$ac_ext
4180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4181echo "${ECHO_T}$ac_header_preproc" >&6
4182
4183# So?  What about this header?
4184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4185  yes:no: )
4186    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4188    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4190    ac_header_preproc=yes
4191    ;;
4192  no:yes:* )
4193    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4195    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4196echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4197    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4199    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4200echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4201    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4203    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4205    (
4206      cat <<\_ASBOX
4207## ------------------------------------------ ##
4208## Report this to the AC_PACKAGE_NAME lists.  ##
4209## ------------------------------------------ ##
4210_ASBOX
4211    ) |
4212      sed "s/^/$as_me: WARNING:     /" >&2
4213    ;;
4214esac
4215echo "$as_me:$LINENO: checking for $ac_header" >&5
4216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4217if eval "test \"\${$as_ac_Header+set}\" = set"; then
4218  echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220  eval "$as_ac_Header=\$ac_header_preproc"
4221fi
4222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4224
4225fi
4226if test `eval echo '${'$as_ac_Header'}'` = yes; then
4227  cat >>confdefs.h <<_ACEOF
4228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4229_ACEOF
4230
4231fi
4232
4233done
4234
4235
4236for ac_header in ldap.h
4237do
4238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239if eval "test \"\${$as_ac_Header+set}\" = set"; then
4240  echo "$as_me:$LINENO: checking for $ac_header" >&5
4241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4242if eval "test \"\${$as_ac_Header+set}\" = set"; then
4243  echo $ECHO_N "(cached) $ECHO_C" >&6
4244fi
4245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4247else
4248  # Is the header compilable?
4249echo "$as_me:$LINENO: checking $ac_header usability" >&5
4250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4251cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h.  */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h.  */
4257$ac_includes_default
4258#include <$ac_header>
4259_ACEOF
4260rm -f conftest.$ac_objext
4261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262  (eval $ac_compile) 2>conftest.er1
4263  ac_status=$?
4264  grep -v '^ *+' conftest.er1 >conftest.err
4265  rm -f conftest.er1
4266  cat conftest.err >&5
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); } &&
4269	 { ac_try='test -z "$ac_c_werror_flag"
4270			 || test ! -s conftest.err'
4271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272  (eval $ac_try) 2>&5
4273  ac_status=$?
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); }; } &&
4276	 { ac_try='test -s conftest.$ac_objext'
4277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278  (eval $ac_try) 2>&5
4279  ac_status=$?
4280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281  (exit $ac_status); }; }; then
4282  ac_header_compiler=yes
4283else
4284  echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287ac_header_compiler=no
4288fi
4289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4291echo "${ECHO_T}$ac_header_compiler" >&6
4292
4293# Is the header present?
4294echo "$as_me:$LINENO: checking $ac_header presence" >&5
4295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4296cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h.  */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h.  */
4302#include <$ac_header>
4303_ACEOF
4304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4305  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4306  ac_status=$?
4307  grep -v '^ *+' conftest.er1 >conftest.err
4308  rm -f conftest.er1
4309  cat conftest.err >&5
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); } >/dev/null; then
4312  if test -s conftest.err; then
4313    ac_cpp_err=$ac_c_preproc_warn_flag
4314    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4315  else
4316    ac_cpp_err=
4317  fi
4318else
4319  ac_cpp_err=yes
4320fi
4321if test -z "$ac_cpp_err"; then
4322  ac_header_preproc=yes
4323else
4324  echo "$as_me: failed program was:" >&5
4325sed 's/^/| /' conftest.$ac_ext >&5
4326
4327  ac_header_preproc=no
4328fi
4329rm -f conftest.err conftest.$ac_ext
4330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4331echo "${ECHO_T}$ac_header_preproc" >&6
4332
4333# So?  What about this header?
4334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4335  yes:no: )
4336    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4338    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4340    ac_header_preproc=yes
4341    ;;
4342  no:yes:* )
4343    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4345    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4346echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4347    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4349    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4350echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4351    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4353    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4355    (
4356      cat <<\_ASBOX
4357## ------------------------------------------ ##
4358## Report this to the AC_PACKAGE_NAME lists.  ##
4359## ------------------------------------------ ##
4360_ASBOX
4361    ) |
4362      sed "s/^/$as_me: WARNING:     /" >&2
4363    ;;
4364esac
4365echo "$as_me:$LINENO: checking for $ac_header" >&5
4366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4367if eval "test \"\${$as_ac_Header+set}\" = set"; then
4368  echo $ECHO_N "(cached) $ECHO_C" >&6
4369else
4370  eval "$as_ac_Header=\$ac_header_preproc"
4371fi
4372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4374
4375fi
4376if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377  cat >>confdefs.h <<_ACEOF
4378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4379_ACEOF
4380
4381else
4382  { { echo "$as_me:$LINENO: error: could not locate <ldap.h>" >&5
4383echo "$as_me: error: could not locate <ldap.h>" >&2;}
4384   { (exit 1); exit 1; }; }
4385fi
4386
4387done
4388
4389
4390for ac_header in ldap_ssl.h
4391do
4392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393if eval "test \"\${$as_ac_Header+set}\" = set"; then
4394  echo "$as_me:$LINENO: checking for $ac_header" >&5
4395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4396if eval "test \"\${$as_ac_Header+set}\" = set"; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398fi
4399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4401else
4402  # Is the header compilable?
4403echo "$as_me:$LINENO: checking $ac_header usability" >&5
4404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4405cat >conftest.$ac_ext <<_ACEOF
4406/* confdefs.h.  */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h.  */
4411$ac_includes_default
4412#include <$ac_header>
4413_ACEOF
4414rm -f conftest.$ac_objext
4415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416  (eval $ac_compile) 2>conftest.er1
4417  ac_status=$?
4418  grep -v '^ *+' conftest.er1 >conftest.err
4419  rm -f conftest.er1
4420  cat conftest.err >&5
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); } &&
4423	 { ac_try='test -z "$ac_c_werror_flag"
4424			 || test ! -s conftest.err'
4425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426  (eval $ac_try) 2>&5
4427  ac_status=$?
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); }; } &&
4430	 { ac_try='test -s conftest.$ac_objext'
4431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432  (eval $ac_try) 2>&5
4433  ac_status=$?
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); }; }; then
4436  ac_header_compiler=yes
4437else
4438  echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441ac_header_compiler=no
4442fi
4443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4445echo "${ECHO_T}$ac_header_compiler" >&6
4446
4447# Is the header present?
4448echo "$as_me:$LINENO: checking $ac_header presence" >&5
4449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4450cat >conftest.$ac_ext <<_ACEOF
4451/* confdefs.h.  */
4452_ACEOF
4453cat confdefs.h >>conftest.$ac_ext
4454cat >>conftest.$ac_ext <<_ACEOF
4455/* end confdefs.h.  */
4456#include <$ac_header>
4457_ACEOF
4458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460  ac_status=$?
4461  grep -v '^ *+' conftest.er1 >conftest.err
4462  rm -f conftest.er1
4463  cat conftest.err >&5
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); } >/dev/null; then
4466  if test -s conftest.err; then
4467    ac_cpp_err=$ac_c_preproc_warn_flag
4468    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4469  else
4470    ac_cpp_err=
4471  fi
4472else
4473  ac_cpp_err=yes
4474fi
4475if test -z "$ac_cpp_err"; then
4476  ac_header_preproc=yes
4477else
4478  echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
4480
4481  ac_header_preproc=no
4482fi
4483rm -f conftest.err conftest.$ac_ext
4484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4485echo "${ECHO_T}$ac_header_preproc" >&6
4486
4487# So?  What about this header?
4488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4489  yes:no: )
4490    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4494    ac_header_preproc=yes
4495    ;;
4496  no:yes:* )
4497    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4499    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4500echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4501    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4503    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4504echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4505    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4507    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4509    (
4510      cat <<\_ASBOX
4511## ------------------------------------------ ##
4512## Report this to the AC_PACKAGE_NAME lists.  ##
4513## ------------------------------------------ ##
4514_ASBOX
4515    ) |
4516      sed "s/^/$as_me: WARNING:     /" >&2
4517    ;;
4518esac
4519echo "$as_me:$LINENO: checking for $ac_header" >&5
4520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522  echo $ECHO_N "(cached) $ECHO_C" >&6
4523else
4524  eval "$as_ac_Header=\$ac_header_preproc"
4525fi
4526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4528
4529fi
4530if test `eval echo '${'$as_ac_Header'}'` = yes; then
4531  cat >>confdefs.h <<_ACEOF
4532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4533_ACEOF
4534
4535fi
4536
4537done
4538
4539
4540for ac_header in sasl/sasl.h
4541do
4542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4543if eval "test \"\${$as_ac_Header+set}\" = set"; then
4544  echo "$as_me:$LINENO: checking for $ac_header" >&5
4545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4546if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547  echo $ECHO_N "(cached) $ECHO_C" >&6
4548fi
4549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4551else
4552  # Is the header compilable?
4553echo "$as_me:$LINENO: checking $ac_header usability" >&5
4554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4555cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h.  */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h.  */
4561$ac_includes_default
4562#include <$ac_header>
4563_ACEOF
4564rm -f conftest.$ac_objext
4565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566  (eval $ac_compile) 2>conftest.er1
4567  ac_status=$?
4568  grep -v '^ *+' conftest.er1 >conftest.err
4569  rm -f conftest.er1
4570  cat conftest.err >&5
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); } &&
4573	 { ac_try='test -z "$ac_c_werror_flag"
4574			 || test ! -s conftest.err'
4575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576  (eval $ac_try) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; } &&
4580	 { ac_try='test -s conftest.$ac_objext'
4581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582  (eval $ac_try) 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); }; }; then
4586  ac_header_compiler=yes
4587else
4588  echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591ac_header_compiler=no
4592fi
4593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4595echo "${ECHO_T}$ac_header_compiler" >&6
4596
4597# Is the header present?
4598echo "$as_me:$LINENO: checking $ac_header presence" >&5
4599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4600cat >conftest.$ac_ext <<_ACEOF
4601/* confdefs.h.  */
4602_ACEOF
4603cat confdefs.h >>conftest.$ac_ext
4604cat >>conftest.$ac_ext <<_ACEOF
4605/* end confdefs.h.  */
4606#include <$ac_header>
4607_ACEOF
4608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4609  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4610  ac_status=$?
4611  grep -v '^ *+' conftest.er1 >conftest.err
4612  rm -f conftest.er1
4613  cat conftest.err >&5
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); } >/dev/null; then
4616  if test -s conftest.err; then
4617    ac_cpp_err=$ac_c_preproc_warn_flag
4618    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4619  else
4620    ac_cpp_err=
4621  fi
4622else
4623  ac_cpp_err=yes
4624fi
4625if test -z "$ac_cpp_err"; then
4626  ac_header_preproc=yes
4627else
4628  echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631  ac_header_preproc=no
4632fi
4633rm -f conftest.err conftest.$ac_ext
4634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4635echo "${ECHO_T}$ac_header_preproc" >&6
4636
4637# So?  What about this header?
4638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4639  yes:no: )
4640    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4644    ac_header_preproc=yes
4645    ;;
4646  no:yes:* )
4647    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4649    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4650echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4651    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4653    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4654echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4655    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4657    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4659    (
4660      cat <<\_ASBOX
4661## ------------------------------------------ ##
4662## Report this to the AC_PACKAGE_NAME lists.  ##
4663## ------------------------------------------ ##
4664_ASBOX
4665    ) |
4666      sed "s/^/$as_me: WARNING:     /" >&2
4667    ;;
4668esac
4669echo "$as_me:$LINENO: checking for $ac_header" >&5
4670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4671if eval "test \"\${$as_ac_Header+set}\" = set"; then
4672  echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674  eval "$as_ac_Header=\$ac_header_preproc"
4675fi
4676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4678
4679fi
4680if test `eval echo '${'$as_ac_Header'}'` = yes; then
4681  cat >>confdefs.h <<_ACEOF
4682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683_ACEOF
4684
4685fi
4686
4687done
4688
4689
4690for ac_header in sasl.h
4691do
4692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693if eval "test \"\${$as_ac_Header+set}\" = set"; then
4694  echo "$as_me:$LINENO: checking for $ac_header" >&5
4695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4696if eval "test \"\${$as_ac_Header+set}\" = set"; then
4697  echo $ECHO_N "(cached) $ECHO_C" >&6
4698fi
4699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4701else
4702  # Is the header compilable?
4703echo "$as_me:$LINENO: checking $ac_header usability" >&5
4704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4705cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h.  */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h.  */
4711$ac_includes_default
4712#include <$ac_header>
4713_ACEOF
4714rm -f conftest.$ac_objext
4715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716  (eval $ac_compile) 2>conftest.er1
4717  ac_status=$?
4718  grep -v '^ *+' conftest.er1 >conftest.err
4719  rm -f conftest.er1
4720  cat conftest.err >&5
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); } &&
4723	 { ac_try='test -z "$ac_c_werror_flag"
4724			 || test ! -s conftest.err'
4725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726  (eval $ac_try) 2>&5
4727  ac_status=$?
4728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729  (exit $ac_status); }; } &&
4730	 { ac_try='test -s conftest.$ac_objext'
4731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732  (eval $ac_try) 2>&5
4733  ac_status=$?
4734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735  (exit $ac_status); }; }; then
4736  ac_header_compiler=yes
4737else
4738  echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741ac_header_compiler=no
4742fi
4743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4745echo "${ECHO_T}$ac_header_compiler" >&6
4746
4747# Is the header present?
4748echo "$as_me:$LINENO: checking $ac_header presence" >&5
4749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4750cat >conftest.$ac_ext <<_ACEOF
4751/* confdefs.h.  */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h.  */
4756#include <$ac_header>
4757_ACEOF
4758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4759  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4760  ac_status=$?
4761  grep -v '^ *+' conftest.er1 >conftest.err
4762  rm -f conftest.er1
4763  cat conftest.err >&5
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); } >/dev/null; then
4766  if test -s conftest.err; then
4767    ac_cpp_err=$ac_c_preproc_warn_flag
4768    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4769  else
4770    ac_cpp_err=
4771  fi
4772else
4773  ac_cpp_err=yes
4774fi
4775if test -z "$ac_cpp_err"; then
4776  ac_header_preproc=yes
4777else
4778  echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781  ac_header_preproc=no
4782fi
4783rm -f conftest.err conftest.$ac_ext
4784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4785echo "${ECHO_T}$ac_header_preproc" >&6
4786
4787# So?  What about this header?
4788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4789  yes:no: )
4790    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4792    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4794    ac_header_preproc=yes
4795    ;;
4796  no:yes:* )
4797    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4799    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4800echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4801    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4803    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4804echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4805    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4807    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4809    (
4810      cat <<\_ASBOX
4811## ------------------------------------------ ##
4812## Report this to the AC_PACKAGE_NAME lists.  ##
4813## ------------------------------------------ ##
4814_ASBOX
4815    ) |
4816      sed "s/^/$as_me: WARNING:     /" >&2
4817    ;;
4818esac
4819echo "$as_me:$LINENO: checking for $ac_header" >&5
4820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4821if eval "test \"\${$as_ac_Header+set}\" = set"; then
4822  echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824  eval "$as_ac_Header=\$ac_header_preproc"
4825fi
4826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4828
4829fi
4830if test `eval echo '${'$as_ac_Header'}'` = yes; then
4831  cat >>confdefs.h <<_ACEOF
4832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4833_ACEOF
4834
4835fi
4836
4837done
4838
4839
4840
4841echo "$as_me:$LINENO: checking for main in -ldl" >&5
4842echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4843if test "${ac_cv_lib_dl_main+set}" = set; then
4844  echo $ECHO_N "(cached) $ECHO_C" >&6
4845else
4846  ac_check_lib_save_LIBS=$LIBS
4847LIBS="-ldl  $LIBS"
4848cat >conftest.$ac_ext <<_ACEOF
4849/* confdefs.h.  */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h.  */
4854
4855
4856int
4857main ()
4858{
4859main ();
4860  ;
4861  return 0;
4862}
4863_ACEOF
4864rm -f conftest.$ac_objext conftest$ac_exeext
4865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866  (eval $ac_link) 2>conftest.er1
4867  ac_status=$?
4868  grep -v '^ *+' conftest.er1 >conftest.err
4869  rm -f conftest.er1
4870  cat conftest.err >&5
4871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872  (exit $ac_status); } &&
4873	 { ac_try='test -z "$ac_c_werror_flag"
4874			 || test ! -s conftest.err'
4875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876  (eval $ac_try) 2>&5
4877  ac_status=$?
4878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879  (exit $ac_status); }; } &&
4880	 { ac_try='test -s conftest$ac_exeext'
4881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882  (eval $ac_try) 2>&5
4883  ac_status=$?
4884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885  (exit $ac_status); }; }; then
4886  ac_cv_lib_dl_main=yes
4887else
4888  echo "$as_me: failed program was:" >&5
4889sed 's/^/| /' conftest.$ac_ext >&5
4890
4891ac_cv_lib_dl_main=no
4892fi
4893rm -f conftest.err conftest.$ac_objext \
4894      conftest$ac_exeext conftest.$ac_ext
4895LIBS=$ac_check_lib_save_LIBS
4896fi
4897echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4898echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4899if test $ac_cv_lib_dl_main = yes; then
4900  cat >>confdefs.h <<_ACEOF
4901#define HAVE_LIBDL 1
4902_ACEOF
4903
4904  LIBS="-ldl $LIBS"
4905
4906fi
4907
4908
4909echo "$as_me:$LINENO: checking for main in -lpam" >&5
4910echo $ECHO_N "checking for main in -lpam... $ECHO_C" >&6
4911if test "${ac_cv_lib_pam_main+set}" = set; then
4912  echo $ECHO_N "(cached) $ECHO_C" >&6
4913else
4914  ac_check_lib_save_LIBS=$LIBS
4915LIBS="-lpam  $LIBS"
4916cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h.  */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h.  */
4922
4923
4924int
4925main ()
4926{
4927main ();
4928  ;
4929  return 0;
4930}
4931_ACEOF
4932rm -f conftest.$ac_objext conftest$ac_exeext
4933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934  (eval $ac_link) 2>conftest.er1
4935  ac_status=$?
4936  grep -v '^ *+' conftest.er1 >conftest.err
4937  rm -f conftest.er1
4938  cat conftest.err >&5
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); } &&
4941	 { ac_try='test -z "$ac_c_werror_flag"
4942			 || test ! -s conftest.err'
4943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944  (eval $ac_try) 2>&5
4945  ac_status=$?
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); }; } &&
4948	 { ac_try='test -s conftest$ac_exeext'
4949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950  (eval $ac_try) 2>&5
4951  ac_status=$?
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); }; }; then
4954  ac_cv_lib_pam_main=yes
4955else
4956  echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959ac_cv_lib_pam_main=no
4960fi
4961rm -f conftest.err conftest.$ac_objext \
4962      conftest$ac_exeext conftest.$ac_ext
4963LIBS=$ac_check_lib_save_LIBS
4964fi
4965echo "$as_me:$LINENO: result: $ac_cv_lib_pam_main" >&5
4966echo "${ECHO_T}$ac_cv_lib_pam_main" >&6
4967if test $ac_cv_lib_pam_main = yes; then
4968  cat >>confdefs.h <<_ACEOF
4969#define HAVE_LIBPAM 1
4970_ACEOF
4971
4972  LIBS="-lpam $LIBS"
4973
4974fi
4975
4976
4977echo "$as_me:$LINENO: checking for main in -lresolv" >&5
4978echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
4979if test "${ac_cv_lib_resolv_main+set}" = set; then
4980  echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982  ac_check_lib_save_LIBS=$LIBS
4983LIBS="-lresolv  $LIBS"
4984cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h.  */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h.  */
4990
4991
4992int
4993main ()
4994{
4995main ();
4996  ;
4997  return 0;
4998}
4999_ACEOF
5000rm -f conftest.$ac_objext conftest$ac_exeext
5001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5002  (eval $ac_link) 2>conftest.er1
5003  ac_status=$?
5004  grep -v '^ *+' conftest.er1 >conftest.err
5005  rm -f conftest.er1
5006  cat conftest.err >&5
5007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008  (exit $ac_status); } &&
5009	 { ac_try='test -z "$ac_c_werror_flag"
5010			 || test ! -s conftest.err'
5011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012  (eval $ac_try) 2>&5
5013  ac_status=$?
5014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015  (exit $ac_status); }; } &&
5016	 { ac_try='test -s conftest$ac_exeext'
5017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018  (eval $ac_try) 2>&5
5019  ac_status=$?
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); }; }; then
5022  ac_cv_lib_resolv_main=yes
5023else
5024  echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027ac_cv_lib_resolv_main=no
5028fi
5029rm -f conftest.err conftest.$ac_objext \
5030      conftest$ac_exeext conftest.$ac_ext
5031LIBS=$ac_check_lib_save_LIBS
5032fi
5033echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5034echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5035if test $ac_cv_lib_resolv_main = yes; then
5036  cat >>confdefs.h <<_ACEOF
5037#define HAVE_LIBRESOLV 1
5038_ACEOF
5039
5040  LIBS="-lresolv $LIBS"
5041
5042fi
5043
5044
5045echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
5046echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
5047if test "${ac_cv_lib_crypt_main+set}" = set; then
5048  echo $ECHO_N "(cached) $ECHO_C" >&6
5049else
5050  ac_check_lib_save_LIBS=$LIBS
5051LIBS="-lcrypt  $LIBS"
5052cat >conftest.$ac_ext <<_ACEOF
5053/* confdefs.h.  */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h.  */
5058
5059
5060int
5061main ()
5062{
5063main ();
5064  ;
5065  return 0;
5066}
5067_ACEOF
5068rm -f conftest.$ac_objext conftest$ac_exeext
5069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5070  (eval $ac_link) 2>conftest.er1
5071  ac_status=$?
5072  grep -v '^ *+' conftest.er1 >conftest.err
5073  rm -f conftest.er1
5074  cat conftest.err >&5
5075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076  (exit $ac_status); } &&
5077	 { ac_try='test -z "$ac_c_werror_flag"
5078			 || test ! -s conftest.err'
5079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080  (eval $ac_try) 2>&5
5081  ac_status=$?
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); }; } &&
5084	 { ac_try='test -s conftest$ac_exeext'
5085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086  (eval $ac_try) 2>&5
5087  ac_status=$?
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); }; }; then
5090  ac_cv_lib_crypt_main=yes
5091else
5092  echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
5095ac_cv_lib_crypt_main=no
5096fi
5097rm -f conftest.err conftest.$ac_objext \
5098      conftest$ac_exeext conftest.$ac_ext
5099LIBS=$ac_check_lib_save_LIBS
5100fi
5101echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
5102echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
5103if test $ac_cv_lib_crypt_main = yes; then
5104  cat >>confdefs.h <<_ACEOF
5105#define HAVE_LIBCRYPT 1
5106_ACEOF
5107
5108  LIBS="-lcrypt $LIBS"
5109
5110fi
5111
5112
5113echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5114echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5115if test "${ac_cv_lib_nsl_main+set}" = set; then
5116  echo $ECHO_N "(cached) $ECHO_C" >&6
5117else
5118  ac_check_lib_save_LIBS=$LIBS
5119LIBS="-lnsl  $LIBS"
5120cat >conftest.$ac_ext <<_ACEOF
5121/* confdefs.h.  */
5122_ACEOF
5123cat confdefs.h >>conftest.$ac_ext
5124cat >>conftest.$ac_ext <<_ACEOF
5125/* end confdefs.h.  */
5126
5127
5128int
5129main ()
5130{
5131main ();
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136rm -f conftest.$ac_objext conftest$ac_exeext
5137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138  (eval $ac_link) 2>conftest.er1
5139  ac_status=$?
5140  grep -v '^ *+' conftest.er1 >conftest.err
5141  rm -f conftest.er1
5142  cat conftest.err >&5
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); } &&
5145	 { ac_try='test -z "$ac_c_werror_flag"
5146			 || test ! -s conftest.err'
5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148  (eval $ac_try) 2>&5
5149  ac_status=$?
5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151  (exit $ac_status); }; } &&
5152	 { ac_try='test -s conftest$ac_exeext'
5153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154  (eval $ac_try) 2>&5
5155  ac_status=$?
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); }; }; then
5158  ac_cv_lib_nsl_main=yes
5159else
5160  echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163ac_cv_lib_nsl_main=no
5164fi
5165rm -f conftest.err conftest.$ac_objext \
5166      conftest$ac_exeext conftest.$ac_ext
5167LIBS=$ac_check_lib_save_LIBS
5168fi
5169echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5170echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5171if test $ac_cv_lib_nsl_main = yes; then
5172  cat >>confdefs.h <<_ACEOF
5173#define HAVE_LIBNSL 1
5174_ACEOF
5175
5176  LIBS="-lnsl $LIBS"
5177
5178fi
5179
5180
5181
5182for ac_func in gethostbyname
5183do
5184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5185echo "$as_me:$LINENO: checking for $ac_func" >&5
5186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5187if eval "test \"\${$as_ac_var+set}\" = set"; then
5188  echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190  cat >conftest.$ac_ext <<_ACEOF
5191/* confdefs.h.  */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h.  */
5196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5197   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5198#define $ac_func innocuous_$ac_func
5199
5200/* System header to define __stub macros and hopefully few prototypes,
5201    which can conflict with char $ac_func (); below.
5202    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203    <limits.h> exists even on freestanding compilers.  */
5204
5205#ifdef __STDC__
5206# include <limits.h>
5207#else
5208# include <assert.h>
5209#endif
5210
5211#undef $ac_func
5212
5213/* Override any gcc2 internal prototype to avoid an error.  */
5214#ifdef __cplusplus
5215extern "C"
5216{
5217#endif
5218/* We use char because int might match the return type of a gcc2
5219   builtin and then its argument prototype would still apply.  */
5220char $ac_func ();
5221/* The GNU C library defines this for functions which it implements
5222    to always fail with ENOSYS.  Some functions are actually named
5223    something starting with __ and the normal name is an alias.  */
5224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5225choke me
5226#else
5227char (*f) () = $ac_func;
5228#endif
5229#ifdef __cplusplus
5230}
5231#endif
5232
5233int
5234main ()
5235{
5236return f != $ac_func;
5237  ;
5238  return 0;
5239}
5240_ACEOF
5241rm -f conftest.$ac_objext conftest$ac_exeext
5242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5243  (eval $ac_link) 2>conftest.er1
5244  ac_status=$?
5245  grep -v '^ *+' conftest.er1 >conftest.err
5246  rm -f conftest.er1
5247  cat conftest.err >&5
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); } &&
5250	 { ac_try='test -z "$ac_c_werror_flag"
5251			 || test ! -s conftest.err'
5252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253  (eval $ac_try) 2>&5
5254  ac_status=$?
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); }; } &&
5257	 { ac_try='test -s conftest$ac_exeext'
5258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259  (eval $ac_try) 2>&5
5260  ac_status=$?
5261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262  (exit $ac_status); }; }; then
5263  eval "$as_ac_var=yes"
5264else
5265  echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268eval "$as_ac_var=no"
5269fi
5270rm -f conftest.err conftest.$ac_objext \
5271      conftest$ac_exeext conftest.$ac_ext
5272fi
5273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5275if test `eval echo '${'$as_ac_var'}'` = yes; then
5276  cat >>confdefs.h <<_ACEOF
5277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5278_ACEOF
5279
5280fi
5281done
5282
5283if test "$ac_cv_func_gethostbyname" = "no"; then
5284  unset ac_cv_func_gethostbyname
5285
5286echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5287echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5288if test "${ac_cv_lib_nsl_main+set}" = set; then
5289  echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291  ac_check_lib_save_LIBS=$LIBS
5292LIBS="-lnsl  $LIBS"
5293cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h.  */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h.  */
5299
5300
5301int
5302main ()
5303{
5304main ();
5305  ;
5306  return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext conftest$ac_exeext
5310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311  (eval $ac_link) 2>conftest.er1
5312  ac_status=$?
5313  grep -v '^ *+' conftest.er1 >conftest.err
5314  rm -f conftest.er1
5315  cat conftest.err >&5
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); } &&
5318	 { ac_try='test -z "$ac_c_werror_flag"
5319			 || test ! -s conftest.err'
5320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321  (eval $ac_try) 2>&5
5322  ac_status=$?
5323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324  (exit $ac_status); }; } &&
5325	 { ac_try='test -s conftest$ac_exeext'
5326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327  (eval $ac_try) 2>&5
5328  ac_status=$?
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); }; }; then
5331  ac_cv_lib_nsl_main=yes
5332else
5333  echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
5336ac_cv_lib_nsl_main=no
5337fi
5338rm -f conftest.err conftest.$ac_objext \
5339      conftest$ac_exeext conftest.$ac_ext
5340LIBS=$ac_check_lib_save_LIBS
5341fi
5342echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5343echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5344if test $ac_cv_lib_nsl_main = yes; then
5345  cat >>confdefs.h <<_ACEOF
5346#define HAVE_LIBNSL 1
5347_ACEOF
5348
5349  LIBS="-lnsl $LIBS"
5350
5351fi
5352
5353
5354for ac_func in gethostbyname
5355do
5356as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5357echo "$as_me:$LINENO: checking for $ac_func" >&5
5358echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5359if eval "test \"\${$as_ac_var+set}\" = set"; then
5360  echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362  cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h.  */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h.  */
5368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5369   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5370#define $ac_func innocuous_$ac_func
5371
5372/* System header to define __stub macros and hopefully few prototypes,
5373    which can conflict with char $ac_func (); below.
5374    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5375    <limits.h> exists even on freestanding compilers.  */
5376
5377#ifdef __STDC__
5378# include <limits.h>
5379#else
5380# include <assert.h>
5381#endif
5382
5383#undef $ac_func
5384
5385/* Override any gcc2 internal prototype to avoid an error.  */
5386#ifdef __cplusplus
5387extern "C"
5388{
5389#endif
5390/* We use char because int might match the return type of a gcc2
5391   builtin and then its argument prototype would still apply.  */
5392char $ac_func ();
5393/* The GNU C library defines this for functions which it implements
5394    to always fail with ENOSYS.  Some functions are actually named
5395    something starting with __ and the normal name is an alias.  */
5396#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5397choke me
5398#else
5399char (*f) () = $ac_func;
5400#endif
5401#ifdef __cplusplus
5402}
5403#endif
5404
5405int
5406main ()
5407{
5408return f != $ac_func;
5409  ;
5410  return 0;
5411}
5412_ACEOF
5413rm -f conftest.$ac_objext conftest$ac_exeext
5414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5415  (eval $ac_link) 2>conftest.er1
5416  ac_status=$?
5417  grep -v '^ *+' conftest.er1 >conftest.err
5418  rm -f conftest.er1
5419  cat conftest.err >&5
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); } &&
5422	 { ac_try='test -z "$ac_c_werror_flag"
5423			 || test ! -s conftest.err'
5424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425  (eval $ac_try) 2>&5
5426  ac_status=$?
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); }; } &&
5429	 { ac_try='test -s conftest$ac_exeext'
5430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431  (eval $ac_try) 2>&5
5432  ac_status=$?
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); }; }; then
5435  eval "$as_ac_var=yes"
5436else
5437  echo "$as_me: failed program was:" >&5
5438sed 's/^/| /' conftest.$ac_ext >&5
5439
5440eval "$as_ac_var=no"
5441fi
5442rm -f conftest.err conftest.$ac_objext \
5443      conftest$ac_exeext conftest.$ac_ext
5444fi
5445echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5446echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5447if test `eval echo '${'$as_ac_var'}'` = yes; then
5448  cat >>confdefs.h <<_ACEOF
5449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5450_ACEOF
5451
5452fi
5453done
5454
5455fi
5456
5457
5458if test -z "$with_ldap_lib"; then
5459  with_ldap_lib=auto
5460fi
5461
5462if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = umich -o $with_ldap_lib = openldap \); then
5463
5464echo "$as_me:$LINENO: checking for main in -llber" >&5
5465echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6
5466if test "${ac_cv_lib_lber_main+set}" = set; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  ac_check_lib_save_LIBS=$LIBS
5470LIBS="-llber  $LIBS"
5471cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h.  */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h.  */
5477
5478
5479int
5480main ()
5481{
5482main ();
5483  ;
5484  return 0;
5485}
5486_ACEOF
5487rm -f conftest.$ac_objext conftest$ac_exeext
5488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5489  (eval $ac_link) 2>conftest.er1
5490  ac_status=$?
5491  grep -v '^ *+' conftest.er1 >conftest.err
5492  rm -f conftest.er1
5493  cat conftest.err >&5
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } &&
5496	 { ac_try='test -z "$ac_c_werror_flag"
5497			 || test ! -s conftest.err'
5498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }; } &&
5503	 { ac_try='test -s conftest$ac_exeext'
5504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505  (eval $ac_try) 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; }; then
5509  ac_cv_lib_lber_main=yes
5510else
5511  echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514ac_cv_lib_lber_main=no
5515fi
5516rm -f conftest.err conftest.$ac_objext \
5517      conftest$ac_exeext conftest.$ac_ext
5518LIBS=$ac_check_lib_save_LIBS
5519fi
5520echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5
5521echo "${ECHO_T}$ac_cv_lib_lber_main" >&6
5522if test $ac_cv_lib_lber_main = yes; then
5523  cat >>confdefs.h <<_ACEOF
5524#define HAVE_LIBLBER 1
5525_ACEOF
5526
5527  LIBS="-llber $LIBS"
5528
5529fi
5530
5531  echo "$as_me:$LINENO: checking for main in -lldap" >&5
5532echo $ECHO_N "checking for main in -lldap... $ECHO_C" >&6
5533if test "${ac_cv_lib_ldap_main+set}" = set; then
5534  echo $ECHO_N "(cached) $ECHO_C" >&6
5535else
5536  ac_check_lib_save_LIBS=$LIBS
5537LIBS="-lldap  $LIBS"
5538cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h.  */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h.  */
5544
5545
5546int
5547main ()
5548{
5549main ();
5550  ;
5551  return 0;
5552}
5553_ACEOF
5554rm -f conftest.$ac_objext conftest$ac_exeext
5555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5556  (eval $ac_link) 2>conftest.er1
5557  ac_status=$?
5558  grep -v '^ *+' conftest.er1 >conftest.err
5559  rm -f conftest.er1
5560  cat conftest.err >&5
5561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562  (exit $ac_status); } &&
5563	 { ac_try='test -z "$ac_c_werror_flag"
5564			 || test ! -s conftest.err'
5565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566  (eval $ac_try) 2>&5
5567  ac_status=$?
5568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569  (exit $ac_status); }; } &&
5570	 { ac_try='test -s conftest$ac_exeext'
5571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572  (eval $ac_try) 2>&5
5573  ac_status=$?
5574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575  (exit $ac_status); }; }; then
5576  ac_cv_lib_ldap_main=yes
5577else
5578  echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
5581ac_cv_lib_ldap_main=no
5582fi
5583rm -f conftest.err conftest.$ac_objext \
5584      conftest$ac_exeext conftest.$ac_ext
5585LIBS=$ac_check_lib_save_LIBS
5586fi
5587echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_main" >&5
5588echo "${ECHO_T}$ac_cv_lib_ldap_main" >&6
5589if test $ac_cv_lib_ldap_main = yes; then
5590  LIBS="-lldap $LIBS" found_ldap_lib=yes
5591fi
5592
5593fi
5594
5595if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape5 \); then
5596  echo "$as_me:$LINENO: checking for main in -lldap50" >&5
5597echo $ECHO_N "checking for main in -lldap50... $ECHO_C" >&6
5598if test "${ac_cv_lib_ldap50_main+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601  ac_check_lib_save_LIBS=$LIBS
5602LIBS="-lldap50 -lpthread $LIBS"
5603cat >conftest.$ac_ext <<_ACEOF
5604/* confdefs.h.  */
5605_ACEOF
5606cat confdefs.h >>conftest.$ac_ext
5607cat >>conftest.$ac_ext <<_ACEOF
5608/* end confdefs.h.  */
5609
5610
5611int
5612main ()
5613{
5614main ();
5615  ;
5616  return 0;
5617}
5618_ACEOF
5619rm -f conftest.$ac_objext conftest$ac_exeext
5620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5621  (eval $ac_link) 2>conftest.er1
5622  ac_status=$?
5623  grep -v '^ *+' conftest.er1 >conftest.err
5624  rm -f conftest.er1
5625  cat conftest.err >&5
5626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627  (exit $ac_status); } &&
5628	 { ac_try='test -z "$ac_c_werror_flag"
5629			 || test ! -s conftest.err'
5630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631  (eval $ac_try) 2>&5
5632  ac_status=$?
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); }; } &&
5635	 { ac_try='test -s conftest$ac_exeext'
5636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637  (eval $ac_try) 2>&5
5638  ac_status=$?
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); }; }; then
5641  ac_cv_lib_ldap50_main=yes
5642else
5643  echo "$as_me: failed program was:" >&5
5644sed 's/^/| /' conftest.$ac_ext >&5
5645
5646ac_cv_lib_ldap50_main=no
5647fi
5648rm -f conftest.err conftest.$ac_objext \
5649      conftest$ac_exeext conftest.$ac_ext
5650LIBS=$ac_check_lib_save_LIBS
5651fi
5652echo "$as_me:$LINENO: result: $ac_cv_lib_ldap50_main" >&5
5653echo "${ECHO_T}$ac_cv_lib_ldap50_main" >&6
5654if test $ac_cv_lib_ldap50_main = yes; then
5655  LIBS="-lldap50 -lssldap50 -lssl3 -lnss3 -lnspr4 -lprldap50 -lplc4 -lplds4 $LIBS" found_ldap_lib=yes need_pthread=yes
5656fi
5657
5658fi
5659if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape4 \); then
5660  echo "$as_me:$LINENO: checking for main in -lldapssl41" >&5
5661echo $ECHO_N "checking for main in -lldapssl41... $ECHO_C" >&6
5662if test "${ac_cv_lib_ldapssl41_main+set}" = set; then
5663  echo $ECHO_N "(cached) $ECHO_C" >&6
5664else
5665  ac_check_lib_save_LIBS=$LIBS
5666LIBS="-lldapssl41 -lpthread $LIBS"
5667cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h.  */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h.  */
5673
5674
5675int
5676main ()
5677{
5678main ();
5679  ;
5680  return 0;
5681}
5682_ACEOF
5683rm -f conftest.$ac_objext conftest$ac_exeext
5684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685  (eval $ac_link) 2>conftest.er1
5686  ac_status=$?
5687  grep -v '^ *+' conftest.er1 >conftest.err
5688  rm -f conftest.er1
5689  cat conftest.err >&5
5690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691  (exit $ac_status); } &&
5692	 { ac_try='test -z "$ac_c_werror_flag"
5693			 || test ! -s conftest.err'
5694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695  (eval $ac_try) 2>&5
5696  ac_status=$?
5697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698  (exit $ac_status); }; } &&
5699	 { ac_try='test -s conftest$ac_exeext'
5700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701  (eval $ac_try) 2>&5
5702  ac_status=$?
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); }; }; then
5705  ac_cv_lib_ldapssl41_main=yes
5706else
5707  echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710ac_cv_lib_ldapssl41_main=no
5711fi
5712rm -f conftest.err conftest.$ac_objext \
5713      conftest$ac_exeext conftest.$ac_ext
5714LIBS=$ac_check_lib_save_LIBS
5715fi
5716echo "$as_me:$LINENO: result: $ac_cv_lib_ldapssl41_main" >&5
5717echo "${ECHO_T}$ac_cv_lib_ldapssl41_main" >&6
5718if test $ac_cv_lib_ldapssl41_main = yes; then
5719  LIBS="-lldapssl41 -lplc3 -lplds3 -lnspr3 $LIBS" found_ldap_lib=yes need_pthread=yes
5720fi
5721
5722  if test -z "$found_ldap_lib"; then
5723    echo "$as_me:$LINENO: checking for main in -lldapssl40" >&5
5724echo $ECHO_N "checking for main in -lldapssl40... $ECHO_C" >&6
5725if test "${ac_cv_lib_ldapssl40_main+set}" = set; then
5726  echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728  ac_check_lib_save_LIBS=$LIBS
5729LIBS="-lldapssl40 -lpthread $LIBS"
5730cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h.  */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h.  */
5736
5737
5738int
5739main ()
5740{
5741main ();
5742  ;
5743  return 0;
5744}
5745_ACEOF
5746rm -f conftest.$ac_objext conftest$ac_exeext
5747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748  (eval $ac_link) 2>conftest.er1
5749  ac_status=$?
5750  grep -v '^ *+' conftest.er1 >conftest.err
5751  rm -f conftest.er1
5752  cat conftest.err >&5
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); } &&
5755	 { ac_try='test -z "$ac_c_werror_flag"
5756			 || test ! -s conftest.err'
5757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758  (eval $ac_try) 2>&5
5759  ac_status=$?
5760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761  (exit $ac_status); }; } &&
5762	 { ac_try='test -s conftest$ac_exeext'
5763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764  (eval $ac_try) 2>&5
5765  ac_status=$?
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); }; }; then
5768  ac_cv_lib_ldapssl40_main=yes
5769else
5770  echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
5773ac_cv_lib_ldapssl40_main=no
5774fi
5775rm -f conftest.err conftest.$ac_objext \
5776      conftest$ac_exeext conftest.$ac_ext
5777LIBS=$ac_check_lib_save_LIBS
5778fi
5779echo "$as_me:$LINENO: result: $ac_cv_lib_ldapssl40_main" >&5
5780echo "${ECHO_T}$ac_cv_lib_ldapssl40_main" >&6
5781if test $ac_cv_lib_ldapssl40_main = yes; then
5782  LIBS="-lldapssl40 $LIBS" found_ldap_lib=yes need_pthread=yes
5783fi
5784
5785  fi
5786  if test -z "$found_ldap_lib"; then
5787    echo "$as_me:$LINENO: checking for main in -lldap41" >&5
5788echo $ECHO_N "checking for main in -lldap41... $ECHO_C" >&6
5789if test "${ac_cv_lib_ldap41_main+set}" = set; then
5790  echo $ECHO_N "(cached) $ECHO_C" >&6
5791else
5792  ac_check_lib_save_LIBS=$LIBS
5793LIBS="-lldap41  $LIBS"
5794cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h.  */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h.  */
5800
5801
5802int
5803main ()
5804{
5805main ();
5806  ;
5807  return 0;
5808}
5809_ACEOF
5810rm -f conftest.$ac_objext conftest$ac_exeext
5811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812  (eval $ac_link) 2>conftest.er1
5813  ac_status=$?
5814  grep -v '^ *+' conftest.er1 >conftest.err
5815  rm -f conftest.er1
5816  cat conftest.err >&5
5817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818  (exit $ac_status); } &&
5819	 { ac_try='test -z "$ac_c_werror_flag"
5820			 || test ! -s conftest.err'
5821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822  (eval $ac_try) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }; } &&
5826	 { ac_try='test -s conftest$ac_exeext'
5827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828  (eval $ac_try) 2>&5
5829  ac_status=$?
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); }; }; then
5832  ac_cv_lib_ldap41_main=yes
5833else
5834  echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837ac_cv_lib_ldap41_main=no
5838fi
5839rm -f conftest.err conftest.$ac_objext \
5840      conftest$ac_exeext conftest.$ac_ext
5841LIBS=$ac_check_lib_save_LIBS
5842fi
5843echo "$as_me:$LINENO: result: $ac_cv_lib_ldap41_main" >&5
5844echo "${ECHO_T}$ac_cv_lib_ldap41_main" >&6
5845if test $ac_cv_lib_ldap41_main = yes; then
5846  LIBS="-lldap41 $LIBS" found_ldap_lib=yes need_pthread=no
5847fi
5848
5849  fi
5850  if test -z "$found_ldap_lib"; then
5851    echo "$as_me:$LINENO: checking for main in -lldap40" >&5
5852echo $ECHO_N "checking for main in -lldap40... $ECHO_C" >&6
5853if test "${ac_cv_lib_ldap40_main+set}" = set; then
5854  echo $ECHO_N "(cached) $ECHO_C" >&6
5855else
5856  ac_check_lib_save_LIBS=$LIBS
5857LIBS="-lldap40  $LIBS"
5858cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h.  */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h.  */
5864
5865
5866int
5867main ()
5868{
5869main ();
5870  ;
5871  return 0;
5872}
5873_ACEOF
5874rm -f conftest.$ac_objext conftest$ac_exeext
5875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5876  (eval $ac_link) 2>conftest.er1
5877  ac_status=$?
5878  grep -v '^ *+' conftest.er1 >conftest.err
5879  rm -f conftest.er1
5880  cat conftest.err >&5
5881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882  (exit $ac_status); } &&
5883	 { ac_try='test -z "$ac_c_werror_flag"
5884			 || test ! -s conftest.err'
5885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886  (eval $ac_try) 2>&5
5887  ac_status=$?
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); }; } &&
5890	 { ac_try='test -s conftest$ac_exeext'
5891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892  (eval $ac_try) 2>&5
5893  ac_status=$?
5894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895  (exit $ac_status); }; }; then
5896  ac_cv_lib_ldap40_main=yes
5897else
5898  echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901ac_cv_lib_ldap40_main=no
5902fi
5903rm -f conftest.err conftest.$ac_objext \
5904      conftest$ac_exeext conftest.$ac_ext
5905LIBS=$ac_check_lib_save_LIBS
5906fi
5907echo "$as_me:$LINENO: result: $ac_cv_lib_ldap40_main" >&5
5908echo "${ECHO_T}$ac_cv_lib_ldap40_main" >&6
5909if test $ac_cv_lib_ldap40_main = yes; then
5910  LIBS="-lldap40 $LIBS" found_ldap_lib=yes need_pthread=no
5911fi
5912
5913  fi
5914fi
5915if test -z "$found_ldap_lib" -a \( $with_ldap_lib = auto -o $with_ldap_lib = netscape3 \); then
5916  echo "$as_me:$LINENO: checking for main in -lldapssl30" >&5
5917echo $ECHO_N "checking for main in -lldapssl30... $ECHO_C" >&6
5918if test "${ac_cv_lib_ldapssl30_main+set}" = set; then
5919  echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921  ac_check_lib_save_LIBS=$LIBS
5922LIBS="-lldapssl30 -lpthread $LIBS"
5923cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h.  */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h.  */
5929
5930
5931int
5932main ()
5933{
5934main ();
5935  ;
5936  return 0;
5937}
5938_ACEOF
5939rm -f conftest.$ac_objext conftest$ac_exeext
5940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941  (eval $ac_link) 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } &&
5948	 { ac_try='test -z "$ac_c_werror_flag"
5949			 || test ! -s conftest.err'
5950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951  (eval $ac_try) 2>&5
5952  ac_status=$?
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); }; } &&
5955	 { ac_try='test -s conftest$ac_exeext'
5956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957  (eval $ac_try) 2>&5
5958  ac_status=$?
5959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960  (exit $ac_status); }; }; then
5961  ac_cv_lib_ldapssl30_main=yes
5962else
5963  echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966ac_cv_lib_ldapssl30_main=no
5967fi
5968rm -f conftest.err conftest.$ac_objext \
5969      conftest$ac_exeext conftest.$ac_ext
5970LIBS=$ac_check_lib_save_LIBS
5971fi
5972echo "$as_me:$LINENO: result: $ac_cv_lib_ldapssl30_main" >&5
5973echo "${ECHO_T}$ac_cv_lib_ldapssl30_main" >&6
5974if test $ac_cv_lib_ldapssl30_main = yes; then
5975  LIBS="-lldapssl30 $LIBS" found_ldap_lib=yes need_pthread=yes
5976fi
5977
5978fi
5979
5980if test -z "$found_ldap_lib"; then
5981  { { echo "$as_me:$LINENO: error: could not locate a valid LDAP library" >&5
5982echo "$as_me: error: could not locate a valid LDAP library" >&2;}
5983   { (exit 1); exit 1; }; }
5984fi
5985
5986if test "$need_pthread" = "yes"; then
5987
5988echo "$as_me:$LINENO: checking for main in -lpthread" >&5
5989echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
5990if test "${ac_cv_lib_pthread_main+set}" = set; then
5991  echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993  ac_check_lib_save_LIBS=$LIBS
5994LIBS="-lpthread  $LIBS"
5995cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h.  */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
6000/* end confdefs.h.  */
6001
6002
6003int
6004main ()
6005{
6006main ();
6007  ;
6008  return 0;
6009}
6010_ACEOF
6011rm -f conftest.$ac_objext conftest$ac_exeext
6012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013  (eval $ac_link) 2>conftest.er1
6014  ac_status=$?
6015  grep -v '^ *+' conftest.er1 >conftest.err
6016  rm -f conftest.er1
6017  cat conftest.err >&5
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); } &&
6020	 { ac_try='test -z "$ac_c_werror_flag"
6021			 || test ! -s conftest.err'
6022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023  (eval $ac_try) 2>&5
6024  ac_status=$?
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); }; } &&
6027	 { ac_try='test -s conftest$ac_exeext'
6028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029  (eval $ac_try) 2>&5
6030  ac_status=$?
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); }; }; then
6033  ac_cv_lib_pthread_main=yes
6034else
6035  echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038ac_cv_lib_pthread_main=no
6039fi
6040rm -f conftest.err conftest.$ac_objext \
6041      conftest$ac_exeext conftest.$ac_ext
6042LIBS=$ac_check_lib_save_LIBS
6043fi
6044echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
6045echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
6046if test $ac_cv_lib_pthread_main = yes; then
6047  cat >>confdefs.h <<_ACEOF
6048#define HAVE_LIBPTHREAD 1
6049_ACEOF
6050
6051  LIBS="-lpthread $LIBS"
6052
6053fi
6054
6055fi
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065for ac_func in ldap_init ldap_get_lderrno ldap_set_lderrno ldap_parse_result ldap_memfree ldap_controls_free ldap_set_option ldap_get_option
6066do
6067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6068echo "$as_me:$LINENO: checking for $ac_func" >&5
6069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6070if eval "test \"\${$as_ac_var+set}\" = set"; then
6071  echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073  cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h.  */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h.  */
6079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6080   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6081#define $ac_func innocuous_$ac_func
6082
6083/* System header to define __stub macros and hopefully few prototypes,
6084    which can conflict with char $ac_func (); below.
6085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086    <limits.h> exists even on freestanding compilers.  */
6087
6088#ifdef __STDC__
6089# include <limits.h>
6090#else
6091# include <assert.h>
6092#endif
6093
6094#undef $ac_func
6095
6096/* Override any gcc2 internal prototype to avoid an error.  */
6097#ifdef __cplusplus
6098extern "C"
6099{
6100#endif
6101/* We use char because int might match the return type of a gcc2
6102   builtin and then its argument prototype would still apply.  */
6103char $ac_func ();
6104/* The GNU C library defines this for functions which it implements
6105    to always fail with ENOSYS.  Some functions are actually named
6106    something starting with __ and the normal name is an alias.  */
6107#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6108choke me
6109#else
6110char (*f) () = $ac_func;
6111#endif
6112#ifdef __cplusplus
6113}
6114#endif
6115
6116int
6117main ()
6118{
6119return f != $ac_func;
6120  ;
6121  return 0;
6122}
6123_ACEOF
6124rm -f conftest.$ac_objext conftest$ac_exeext
6125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126  (eval $ac_link) 2>conftest.er1
6127  ac_status=$?
6128  grep -v '^ *+' conftest.er1 >conftest.err
6129  rm -f conftest.er1
6130  cat conftest.err >&5
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); } &&
6133	 { ac_try='test -z "$ac_c_werror_flag"
6134			 || test ! -s conftest.err'
6135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136  (eval $ac_try) 2>&5
6137  ac_status=$?
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }; } &&
6140	 { ac_try='test -s conftest$ac_exeext'
6141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142  (eval $ac_try) 2>&5
6143  ac_status=$?
6144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145  (exit $ac_status); }; }; then
6146  eval "$as_ac_var=yes"
6147else
6148  echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151eval "$as_ac_var=no"
6152fi
6153rm -f conftest.err conftest.$ac_objext \
6154      conftest$ac_exeext conftest.$ac_ext
6155fi
6156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6157echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6158if test `eval echo '${'$as_ac_var'}'` = yes; then
6159  cat >>confdefs.h <<_ACEOF
6160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6161_ACEOF
6162
6163fi
6164done
6165
6166if test "$enable_ssl" \!= "no"; then
6167
6168
6169
6170for ac_func in ldapssl_init ldap_start_tls_s ldap_pvt_tls_set_option
6171do
6172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6173echo "$as_me:$LINENO: checking for $ac_func" >&5
6174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6175if eval "test \"\${$as_ac_var+set}\" = set"; then
6176  echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178  cat >conftest.$ac_ext <<_ACEOF
6179/* confdefs.h.  */
6180_ACEOF
6181cat confdefs.h >>conftest.$ac_ext
6182cat >>conftest.$ac_ext <<_ACEOF
6183/* end confdefs.h.  */
6184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6185   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6186#define $ac_func innocuous_$ac_func
6187
6188/* System header to define __stub macros and hopefully few prototypes,
6189    which can conflict with char $ac_func (); below.
6190    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6191    <limits.h> exists even on freestanding compilers.  */
6192
6193#ifdef __STDC__
6194# include <limits.h>
6195#else
6196# include <assert.h>
6197#endif
6198
6199#undef $ac_func
6200
6201/* Override any gcc2 internal prototype to avoid an error.  */
6202#ifdef __cplusplus
6203extern "C"
6204{
6205#endif
6206/* We use char because int might match the return type of a gcc2
6207   builtin and then its argument prototype would still apply.  */
6208char $ac_func ();
6209/* The GNU C library defines this for functions which it implements
6210    to always fail with ENOSYS.  Some functions are actually named
6211    something starting with __ and the normal name is an alias.  */
6212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6213choke me
6214#else
6215char (*f) () = $ac_func;
6216#endif
6217#ifdef __cplusplus
6218}
6219#endif
6220
6221int
6222main ()
6223{
6224return f != $ac_func;
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229rm -f conftest.$ac_objext conftest$ac_exeext
6230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231  (eval $ac_link) 2>conftest.er1
6232  ac_status=$?
6233  grep -v '^ *+' conftest.er1 >conftest.err
6234  rm -f conftest.er1
6235  cat conftest.err >&5
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); } &&
6238	 { ac_try='test -z "$ac_c_werror_flag"
6239			 || test ! -s conftest.err'
6240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241  (eval $ac_try) 2>&5
6242  ac_status=$?
6243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244  (exit $ac_status); }; } &&
6245	 { ac_try='test -s conftest$ac_exeext'
6246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247  (eval $ac_try) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }; }; then
6251  eval "$as_ac_var=yes"
6252else
6253  echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256eval "$as_ac_var=no"
6257fi
6258rm -f conftest.err conftest.$ac_objext \
6259      conftest$ac_exeext conftest.$ac_ext
6260fi
6261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6262echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6263if test `eval echo '${'$as_ac_var'}'` = yes; then
6264  cat >>confdefs.h <<_ACEOF
6265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6266_ACEOF
6267
6268fi
6269done
6270
6271fi
6272
6273for ac_func in ldap_initialize
6274do
6275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6276echo "$as_me:$LINENO: checking for $ac_func" >&5
6277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6278if eval "test \"\${$as_ac_var+set}\" = set"; then
6279  echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281  cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h.  */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h.  */
6287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6288   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6289#define $ac_func innocuous_$ac_func
6290
6291/* System header to define __stub macros and hopefully few prototypes,
6292    which can conflict with char $ac_func (); below.
6293    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6294    <limits.h> exists even on freestanding compilers.  */
6295
6296#ifdef __STDC__
6297# include <limits.h>
6298#else
6299# include <assert.h>
6300#endif
6301
6302#undef $ac_func
6303
6304/* Override any gcc2 internal prototype to avoid an error.  */
6305#ifdef __cplusplus
6306extern "C"
6307{
6308#endif
6309/* We use char because int might match the return type of a gcc2
6310   builtin and then its argument prototype would still apply.  */
6311char $ac_func ();
6312/* The GNU C library defines this for functions which it implements
6313    to always fail with ENOSYS.  Some functions are actually named
6314    something starting with __ and the normal name is an alias.  */
6315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6316choke me
6317#else
6318char (*f) () = $ac_func;
6319#endif
6320#ifdef __cplusplus
6321}
6322#endif
6323
6324int
6325main ()
6326{
6327return f != $ac_func;
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332rm -f conftest.$ac_objext conftest$ac_exeext
6333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334  (eval $ac_link) 2>conftest.er1
6335  ac_status=$?
6336  grep -v '^ *+' conftest.er1 >conftest.err
6337  rm -f conftest.er1
6338  cat conftest.err >&5
6339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340  (exit $ac_status); } &&
6341	 { ac_try='test -z "$ac_c_werror_flag"
6342			 || test ! -s conftest.err'
6343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344  (eval $ac_try) 2>&5
6345  ac_status=$?
6346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347  (exit $ac_status); }; } &&
6348	 { ac_try='test -s conftest$ac_exeext'
6349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350  (eval $ac_try) 2>&5
6351  ac_status=$?
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); }; }; then
6354  eval "$as_ac_var=yes"
6355else
6356  echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359eval "$as_ac_var=no"
6360fi
6361rm -f conftest.err conftest.$ac_objext \
6362      conftest$ac_exeext conftest.$ac_ext
6363fi
6364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6366if test `eval echo '${'$as_ac_var'}'` = yes; then
6367  cat >>confdefs.h <<_ACEOF
6368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6369_ACEOF
6370
6371fi
6372done
6373
6374
6375
6376for ac_func in ldap_sasl_bind ldap_sasl_interactive_bind_s
6377do
6378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6379echo "$as_me:$LINENO: checking for $ac_func" >&5
6380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6381if eval "test \"\${$as_ac_var+set}\" = set"; then
6382  echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384  cat >conftest.$ac_ext <<_ACEOF
6385/* confdefs.h.  */
6386_ACEOF
6387cat confdefs.h >>conftest.$ac_ext
6388cat >>conftest.$ac_ext <<_ACEOF
6389/* end confdefs.h.  */
6390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6391   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6392#define $ac_func innocuous_$ac_func
6393
6394/* System header to define __stub macros and hopefully few prototypes,
6395    which can conflict with char $ac_func (); below.
6396    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6397    <limits.h> exists even on freestanding compilers.  */
6398
6399#ifdef __STDC__
6400# include <limits.h>
6401#else
6402# include <assert.h>
6403#endif
6404
6405#undef $ac_func
6406
6407/* Override any gcc2 internal prototype to avoid an error.  */
6408#ifdef __cplusplus
6409extern "C"
6410{
6411#endif
6412/* We use char because int might match the return type of a gcc2
6413   builtin and then its argument prototype would still apply.  */
6414char $ac_func ();
6415/* The GNU C library defines this for functions which it implements
6416    to always fail with ENOSYS.  Some functions are actually named
6417    something starting with __ and the normal name is an alias.  */
6418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6419choke me
6420#else
6421char (*f) () = $ac_func;
6422#endif
6423#ifdef __cplusplus
6424}
6425#endif
6426
6427int
6428main ()
6429{
6430return f != $ac_func;
6431  ;
6432  return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext conftest$ac_exeext
6436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437  (eval $ac_link) 2>conftest.er1
6438  ac_status=$?
6439  grep -v '^ *+' conftest.er1 >conftest.err
6440  rm -f conftest.er1
6441  cat conftest.err >&5
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); } &&
6444	 { ac_try='test -z "$ac_c_werror_flag"
6445			 || test ! -s conftest.err'
6446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447  (eval $ac_try) 2>&5
6448  ac_status=$?
6449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450  (exit $ac_status); }; } &&
6451	 { ac_try='test -s conftest$ac_exeext'
6452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453  (eval $ac_try) 2>&5
6454  ac_status=$?
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); }; }; then
6457  eval "$as_ac_var=yes"
6458else
6459  echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
6461
6462eval "$as_ac_var=no"
6463fi
6464rm -f conftest.err conftest.$ac_objext \
6465      conftest$ac_exeext conftest.$ac_ext
6466fi
6467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6468echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6469if test `eval echo '${'$as_ac_var'}'` = yes; then
6470  cat >>confdefs.h <<_ACEOF
6471#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6472_ACEOF
6473
6474fi
6475done
6476
6477
6478for ac_func in gethostbyname_r
6479do
6480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6481echo "$as_me:$LINENO: checking for $ac_func" >&5
6482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6483if eval "test \"\${$as_ac_var+set}\" = set"; then
6484  echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486  cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h.  */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
6491/* end confdefs.h.  */
6492/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6493   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6494#define $ac_func innocuous_$ac_func
6495
6496/* System header to define __stub macros and hopefully few prototypes,
6497    which can conflict with char $ac_func (); below.
6498    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6499    <limits.h> exists even on freestanding compilers.  */
6500
6501#ifdef __STDC__
6502# include <limits.h>
6503#else
6504# include <assert.h>
6505#endif
6506
6507#undef $ac_func
6508
6509/* Override any gcc2 internal prototype to avoid an error.  */
6510#ifdef __cplusplus
6511extern "C"
6512{
6513#endif
6514/* We use char because int might match the return type of a gcc2
6515   builtin and then its argument prototype would still apply.  */
6516char $ac_func ();
6517/* The GNU C library defines this for functions which it implements
6518    to always fail with ENOSYS.  Some functions are actually named
6519    something starting with __ and the normal name is an alias.  */
6520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6521choke me
6522#else
6523char (*f) () = $ac_func;
6524#endif
6525#ifdef __cplusplus
6526}
6527#endif
6528
6529int
6530main ()
6531{
6532return f != $ac_func;
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537rm -f conftest.$ac_objext conftest$ac_exeext
6538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6539  (eval $ac_link) 2>conftest.er1
6540  ac_status=$?
6541  grep -v '^ *+' conftest.er1 >conftest.err
6542  rm -f conftest.er1
6543  cat conftest.err >&5
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); } &&
6546	 { ac_try='test -z "$ac_c_werror_flag"
6547			 || test ! -s conftest.err'
6548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549  (eval $ac_try) 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); }; } &&
6553	 { ac_try='test -s conftest$ac_exeext'
6554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555  (eval $ac_try) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; }; then
6559  eval "$as_ac_var=yes"
6560else
6561  echo "$as_me: failed program was:" >&5
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564eval "$as_ac_var=no"
6565fi
6566rm -f conftest.err conftest.$ac_objext \
6567      conftest$ac_exeext conftest.$ac_ext
6568fi
6569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6570echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6571if test `eval echo '${'$as_ac_var'}'` = yes; then
6572  cat >>confdefs.h <<_ACEOF
6573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6574_ACEOF
6575
6576fi
6577done
6578
6579
6580if test "$ac_cv_func_gethostbyname_r" = "yes"; then
6581echo "$as_me:$LINENO: checking whether gethostbyname_r takes 6 arguments" >&5
6582echo $ECHO_N "checking whether gethostbyname_r takes 6 arguments... $ECHO_C" >&6
6583if test "${xad_cv_gethostbyname_r_args+set}" = set; then
6584  echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586
6587cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h.  */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h.  */
6593
6594#include <netdb.h>
6595int
6596main ()
6597{
6598gethostbyname_r(0, 0, 0, 0, 0, 0);
6599  ;
6600  return 0;
6601}
6602_ACEOF
6603rm -f conftest.$ac_objext
6604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6605  (eval $ac_compile) 2>conftest.er1
6606  ac_status=$?
6607  grep -v '^ *+' conftest.er1 >conftest.err
6608  rm -f conftest.er1
6609  cat conftest.err >&5
6610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611  (exit $ac_status); } &&
6612	 { ac_try='test -z "$ac_c_werror_flag"
6613			 || test ! -s conftest.err'
6614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615  (eval $ac_try) 2>&5
6616  ac_status=$?
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); }; } &&
6619	 { ac_try='test -s conftest.$ac_objext'
6620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621  (eval $ac_try) 2>&5
6622  ac_status=$?
6623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624  (exit $ac_status); }; }; then
6625  xad_cv_gethostbyname_r_args=6
6626else
6627  echo "$as_me: failed program was:" >&5
6628sed 's/^/| /' conftest.$ac_ext >&5
6629
6630
6631	cat >conftest.$ac_ext <<_ACEOF
6632/* confdefs.h.  */
6633_ACEOF
6634cat confdefs.h >>conftest.$ac_ext
6635cat >>conftest.$ac_ext <<_ACEOF
6636/* end confdefs.h.  */
6637
6638		#include <netdb.h>
6639int
6640main ()
6641{
6642gethostbyname_r(0, 0, 0, 0, 0);
6643  ;
6644  return 0;
6645}
6646_ACEOF
6647rm -f conftest.$ac_objext
6648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649  (eval $ac_compile) 2>conftest.er1
6650  ac_status=$?
6651  grep -v '^ *+' conftest.er1 >conftest.err
6652  rm -f conftest.er1
6653  cat conftest.err >&5
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); } &&
6656	 { ac_try='test -z "$ac_c_werror_flag"
6657			 || test ! -s conftest.err'
6658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659  (eval $ac_try) 2>&5
6660  ac_status=$?
6661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662  (exit $ac_status); }; } &&
6663	 { ac_try='test -s conftest.$ac_objext'
6664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665  (eval $ac_try) 2>&5
6666  ac_status=$?
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); }; }; then
6669  xad_cv_gethostbyname_r_args=5
6670else
6671  echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674xad_cv_gethostbyname_r_args=3
6675
6676fi
6677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6678fi
6679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680fi
6681echo "$as_me:$LINENO: result: $xad_cv_gethostbyname_r_args" >&5
6682echo "${ECHO_T}$xad_cv_gethostbyname_r_args" >&6
6683cat >>confdefs.h <<_ACEOF
6684#define GETHOSTBYNAME_R_ARGS $xad_cv_gethostbyname_r_args
6685_ACEOF
6686
6687fi
6688
6689
6690for ac_func in ldap_set_rebind_proc
6691do
6692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6693echo "$as_me:$LINENO: checking for $ac_func" >&5
6694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6695if eval "test \"\${$as_ac_var+set}\" = set"; then
6696  echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698  cat >conftest.$ac_ext <<_ACEOF
6699/* confdefs.h.  */
6700_ACEOF
6701cat confdefs.h >>conftest.$ac_ext
6702cat >>conftest.$ac_ext <<_ACEOF
6703/* end confdefs.h.  */
6704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6705   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6706#define $ac_func innocuous_$ac_func
6707
6708/* System header to define __stub macros and hopefully few prototypes,
6709    which can conflict with char $ac_func (); below.
6710    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6711    <limits.h> exists even on freestanding compilers.  */
6712
6713#ifdef __STDC__
6714# include <limits.h>
6715#else
6716# include <assert.h>
6717#endif
6718
6719#undef $ac_func
6720
6721/* Override any gcc2 internal prototype to avoid an error.  */
6722#ifdef __cplusplus
6723extern "C"
6724{
6725#endif
6726/* We use char because int might match the return type of a gcc2
6727   builtin and then its argument prototype would still apply.  */
6728char $ac_func ();
6729/* The GNU C library defines this for functions which it implements
6730    to always fail with ENOSYS.  Some functions are actually named
6731    something starting with __ and the normal name is an alias.  */
6732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6733choke me
6734#else
6735char (*f) () = $ac_func;
6736#endif
6737#ifdef __cplusplus
6738}
6739#endif
6740
6741int
6742main ()
6743{
6744return f != $ac_func;
6745  ;
6746  return 0;
6747}
6748_ACEOF
6749rm -f conftest.$ac_objext conftest$ac_exeext
6750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751  (eval $ac_link) 2>conftest.er1
6752  ac_status=$?
6753  grep -v '^ *+' conftest.er1 >conftest.err
6754  rm -f conftest.er1
6755  cat conftest.err >&5
6756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757  (exit $ac_status); } &&
6758	 { ac_try='test -z "$ac_c_werror_flag"
6759			 || test ! -s conftest.err'
6760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761  (eval $ac_try) 2>&5
6762  ac_status=$?
6763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764  (exit $ac_status); }; } &&
6765	 { ac_try='test -s conftest$ac_exeext'
6766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767  (eval $ac_try) 2>&5
6768  ac_status=$?
6769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770  (exit $ac_status); }; }; then
6771  eval "$as_ac_var=yes"
6772else
6773  echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776eval "$as_ac_var=no"
6777fi
6778rm -f conftest.err conftest.$ac_objext \
6779      conftest$ac_exeext conftest.$ac_ext
6780fi
6781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6782echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6783if test `eval echo '${'$as_ac_var'}'` = yes; then
6784  cat >>confdefs.h <<_ACEOF
6785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6786_ACEOF
6787
6788fi
6789done
6790
6791echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
6792echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
6793if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
6794  echo $ECHO_N "(cached) $ECHO_C" >&6
6795else
6796
6797cat >conftest.$ac_ext <<_ACEOF
6798/* confdefs.h.  */
6799_ACEOF
6800cat confdefs.h >>conftest.$ac_ext
6801cat >>conftest.$ac_ext <<_ACEOF
6802/* end confdefs.h.  */
6803
6804#include <lber.h>
6805#include <ldap.h>
6806int
6807main ()
6808{
6809ldap_set_rebind_proc(0, 0, 0);
6810  ;
6811  return 0;
6812}
6813_ACEOF
6814rm -f conftest.$ac_objext
6815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6816  (eval $ac_compile) 2>conftest.er1
6817  ac_status=$?
6818  grep -v '^ *+' conftest.er1 >conftest.err
6819  rm -f conftest.er1
6820  cat conftest.err >&5
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); } &&
6823	 { ac_try='test -z "$ac_c_werror_flag"
6824			 || test ! -s conftest.err'
6825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826  (eval $ac_try) 2>&5
6827  ac_status=$?
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); }; } &&
6830	 { ac_try='test -s conftest.$ac_objext'
6831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832  (eval $ac_try) 2>&5
6833  ac_status=$?
6834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835  (exit $ac_status); }; }; then
6836  pam_ldap_cv_ldap_set_rebind_proc=3
6837else
6838  echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841pam_ldap_cv_ldap_set_rebind_proc=2
6842fi
6843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
6846echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
6847cat >>confdefs.h <<_ACEOF
6848#define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
6849_ACEOF
6850
6851
6852          ac_config_files="$ac_config_files Makefile"
6853cat >confcache <<\_ACEOF
6854# This file is a shell script that caches the results of configure
6855# tests run on this system so they can be shared between configure
6856# scripts and configure runs, see configure's option --config-cache.
6857# It is not useful on other systems.  If it contains results you don't
6858# want to keep, you may remove or edit it.
6859#
6860# config.status only pays attention to the cache file if you give it
6861# the --recheck option to rerun configure.
6862#
6863# `ac_cv_env_foo' variables (set or unset) will be overridden when
6864# loading this file, other *unset* `ac_cv_foo' will be assigned the
6865# following values.
6866
6867_ACEOF
6868
6869# The following way of writing the cache mishandles newlines in values,
6870# but we know of no workaround that is simple, portable, and efficient.
6871# So, don't put newlines in cache variables' values.
6872# Ultrix sh set writes to stderr and can't be redirected directly,
6873# and sets the high bit in the cache file unless we assign to the vars.
6874{
6875  (set) 2>&1 |
6876    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6877    *ac_space=\ *)
6878      # `set' does not quote correctly, so add quotes (double-quote
6879      # substitution turns \\\\ into \\, and sed turns \\ into \).
6880      sed -n \
6881	"s/'/'\\\\''/g;
6882	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6883      ;;
6884    *)
6885      # `set' quotes correctly as required by POSIX, so do not add quotes.
6886      sed -n \
6887	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6888      ;;
6889    esac;
6890} |
6891  sed '
6892     t clear
6893     : clear
6894     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6895     t end
6896     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6897     : end' >>confcache
6898if diff $cache_file confcache >/dev/null 2>&1; then :; else
6899  if test -w $cache_file; then
6900    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6901    cat confcache >$cache_file
6902  else
6903    echo "not updating unwritable cache $cache_file"
6904  fi
6905fi
6906rm -f confcache
6907
6908test "x$prefix" = xNONE && prefix=$ac_default_prefix
6909# Let make expand exec_prefix.
6910test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6911
6912# VPATH may cause trouble with some makes, so we remove $(srcdir),
6913# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6914# trailing colons and then remove the whole line if VPATH becomes empty
6915# (actually we leave an empty line to preserve line numbers).
6916if test "x$srcdir" = x.; then
6917  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6918s/:*\$(srcdir):*/:/;
6919s/:*\${srcdir}:*/:/;
6920s/:*@srcdir@:*/:/;
6921s/^\([^=]*=[	 ]*\):*/\1/;
6922s/:*$//;
6923s/^[^=]*=[	 ]*$//;
6924}'
6925fi
6926
6927DEFS=-DHAVE_CONFIG_H
6928
6929ac_libobjs=
6930ac_ltlibobjs=
6931for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6932  # 1. Remove the extension, and $U if already installed.
6933  ac_i=`echo "$ac_i" |
6934	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6935  # 2. Add them.
6936  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6937  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6938done
6939LIBOBJS=$ac_libobjs
6940
6941LTLIBOBJS=$ac_ltlibobjs
6942
6943
6944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6945  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6946Usually this means the macro was only invoked conditionally." >&5
6947echo "$as_me: error: conditional \"AMDEP\" was never defined.
6948Usually this means the macro was only invoked conditionally." >&2;}
6949   { (exit 1); exit 1; }; }
6950fi
6951if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6952  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6953Usually this means the macro was only invoked conditionally." >&5
6954echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6955Usually this means the macro was only invoked conditionally." >&2;}
6956   { (exit 1); exit 1; }; }
6957fi
6958if test -z "${USE_NATIVE_LINKER_TRUE}" && test -z "${USE_NATIVE_LINKER_FALSE}"; then
6959  { { echo "$as_me:$LINENO: error: conditional \"USE_NATIVE_LINKER\" was never defined.
6960Usually this means the macro was only invoked conditionally." >&5
6961echo "$as_me: error: conditional \"USE_NATIVE_LINKER\" was never defined.
6962Usually this means the macro was only invoked conditionally." >&2;}
6963   { (exit 1); exit 1; }; }
6964fi
6965if test -z "${EXTENSION_SO_TRUE}" && test -z "${EXTENSION_SO_FALSE}"; then
6966  { { echo "$as_me:$LINENO: error: conditional \"EXTENSION_SO\" was never defined.
6967Usually this means the macro was only invoked conditionally." >&5
6968echo "$as_me: error: conditional \"EXTENSION_SO\" was never defined.
6969Usually this means the macro was only invoked conditionally." >&2;}
6970   { (exit 1); exit 1; }; }
6971fi
6972if test -z "${EXTENSION_1_TRUE}" && test -z "${EXTENSION_1_FALSE}"; then
6973  { { echo "$as_me:$LINENO: error: conditional \"EXTENSION_1\" was never defined.
6974Usually this means the macro was only invoked conditionally." >&5
6975echo "$as_me: error: conditional \"EXTENSION_1\" was never defined.
6976Usually this means the macro was only invoked conditionally." >&2;}
6977   { (exit 1); exit 1; }; }
6978fi
6979
6980: ${CONFIG_STATUS=./config.status}
6981ac_clean_files_save=$ac_clean_files
6982ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6983{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6984echo "$as_me: creating $CONFIG_STATUS" >&6;}
6985cat >$CONFIG_STATUS <<_ACEOF
6986#! $SHELL
6987# Generated by $as_me.
6988# Run this file to recreate the current configuration.
6989# Compiler output produced by configure, useful for debugging
6990# configure, is in config.log if it exists.
6991
6992debug=false
6993ac_cs_recheck=false
6994ac_cs_silent=false
6995SHELL=\${CONFIG_SHELL-$SHELL}
6996_ACEOF
6997
6998cat >>$CONFIG_STATUS <<\_ACEOF
6999## --------------------- ##
7000## M4sh Initialization.  ##
7001## --------------------- ##
7002
7003# Be Bourne compatible
7004if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7005  emulate sh
7006  NULLCMD=:
7007  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7008  # is contrary to our usage.  Disable this feature.
7009  alias -g '${1+"$@"}'='"$@"'
7010elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7011  set -o posix
7012fi
7013DUALCASE=1; export DUALCASE # for MKS sh
7014
7015# Support unset when possible.
7016if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7017  as_unset=unset
7018else
7019  as_unset=false
7020fi
7021
7022
7023# Work around bugs in pre-3.0 UWIN ksh.
7024$as_unset ENV MAIL MAILPATH
7025PS1='$ '
7026PS2='> '
7027PS4='+ '
7028
7029# NLS nuisances.
7030for as_var in \
7031  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7032  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7033  LC_TELEPHONE LC_TIME
7034do
7035  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7036    eval $as_var=C; export $as_var
7037  else
7038    $as_unset $as_var
7039  fi
7040done
7041
7042# Required to use basename.
7043if expr a : '\(a\)' >/dev/null 2>&1; then
7044  as_expr=expr
7045else
7046  as_expr=false
7047fi
7048
7049if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7050  as_basename=basename
7051else
7052  as_basename=false
7053fi
7054
7055
7056# Name of the executable.
7057as_me=`$as_basename "$0" ||
7058$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7059	 X"$0" : 'X\(//\)$' \| \
7060	 X"$0" : 'X\(/\)$' \| \
7061	 .     : '\(.\)' 2>/dev/null ||
7062echo X/"$0" |
7063    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7064  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
7065  	  /^X\/\(\/\).*/{ s//\1/; q; }
7066  	  s/.*/./; q'`
7067
7068
7069# PATH needs CR, and LINENO needs CR and PATH.
7070# Avoid depending upon Character Ranges.
7071as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7072as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7073as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7074as_cr_digits='0123456789'
7075as_cr_alnum=$as_cr_Letters$as_cr_digits
7076
7077# The user is always right.
7078if test "${PATH_SEPARATOR+set}" != set; then
7079  echo "#! /bin/sh" >conf$$.sh
7080  echo  "exit 0"   >>conf$$.sh
7081  chmod +x conf$$.sh
7082  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7083    PATH_SEPARATOR=';'
7084  else
7085    PATH_SEPARATOR=:
7086  fi
7087  rm -f conf$$.sh
7088fi
7089
7090
7091  as_lineno_1=$LINENO
7092  as_lineno_2=$LINENO
7093  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7094  test "x$as_lineno_1" != "x$as_lineno_2" &&
7095  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7096  # Find who we are.  Look in the path if we contain no path at all
7097  # relative or not.
7098  case $0 in
7099    *[\\/]* ) as_myself=$0 ;;
7100    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103  IFS=$as_save_IFS
7104  test -z "$as_dir" && as_dir=.
7105  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7106done
7107
7108       ;;
7109  esac
7110  # We did not find ourselves, most probably we were run as `sh COMMAND'
7111  # in which case we are not to be found in the path.
7112  if test "x$as_myself" = x; then
7113    as_myself=$0
7114  fi
7115  if test ! -f "$as_myself"; then
7116    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7117echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7118   { (exit 1); exit 1; }; }
7119  fi
7120  case $CONFIG_SHELL in
7121  '')
7122    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127  for as_base in sh bash ksh sh5; do
7128	 case $as_dir in
7129	 /*)
7130	   if ("$as_dir/$as_base" -c '
7131  as_lineno_1=$LINENO
7132  as_lineno_2=$LINENO
7133  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7134  test "x$as_lineno_1" != "x$as_lineno_2" &&
7135  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7136	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7137	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7138	     CONFIG_SHELL=$as_dir/$as_base
7139	     export CONFIG_SHELL
7140	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7141	   fi;;
7142	 esac
7143       done
7144done
7145;;
7146  esac
7147
7148  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7149  # uniformly replaced by the line number.  The first 'sed' inserts a
7150  # line-number line before each line; the second 'sed' does the real
7151  # work.  The second script uses 'N' to pair each line-number line
7152  # with the numbered line, and appends trailing '-' during
7153  # substitution so that $LINENO is not a special case at line end.
7154  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7155  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7156  sed '=' <$as_myself |
7157    sed '
7158      N
7159      s,$,-,
7160      : loop
7161      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7162      t loop
7163      s,-$,,
7164      s,^['$as_cr_digits']*\n,,
7165    ' >$as_me.lineno &&
7166  chmod +x $as_me.lineno ||
7167    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7168echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7169   { (exit 1); exit 1; }; }
7170
7171  # Don't try to exec as it changes $[0], causing all sort of problems
7172  # (the dirname of $[0] is not the place where we might find the
7173  # original and so on.  Autoconf is especially sensible to this).
7174  . ./$as_me.lineno
7175  # Exit status is that of the last command.
7176  exit
7177}
7178
7179
7180case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7181  *c*,-n*) ECHO_N= ECHO_C='
7182' ECHO_T='	' ;;
7183  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7184  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7185esac
7186
7187if expr a : '\(a\)' >/dev/null 2>&1; then
7188  as_expr=expr
7189else
7190  as_expr=false
7191fi
7192
7193rm -f conf$$ conf$$.exe conf$$.file
7194echo >conf$$.file
7195if ln -s conf$$.file conf$$ 2>/dev/null; then
7196  # We could just check for DJGPP; but this test a) works b) is more generic
7197  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7198  if test -f conf$$.exe; then
7199    # Don't use ln at all; we don't have any links
7200    as_ln_s='cp -p'
7201  else
7202    as_ln_s='ln -s'
7203  fi
7204elif ln conf$$.file conf$$ 2>/dev/null; then
7205  as_ln_s=ln
7206else
7207  as_ln_s='cp -p'
7208fi
7209rm -f conf$$ conf$$.exe conf$$.file
7210
7211if mkdir -p . 2>/dev/null; then
7212  as_mkdir_p=:
7213else
7214  test -d ./-p && rmdir ./-p
7215  as_mkdir_p=false
7216fi
7217
7218as_executable_p="test -f"
7219
7220# Sed expression to map a string onto a valid CPP name.
7221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7222
7223# Sed expression to map a string onto a valid variable name.
7224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7225
7226
7227# IFS
7228# We need space, tab and new line, in precisely that order.
7229as_nl='
7230'
7231IFS=" 	$as_nl"
7232
7233# CDPATH.
7234$as_unset CDPATH
7235
7236exec 6>&1
7237
7238# Open the log real soon, to keep \$[0] and so on meaningful, and to
7239# report actual input values of CONFIG_FILES etc. instead of their
7240# values after options handling.  Logging --version etc. is OK.
7241exec 5>>config.log
7242{
7243  echo
7244  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7245## Running $as_me. ##
7246_ASBOX
7247} >&5
7248cat >&5 <<_CSEOF
7249
7250This file was extended by $as_me, which was
7251generated by GNU Autoconf 2.59.  Invocation command line was
7252
7253  CONFIG_FILES    = $CONFIG_FILES
7254  CONFIG_HEADERS  = $CONFIG_HEADERS
7255  CONFIG_LINKS    = $CONFIG_LINKS
7256  CONFIG_COMMANDS = $CONFIG_COMMANDS
7257  $ $0 $@
7258
7259_CSEOF
7260echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7261echo >&5
7262_ACEOF
7263
7264# Files that config.status was made for.
7265if test -n "$ac_config_files"; then
7266  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7267fi
7268
7269if test -n "$ac_config_headers"; then
7270  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7271fi
7272
7273if test -n "$ac_config_links"; then
7274  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7275fi
7276
7277if test -n "$ac_config_commands"; then
7278  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7279fi
7280
7281cat >>$CONFIG_STATUS <<\_ACEOF
7282
7283ac_cs_usage="\
7284\`$as_me' instantiates files from templates according to the
7285current configuration.
7286
7287Usage: $0 [OPTIONS] [FILE]...
7288
7289  -h, --help       print this help, then exit
7290  -V, --version    print version number, then exit
7291  -q, --quiet      do not print progress messages
7292  -d, --debug      don't remove temporary files
7293      --recheck    update $as_me by reconfiguring in the same conditions
7294  --file=FILE[:TEMPLATE]
7295		   instantiate the configuration file FILE
7296  --header=FILE[:TEMPLATE]
7297		   instantiate the configuration header FILE
7298
7299Configuration files:
7300$config_files
7301
7302Configuration headers:
7303$config_headers
7304
7305Configuration commands:
7306$config_commands
7307
7308Report bugs to <bug-autoconf@gnu.org>."
7309_ACEOF
7310
7311cat >>$CONFIG_STATUS <<_ACEOF
7312ac_cs_version="\\
7313config.status
7314configured by $0, generated by GNU Autoconf 2.59,
7315  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7316
7317Copyright (C) 2003 Free Software Foundation, Inc.
7318This config.status script is free software; the Free Software Foundation
7319gives unlimited permission to copy, distribute and modify it."
7320srcdir=$srcdir
7321INSTALL="$INSTALL"
7322_ACEOF
7323
7324cat >>$CONFIG_STATUS <<\_ACEOF
7325# If no file are specified by the user, then we need to provide default
7326# value.  By we need to know if files were specified by the user.
7327ac_need_defaults=:
7328while test $# != 0
7329do
7330  case $1 in
7331  --*=*)
7332    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7333    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7334    ac_shift=:
7335    ;;
7336  -*)
7337    ac_option=$1
7338    ac_optarg=$2
7339    ac_shift=shift
7340    ;;
7341  *) # This is not an option, so the user has probably given explicit
7342     # arguments.
7343     ac_option=$1
7344     ac_need_defaults=false;;
7345  esac
7346
7347  case $ac_option in
7348  # Handling of the options.
7349_ACEOF
7350cat >>$CONFIG_STATUS <<\_ACEOF
7351  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7352    ac_cs_recheck=: ;;
7353  --version | --vers* | -V )
7354    echo "$ac_cs_version"; exit 0 ;;
7355  --he | --h)
7356    # Conflict between --help and --header
7357    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7358Try \`$0 --help' for more information." >&5
7359echo "$as_me: error: ambiguous option: $1
7360Try \`$0 --help' for more information." >&2;}
7361   { (exit 1); exit 1; }; };;
7362  --help | --hel | -h )
7363    echo "$ac_cs_usage"; exit 0 ;;
7364  --debug | --d* | -d )
7365    debug=: ;;
7366  --file | --fil | --fi | --f )
7367    $ac_shift
7368    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7369    ac_need_defaults=false;;
7370  --header | --heade | --head | --hea )
7371    $ac_shift
7372    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7373    ac_need_defaults=false;;
7374  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7375  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7376    ac_cs_silent=: ;;
7377
7378  # This is an error.
7379  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7380Try \`$0 --help' for more information." >&5
7381echo "$as_me: error: unrecognized option: $1
7382Try \`$0 --help' for more information." >&2;}
7383   { (exit 1); exit 1; }; } ;;
7384
7385  *) ac_config_targets="$ac_config_targets $1" ;;
7386
7387  esac
7388  shift
7389done
7390
7391ac_configure_extra_args=
7392
7393if $ac_cs_silent; then
7394  exec 6>/dev/null
7395  ac_configure_extra_args="$ac_configure_extra_args --silent"
7396fi
7397
7398_ACEOF
7399cat >>$CONFIG_STATUS <<_ACEOF
7400if \$ac_cs_recheck; then
7401  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7402  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7403fi
7404
7405_ACEOF
7406
7407cat >>$CONFIG_STATUS <<_ACEOF
7408#
7409# INIT-COMMANDS section.
7410#
7411
7412AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7413
7414_ACEOF
7415
7416
7417
7418cat >>$CONFIG_STATUS <<\_ACEOF
7419for ac_config_target in $ac_config_targets
7420do
7421  case "$ac_config_target" in
7422  # Handling of arguments.
7423  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7424  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7425  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7426  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7427echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7428   { (exit 1); exit 1; }; };;
7429  esac
7430done
7431
7432# If the user did not use the arguments to specify the items to instantiate,
7433# then the envvar interface is used.  Set only those that are not.
7434# We use the long form for the default assignment because of an extremely
7435# bizarre bug on SunOS 4.1.3.
7436if $ac_need_defaults; then
7437  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7438  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7439  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7440fi
7441
7442# Have a temporary directory for convenience.  Make it in the build tree
7443# simply because there is no reason to put it here, and in addition,
7444# creating and moving files from /tmp can sometimes cause problems.
7445# Create a temporary directory, and hook for its removal unless debugging.
7446$debug ||
7447{
7448  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7449  trap '{ (exit 1); exit 1; }' 1 2 13 15
7450}
7451
7452# Create a (secure) tmp directory for tmp files.
7453
7454{
7455  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7456  test -n "$tmp" && test -d "$tmp"
7457}  ||
7458{
7459  tmp=./confstat$$-$RANDOM
7460  (umask 077 && mkdir $tmp)
7461} ||
7462{
7463   echo "$me: cannot create a temporary directory in ." >&2
7464   { (exit 1); exit 1; }
7465}
7466
7467_ACEOF
7468
7469cat >>$CONFIG_STATUS <<_ACEOF
7470
7471#
7472# CONFIG_FILES section.
7473#
7474
7475# No need to generate the scripts if there are no CONFIG_FILES.
7476# This happens for instance when ./config.status config.h
7477if test -n "\$CONFIG_FILES"; then
7478  # Protect against being on the right side of a sed subst in config.status.
7479  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7480   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7481s,@SHELL@,$SHELL,;t t
7482s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7483s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7484s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7485s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7486s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7487s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7488s,@exec_prefix@,$exec_prefix,;t t
7489s,@prefix@,$prefix,;t t
7490s,@program_transform_name@,$program_transform_name,;t t
7491s,@bindir@,$bindir,;t t
7492s,@sbindir@,$sbindir,;t t
7493s,@libexecdir@,$libexecdir,;t t
7494s,@datadir@,$datadir,;t t
7495s,@sysconfdir@,$sysconfdir,;t t
7496s,@sharedstatedir@,$sharedstatedir,;t t
7497s,@localstatedir@,$localstatedir,;t t
7498s,@libdir@,$libdir,;t t
7499s,@includedir@,$includedir,;t t
7500s,@oldincludedir@,$oldincludedir,;t t
7501s,@infodir@,$infodir,;t t
7502s,@mandir@,$mandir,;t t
7503s,@build_alias@,$build_alias,;t t
7504s,@host_alias@,$host_alias,;t t
7505s,@target_alias@,$target_alias,;t t
7506s,@DEFS@,$DEFS,;t t
7507s,@ECHO_C@,$ECHO_C,;t t
7508s,@ECHO_N@,$ECHO_N,;t t
7509s,@ECHO_T@,$ECHO_T,;t t
7510s,@LIBS@,$LIBS,;t t
7511s,@build@,$build,;t t
7512s,@build_cpu@,$build_cpu,;t t
7513s,@build_vendor@,$build_vendor,;t t
7514s,@build_os@,$build_os,;t t
7515s,@host@,$host,;t t
7516s,@host_cpu@,$host_cpu,;t t
7517s,@host_vendor@,$host_vendor,;t t
7518s,@host_os@,$host_os,;t t
7519s,@target@,$target,;t t
7520s,@target_cpu@,$target_cpu,;t t
7521s,@target_vendor@,$target_vendor,;t t
7522s,@target_os@,$target_os,;t t
7523s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7524s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7525s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7526s,@CYGPATH_W@,$CYGPATH_W,;t t
7527s,@PACKAGE@,$PACKAGE,;t t
7528s,@VERSION@,$VERSION,;t t
7529s,@ACLOCAL@,$ACLOCAL,;t t
7530s,@AUTOCONF@,$AUTOCONF,;t t
7531s,@AUTOMAKE@,$AUTOMAKE,;t t
7532s,@AUTOHEADER@,$AUTOHEADER,;t t
7533s,@MAKEINFO@,$MAKEINFO,;t t
7534s,@install_sh@,$install_sh,;t t
7535s,@STRIP@,$STRIP,;t t
7536s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7537s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7538s,@mkdir_p@,$mkdir_p,;t t
7539s,@AWK@,$AWK,;t t
7540s,@SET_MAKE@,$SET_MAKE,;t t
7541s,@am__leading_dot@,$am__leading_dot,;t t
7542s,@AMTAR@,$AMTAR,;t t
7543s,@am__tar@,$am__tar,;t t
7544s,@am__untar@,$am__untar,;t t
7545s,@CC@,$CC,;t t
7546s,@CFLAGS@,$CFLAGS,;t t
7547s,@LDFLAGS@,$LDFLAGS,;t t
7548s,@CPPFLAGS@,$CPPFLAGS,;t t
7549s,@ac_ct_CC@,$ac_ct_CC,;t t
7550s,@EXEEXT@,$EXEEXT,;t t
7551s,@OBJEXT@,$OBJEXT,;t t
7552s,@DEPDIR@,$DEPDIR,;t t
7553s,@am__include@,$am__include,;t t
7554s,@am__quote@,$am__quote,;t t
7555s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7556s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7557s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7558s,@CCDEPMODE@,$CCDEPMODE,;t t
7559s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7560s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7561s,@CPP@,$CPP,;t t
7562s,@pam_ldap_so_LD@,$pam_ldap_so_LD,;t t
7563s,@pam_ldap_so_LDFLAGS@,$pam_ldap_so_LDFLAGS,;t t
7564s,@USE_NATIVE_LINKER_TRUE@,$USE_NATIVE_LINKER_TRUE,;t t
7565s,@USE_NATIVE_LINKER_FALSE@,$USE_NATIVE_LINKER_FALSE,;t t
7566s,@EXTENSION_SO_TRUE@,$EXTENSION_SO_TRUE,;t t
7567s,@EXTENSION_SO_FALSE@,$EXTENSION_SO_FALSE,;t t
7568s,@EXTENSION_1_TRUE@,$EXTENSION_1_TRUE,;t t
7569s,@EXTENSION_1_FALSE@,$EXTENSION_1_FALSE,;t t
7570s,@EGREP@,$EGREP,;t t
7571s,@LIBOBJS@,$LIBOBJS,;t t
7572s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7573CEOF
7574
7575_ACEOF
7576
7577  cat >>$CONFIG_STATUS <<\_ACEOF
7578  # Split the substitutions into bite-sized pieces for seds with
7579  # small command number limits, like on Digital OSF/1 and HP-UX.
7580  ac_max_sed_lines=48
7581  ac_sed_frag=1 # Number of current file.
7582  ac_beg=1 # First line for current file.
7583  ac_end=$ac_max_sed_lines # Line after last line for current file.
7584  ac_more_lines=:
7585  ac_sed_cmds=
7586  while $ac_more_lines; do
7587    if test $ac_beg -gt 1; then
7588      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7589    else
7590      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7591    fi
7592    if test ! -s $tmp/subs.frag; then
7593      ac_more_lines=false
7594    else
7595      # The purpose of the label and of the branching condition is to
7596      # speed up the sed processing (if there are no `@' at all, there
7597      # is no need to browse any of the substitutions).
7598      # These are the two extra sed commands mentioned above.
7599      (echo ':t
7600  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7601      if test -z "$ac_sed_cmds"; then
7602	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7603      else
7604	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7605      fi
7606      ac_sed_frag=`expr $ac_sed_frag + 1`
7607      ac_beg=$ac_end
7608      ac_end=`expr $ac_end + $ac_max_sed_lines`
7609    fi
7610  done
7611  if test -z "$ac_sed_cmds"; then
7612    ac_sed_cmds=cat
7613  fi
7614fi # test -n "$CONFIG_FILES"
7615
7616_ACEOF
7617cat >>$CONFIG_STATUS <<\_ACEOF
7618for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7619  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7620  case $ac_file in
7621  - | *:- | *:-:* ) # input from stdin
7622	cat >$tmp/stdin
7623	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7624	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7625  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7626	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7627  * )   ac_file_in=$ac_file.in ;;
7628  esac
7629
7630  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7631  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7632$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7633	 X"$ac_file" : 'X\(//\)[^/]' \| \
7634	 X"$ac_file" : 'X\(//\)$' \| \
7635	 X"$ac_file" : 'X\(/\)' \| \
7636	 .     : '\(.\)' 2>/dev/null ||
7637echo X"$ac_file" |
7638    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7639  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7640  	  /^X\(\/\/\)$/{ s//\1/; q; }
7641  	  /^X\(\/\).*/{ s//\1/; q; }
7642  	  s/.*/./; q'`
7643  { if $as_mkdir_p; then
7644    mkdir -p "$ac_dir"
7645  else
7646    as_dir="$ac_dir"
7647    as_dirs=
7648    while test ! -d "$as_dir"; do
7649      as_dirs="$as_dir $as_dirs"
7650      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7651$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7652	 X"$as_dir" : 'X\(//\)[^/]' \| \
7653	 X"$as_dir" : 'X\(//\)$' \| \
7654	 X"$as_dir" : 'X\(/\)' \| \
7655	 .     : '\(.\)' 2>/dev/null ||
7656echo X"$as_dir" |
7657    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7658  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7659  	  /^X\(\/\/\)$/{ s//\1/; q; }
7660  	  /^X\(\/\).*/{ s//\1/; q; }
7661  	  s/.*/./; q'`
7662    done
7663    test ! -n "$as_dirs" || mkdir $as_dirs
7664  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7665echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7666   { (exit 1); exit 1; }; }; }
7667
7668  ac_builddir=.
7669
7670if test "$ac_dir" != .; then
7671  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7672  # A "../" for each directory in $ac_dir_suffix.
7673  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7674else
7675  ac_dir_suffix= ac_top_builddir=
7676fi
7677
7678case $srcdir in
7679  .)  # No --srcdir option.  We are building in place.
7680    ac_srcdir=.
7681    if test -z "$ac_top_builddir"; then
7682       ac_top_srcdir=.
7683    else
7684       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7685    fi ;;
7686  [\\/]* | ?:[\\/]* )  # Absolute path.
7687    ac_srcdir=$srcdir$ac_dir_suffix;
7688    ac_top_srcdir=$srcdir ;;
7689  *) # Relative path.
7690    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7691    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7692esac
7693
7694# Do not use `cd foo && pwd` to compute absolute paths, because
7695# the directories may not exist.
7696case `pwd` in
7697.) ac_abs_builddir="$ac_dir";;
7698*)
7699  case "$ac_dir" in
7700  .) ac_abs_builddir=`pwd`;;
7701  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7702  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7703  esac;;
7704esac
7705case $ac_abs_builddir in
7706.) ac_abs_top_builddir=${ac_top_builddir}.;;
7707*)
7708  case ${ac_top_builddir}. in
7709  .) ac_abs_top_builddir=$ac_abs_builddir;;
7710  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7711  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7712  esac;;
7713esac
7714case $ac_abs_builddir in
7715.) ac_abs_srcdir=$ac_srcdir;;
7716*)
7717  case $ac_srcdir in
7718  .) ac_abs_srcdir=$ac_abs_builddir;;
7719  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7720  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7721  esac;;
7722esac
7723case $ac_abs_builddir in
7724.) ac_abs_top_srcdir=$ac_top_srcdir;;
7725*)
7726  case $ac_top_srcdir in
7727  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7728  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7729  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7730  esac;;
7731esac
7732
7733
7734  case $INSTALL in
7735  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7736  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7737  esac
7738
7739  if test x"$ac_file" != x-; then
7740    { echo "$as_me:$LINENO: creating $ac_file" >&5
7741echo "$as_me: creating $ac_file" >&6;}
7742    rm -f "$ac_file"
7743  fi
7744  # Let's still pretend it is `configure' which instantiates (i.e., don't
7745  # use $as_me), people would be surprised to read:
7746  #    /* config.h.  Generated by config.status.  */
7747  if test x"$ac_file" = x-; then
7748    configure_input=
7749  else
7750    configure_input="$ac_file.  "
7751  fi
7752  configure_input=$configure_input"Generated from `echo $ac_file_in |
7753				     sed 's,.*/,,'` by configure."
7754
7755  # First look for the input files in the build tree, otherwise in the
7756  # src tree.
7757  ac_file_inputs=`IFS=:
7758    for f in $ac_file_in; do
7759      case $f in
7760      -) echo $tmp/stdin ;;
7761      [\\/$]*)
7762	 # Absolute (can't be DOS-style, as IFS=:)
7763	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7764echo "$as_me: error: cannot find input file: $f" >&2;}
7765   { (exit 1); exit 1; }; }
7766	 echo "$f";;
7767      *) # Relative
7768	 if test -f "$f"; then
7769	   # Build tree
7770	   echo "$f"
7771	 elif test -f "$srcdir/$f"; then
7772	   # Source tree
7773	   echo "$srcdir/$f"
7774	 else
7775	   # /dev/null tree
7776	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7777echo "$as_me: error: cannot find input file: $f" >&2;}
7778   { (exit 1); exit 1; }; }
7779	 fi;;
7780      esac
7781    done` || { (exit 1); exit 1; }
7782_ACEOF
7783cat >>$CONFIG_STATUS <<_ACEOF
7784  sed "$ac_vpsub
7785$extrasub
7786_ACEOF
7787cat >>$CONFIG_STATUS <<\_ACEOF
7788:t
7789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7790s,@configure_input@,$configure_input,;t t
7791s,@srcdir@,$ac_srcdir,;t t
7792s,@abs_srcdir@,$ac_abs_srcdir,;t t
7793s,@top_srcdir@,$ac_top_srcdir,;t t
7794s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7795s,@builddir@,$ac_builddir,;t t
7796s,@abs_builddir@,$ac_abs_builddir,;t t
7797s,@top_builddir@,$ac_top_builddir,;t t
7798s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7799s,@INSTALL@,$ac_INSTALL,;t t
7800" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7801  rm -f $tmp/stdin
7802  if test x"$ac_file" != x-; then
7803    mv $tmp/out $ac_file
7804  else
7805    cat $tmp/out
7806    rm -f $tmp/out
7807  fi
7808
7809done
7810_ACEOF
7811cat >>$CONFIG_STATUS <<\_ACEOF
7812
7813#
7814# CONFIG_HEADER section.
7815#
7816
7817# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7818# NAME is the cpp macro being defined and VALUE is the value it is being given.
7819#
7820# ac_d sets the value in "#define NAME VALUE" lines.
7821ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
7822ac_dB='[	 ].*$,\1#\2'
7823ac_dC=' '
7824ac_dD=',;t'
7825# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7826ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
7827ac_uB='$,\1#\2define\3'
7828ac_uC=' '
7829ac_uD=',;t'
7830
7831for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7832  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7833  case $ac_file in
7834  - | *:- | *:-:* ) # input from stdin
7835	cat >$tmp/stdin
7836	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7837	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7838  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7839	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7840  * )   ac_file_in=$ac_file.in ;;
7841  esac
7842
7843  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7844echo "$as_me: creating $ac_file" >&6;}
7845
7846  # First look for the input files in the build tree, otherwise in the
7847  # src tree.
7848  ac_file_inputs=`IFS=:
7849    for f in $ac_file_in; do
7850      case $f in
7851      -) echo $tmp/stdin ;;
7852      [\\/$]*)
7853	 # Absolute (can't be DOS-style, as IFS=:)
7854	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7855echo "$as_me: error: cannot find input file: $f" >&2;}
7856   { (exit 1); exit 1; }; }
7857	 # Do quote $f, to prevent DOS paths from being IFS'd.
7858	 echo "$f";;
7859      *) # Relative
7860	 if test -f "$f"; then
7861	   # Build tree
7862	   echo "$f"
7863	 elif test -f "$srcdir/$f"; then
7864	   # Source tree
7865	   echo "$srcdir/$f"
7866	 else
7867	   # /dev/null tree
7868	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7869echo "$as_me: error: cannot find input file: $f" >&2;}
7870   { (exit 1); exit 1; }; }
7871	 fi;;
7872      esac
7873    done` || { (exit 1); exit 1; }
7874  # Remove the trailing spaces.
7875  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
7876
7877_ACEOF
7878
7879# Transform confdefs.h into two sed scripts, `conftest.defines' and
7880# `conftest.undefs', that substitutes the proper values into
7881# config.h.in to produce config.h.  The first handles `#define'
7882# templates, and the second `#undef' templates.
7883# And first: Protect against being on the right side of a sed subst in
7884# config.status.  Protect against being in an unquoted here document
7885# in config.status.
7886rm -f conftest.defines conftest.undefs
7887# Using a here document instead of a string reduces the quoting nightmare.
7888# Putting comments in sed scripts is not portable.
7889#
7890# `end' is used to avoid that the second main sed command (meant for
7891# 0-ary CPP macros) applies to n-ary macro definitions.
7892# See the Autoconf documentation for `clear'.
7893cat >confdef2sed.sed <<\_ACEOF
7894s/[\\&,]/\\&/g
7895s,[\\$`],\\&,g
7896t clear
7897: clear
7898s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7899t end
7900s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7901: end
7902_ACEOF
7903# If some macros were called several times there might be several times
7904# the same #defines, which is useless.  Nevertheless, we may not want to
7905# sort them, since we want the *last* AC-DEFINE to be honored.
7906uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7907sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7908rm -f confdef2sed.sed
7909
7910# This sed command replaces #undef with comments.  This is necessary, for
7911# example, in the case of _POSIX_SOURCE, which is predefined and required
7912# on some systems where configure will not decide to define it.
7913cat >>conftest.undefs <<\_ACEOF
7914s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7915_ACEOF
7916
7917# Break up conftest.defines because some shells have a limit on the size
7918# of here documents, and old seds have small limits too (100 cmds).
7919echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7920echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7921echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7922echo '  :' >>$CONFIG_STATUS
7923rm -f conftest.tail
7924while grep . conftest.defines >/dev/null
7925do
7926  # Write a limited-size here document to $tmp/defines.sed.
7927  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7928  # Speed up: don't consider the non `#define' lines.
7929  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
7930  # Work around the forget-to-reset-the-flag bug.
7931  echo 't clr' >>$CONFIG_STATUS
7932  echo ': clr' >>$CONFIG_STATUS
7933  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7934  echo 'CEOF
7935  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7936  rm -f $tmp/in
7937  mv $tmp/out $tmp/in
7938' >>$CONFIG_STATUS
7939  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7940  rm -f conftest.defines
7941  mv conftest.tail conftest.defines
7942done
7943rm -f conftest.defines
7944echo '  fi # grep' >>$CONFIG_STATUS
7945echo >>$CONFIG_STATUS
7946
7947# Break up conftest.undefs because some shells have a limit on the size
7948# of here documents, and old seds have small limits too (100 cmds).
7949echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7950rm -f conftest.tail
7951while grep . conftest.undefs >/dev/null
7952do
7953  # Write a limited-size here document to $tmp/undefs.sed.
7954  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7955  # Speed up: don't consider the non `#undef'
7956  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
7957  # Work around the forget-to-reset-the-flag bug.
7958  echo 't clr' >>$CONFIG_STATUS
7959  echo ': clr' >>$CONFIG_STATUS
7960  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7961  echo 'CEOF
7962  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7963  rm -f $tmp/in
7964  mv $tmp/out $tmp/in
7965' >>$CONFIG_STATUS
7966  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7967  rm -f conftest.undefs
7968  mv conftest.tail conftest.undefs
7969done
7970rm -f conftest.undefs
7971
7972cat >>$CONFIG_STATUS <<\_ACEOF
7973  # Let's still pretend it is `configure' which instantiates (i.e., don't
7974  # use $as_me), people would be surprised to read:
7975  #    /* config.h.  Generated by config.status.  */
7976  if test x"$ac_file" = x-; then
7977    echo "/* Generated by configure.  */" >$tmp/config.h
7978  else
7979    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7980  fi
7981  cat $tmp/in >>$tmp/config.h
7982  rm -f $tmp/in
7983  if test x"$ac_file" != x-; then
7984    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7985      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7986echo "$as_me: $ac_file is unchanged" >&6;}
7987    else
7988      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7989$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7990	 X"$ac_file" : 'X\(//\)[^/]' \| \
7991	 X"$ac_file" : 'X\(//\)$' \| \
7992	 X"$ac_file" : 'X\(/\)' \| \
7993	 .     : '\(.\)' 2>/dev/null ||
7994echo X"$ac_file" |
7995    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7996  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7997  	  /^X\(\/\/\)$/{ s//\1/; q; }
7998  	  /^X\(\/\).*/{ s//\1/; q; }
7999  	  s/.*/./; q'`
8000      { if $as_mkdir_p; then
8001    mkdir -p "$ac_dir"
8002  else
8003    as_dir="$ac_dir"
8004    as_dirs=
8005    while test ! -d "$as_dir"; do
8006      as_dirs="$as_dir $as_dirs"
8007      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8008$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8009	 X"$as_dir" : 'X\(//\)[^/]' \| \
8010	 X"$as_dir" : 'X\(//\)$' \| \
8011	 X"$as_dir" : 'X\(/\)' \| \
8012	 .     : '\(.\)' 2>/dev/null ||
8013echo X"$as_dir" |
8014    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8015  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8016  	  /^X\(\/\/\)$/{ s//\1/; q; }
8017  	  /^X\(\/\).*/{ s//\1/; q; }
8018  	  s/.*/./; q'`
8019    done
8020    test ! -n "$as_dirs" || mkdir $as_dirs
8021  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8022echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8023   { (exit 1); exit 1; }; }; }
8024
8025      rm -f $ac_file
8026      mv $tmp/config.h $ac_file
8027    fi
8028  else
8029    cat $tmp/config.h
8030    rm -f $tmp/config.h
8031  fi
8032# Compute $ac_file's index in $config_headers.
8033_am_stamp_count=1
8034for _am_header in $config_headers :; do
8035  case $_am_header in
8036    $ac_file | $ac_file:* )
8037      break ;;
8038    * )
8039      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8040  esac
8041done
8042echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8043$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8044	 X$ac_file : 'X\(//\)[^/]' \| \
8045	 X$ac_file : 'X\(//\)$' \| \
8046	 X$ac_file : 'X\(/\)' \| \
8047	 .     : '\(.\)' 2>/dev/null ||
8048echo X$ac_file |
8049    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8050  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8051  	  /^X\(\/\/\)$/{ s//\1/; q; }
8052  	  /^X\(\/\).*/{ s//\1/; q; }
8053  	  s/.*/./; q'`/stamp-h$_am_stamp_count
8054done
8055_ACEOF
8056cat >>$CONFIG_STATUS <<\_ACEOF
8057
8058#
8059# CONFIG_COMMANDS section.
8060#
8061for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8062  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8063  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8064  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8065$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8066	 X"$ac_dest" : 'X\(//\)[^/]' \| \
8067	 X"$ac_dest" : 'X\(//\)$' \| \
8068	 X"$ac_dest" : 'X\(/\)' \| \
8069	 .     : '\(.\)' 2>/dev/null ||
8070echo X"$ac_dest" |
8071    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8072  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8073  	  /^X\(\/\/\)$/{ s//\1/; q; }
8074  	  /^X\(\/\).*/{ s//\1/; q; }
8075  	  s/.*/./; q'`
8076  { if $as_mkdir_p; then
8077    mkdir -p "$ac_dir"
8078  else
8079    as_dir="$ac_dir"
8080    as_dirs=
8081    while test ! -d "$as_dir"; do
8082      as_dirs="$as_dir $as_dirs"
8083      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8085	 X"$as_dir" : 'X\(//\)[^/]' \| \
8086	 X"$as_dir" : 'X\(//\)$' \| \
8087	 X"$as_dir" : 'X\(/\)' \| \
8088	 .     : '\(.\)' 2>/dev/null ||
8089echo X"$as_dir" |
8090    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8091  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8092  	  /^X\(\/\/\)$/{ s//\1/; q; }
8093  	  /^X\(\/\).*/{ s//\1/; q; }
8094  	  s/.*/./; q'`
8095    done
8096    test ! -n "$as_dirs" || mkdir $as_dirs
8097  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8098echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8099   { (exit 1); exit 1; }; }; }
8100
8101  ac_builddir=.
8102
8103if test "$ac_dir" != .; then
8104  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8105  # A "../" for each directory in $ac_dir_suffix.
8106  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8107else
8108  ac_dir_suffix= ac_top_builddir=
8109fi
8110
8111case $srcdir in
8112  .)  # No --srcdir option.  We are building in place.
8113    ac_srcdir=.
8114    if test -z "$ac_top_builddir"; then
8115       ac_top_srcdir=.
8116    else
8117       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8118    fi ;;
8119  [\\/]* | ?:[\\/]* )  # Absolute path.
8120    ac_srcdir=$srcdir$ac_dir_suffix;
8121    ac_top_srcdir=$srcdir ;;
8122  *) # Relative path.
8123    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8124    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8125esac
8126
8127# Do not use `cd foo && pwd` to compute absolute paths, because
8128# the directories may not exist.
8129case `pwd` in
8130.) ac_abs_builddir="$ac_dir";;
8131*)
8132  case "$ac_dir" in
8133  .) ac_abs_builddir=`pwd`;;
8134  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8135  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8136  esac;;
8137esac
8138case $ac_abs_builddir in
8139.) ac_abs_top_builddir=${ac_top_builddir}.;;
8140*)
8141  case ${ac_top_builddir}. in
8142  .) ac_abs_top_builddir=$ac_abs_builddir;;
8143  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8144  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8145  esac;;
8146esac
8147case $ac_abs_builddir in
8148.) ac_abs_srcdir=$ac_srcdir;;
8149*)
8150  case $ac_srcdir in
8151  .) ac_abs_srcdir=$ac_abs_builddir;;
8152  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8153  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8154  esac;;
8155esac
8156case $ac_abs_builddir in
8157.) ac_abs_top_srcdir=$ac_top_srcdir;;
8158*)
8159  case $ac_top_srcdir in
8160  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8161  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8162  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8163  esac;;
8164esac
8165
8166
8167  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8168echo "$as_me: executing $ac_dest commands" >&6;}
8169  case $ac_dest in
8170    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8171  # Strip MF so we end up with the name of the file.
8172  mf=`echo "$mf" | sed -e 's/:.*$//'`
8173  # Check whether this is an Automake generated Makefile or not.
8174  # We used to match only the files named `Makefile.in', but
8175  # some people rename them; so instead we look at the file content.
8176  # Grep'ing the first line is not enough: some people post-process
8177  # each Makefile.in and add a new line on top of each file to say so.
8178  # So let's grep whole file.
8179  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8180    dirpart=`(dirname "$mf") 2>/dev/null ||
8181$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8182	 X"$mf" : 'X\(//\)[^/]' \| \
8183	 X"$mf" : 'X\(//\)$' \| \
8184	 X"$mf" : 'X\(/\)' \| \
8185	 .     : '\(.\)' 2>/dev/null ||
8186echo X"$mf" |
8187    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8188  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8189  	  /^X\(\/\/\)$/{ s//\1/; q; }
8190  	  /^X\(\/\).*/{ s//\1/; q; }
8191  	  s/.*/./; q'`
8192  else
8193    continue
8194  fi
8195  # Extract the definition of DEPDIR, am__include, and am__quote
8196  # from the Makefile without running `make'.
8197  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8198  test -z "$DEPDIR" && continue
8199  am__include=`sed -n 's/^am__include = //p' < "$mf"`
8200  test -z "am__include" && continue
8201  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8202  # When using ansi2knr, U may be empty or an underscore; expand it
8203  U=`sed -n 's/^U = //p' < "$mf"`
8204  # Find all dependency output files, they are included files with
8205  # $(DEPDIR) in their names.  We invoke sed twice because it is the
8206  # simplest approach to changing $(DEPDIR) to its actual value in the
8207  # expansion.
8208  for file in `sed -n "
8209    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8210       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8211    # Make sure the directory exists.
8212    test -f "$dirpart/$file" && continue
8213    fdir=`(dirname "$file") 2>/dev/null ||
8214$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8215	 X"$file" : 'X\(//\)[^/]' \| \
8216	 X"$file" : 'X\(//\)$' \| \
8217	 X"$file" : 'X\(/\)' \| \
8218	 .     : '\(.\)' 2>/dev/null ||
8219echo X"$file" |
8220    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8221  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8222  	  /^X\(\/\/\)$/{ s//\1/; q; }
8223  	  /^X\(\/\).*/{ s//\1/; q; }
8224  	  s/.*/./; q'`
8225    { if $as_mkdir_p; then
8226    mkdir -p $dirpart/$fdir
8227  else
8228    as_dir=$dirpart/$fdir
8229    as_dirs=
8230    while test ! -d "$as_dir"; do
8231      as_dirs="$as_dir $as_dirs"
8232      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8233$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8234	 X"$as_dir" : 'X\(//\)[^/]' \| \
8235	 X"$as_dir" : 'X\(//\)$' \| \
8236	 X"$as_dir" : 'X\(/\)' \| \
8237	 .     : '\(.\)' 2>/dev/null ||
8238echo X"$as_dir" |
8239    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8240  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8241  	  /^X\(\/\/\)$/{ s//\1/; q; }
8242  	  /^X\(\/\).*/{ s//\1/; q; }
8243  	  s/.*/./; q'`
8244    done
8245    test ! -n "$as_dirs" || mkdir $as_dirs
8246  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8247echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8248   { (exit 1); exit 1; }; }; }
8249
8250    # echo "creating $dirpart/$file"
8251    echo '# dummy' > "$dirpart/$file"
8252  done
8253done
8254 ;;
8255  esac
8256done
8257_ACEOF
8258
8259cat >>$CONFIG_STATUS <<\_ACEOF
8260
8261{ (exit 0); exit 0; }
8262_ACEOF
8263chmod +x $CONFIG_STATUS
8264ac_clean_files=$ac_clean_files_save
8265
8266
8267# configure is writing to config.log, and then calls config.status.
8268# config.status does its own redirection, appending to config.log.
8269# Unfortunately, on DOS this fails, as config.log is still kept open
8270# by configure, so config.status won't be able to write to it; its
8271# output is simply discarded.  So we exec the FD to /dev/null,
8272# effectively closing config.log, so it can be properly (re)opened and
8273# appended to by config.status.  When coming back to configure, we
8274# need to make the FD available again.
8275if test "$no_create" != yes; then
8276  ac_cs_success=:
8277  ac_config_status_args=
8278  test "$silent" = yes &&
8279    ac_config_status_args="$ac_config_status_args --quiet"
8280  exec 5>/dev/null
8281  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8282  exec 5>>config.log
8283  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8284  # would make configure fail if this is the last instruction.
8285  $ac_cs_success || { (exit 1); exit 1; }
8286fi
8287
8288