]> git.sur5r.net Git - openldap/blob - configure
ITS#4017 support Diffie-Hellman parameters for multiple key lengths
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.600 2005/09/17 20:22:15 hallvard Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR 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 EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-aci          enable per-object ACIs (experimental) [no]
1019     --enable-cleartext    enable cleartext passwords [yes]
1020     --enable-crypt        enable crypt(3) passwords [no]
1021     --enable-lmpasswd     enable LAN Manager passwords [no]
1022     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1023     --enable-modules      enable dynamic module support [no]
1024     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1025     --enable-rlookups     enable reverse lookups of client hostnames [no]
1026     --enable-slapi        enable SLAPI support (experimental) [no]
1027     --enable-slp          enable SLPv2 support [no]
1028     --enable-wrappers     enable tcp wrapper support [no]
1029
1030 SLAPD Backend Options:
1031     --enable-backends     enable all available backends no|yes|mod
1032     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1033     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1034     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1035     --enable-ldap         enable ldap backend no|yes|mod [no]
1036     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1037       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1039     --enable-meta         enable metadirectory backend no|yes|mod [no]
1040     --enable-monitor      enable monitor backend no|yes|mod [yes]
1041     --enable-null         enable null backend no|yes|mod [no]
1042     --enable-passwd       enable passwd backend no|yes|mod [no]
1043     --enable-perl         enable perl backend no|yes|mod [no]
1044     --enable-relay        enable relay backend no|yes|mod [yes]
1045     --enable-shell        enable shell backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1052     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1053     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1054     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1055     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1056     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1057     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1058     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1059     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1060     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1061     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1062     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1063     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1064
1065 SLURPD (Replication Daemon) Options:
1066   --enable-slurpd         enable building slurpd [auto]
1067
1068 Library Generation & Linking Options
1069   --enable-static[=PKGS]
1070                           build static libraries [default=yes]
1071   --enable-shared[=PKGS]
1072                           build shared libraries [default=yes]
1073   --enable-fast-install[=PKGS]
1074                           optimize for fast installation [default=yes]
1075   --disable-dependency-tracking  speeds up one-time build
1076   --enable-dependency-tracking   do not reject slow dependency extractors
1077   --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079 Optional Packages:
1080   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082   --with-subdir=DIR       change default subdirectory used for installs
1083   --with-cyrus-sasl       with Cyrus SASL support [auto]
1084   --with-fetch            with fetch(3) URL support [auto]
1085   --with-threads          with threads [auto]
1086   --with-tls              with TLS/SSL support [auto]
1087   --with-yielding-select  with implicitly yielding select [auto]
1088   --with-multiple-precision
1089                           multiple precision support for statistics
1090                           auto|bignum|gmp [auto]
1091
1092   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093   --with-pic              try to use only PIC/non-PIC objects [default=use
1094                           both]
1095   --with-tags[=TAGS]
1096                           include additional configurations [automatic]
1097
1098 See INSTALL file for further details.
1099
1100 Some influential environment variables:
1101   CC          C compiler command
1102   CFLAGS      C compiler flags
1103   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1104               nonstandard directory <lib dir>
1105   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106               headers in a nonstandard directory <include dir>
1107   CPP         C preprocessor
1108
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1111
1112 _ACEOF
1113 fi
1114
1115 if test "$ac_init_help" = "recursive"; then
1116   # If there are subdirs, report their specific --help.
1117   ac_popdir=`pwd`
1118   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119     test -d $ac_dir || continue
1120     ac_builddir=.
1121
1122 if test "$ac_dir" != .; then
1123   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124   # A "../" for each directory in $ac_dir_suffix.
1125   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 else
1127   ac_dir_suffix= ac_top_builddir=
1128 fi
1129
1130 case $srcdir in
1131   .)  # No --srcdir option.  We are building in place.
1132     ac_srcdir=.
1133     if test -z "$ac_top_builddir"; then
1134        ac_top_srcdir=.
1135     else
1136        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137     fi ;;
1138   [\\/]* | ?:[\\/]* )  # Absolute path.
1139     ac_srcdir=$srcdir$ac_dir_suffix;
1140     ac_top_srcdir=$srcdir ;;
1141   *) # Relative path.
1142     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 esac
1145
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1148 case `pwd` in
1149 .) ac_abs_builddir="$ac_dir";;
1150 *)
1151   case "$ac_dir" in
1152   .) ac_abs_builddir=`pwd`;;
1153   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155   esac;;
1156 esac
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 *)
1160   case ${ac_top_builddir}. in
1161   .) ac_abs_top_builddir=$ac_abs_builddir;;
1162   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164   esac;;
1165 esac
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1168 *)
1169   case $ac_srcdir in
1170   .) ac_abs_srcdir=$ac_abs_builddir;;
1171   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173   esac;;
1174 esac
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 *)
1178   case $ac_top_srcdir in
1179   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182   esac;;
1183 esac
1184
1185     cd $ac_dir
1186     # Check for guested configure; otherwise get Cygnus style configure.
1187     if test -f $ac_srcdir/configure.gnu; then
1188       echo
1189       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1190     elif test -f $ac_srcdir/configure; then
1191       echo
1192       $SHELL $ac_srcdir/configure  --help=recursive
1193     elif test -f $ac_srcdir/configure.ac ||
1194            test -f $ac_srcdir/configure.in; then
1195       echo
1196       $ac_configure --help
1197     else
1198       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199     fi
1200     cd $ac_popdir
1201   done
1202 fi
1203
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1206   cat <<\_ACEOF
1207
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1211
1212 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1214 _ACEOF
1215   exit 0
1216 fi
1217 exec 5>config.log
1218 cat >&5 <<_ACEOF
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1221
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59.  Invocation command line was
1224
1225   $ $0 $@
1226
1227 _ACEOF
1228 {
1229 cat <<_ASUNAME
1230 ## --------- ##
1231 ## Platform. ##
1232 ## --------- ##
1233
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1242
1243 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1244 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1247 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1248 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1249 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1250
1251 _ASUNAME
1252
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254 for as_dir in $PATH
1255 do
1256   IFS=$as_save_IFS
1257   test -z "$as_dir" && as_dir=.
1258   echo "PATH: $as_dir"
1259 done
1260
1261 } >&5
1262
1263 cat >&5 <<_ACEOF
1264
1265
1266 ## ----------- ##
1267 ## Core tests. ##
1268 ## ----------- ##
1269
1270 _ACEOF
1271
1272
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1278 ac_configure_args=
1279 ac_configure_args0=
1280 ac_configure_args1=
1281 ac_sep=
1282 ac_must_keep_next=false
1283 for ac_pass in 1 2
1284 do
1285   for ac_arg
1286   do
1287     case $ac_arg in
1288     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290     | -silent | --silent | --silen | --sile | --sil)
1291       continue ;;
1292     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294     esac
1295     case $ac_pass in
1296     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297     2)
1298       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299       if test $ac_must_keep_next = true; then
1300         ac_must_keep_next=false # Got value, back to normal.
1301       else
1302         case $ac_arg in
1303           *=* | --config-cache | -C | -disable-* | --disable-* \
1304           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306           | -with-* | --with-* | -without-* | --without-* | --x)
1307             case "$ac_configure_args0 " in
1308               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309             esac
1310             ;;
1311           -* ) ac_must_keep_next=true ;;
1312         esac
1313       fi
1314       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315       # Get rid of the leading space.
1316       ac_sep=" "
1317       ;;
1318     esac
1319   done
1320 done
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log.  We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330   # Save into config.log some information that might help in debugging.
1331   {
1332     echo
1333
1334     cat <<\_ASBOX
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1338 _ASBOX
1339     echo
1340     # The following way of writing the cache mishandles newlines in values,
1341 {
1342   (set) 2>&1 |
1343     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344     *ac_space=\ *)
1345       sed -n \
1346         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1348       ;;
1349     *)
1350       sed -n \
1351         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352       ;;
1353     esac;
1354 }
1355     echo
1356
1357     cat <<\_ASBOX
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1361 _ASBOX
1362     echo
1363     for ac_var in $ac_subst_vars
1364     do
1365       eval ac_val=$`echo $ac_var`
1366       echo "$ac_var='"'"'$ac_val'"'"'"
1367     done | sort
1368     echo
1369
1370     if test -n "$ac_subst_files"; then
1371       cat <<\_ASBOX
1372 ## ------------- ##
1373 ## Output files. ##
1374 ## ------------- ##
1375 _ASBOX
1376       echo
1377       for ac_var in $ac_subst_files
1378       do
1379         eval ac_val=$`echo $ac_var`
1380         echo "$ac_var='"'"'$ac_val'"'"'"
1381       done | sort
1382       echo
1383     fi
1384
1385     if test -s confdefs.h; then
1386       cat <<\_ASBOX
1387 ## ----------- ##
1388 ## confdefs.h. ##
1389 ## ----------- ##
1390 _ASBOX
1391       echo
1392       sed "/^$/d" confdefs.h | sort
1393       echo
1394     fi
1395     test "$ac_signal" != 0 &&
1396       echo "$as_me: caught signal $ac_signal"
1397     echo "$as_me: exit $exit_status"
1398   } >&5
1399   rm -f core *.core &&
1400   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401     exit $exit_status
1402      ' 0
1403 for ac_signal in 1 2 13 15; do
1404   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405 done
1406 ac_signal=0
1407
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 echo >confdefs.h
1412
1413 # Predefined preprocessor variables.
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1432 _ACEOF
1433
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437 _ACEOF
1438
1439
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443   if test "x$prefix" != xNONE; then
1444     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445   else
1446     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447   fi
1448 fi
1449 for ac_site_file in $CONFIG_SITE; do
1450   if test -r "$ac_site_file"; then
1451     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453     sed 's/^/| /' "$ac_site_file" >&5
1454     . "$ac_site_file"
1455   fi
1456 done
1457
1458
1459 # Check that the precious variables saved in the cache have kept the same
1460 # value.
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465   eval ac_new_set=\$ac_env_${ac_var}_set
1466   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467   eval ac_new_val="\$ac_env_${ac_var}_value"
1468   case $ac_old_set,$ac_new_set in
1469     set,)
1470       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472       ac_cache_corrupted=: ;;
1473     ,set)
1474       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476       ac_cache_corrupted=: ;;
1477     ,);;
1478     *)
1479       if test "x$ac_old_val" != "x$ac_new_val"; then
1480         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1483 echo "$as_me:   former value:  $ac_old_val" >&2;}
1484         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1485 echo "$as_me:   current value: $ac_new_val" >&2;}
1486         ac_cache_corrupted=:
1487       fi;;
1488   esac
1489   # Pass precious variables to config.status.
1490   if test "$ac_new_set" = set; then
1491     case $ac_new_val in
1492     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494     *) ac_arg=$ac_var=$ac_new_val ;;
1495     esac
1496     case " $ac_configure_args " in
1497       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1498       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499     esac
1500   fi
1501 done
1502 if $ac_cache_corrupted; then
1503   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in build $srcdir/build; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589         ac_cv_shtool="$ac_aux_dir/shtool"
1590 else
1591         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 SHTOOL="$ac_cv_shtool"
1597
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1600
1601 OPENLDAP_CVS=""
1602 if test -d $ac_aux_dir/CVS; then
1603         OPENLDAP_CVS="(from CVS sources) "
1604 fi
1605
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617   echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619   ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621   ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625    { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629    { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647   ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669   ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687   test "$program_prefix$program_suffix$program_transform_name" = \
1688     NONENONEs,x,x, &&
1689   program_prefix=${target_alias}-
1690
1691 am__api_version="1.9"
1692 # Find a good install program.  We prefer a C program (faster),
1693 # so one script is as good as another.  But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1698 # AIX /bin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   # Account for people who put trailing slashes in PATH elements.
1717 case $as_dir/ in
1718   ./ | .// | /cC/* | \
1719   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1721   /usr/ucb/* ) ;;
1722   *)
1723     # OSF1 and SCO ODT 3.0 have their own names for install.
1724     # Don't use installbsd from OSF since it installs stuff as root
1725     # by default.
1726     for ac_prog in ginstall scoinst install; do
1727       for ac_exec_ext in '' $ac_executable_extensions; do
1728         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729           if test $ac_prog = install &&
1730             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731             # AIX install.  It has an incompatible calling convention.
1732             :
1733           elif test $ac_prog = install &&
1734             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # program-specific install script used by HP pwplus--don't use.
1736             :
1737           else
1738             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739             break 3
1740           fi
1741         fi
1742       done
1743     done
1744     ;;
1745 esac
1746 done
1747
1748
1749 fi
1750   if test "${ac_cv_path_install+set}" = set; then
1751     INSTALL=$ac_cv_path_install
1752   else
1753     # As a last resort, use the slow shell script.  We don't cache a
1754     # path for INSTALL within a source directory, because that will
1755     # break other packages using the cache if that directory is
1756     # removed, or if the path is relative.
1757     INSTALL=$ac_install_sh
1758   fi
1759 fi
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1762
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1768
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1770
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1773 # Just in case
1774 sleep 1
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments.  Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1780 # directory).
1781 if (
1782    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783    if test "$*" = "X"; then
1784       # -L didn't work.
1785       set X `ls -t $srcdir/configure conftest.file`
1786    fi
1787    rm -f conftest.file
1788    if test "$*" != "X $srcdir/configure conftest.file" \
1789       && test "$*" != "X conftest.file $srcdir/configure"; then
1790
1791       # If neither matched, then we have a broken ls.  This can happen
1792       # if, for instance, CONFIG_SHELL is bash and it inherits a
1793       # broken ls alias from the environment.  This has actually
1794       # happened.  Such a system could not be considered "sane".
1795       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1798 alias in your environment" >&2;}
1799    { (exit 1); exit 1; }; }
1800    fi
1801
1802    test "$2" = conftest.file
1803    )
1804 then
1805    # Ok.
1806    :
1807 else
1808    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $.  echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1825 _ACEOF
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1827 rm conftest.sed
1828
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1831
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835   am_missing_run="$MISSING --run "
1836 else
1837   am_missing_run=
1838   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1840 fi
1841
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843   # We used to keeping the `.' as first argument, in order to
1844   # allow $(mkdir_p) to be used without argument.  As in
1845   #   $(mkdir_p) $(somedir)
1846   # where $(somedir) is conditionally defined.  However this is wrong
1847   # for two reasons:
1848   #  1. if the package is installed by a user who cannot write `.'
1849   #     make install will fail,
1850   #  2. the above comment should most certainly read
1851   #     $(mkdir_p) $(DESTDIR)$(somedir)
1852   #     so it does not work when $(somedir) is undefined and
1853   #     $(DESTDIR) is not.
1854   #  To support the latter case, we have to write
1855   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856   #  so the `.' trick is pointless.
1857   mkdir_p='mkdir -p --'
1858 else
1859   # On NextStep and OpenStep, the `mkdir' command does not
1860   # recognize any option.  It will interpret all options as
1861   # directories to create, and then abort because `.' already
1862   # exists.
1863   for d in ./-p ./--version;
1864   do
1865     test -d $d && rmdir $d
1866   done
1867   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868   if test -f "$ac_aux_dir/mkinstalldirs"; then
1869     mkdir_p='$(mkinstalldirs)'
1870   else
1871     mkdir_p='$(install_sh) -d'
1872   fi
1873 fi
1874
1875 for ac_prog in gawk mawk nawk awk
1876 do
1877   # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$AWK"; then
1885   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_AWK="$ac_prog"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 AWK=$ac_cv_prog_AWK
1904 if test -n "$AWK"; then
1905   echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912   test -n "$AWK" && break
1913 done
1914
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   cat >conftest.make <<\_ACEOF
1922 all:
1923         @echo 'ac_maketemp="$(MAKE)"'
1924 _ACEOF
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928   eval ac_cv_prog_make_${ac_make}_set=yes
1929 else
1930   eval ac_cv_prog_make_${ac_make}_set=no
1931 fi
1932 rm -f conftest.make
1933 fi
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935   echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1937   SET_MAKE=
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941   SET_MAKE="MAKE=${MAKE-make}"
1942 fi
1943
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1947   am__leading_dot=.
1948 else
1949   am__leading_dot=_
1950 fi
1951 rmdir .tst 2>/dev/null
1952
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955    test -f $srcdir/config.status; then
1956   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963   if (cygpath --version) >/dev/null 2>/dev/null; then
1964     CYGPATH_W='cygpath -w'
1965   else
1966     CYGPATH_W=echo
1967   fi
1968 fi
1969
1970
1971 # Define the identity of the package.
1972  PACKAGE=$OL_PACKAGE
1973  VERSION=$OL_VERSION
1974
1975
1976 # Some tools Automake needs.
1977
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1979
1980
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1982
1983
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1985
1986
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1988
1989
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1991
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1993
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'.  However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999   if test -n "$ac_tool_prefix"; then
2000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$STRIP"; then
2008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028   echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$ac_cv_prog_STRIP"; then
2037   ac_ct_STRIP=$STRIP
2038   # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_STRIP"; then
2046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055     ac_cv_prog_ac_ct_STRIP="strip"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061
2062   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2063 fi
2064 fi
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074   STRIP=$ac_ct_STRIP
2075 else
2076   STRIP="$ac_cv_prog_STRIP"
2077 fi
2078
2079 fi
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2081
2082 # We need awk for the "check" target.  The system "awk" is bad on
2083 # some platforms.
2084 # Always define AMTAR for backward compatibility.
2085
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2087
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2089
2090
2091
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2096 _ACEOF
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2101 _ACEOF
2102
2103
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2107 _ACEOF
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2122 _ACEOF
2123
2124
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2126
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2128
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2130
2131
2132
2133
2134
2135
2136
2137           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2138
2139           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2140
2141           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2142
2143
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2146
2147
2148 top_builddir=`pwd`
2149
2150 ldap_subdir="/openldap"
2151
2152
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155   withval="$with_subdir"
2156   case "$withval" in
2157         no) ldap_subdir=""
2158                 ;;
2159         yes)
2160                 ;;
2161         /*|\\*)
2162                 ldap_subdir="$withval"
2163                 ;;
2164         *)
2165                 ldap_subdir="/$withval"
2166                 ;;
2167 esac
2168
2169 fi;
2170
2171 # OpenLDAP --enable-debug
2172
2173         # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175   enableval="$enable_debug"
2176
2177         ol_arg=invalid
2178         for ol_val in auto yes no ; do
2179                 if test "$enableval" = "$ol_val" ; then
2180                         ol_arg="$ol_val"
2181                 fi
2182         done
2183         if test "$ol_arg" = "invalid" ; then
2184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186    { (exit 1); exit 1; }; }
2187         fi
2188         ol_enable_debug="$ol_arg"
2189
2190 else
2191         ol_enable_debug=yes
2192 fi;
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2195
2196         # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198   enableval="$enable_dynamic"
2199
2200         ol_arg=invalid
2201         for ol_val in auto yes no ; do
2202                 if test "$enableval" = "$ol_val" ; then
2203                         ol_arg="$ol_val"
2204                 fi
2205         done
2206         if test "$ol_arg" = "invalid" ; then
2207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209    { (exit 1); exit 1; }; }
2210         fi
2211         ol_enable_dynamic="$ol_arg"
2212
2213 else
2214         ol_enable_dynamic=no
2215 fi;
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2218
2219         # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221   enableval="$enable_syslog"
2222
2223         ol_arg=invalid
2224         for ol_val in auto yes no ; do
2225                 if test "$enableval" = "$ol_val" ; then
2226                         ol_arg="$ol_val"
2227                 fi
2228         done
2229         if test "$ol_arg" = "invalid" ; then
2230                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232    { (exit 1); exit 1; }; }
2233         fi
2234         ol_enable_syslog="$ol_arg"
2235
2236 else
2237         ol_enable_syslog=auto
2238 fi;
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2241
2242         # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244   enableval="$enable_proctitle"
2245
2246         ol_arg=invalid
2247         for ol_val in auto yes no ; do
2248                 if test "$enableval" = "$ol_val" ; then
2249                         ol_arg="$ol_val"
2250                 fi
2251         done
2252         if test "$ol_arg" = "invalid" ; then
2253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255    { (exit 1); exit 1; }; }
2256         fi
2257         ol_enable_proctitle="$ol_arg"
2258
2259 else
2260         ol_enable_proctitle=yes
2261 fi;
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2266
2267         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269   enableval="$enable_ipv6"
2270
2271         ol_arg=invalid
2272         for ol_val in auto yes no ; do
2273                 if test "$enableval" = "$ol_val" ; then
2274                         ol_arg="$ol_val"
2275                 fi
2276         done
2277         if test "$ol_arg" = "invalid" ; then
2278                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280    { (exit 1); exit 1; }; }
2281         fi
2282         ol_enable_ipv6="$ol_arg"
2283
2284 else
2285         ol_enable_ipv6=auto
2286 fi;
2287 # end --enable-ipv6
2288 # OpenLDAP --enable-local
2289
2290         # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292   enableval="$enable_local"
2293
2294         ol_arg=invalid
2295         for ol_val in auto yes no ; do
2296                 if test "$enableval" = "$ol_val" ; then
2297                         ol_arg="$ol_val"
2298                 fi
2299         done
2300         if test "$ol_arg" = "invalid" ; then
2301                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303    { (exit 1); exit 1; }; }
2304         fi
2305         ol_enable_local="$ol_arg"
2306
2307 else
2308         ol_enable_local=auto
2309 fi;
2310 # end --enable-local
2311
2312 # OpenLDAP --with-cyrus_sasl
2313
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316   withval="$with_cyrus_sasl"
2317
2318         ol_arg=invalid
2319         for ol_val in auto yes no  ; do
2320                 if test "$withval" = "$ol_val" ; then
2321                         ol_arg="$ol_val"
2322                 fi
2323         done
2324         if test "$ol_arg" = "invalid" ; then
2325                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327    { (exit 1); exit 1; }; }
2328         fi
2329         ol_with_cyrus_sasl="$ol_arg"
2330
2331 else
2332         ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2334
2335 # OpenLDAP --with-fetch
2336
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339   withval="$with_fetch"
2340
2341         ol_arg=invalid
2342         for ol_val in auto yes no  ; do
2343                 if test "$withval" = "$ol_val" ; then
2344                         ol_arg="$ol_val"
2345                 fi
2346         done
2347         if test "$ol_arg" = "invalid" ; then
2348                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350    { (exit 1); exit 1; }; }
2351         fi
2352         ol_with_fetch="$ol_arg"
2353
2354 else
2355         ol_with_fetch="auto"
2356 fi; # end --with-fetch
2357
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2360
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363   withval="$with_threads"
2364
2365         ol_arg=invalid
2366         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2367                 if test "$withval" = "$ol_val" ; then
2368                         ol_arg="$ol_val"
2369                 fi
2370         done
2371         if test "$ol_arg" = "invalid" ; then
2372                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374    { (exit 1); exit 1; }; }
2375         fi
2376         ol_with_threads="$ol_arg"
2377
2378 else
2379         ol_with_threads="auto"
2380 fi; # end --with-threads
2381
2382 # OpenLDAP --with-tls
2383
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2386   withval="$with_tls"
2387
2388         ol_arg=invalid
2389         for ol_val in auto ssleay openssl yes no  ; do
2390                 if test "$withval" = "$ol_val" ; then
2391                         ol_arg="$ol_val"
2392                 fi
2393         done
2394         if test "$ol_arg" = "invalid" ; then
2395                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397    { (exit 1); exit 1; }; }
2398         fi
2399         ol_with_tls="$ol_arg"
2400
2401 else
2402         ol_with_tls="auto"
2403 fi; # end --with-tls
2404
2405 # OpenLDAP --with-yielding_select
2406
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409   withval="$with_yielding_select"
2410
2411         ol_arg=invalid
2412         for ol_val in auto yes no manual  ; do
2413                 if test "$withval" = "$ol_val" ; then
2414                         ol_arg="$ol_val"
2415                 fi
2416         done
2417         if test "$ol_arg" = "invalid" ; then
2418                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420    { (exit 1); exit 1; }; }
2421         fi
2422         ol_with_yielding_select="$ol_arg"
2423
2424 else
2425         ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2427
2428 # OpenLDAP --with-multiple_precision
2429
2430 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2431 if test "${with_multiple_precision+set}" = set; then
2432   withval="$with_multiple_precision"
2433
2434         ol_arg=invalid
2435         for ol_val in auto bignum gmp yes no  ; do
2436                 if test "$withval" = "$ol_val" ; then
2437                         ol_arg="$ol_val"
2438                 fi
2439         done
2440         if test "$ol_arg" = "invalid" ; then
2441                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2442 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2443    { (exit 1); exit 1; }; }
2444         fi
2445         ol_with_multiple_precision="$ol_arg"
2446
2447 else
2448         ol_with_multiple_precision="auto"
2449 fi; # end --with-multiple_precision
2450
2451
2452
2453 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2454 if test "${enable_xxslapdoptions+set}" = set; then
2455   enableval="$enable_xxslapdoptions"
2456
2457 fi;
2458 # OpenLDAP --enable-slapd
2459
2460         # Check whether --enable-slapd or --disable-slapd was given.
2461 if test "${enable_slapd+set}" = set; then
2462   enableval="$enable_slapd"
2463
2464         ol_arg=invalid
2465         for ol_val in auto yes no ; do
2466                 if test "$enableval" = "$ol_val" ; then
2467                         ol_arg="$ol_val"
2468                 fi
2469         done
2470         if test "$ol_arg" = "invalid" ; then
2471                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2472 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2473    { (exit 1); exit 1; }; }
2474         fi
2475         ol_enable_slapd="$ol_arg"
2476
2477 else
2478         ol_enable_slapd=yes
2479 fi;
2480 # end --enable-slapd
2481 # OpenLDAP --enable-aci
2482
2483         # Check whether --enable-aci or --disable-aci was given.
2484 if test "${enable_aci+set}" = set; then
2485   enableval="$enable_aci"
2486
2487         ol_arg=invalid
2488         for ol_val in auto yes no ; do
2489                 if test "$enableval" = "$ol_val" ; then
2490                         ol_arg="$ol_val"
2491                 fi
2492         done
2493         if test "$ol_arg" = "invalid" ; then
2494                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2496    { (exit 1); exit 1; }; }
2497         fi
2498         ol_enable_aci="$ol_arg"
2499
2500 else
2501         ol_enable_aci=no
2502 fi;
2503 # end --enable-aci
2504 # OpenLDAP --enable-cleartext
2505
2506         # Check whether --enable-cleartext or --disable-cleartext was given.
2507 if test "${enable_cleartext+set}" = set; then
2508   enableval="$enable_cleartext"
2509
2510         ol_arg=invalid
2511         for ol_val in auto yes no ; do
2512                 if test "$enableval" = "$ol_val" ; then
2513                         ol_arg="$ol_val"
2514                 fi
2515         done
2516         if test "$ol_arg" = "invalid" ; then
2517                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2519    { (exit 1); exit 1; }; }
2520         fi
2521         ol_enable_cleartext="$ol_arg"
2522
2523 else
2524         ol_enable_cleartext=yes
2525 fi;
2526 # end --enable-cleartext
2527 # OpenLDAP --enable-crypt
2528
2529         # Check whether --enable-crypt or --disable-crypt was given.
2530 if test "${enable_crypt+set}" = set; then
2531   enableval="$enable_crypt"
2532
2533         ol_arg=invalid
2534         for ol_val in auto yes no ; do
2535                 if test "$enableval" = "$ol_val" ; then
2536                         ol_arg="$ol_val"
2537                 fi
2538         done
2539         if test "$ol_arg" = "invalid" ; then
2540                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2542    { (exit 1); exit 1; }; }
2543         fi
2544         ol_enable_crypt="$ol_arg"
2545
2546 else
2547         ol_enable_crypt=no
2548 fi;
2549 # end --enable-crypt
2550 # OpenLDAP --enable-lmpasswd
2551
2552         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2553 if test "${enable_lmpasswd+set}" = set; then
2554   enableval="$enable_lmpasswd"
2555
2556         ol_arg=invalid
2557         for ol_val in auto yes no ; do
2558                 if test "$enableval" = "$ol_val" ; then
2559                         ol_arg="$ol_val"
2560                 fi
2561         done
2562         if test "$ol_arg" = "invalid" ; then
2563                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2565    { (exit 1); exit 1; }; }
2566         fi
2567         ol_enable_lmpasswd="$ol_arg"
2568
2569 else
2570         ol_enable_lmpasswd=no
2571 fi;
2572 # end --enable-lmpasswd
2573 # OpenLDAP --enable-spasswd
2574
2575         # Check whether --enable-spasswd or --disable-spasswd was given.
2576 if test "${enable_spasswd+set}" = set; then
2577   enableval="$enable_spasswd"
2578
2579         ol_arg=invalid
2580         for ol_val in auto yes no ; do
2581                 if test "$enableval" = "$ol_val" ; then
2582                         ol_arg="$ol_val"
2583                 fi
2584         done
2585         if test "$ol_arg" = "invalid" ; then
2586                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2588    { (exit 1); exit 1; }; }
2589         fi
2590         ol_enable_spasswd="$ol_arg"
2591
2592 else
2593         ol_enable_spasswd=no
2594 fi;
2595 # end --enable-spasswd
2596 # OpenLDAP --enable-modules
2597
2598         # Check whether --enable-modules or --disable-modules was given.
2599 if test "${enable_modules+set}" = set; then
2600   enableval="$enable_modules"
2601
2602         ol_arg=invalid
2603         for ol_val in auto yes no ; do
2604                 if test "$enableval" = "$ol_val" ; then
2605                         ol_arg="$ol_val"
2606                 fi
2607         done
2608         if test "$ol_arg" = "invalid" ; then
2609                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2611    { (exit 1); exit 1; }; }
2612         fi
2613         ol_enable_modules="$ol_arg"
2614
2615 else
2616         ol_enable_modules=no
2617 fi;
2618 # end --enable-modules
2619 ol_enable_multimaster=${ol_enable_multimaster-no}
2620 # OpenLDAP --enable-rewrite
2621
2622         # Check whether --enable-rewrite or --disable-rewrite was given.
2623 if test "${enable_rewrite+set}" = set; then
2624   enableval="$enable_rewrite"
2625
2626         ol_arg=invalid
2627         for ol_val in auto yes no ; do
2628                 if test "$enableval" = "$ol_val" ; then
2629                         ol_arg="$ol_val"
2630                 fi
2631         done
2632         if test "$ol_arg" = "invalid" ; then
2633                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2635    { (exit 1); exit 1; }; }
2636         fi
2637         ol_enable_rewrite="$ol_arg"
2638
2639 else
2640         ol_enable_rewrite=auto
2641 fi;
2642 # end --enable-rewrite
2643 # OpenLDAP --enable-rlookups
2644
2645         # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647   enableval="$enable_rlookups"
2648
2649         ol_arg=invalid
2650         for ol_val in auto yes no ; do
2651                 if test "$enableval" = "$ol_val" ; then
2652                         ol_arg="$ol_val"
2653                 fi
2654         done
2655         if test "$ol_arg" = "invalid" ; then
2656                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658    { (exit 1); exit 1; }; }
2659         fi
2660         ol_enable_rlookups="$ol_arg"
2661
2662 else
2663         ol_enable_rlookups=no
2664 fi;
2665 # end --enable-rlookups
2666 # OpenLDAP --enable-slapi
2667
2668         # Check whether --enable-slapi or --disable-slapi was given.
2669 if test "${enable_slapi+set}" = set; then
2670   enableval="$enable_slapi"
2671
2672         ol_arg=invalid
2673         for ol_val in auto yes no ; do
2674                 if test "$enableval" = "$ol_val" ; then
2675                         ol_arg="$ol_val"
2676                 fi
2677         done
2678         if test "$ol_arg" = "invalid" ; then
2679                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2681    { (exit 1); exit 1; }; }
2682         fi
2683         ol_enable_slapi="$ol_arg"
2684
2685 else
2686         ol_enable_slapi=no
2687 fi;
2688 # end --enable-slapi
2689 # OpenLDAP --enable-slp
2690
2691         # Check whether --enable-slp or --disable-slp was given.
2692 if test "${enable_slp+set}" = set; then
2693   enableval="$enable_slp"
2694
2695         ol_arg=invalid
2696         for ol_val in auto yes no ; do
2697                 if test "$enableval" = "$ol_val" ; then
2698                         ol_arg="$ol_val"
2699                 fi
2700         done
2701         if test "$ol_arg" = "invalid" ; then
2702                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2704    { (exit 1); exit 1; }; }
2705         fi
2706         ol_enable_slp="$ol_arg"
2707
2708 else
2709         ol_enable_slp=no
2710 fi;
2711 # end --enable-slp
2712 # OpenLDAP --enable-wrappers
2713
2714         # Check whether --enable-wrappers or --disable-wrappers was given.
2715 if test "${enable_wrappers+set}" = set; then
2716   enableval="$enable_wrappers"
2717
2718         ol_arg=invalid
2719         for ol_val in auto yes no ; do
2720                 if test "$enableval" = "$ol_val" ; then
2721                         ol_arg="$ol_val"
2722                 fi
2723         done
2724         if test "$ol_arg" = "invalid" ; then
2725                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2727    { (exit 1); exit 1; }; }
2728         fi
2729         ol_enable_wrappers="$ol_arg"
2730
2731 else
2732         ol_enable_wrappers=no
2733 fi;
2734 # end --enable-wrappers
2735
2736 Backends="bdb \
2737         dnssrv \
2738         hdb \
2739         ldap \
2740         ldbm \
2741         meta \
2742         monitor \
2743         null \
2744         passwd \
2745         perl \
2746         relay \
2747         shell \
2748         sql"
2749
2750 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2751 if test "${enable_xxslapbackends+set}" = set; then
2752   enableval="$enable_xxslapbackends"
2753
2754 fi;
2755
2756 # OpenLDAP --enable-backends
2757
2758         # Check whether --enable-backends or --disable-backends was given.
2759 if test "${enable_backends+set}" = set; then
2760   enableval="$enable_backends"
2761
2762         ol_arg=invalid
2763         for ol_val in no yes mod ; do
2764                 if test "$enableval" = "$ol_val" ; then
2765                         ol_arg="$ol_val"
2766                 fi
2767         done
2768         if test "$ol_arg" = "invalid" ; then
2769                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2771    { (exit 1); exit 1; }; }
2772         fi
2773         ol_enable_backends="$ol_arg"
2774
2775 fi;
2776 # end --enable-backends
2777 # OpenLDAP --enable-bdb
2778
2779         # Check whether --enable-bdb or --disable-bdb was given.
2780 if test "${enable_bdb+set}" = set; then
2781   enableval="$enable_bdb"
2782
2783         ol_arg=invalid
2784         for ol_val in no yes mod ; do
2785                 if test "$enableval" = "$ol_val" ; then
2786                         ol_arg="$ol_val"
2787                 fi
2788         done
2789         if test "$ol_arg" = "invalid" ; then
2790                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2791 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2792    { (exit 1); exit 1; }; }
2793         fi
2794         ol_enable_bdb="$ol_arg"
2795
2796 else
2797         ol_enable_bdb=${ol_enable_backends:-yes}
2798 fi;
2799 # end --enable-bdb
2800 # OpenLDAP --enable-dnssrv
2801
2802         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2803 if test "${enable_dnssrv+set}" = set; then
2804   enableval="$enable_dnssrv"
2805
2806         ol_arg=invalid
2807         for ol_val in no yes mod ; do
2808                 if test "$enableval" = "$ol_val" ; then
2809                         ol_arg="$ol_val"
2810                 fi
2811         done
2812         if test "$ol_arg" = "invalid" ; then
2813                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2815    { (exit 1); exit 1; }; }
2816         fi
2817         ol_enable_dnssrv="$ol_arg"
2818
2819 else
2820         ol_enable_dnssrv=${ol_enable_backends:-no}
2821 fi;
2822 # end --enable-dnssrv
2823 # OpenLDAP --enable-hdb
2824
2825         # Check whether --enable-hdb or --disable-hdb was given.
2826 if test "${enable_hdb+set}" = set; then
2827   enableval="$enable_hdb"
2828
2829         ol_arg=invalid
2830         for ol_val in no yes mod ; do
2831                 if test "$enableval" = "$ol_val" ; then
2832                         ol_arg="$ol_val"
2833                 fi
2834         done
2835         if test "$ol_arg" = "invalid" ; then
2836                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2838    { (exit 1); exit 1; }; }
2839         fi
2840         ol_enable_hdb="$ol_arg"
2841
2842 else
2843         ol_enable_hdb=${ol_enable_backends:-yes}
2844 fi;
2845 # end --enable-hdb
2846 # OpenLDAP --enable-ldap
2847
2848         # Check whether --enable-ldap or --disable-ldap was given.
2849 if test "${enable_ldap+set}" = set; then
2850   enableval="$enable_ldap"
2851
2852         ol_arg=invalid
2853         for ol_val in no yes mod ; do
2854                 if test "$enableval" = "$ol_val" ; then
2855                         ol_arg="$ol_val"
2856                 fi
2857         done
2858         if test "$ol_arg" = "invalid" ; then
2859                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2861    { (exit 1); exit 1; }; }
2862         fi
2863         ol_enable_ldap="$ol_arg"
2864
2865 else
2866         ol_enable_ldap=${ol_enable_backends:-no}
2867 fi;
2868 # end --enable-ldap
2869 # OpenLDAP --enable-ldbm
2870
2871         # Check whether --enable-ldbm or --disable-ldbm was given.
2872 if test "${enable_ldbm+set}" = set; then
2873   enableval="$enable_ldbm"
2874
2875         ol_arg=invalid
2876         for ol_val in no yes mod ; do
2877                 if test "$enableval" = "$ol_val" ; then
2878                         ol_arg="$ol_val"
2879                 fi
2880         done
2881         if test "$ol_arg" = "invalid" ; then
2882                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2884    { (exit 1); exit 1; }; }
2885         fi
2886         ol_enable_ldbm="$ol_arg"
2887
2888 else
2889         ol_enable_ldbm=${ol_enable_backends:-no}
2890 fi;
2891 # end --enable-ldbm
2892
2893 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2894 if test "${with_ldbm_api+set}" = set; then
2895   withval="$with_ldbm_api"
2896
2897         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2898 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2899         enable_ldbm_api="$with_ldbm_api"
2900 fi;
2901 # OpenLDAP --enable-ldbm_api
2902
2903         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2904 if test "${enable_ldbm_api+set}" = set; then
2905   enableval="$enable_ldbm_api"
2906
2907         ol_arg=invalid
2908         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2909                 if test "$enableval" = "$ol_val" ; then
2910                         ol_arg="$ol_val"
2911                 fi
2912         done
2913         if test "$ol_arg" = "invalid" ; then
2914                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2916    { (exit 1); exit 1; }; }
2917         fi
2918         ol_enable_ldbm_api="$ol_arg"
2919
2920 else
2921         ol_enable_ldbm_api=auto
2922 fi;
2923 # end --enable-ldbm_api
2924
2925
2926 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2927 if test "${with_ldbm_type+set}" = set; then
2928   withval="$with_ldbm_type"
2929
2930         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2931 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2932         enable_ldbm_type="$with_ldbm_type"
2933 fi;
2934 # OpenLDAP --enable-ldbm_type
2935
2936         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938   enableval="$enable_ldbm_type"
2939
2940         ol_arg=invalid
2941         for ol_val in auto btree hash ; do
2942                 if test "$enableval" = "$ol_val" ; then
2943                         ol_arg="$ol_val"
2944                 fi
2945         done
2946         if test "$ol_arg" = "invalid" ; then
2947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949    { (exit 1); exit 1; }; }
2950         fi
2951         ol_enable_ldbm_type="$ol_arg"
2952
2953 else
2954         ol_enable_ldbm_type=auto
2955 fi;
2956 # end --enable-ldbm_type
2957
2958 # OpenLDAP --enable-meta
2959
2960         # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962   enableval="$enable_meta"
2963
2964         ol_arg=invalid
2965         for ol_val in no yes mod ; do
2966                 if test "$enableval" = "$ol_val" ; then
2967                         ol_arg="$ol_val"
2968                 fi
2969         done
2970         if test "$ol_arg" = "invalid" ; then
2971                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973    { (exit 1); exit 1; }; }
2974         fi
2975         ol_enable_meta="$ol_arg"
2976
2977 else
2978         ol_enable_meta=${ol_enable_backends:-no}
2979 fi;
2980 # end --enable-meta
2981 # OpenLDAP --enable-monitor
2982
2983         # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985   enableval="$enable_monitor"
2986
2987         ol_arg=invalid
2988         for ol_val in no yes mod ; do
2989                 if test "$enableval" = "$ol_val" ; then
2990                         ol_arg="$ol_val"
2991                 fi
2992         done
2993         if test "$ol_arg" = "invalid" ; then
2994                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996    { (exit 1); exit 1; }; }
2997         fi
2998         ol_enable_monitor="$ol_arg"
2999
3000 else
3001         ol_enable_monitor=${ol_enable_backends:-yes}
3002 fi;
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3005
3006         # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008   enableval="$enable_null"
3009
3010         ol_arg=invalid
3011         for ol_val in no yes mod ; do
3012                 if test "$enableval" = "$ol_val" ; then
3013                         ol_arg="$ol_val"
3014                 fi
3015         done
3016         if test "$ol_arg" = "invalid" ; then
3017                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019    { (exit 1); exit 1; }; }
3020         fi
3021         ol_enable_null="$ol_arg"
3022
3023 else
3024         ol_enable_null=${ol_enable_backends:-no}
3025 fi;
3026 # end --enable-null
3027 # OpenLDAP --enable-passwd
3028
3029         # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031   enableval="$enable_passwd"
3032
3033         ol_arg=invalid
3034         for ol_val in no yes mod ; do
3035                 if test "$enableval" = "$ol_val" ; then
3036                         ol_arg="$ol_val"
3037                 fi
3038         done
3039         if test "$ol_arg" = "invalid" ; then
3040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042    { (exit 1); exit 1; }; }
3043         fi
3044         ol_enable_passwd="$ol_arg"
3045
3046 else
3047         ol_enable_passwd=${ol_enable_backends:-no}
3048 fi;
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3051
3052         # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054   enableval="$enable_perl"
3055
3056         ol_arg=invalid
3057         for ol_val in no yes mod ; do
3058                 if test "$enableval" = "$ol_val" ; then
3059                         ol_arg="$ol_val"
3060                 fi
3061         done
3062         if test "$ol_arg" = "invalid" ; then
3063                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065    { (exit 1); exit 1; }; }
3066         fi
3067         ol_enable_perl="$ol_arg"
3068
3069 else
3070         ol_enable_perl=${ol_enable_backends:-no}
3071 fi;
3072 # end --enable-perl
3073 # OpenLDAP --enable-relay
3074
3075         # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077   enableval="$enable_relay"
3078
3079         ol_arg=invalid
3080         for ol_val in no yes mod ; do
3081                 if test "$enableval" = "$ol_val" ; then
3082                         ol_arg="$ol_val"
3083                 fi
3084         done
3085         if test "$ol_arg" = "invalid" ; then
3086                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088    { (exit 1); exit 1; }; }
3089         fi
3090         ol_enable_relay="$ol_arg"
3091
3092 else
3093         ol_enable_relay=${ol_enable_backends:-yes}
3094 fi;
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3097
3098         # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100   enableval="$enable_shell"
3101
3102         ol_arg=invalid
3103         for ol_val in no yes mod ; do
3104                 if test "$enableval" = "$ol_val" ; then
3105                         ol_arg="$ol_val"
3106                 fi
3107         done
3108         if test "$ol_arg" = "invalid" ; then
3109                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111    { (exit 1); exit 1; }; }
3112         fi
3113         ol_enable_shell="$ol_arg"
3114
3115 else
3116         ol_enable_shell=${ol_enable_backends:-no}
3117 fi;
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3120
3121         # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123   enableval="$enable_sql"
3124
3125         ol_arg=invalid
3126         for ol_val in no yes mod ; do
3127                 if test "$enableval" = "$ol_val" ; then
3128                         ol_arg="$ol_val"
3129                 fi
3130         done
3131         if test "$ol_arg" = "invalid" ; then
3132                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134    { (exit 1); exit 1; }; }
3135         fi
3136         ol_enable_sql="$ol_arg"
3137
3138 else
3139         ol_enable_sql=${ol_enable_backends:-no}
3140 fi;
3141 # end --enable-sql
3142
3143 Overlays="accesslog \
3144         denyop \
3145         dyngroup \
3146         dynlist \
3147         lastmod \
3148         ppolicy \
3149         proxycache \
3150         refint \
3151         retcode \
3152         rwm \
3153         syncprov \
3154         translucent \
3155         unique \
3156         valsort"
3157
3158 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3159 if test "${enable_xxslapoverlays+set}" = set; then
3160   enableval="$enable_xxslapoverlays"
3161
3162 fi;
3163
3164 # OpenLDAP --enable-overlays
3165
3166         # Check whether --enable-overlays or --disable-overlays was given.
3167 if test "${enable_overlays+set}" = set; then
3168   enableval="$enable_overlays"
3169
3170         ol_arg=invalid
3171         for ol_val in no yes mod ; do
3172                 if test "$enableval" = "$ol_val" ; then
3173                         ol_arg="$ol_val"
3174                 fi
3175         done
3176         if test "$ol_arg" = "invalid" ; then
3177                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3179    { (exit 1); exit 1; }; }
3180         fi
3181         ol_enable_overlays="$ol_arg"
3182
3183 fi;
3184 # end --enable-overlays
3185 # OpenLDAP --enable-accesslog
3186
3187         # Check whether --enable-accesslog or --disable-accesslog was given.
3188 if test "${enable_accesslog+set}" = set; then
3189   enableval="$enable_accesslog"
3190
3191         ol_arg=invalid
3192         for ol_val in no yes mod ; do
3193                 if test "$enableval" = "$ol_val" ; then
3194                         ol_arg="$ol_val"
3195                 fi
3196         done
3197         if test "$ol_arg" = "invalid" ; then
3198                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3200    { (exit 1); exit 1; }; }
3201         fi
3202         ol_enable_accesslog="$ol_arg"
3203
3204 else
3205         ol_enable_accesslog=${ol_enable_overlays:-no}
3206 fi;
3207 # end --enable-accesslog
3208
3209 # OpenLDAP --enable-denyop
3210
3211         # Check whether --enable-denyop or --disable-denyop was given.
3212 if test "${enable_denyop+set}" = set; then
3213   enableval="$enable_denyop"
3214
3215         ol_arg=invalid
3216         for ol_val in no yes mod ; do
3217                 if test "$enableval" = "$ol_val" ; then
3218                         ol_arg="$ol_val"
3219                 fi
3220         done
3221         if test "$ol_arg" = "invalid" ; then
3222                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3224    { (exit 1); exit 1; }; }
3225         fi
3226         ol_enable_denyop="$ol_arg"
3227
3228 else
3229         ol_enable_denyop=${ol_enable_overlays:-no}
3230 fi;
3231 # end --enable-denyop
3232
3233 # OpenLDAP --enable-dyngroup
3234
3235         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237   enableval="$enable_dyngroup"
3238
3239         ol_arg=invalid
3240         for ol_val in no yes mod ; do
3241                 if test "$enableval" = "$ol_val" ; then
3242                         ol_arg="$ol_val"
3243                 fi
3244         done
3245         if test "$ol_arg" = "invalid" ; then
3246                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248    { (exit 1); exit 1; }; }
3249         fi
3250         ol_enable_dyngroup="$ol_arg"
3251
3252 else
3253         ol_enable_dyngroup=${ol_enable_overlays:-no}
3254 fi;
3255 # end --enable-dyngroup
3256
3257 # OpenLDAP --enable-dynlist
3258
3259         # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261   enableval="$enable_dynlist"
3262
3263         ol_arg=invalid
3264         for ol_val in no yes mod ; do
3265                 if test "$enableval" = "$ol_val" ; then
3266                         ol_arg="$ol_val"
3267                 fi
3268         done
3269         if test "$ol_arg" = "invalid" ; then
3270                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272    { (exit 1); exit 1; }; }
3273         fi
3274         ol_enable_dynlist="$ol_arg"
3275
3276 else
3277         ol_enable_dynlist=${ol_enable_overlays:-no}
3278 fi;
3279 # end --enable-dynlist
3280
3281 # OpenLDAP --enable-lastmod
3282
3283         # Check whether --enable-lastmod or --disable-lastmod was given.
3284 if test "${enable_lastmod+set}" = set; then
3285   enableval="$enable_lastmod"
3286
3287         ol_arg=invalid
3288         for ol_val in no yes mod ; do
3289                 if test "$enableval" = "$ol_val" ; then
3290                         ol_arg="$ol_val"
3291                 fi
3292         done
3293         if test "$ol_arg" = "invalid" ; then
3294                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3296    { (exit 1); exit 1; }; }
3297         fi
3298         ol_enable_lastmod="$ol_arg"
3299
3300 else
3301         ol_enable_lastmod=${ol_enable_overlays:-no}
3302 fi;
3303 # end --enable-lastmod
3304
3305 # OpenLDAP --enable-ppolicy
3306
3307         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3308 if test "${enable_ppolicy+set}" = set; then
3309   enableval="$enable_ppolicy"
3310
3311         ol_arg=invalid
3312         for ol_val in no yes mod ; do
3313                 if test "$enableval" = "$ol_val" ; then
3314                         ol_arg="$ol_val"
3315                 fi
3316         done
3317         if test "$ol_arg" = "invalid" ; then
3318                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3320    { (exit 1); exit 1; }; }
3321         fi
3322         ol_enable_ppolicy="$ol_arg"
3323
3324 else
3325         ol_enable_ppolicy=${ol_enable_overlays:-no}
3326 fi;
3327 # end --enable-ppolicy
3328
3329 # OpenLDAP --enable-proxycache
3330
3331         # Check whether --enable-proxycache or --disable-proxycache was given.
3332 if test "${enable_proxycache+set}" = set; then
3333   enableval="$enable_proxycache"
3334
3335         ol_arg=invalid
3336         for ol_val in no yes mod ; do
3337                 if test "$enableval" = "$ol_val" ; then
3338                         ol_arg="$ol_val"
3339                 fi
3340         done
3341         if test "$ol_arg" = "invalid" ; then
3342                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3344    { (exit 1); exit 1; }; }
3345         fi
3346         ol_enable_proxycache="$ol_arg"
3347
3348 else
3349         ol_enable_proxycache=${ol_enable_overlays:-no}
3350 fi;
3351 # end --enable-proxycache
3352
3353 # OpenLDAP --enable-refint
3354
3355         # Check whether --enable-refint or --disable-refint was given.
3356 if test "${enable_refint+set}" = set; then
3357   enableval="$enable_refint"
3358
3359         ol_arg=invalid
3360         for ol_val in no yes mod ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_refint="$ol_arg"
3371
3372 else
3373         ol_enable_refint=${ol_enable_overlays:-no}
3374 fi;
3375 # end --enable-refint
3376
3377 # OpenLDAP --enable-retcode
3378
3379         # Check whether --enable-retcode or --disable-retcode was given.
3380 if test "${enable_retcode+set}" = set; then
3381   enableval="$enable_retcode"
3382
3383         ol_arg=invalid
3384         for ol_val in no yes mod ; do
3385                 if test "$enableval" = "$ol_val" ; then
3386                         ol_arg="$ol_val"
3387                 fi
3388         done
3389         if test "$ol_arg" = "invalid" ; then
3390                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3392    { (exit 1); exit 1; }; }
3393         fi
3394         ol_enable_retcode="$ol_arg"
3395
3396 else
3397         ol_enable_retcode=${ol_enable_overlays:-no}
3398 fi;
3399 # end --enable-retcode
3400
3401 # OpenLDAP --enable-rwm
3402
3403         # Check whether --enable-rwm or --disable-rwm was given.
3404 if test "${enable_rwm+set}" = set; then
3405   enableval="$enable_rwm"
3406
3407         ol_arg=invalid
3408         for ol_val in no yes mod ; do
3409                 if test "$enableval" = "$ol_val" ; then
3410                         ol_arg="$ol_val"
3411                 fi
3412         done
3413         if test "$ol_arg" = "invalid" ; then
3414                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3416    { (exit 1); exit 1; }; }
3417         fi
3418         ol_enable_rwm="$ol_arg"
3419
3420 else
3421         ol_enable_rwm=${ol_enable_overlays:-no}
3422 fi;
3423 # end --enable-rwm
3424
3425 # OpenLDAP --enable-syncprov
3426
3427         # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429   enableval="$enable_syncprov"
3430
3431         ol_arg=invalid
3432         for ol_val in no yes mod ; do
3433                 if test "$enableval" = "$ol_val" ; then
3434                         ol_arg="$ol_val"
3435                 fi
3436         done
3437         if test "$ol_arg" = "invalid" ; then
3438                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440    { (exit 1); exit 1; }; }
3441         fi
3442         ol_enable_syncprov="$ol_arg"
3443
3444 else
3445         ol_enable_syncprov=${ol_enable_overlays:-yes}
3446 fi;
3447 # end --enable-syncprov
3448
3449 # OpenLDAP --enable-translucent
3450
3451         # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453   enableval="$enable_translucent"
3454
3455         ol_arg=invalid
3456         for ol_val in no yes mod ; do
3457                 if test "$enableval" = "$ol_val" ; then
3458                         ol_arg="$ol_val"
3459                 fi
3460         done
3461         if test "$ol_arg" = "invalid" ; then
3462                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464    { (exit 1); exit 1; }; }
3465         fi
3466         ol_enable_translucent="$ol_arg"
3467
3468 else
3469         ol_enable_translucent=${ol_enable_overlays:-no}
3470 fi;
3471 # end --enable-translucent
3472
3473 # OpenLDAP --enable-unique
3474
3475         # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477   enableval="$enable_unique"
3478
3479         ol_arg=invalid
3480         for ol_val in no yes mod ; do
3481                 if test "$enableval" = "$ol_val" ; then
3482                         ol_arg="$ol_val"
3483                 fi
3484         done
3485         if test "$ol_arg" = "invalid" ; then
3486                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488    { (exit 1); exit 1; }; }
3489         fi
3490         ol_enable_unique="$ol_arg"
3491
3492 else
3493         ol_enable_unique=${ol_enable_overlays:-no}
3494 fi;
3495 # end --enable-unique
3496
3497 # OpenLDAP --enable-valsort
3498
3499         # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501   enableval="$enable_valsort"
3502
3503         ol_arg=invalid
3504         for ol_val in no yes mod ; do
3505                 if test "$enableval" = "$ol_val" ; then
3506                         ol_arg="$ol_val"
3507                 fi
3508         done
3509         if test "$ol_arg" = "invalid" ; then
3510                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512    { (exit 1); exit 1; }; }
3513         fi
3514         ol_enable_valsort="$ol_arg"
3515
3516 else
3517         ol_enable_valsort=${ol_enable_overlays:-no}
3518 fi;
3519 # end --enable-valsort
3520
3521
3522 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3523 if test "${enable_xxslurpdoptions+set}" = set; then
3524   enableval="$enable_xxslurpdoptions"
3525
3526 fi;
3527 # OpenLDAP --enable-slurpd
3528
3529         # Check whether --enable-slurpd or --disable-slurpd was given.
3530 if test "${enable_slurpd+set}" = set; then
3531   enableval="$enable_slurpd"
3532
3533         ol_arg=invalid
3534         for ol_val in auto yes no ; do
3535                 if test "$enableval" = "$ol_val" ; then
3536                         ol_arg="$ol_val"
3537                 fi
3538         done
3539         if test "$ol_arg" = "invalid" ; then
3540                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3541 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3542    { (exit 1); exit 1; }; }
3543         fi
3544         ol_enable_slurpd="$ol_arg"
3545
3546 else
3547         ol_enable_slurpd=auto
3548 fi;
3549 # end --enable-slurpd
3550
3551 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3552 if test "${enable_xxliboptions+set}" = set; then
3553   enableval="$enable_xxliboptions"
3554
3555 fi;
3556 # Check whether --enable-static or --disable-static was given.
3557 if test "${enable_static+set}" = set; then
3558   enableval="$enable_static"
3559   p=${PACKAGE-default}
3560     case $enableval in
3561     yes) enable_static=yes ;;
3562     no) enable_static=no ;;
3563     *)
3564      enable_static=no
3565       # Look at the argument we got.  We use all the common list separators.
3566       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567       for pkg in $enableval; do
3568         IFS="$lt_save_ifs"
3569         if test "X$pkg" = "X$p"; then
3570           enable_static=yes
3571         fi
3572       done
3573       IFS="$lt_save_ifs"
3574       ;;
3575     esac
3576 else
3577   enable_static=yes
3578 fi;
3579
3580 # Check whether --enable-shared or --disable-shared was given.
3581 if test "${enable_shared+set}" = set; then
3582   enableval="$enable_shared"
3583   p=${PACKAGE-default}
3584     case $enableval in
3585     yes) enable_shared=yes ;;
3586     no) enable_shared=no ;;
3587     *)
3588       enable_shared=no
3589       # Look at the argument we got.  We use all the common list separators.
3590       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591       for pkg in $enableval; do
3592         IFS="$lt_save_ifs"
3593         if test "X$pkg" = "X$p"; then
3594           enable_shared=yes
3595         fi
3596       done
3597       IFS="$lt_save_ifs"
3598       ;;
3599     esac
3600 else
3601   enable_shared=yes
3602 fi;
3603
3604
3605
3606 # validate options
3607 if test $ol_enable_slapd = no ; then
3608                 if test $ol_enable_slapi = yes ; then
3609                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3610 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3611         fi
3612         case "$ol_enable_backends" in yes | mod)
3613                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3614 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3615         esac
3616         for i in $Backends; do
3617                 eval "ol_tmp=\$ol_enable_$i"
3618                 if test $ol_tmp != no ; then
3619                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3621                         eval "ol_enable_$i=no"
3622                 fi
3623         done
3624         if test $ol_enable_modules = yes ; then
3625                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3626 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3627         fi
3628         if test $ol_enable_multimaster = yes ; then
3629                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3631         fi
3632         if test $ol_enable_wrappers = yes ; then
3633                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3634 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3635         fi
3636         if test $ol_enable_rlookups = yes ; then
3637                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3638 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3639         fi
3640         if test $ol_enable_aci = yes ; then
3641                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3642 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3643         fi
3644         if test $ol_enable_ldbm_api != auto ; then
3645                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3647         fi
3648         if test $ol_enable_ldbm_type != auto ; then
3649                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3651         fi
3652         if test $ol_enable_slurpd = yes ; then
3653                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3654 echo "$as_me: error: slurpd requires slapd" >&2;}
3655    { (exit 1); exit 1; }; }
3656         fi
3657         if test $ol_enable_rewrite = yes ; then
3658                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3660         fi
3661                 case "$ol_enable_overlays" in yes | mod)
3662                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3664         esac
3665         for i in $Overlays; do
3666                 eval "ol_tmp=\$ol_enable_$i"
3667                 if test $ol_tmp != no ; then
3668                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3670                         eval "ol_enable_$i=no"
3671                 fi
3672         done
3673
3674         # force settings to no
3675         ol_enable_slapi=no
3676
3677         ol_enable_backends=
3678         ol_enable_overlays=
3679         ol_enable_modules=no
3680         ol_enable_multimaster=no
3681         ol_enable_rlookups=no
3682         ol_enable_aci=no
3683         ol_enable_wrappers=no
3684
3685         ol_enable_ldbm_api=no
3686         ol_enable_ldbm_type=no
3687
3688         ol_enable_slurpd=no
3689
3690         ol_enable_rewrite=no
3691
3692 elif test $ol_enable_ldbm = no ; then
3693
3694         if test $ol_enable_ldbm_api != auto ; then
3695                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3697         fi
3698
3699         if test $ol_enable_ldbm_type != auto ; then
3700                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3702         fi
3703
3704         if test $ol_enable_modules != yes &&
3705            test $ol_enable_bdb = no &&
3706            test $ol_enable_dnssrv = no &&
3707            test $ol_enable_hdb = no &&
3708            test $ol_enable_ldap = no &&
3709            test $ol_enable_meta = no &&
3710            test $ol_enable_monitor = no &&
3711            test $ol_enable_null = no &&
3712            test $ol_enable_passwd = no &&
3713            test $ol_enable_perl = no &&
3714            test $ol_enable_relay = no &&
3715            test $ol_enable_shell = no &&
3716            test $ol_enable_sql = no ; then
3717
3718                 if test $ol_enable_slapd = yes ; then
3719                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3720 echo "$as_me: error: slapd requires a backend" >&2;}
3721    { (exit 1); exit 1; }; }
3722                 else
3723                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3724 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3725                         ol_enable_slapd=no
3726                 fi
3727         fi
3728
3729         ol_enable_ldbm_api=no
3730         ol_enable_ldbm_type=no
3731
3732         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3733                 ol_enable_ldbm_api=berkeley
3734         fi
3735
3736 else
3737                 if test $ol_enable_ldbm_api = gdbm &&
3738            test $ol_enable_ldbm_type = btree ; then
3739                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3740 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3741    { (exit 1); exit 1; }; }
3742         fi
3743         if test $ol_enable_ldbm_api = mdbm &&
3744            test $ol_enable_ldbm_type = btree ; then
3745                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3746 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3747    { (exit 1); exit 1; }; }
3748         fi
3749         if test $ol_enable_ldbm_api = ndbm &&
3750            test $ol_enable_ldbm_type = btree ; then
3751                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3752 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3753    { (exit 1); exit 1; }; }
3754         fi
3755
3756         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3757                 if test $ol_enable_ldbm_api = auto ; then
3758                         ol_enable_ldbm_api=berkeley
3759                 elif test $ol_enable_ldbm_api != berkeley ; then
3760                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3761 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3762    { (exit 1); exit 1; }; }
3763                 fi
3764         fi
3765 fi
3766
3767 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3768         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3769 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3770    { (exit 1); exit 1; }; }
3771 fi
3772
3773 if test $ol_enable_slurpd = yes ; then
3774                 if test $ol_with_threads = no ; then
3775                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3776 echo "$as_me: error: slurpd requires threads" >&2;}
3777    { (exit 1); exit 1; }; }
3778         fi
3779 fi
3780
3781 if test $ol_enable_lmpasswd = yes ; then
3782         if test $ol_with_tls = no ; then
3783                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3784 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3785    { (exit 1); exit 1; }; }
3786         fi
3787 fi
3788
3789 if test $ol_enable_kbind = yes ; then
3790         if test $ol_with_kerberos = no ; then
3791                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3792 echo "$as_me: error: options require --with-kerberos" >&2;}
3793    { (exit 1); exit 1; }; }
3794         elif test $ol_with_kerberos = auto ; then
3795                 ol_with_kerberos=yes
3796         fi
3797
3798 elif test $ol_enable_kbind = no ; then
3799         if test $ol_with_kerberos = auto ; then
3800                 ol_with_kerberos=no
3801         elif test $ol_with_kerberos != no ; then
3802                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3803 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3804                 ol_with_kerberos=no
3805         fi
3806 fi
3807
3808 if test $ol_enable_spasswd = yes ; then
3809         if test $ol_with_cyrus_sasl = no ; then
3810                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3811 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3812    { (exit 1); exit 1; }; }
3813         fi
3814         ol_with_cyrus_sasl=yes
3815 fi
3816
3817 echo "$as_me:$LINENO: result: done" >&5
3818 echo "${ECHO_T}done" >&6
3819
3820 LDAP_LIBS=
3821 LDBM_LIBS=
3822 LTHREAD_LIBS=
3823 LUTIL_LIBS=
3824
3825 SLAPD_LIBS=
3826 SLURPD_LIBS=
3827
3828 BUILD_SLAPD=no
3829 BUILD_SLURPD=no
3830
3831 BUILD_THREAD=no
3832
3833 BUILD_SLAPI=no
3834 SLAPD_SLAPI_DEPEND=
3835
3836 BUILD_BDB=no
3837 BUILD_DNSSRV=no
3838 BUILD_HDB=no
3839 BUILD_LDAP=no
3840 BUILD_LDBM=no
3841 BUILD_META=no
3842 BUILD_MONITOR=no
3843 BUILD_NULL=no
3844 BUILD_PASSWD=no
3845 BUILD_PERL=no
3846 BUILD_RELAY=no
3847 BUILD_SHELL=no
3848 BUILD_SQL=no
3849
3850 BUILD_ACCESSLOG=no
3851 BUILD_DENYOP=no
3852 BUILD_DYNGROUP=no
3853 BUILD_DYNLIST=no
3854 BUILD_LASTMOD=no
3855 BUILD_PPOLICY=no
3856 BUILD_PROXYCACHE=no
3857 BUILD_REFINT=no
3858 BUILD_RETCODE=no
3859 BUILD_RWM=no
3860 BUILD_SYNCPROV=no
3861 BUILD_TRANSLUCENT=no
3862 BUILD_UNIQUE=no
3863 BUILD_VALSORT=no
3864
3865 SLAPD_STATIC_OVERLAYS=
3866 SLAPD_DYNAMIC_OVERLAYS=
3867
3868 SLAPD_MODULES_LDFLAGS=
3869 SLAPD_MODULES_CPPFLAGS=
3870
3871 SLAPD_STATIC_BACKENDS=back-ldif
3872 SLAPD_DYNAMIC_BACKENDS=
3873
3874 SLAPD_PERL_LDFLAGS=
3875 MOD_PERL_LDFLAGS=
3876 PERL_CPPFLAGS=
3877
3878 SLAPD_SQL_LDFLAGS=
3879 SLAPD_SQL_LIBS=
3880 SLAPD_SQL_INCLUDES=
3881
3882 KRB4_LIBS=
3883 KRB5_LIBS=
3884 SASL_LIBS=
3885 TLS_LIBS=
3886 MODULES_LIBS=
3887 SLAPI_LIBS=
3888 LIBSLAPI=
3889 LIBSLAPITOOLS=
3890 AUTH_LIBS=
3891
3892 SLAPD_SLP_LIBS=
3893 SLAPD_GMP_LIBS=
3894
3895
3896
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3899 _ACEOF
3900
3901
3902
3903
3904 ol_aix_threads=no
3905 case "$target" in
3906 *-*-aix*)       if test -z "$CC" ; then
3907                 case "$ol_with_threads" in
3908                 auto | yes |  posix) ol_aix_threads=yes ;;
3909                 esac
3910         fi
3911 ;;
3912 esac
3913
3914 if test $ol_aix_threads = yes ; then
3915         if test -z "${CC}" ; then
3916                 for ac_prog in cc_r xlc_r cc
3917 do
3918   # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923   echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925   if test -n "$CC"; then
3926   ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933   for ac_exec_ext in '' $ac_executable_extensions; do
3934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935     ac_cv_prog_CC="$ac_prog"
3936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940 done
3941
3942 fi
3943 fi
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946   echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3948 else
3949   echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3951 fi
3952
3953   test -n "$CC" && break
3954 done
3955
3956
3957                 if test "$CC" = cc ; then
3958                                                 if test $ol_with_threads != auto ; then
3959                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961    { (exit 1); exit 1; }; }
3962                         else
3963                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3965                         fi
3966                         ol_with_threads=no
3967                 fi
3968         fi
3969
3970         case ${CC} in cc_r | xlc_r)
3971                 ol_with_threads=posix
3972                 ol_cv_pthread_create=yes
3973                 ;;
3974         esac
3975 fi
3976
3977 if test -z "${CC}"; then
3978         for ac_prog in cc gcc
3979 do
3980   # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$CC"; then
3988   ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_CC="$ac_prog"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004 fi
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008   echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4010 else
4011   echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015   test -n "$CC" && break
4016 done
4017 test -n "$CC" || CC="missing"
4018
4019
4020         if test "${CC}" = "missing" ; then
4021                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4022 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4023    { (exit 1); exit 1; }; }
4024         fi
4025 fi
4026
4027 if test -z "${AR}"; then
4028         for ac_prog in ar gar
4029 do
4030   # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   if test -n "$AR"; then
4038   ac_cv_prog_AR="$AR" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045   for ac_exec_ext in '' $ac_executable_extensions; do
4046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047     ac_cv_prog_AR="$ac_prog"
4048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052 done
4053
4054 fi
4055 fi
4056 AR=$ac_cv_prog_AR
4057 if test -n "$AR"; then
4058   echo "$as_me:$LINENO: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4060 else
4061   echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4063 fi
4064
4065   test -n "$AR" && break
4066 done
4067 test -n "$AR" || AR="missing"
4068
4069
4070         if test "${AR}" = "missing" ; then
4071                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4072 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4073    { (exit 1); exit 1; }; }
4074         fi
4075 fi
4076
4077
4078
4079
4080
4081 # Check whether --enable-fast-install or --disable-fast-install was given.
4082 if test "${enable_fast_install+set}" = set; then
4083   enableval="$enable_fast_install"
4084   p=${PACKAGE-default}
4085     case $enableval in
4086     yes) enable_fast_install=yes ;;
4087     no) enable_fast_install=no ;;
4088     *)
4089       enable_fast_install=no
4090       # Look at the argument we got.  We use all the common list separators.
4091       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092       for pkg in $enableval; do
4093         IFS="$lt_save_ifs"
4094         if test "X$pkg" = "X$p"; then
4095           enable_fast_install=yes
4096         fi
4097       done
4098       IFS="$lt_save_ifs"
4099       ;;
4100     esac
4101 else
4102   enable_fast_install=yes
4103 fi;
4104
4105 DEPDIR="${am__leading_dot}deps"
4106
4107           ac_config_commands="$ac_config_commands depfiles"
4108
4109
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4112 am__doit:
4113         @echo done
4114 .PHONY: am__doit
4115 END
4116 # If we don't find an include directive, just comment out the code.
4117 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4118 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4119 am__include="#"
4120 am__quote=
4121 _am_result=none
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # We grep out `Entering directory' and `Leaving directory'
4125 # messages which can occur if `w' ends up in MAKEFLAGS.
4126 # In particular we don't look at `^make:' because GNU make might
4127 # be invoked under some other name (usually "gmake"), in which
4128 # case it prints its new name instead of `make'.
4129 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4130    am__include=include
4131    am__quote=
4132    _am_result=GNU
4133 fi
4134 # Now try BSD make style include.
4135 if test "$am__include" = "#"; then
4136    echo '.include "confinc"' > confmf
4137    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4138       am__include=.include
4139       am__quote="\""
4140       _am_result=BSD
4141    fi
4142 fi
4143
4144
4145 echo "$as_me:$LINENO: result: $_am_result" >&5
4146 echo "${ECHO_T}$_am_result" >&6
4147 rm -f confinc confmf
4148
4149 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then
4151   enableval="$enable_dependency_tracking"
4152
4153 fi;
4154 if test "x$enable_dependency_tracking" != xno; then
4155   am_depcomp="$ac_aux_dir/depcomp"
4156   AMDEPBACKSLASH='\'
4157 fi
4158
4159
4160 if test "x$enable_dependency_tracking" != xno; then
4161   AMDEP_TRUE=
4162   AMDEP_FALSE='#'
4163 else
4164   AMDEP_TRUE='#'
4165   AMDEP_FALSE=
4166 fi
4167
4168
4169
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_CC+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$CC"; then
4184   ac_cv_prog_CC="$CC" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 CC=$ac_cv_prog_CC
4203 if test -n "$CC"; then
4204   echo "$as_me:$LINENO: result: $CC" >&5
4205 echo "${ECHO_T}$CC" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211 fi
4212 if test -z "$ac_cv_prog_CC"; then
4213   ac_ct_CC=$CC
4214   # Extract the first word of "gcc", so it can be a program name with args.
4215 set dummy gcc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$ac_ct_CC"; then
4222   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_ac_ct_CC="gcc"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237
4238 fi
4239 fi
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243 echo "${ECHO_T}$ac_ct_CC" >&6
4244 else
4245   echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247 fi
4248
4249   CC=$ac_ct_CC
4250 else
4251   CC="$ac_cv_prog_CC"
4252 fi
4253
4254 if test -z "$CC"; then
4255   if test -n "$ac_tool_prefix"; then
4256   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_CC+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   if test -n "$CC"; then
4264   ac_cv_prog_CC="$CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_CC="${ac_tool_prefix}cc"
4274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278 done
4279
4280 fi
4281 fi
4282 CC=$ac_cv_prog_CC
4283 if test -n "$CC"; then
4284   echo "$as_me:$LINENO: result: $CC" >&5
4285 echo "${ECHO_T}$CC" >&6
4286 else
4287   echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_CC"; then
4293   ac_ct_CC=$CC
4294   # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   if test -n "$ac_ct_CC"; then
4302   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_CC="cc"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318 fi
4319 fi
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4321 if test -n "$ac_ct_CC"; then
4322   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4323 echo "${ECHO_T}$ac_ct_CC" >&6
4324 else
4325   echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4327 fi
4328
4329   CC=$ac_ct_CC
4330 else
4331   CC="$ac_cv_prog_CC"
4332 fi
4333
4334 fi
4335 if test -z "$CC"; then
4336   # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test -n "$CC"; then
4344   ac_cv_prog_CC="$CC" # Let the user override the test.
4345 else
4346   ac_prog_rejected=no
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352   for ac_exec_ext in '' $ac_executable_extensions; do
4353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355        ac_prog_rejected=yes
4356        continue
4357      fi
4358     ac_cv_prog_CC="cc"
4359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363 done
4364
4365 if test $ac_prog_rejected = yes; then
4366   # We found a bogon in the path, so make sure we never use it.
4367   set dummy $ac_cv_prog_CC
4368   shift
4369   if test $# != 0; then
4370     # We chose a different compiler from the bogus one.
4371     # However, it has the same basename, so the bogon will be chosen
4372     # first if we set CC to just the basename; use the full file name.
4373     shift
4374     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4375   fi
4376 fi
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381   echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4383 else
4384   echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4386 fi
4387
4388 fi
4389 if test -z "$CC"; then
4390   if test -n "$ac_tool_prefix"; then
4391   for ac_prog in cl
4392   do
4393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_CC+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if test -n "$CC"; then
4401   ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416
4417 fi
4418 fi
4419 CC=$ac_cv_prog_CC
4420 if test -n "$CC"; then
4421   echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6
4423 else
4424   echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 fi
4427
4428     test -n "$CC" && break
4429   done
4430 fi
4431 if test -z "$CC"; then
4432   ac_ct_CC=$CC
4433   for ac_prog in cl
4434 do
4435   # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   if test -n "$ac_ct_CC"; then
4443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452     ac_cv_prog_ac_ct_CC="$ac_prog"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458
4459 fi
4460 fi
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4464 echo "${ECHO_T}$ac_ct_CC" >&6
4465 else
4466   echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4468 fi
4469
4470   test -n "$ac_ct_CC" && break
4471 done
4472
4473   CC=$ac_ct_CC
4474 fi
4475
4476 fi
4477
4478
4479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&2;}
4483    { (exit 1); exit 1; }; }
4484
4485 # Provide some information about the compiler.
4486 echo "$as_me:$LINENO:" \
4487      "checking for C compiler version" >&5
4488 ac_compiler=`set X $ac_compile; echo $2`
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4490   (eval $ac_compiler --version </dev/null >&5) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }
4494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4495   (eval $ac_compiler -v </dev/null >&5) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }
4499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4500   (eval $ac_compiler -V </dev/null >&5) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }
4504
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 ac_clean_files_save=$ac_clean_files
4521 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4522 # Try to create an executable without -o first, disregard a.out.
4523 # It will help us diagnose broken compilers, and finding out an intuition
4524 # of exeext.
4525 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4526 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4527 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4529   (eval $ac_link_default) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; then
4533   # Find the output, starting from the most likely.  This scheme is
4534 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4535 # resort.
4536
4537 # Be careful to initialize this variable, since it used to be cached.
4538 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4539 ac_cv_exeext=
4540 # b.out is created by i960 compilers.
4541 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4542 do
4543   test -f "$ac_file" || continue
4544   case $ac_file in
4545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4546         ;;
4547     conftest.$ac_ext )
4548         # This is the source file.
4549         ;;
4550     [ab].out )
4551         # We found the default executable, but exeext='' is most
4552         # certainly right.
4553         break;;
4554     *.* )
4555         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556         # FIXME: I believe we export ac_cv_exeext for Libtool,
4557         # but it would be cool to find out if it's true.  Does anybody
4558         # maintain Libtool? --akim.
4559         export ac_cv_exeext
4560         break;;
4561     * )
4562         break;;
4563   esac
4564 done
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&2;}
4573    { (exit 77); exit 77; }; }
4574 fi
4575
4576 ac_exeext=$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_file" >&5
4578 echo "${ECHO_T}$ac_file" >&6
4579
4580 # Check the compiler produces executables we can run.  If not, either
4581 # the compiler is broken, or we cross compile.
4582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4585 # If not cross compiling, check that we can run a simple program.
4586 if test "$cross_compiling" != yes; then
4587   if { ac_try='./$ac_file'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593     cross_compiling=no
4594   else
4595     if test "$cross_compiling" = maybe; then
4596         cross_compiling=yes
4597     else
4598         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4599 If you meant to cross compile, use \`--host'.
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run C compiled programs.
4602 If you meant to cross compile, use \`--host'.
4603 See \`config.log' for more details." >&2;}
4604    { (exit 1); exit 1; }; }
4605     fi
4606   fi
4607 fi
4608 echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6
4610
4611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 # Check the compiler produces executables we can run.  If not, either
4614 # the compiler is broken, or we cross compile.
4615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4618 echo "${ECHO_T}$cross_compiling" >&6
4619
4620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623   (eval $ac_link) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; then
4627   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4628 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4629 # work properly (i.e., refer to `conftest.exe'), while it won't with
4630 # `rm'.
4631 for ac_file in conftest.exe conftest conftest.*; do
4632   test -f "$ac_file" || continue
4633   case $ac_file in
4634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4635     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4636           export ac_cv_exeext
4637           break;;
4638     * ) break;;
4639   esac
4640 done
4641 else
4642   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&2;}
4646    { (exit 1); exit 1; }; }
4647 fi
4648
4649 rm -f conftest$ac_cv_exeext
4650 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4651 echo "${ECHO_T}$ac_cv_exeext" >&6
4652
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4655 ac_exeext=$EXEEXT
4656 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4658 if test "${ac_cv_objext+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667
4668 int
4669 main ()
4670 {
4671
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.o conftest.obj
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678   (eval $ac_compile) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; then
4682   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4683   case $ac_file in
4684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4685     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686        break;;
4687   esac
4688 done
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&2;}
4697    { (exit 1); exit 1; }; }
4698 fi
4699
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4703 echo "${ECHO_T}$ac_cv_objext" >&6
4704 OBJEXT=$ac_cv_objext
4705 ac_objext=$OBJEXT
4706 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h.  */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h.  */
4717
4718 int
4719 main ()
4720 {
4721 #ifndef __GNUC__
4722        choke me
4723 #endif
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731   (eval $ac_compile) 2>conftest.er1
4732   ac_status=$?
4733   grep -v '^ *+' conftest.er1 >conftest.err
4734   rm -f conftest.er1
4735   cat conftest.err >&5
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } &&
4738          { ac_try='test -z "$ac_c_werror_flag"
4739                          || test ! -s conftest.err'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; } &&
4745          { ac_try='test -s conftest.$ac_objext'
4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   ac_compiler_gnu=yes
4752 else
4753   echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 ac_compiler_gnu=no
4757 fi
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4760
4761 fi
4762 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4764 GCC=`test $ac_compiler_gnu = yes && echo yes`
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4767 CFLAGS="-g"
4768 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4770 if test "${ac_cv_prog_cc_g+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790   (eval $ac_compile) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } &&
4797          { ac_try='test -z "$ac_c_werror_flag"
4798                          || test ! -s conftest.err'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_cv_prog_cc_g=yes
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_cv_prog_cc_g=no
4816 fi
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 fi
4819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4821 if test "$ac_test_CFLAGS" = set; then
4822   CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824   if test "$GCC" = yes; then
4825     CFLAGS="-g -O2"
4826   else
4827     CFLAGS="-g"
4828   fi
4829 else
4830   if test "$GCC" = yes; then
4831     CFLAGS="-O2"
4832   else
4833     CFLAGS=
4834   fi
4835 fi
4836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   ac_cv_prog_cc_stdc=no
4842 ac_save_CC=$CC
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849 #include <stdarg.h>
4850 #include <stdio.h>
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4857      char **p;
4858      int i;
4859 {
4860   return p[i];
4861 }
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4863 {
4864   char *s;
4865   va_list v;
4866   va_start (v,p);
4867   s = g (p, va_arg (v,int));
4868   va_end (v);
4869   return s;
4870 }
4871
4872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4873    function prototypes and stuff, but not '\xHH' hex character constants.
4874    These don't provoke an error unfortunately, instead are silently treated
4875    as 'x'.  The following induces an error, until -std1 is added to get
4876    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4877    array size at least.  It's necessary to write '\x00'==0 to get something
4878    that's true only with -std1.  */
4879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880
4881 int test (int i, double x);
4882 struct s1 {int (*f) (int a);};
4883 struct s2 {int (*f) (double a);};
4884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4885 int argc;
4886 char **argv;
4887 int
4888 main ()
4889 {
4890 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 # Don't try gcc -ansi; that turns off useful extensions and
4896 # breaks some systems' header files.
4897 # AIX                   -qlanglvl=ansi
4898 # Ultrix and OSF/1      -std1
4899 # HP-UX 10.20 and later -Ae
4900 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4901 # SVR4                  -Xc -D__EXTENSIONS__
4902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4903 do
4904   CC="$ac_save_CC $ac_arg"
4905   rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907   (eval $ac_compile) 2>conftest.er1
4908   ac_status=$?
4909   grep -v '^ *+' conftest.er1 >conftest.err
4910   rm -f conftest.er1
4911   cat conftest.err >&5
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } &&
4914          { ac_try='test -z "$ac_c_werror_flag"
4915                          || test ! -s conftest.err'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; } &&
4921          { ac_try='test -s conftest.$ac_objext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_cv_prog_cc_stdc=$ac_arg
4928 break
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 fi
4934 rm -f conftest.err conftest.$ac_objext
4935 done
4936 rm -f conftest.$ac_ext conftest.$ac_objext
4937 CC=$ac_save_CC
4938
4939 fi
4940
4941 case "x$ac_cv_prog_cc_stdc" in
4942   x|xno)
4943     echo "$as_me:$LINENO: result: none needed" >&5
4944 echo "${ECHO_T}none needed" >&6 ;;
4945   *)
4946     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4948     CC="$CC $ac_cv_prog_cc_stdc" ;;
4949 esac
4950
4951 # Some people use a C++ compiler to compile C.  Since we use `exit',
4952 # in C++ we need to declare it.  In case someone uses the same compiler
4953 # for both compiling C and C++ we need to have the C++ compiler decide
4954 # the declaration of exit, since it's the most demanding environment.
4955 cat >conftest.$ac_ext <<_ACEOF
4956 #ifndef __cplusplus
4957   choke me
4958 #endif
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962   (eval $ac_compile) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -z "$ac_c_werror_flag"
4970                          || test ! -s conftest.err'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   for ac_declaration in \
4983    '' \
4984    'extern "C" void std::exit (int) throw (); using std::exit;' \
4985    'extern "C" void std::exit (int); using std::exit;' \
4986    'extern "C" void exit (int) throw ();' \
4987    'extern "C" void exit (int);' \
4988    'void exit (int);'
4989 do
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 $ac_declaration
4997 #include <stdlib.h>
4998 int
4999 main ()
5000 {
5001 exit (42);
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008   (eval $ac_compile) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -z "$ac_c_werror_flag"
5016                          || test ! -s conftest.err'
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); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   :
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 continue
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036   cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 $ac_declaration
5043 int
5044 main ()
5045 {
5046 exit (42);
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053   (eval $ac_compile) 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } &&
5060          { ac_try='test -z "$ac_c_werror_flag"
5061                          || test ! -s conftest.err'
5062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063   (eval $ac_try) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); }; } &&
5067          { ac_try='test -s conftest.$ac_objext'
5068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069   (eval $ac_try) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }; }; then
5073   break
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 done
5081 rm -f conftest*
5082 if test -n "$ac_declaration"; then
5083   echo '#ifdef __cplusplus' >>confdefs.h
5084   echo $ac_declaration      >>confdefs.h
5085   echo '#endif'             >>confdefs.h
5086 fi
5087
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099
5100 depcc="$CC"   am_compiler_list=
5101
5102 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5108   # We make a subdir and do the tests there.  Otherwise we can end up
5109   # making bogus files that we don't know about and never remove.  For
5110   # instance it was reported that on HP-UX the gcc test will end up
5111   # making a dummy file named `D' -- because `-MD' means `put the output
5112   # in D'.
5113   mkdir conftest.dir
5114   # Copy depcomp to subdir because otherwise we won't find it if we're
5115   # using a relative directory.
5116   cp "$am_depcomp" conftest.dir
5117   cd conftest.dir
5118   # We will build objects and dependencies in a subdirectory because
5119   # it helps to detect inapplicable dependency modes.  For instance
5120   # both Tru64's cc and ICC support -MD to output dependencies as a
5121   # side effect of compilation, but ICC will put the dependencies in
5122   # the current directory while Tru64 will put them in the object
5123   # directory.
5124   mkdir sub
5125
5126   am_cv_CC_dependencies_compiler_type=none
5127   if test "$am_compiler_list" = ""; then
5128      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5129   fi
5130   for depmode in $am_compiler_list; do
5131     # Setup a source with many dependencies, because some compilers
5132     # like to wrap large dependency lists on column 80 (with \), and
5133     # we should not choose a depcomp mode which is confused by this.
5134     #
5135     # We need to recreate these files for each test, as the compiler may
5136     # overwrite some of them when testing with obscure command lines.
5137     # This happens at least with the AIX C compiler.
5138     : > sub/conftest.c
5139     for i in 1 2 3 4 5 6; do
5140       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142       # Solaris 8's {/usr,}/bin/sh.
5143       touch sub/conftst$i.h
5144     done
5145     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146
5147     case $depmode in
5148     nosideeffect)
5149       # after this tag, mechanisms are not by side-effect, so they'll
5150       # only be used when explicitly requested
5151       if test "x$enable_dependency_tracking" = xyes; then
5152         continue
5153       else
5154         break
5155       fi
5156       ;;
5157     none) break ;;
5158     esac
5159     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5160     # mode.  It turns out that the SunPro C++ compiler does not properly
5161     # handle `-M -o', and we need to detect this.
5162     if depmode=$depmode \
5163        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5164        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5166          >/dev/null 2>conftest.err &&
5167        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5169        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170       # icc doesn't choke on unknown options, it will just issue warnings
5171       # or remarks (even with -Werror).  So we grep stderr for any message
5172       # that says an option was ignored or not supported.
5173       # When given -MP, icc 7.0 and 7.1 complain thusly:
5174       #   icc: Command line warning: ignoring option '-M'; no argument required
5175       # The diagnosis changed in icc 8.0:
5176       #   icc: Command line remark: option '-MP' not supported
5177       if (grep 'ignoring option' conftest.err ||
5178           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179         am_cv_CC_dependencies_compiler_type=$depmode
5180         break
5181       fi
5182     fi
5183   done
5184
5185   cd ..
5186   rm -rf conftest.dir
5187 else
5188   am_cv_CC_dependencies_compiler_type=none
5189 fi
5190
5191 fi
5192 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5193 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5195
5196
5197
5198 if
5199   test "x$enable_dependency_tracking" != xno \
5200   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5201   am__fastdepCC_TRUE=
5202   am__fastdepCC_FALSE='#'
5203 else
5204   am__fastdepCC_TRUE='#'
5205   am__fastdepCC_FALSE=
5206 fi
5207
5208
5209 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5210 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5211 if test "${lt_cv_path_SED+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   # Loop through the user's path and test for sed and gsed.
5215 # Then use that list of sed's as ones to test for truncation.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221   for lt_ac_prog in sed gsed; do
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5224         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5225       fi
5226     done
5227   done
5228 done
5229 lt_ac_max=0
5230 lt_ac_count=0
5231 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5232 # along with /bin/sed that truncates output.
5233 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5234   test ! -f $lt_ac_sed && continue
5235   cat /dev/null > conftest.in
5236   lt_ac_count=0
5237   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5238   # Check for GNU sed and select it if it is found.
5239   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5240     lt_cv_path_SED=$lt_ac_sed
5241     break
5242   fi
5243   while true; do
5244     cat conftest.in conftest.in >conftest.tmp
5245     mv conftest.tmp conftest.in
5246     cp conftest.in conftest.nl
5247     echo >>conftest.nl
5248     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5249     cmp -s conftest.out conftest.nl || break
5250     # 10000 chars as input seems more than enough
5251     test $lt_ac_count -gt 10 && break
5252     lt_ac_count=`expr $lt_ac_count + 1`
5253     if test $lt_ac_count -gt $lt_ac_max; then
5254       lt_ac_max=$lt_ac_count
5255       lt_cv_path_SED=$lt_ac_sed
5256     fi
5257   done
5258 done
5259
5260 fi
5261
5262 SED=$lt_cv_path_SED
5263 echo "$as_me:$LINENO: result: $SED" >&5
5264 echo "${ECHO_T}$SED" >&6
5265
5266 echo "$as_me:$LINENO: checking for egrep" >&5
5267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5268 if test "${ac_cv_prog_egrep+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5272     then ac_cv_prog_egrep='grep -E'
5273     else ac_cv_prog_egrep='egrep'
5274     fi
5275 fi
5276 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5277 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5278  EGREP=$ac_cv_prog_egrep
5279
5280
5281
5282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then
5284   withval="$with_gnu_ld"
5285   test "$withval" = no || with_gnu_ld=yes
5286 else
5287   with_gnu_ld=no
5288 fi;
5289 ac_prog=ld
5290 if test "$GCC" = yes; then
5291   # Check if gcc -print-prog-name=ld gives a path.
5292   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5294   case $host in
5295   *-*-mingw*)
5296     # gcc leaves a trailing carriage return which upsets mingw
5297     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5298   *)
5299     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5300   esac
5301   case $ac_prog in
5302     # Accept absolute paths.
5303     [\\/]* | ?:[\\/]*)
5304       re_direlt='/[^/][^/]*/\.\./'
5305       # Canonicalize the pathname of ld
5306       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5307       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5308         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5309       done
5310       test -z "$LD" && LD="$ac_prog"
5311       ;;
5312   "")
5313     # If it fails, then pretend we aren't using GCC.
5314     ac_prog=ld
5315     ;;
5316   *)
5317     # If it is relative, then search for the first ld in PATH.
5318     with_gnu_ld=unknown
5319     ;;
5320   esac
5321 elif test "$with_gnu_ld" = yes; then
5322   echo "$as_me:$LINENO: checking for GNU ld" >&5
5323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5324 else
5325   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5327 fi
5328 if test "${lt_cv_path_LD+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test -z "$LD"; then
5332   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333   for ac_dir in $PATH; do
5334     IFS="$lt_save_ifs"
5335     test -z "$ac_dir" && ac_dir=.
5336     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337       lt_cv_path_LD="$ac_dir/$ac_prog"
5338       # Check to see if the program is GNU ld.  I'd rather use --version,
5339       # but apparently some GNU ld's only accept -v.
5340       # Break only if it was the GNU/non-GNU ld that we prefer.
5341       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342       *GNU* | *'with BFD'*)
5343         test "$with_gnu_ld" != no && break
5344         ;;
5345       *)
5346         test "$with_gnu_ld" != yes && break
5347         ;;
5348       esac
5349     fi
5350   done
5351   IFS="$lt_save_ifs"
5352 else
5353   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5354 fi
5355 fi
5356
5357 LD="$lt_cv_path_LD"
5358 if test -n "$LD"; then
5359   echo "$as_me:$LINENO: result: $LD" >&5
5360 echo "${ECHO_T}$LD" >&6
5361 else
5362   echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5364 fi
5365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5367    { (exit 1); exit 1; }; }
5368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5374 case `$LD -v 2>&1 </dev/null` in
5375 *GNU* | *'with BFD'*)
5376   lt_cv_prog_gnu_ld=yes
5377   ;;
5378 *)
5379   lt_cv_prog_gnu_ld=no
5380   ;;
5381 esac
5382 fi
5383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5385 with_gnu_ld=$lt_cv_prog_gnu_ld
5386
5387
5388 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5389 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5390 if test "${lt_cv_ld_reload_flag+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   lt_cv_ld_reload_flag='-r'
5394 fi
5395 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5396 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5397 reload_flag=$lt_cv_ld_reload_flag
5398 case $reload_flag in
5399 "" | " "*) ;;
5400 *) reload_flag=" $reload_flag" ;;
5401 esac
5402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5403 case $host_os in
5404   darwin*)
5405     if test "$GCC" = yes; then
5406       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5407     else
5408       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5409     fi
5410     ;;
5411 esac
5412
5413 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5414 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5415 if test "${lt_cv_path_NM+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   if test -n "$NM"; then
5419   # Let the user override the test.
5420   lt_cv_path_NM="$NM"
5421 else
5422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5424     IFS="$lt_save_ifs"
5425     test -z "$ac_dir" && ac_dir=.
5426     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5427     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428       # Check to see if the nm accepts a BSD-compat flag.
5429       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430       #   nm: unknown option "B" ignored
5431       # Tru64's nm complains that /dev/null is an invalid object file
5432       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433       */dev/null* | *'Invalid file or object type'*)
5434         lt_cv_path_NM="$tmp_nm -B"
5435         break
5436         ;;
5437       *)
5438         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439         */dev/null*)
5440           lt_cv_path_NM="$tmp_nm -p"
5441           break
5442           ;;
5443         *)
5444           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445           continue # so that we can try to find one that supports BSD flags
5446           ;;
5447         esac
5448       esac
5449     fi
5450   done
5451   IFS="$lt_save_ifs"
5452   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5453 fi
5454 fi
5455 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5456 echo "${ECHO_T}$lt_cv_path_NM" >&6
5457 NM="$lt_cv_path_NM"
5458
5459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5461 LN_S=$as_ln_s
5462 if test "$LN_S" = "ln -s"; then
5463   echo "$as_me:$LINENO: result: yes" >&5
5464 echo "${ECHO_T}yes" >&6
5465 else
5466   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5467 echo "${ECHO_T}no, using $LN_S" >&6
5468 fi
5469
5470 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5471 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5472 if test "${lt_cv_deplibs_check_method+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   lt_cv_file_magic_cmd='$MAGIC_CMD'
5476 lt_cv_file_magic_test_file=
5477 lt_cv_deplibs_check_method='unknown'
5478 # Need to set the preceding variable on all platforms that support
5479 # interlibrary dependencies.
5480 # 'none' -- dependencies not supported.
5481 # `unknown' -- same as none, but documents that we really don't know.
5482 # 'pass_all' -- all dependencies passed with no checks.
5483 # 'test_compile' -- check by making test program.
5484 # 'file_magic [[regex]]' -- check by looking for files in library path
5485 # which responds to the $file_magic_cmd with a given extended regex.
5486 # If you have `file' or equivalent on your system and you're not sure
5487 # whether `pass_all' will *always* work, you probably want this one.
5488
5489 case $host_os in
5490 aix4* | aix5*)
5491   lt_cv_deplibs_check_method=pass_all
5492   ;;
5493
5494 beos*)
5495   lt_cv_deplibs_check_method=pass_all
5496   ;;
5497
5498 bsdi[45]*)
5499   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5500   lt_cv_file_magic_cmd='/usr/bin/file -L'
5501   lt_cv_file_magic_test_file=/shlib/libc.so
5502   ;;
5503
5504 cygwin*)
5505   # func_win32_libid is a shell function defined in ltmain.sh
5506   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5507   lt_cv_file_magic_cmd='func_win32_libid'
5508   ;;
5509
5510 mingw* | pw32*)
5511   # Base MSYS/MinGW do not provide the 'file' command needed by
5512   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5513   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514   lt_cv_file_magic_cmd='$OBJDUMP -f'
5515   ;;
5516
5517 darwin* | rhapsody*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 freebsd* | kfreebsd*-gnu | dragonfly*)
5522   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5523     case $host_cpu in
5524     i*86 )
5525       # Not sure whether the presence of OpenBSD here was a mistake.
5526       # Let's accept both of them until this is cleared up.
5527       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5528       lt_cv_file_magic_cmd=/usr/bin/file
5529       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5530       ;;
5531     esac
5532   else
5533     lt_cv_deplibs_check_method=pass_all
5534   fi
5535   ;;
5536
5537 gnu*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 hpux10.20* | hpux11*)
5542   lt_cv_file_magic_cmd=/usr/bin/file
5543   case "$host_cpu" in
5544   ia64*)
5545     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5546     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5547     ;;
5548   hppa*64*)
5549     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5550     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5551     ;;
5552   *)
5553     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5554     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5555     ;;
5556   esac
5557   ;;
5558
5559 irix5* | irix6* | nonstopux*)
5560   case $LD in
5561   *-32|*"-32 ") libmagic=32-bit;;
5562   *-n32|*"-n32 ") libmagic=N32;;
5563   *-64|*"-64 ") libmagic=64-bit;;
5564   *) libmagic=never-match;;
5565   esac
5566   lt_cv_deplibs_check_method=pass_all
5567   ;;
5568
5569 # This must be Linux ELF.
5570 linux*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 netbsd*)
5575   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5577   else
5578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5579   fi
5580   ;;
5581
5582 newos6*)
5583   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584   lt_cv_file_magic_cmd=/usr/bin/file
5585   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5586   ;;
5587
5588 nto-qnx*)
5589   lt_cv_deplibs_check_method=unknown
5590   ;;
5591
5592 openbsd*)
5593   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5595   else
5596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5597   fi
5598   ;;
5599
5600 osf3* | osf4* | osf5*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 sco3.2v5*)
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 solaris*)
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5613   case $host_vendor in
5614   motorola)
5615     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5616     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5617     ;;
5618   ncr)
5619     lt_cv_deplibs_check_method=pass_all
5620     ;;
5621   sequent)
5622     lt_cv_file_magic_cmd='/bin/file'
5623     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5624     ;;
5625   sni)
5626     lt_cv_file_magic_cmd='/bin/file'
5627     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628     lt_cv_file_magic_test_file=/lib/libc.so
5629     ;;
5630   siemens)
5631     lt_cv_deplibs_check_method=pass_all
5632     ;;
5633   esac
5634   ;;
5635
5636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5637   lt_cv_deplibs_check_method=pass_all
5638   ;;
5639 esac
5640
5641 fi
5642 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5643 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5647
5648
5649
5650
5651 # If no C compiler was specified, use CC.
5652 LTCC=${LTCC-"$CC"}
5653
5654 # Allow CC to be a program name with arguments.
5655 compiler=$CC
5656
5657
5658 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5659 if test "${enable_libtool_lock+set}" = set; then
5660   enableval="$enable_libtool_lock"
5661
5662 fi;
5663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5664
5665 # Some flags need to be propagated to the compiler or linker for good
5666 # libtool support.
5667 case $host in
5668 ia64-*-hpux*)
5669   # Find out which ABI we are using.
5670   echo 'int i;' > conftest.$ac_ext
5671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672   (eval $ac_compile) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; then
5676     case `/usr/bin/file conftest.$ac_objext` in
5677     *ELF-32*)
5678       HPUX_IA64_MODE="32"
5679       ;;
5680     *ELF-64*)
5681       HPUX_IA64_MODE="64"
5682       ;;
5683     esac
5684   fi
5685   rm -rf conftest*
5686   ;;
5687 *-*-irix6*)
5688   # Find out which ABI we are using.
5689   echo '#line 5689 "configure"' > conftest.$ac_ext
5690   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691   (eval $ac_compile) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; then
5695    if test "$lt_cv_prog_gnu_ld" = yes; then
5696     case `/usr/bin/file conftest.$ac_objext` in
5697     *32-bit*)
5698       LD="${LD-ld} -melf32bsmip"
5699       ;;
5700     *N32*)
5701       LD="${LD-ld} -melf32bmipn32"
5702       ;;
5703     *64-bit*)
5704       LD="${LD-ld} -melf64bmip"
5705       ;;
5706     esac
5707    else
5708     case `/usr/bin/file conftest.$ac_objext` in
5709     *32-bit*)
5710       LD="${LD-ld} -32"
5711       ;;
5712     *N32*)
5713       LD="${LD-ld} -n32"
5714       ;;
5715     *64-bit*)
5716       LD="${LD-ld} -64"
5717       ;;
5718     esac
5719    fi
5720   fi
5721   rm -rf conftest*
5722   ;;
5723
5724 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5725   # Find out which ABI we are using.
5726   echo 'int i;' > conftest.$ac_ext
5727   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728   (eval $ac_compile) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; then
5732     case "`/usr/bin/file conftest.o`" in
5733     *32-bit*)
5734       case $host in
5735         x86_64-*linux*)
5736           LD="${LD-ld} -m elf_i386"
5737           ;;
5738         ppc64-*linux*|powerpc64-*linux*)
5739           LD="${LD-ld} -m elf32ppclinux"
5740           ;;
5741         s390x-*linux*)
5742           LD="${LD-ld} -m elf_s390"
5743           ;;
5744         sparc64-*linux*)
5745           LD="${LD-ld} -m elf32_sparc"
5746           ;;
5747       esac
5748       ;;
5749     *64-bit*)
5750       case $host in
5751         x86_64-*linux*)
5752           LD="${LD-ld} -m elf_x86_64"
5753           ;;
5754         ppc*-*linux*|powerpc*-*linux*)
5755           LD="${LD-ld} -m elf64ppc"
5756           ;;
5757         s390*-*linux*)
5758           LD="${LD-ld} -m elf64_s390"
5759           ;;
5760         sparc*-*linux*)
5761           LD="${LD-ld} -m elf64_sparc"
5762           ;;
5763       esac
5764       ;;
5765     esac
5766   fi
5767   rm -rf conftest*
5768   ;;
5769
5770 *-*-sco3.2v5*)
5771   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772   SAVE_CFLAGS="$CFLAGS"
5773   CFLAGS="$CFLAGS -belf"
5774   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5776 if test "${lt_cv_cc_needs_belf+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785      cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791
5792 int
5793 main ()
5794 {
5795
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802   (eval $ac_link) 2>conftest.er1
5803   ac_status=$?
5804   grep -v '^ *+' conftest.er1 >conftest.err
5805   rm -f conftest.er1
5806   cat conftest.err >&5
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); } &&
5809          { ac_try='test -z "$ac_c_werror_flag"
5810                          || test ! -s conftest.err'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; } &&
5816          { ac_try='test -s conftest$ac_exeext'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; }; then
5822   lt_cv_cc_needs_belf=yes
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 lt_cv_cc_needs_belf=no
5828 fi
5829 rm -f conftest.err conftest.$ac_objext \
5830       conftest$ac_exeext conftest.$ac_ext
5831      ac_ext=c
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836
5837 fi
5838 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5839 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5840   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5841     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5842     CFLAGS="$SAVE_CFLAGS"
5843   fi
5844   ;;
5845 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5846   if test -n "$ac_tool_prefix"; then
5847   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$DLLTOOL"; then
5855   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870
5871 fi
5872 fi
5873 DLLTOOL=$ac_cv_prog_DLLTOOL
5874 if test -n "$DLLTOOL"; then
5875   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5876 echo "${ECHO_T}$DLLTOOL" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882 fi
5883 if test -z "$ac_cv_prog_DLLTOOL"; then
5884   ac_ct_DLLTOOL=$DLLTOOL
5885   # Extract the first word of "dlltool", so it can be a program name with args.
5886 set dummy dlltool; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   if test -n "$ac_ct_DLLTOOL"; then
5893   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908
5909   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5910 fi
5911 fi
5912 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5913 if test -n "$ac_ct_DLLTOOL"; then
5914   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5915 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5916 else
5917   echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5919 fi
5920
5921   DLLTOOL=$ac_ct_DLLTOOL
5922 else
5923   DLLTOOL="$ac_cv_prog_DLLTOOL"
5924 fi
5925
5926   if test -n "$ac_tool_prefix"; then
5927   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}as; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_AS+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$AS"; then
5935   ac_cv_prog_AS="$AS" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_AS="${ac_tool_prefix}as"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950
5951 fi
5952 fi
5953 AS=$ac_cv_prog_AS
5954 if test -n "$AS"; then
5955   echo "$as_me:$LINENO: result: $AS" >&5
5956 echo "${ECHO_T}$AS" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962 fi
5963 if test -z "$ac_cv_prog_AS"; then
5964   ac_ct_AS=$AS
5965   # Extract the first word of "as", so it can be a program name with args.
5966 set dummy as; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   if test -n "$ac_ct_AS"; then
5973   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_prog_ac_ct_AS="as"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988
5989   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5990 fi
5991 fi
5992 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5993 if test -n "$ac_ct_AS"; then
5994   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5995 echo "${ECHO_T}$ac_ct_AS" >&6
5996 else
5997   echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
5999 fi
6000
6001   AS=$ac_ct_AS
6002 else
6003   AS="$ac_cv_prog_AS"
6004 fi
6005
6006   if test -n "$ac_tool_prefix"; then
6007   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test -n "$OBJDUMP"; then
6015   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030
6031 fi
6032 fi
6033 OBJDUMP=$ac_cv_prog_OBJDUMP
6034 if test -n "$OBJDUMP"; then
6035   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6036 echo "${ECHO_T}$OBJDUMP" >&6
6037 else
6038   echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6041
6042 fi
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044   ac_ct_OBJDUMP=$OBJDUMP
6045   # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test -n "$ac_ct_OBJDUMP"; then
6053   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068
6069   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6070 fi
6071 fi
6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073 if test -n "$ac_ct_OBJDUMP"; then
6074   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6075 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6076 else
6077   echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6079 fi
6080
6081   OBJDUMP=$ac_ct_OBJDUMP
6082 else
6083   OBJDUMP="$ac_cv_prog_OBJDUMP"
6084 fi
6085
6086   ;;
6087
6088 esac
6089
6090 need_locks="$enable_libtool_lock"
6091
6092
6093 ac_ext=c
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6100 # On Suns, sometimes $CPP names a directory.
6101 if test -n "$CPP" && test -d "$CPP"; then
6102   CPP=
6103 fi
6104 if test -z "$CPP"; then
6105   if test "${ac_cv_prog_CPP+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108       # Double quotes because CPP needs to be expanded
6109     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6110     do
6111       ac_preproc_ok=false
6112 for ac_c_preproc_warn_flag in '' yes
6113 do
6114   # Use a header file that comes with gcc, so configuring glibc
6115   # with a fresh cross-compiler works.
6116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117   # <limits.h> exists even on freestanding compilers.
6118   # On the NeXT, cc -E runs the code through the compiler's parser,
6119   # not just through cpp. "Syntax error" is here to catch this case.
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #ifdef __STDC__
6127 # include <limits.h>
6128 #else
6129 # include <assert.h>
6130 #endif
6131                      Syntax error
6132 _ACEOF
6133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } >/dev/null; then
6141   if test -s conftest.err; then
6142     ac_cpp_err=$ac_c_preproc_warn_flag
6143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6144   else
6145     ac_cpp_err=
6146   fi
6147 else
6148   ac_cpp_err=yes
6149 fi
6150 if test -z "$ac_cpp_err"; then
6151   :
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156   # Broken: fails on valid input.
6157 continue
6158 fi
6159 rm -f conftest.err conftest.$ac_ext
6160
6161   # OK, works on sane cases.  Now check whether non-existent headers
6162   # can be detected and how.
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #include <ac_nonexistent.h>
6170 _ACEOF
6171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } >/dev/null; then
6179   if test -s conftest.err; then
6180     ac_cpp_err=$ac_c_preproc_warn_flag
6181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6182   else
6183     ac_cpp_err=
6184   fi
6185 else
6186   ac_cpp_err=yes
6187 fi
6188 if test -z "$ac_cpp_err"; then
6189   # Broken: success on invalid input.
6190 continue
6191 else
6192   echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195   # Passes both tests.
6196 ac_preproc_ok=:
6197 break
6198 fi
6199 rm -f conftest.err conftest.$ac_ext
6200
6201 done
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6205   break
6206 fi
6207
6208     done
6209     ac_cv_prog_CPP=$CPP
6210
6211 fi
6212   CPP=$ac_cv_prog_CPP
6213 else
6214   ac_cv_prog_CPP=$CPP
6215 fi
6216 echo "$as_me:$LINENO: result: $CPP" >&5
6217 echo "${ECHO_T}$CPP" >&6
6218 ac_preproc_ok=false
6219 for ac_c_preproc_warn_flag in '' yes
6220 do
6221   # Use a header file that comes with gcc, so configuring glibc
6222   # with a fresh cross-compiler works.
6223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224   # <limits.h> exists even on freestanding compilers.
6225   # On the NeXT, cc -E runs the code through the compiler's parser,
6226   # not just through cpp. "Syntax error" is here to catch this case.
6227   cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6238                      Syntax error
6239 _ACEOF
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } >/dev/null; then
6248   if test -s conftest.err; then
6249     ac_cpp_err=$ac_c_preproc_warn_flag
6250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251   else
6252     ac_cpp_err=
6253   fi
6254 else
6255   ac_cpp_err=yes
6256 fi
6257 if test -z "$ac_cpp_err"; then
6258   :
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263   # Broken: fails on valid input.
6264 continue
6265 fi
6266 rm -f conftest.err conftest.$ac_ext
6267
6268   # OK, works on sane cases.  Now check whether non-existent headers
6269   # can be detected and how.
6270   cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 #include <ac_nonexistent.h>
6277 _ACEOF
6278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6280   ac_status=$?
6281   grep -v '^ *+' conftest.er1 >conftest.err
6282   rm -f conftest.er1
6283   cat conftest.err >&5
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } >/dev/null; then
6286   if test -s conftest.err; then
6287     ac_cpp_err=$ac_c_preproc_warn_flag
6288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6289   else
6290     ac_cpp_err=
6291   fi
6292 else
6293   ac_cpp_err=yes
6294 fi
6295 if test -z "$ac_cpp_err"; then
6296   # Broken: success on invalid input.
6297 continue
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302   # Passes both tests.
6303 ac_preproc_ok=:
6304 break
6305 fi
6306 rm -f conftest.err conftest.$ac_ext
6307
6308 done
6309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310 rm -f conftest.err conftest.$ac_ext
6311 if $ac_preproc_ok; then
6312   :
6313 else
6314   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&2;}
6318    { (exit 1); exit 1; }; }
6319 fi
6320
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
6327
6328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6330 if test "${ac_cv_header_stdc+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 #include <stdlib.h>
6340 #include <stdarg.h>
6341 #include <string.h>
6342 #include <float.h>
6343
6344 int
6345 main ()
6346 {
6347
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354   (eval $ac_compile) 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -z "$ac_c_werror_flag"
6362                          || test ! -s conftest.err'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; } &&
6368          { ac_try='test -s conftest.$ac_objext'
6369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370   (eval $ac_try) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; }; then
6374   ac_cv_header_stdc=yes
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379 ac_cv_header_stdc=no
6380 fi
6381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6382
6383 if test $ac_cv_header_stdc = yes; then
6384   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6385   cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 #include <string.h>
6392
6393 _ACEOF
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395   $EGREP "memchr" >/dev/null 2>&1; then
6396   :
6397 else
6398   ac_cv_header_stdc=no
6399 fi
6400 rm -f conftest*
6401
6402 fi
6403
6404 if test $ac_cv_header_stdc = yes; then
6405   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6406   cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 #include <stdlib.h>
6413
6414 _ACEOF
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416   $EGREP "free" >/dev/null 2>&1; then
6417   :
6418 else
6419   ac_cv_header_stdc=no
6420 fi
6421 rm -f conftest*
6422
6423 fi
6424
6425 if test $ac_cv_header_stdc = yes; then
6426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6427   if test "$cross_compiling" = yes; then
6428   :
6429 else
6430   cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <ctype.h>
6437 #if ((' ' & 0x0FF) == 0x020)
6438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6440 #else
6441 # define ISLOWER(c) \
6442                    (('a' <= (c) && (c) <= 'i') \
6443                      || ('j' <= (c) && (c) <= 'r') \
6444                      || ('s' <= (c) && (c) <= 'z'))
6445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6446 #endif
6447
6448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6449 int
6450 main ()
6451 {
6452   int i;
6453   for (i = 0; i < 256; i++)
6454     if (XOR (islower (i), ISLOWER (i))
6455         || toupper (i) != TOUPPER (i))
6456       exit(2);
6457   exit (0);
6458 }
6459 _ACEOF
6460 rm -f conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462   (eval $ac_link) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   :
6472 else
6473   echo "$as_me: program exited with status $ac_status" >&5
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 ( exit $ac_status )
6478 ac_cv_header_stdc=no
6479 fi
6480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6481 fi
6482 fi
6483 fi
6484 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6485 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6486 if test $ac_cv_header_stdc = yes; then
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define STDC_HEADERS 1
6490 _ACEOF
6491
6492 fi
6493
6494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6505                   inttypes.h stdint.h unistd.h
6506 do
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519 $ac_includes_default
6520
6521 #include <$ac_header>
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525   (eval $ac_compile) 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } &&
6532          { ac_try='test -z "$ac_c_werror_flag"
6533                          || test ! -s conftest.err'
6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535   (eval $ac_try) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; } &&
6539          { ac_try='test -s conftest.$ac_objext'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; }; then
6545   eval "$as_ac_Header=yes"
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6549
6550 eval "$as_ac_Header=no"
6551 fi
6552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557   cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6559 _ACEOF
6560
6561 fi
6562
6563 done
6564
6565
6566
6567 for ac_header in dlfcn.h
6568 do
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571   echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 fi
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6578 else
6579   # Is the header compilable?
6580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 $ac_includes_default
6589 #include <$ac_header>
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593   (eval $ac_compile) 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -z "$ac_c_werror_flag"
6601                          || test ! -s conftest.err'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest.$ac_objext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_header_compiler=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_header_compiler=no
6619 fi
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622 echo "${ECHO_T}$ac_header_compiler" >&6
6623
6624 # Is the header present?
6625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h.  */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h.  */
6633 #include <$ac_header>
6634 _ACEOF
6635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } >/dev/null; then
6643   if test -s conftest.err; then
6644     ac_cpp_err=$ac_c_preproc_warn_flag
6645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6646   else
6647     ac_cpp_err=
6648   fi
6649 else
6650   ac_cpp_err=yes
6651 fi
6652 if test -z "$ac_cpp_err"; then
6653   ac_header_preproc=yes
6654 else
6655   echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658   ac_header_preproc=no
6659 fi
6660 rm -f conftest.err conftest.$ac_ext
6661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6662 echo "${ECHO_T}$ac_header_preproc" >&6
6663
6664 # So?  What about this header?
6665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6666   yes:no: )
6667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6671     ac_header_preproc=yes
6672     ;;
6673   no:yes:* )
6674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6686     (
6687       cat <<\_ASBOX
6688 ## ------------------------------------------ ##
6689 ## Report this to the AC_PACKAGE_NAME lists.  ##
6690 ## ------------------------------------------ ##
6691 _ASBOX
6692     ) |
6693       sed "s/^/$as_me: WARNING:     /" >&2
6694     ;;
6695 esac
6696 echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   eval "$as_ac_Header=\$ac_header_preproc"
6702 fi
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6705
6706 fi
6707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6708   cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6710 _ACEOF
6711
6712 fi
6713
6714 done
6715
6716
6717 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6718
6719 # find the maximum length of command line arguments
6720 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6721 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6722 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725     i=0
6726   teststring="ABCD"
6727
6728   case $build_os in
6729   msdosdjgpp*)
6730     # On DJGPP, this test can blow up pretty badly due to problems in libc
6731     # (any single argument exceeding 2000 bytes causes a buffer overrun
6732     # during glob expansion).  Even if it were fixed, the result of this
6733     # check would be larger than it should be.
6734     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6735     ;;
6736
6737   gnu*)
6738     # Under GNU Hurd, this test is not required because there is
6739     # no limit to the length of command line arguments.
6740     # Libtool will interpret -1 as no limit whatsoever
6741     lt_cv_sys_max_cmd_len=-1;
6742     ;;
6743
6744   cygwin* | mingw*)
6745     # On Win9x/ME, this test blows up -- it succeeds, but takes
6746     # about 5 minutes as the teststring grows exponentially.
6747     # Worse, since 9x/ME are not pre-emptively multitasking,
6748     # you end up with a "frozen" computer, even though with patience
6749     # the test eventually succeeds (with a max line length of 256k).
6750     # Instead, let's just punt: use the minimum linelength reported by
6751     # all of the supported platforms: 8192 (on NT/2K/XP).
6752     lt_cv_sys_max_cmd_len=8192;
6753     ;;
6754
6755   amigaos*)
6756     # On AmigaOS with pdksh, this test takes hours, literally.
6757     # So we just punt and use a minimum line length of 8192.
6758     lt_cv_sys_max_cmd_len=8192;
6759     ;;
6760
6761   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6762     # This has been around since 386BSD, at least.  Likely further.
6763     if test -x /sbin/sysctl; then
6764       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6765     elif test -x /usr/sbin/sysctl; then
6766       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6767     else
6768       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6769     fi
6770     # And add a safety zone
6771     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6772     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6773     ;;
6774   osf*)
6775     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6776     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6777     # nice to cause kernel panics so lets avoid the loop below.
6778     # First set a reasonable default.
6779     lt_cv_sys_max_cmd_len=16384
6780     #
6781     if test -x /sbin/sysconfig; then
6782       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6783         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6784       esac
6785     fi
6786     ;;
6787   *)
6788     # If test is not a shell built-in, we'll probably end up computing a
6789     # maximum length that is only half of the actual maximum length, but
6790     # we can't tell.
6791     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6792     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6793                = "XX$teststring") >/dev/null 2>&1 &&
6794             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6795             lt_cv_sys_max_cmd_len=$new_result &&
6796             test $i != 17 # 1/2 MB should be enough
6797     do
6798       i=`expr $i + 1`
6799       teststring=$teststring$teststring
6800     done
6801     teststring=
6802     # Add a significant safety factor because C++ compilers can tack on massive
6803     # amounts of additional arguments before passing them to the linker.
6804     # It appears as though 1/2 is a usable value.
6805     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6806     ;;
6807   esac
6808
6809 fi
6810
6811 if test -n $lt_cv_sys_max_cmd_len ; then
6812   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6813 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6814 else
6815   echo "$as_me:$LINENO: result: none" >&5
6816 echo "${ECHO_T}none" >&6
6817 fi
6818
6819
6820
6821
6822 # Check for command to grab the raw symbol name followed by C symbol from nm.
6823 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6824 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6825 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828
6829 # These are sane defaults that work on at least a few old systems.
6830 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6831
6832 # Character class describing NM global symbol codes.
6833 symcode='[BCDEGRST]'
6834
6835 # Regexp to match symbols that can be accessed directly from C.
6836 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6837
6838 # Transform an extracted symbol line into a proper C declaration
6839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6840
6841 # Transform an extracted symbol line into symbol name and symbol address
6842 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6843
6844 # Define system-specific variables.
6845 case $host_os in
6846 aix*)
6847   symcode='[BCDT]'
6848   ;;
6849 cygwin* | mingw* | pw32*)
6850   symcode='[ABCDGISTW]'
6851   ;;
6852 hpux*) # Its linker distinguishes data from code symbols
6853   if test "$host_cpu" = ia64; then
6854     symcode='[ABCDEGRST]'
6855   fi
6856   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6857   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6858   ;;
6859 linux*)
6860   if test "$host_cpu" = ia64; then
6861     symcode='[ABCDGIRSTW]'
6862     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6864   fi
6865   ;;
6866 irix* | nonstopux*)
6867   symcode='[BCDEGRST]'
6868   ;;
6869 osf*)
6870   symcode='[BCDEGQRST]'
6871   ;;
6872 solaris* | sysv5*)
6873   symcode='[BDRT]'
6874   ;;
6875 sysv4)
6876   symcode='[DFNSTU]'
6877   ;;
6878 esac
6879
6880 # Handle CRLF in mingw tool chain
6881 opt_cr=
6882 case $build_os in
6883 mingw*)
6884   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6885   ;;
6886 esac
6887
6888 # If we're using GNU nm, then use its standard symbol codes.
6889 case `$NM -V 2>&1` in
6890 *GNU* | *'with BFD'*)
6891   symcode='[ABCDGIRSTW]' ;;
6892 esac
6893
6894 # Try without a prefix undercore, then with it.
6895 for ac_symprfx in "" "_"; do
6896
6897   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898   symxfrm="\\1 $ac_symprfx\\2 \\2"
6899
6900   # Write the raw and C identifiers.
6901   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902
6903   # Check to see that the pipe works correctly.
6904   pipe_works=no
6905
6906   rm -f conftest*
6907   cat > conftest.$ac_ext <<EOF
6908 #ifdef __cplusplus
6909 extern "C" {
6910 #endif
6911 char nm_test_var;
6912 void nm_test_func(){}
6913 #ifdef __cplusplus
6914 }
6915 #endif
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6917 EOF
6918
6919   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920   (eval $ac_compile) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; then
6924     # Now try to grab the symbols.
6925     nlist=conftest.nm
6926     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); } && test -s "$nlist"; then
6931       # Try sorting and uniquifying the output.
6932       if sort "$nlist" | uniq > "$nlist"T; then
6933         mv -f "$nlist"T "$nlist"
6934       else
6935         rm -f "$nlist"T
6936       fi
6937
6938       # Make sure that we snagged all the symbols we need.
6939       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6940         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6941           cat <<EOF > conftest.$ac_ext
6942 #ifdef __cplusplus
6943 extern "C" {
6944 #endif
6945
6946 EOF
6947           # Now generate the symbol file.
6948           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6949
6950           cat <<EOF >> conftest.$ac_ext
6951 #if defined (__STDC__) && __STDC__
6952 # define lt_ptr_t void *
6953 #else
6954 # define lt_ptr_t char *
6955 # define const
6956 #endif
6957
6958 /* The mapping between symbol names and symbols. */
6959 const struct {
6960   const char *name;
6961   lt_ptr_t address;
6962 }
6963 lt_preloaded_symbols[] =
6964 {
6965 EOF
6966           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6967           cat <<\EOF >> conftest.$ac_ext
6968   {0, (lt_ptr_t) 0}
6969 };
6970
6971 #ifdef __cplusplus
6972 }
6973 #endif
6974 EOF
6975           # Now try linking the two files.
6976           mv conftest.$ac_objext conftstm.$ac_objext
6977           lt_save_LIBS="$LIBS"
6978           lt_save_CFLAGS="$CFLAGS"
6979           LIBS="conftstm.$ac_objext"
6980           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982   (eval $ac_link) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6986             pipe_works=yes
6987           fi
6988           LIBS="$lt_save_LIBS"
6989           CFLAGS="$lt_save_CFLAGS"
6990         else
6991           echo "cannot find nm_test_func in $nlist" >&5
6992         fi
6993       else
6994         echo "cannot find nm_test_var in $nlist" >&5
6995       fi
6996     else
6997       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6998     fi
6999   else
7000     echo "$progname: failed program was:" >&5
7001     cat conftest.$ac_ext >&5
7002   fi
7003   rm -f conftest* conftst*
7004
7005   # Do not use the global_symbol_pipe unless it works.
7006   if test "$pipe_works" = yes; then
7007     break
7008   else
7009     lt_cv_sys_global_symbol_pipe=
7010   fi
7011 done
7012
7013 fi
7014
7015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016   lt_cv_sys_global_symbol_to_cdecl=
7017 fi
7018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019   echo "$as_me:$LINENO: result: failed" >&5
7020 echo "${ECHO_T}failed" >&6
7021 else
7022   echo "$as_me:$LINENO: result: ok" >&5
7023 echo "${ECHO_T}ok" >&6
7024 fi
7025
7026 echo "$as_me:$LINENO: checking for objdir" >&5
7027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7028 if test "${lt_cv_objdir+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   rm -f .libs 2>/dev/null
7032 mkdir .libs 2>/dev/null
7033 if test -d .libs; then
7034   lt_cv_objdir=.libs
7035 else
7036   # MS-DOS does not allow filenames that begin with a dot.
7037   lt_cv_objdir=_libs
7038 fi
7039 rmdir .libs 2>/dev/null
7040 fi
7041 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7042 echo "${ECHO_T}$lt_cv_objdir" >&6
7043 objdir=$lt_cv_objdir
7044
7045
7046
7047
7048
7049 case $host_os in
7050 aix3*)
7051   # AIX sometimes has problems with the GCC collect2 program.  For some
7052   # reason, if we set the COLLECT_NAMES environment variable, the problems
7053   # vanish in a puff of smoke.
7054   if test "X${COLLECT_NAMES+set}" != Xset; then
7055     COLLECT_NAMES=
7056     export COLLECT_NAMES
7057   fi
7058   ;;
7059 esac
7060
7061 # Sed substitution that helps us do robust quoting.  It backslashifies
7062 # metacharacters that are still active within double-quoted strings.
7063 Xsed='sed -e 1s/^X//'
7064 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7065
7066 # Same as above, but do not quote variable references.
7067 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7068
7069 # Sed substitution to delay expansion of an escaped shell variable in a
7070 # double_quote_subst'ed string.
7071 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7072
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7075
7076 # Constants:
7077 rm="rm -f"
7078
7079 # Global variables:
7080 default_ofile=libtool
7081 can_build_shared=yes
7082
7083 # All known linkers require a `.a' archive for static linking (except M$VC,
7084 # which needs '.lib').
7085 libext=a
7086 ltmain="$ac_aux_dir/ltmain.sh"
7087 ofile="$default_ofile"
7088 with_gnu_ld="$lt_cv_prog_gnu_ld"
7089
7090 if test -n "$ac_tool_prefix"; then
7091   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}ar; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_AR+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   if test -n "$AR"; then
7099   ac_cv_prog_AR="$AR" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_exec_ext in '' $ac_executable_extensions; do
7107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108     ac_cv_prog_AR="${ac_tool_prefix}ar"
7109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113 done
7114
7115 fi
7116 fi
7117 AR=$ac_cv_prog_AR
7118 if test -n "$AR"; then
7119   echo "$as_me:$LINENO: result: $AR" >&5
7120 echo "${ECHO_T}$AR" >&6
7121 else
7122   echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7124 fi
7125
7126 fi
7127 if test -z "$ac_cv_prog_AR"; then
7128   ac_ct_AR=$AR
7129   # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   if test -n "$ac_ct_AR"; then
7137   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144   for ac_exec_ext in '' $ac_executable_extensions; do
7145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146     ac_cv_prog_ac_ct_AR="ar"
7147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151 done
7152
7153   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7154 fi
7155 fi
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7159 echo "${ECHO_T}$ac_ct_AR" >&6
7160 else
7161   echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7163 fi
7164
7165   AR=$ac_ct_AR
7166 else
7167   AR="$ac_cv_prog_AR"
7168 fi
7169
7170 if test -n "$ac_tool_prefix"; then
7171   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_prog_RANLIB+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   if test -n "$RANLIB"; then
7179   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186   for ac_exec_ext in '' $ac_executable_extensions; do
7187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193 done
7194
7195 fi
7196 fi
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199   echo "$as_me:$LINENO: result: $RANLIB" >&5
7200 echo "${ECHO_T}$RANLIB" >&6
7201 else
7202   echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 fi
7205
7206 fi
7207 if test -z "$ac_cv_prog_RANLIB"; then
7208   ac_ct_RANLIB=$RANLIB
7209   # Extract the first word of "ranlib", so it can be a program name with args.
7210 set dummy ranlib; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   if test -n "$ac_ct_RANLIB"; then
7217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224   for ac_exec_ext in '' $ac_executable_extensions; do
7225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226     ac_cv_prog_ac_ct_RANLIB="ranlib"
7227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231 done
7232
7233   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7234 fi
7235 fi
7236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237 if test -n "$ac_ct_RANLIB"; then
7238   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7240 else
7241   echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7243 fi
7244
7245   RANLIB=$ac_ct_RANLIB
7246 else
7247   RANLIB="$ac_cv_prog_RANLIB"
7248 fi
7249
7250 if test -n "$ac_tool_prefix"; then
7251   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}strip; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_STRIP+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   if test -n "$STRIP"; then
7259   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266   for ac_exec_ext in '' $ac_executable_extensions; do
7267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273 done
7274
7275 fi
7276 fi
7277 STRIP=$ac_cv_prog_STRIP
7278 if test -n "$STRIP"; then
7279   echo "$as_me:$LINENO: result: $STRIP" >&5
7280 echo "${ECHO_T}$STRIP" >&6
7281 else
7282   echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284 fi
7285
7286 fi
7287 if test -z "$ac_cv_prog_STRIP"; then
7288   ac_ct_STRIP=$STRIP
7289   # Extract the first word of "strip", so it can be a program name with args.
7290 set dummy strip; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   if test -n "$ac_ct_STRIP"; then
7297   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_ac_ct_STRIP="strip"
7307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312
7313   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7314 fi
7315 fi
7316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317 if test -n "$ac_ct_STRIP"; then
7318   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319 echo "${ECHO_T}$ac_ct_STRIP" >&6
7320 else
7321   echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7323 fi
7324
7325   STRIP=$ac_ct_STRIP
7326 else
7327   STRIP="$ac_cv_prog_STRIP"
7328 fi
7329
7330
7331 old_CC="$CC"
7332 old_CFLAGS="$CFLAGS"
7333
7334 # Set sane defaults for various variables
7335 test -z "$AR" && AR=ar
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7337 test -z "$AS" && AS=as
7338 test -z "$CC" && CC=cc
7339 test -z "$LTCC" && LTCC=$CC
7340 test -z "$DLLTOOL" && DLLTOOL=dlltool
7341 test -z "$LD" && LD=ld
7342 test -z "$LN_S" && LN_S="ln -s"
7343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7344 test -z "$NM" && NM=nm
7345 test -z "$SED" && SED=sed
7346 test -z "$OBJDUMP" && OBJDUMP=objdump
7347 test -z "$RANLIB" && RANLIB=:
7348 test -z "$STRIP" && STRIP=:
7349 test -z "$ac_objext" && ac_objext=o
7350
7351 # Determine commands to create old-style static archives.
7352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7353 old_postinstall_cmds='chmod 644 $oldlib'
7354 old_postuninstall_cmds=
7355
7356 if test -n "$RANLIB"; then
7357   case $host_os in
7358   openbsd*)
7359     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7360     ;;
7361   *)
7362     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7363     ;;
7364   esac
7365   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7366 fi
7367
7368 for cc_temp in $compiler""; do
7369   case $cc_temp in
7370     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7371     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7372     \-*) ;;
7373     *) break;;
7374   esac
7375 done
7376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7377
7378
7379 # Only perform the check for file, if the check method requires it
7380 case $deplibs_check_method in
7381 file_magic*)
7382   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7383     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7384 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $MAGIC_CMD in
7389 [\\/*] |  ?:[\\/]*)
7390   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7391   ;;
7392 *)
7393   lt_save_MAGIC_CMD="$MAGIC_CMD"
7394   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396   for ac_dir in $ac_dummy; do
7397     IFS="$lt_save_ifs"
7398     test -z "$ac_dir" && ac_dir=.
7399     if test -f $ac_dir/${ac_tool_prefix}file; then
7400       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7401       if test -n "$file_magic_test_file"; then
7402         case $deplibs_check_method in
7403         "file_magic "*)
7404           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7405           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407             $EGREP "$file_magic_regex" > /dev/null; then
7408             :
7409           else
7410             cat <<EOF 1>&2
7411
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such.  This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem.  Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7420
7421 EOF
7422           fi ;;
7423         esac
7424       fi
7425       break
7426     fi
7427   done
7428   IFS="$lt_save_ifs"
7429   MAGIC_CMD="$lt_save_MAGIC_CMD"
7430   ;;
7431 esac
7432 fi
7433
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7438 else
7439   echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 fi
7442
7443 if test -z "$lt_cv_path_MAGIC_CMD"; then
7444   if test -n "$ac_tool_prefix"; then
7445     echo "$as_me:$LINENO: checking for file" >&5
7446 echo $ECHO_N "checking for file... $ECHO_C" >&6
7447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   case $MAGIC_CMD in
7451 [\\/*] |  ?:[\\/]*)
7452   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7453   ;;
7454 *)
7455   lt_save_MAGIC_CMD="$MAGIC_CMD"
7456   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458   for ac_dir in $ac_dummy; do
7459     IFS="$lt_save_ifs"
7460     test -z "$ac_dir" && ac_dir=.
7461     if test -f $ac_dir/file; then
7462       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463       if test -n "$file_magic_test_file"; then
7464         case $deplibs_check_method in
7465         "file_magic "*)
7466           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7467           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469             $EGREP "$file_magic_regex" > /dev/null; then
7470             :
7471           else
7472             cat <<EOF 1>&2
7473
7474 *** Warning: the command libtool uses to detect shared libraries,
7475 *** $file_magic_cmd, produces output that libtool cannot recognize.
7476 *** The result is that libtool may fail to recognize shared libraries
7477 *** as such.  This will affect the creation of libtool libraries that
7478 *** depend on shared libraries, but programs linked with such libtool
7479 *** libraries will work regardless of this problem.  Nevertheless, you
7480 *** may want to report the problem to your system manager and/or to
7481 *** bug-libtool@gnu.org
7482
7483 EOF
7484           fi ;;
7485         esac
7486       fi
7487       break
7488     fi
7489   done
7490   IFS="$lt_save_ifs"
7491   MAGIC_CMD="$lt_save_MAGIC_CMD"
7492   ;;
7493 esac
7494 fi
7495
7496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497 if test -n "$MAGIC_CMD"; then
7498   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7499 echo "${ECHO_T}$MAGIC_CMD" >&6
7500 else
7501   echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503 fi
7504
7505   else
7506     MAGIC_CMD=:
7507   fi
7508 fi
7509
7510   fi
7511   ;;
7512 esac
7513
7514 enable_dlopen=yes
7515 enable_win32_dll=yes
7516
7517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7518 if test "${enable_libtool_lock+set}" = set; then
7519   enableval="$enable_libtool_lock"
7520
7521 fi;
7522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7523
7524
7525 # Check whether --with-pic or --without-pic was given.
7526 if test "${with_pic+set}" = set; then
7527   withval="$with_pic"
7528   pic_mode="$withval"
7529 else
7530   pic_mode=default
7531 fi;
7532 test -z "$pic_mode" && pic_mode=default
7533
7534 # Use C for the default configuration in the libtool script
7535 tagname=
7536 lt_save_CC="$CC"
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542
7543
7544 # Source file extension for C test sources.
7545 ac_ext=c
7546
7547 # Object file extension for compiled C test sources.
7548 objext=o
7549 objext=$objext
7550
7551 # Code to be used in simple compile tests
7552 lt_simple_compile_test_code="int some_variable = 0;\n"
7553
7554 # Code to be used in simple link tests
7555 lt_simple_link_test_code='int main(){return(0);}\n'
7556
7557
7558 # If no C compiler was specified, use CC.
7559 LTCC=${LTCC-"$CC"}
7560
7561 # Allow CC to be a program name with arguments.
7562 compiler=$CC
7563
7564
7565 # save warnings/boilerplate of simple test code
7566 ac_outfile=conftest.$ac_objext
7567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7569 _lt_compiler_boilerplate=`cat conftest.err`
7570 $rm conftest*
7571
7572 ac_outfile=conftest.$ac_objext
7573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7575 _lt_linker_boilerplate=`cat conftest.err`
7576 $rm conftest*
7577
7578
7579 #
7580 # Check for any special shared library compilation flags.
7581 #
7582 lt_prog_cc_shlib=
7583 if test "$GCC" = no; then
7584   case $host_os in
7585   sco3.2v5*)
7586     lt_prog_cc_shlib='-belf'
7587     ;;
7588   esac
7589 fi
7590 if test -n "$lt_prog_cc_shlib"; then
7591   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7592 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7593   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7594   else
7595     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7596 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7597     lt_cv_prog_cc_can_build_shared=no
7598   fi
7599 fi
7600
7601
7602 #
7603 # Check to make sure the static flag actually works.
7604 #
7605 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7606 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_static_works+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   lt_prog_compiler_static_works=no
7611    save_LDFLAGS="$LDFLAGS"
7612    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7613    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7614    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7615      # The compiler can only warn and ignore the option if not recognized
7616      # So say no if there are warnings
7617      if test -s conftest.err; then
7618        # Append any errors to the config.log.
7619        cat conftest.err 1>&5
7620        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7621        $SED '/^$/d' conftest.err >conftest.er2
7622        if diff conftest.exp conftest.er2 >/dev/null; then
7623          lt_prog_compiler_static_works=yes
7624        fi
7625      else
7626        lt_prog_compiler_static_works=yes
7627      fi
7628    fi
7629    $rm conftest*
7630    LDFLAGS="$save_LDFLAGS"
7631
7632 fi
7633 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7635
7636 if test x"$lt_prog_compiler_static_works" = xyes; then
7637     :
7638 else
7639     lt_prog_compiler_static=
7640 fi
7641
7642
7643
7644
7645 lt_prog_compiler_no_builtin_flag=
7646
7647 if test "$GCC" = yes; then
7648   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7649
7650
7651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   lt_cv_prog_compiler_rtti_exceptions=no
7657   ac_outfile=conftest.$ac_objext
7658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7659    lt_compiler_flag="-fno-rtti -fno-exceptions"
7660    # Insert the option either (1) after the last *FLAGS variable, or
7661    # (2) before a word containing "conftest.", or (3) at the end.
7662    # Note that $ac_compile itself does not contain backslashes and begins
7663    # with a dollar sign (not a hyphen), so the echo should work correctly.
7664    # The option is referenced via a variable to avoid confusing sed.
7665    lt_compile=`echo "$ac_compile" | $SED \
7666    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668    -e 's:$: $lt_compiler_flag:'`
7669    (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670    (eval "$lt_compile" 2>conftest.err)
7671    ac_status=$?
7672    cat conftest.err >&5
7673    echo "$as_me:7673: \$? = $ac_status" >&5
7674    if (exit $ac_status) && test -s "$ac_outfile"; then
7675      # The compiler can only warn and ignore the option if not recognized
7676      # So say no if there are warnings other than the usual output.
7677      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7678      $SED '/^$/d' conftest.err >conftest.er2
7679      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7680        lt_cv_prog_compiler_rtti_exceptions=yes
7681      fi
7682    fi
7683    $rm conftest*
7684
7685 fi
7686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7688
7689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7690     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7691 else
7692     :
7693 fi
7694
7695 fi
7696
7697 lt_prog_compiler_wl=
7698 lt_prog_compiler_pic=
7699 lt_prog_compiler_static=
7700
7701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7703
7704   if test "$GCC" = yes; then
7705     lt_prog_compiler_wl='-Wl,'
7706     lt_prog_compiler_static='-static'
7707
7708     case $host_os in
7709       aix*)
7710       # All AIX code is PIC.
7711       if test "$host_cpu" = ia64; then
7712         # AIX 5 now supports IA64 processor
7713         lt_prog_compiler_static='-Bstatic'
7714       fi
7715       ;;
7716
7717     amigaos*)
7718       # FIXME: we need at least 68020 code to build shared libraries, but
7719       # adding the `-m68020' flag to GCC prevents building anything better,
7720       # like `-m68040'.
7721       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7722       ;;
7723
7724     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725       # PIC is the default for these OSes.
7726       ;;
7727
7728     mingw* | pw32* | os2*)
7729       # This hack is so that the source file can tell whether it is being
7730       # built for inclusion in a dll (and should export symbols for example).
7731       lt_prog_compiler_pic='-DDLL_EXPORT'
7732       ;;
7733
7734     darwin* | rhapsody*)
7735       # PIC is the default on this platform
7736       # Common symbols not allowed in MH_DYLIB files
7737       lt_prog_compiler_pic='-fno-common'
7738       ;;
7739
7740     msdosdjgpp*)
7741       # Just because we use GCC doesn't mean we suddenly get shared libraries
7742       # on systems that don't support them.
7743       lt_prog_compiler_can_build_shared=no
7744       enable_shared=no
7745       ;;
7746
7747     sysv4*MP*)
7748       if test -d /usr/nec; then
7749         lt_prog_compiler_pic=-Kconform_pic
7750       fi
7751       ;;
7752
7753     hpux*)
7754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7755       # not for PA HP-UX.
7756       case "$host_cpu" in
7757       hppa*64*|ia64*)
7758         # +Z the default
7759         ;;
7760       *)
7761         lt_prog_compiler_pic='-fPIC'
7762         ;;
7763       esac
7764       ;;
7765
7766     *)
7767       lt_prog_compiler_pic='-fPIC'
7768       ;;
7769     esac
7770   else
7771     # PORTME Check for flag to pass linker flags through the system compiler.
7772     case $host_os in
7773     aix*)
7774       lt_prog_compiler_wl='-Wl,'
7775       if test "$host_cpu" = ia64; then
7776         # AIX 5 now supports IA64 processor
7777         lt_prog_compiler_static='-Bstatic'
7778       else
7779         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7780       fi
7781       ;;
7782       darwin*)
7783         # PIC is the default on this platform
7784         # Common symbols not allowed in MH_DYLIB files
7785        case $cc_basename in
7786          xlc*)
7787          lt_prog_compiler_pic='-qnocommon'
7788          lt_prog_compiler_wl='-Wl,'
7789          ;;
7790        esac
7791        ;;
7792
7793     mingw* | pw32* | os2*)
7794       # This hack is so that the source file can tell whether it is being
7795       # built for inclusion in a dll (and should export symbols for example).
7796       lt_prog_compiler_pic='-DDLL_EXPORT'
7797       ;;
7798
7799     hpux9* | hpux10* | hpux11*)
7800       lt_prog_compiler_wl='-Wl,'
7801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7802       # not for PA HP-UX.
7803       case "$host_cpu" in
7804       hppa*64*|ia64*)
7805         # +Z the default
7806         ;;
7807       *)
7808         lt_prog_compiler_pic='+Z'
7809         ;;
7810       esac
7811       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812       lt_prog_compiler_static='${wl}-a ${wl}archive'
7813       ;;
7814
7815     irix5* | irix6* | nonstopux*)
7816       lt_prog_compiler_wl='-Wl,'
7817       # PIC (with -KPIC) is the default.
7818       lt_prog_compiler_static='-non_shared'
7819       ;;
7820
7821     newsos6)
7822       lt_prog_compiler_pic='-KPIC'
7823       lt_prog_compiler_static='-Bstatic'
7824       ;;
7825
7826     linux*)
7827       case $cc_basename in
7828       icc* | ecc*)
7829         lt_prog_compiler_wl='-Wl,'
7830         lt_prog_compiler_pic='-KPIC'
7831         lt_prog_compiler_static='-static'
7832         ;;
7833       pgcc* | pgf77* | pgf90*)
7834         # Portland Group compilers (*not* the Pentium gcc compiler,
7835         # which looks to be a dead project)
7836         lt_prog_compiler_wl='-Wl,'
7837         lt_prog_compiler_pic='-fpic'
7838         lt_prog_compiler_static='-static'
7839         ;;
7840       ccc*)
7841         lt_prog_compiler_wl='-Wl,'
7842         # All Alpha code is PIC.
7843         lt_prog_compiler_static='-non_shared'
7844         ;;
7845       esac
7846       ;;
7847
7848     osf3* | osf4* | osf5*)
7849       lt_prog_compiler_wl='-Wl,'
7850       # All OSF/1 code is PIC.
7851       lt_prog_compiler_static='-non_shared'
7852       ;;
7853
7854     sco3.2v5*)
7855       lt_prog_compiler_pic='-Kpic'
7856       lt_prog_compiler_static='-dn'
7857       ;;
7858
7859     solaris*)
7860       lt_prog_compiler_pic='-KPIC'
7861       lt_prog_compiler_static='-Bstatic'
7862       case $cc_basename in
7863       f77* | f90* | f95*)
7864         lt_prog_compiler_wl='-Qoption ld ';;
7865       *)
7866         lt_prog_compiler_wl='-Wl,';;
7867       esac
7868       ;;
7869
7870     sunos4*)
7871       lt_prog_compiler_wl='-Qoption ld '
7872       lt_prog_compiler_pic='-PIC'
7873       lt_prog_compiler_static='-Bstatic'
7874       ;;
7875
7876     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7877       lt_prog_compiler_wl='-Wl,'
7878       lt_prog_compiler_pic='-KPIC'
7879       lt_prog_compiler_static='-Bstatic'
7880       ;;
7881
7882     sysv4*MP*)
7883       if test -d /usr/nec ;then
7884         lt_prog_compiler_pic='-Kconform_pic'
7885         lt_prog_compiler_static='-Bstatic'
7886       fi
7887       ;;
7888
7889     unicos*)
7890       lt_prog_compiler_wl='-Wl,'
7891       lt_prog_compiler_can_build_shared=no
7892       ;;
7893
7894     uts4*)
7895       lt_prog_compiler_pic='-pic'
7896       lt_prog_compiler_static='-Bstatic'
7897       ;;
7898
7899     *)
7900       lt_prog_compiler_can_build_shared=no
7901       ;;
7902     esac
7903   fi
7904
7905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7906 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7907
7908 #
7909 # Check to make sure the PIC flag actually works.
7910 #
7911 if test -n "$lt_prog_compiler_pic"; then
7912
7913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7915 if test "${lt_prog_compiler_pic_works+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   lt_prog_compiler_pic_works=no
7919   ac_outfile=conftest.$ac_objext
7920    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7921    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7922    # Insert the option either (1) after the last *FLAGS variable, or
7923    # (2) before a word containing "conftest.", or (3) at the end.
7924    # Note that $ac_compile itself does not contain backslashes and begins
7925    # with a dollar sign (not a hyphen), so the echo should work correctly.
7926    # The option is referenced via a variable to avoid confusing sed.
7927    lt_compile=`echo "$ac_compile" | $SED \
7928    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930    -e 's:$: $lt_compiler_flag:'`
7931    (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
7932    (eval "$lt_compile" 2>conftest.err)
7933    ac_status=$?
7934    cat conftest.err >&5
7935    echo "$as_me:7935: \$? = $ac_status" >&5
7936    if (exit $ac_status) && test -s "$ac_outfile"; then
7937      # The compiler can only warn and ignore the option if not recognized
7938      # So say no if there are warnings other than the usual output.
7939      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7940      $SED '/^$/d' conftest.err >conftest.er2
7941      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7942        lt_prog_compiler_pic_works=yes
7943      fi
7944    fi
7945    $rm conftest*
7946
7947 fi
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7950
7951 if test x"$lt_prog_compiler_pic_works" = xyes; then
7952     case $lt_prog_compiler_pic in
7953      "" | " "*) ;;
7954      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7955      esac
7956 else
7957     lt_prog_compiler_pic=
7958      lt_prog_compiler_can_build_shared=no
7959 fi
7960
7961 fi
7962 case "$host_os" in
7963   # For platforms which do not support PIC, -DPIC is meaningless:
7964   *djgpp*)
7965     lt_prog_compiler_pic=
7966     ;;
7967   *)
7968     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7969     ;;
7970 esac
7971
7972 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   lt_cv_prog_compiler_c_o=no
7978    $rm -r conftest 2>/dev/null
7979    mkdir conftest
7980    cd conftest
7981    mkdir out
7982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7983
7984    lt_compiler_flag="-o out/conftest2.$ac_objext"
7985    # Insert the option either (1) after the last *FLAGS variable, or
7986    # (2) before a word containing "conftest.", or (3) at the end.
7987    # Note that $ac_compile itself does not contain backslashes and begins
7988    # with a dollar sign (not a hyphen), so the echo should work correctly.
7989    lt_compile=`echo "$ac_compile" | $SED \
7990    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7992    -e 's:$: $lt_compiler_flag:'`
7993    (eval echo "\"\$as_me:7993: $lt_compile\"" >&5)
7994    (eval "$lt_compile" 2>out/conftest.err)
7995    ac_status=$?
7996    cat out/conftest.err >&5
7997    echo "$as_me:7997: \$? = $ac_status" >&5
7998    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7999    then
8000      # The compiler can only warn and ignore the option if not recognized
8001      # So say no if there are warnings
8002      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8003      $SED '/^$/d' out/conftest.err >out/conftest.er2
8004      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8005        lt_cv_prog_compiler_c_o=yes
8006      fi
8007    fi
8008    chmod u+w .
8009    $rm conftest*
8010    # SGI C++ compiler will create directory out/ii_files/ for
8011    # template instantiation
8012    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8013    $rm out/* && rmdir out
8014    cd ..
8015    rmdir conftest
8016    $rm conftest*
8017
8018 fi
8019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8021
8022
8023 hard_links="nottested"
8024 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8025   # do not overwrite the value of need_locks provided by the user
8026   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8028   hard_links=yes
8029   $rm conftest*
8030   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8031   touch conftest.a
8032   ln conftest.a conftest.b 2>&5 || hard_links=no
8033   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034   echo "$as_me:$LINENO: result: $hard_links" >&5
8035 echo "${ECHO_T}$hard_links" >&6
8036   if test "$hard_links" = no; then
8037     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8039     need_locks=warn
8040   fi
8041 else
8042   need_locks=no
8043 fi
8044
8045 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8047
8048   runpath_var=
8049   allow_undefined_flag=
8050   enable_shared_with_static_runtimes=no
8051   archive_cmds=
8052   archive_expsym_cmds=
8053   old_archive_From_new_cmds=
8054   old_archive_from_expsyms_cmds=
8055   export_dynamic_flag_spec=
8056   whole_archive_flag_spec=
8057   thread_safe_flag_spec=
8058   hardcode_libdir_flag_spec=
8059   hardcode_libdir_flag_spec_ld=
8060   hardcode_libdir_separator=
8061   hardcode_direct=no
8062   hardcode_minus_L=no
8063   hardcode_shlibpath_var=unsupported
8064   link_all_deplibs=unknown
8065   hardcode_automatic=no
8066   module_cmds=
8067   module_expsym_cmds=
8068   always_export_symbols=no
8069   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8070   # include_expsyms should be a list of space-separated symbols to be *always*
8071   # included in the symbol list
8072   include_expsyms=
8073   # exclude_expsyms can be an extended regexp of symbols to exclude
8074   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8075   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8076   # as well as any symbol that contains `d'.
8077   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8078   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8079   # platforms (ab)use it in PIC code, but their linkers get confused if
8080   # the symbol is explicitly referenced.  Since portable code cannot
8081   # rely on this symbol name, it's probably fine to never include it in
8082   # preloaded symbol tables.
8083   extract_expsyms_cmds=
8084   # Just being paranoid about ensuring that cc_basename is set.
8085   for cc_temp in $compiler""; do
8086   case $cc_temp in
8087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8089     \-*) ;;
8090     *) break;;
8091   esac
8092 done
8093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8094
8095   case $host_os in
8096   cygwin* | mingw* | pw32*)
8097     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8098     # When not using gcc, we currently assume that we are using
8099     # Microsoft Visual C++.
8100     if test "$GCC" != yes; then
8101       with_gnu_ld=no
8102     fi
8103     ;;
8104   openbsd*)
8105     with_gnu_ld=no
8106     ;;
8107   esac
8108
8109   ld_shlibs=yes
8110   if test "$with_gnu_ld" = yes; then
8111     # If archive_cmds runs LD, not CC, wlarc should be empty
8112     wlarc='${wl}'
8113
8114     # Set some defaults for GNU ld with shared library support. These
8115     # are reset later if shared libraries are not supported. Putting them
8116     # here allows them to be overridden if necessary.
8117     runpath_var=LD_RUN_PATH
8118     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119     export_dynamic_flag_spec='${wl}--export-dynamic'
8120     # ancient GNU ld didn't support --whole-archive et. al.
8121     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8123       else
8124         whole_archive_flag_spec=
8125     fi
8126     supports_anon_versioning=no
8127     case `$LD -v 2>/dev/null` in
8128       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131       *\ 2.11.*) ;; # other 2.11 versions
8132       *) supports_anon_versioning=yes ;;
8133     esac
8134
8135     # See if GNU ld supports shared libraries.
8136     case $host_os in
8137     aix3* | aix4* | aix5*)
8138       # On AIX/PPC, the GNU linker is very broken
8139       if test "$host_cpu" != ia64; then
8140         ld_shlibs=no
8141         cat <<EOF 1>&2
8142
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support.  If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8148
8149 EOF
8150       fi
8151       ;;
8152
8153     amigaos*)
8154       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8155       hardcode_libdir_flag_spec='-L$libdir'
8156       hardcode_minus_L=yes
8157
8158       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159       # that the semantics of dynamic libraries on AmigaOS, at least up
8160       # to version 4, is to share data among multiple programs linked
8161       # with the same dynamic library.  Since this doesn't match the
8162       # behavior of shared libraries on other platforms, we can't use
8163       # them.
8164       ld_shlibs=no
8165       ;;
8166
8167     beos*)
8168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169         allow_undefined_flag=unsupported
8170         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171         # support --undefined.  This deserves some investigation.  FIXME
8172         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173       else
8174         ld_shlibs=no
8175       fi
8176       ;;
8177
8178     cygwin* | mingw* | pw32*)
8179       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180       # as there is no search path for DLLs.
8181       hardcode_libdir_flag_spec='-L$libdir'
8182       allow_undefined_flag=unsupported
8183       always_export_symbols=no
8184       enable_shared_with_static_runtimes=yes
8185       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8186
8187       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8189         # If the export-symbols file already is a .def file (1st line
8190         # is EXPORTS), use it as is; otherwise, prepend...
8191         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192           cp $export_symbols $output_objdir/$soname.def;
8193         else
8194           echo EXPORTS > $output_objdir/$soname.def;
8195           cat $export_symbols >> $output_objdir/$soname.def;
8196         fi~
8197         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8198       else
8199         ld_shlibs=no
8200       fi
8201       ;;
8202
8203     linux*)
8204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205         tmp_addflag=
8206         case $cc_basename,$host_cpu in
8207         pgcc*)                          # Portland Group C compiler
8208           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8209           tmp_addflag=' $pic_flag'
8210           ;;
8211         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
8212           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8213           tmp_addflag=' $pic_flag -Mnomain' ;;
8214         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8215           tmp_addflag=' -i_dynamic' ;;
8216         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8217           tmp_addflag=' -i_dynamic -nofor_main' ;;
8218         ifc* | ifort*)                  # Intel Fortran compiler
8219           tmp_addflag=' -nofor_main' ;;
8220         esac
8221         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222
8223         if test $supports_anon_versioning = yes; then
8224           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226   $echo "local: *; };" >> $output_objdir/$libname.ver~
8227           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8228         fi
8229       else
8230         ld_shlibs=no
8231       fi
8232       ;;
8233
8234     netbsd*)
8235       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8236         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8237         wlarc=
8238       else
8239         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8241       fi
8242       ;;
8243
8244     solaris* | sysv5*)
8245       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8246         ld_shlibs=no
8247         cat <<EOF 1>&2
8248
8249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8250 *** create shared libraries on Solaris systems.  Therefore, libtool
8251 *** is disabling shared libraries support.  We urge you to upgrade GNU
8252 *** binutils to release 2.9.1 or newer.  Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8255
8256 EOF
8257       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8260       else
8261         ld_shlibs=no
8262       fi
8263       ;;
8264
8265     sunos4*)
8266       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8267       wlarc=
8268       hardcode_direct=yes
8269       hardcode_shlibpath_var=no
8270       ;;
8271
8272     *)
8273       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276       else
8277         ld_shlibs=no
8278       fi
8279       ;;
8280     esac
8281
8282     if test "$ld_shlibs" = no; then
8283       runpath_var=
8284       hardcode_libdir_flag_spec=
8285       export_dynamic_flag_spec=
8286       whole_archive_flag_spec=
8287     fi
8288   else
8289     # PORTME fill in a description of your system's linker (not GNU ld)
8290     case $host_os in
8291     aix3*)
8292       allow_undefined_flag=unsupported
8293       always_export_symbols=yes
8294       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8295       # Note: this linker hardcodes the directories in LIBPATH if there
8296       # are no directories specified by -L.
8297       hardcode_minus_L=yes
8298       if test "$GCC" = yes && test -z "$link_static_flag"; then
8299         # Neither direct hardcoding nor static linking is supported with a
8300         # broken collect2.
8301         hardcode_direct=unsupported
8302       fi
8303       ;;
8304
8305     aix4* | aix5*)
8306       if test "$host_cpu" = ia64; then
8307         # On IA64, the linker does run time linking by default, so we don't
8308         # have to do anything special.
8309         aix_use_runtimelinking=no
8310         exp_sym_flag='-Bexport'
8311         no_entry_flag=""
8312       else
8313         # If we're using GNU nm, then we don't want the "-C" option.
8314         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8315         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8316           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8317         else
8318           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8319         fi
8320         aix_use_runtimelinking=no
8321
8322         # Test if we are trying to use run time linking or normal
8323         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8324         # need to do runtime linking.
8325         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8326           for ld_flag in $LDFLAGS; do
8327           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8328             aix_use_runtimelinking=yes
8329             break
8330           fi
8331           done
8332         esac
8333
8334         exp_sym_flag='-bexport'
8335         no_entry_flag='-bnoentry'
8336       fi
8337
8338       # When large executables or shared objects are built, AIX ld can
8339       # have problems creating the table of contents.  If linking a library
8340       # or program results in "error TOC overflow" add -mminimal-toc to
8341       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8342       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8343
8344       archive_cmds=''
8345       hardcode_direct=yes
8346       hardcode_libdir_separator=':'
8347       link_all_deplibs=yes
8348
8349       if test "$GCC" = yes; then
8350         case $host_os in aix4.[012]|aix4.[012].*)
8351         # We only want to do this on AIX 4.2 and lower, the check
8352         # below for broken collect2 doesn't work under 4.3+
8353           collect2name=`${CC} -print-prog-name=collect2`
8354           if test -f "$collect2name" && \
8355            strings "$collect2name" | grep resolve_lib_name >/dev/null
8356           then
8357           # We have reworked collect2
8358           hardcode_direct=yes
8359           else
8360           # We have old collect2
8361           hardcode_direct=unsupported
8362           # It fails to find uninstalled libraries when the uninstalled
8363           # path is not listed in the libpath.  Setting hardcode_minus_L
8364           # to unsupported forces relinking
8365           hardcode_minus_L=yes
8366           hardcode_libdir_flag_spec='-L$libdir'
8367           hardcode_libdir_separator=
8368           fi
8369         esac
8370         shared_flag='-shared'
8371         if test "$aix_use_runtimelinking" = yes; then
8372           shared_flag="$shared_flag "'${wl}-G'
8373         fi
8374       else
8375         # not using gcc
8376         if test "$host_cpu" = ia64; then
8377         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8378         # chokes on -Wl,-G. The following line is correct:
8379           shared_flag='-G'
8380         else
8381         if test "$aix_use_runtimelinking" = yes; then
8382             shared_flag='${wl}-G'
8383           else
8384             shared_flag='${wl}-bM:SRE'
8385         fi
8386         fi
8387       fi
8388
8389       # It seems that -bexpall does not export symbols beginning with
8390       # underscore (_), so it is better to generate a list of symbols to export.
8391       always_export_symbols=yes
8392       if test "$aix_use_runtimelinking" = yes; then
8393         # Warning - without using the other runtime loading flags (-brtl),
8394         # -berok will link without error, but may produce a broken library.
8395         allow_undefined_flag='-berok'
8396        # Determine the default libpath from the value encoded in an empty executable.
8397        cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403
8404 int
8405 main ()
8406 {
8407
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414   (eval $ac_link) 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag"
8422                          || test ! -s conftest.err'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; } &&
8428          { ac_try='test -s conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8436 }'`
8437 # Check for a 64-bit object if we didn't find anything.
8438 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8439 }'`; fi
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 fi
8445 rm -f conftest.err conftest.$ac_objext \
8446       conftest$ac_exeext conftest.$ac_ext
8447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8448
8449        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8450         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8451        else
8452         if test "$host_cpu" = ia64; then
8453           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8454           allow_undefined_flag="-z nodefs"
8455           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8456         else
8457          # Determine the default libpath from the value encoded in an empty executable.
8458          cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464
8465 int
8466 main ()
8467 {
8468
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475   (eval $ac_link) 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag"
8483                          || test ! -s conftest.err'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; } &&
8489          { ac_try='test -s conftest$ac_exeext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495
8496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8497 }'`
8498 # Check for a 64-bit object if we didn't find anything.
8499 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8500 }'`; fi
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 fi
8506 rm -f conftest.err conftest.$ac_objext \
8507       conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8509
8510          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511           # Warning - without using the other run time loading flags,
8512           # -berok will link without error, but may produce a broken library.
8513           no_undefined_flag=' ${wl}-bernotok'
8514           allow_undefined_flag=' ${wl}-berok'
8515           # -bexpall does not export symbols beginning with underscore (_)
8516           always_export_symbols=yes
8517           # Exported symbols can be pulled into shared objects from archives
8518           whole_archive_flag_spec=' '
8519           archive_cmds_need_lc=yes
8520           # This is similar to how AIX traditionally builds it's shared libraries.
8521           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8522         fi
8523       fi
8524       ;;
8525
8526     amigaos*)
8527       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8528       hardcode_libdir_flag_spec='-L$libdir'
8529       hardcode_minus_L=yes
8530       # see comment about different semantics on the GNU ld section
8531       ld_shlibs=no
8532       ;;
8533
8534     bsdi[45]*)
8535       export_dynamic_flag_spec=-rdynamic
8536       ;;
8537
8538     cygwin* | mingw* | pw32*)
8539       # When not using gcc, we currently assume that we are using
8540       # Microsoft Visual C++.
8541       # hardcode_libdir_flag_spec is actually meaningless, as there is
8542       # no search path for DLLs.
8543       hardcode_libdir_flag_spec=' '
8544       allow_undefined_flag=unsupported
8545       # Tell ltmain to make .lib files, not .a files.
8546       libext=lib
8547       # Tell ltmain to make .dll files, not .so files.
8548       shrext_cmds=".dll"
8549       # FIXME: Setting linknames here is a bad hack.
8550       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8551       # The linker will automatically build a .lib file if we build a DLL.
8552       old_archive_From_new_cmds='true'
8553       # FIXME: Should let the user specify the lib program.
8554       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8555       fix_srcfile_path='`cygpath -w "$srcfile"`'
8556       enable_shared_with_static_runtimes=yes
8557       ;;
8558
8559     darwin* | rhapsody*)
8560       case "$host_os" in
8561         rhapsody* | darwin1.[012])
8562          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8563          ;;
8564        *) # Darwin 1.3 on
8565          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8566            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8567          else
8568            case ${MACOSX_DEPLOYMENT_TARGET} in
8569              10.[012])
8570                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8571                ;;
8572              10.*)
8573                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8574                ;;
8575            esac
8576          fi
8577          ;;
8578       esac
8579       archive_cmds_need_lc=no
8580       hardcode_direct=no
8581       hardcode_automatic=yes
8582       hardcode_shlibpath_var=unsupported
8583       whole_archive_flag_spec=''
8584       link_all_deplibs=yes
8585     if test "$GCC" = yes ; then
8586         output_verbose_link_cmd='echo'
8587         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8588       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8590       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8591       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8592     else
8593       case $cc_basename in
8594         xlc*)
8595          output_verbose_link_cmd='echo'
8596          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8597          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8599          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8600           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8601           ;;
8602        *)
8603          ld_shlibs=no
8604           ;;
8605       esac
8606     fi
8607       ;;
8608
8609     dgux*)
8610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611       hardcode_libdir_flag_spec='-L$libdir'
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     freebsd1*)
8616       ld_shlibs=no
8617       ;;
8618
8619     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620     # support.  Future versions do this automatically, but an explicit c++rt0.o
8621     # does not break anything, and helps significantly (at the cost of a little
8622     # extra space).
8623     freebsd2.2*)
8624       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625       hardcode_libdir_flag_spec='-R$libdir'
8626       hardcode_direct=yes
8627       hardcode_shlibpath_var=no
8628       ;;
8629
8630     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631     freebsd2*)
8632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633       hardcode_direct=yes
8634       hardcode_minus_L=yes
8635       hardcode_shlibpath_var=no
8636       ;;
8637
8638     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639     freebsd* | kfreebsd*-gnu | dragonfly*)
8640       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641       hardcode_libdir_flag_spec='-R$libdir'
8642       hardcode_direct=yes
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     hpux9*)
8647       if test "$GCC" = yes; then
8648         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8649       else
8650         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8651       fi
8652       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653       hardcode_libdir_separator=:
8654       hardcode_direct=yes
8655
8656       # hardcode_minus_L: Not really in the search PATH,
8657       # but as the default location of the library.
8658       hardcode_minus_L=yes
8659       export_dynamic_flag_spec='${wl}-E'
8660       ;;
8661
8662     hpux10* | hpux11*)
8663       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8664         case "$host_cpu" in
8665         hppa*64*|ia64*)
8666           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8667           ;;
8668         *)
8669           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8670           ;;
8671         esac
8672       else
8673         case "$host_cpu" in
8674         hppa*64*|ia64*)
8675           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8676           ;;
8677         *)
8678           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8679           ;;
8680         esac
8681       fi
8682       if test "$with_gnu_ld" = no; then
8683         case "$host_cpu" in
8684         hppa*64*)
8685           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686           hardcode_libdir_flag_spec_ld='+b $libdir'
8687           hardcode_libdir_separator=:
8688           hardcode_direct=no
8689           hardcode_shlibpath_var=no
8690           ;;
8691         ia64*)
8692           hardcode_libdir_flag_spec='-L$libdir'
8693           hardcode_direct=no
8694           hardcode_shlibpath_var=no
8695
8696           # hardcode_minus_L: Not really in the search PATH,
8697           # but as the default location of the library.
8698           hardcode_minus_L=yes
8699           ;;
8700         *)
8701           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702           hardcode_libdir_separator=:
8703           hardcode_direct=yes
8704           export_dynamic_flag_spec='${wl}-E'
8705
8706           # hardcode_minus_L: Not really in the search PATH,
8707           # but as the default location of the library.
8708           hardcode_minus_L=yes
8709           ;;
8710         esac
8711       fi
8712       ;;
8713
8714     irix5* | irix6* | nonstopux*)
8715       if test "$GCC" = yes; then
8716         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8717       else
8718         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8719         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8720       fi
8721       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722       hardcode_libdir_separator=:
8723       link_all_deplibs=yes
8724       ;;
8725
8726     netbsd*)
8727       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8728         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8729       else
8730         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8731       fi
8732       hardcode_libdir_flag_spec='-R$libdir'
8733       hardcode_direct=yes
8734       hardcode_shlibpath_var=no
8735       ;;
8736
8737     newsos6)
8738       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739       hardcode_direct=yes
8740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741       hardcode_libdir_separator=:
8742       hardcode_shlibpath_var=no
8743       ;;
8744
8745     openbsd*)
8746       hardcode_direct=yes
8747       hardcode_shlibpath_var=no
8748       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8749         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8750         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8751         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8752         export_dynamic_flag_spec='${wl}-E'
8753       else
8754        case $host_os in
8755          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8756            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757            hardcode_libdir_flag_spec='-R$libdir'
8758            ;;
8759          *)
8760            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8761            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8762            ;;
8763        esac
8764       fi
8765       ;;
8766
8767     os2*)
8768       hardcode_libdir_flag_spec='-L$libdir'
8769       hardcode_minus_L=yes
8770       allow_undefined_flag=unsupported
8771       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8772       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8773       ;;
8774
8775     osf3*)
8776       if test "$GCC" = yes; then
8777         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8779       else
8780         allow_undefined_flag=' -expect_unresolved \*'
8781         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8782       fi
8783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784       hardcode_libdir_separator=:
8785       ;;
8786
8787     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8788       if test "$GCC" = yes; then
8789         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8791         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792       else
8793         allow_undefined_flag=' -expect_unresolved \*'
8794         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8795         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8796         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8797
8798         # Both c and cxx compiler support -rpath directly
8799         hardcode_libdir_flag_spec='-rpath $libdir'
8800       fi
8801       hardcode_libdir_separator=:
8802       ;;
8803
8804     sco3.2v5*)
8805       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806       hardcode_shlibpath_var=no
8807       export_dynamic_flag_spec='${wl}-Bexport'
8808       runpath_var=LD_RUN_PATH
8809       hardcode_runpath_var=yes
8810       ;;
8811
8812     solaris*)
8813       no_undefined_flag=' -z text'
8814       if test "$GCC" = yes; then
8815         wlarc='${wl}'
8816         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8819       else
8820         wlarc=''
8821         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8824       fi
8825       hardcode_libdir_flag_spec='-R$libdir'
8826       hardcode_shlibpath_var=no
8827       case $host_os in
8828       solaris2.[0-5] | solaris2.[0-5].*) ;;
8829       *)
8830         # The compiler driver will combine linker options so we
8831         # cannot just pass the convience library names through
8832         # without $wl, iff we do not link with $LD.
8833         # Luckily, gcc supports the same syntax we need for Sun Studio.
8834         # Supported since Solaris 2.6 (maybe 2.5.1?)
8835         case $wlarc in
8836         '')
8837           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8838         *)
8839           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8840         esac ;;
8841       esac
8842       link_all_deplibs=yes
8843       ;;
8844
8845     sunos4*)
8846       if test "x$host_vendor" = xsequent; then
8847         # Use $CC to link under sequent, because it throws in some extra .o
8848         # files that make .init and .fini sections work.
8849         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8850       else
8851         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8852       fi
8853       hardcode_libdir_flag_spec='-L$libdir'
8854       hardcode_direct=yes
8855       hardcode_minus_L=yes
8856       hardcode_shlibpath_var=no
8857       ;;
8858
8859     sysv4)
8860       case $host_vendor in
8861         sni)
8862           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863           hardcode_direct=yes # is this really true???
8864         ;;
8865         siemens)
8866           ## LD is ld it makes a PLAMLIB
8867           ## CC just makes a GrossModule.
8868           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8869           reload_cmds='$CC -r -o $output$reload_objs'
8870           hardcode_direct=no
8871         ;;
8872         motorola)
8873           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8875         ;;
8876       esac
8877       runpath_var='LD_RUN_PATH'
8878       hardcode_shlibpath_var=no
8879       ;;
8880
8881     sysv4.3*)
8882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883       hardcode_shlibpath_var=no
8884       export_dynamic_flag_spec='-Bexport'
8885       ;;
8886
8887     sysv4*MP*)
8888       if test -d /usr/nec; then
8889         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890         hardcode_shlibpath_var=no
8891         runpath_var=LD_RUN_PATH
8892         hardcode_runpath_var=yes
8893         ld_shlibs=yes
8894       fi
8895       ;;
8896
8897     sysv4.2uw2*)
8898       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8899       hardcode_direct=yes
8900       hardcode_minus_L=no
8901       hardcode_shlibpath_var=no
8902       hardcode_runpath_var=yes
8903       runpath_var=LD_RUN_PATH
8904       ;;
8905
8906    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8907       no_undefined_flag='${wl}-z ${wl}text'
8908       if test "$GCC" = yes; then
8909         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910       else
8911         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912       fi
8913       runpath_var='LD_RUN_PATH'
8914       hardcode_shlibpath_var=no
8915       ;;
8916
8917     sysv5*)
8918       no_undefined_flag=' -z text'
8919       # $CC -shared without GNU ld will not create a library from C++
8920       # object files and a static libstdc++, better avoid it by now
8921       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8924       hardcode_libdir_flag_spec=
8925       hardcode_shlibpath_var=no
8926       runpath_var='LD_RUN_PATH'
8927       ;;
8928
8929     uts4*)
8930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931       hardcode_libdir_flag_spec='-L$libdir'
8932       hardcode_shlibpath_var=no
8933       ;;
8934
8935     *)
8936       ld_shlibs=no
8937       ;;
8938     esac
8939   fi
8940
8941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8942 echo "${ECHO_T}$ld_shlibs" >&6
8943 test "$ld_shlibs" = no && can_build_shared=no
8944
8945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8946 if test "$GCC" = yes; then
8947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8948 fi
8949
8950 #
8951 # Do we need to explicitly link libc?
8952 #
8953 case "x$archive_cmds_need_lc" in
8954 x|xyes)
8955   # Assume -lc should be added
8956   archive_cmds_need_lc=yes
8957
8958   if test "$enable_shared" = yes && test "$GCC" = yes; then
8959     case $archive_cmds in
8960     *'~'*)
8961       # FIXME: we may have to deal with multi-command sequences.
8962       ;;
8963     '$CC '*)
8964       # Test whether the compiler implicitly links with -lc since on some
8965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966       # to ld, don't add -lc before -lgcc.
8967       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8969       $rm conftest*
8970       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8971
8972       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973   (eval $ac_compile) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } 2>conftest.err; then
8977         soname=conftest
8978         lib=conftest
8979         libobjs=conftest.$ac_objext
8980         deplibs=
8981         wl=$lt_prog_compiler_wl
8982         compiler_flags=-v
8983         linker_flags=-v
8984         verstring=
8985         output_objdir=.
8986         libname=conftest
8987         lt_save_allow_undefined_flag=$allow_undefined_flag
8988         allow_undefined_flag=
8989         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8990   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }
8994         then
8995           archive_cmds_need_lc=no
8996         else
8997           archive_cmds_need_lc=yes
8998         fi
8999         allow_undefined_flag=$lt_save_allow_undefined_flag
9000       else
9001         cat conftest.err 1>&5
9002       fi
9003       $rm conftest*
9004       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9006       ;;
9007     esac
9008   fi
9009   ;;
9010 esac
9011
9012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9014 library_names_spec=
9015 libname_spec='lib$name'
9016 soname_spec=
9017 shrext_cmds=".so"
9018 postinstall_cmds=
9019 postuninstall_cmds=
9020 finish_cmds=
9021 finish_eval=
9022 shlibpath_var=
9023 shlibpath_overrides_runpath=unknown
9024 version_type=none
9025 dynamic_linker="$host_os ld.so"
9026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9027 if test "$GCC" = yes; then
9028   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9029   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9030     # if the path contains ";" then we assume it to be the separator
9031     # otherwise default to the standard path separator (i.e. ":") - it is
9032     # assumed that no part of a normal pathname contains ";" but that should
9033     # okay in the real world where ";" in dirpaths is itself problematic.
9034     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9035   else
9036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9037   fi
9038 else
9039   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9040 fi
9041 need_lib_prefix=unknown
9042 hardcode_into_libs=no
9043
9044 # when you set need_version to no, make sure it does not cause -set_version
9045 # flags to be left without arguments
9046 need_version=unknown
9047
9048 case $host_os in
9049 aix3*)
9050   version_type=linux
9051   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9052   shlibpath_var=LIBPATH
9053
9054   # AIX 3 has no versioning support, so we append a major version to the name.
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   ;;
9057
9058 aix4* | aix5*)
9059   version_type=linux
9060   need_lib_prefix=no
9061   need_version=no
9062   hardcode_into_libs=yes
9063   if test "$host_cpu" = ia64; then
9064     # AIX 5 supports IA64
9065     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9066     shlibpath_var=LD_LIBRARY_PATH
9067   else
9068     # With GCC up to 2.95.x, collect2 would create an import file
9069     # for dependence libraries.  The import file would start with
9070     # the line `#! .'.  This would cause the generated library to
9071     # depend on `.', always an invalid library.  This was fixed in
9072     # development snapshots of GCC prior to 3.0.
9073     case $host_os in
9074       aix4 | aix4.[01] | aix4.[01].*)
9075       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9076            echo ' yes '
9077            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9078         :
9079       else
9080         can_build_shared=no
9081       fi
9082       ;;
9083     esac
9084     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9085     # soname into executable. Probably we can add versioning support to
9086     # collect2, so additional links can be useful in future.
9087     if test "$aix_use_runtimelinking" = yes; then
9088       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9089       # instead of lib<name>.a to let people know that these are not
9090       # typical AIX shared libraries.
9091       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092     else
9093       # We preserve .a as extension for shared libraries through AIX4.2
9094       # and later when we are not doing run time linking.
9095       library_names_spec='${libname}${release}.a $libname.a'
9096       soname_spec='${libname}${release}${shared_ext}$major'
9097     fi
9098     shlibpath_var=LIBPATH
9099   fi
9100   ;;
9101
9102 amigaos*)
9103   library_names_spec='$libname.ixlibrary $libname.a'
9104   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9106   ;;
9107
9108 beos*)
9109   library_names_spec='${libname}${shared_ext}'
9110   dynamic_linker="$host_os ld.so"
9111   shlibpath_var=LIBRARY_PATH
9112   ;;
9113
9114 bsdi[45]*)
9115   version_type=linux
9116   need_version=no
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9122   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9123   # the default ld.so.conf also contains /usr/contrib/lib and
9124   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9125   # libtool to hard-code these into programs
9126   ;;
9127
9128 cygwin* | mingw* | pw32*)
9129   version_type=windows
9130   shrext_cmds=".dll"
9131   need_version=no
9132   need_lib_prefix=no
9133
9134   case $GCC,$host_os in
9135   yes,cygwin* | yes,mingw* | yes,pw32*)
9136     library_names_spec='$libname.dll.a'
9137     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9138     postinstall_cmds='base_file=`basename \${file}`~
9139       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9140       dldir=$destdir/`dirname \$dlpath`~
9141       test -d \$dldir || mkdir -p \$dldir~
9142       $install_prog $dir/$dlname \$dldir/$dlname'
9143     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9144       dlpath=$dir/\$dldll~
9145        $rm \$dlpath'
9146     shlibpath_overrides_runpath=yes
9147
9148     case $host_os in
9149     cygwin*)
9150       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9151       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9152       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9153       ;;
9154     mingw*)
9155       # MinGW DLLs use traditional 'lib' prefix
9156       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9157       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9158       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9159         # It is most probably a Windows format PATH printed by
9160         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9161         # path with ; separators, and with drive letters. We can handle the
9162         # drive letters (cygwin fileutils understands them), so leave them,
9163         # especially as we might pass files found there to a mingw objdump,
9164         # which wouldn't understand a cygwinified path. Ahh.
9165         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9166       else
9167         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9168       fi
9169       ;;
9170     pw32*)
9171       # pw32 DLLs use 'pw' prefix rather than 'lib'
9172       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9173       ;;
9174     esac
9175     ;;
9176
9177   *)
9178     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9179     ;;
9180   esac
9181   dynamic_linker='Win32 ld.exe'
9182   # FIXME: first we should search . and the directory the executable is in
9183   shlibpath_var=PATH
9184   ;;
9185
9186 darwin* | rhapsody*)
9187   dynamic_linker="$host_os dyld"
9188   version_type=darwin
9189   need_lib_prefix=no
9190   need_version=no
9191   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9192   soname_spec='${libname}${release}${major}$shared_ext'
9193   shlibpath_overrides_runpath=yes
9194   shlibpath_var=DYLD_LIBRARY_PATH
9195   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9196   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9197   if test "$GCC" = yes; then
9198     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9199   else
9200     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9201   fi
9202   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9203   ;;
9204
9205 dgux*)
9206   version_type=linux
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   ;;
9213
9214 freebsd1*)
9215   dynamic_linker=no
9216   ;;
9217
9218 kfreebsd*-gnu)
9219   version_type=linux
9220   need_lib_prefix=no
9221   need_version=no
9222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223   soname_spec='${libname}${release}${shared_ext}$major'
9224   shlibpath_var=LD_LIBRARY_PATH
9225   shlibpath_overrides_runpath=no
9226   hardcode_into_libs=yes
9227   dynamic_linker='GNU ld.so'
9228   ;;
9229
9230 freebsd* | dragonfly*)
9231   # DragonFly does not have aout.  When/if they implement a new
9232   # versioning mechanism, adjust this.
9233   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9234   version_type=freebsd-$objformat
9235   case $version_type in
9236     freebsd-elf*)
9237       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9238       need_version=no
9239       need_lib_prefix=no
9240       ;;
9241     freebsd-*)
9242       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9243       need_version=yes
9244       ;;
9245   esac
9246   shlibpath_var=LD_LIBRARY_PATH
9247   case $host_os in
9248   freebsd2*)
9249     shlibpath_overrides_runpath=yes
9250     ;;
9251   freebsd3.[01]* | freebsdelf3.[01]*)
9252     shlibpath_overrides_runpath=yes
9253     hardcode_into_libs=yes
9254     ;;
9255   *) # from 3.2 on
9256     shlibpath_overrides_runpath=no
9257     hardcode_into_libs=yes
9258     ;;
9259   esac
9260   ;;
9261
9262 gnu*)
9263   version_type=linux
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   hardcode_into_libs=yes
9270   ;;
9271
9272 hpux9* | hpux10* | hpux11*)
9273   # Give a soname corresponding to the major version so that dld.sl refuses to
9274   # link against other versions.
9275   version_type=sunos
9276   need_lib_prefix=no
9277   need_version=no
9278   case "$host_cpu" in
9279   ia64*)
9280     shrext_cmds='.so'
9281     hardcode_into_libs=yes
9282     dynamic_linker="$host_os dld.so"
9283     shlibpath_var=LD_LIBRARY_PATH
9284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286     soname_spec='${libname}${release}${shared_ext}$major'
9287     if test "X$HPUX_IA64_MODE" = X32; then
9288       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9289     else
9290       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9291     fi
9292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9293     ;;
9294    hppa*64*)
9295      shrext_cmds='.sl'
9296      hardcode_into_libs=yes
9297      dynamic_linker="$host_os dld.sl"
9298      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9299      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9300      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301      soname_spec='${libname}${release}${shared_ext}$major'
9302      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9303      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9304      ;;
9305    *)
9306     shrext_cmds='.sl'
9307     dynamic_linker="$host_os dld.sl"
9308     shlibpath_var=SHLIB_PATH
9309     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311     soname_spec='${libname}${release}${shared_ext}$major'
9312     ;;
9313   esac
9314   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9315   postinstall_cmds='chmod 555 $lib'
9316   ;;
9317
9318 irix5* | irix6* | nonstopux*)
9319   case $host_os in
9320     nonstopux*) version_type=nonstopux ;;
9321     *)
9322         if test "$lt_cv_prog_gnu_ld" = yes; then
9323                 version_type=linux
9324         else
9325                 version_type=irix
9326         fi ;;
9327   esac
9328   need_lib_prefix=no
9329   need_version=no
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9332   case $host_os in
9333   irix5* | nonstopux*)
9334     libsuff= shlibsuff=
9335     ;;
9336   *)
9337     case $LD in # libtool.m4 will add one of these switches to LD
9338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9339       libsuff= shlibsuff= libmagic=32-bit;;
9340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9341       libsuff=32 shlibsuff=N32 libmagic=N32;;
9342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9344     *) libsuff= shlibsuff= libmagic=never-match;;
9345     esac
9346     ;;
9347   esac
9348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9349   shlibpath_overrides_runpath=no
9350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9352   hardcode_into_libs=yes
9353   ;;
9354
9355 # No shared lib support for Linux oldld, aout, or coff.
9356 linux*oldld* | linux*aout* | linux*coff*)
9357   dynamic_linker=no
9358   ;;
9359
9360 # This must be Linux ELF.
9361 linux*)
9362   version_type=linux
9363   need_lib_prefix=no
9364   need_version=no
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366   soname_spec='${libname}${release}${shared_ext}$major'
9367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9368   shlibpath_var=LD_LIBRARY_PATH
9369   shlibpath_overrides_runpath=no
9370   # This implies no fast_install, which is unacceptable.
9371   # Some rework will be needed to allow for fast_install
9372   # before this can be enabled.
9373   hardcode_into_libs=yes
9374
9375   # Append ld.so.conf contents to the search path
9376   if test -f /etc/ld.so.conf; then
9377     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9378     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9379   fi
9380
9381   # We used to test for /lib/ld.so.1 and disable shared libraries on
9382   # powerpc, because MkLinux only supported shared libraries with the
9383   # GNU dynamic linker.  Since this was broken with cross compilers,
9384   # most powerpc-linux boxes support dynamic linking these days and
9385   # people can always --disable-shared, the test was removed, and we
9386   # assume the GNU/Linux dynamic linker is in use.
9387   dynamic_linker='GNU/Linux ld.so'
9388   ;;
9389
9390 knetbsd*-gnu)
9391   version_type=linux
9392   need_lib_prefix=no
9393   need_version=no
9394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9395   soname_spec='${libname}${release}${shared_ext}$major'
9396   shlibpath_var=LD_LIBRARY_PATH
9397   shlibpath_overrides_runpath=no
9398   hardcode_into_libs=yes
9399   dynamic_linker='GNU ld.so'
9400   ;;
9401
9402 netbsd*)
9403   version_type=sunos
9404   need_lib_prefix=no
9405   need_version=no
9406   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409     dynamic_linker='NetBSD (a.out) ld.so'
9410   else
9411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9412     soname_spec='${libname}${release}${shared_ext}$major'
9413     dynamic_linker='NetBSD ld.elf_so'
9414   fi
9415   shlibpath_var=LD_LIBRARY_PATH
9416   shlibpath_overrides_runpath=yes
9417   hardcode_into_libs=yes
9418   ;;
9419
9420 newsos6)
9421   version_type=linux
9422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423   shlibpath_var=LD_LIBRARY_PATH
9424   shlibpath_overrides_runpath=yes
9425   ;;
9426
9427 nto-qnx*)
9428   version_type=linux
9429   need_lib_prefix=no
9430   need_version=no
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432   soname_spec='${libname}${release}${shared_ext}$major'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   shlibpath_overrides_runpath=yes
9435   ;;
9436
9437 openbsd*)
9438   version_type=sunos
9439   need_lib_prefix=no
9440   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9441   case $host_os in
9442     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9443     *)                         need_version=no  ;;
9444   esac
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9446   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9447   shlibpath_var=LD_LIBRARY_PATH
9448   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9449     case $host_os in
9450       openbsd2.[89] | openbsd2.[89].*)
9451         shlibpath_overrides_runpath=no
9452         ;;
9453       *)
9454         shlibpath_overrides_runpath=yes
9455         ;;
9456       esac
9457   else
9458     shlibpath_overrides_runpath=yes
9459   fi
9460   ;;
9461
9462 os2*)
9463   libname_spec='$name'
9464   shrext_cmds=".dll"
9465   need_lib_prefix=no
9466   library_names_spec='$libname${shared_ext} $libname.a'
9467   dynamic_linker='OS/2 ld.exe'
9468   shlibpath_var=LIBPATH
9469   ;;
9470
9471 osf3* | osf4* | osf5*)
9472   version_type=osf
9473   need_lib_prefix=no
9474   need_version=no
9475   soname_spec='${libname}${release}${shared_ext}$major'
9476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477   shlibpath_var=LD_LIBRARY_PATH
9478   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9479   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9480   ;;
9481
9482 sco3.2v5*)
9483   version_type=osf
9484   soname_spec='${libname}${release}${shared_ext}$major'
9485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   ;;
9488
9489 solaris*)
9490   version_type=linux
9491   need_lib_prefix=no
9492   need_version=no
9493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494   soname_spec='${libname}${release}${shared_ext}$major'
9495   shlibpath_var=LD_LIBRARY_PATH
9496   shlibpath_overrides_runpath=yes
9497   hardcode_into_libs=yes
9498   # ldd complains unless libraries are executable
9499   postinstall_cmds='chmod +x $lib'
9500   ;;
9501
9502 sunos4*)
9503   version_type=sunos
9504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9506   shlibpath_var=LD_LIBRARY_PATH
9507   shlibpath_overrides_runpath=yes
9508   if test "$with_gnu_ld" = yes; then
9509     need_lib_prefix=no
9510   fi
9511   need_version=yes
9512   ;;
9513
9514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9515   version_type=linux
9516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517   soname_spec='${libname}${release}${shared_ext}$major'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   case $host_vendor in
9520     sni)
9521       shlibpath_overrides_runpath=no
9522       need_lib_prefix=no
9523       export_dynamic_flag_spec='${wl}-Blargedynsym'
9524       runpath_var=LD_RUN_PATH
9525       ;;
9526     siemens)
9527       need_lib_prefix=no
9528       ;;
9529     motorola)
9530       need_lib_prefix=no
9531       need_version=no
9532       shlibpath_overrides_runpath=no
9533       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9534       ;;
9535   esac
9536   ;;
9537
9538 sysv4*MP*)
9539   if test -d /usr/nec ;then
9540     version_type=linux
9541     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9542     soname_spec='$libname${shared_ext}.$major'
9543     shlibpath_var=LD_LIBRARY_PATH
9544   fi
9545   ;;
9546
9547 uts4*)
9548   version_type=linux
9549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550   soname_spec='${libname}${release}${shared_ext}$major'
9551   shlibpath_var=LD_LIBRARY_PATH
9552   ;;
9553
9554 *)
9555   dynamic_linker=no
9556   ;;
9557 esac
9558 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9559 echo "${ECHO_T}$dynamic_linker" >&6
9560 test "$dynamic_linker" = no && can_build_shared=no
9561
9562 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9564 hardcode_action=
9565 if test -n "$hardcode_libdir_flag_spec" || \
9566    test -n "$runpath_var" || \
9567    test "X$hardcode_automatic" = "Xyes" ; then
9568
9569   # We can hardcode non-existant directories.
9570   if test "$hardcode_direct" != no &&
9571      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9572      # have to relink, otherwise we might link with an installed library
9573      # when we should be linking with a yet-to-be-installed one
9574      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9575      test "$hardcode_minus_L" != no; then
9576     # Linking always hardcodes the temporary library directory.
9577     hardcode_action=relink
9578   else
9579     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9580     hardcode_action=immediate
9581   fi
9582 else
9583   # We cannot hardcode anything, or else we can only hardcode existing
9584   # directories.
9585   hardcode_action=unsupported
9586 fi
9587 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9588 echo "${ECHO_T}$hardcode_action" >&6
9589
9590 if test "$hardcode_action" = relink; then
9591   # Fast installation is not supported
9592   enable_fast_install=no
9593 elif test "$shlibpath_overrides_runpath" = yes ||
9594      test "$enable_shared" = no; then
9595   # Fast installation is not necessary
9596   enable_fast_install=needless
9597 fi
9598
9599 striplib=
9600 old_striplib=
9601 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9602 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9604   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9605   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9606   echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6
9608 else
9609 # FIXME - insert some real tests, host_os isn't really good enough
9610   case $host_os in
9611    darwin*)
9612        if test -n "$STRIP" ; then
9613          striplib="$STRIP -x"
9614          echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6
9616        else
9617   echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6
9619 fi
9620        ;;
9621    *)
9622   echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6
9624     ;;
9625   esac
9626 fi
9627
9628 if test "x$enable_dlopen" != xyes; then
9629   enable_dlopen=unknown
9630   enable_dlopen_self=unknown
9631   enable_dlopen_self_static=unknown
9632 else
9633   lt_cv_dlopen=no
9634   lt_cv_dlopen_libs=
9635
9636   case $host_os in
9637   beos*)
9638     lt_cv_dlopen="load_add_on"
9639     lt_cv_dlopen_libs=
9640     lt_cv_dlopen_self=yes
9641     ;;
9642
9643   mingw* | pw32*)
9644     lt_cv_dlopen="LoadLibrary"
9645     lt_cv_dlopen_libs=
9646    ;;
9647
9648   cygwin*)
9649     lt_cv_dlopen="dlopen"
9650     lt_cv_dlopen_libs=
9651    ;;
9652
9653   darwin*)
9654   # if libdl is installed we need to link against it
9655     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660   ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-ldl  $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668
9669 /* Override any gcc2 internal prototype to avoid an error.  */
9670 #ifdef __cplusplus
9671 extern "C"
9672 #endif
9673 /* We use char because int might match the return type of a gcc2
9674    builtin and then its argument prototype would still apply.  */
9675 char dlopen ();
9676 int
9677 main ()
9678 {
9679 dlopen ();
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686   (eval $ac_link) 2>conftest.er1
9687   ac_status=$?
9688   grep -v '^ *+' conftest.er1 >conftest.err
9689   rm -f conftest.er1
9690   cat conftest.err >&5
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } &&
9693          { ac_try='test -z "$ac_c_werror_flag"
9694                          || test ! -s conftest.err'
9695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696   (eval $ac_try) 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); }; } &&
9700          { ac_try='test -s conftest$ac_exeext'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; }; then
9706   ac_cv_lib_dl_dlopen=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 ac_cv_lib_dl_dlopen=no
9712 fi
9713 rm -f conftest.err conftest.$ac_objext \
9714       conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9716 fi
9717 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9721 else
9722
9723     lt_cv_dlopen="dyld"
9724     lt_cv_dlopen_libs=
9725     lt_cv_dlopen_self=yes
9726
9727 fi
9728
9729    ;;
9730
9731   *)
9732     echo "$as_me:$LINENO: checking for shl_load" >&5
9733 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9734 if test "${ac_cv_func_shl_load+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9745 #define shl_load innocuous_shl_load
9746
9747 /* System header to define __stub macros and hopefully few prototypes,
9748     which can conflict with char shl_load (); below.
9749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750     <limits.h> exists even on freestanding compilers.  */
9751
9752 #ifdef __STDC__
9753 # include <limits.h>
9754 #else
9755 # include <assert.h>
9756 #endif
9757
9758 #undef shl_load
9759
9760 /* Override any gcc2 internal prototype to avoid an error.  */
9761 #ifdef __cplusplus
9762 extern "C"
9763 {
9764 #endif
9765 /* We use char because int might match the return type of a gcc2
9766    builtin and then its argument prototype would still apply.  */
9767 char shl_load ();
9768 /* The GNU C library defines this for functions which it implements
9769     to always fail with ENOSYS.  Some functions are actually named
9770     something starting with __ and the normal name is an alias.  */
9771 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9772 choke me
9773 #else
9774 char (*f) () = shl_load;
9775 #endif
9776 #ifdef __cplusplus
9777 }
9778 #endif
9779
9780 int
9781 main ()
9782 {
9783 return f != shl_load;
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790   (eval $ac_link) 2>conftest.er1
9791   ac_status=$?
9792   grep -v '^ *+' conftest.er1 >conftest.err
9793   rm -f conftest.er1
9794   cat conftest.err >&5
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); } &&
9797          { ac_try='test -z "$ac_c_werror_flag"
9798                          || test ! -s conftest.err'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; } &&
9804          { ac_try='test -s conftest$ac_exeext'
9805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806   (eval $ac_try) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; }; then
9810   ac_cv_func_shl_load=yes
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815 ac_cv_func_shl_load=no
9816 fi
9817 rm -f conftest.err conftest.$ac_objext \
9818       conftest$ac_exeext conftest.$ac_ext
9819 fi
9820 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9821 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9822 if test $ac_cv_func_shl_load = yes; then
9823   lt_cv_dlopen="shl_load"
9824 else
9825   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9826 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9827 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   ac_check_lib_save_LIBS=$LIBS
9831 LIBS="-ldld  $LIBS"
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838
9839 /* Override any gcc2 internal prototype to avoid an error.  */
9840 #ifdef __cplusplus
9841 extern "C"
9842 #endif
9843 /* We use char because int might match the return type of a gcc2
9844    builtin and then its argument prototype would still apply.  */
9845 char shl_load ();
9846 int
9847 main ()
9848 {
9849 shl_load ();
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856   (eval $ac_link) 2>conftest.er1
9857   ac_status=$?
9858   grep -v '^ *+' conftest.er1 >conftest.err
9859   rm -f conftest.er1
9860   cat conftest.err >&5
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } &&
9863          { ac_try='test -z "$ac_c_werror_flag"
9864                          || test ! -s conftest.err'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; } &&
9870          { ac_try='test -s conftest$ac_exeext'
9871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872   (eval $ac_try) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }; then
9876   ac_cv_lib_dld_shl_load=yes
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_cv_lib_dld_shl_load=no
9882 fi
9883 rm -f conftest.err conftest.$ac_objext \
9884       conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9886 fi
9887 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9888 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9889 if test $ac_cv_lib_dld_shl_load = yes; then
9890   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9891 else
9892   echo "$as_me:$LINENO: checking for dlopen" >&5
9893 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9894 if test "${ac_cv_func_dlopen+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9905 #define dlopen innocuous_dlopen
9906
9907 /* System header to define __stub macros and hopefully few prototypes,
9908     which can conflict with char dlopen (); below.
9909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9910     <limits.h> exists even on freestanding compilers.  */
9911
9912 #ifdef __STDC__
9913 # include <limits.h>
9914 #else
9915 # include <assert.h>
9916 #endif
9917
9918 #undef dlopen
9919
9920 /* Override any gcc2 internal prototype to avoid an error.  */
9921 #ifdef __cplusplus
9922 extern "C"
9923 {
9924 #endif
9925 /* We use char because int might match the return type of a gcc2
9926    builtin and then its argument prototype would still apply.  */
9927 char dlopen ();
9928 /* The GNU C library defines this for functions which it implements
9929     to always fail with ENOSYS.  Some functions are actually named
9930     something starting with __ and the normal name is an alias.  */
9931 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9932 choke me
9933 #else
9934 char (*f) () = dlopen;
9935 #endif
9936 #ifdef __cplusplus
9937 }
9938 #endif
9939
9940 int
9941 main ()
9942 {
9943 return f != dlopen;
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950   (eval $ac_link) 2>conftest.er1
9951   ac_status=$?
9952   grep -v '^ *+' conftest.er1 >conftest.err
9953   rm -f conftest.er1
9954   cat conftest.err >&5
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); } &&
9957          { ac_try='test -z "$ac_c_werror_flag"
9958                          || test ! -s conftest.err'
9959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960   (eval $ac_try) 2>&5
9961   ac_status=$?
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); }; } &&
9964          { ac_try='test -s conftest$ac_exeext'
9965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966   (eval $ac_try) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; }; then
9970   ac_cv_func_dlopen=yes
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 ac_cv_func_dlopen=no
9976 fi
9977 rm -f conftest.err conftest.$ac_objext \
9978       conftest$ac_exeext conftest.$ac_ext
9979 fi
9980 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9981 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9982 if test $ac_cv_func_dlopen = yes; then
9983   lt_cv_dlopen="dlopen"
9984 else
9985   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9986 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   ac_check_lib_save_LIBS=$LIBS
9991 LIBS="-ldl  $LIBS"
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998
9999 /* Override any gcc2 internal prototype to avoid an error.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 /* We use char because int might match the return type of a gcc2
10004    builtin and then its argument prototype would still apply.  */
10005 char dlopen ();
10006 int
10007 main ()
10008 {
10009 dlopen ();
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016   (eval $ac_link) 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag"
10024                          || test ! -s conftest.err'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest$ac_exeext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_lib_dl_dlopen=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_cv_lib_dl_dlopen=no
10042 fi
10043 rm -f conftest.err conftest.$ac_objext \
10044       conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10046 fi
10047 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10049 if test $ac_cv_lib_dl_dlopen = yes; then
10050   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10051 else
10052   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10053 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10054 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   ac_check_lib_save_LIBS=$LIBS
10058 LIBS="-lsvld  $LIBS"
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h.  */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h.  */
10065
10066 /* Override any gcc2 internal prototype to avoid an error.  */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 /* We use char because int might match the return type of a gcc2
10071    builtin and then its argument prototype would still apply.  */
10072 char dlopen ();
10073 int
10074 main ()
10075 {
10076 dlopen ();
10077   ;
10078   return 0;
10079 }
10080 _ACEOF
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083   (eval $ac_link) 2>conftest.er1
10084   ac_status=$?
10085   grep -v '^ *+' conftest.er1 >conftest.err
10086   rm -f conftest.er1
10087   cat conftest.err >&5
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } &&
10090          { ac_try='test -z "$ac_c_werror_flag"
10091                          || test ! -s conftest.err'
10092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093   (eval $ac_try) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; } &&
10097          { ac_try='test -s conftest$ac_exeext'
10098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099   (eval $ac_try) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; }; then
10103   ac_cv_lib_svld_dlopen=yes
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_cv_lib_svld_dlopen=no
10109 fi
10110 rm -f conftest.err conftest.$ac_objext \
10111       conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10113 fi
10114 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10116 if test $ac_cv_lib_svld_dlopen = yes; then
10117   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10118 else
10119   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10120 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10121 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-ldld  $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132
10133 /* Override any gcc2 internal prototype to avoid an error.  */
10134 #ifdef __cplusplus
10135 extern "C"
10136 #endif
10137 /* We use char because int might match the return type of a gcc2
10138    builtin and then its argument prototype would still apply.  */
10139 char dld_link ();
10140 int
10141 main ()
10142 {
10143 dld_link ();
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150   (eval $ac_link) 2>conftest.er1
10151   ac_status=$?
10152   grep -v '^ *+' conftest.er1 >conftest.err
10153   rm -f conftest.er1
10154   cat conftest.err >&5
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -z "$ac_c_werror_flag"
10158                          || test ! -s conftest.err'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; } &&
10164          { ac_try='test -s conftest$ac_exeext'
10165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166   (eval $ac_try) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; }; then
10170   ac_cv_lib_dld_dld_link=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 ac_cv_lib_dld_dld_link=no
10176 fi
10177 rm -f conftest.err conftest.$ac_objext \
10178       conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10180 fi
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10182 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10183 if test $ac_cv_lib_dld_dld_link = yes; then
10184   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10185 fi
10186
10187
10188 fi
10189
10190
10191 fi
10192
10193
10194 fi
10195
10196
10197 fi
10198
10199
10200 fi
10201
10202     ;;
10203   esac
10204
10205   if test "x$lt_cv_dlopen" != xno; then
10206     enable_dlopen=yes
10207   else
10208     enable_dlopen=no
10209   fi
10210
10211   case $lt_cv_dlopen in
10212   dlopen)
10213     save_CPPFLAGS="$CPPFLAGS"
10214     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10215
10216     save_LDFLAGS="$LDFLAGS"
10217     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10218
10219     save_LIBS="$LIBS"
10220     LIBS="$lt_cv_dlopen_libs $LIBS"
10221
10222     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10223 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10224 if test "${lt_cv_dlopen_self+set}" = set; then
10225   echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227           if test "$cross_compiling" = yes; then :
10228   lt_cv_dlopen_self=cross
10229 else
10230   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10231   lt_status=$lt_dlunknown
10232   cat > conftest.$ac_ext <<EOF
10233 #line 10233 "configure"
10234 #include "confdefs.h"
10235
10236 #if HAVE_DLFCN_H
10237 #include <dlfcn.h>
10238 #endif
10239
10240 #include <stdio.h>
10241
10242 #ifdef RTLD_GLOBAL
10243 #  define LT_DLGLOBAL           RTLD_GLOBAL
10244 #else
10245 #  ifdef DL_GLOBAL
10246 #    define LT_DLGLOBAL         DL_GLOBAL
10247 #  else
10248 #    define LT_DLGLOBAL         0
10249 #  endif
10250 #endif
10251
10252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10253    find out it does not work in some platform. */
10254 #ifndef LT_DLLAZY_OR_NOW
10255 #  ifdef RTLD_LAZY
10256 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10257 #  else
10258 #    ifdef DL_LAZY
10259 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10260 #    else
10261 #      ifdef RTLD_NOW
10262 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10263 #      else
10264 #        ifdef DL_NOW
10265 #          define LT_DLLAZY_OR_NOW      DL_NOW
10266 #        else
10267 #          define LT_DLLAZY_OR_NOW      0
10268 #        endif
10269 #      endif
10270 #    endif
10271 #  endif
10272 #endif
10273
10274 #ifdef __cplusplus
10275 extern "C" void exit (int);
10276 #endif
10277
10278 void fnord() { int i=42;}
10279 int main ()
10280 {
10281   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10282   int status = $lt_dlunknown;
10283
10284   if (self)
10285     {
10286       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10287       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10288       /* dlclose (self); */
10289     }
10290
10291     exit (status);
10292 }
10293 EOF
10294   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295   (eval $ac_link) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10299     (./conftest; exit; ) 2>/dev/null
10300     lt_status=$?
10301     case x$lt_status in
10302       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10303       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10304       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10305     esac
10306   else :
10307     # compilation failed
10308     lt_cv_dlopen_self=no
10309   fi
10310 fi
10311 rm -fr conftest*
10312
10313
10314 fi
10315 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10316 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10317
10318     if test "x$lt_cv_dlopen_self" = xyes; then
10319       LDFLAGS="$LDFLAGS $link_static_flag"
10320       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10321 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10322 if test "${lt_cv_dlopen_self_static+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325           if test "$cross_compiling" = yes; then :
10326   lt_cv_dlopen_self_static=cross
10327 else
10328   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10329   lt_status=$lt_dlunknown
10330   cat > conftest.$ac_ext <<EOF
10331 #line 10331 "configure"
10332 #include "confdefs.h"
10333
10334 #if HAVE_DLFCN_H
10335 #include <dlfcn.h>
10336 #endif
10337
10338 #include <stdio.h>
10339
10340 #ifdef RTLD_GLOBAL
10341 #  define LT_DLGLOBAL           RTLD_GLOBAL
10342 #else
10343 #  ifdef DL_GLOBAL
10344 #    define LT_DLGLOBAL         DL_GLOBAL
10345 #  else
10346 #    define LT_DLGLOBAL         0
10347 #  endif
10348 #endif
10349
10350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10351    find out it does not work in some platform. */
10352 #ifndef LT_DLLAZY_OR_NOW
10353 #  ifdef RTLD_LAZY
10354 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10355 #  else
10356 #    ifdef DL_LAZY
10357 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10358 #    else
10359 #      ifdef RTLD_NOW
10360 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10361 #      else
10362 #        ifdef DL_NOW
10363 #          define LT_DLLAZY_OR_NOW      DL_NOW
10364 #        else
10365 #          define LT_DLLAZY_OR_NOW      0
10366 #        endif
10367 #      endif
10368 #    endif
10369 #  endif
10370 #endif
10371
10372 #ifdef __cplusplus
10373 extern "C" void exit (int);
10374 #endif
10375
10376 void fnord() { int i=42;}
10377 int main ()
10378 {
10379   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10380   int status = $lt_dlunknown;
10381
10382   if (self)
10383     {
10384       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10385       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10386       /* dlclose (self); */
10387     }
10388
10389     exit (status);
10390 }
10391 EOF
10392   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393   (eval $ac_link) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10397     (./conftest; exit; ) 2>/dev/null
10398     lt_status=$?
10399     case x$lt_status in
10400       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10401       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10402       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10403     esac
10404   else :
10405     # compilation failed
10406     lt_cv_dlopen_self_static=no
10407   fi
10408 fi
10409 rm -fr conftest*
10410
10411
10412 fi
10413 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10414 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10415     fi
10416
10417     CPPFLAGS="$save_CPPFLAGS"
10418     LDFLAGS="$save_LDFLAGS"
10419     LIBS="$save_LIBS"
10420     ;;
10421   esac
10422
10423   case $lt_cv_dlopen_self in
10424   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10425   *) enable_dlopen_self=unknown ;;
10426   esac
10427
10428   case $lt_cv_dlopen_self_static in
10429   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10430   *) enable_dlopen_self_static=unknown ;;
10431   esac
10432 fi
10433
10434
10435 # Report which librarie types wil actually be built
10436 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10437 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10438 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10439 echo "${ECHO_T}$can_build_shared" >&6
10440
10441 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10442 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10443 test "$can_build_shared" = "no" && enable_shared=no
10444
10445 # On AIX, shared libraries and static libraries use the same namespace, and
10446 # are all built from PIC.
10447 case "$host_os" in
10448 aix3*)
10449   test "$enable_shared" = yes && enable_static=no
10450   if test -n "$RANLIB"; then
10451     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10452     postinstall_cmds='$RANLIB $lib'
10453   fi
10454   ;;
10455
10456 aix4* | aix5*)
10457   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10458     test "$enable_shared" = yes && enable_static=no
10459   fi
10460     ;;
10461 esac
10462 echo "$as_me:$LINENO: result: $enable_shared" >&5
10463 echo "${ECHO_T}$enable_shared" >&6
10464
10465 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10466 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10467 # Make sure either enable_shared or enable_static is yes.
10468 test "$enable_shared" = yes || enable_static=yes
10469 echo "$as_me:$LINENO: result: $enable_static" >&5
10470 echo "${ECHO_T}$enable_static" >&6
10471
10472 # The else clause should only fire when bootstrapping the
10473 # libtool distribution, otherwise you forgot to ship ltmain.sh
10474 # with your package, and you will get complaints that there are
10475 # no rules to generate ltmain.sh.
10476 if test -f "$ltmain"; then
10477   # See if we are running on zsh, and set the options which allow our commands through
10478   # without removal of \ escapes.
10479   if test -n "${ZSH_VERSION+set}" ; then
10480     setopt NO_GLOB_SUBST
10481   fi
10482   # Now quote all the things that may contain metacharacters while being
10483   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10484   # variables and quote the copies for generation of the libtool script.
10485   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10486     SED SHELL STRIP \
10487     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10488     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10489     deplibs_check_method reload_flag reload_cmds need_locks \
10490     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10491     lt_cv_sys_global_symbol_to_c_name_address \
10492     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10493     old_postinstall_cmds old_postuninstall_cmds \
10494     compiler \
10495     CC \
10496     LD \
10497     lt_prog_compiler_wl \
10498     lt_prog_compiler_pic \
10499     lt_prog_compiler_static \
10500     lt_prog_compiler_no_builtin_flag \
10501     export_dynamic_flag_spec \
10502     thread_safe_flag_spec \
10503     whole_archive_flag_spec \
10504     enable_shared_with_static_runtimes \
10505     old_archive_cmds \
10506     old_archive_from_new_cmds \
10507     predep_objects \
10508     postdep_objects \
10509     predeps \
10510     postdeps \
10511     compiler_lib_search_path \
10512     archive_cmds \
10513     archive_expsym_cmds \
10514     postinstall_cmds \
10515     postuninstall_cmds \
10516     old_archive_from_expsyms_cmds \
10517     allow_undefined_flag \
10518     no_undefined_flag \
10519     export_symbols_cmds \
10520     hardcode_libdir_flag_spec \
10521     hardcode_libdir_flag_spec_ld \
10522     hardcode_libdir_separator \
10523     hardcode_automatic \
10524     module_cmds \
10525     module_expsym_cmds \
10526     lt_cv_prog_compiler_c_o \
10527     exclude_expsyms \
10528     include_expsyms; do
10529
10530     case $var in
10531     old_archive_cmds | \
10532     old_archive_from_new_cmds | \
10533     archive_cmds | \
10534     archive_expsym_cmds | \
10535     module_cmds | \
10536     module_expsym_cmds | \
10537     old_archive_from_expsyms_cmds | \
10538     export_symbols_cmds | \
10539     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10540     postinstall_cmds | postuninstall_cmds | \
10541     old_postinstall_cmds | old_postuninstall_cmds | \
10542     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10543       # Double-quote double-evaled strings.
10544       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10545       ;;
10546     *)
10547       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10548       ;;
10549     esac
10550   done
10551
10552   case $lt_echo in
10553   *'\$0 --fallback-echo"')
10554     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10555     ;;
10556   esac
10557
10558 cfgfile="${ofile}T"
10559   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10560   $rm -f "$cfgfile"
10561   { echo "$as_me:$LINENO: creating $ofile" >&5
10562 echo "$as_me: creating $ofile" >&6;}
10563
10564   cat <<__EOF__ >> "$cfgfile"
10565 #! $SHELL
10566
10567 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10568 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10569 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10570 #
10571 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10572 # Free Software Foundation, Inc.
10573 #
10574 # This file is part of GNU Libtool:
10575 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10576 #
10577 # This program is free software; you can redistribute it and/or modify
10578 # it under the terms of the GNU General Public License as published by
10579 # the Free Software Foundation; either version 2 of the License, or
10580 # (at your option) any later version.
10581 #
10582 # This program is distributed in the hope that it will be useful, but
10583 # WITHOUT ANY WARRANTY; without even the implied warranty of
10584 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10585 # General Public License for more details.
10586 #
10587 # You should have received a copy of the GNU General Public License
10588 # along with this program; if not, write to the Free Software
10589 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10590 #
10591 # As a special exception to the GNU General Public License, if you
10592 # distribute this file as part of a program that contains a
10593 # configuration script generated by Autoconf, you may include it under
10594 # the same distribution terms that you use for the rest of that program.
10595
10596 # A sed program that does not truncate output.
10597 SED=$lt_SED
10598
10599 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10600 Xsed="$SED -e 1s/^X//"
10601
10602 # The HP-UX ksh and POSIX shell print the target directory to stdout
10603 # if CDPATH is set.
10604 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10605
10606 # The names of the tagged configurations supported by this script.
10607 available_tags=
10608
10609 # ### BEGIN LIBTOOL CONFIG
10610
10611 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10612
10613 # Shell to use when invoking shell scripts.
10614 SHELL=$lt_SHELL
10615
10616 # Whether or not to build shared libraries.
10617 build_libtool_libs=$enable_shared
10618
10619 # Whether or not to build static libraries.
10620 build_old_libs=$enable_static
10621
10622 # Whether or not to add -lc for building shared libraries.
10623 build_libtool_need_lc=$archive_cmds_need_lc
10624
10625 # Whether or not to disallow shared libs when runtime libs are static
10626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10627
10628 # Whether or not to optimize for fast installation.
10629 fast_install=$enable_fast_install
10630
10631 # The host system.
10632 host_alias=$host_alias
10633 host=$host
10634 host_os=$host_os
10635
10636 # The build system.
10637 build_alias=$build_alias
10638 build=$build
10639 build_os=$build_os
10640
10641 # An echo program that does not interpret backslashes.
10642 echo=$lt_echo
10643
10644 # The archiver.
10645 AR=$lt_AR
10646 AR_FLAGS=$lt_AR_FLAGS
10647
10648 # A C compiler.
10649 LTCC=$lt_LTCC
10650
10651 # A language-specific compiler.
10652 CC=$lt_compiler
10653
10654 # Is the compiler the GNU C compiler?
10655 with_gcc=$GCC
10656
10657 # An ERE matcher.
10658 EGREP=$lt_EGREP
10659
10660 # The linker used to build libraries.
10661 LD=$lt_LD
10662
10663 # Whether we need hard or soft links.
10664 LN_S=$lt_LN_S
10665
10666 # A BSD-compatible nm program.
10667 NM=$lt_NM
10668
10669 # A symbol stripping program
10670 STRIP=$lt_STRIP
10671
10672 # Used to examine libraries when file_magic_cmd begins "file"
10673 MAGIC_CMD=$MAGIC_CMD
10674
10675 # Used on cygwin: DLL creation program.
10676 DLLTOOL="$DLLTOOL"
10677
10678 # Used on cygwin: object dumper.
10679 OBJDUMP="$OBJDUMP"
10680
10681 # Used on cygwin: assembler.
10682 AS="$AS"
10683
10684 # The name of the directory that contains temporary libtool files.
10685 objdir=$objdir
10686
10687 # How to create reloadable object files.
10688 reload_flag=$lt_reload_flag
10689 reload_cmds=$lt_reload_cmds
10690
10691 # How to pass a linker flag through the compiler.
10692 wl=$lt_lt_prog_compiler_wl
10693
10694 # Object file suffix (normally "o").
10695 objext="$ac_objext"
10696
10697 # Old archive suffix (normally "a").
10698 libext="$libext"
10699
10700 # Shared library suffix (normally ".so").
10701 shrext_cmds='$shrext_cmds'
10702
10703 # Executable file suffix (normally "").
10704 exeext="$exeext"
10705
10706 # Additional compiler flags for building library objects.
10707 pic_flag=$lt_lt_prog_compiler_pic
10708 pic_mode=$pic_mode
10709
10710 # What is the maximum length of a command?
10711 max_cmd_len=$lt_cv_sys_max_cmd_len
10712
10713 # Does compiler simultaneously support -c and -o options?
10714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10715
10716 # Must we lock files when doing compilation?
10717 need_locks=$lt_need_locks
10718
10719 # Do we need the lib prefix for modules?
10720 need_lib_prefix=$need_lib_prefix
10721
10722 # Do we need a version for libraries?
10723 need_version=$need_version
10724
10725 # Whether dlopen is supported.
10726 dlopen_support=$enable_dlopen
10727
10728 # Whether dlopen of programs is supported.
10729 dlopen_self=$enable_dlopen_self
10730
10731 # Whether dlopen of statically linked programs is supported.
10732 dlopen_self_static=$enable_dlopen_self_static
10733
10734 # Compiler flag to prevent dynamic linking.
10735 link_static_flag=$lt_lt_prog_compiler_static
10736
10737 # Compiler flag to turn off builtin functions.
10738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10739
10740 # Compiler flag to allow reflexive dlopens.
10741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10742
10743 # Compiler flag to generate shared objects directly from archives.
10744 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10745
10746 # Compiler flag to generate thread-safe objects.
10747 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10748
10749 # Library versioning type.
10750 version_type=$version_type
10751
10752 # Format of library name prefix.
10753 libname_spec=$lt_libname_spec
10754
10755 # List of archive names.  First name is the real one, the rest are links.
10756 # The last name is the one that the linker finds with -lNAME.
10757 library_names_spec=$lt_library_names_spec
10758
10759 # The coded name of the library, if different from the real name.
10760 soname_spec=$lt_soname_spec
10761
10762 # Commands used to build and install an old-style archive.
10763 RANLIB=$lt_RANLIB
10764 old_archive_cmds=$lt_old_archive_cmds
10765 old_postinstall_cmds=$lt_old_postinstall_cmds
10766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10767
10768 # Create an old-style archive from a shared archive.
10769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10770
10771 # Create a temporary old-style archive to link instead of a shared archive.
10772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10773
10774 # Commands used to build and install a shared archive.
10775 archive_cmds=$lt_archive_cmds
10776 archive_expsym_cmds=$lt_archive_expsym_cmds
10777 postinstall_cmds=$lt_postinstall_cmds
10778 postuninstall_cmds=$lt_postuninstall_cmds
10779
10780 # Commands used to build a loadable module (assumed same as above if empty)
10781 module_cmds=$lt_module_cmds
10782 module_expsym_cmds=$lt_module_expsym_cmds
10783
10784 # Commands to strip libraries.
10785 old_striplib=$lt_old_striplib
10786 striplib=$lt_striplib
10787
10788 # Dependencies to place before the objects being linked to create a
10789 # shared library.
10790 predep_objects=$lt_predep_objects
10791
10792 # Dependencies to place after the objects being linked to create a
10793 # shared library.
10794 postdep_objects=$lt_postdep_objects
10795
10796 # Dependencies to place before the objects being linked to create a
10797 # shared library.
10798 predeps=$lt_predeps
10799
10800 # Dependencies to place after the objects being linked to create a
10801 # shared library.
10802 postdeps=$lt_postdeps
10803
10804 # The library search path used internally by the compiler when linking
10805 # a shared library.
10806 compiler_lib_search_path=$lt_compiler_lib_search_path
10807
10808 # Method to check whether dependent libraries are shared objects.
10809 deplibs_check_method=$lt_deplibs_check_method
10810
10811 # Command to use when deplibs_check_method == file_magic.
10812 file_magic_cmd=$lt_file_magic_cmd
10813
10814 # Flag that allows shared libraries with undefined symbols to be built.
10815 allow_undefined_flag=$lt_allow_undefined_flag
10816
10817 # Flag that forces no undefined symbols.
10818 no_undefined_flag=$lt_no_undefined_flag
10819
10820 # Commands used to finish a libtool library installation in a directory.
10821 finish_cmds=$lt_finish_cmds
10822
10823 # Same as above, but a single script fragment to be evaled but not shown.
10824 finish_eval=$lt_finish_eval
10825
10826 # Take the output of nm and produce a listing of raw symbols and C names.
10827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10828
10829 # Transform the output of nm in a proper C declaration
10830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10831
10832 # Transform the output of nm in a C name address pair
10833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10834
10835 # This is the shared library runtime path variable.
10836 runpath_var=$runpath_var
10837
10838 # This is the shared library path variable.
10839 shlibpath_var=$shlibpath_var
10840
10841 # Is shlibpath searched before the hard-coded library search path?
10842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10843
10844 # How to hardcode a shared library path into an executable.
10845 hardcode_action=$hardcode_action
10846
10847 # Whether we should hardcode library paths into libraries.
10848 hardcode_into_libs=$hardcode_into_libs
10849
10850 # Flag to hardcode \$libdir into a binary during linking.
10851 # This must work even if \$libdir does not exist.
10852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10853
10854 # If ld is used when linking, flag to hardcode \$libdir into
10855 # a binary during linking. This must work even if \$libdir does
10856 # not exist.
10857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10858
10859 # Whether we need a single -rpath flag with a separated argument.
10860 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10861
10862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10863 # resulting binary.
10864 hardcode_direct=$hardcode_direct
10865
10866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10867 # resulting binary.
10868 hardcode_minus_L=$hardcode_minus_L
10869
10870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10871 # the resulting binary.
10872 hardcode_shlibpath_var=$hardcode_shlibpath_var
10873
10874 # Set to yes if building a shared library automatically hardcodes DIR into the library
10875 # and all subsequent libraries and executables linked against it.
10876 hardcode_automatic=$hardcode_automatic
10877
10878 # Variables whose values should be saved in libtool wrapper scripts and
10879 # restored at relink time.
10880 variables_saved_for_relink="$variables_saved_for_relink"
10881
10882 # Whether libtool must link a program against all its dependency libraries.
10883 link_all_deplibs=$link_all_deplibs
10884
10885 # Compile-time system search path for libraries
10886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10887
10888 # Run-time system search path for libraries
10889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10890
10891 # Fix the shell variable \$srcfile for the compiler.
10892 fix_srcfile_path="$fix_srcfile_path"
10893
10894 # Set to yes if exported symbols are required.
10895 always_export_symbols=$always_export_symbols
10896
10897 # The commands to list exported symbols.
10898 export_symbols_cmds=$lt_export_symbols_cmds
10899
10900 # The commands to extract the exported symbol list from a shared archive.
10901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10902
10903 # Symbols that should not be listed in the preloaded symbols.
10904 exclude_expsyms=$lt_exclude_expsyms
10905
10906 # Symbols that must always be exported.
10907 include_expsyms=$lt_include_expsyms
10908
10909 # ### END LIBTOOL CONFIG
10910
10911 __EOF__
10912
10913
10914   case $host_os in
10915   aix3*)
10916     cat <<\EOF >> "$cfgfile"
10917
10918 # AIX sometimes has problems with the GCC collect2 program.  For some
10919 # reason, if we set the COLLECT_NAMES environment variable, the problems
10920 # vanish in a puff of smoke.
10921 if test "X${COLLECT_NAMES+set}" != Xset; then
10922   COLLECT_NAMES=
10923   export COLLECT_NAMES
10924 fi
10925 EOF
10926     ;;
10927   esac
10928
10929   # We use sed instead of cat because bash on DJGPP gets confused if
10930   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10931   # text mode, it properly converts lines to CR/LF.  This bash problem
10932   # is reportedly fixed, but why not run on old versions too?
10933   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10934
10935   mv -f "$cfgfile" "$ofile" || \
10936     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10937   chmod +x "$ofile"
10938
10939 else
10940   # If there is no Makefile yet, we rely on a make rule to execute
10941   # `config.status --recheck' to rerun these tests and create the
10942   # libtool script then.
10943   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10944   if test -f "$ltmain_in"; then
10945     test -f Makefile && make "$ltmain"
10946   fi
10947 fi
10948
10949
10950 ac_ext=c
10951 ac_cpp='$CPP $CPPFLAGS'
10952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10955
10956 CC="$lt_save_CC"
10957
10958
10959 # Check whether --with-tags or --without-tags was given.
10960 if test "${with_tags+set}" = set; then
10961   withval="$with_tags"
10962   tagnames="$withval"
10963 fi;
10964
10965 if test -f "$ltmain" && test -n "$tagnames"; then
10966   if test ! -f "${ofile}"; then
10967     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10968 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10969   fi
10970
10971   if test -z "$LTCC"; then
10972     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10973     if test -z "$LTCC"; then
10974       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10975 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10976     else
10977       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10978 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10979     fi
10980   fi
10981
10982   # Extract list of available tagged configurations in $ofile.
10983   # Note that this assumes the entire list is on one line.
10984   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10985
10986   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10987   for tagname in $tagnames; do
10988     IFS="$lt_save_ifs"
10989     # Check whether tagname contains only valid characters
10990     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10991     "") ;;
10992     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10993 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10994    { (exit 1); exit 1; }; }
10995         ;;
10996     esac
10997
10998     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10999     then
11000       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11001 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11002    { (exit 1); exit 1; }; }
11003     fi
11004
11005     # Update the list of available tags.
11006     if test -n "$tagname"; then
11007       echo appending configuration tag \"$tagname\" to $ofile
11008
11009       case $tagname in
11010       CXX)
11011         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11012             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11013             (test "X$CXX" != "Xg++"))) ; then
11014           :
11015         else
11016           tagname=""
11017         fi
11018         ;;
11019
11020       F77)
11021         if test -n "$F77" && test "X$F77" != "Xno"; then
11022           :
11023         else
11024           tagname=""
11025         fi
11026         ;;
11027
11028       GCJ)
11029         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11030           :
11031         else
11032           tagname=""
11033         fi
11034         ;;
11035
11036       RC)
11037
11038
11039
11040 # Source file extension for RC test sources.
11041 ac_ext=rc
11042
11043 # Object file extension for compiled RC test sources.
11044 objext=o
11045 objext_RC=$objext
11046
11047 # Code to be used in simple compile tests
11048 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11049
11050 # Code to be used in simple link tests
11051 lt_simple_link_test_code="$lt_simple_compile_test_code"
11052
11053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11054
11055 # If no C compiler was specified, use CC.
11056 LTCC=${LTCC-"$CC"}
11057
11058 # Allow CC to be a program name with arguments.
11059 compiler=$CC
11060
11061
11062 # save warnings/boilerplate of simple test code
11063 ac_outfile=conftest.$ac_objext
11064 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11066 _lt_compiler_boilerplate=`cat conftest.err`
11067 $rm conftest*
11068
11069 ac_outfile=conftest.$ac_objext
11070 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11072 _lt_linker_boilerplate=`cat conftest.err`
11073 $rm conftest*
11074
11075
11076 # Allow CC to be a program name with arguments.
11077 lt_save_CC="$CC"
11078 CC=${RC-"windres"}
11079 compiler=$CC
11080 compiler_RC=$CC
11081 for cc_temp in $compiler""; do
11082   case $cc_temp in
11083     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11084     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11085     \-*) ;;
11086     *) break;;
11087   esac
11088 done
11089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11090
11091 lt_cv_prog_compiler_c_o_RC=yes
11092
11093 # The else clause should only fire when bootstrapping the
11094 # libtool distribution, otherwise you forgot to ship ltmain.sh
11095 # with your package, and you will get complaints that there are
11096 # no rules to generate ltmain.sh.
11097 if test -f "$ltmain"; then
11098   # See if we are running on zsh, and set the options which allow our commands through
11099   # without removal of \ escapes.
11100   if test -n "${ZSH_VERSION+set}" ; then
11101     setopt NO_GLOB_SUBST
11102   fi
11103   # Now quote all the things that may contain metacharacters while being
11104   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11105   # variables and quote the copies for generation of the libtool script.
11106   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11107     SED SHELL STRIP \
11108     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11109     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11110     deplibs_check_method reload_flag reload_cmds need_locks \
11111     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11112     lt_cv_sys_global_symbol_to_c_name_address \
11113     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11114     old_postinstall_cmds old_postuninstall_cmds \
11115     compiler_RC \
11116     CC_RC \
11117     LD_RC \
11118     lt_prog_compiler_wl_RC \
11119     lt_prog_compiler_pic_RC \
11120     lt_prog_compiler_static_RC \
11121     lt_prog_compiler_no_builtin_flag_RC \
11122     export_dynamic_flag_spec_RC \
11123     thread_safe_flag_spec_RC \
11124     whole_archive_flag_spec_RC \
11125     enable_shared_with_static_runtimes_RC \
11126     old_archive_cmds_RC \
11127     old_archive_from_new_cmds_RC \
11128     predep_objects_RC \
11129     postdep_objects_RC \
11130     predeps_RC \
11131     postdeps_RC \
11132     compiler_lib_search_path_RC \
11133     archive_cmds_RC \
11134     archive_expsym_cmds_RC \
11135     postinstall_cmds_RC \
11136     postuninstall_cmds_RC \
11137     old_archive_from_expsyms_cmds_RC \
11138     allow_undefined_flag_RC \
11139     no_undefined_flag_RC \
11140     export_symbols_cmds_RC \
11141     hardcode_libdir_flag_spec_RC \
11142     hardcode_libdir_flag_spec_ld_RC \
11143     hardcode_libdir_separator_RC \
11144     hardcode_automatic_RC \
11145     module_cmds_RC \
11146     module_expsym_cmds_RC \
11147     lt_cv_prog_compiler_c_o_RC \
11148     exclude_expsyms_RC \
11149     include_expsyms_RC; do
11150
11151     case $var in
11152     old_archive_cmds_RC | \
11153     old_archive_from_new_cmds_RC | \
11154     archive_cmds_RC | \
11155     archive_expsym_cmds_RC | \
11156     module_cmds_RC | \
11157     module_expsym_cmds_RC | \
11158     old_archive_from_expsyms_cmds_RC | \
11159     export_symbols_cmds_RC | \
11160     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11161     postinstall_cmds | postuninstall_cmds | \
11162     old_postinstall_cmds | old_postuninstall_cmds | \
11163     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11164       # Double-quote double-evaled strings.
11165       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11166       ;;
11167     *)
11168       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11169       ;;
11170     esac
11171   done
11172
11173   case $lt_echo in
11174   *'\$0 --fallback-echo"')
11175     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11176     ;;
11177   esac
11178
11179 cfgfile="$ofile"
11180
11181   cat <<__EOF__ >> "$cfgfile"
11182 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11183
11184 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11185
11186 # Shell to use when invoking shell scripts.
11187 SHELL=$lt_SHELL
11188
11189 # Whether or not to build shared libraries.
11190 build_libtool_libs=$enable_shared
11191
11192 # Whether or not to build static libraries.
11193 build_old_libs=$enable_static
11194
11195 # Whether or not to add -lc for building shared libraries.
11196 build_libtool_need_lc=$archive_cmds_need_lc_RC
11197
11198 # Whether or not to disallow shared libs when runtime libs are static
11199 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11200
11201 # Whether or not to optimize for fast installation.
11202 fast_install=$enable_fast_install
11203
11204 # The host system.
11205 host_alias=$host_alias
11206 host=$host
11207 host_os=$host_os
11208
11209 # The build system.
11210 build_alias=$build_alias
11211 build=$build
11212 build_os=$build_os
11213
11214 # An echo program that does not interpret backslashes.
11215 echo=$lt_echo
11216
11217 # The archiver.
11218 AR=$lt_AR
11219 AR_FLAGS=$lt_AR_FLAGS
11220
11221 # A C compiler.
11222 LTCC=$lt_LTCC
11223
11224 # A language-specific compiler.
11225 CC=$lt_compiler_RC
11226
11227 # Is the compiler the GNU C compiler?
11228 with_gcc=$GCC_RC
11229
11230 # An ERE matcher.
11231 EGREP=$lt_EGREP
11232
11233 # The linker used to build libraries.
11234 LD=$lt_LD_RC
11235
11236 # Whether we need hard or soft links.
11237 LN_S=$lt_LN_S
11238
11239 # A BSD-compatible nm program.
11240 NM=$lt_NM
11241
11242 # A symbol stripping program
11243 STRIP=$lt_STRIP
11244
11245 # Used to examine libraries when file_magic_cmd begins "file"
11246 MAGIC_CMD=$MAGIC_CMD
11247
11248 # Used on cygwin: DLL creation program.
11249 DLLTOOL="$DLLTOOL"
11250
11251 # Used on cygwin: object dumper.
11252 OBJDUMP="$OBJDUMP"
11253
11254 # Used on cygwin: assembler.
11255 AS="$AS"
11256
11257 # The name of the directory that contains temporary libtool files.
11258 objdir=$objdir
11259
11260 # How to create reloadable object files.
11261 reload_flag=$lt_reload_flag
11262 reload_cmds=$lt_reload_cmds
11263
11264 # How to pass a linker flag through the compiler.
11265 wl=$lt_lt_prog_compiler_wl_RC
11266
11267 # Object file suffix (normally "o").
11268 objext="$ac_objext"
11269
11270 # Old archive suffix (normally "a").
11271 libext="$libext"
11272
11273 # Shared library suffix (normally ".so").
11274 shrext_cmds='$shrext_cmds'
11275
11276 # Executable file suffix (normally "").
11277 exeext="$exeext"
11278
11279 # Additional compiler flags for building library objects.
11280 pic_flag=$lt_lt_prog_compiler_pic_RC
11281 pic_mode=$pic_mode
11282
11283 # What is the maximum length of a command?
11284 max_cmd_len=$lt_cv_sys_max_cmd_len
11285
11286 # Does compiler simultaneously support -c and -o options?
11287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11288
11289 # Must we lock files when doing compilation?
11290 need_locks=$lt_need_locks
11291
11292 # Do we need the lib prefix for modules?
11293 need_lib_prefix=$need_lib_prefix
11294
11295 # Do we need a version for libraries?
11296 need_version=$need_version
11297
11298 # Whether dlopen is supported.
11299 dlopen_support=$enable_dlopen
11300
11301 # Whether dlopen of programs is supported.
11302 dlopen_self=$enable_dlopen_self
11303
11304 # Whether dlopen of statically linked programs is supported.
11305 dlopen_self_static=$enable_dlopen_self_static
11306
11307 # Compiler flag to prevent dynamic linking.
11308 link_static_flag=$lt_lt_prog_compiler_static_RC
11309
11310 # Compiler flag to turn off builtin functions.
11311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11312
11313 # Compiler flag to allow reflexive dlopens.
11314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11315
11316 # Compiler flag to generate shared objects directly from archives.
11317 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11318
11319 # Compiler flag to generate thread-safe objects.
11320 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11321
11322 # Library versioning type.
11323 version_type=$version_type
11324
11325 # Format of library name prefix.
11326 libname_spec=$lt_libname_spec
11327
11328 # List of archive names.  First name is the real one, the rest are links.
11329 # The last name is the one that the linker finds with -lNAME.
11330 library_names_spec=$lt_library_names_spec
11331
11332 # The coded name of the library, if different from the real name.
11333 soname_spec=$lt_soname_spec
11334
11335 # Commands used to build and install an old-style archive.
11336 RANLIB=$lt_RANLIB
11337 old_archive_cmds=$lt_old_archive_cmds_RC
11338 old_postinstall_cmds=$lt_old_postinstall_cmds
11339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11340
11341 # Create an old-style archive from a shared archive.
11342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11343
11344 # Create a temporary old-style archive to link instead of a shared archive.
11345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11346
11347 # Commands used to build and install a shared archive.
11348 archive_cmds=$lt_archive_cmds_RC
11349 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11350 postinstall_cmds=$lt_postinstall_cmds
11351 postuninstall_cmds=$lt_postuninstall_cmds
11352
11353 # Commands used to build a loadable module (assumed same as above if empty)
11354 module_cmds=$lt_module_cmds_RC
11355 module_expsym_cmds=$lt_module_expsym_cmds_RC
11356
11357 # Commands to strip libraries.
11358 old_striplib=$lt_old_striplib
11359 striplib=$lt_striplib
11360
11361 # Dependencies to place before the objects being linked to create a
11362 # shared library.
11363 predep_objects=$lt_predep_objects_RC
11364
11365 # Dependencies to place after the objects being linked to create a
11366 # shared library.
11367 postdep_objects=$lt_postdep_objects_RC
11368
11369 # Dependencies to place before the objects being linked to create a
11370 # shared library.
11371 predeps=$lt_predeps_RC
11372
11373 # Dependencies to place after the objects being linked to create a
11374 # shared library.
11375 postdeps=$lt_postdeps_RC
11376
11377 # The library search path used internally by the compiler when linking
11378 # a shared library.
11379 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11380
11381 # Method to check whether dependent libraries are shared objects.
11382 deplibs_check_method=$lt_deplibs_check_method
11383
11384 # Command to use when deplibs_check_method == file_magic.
11385 file_magic_cmd=$lt_file_magic_cmd
11386
11387 # Flag that allows shared libraries with undefined symbols to be built.
11388 allow_undefined_flag=$lt_allow_undefined_flag_RC
11389
11390 # Flag that forces no undefined symbols.
11391 no_undefined_flag=$lt_no_undefined_flag_RC
11392
11393 # Commands used to finish a libtool library installation in a directory.
11394 finish_cmds=$lt_finish_cmds
11395
11396 # Same as above, but a single script fragment to be evaled but not shown.
11397 finish_eval=$lt_finish_eval
11398
11399 # Take the output of nm and produce a listing of raw symbols and C names.
11400 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11401
11402 # Transform the output of nm in a proper C declaration
11403 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11404
11405 # Transform the output of nm in a C name address pair
11406 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11407
11408 # This is the shared library runtime path variable.
11409 runpath_var=$runpath_var
11410
11411 # This is the shared library path variable.
11412 shlibpath_var=$shlibpath_var
11413
11414 # Is shlibpath searched before the hard-coded library search path?
11415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11416
11417 # How to hardcode a shared library path into an executable.
11418 hardcode_action=$hardcode_action_RC
11419
11420 # Whether we should hardcode library paths into libraries.
11421 hardcode_into_libs=$hardcode_into_libs
11422
11423 # Flag to hardcode \$libdir into a binary during linking.
11424 # This must work even if \$libdir does not exist.
11425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11426
11427 # If ld is used when linking, flag to hardcode \$libdir into
11428 # a binary during linking. This must work even if \$libdir does
11429 # not exist.
11430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11431
11432 # Whether we need a single -rpath flag with a separated argument.
11433 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11434
11435 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11436 # resulting binary.
11437 hardcode_direct=$hardcode_direct_RC
11438
11439 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11440 # resulting binary.
11441 hardcode_minus_L=$hardcode_minus_L_RC
11442
11443 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11444 # the resulting binary.
11445 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11446
11447 # Set to yes if building a shared library automatically hardcodes DIR into the library
11448 # and all subsequent libraries and executables linked against it.
11449 hardcode_automatic=$hardcode_automatic_RC
11450
11451 # Variables whose values should be saved in libtool wrapper scripts and
11452 # restored at relink time.
11453 variables_saved_for_relink="$variables_saved_for_relink"
11454
11455 # Whether libtool must link a program against all its dependency libraries.
11456 link_all_deplibs=$link_all_deplibs_RC
11457
11458 # Compile-time system search path for libraries
11459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11460
11461 # Run-time system search path for libraries
11462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11463
11464 # Fix the shell variable \$srcfile for the compiler.
11465 fix_srcfile_path="$fix_srcfile_path_RC"
11466
11467 # Set to yes if exported symbols are required.
11468 always_export_symbols=$always_export_symbols_RC
11469
11470 # The commands to list exported symbols.
11471 export_symbols_cmds=$lt_export_symbols_cmds_RC
11472
11473 # The commands to extract the exported symbol list from a shared archive.
11474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11475
11476 # Symbols that should not be listed in the preloaded symbols.
11477 exclude_expsyms=$lt_exclude_expsyms_RC
11478
11479 # Symbols that must always be exported.
11480 include_expsyms=$lt_include_expsyms_RC
11481
11482 # ### END LIBTOOL TAG CONFIG: $tagname
11483
11484 __EOF__
11485
11486
11487 else
11488   # If there is no Makefile yet, we rely on a make rule to execute
11489   # `config.status --recheck' to rerun these tests and create the
11490   # libtool script then.
11491   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11492   if test -f "$ltmain_in"; then
11493     test -f Makefile && make "$ltmain"
11494   fi
11495 fi
11496
11497
11498 ac_ext=c
11499 ac_cpp='$CPP $CPPFLAGS'
11500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11503
11504 CC="$lt_save_CC"
11505
11506         ;;
11507
11508       *)
11509         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11510 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11511    { (exit 1); exit 1; }; }
11512         ;;
11513       esac
11514
11515       # Append the new tag name to the list of available tags.
11516       if test -n "$tagname" ; then
11517       available_tags="$available_tags $tagname"
11518     fi
11519     fi
11520   done
11521   IFS="$lt_save_ifs"
11522
11523   # Now substitute the updated list of available tags.
11524   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11525     mv "${ofile}T" "$ofile"
11526     chmod +x "$ofile"
11527   else
11528     rm -f "${ofile}T"
11529     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11530 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11531    { (exit 1); exit 1; }; }
11532   fi
11533 fi
11534
11535
11536
11537 # This can be used to rebuild libtool when needed
11538 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11539
11540 # Always use our own libtool.
11541 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11542
11543 # Prevent multiple expansion
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554 ol_link_perl=no
11555 if test $ol_enable_perl != no ; then
11556         # Extract the first word of "perl", so it can be a program name with args.
11557 set dummy perl; ac_word=$2
11558 echo "$as_me:$LINENO: checking for $ac_word" >&5
11559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11560 if test "${ac_cv_path_PERLBIN+set}" = set; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   case $PERLBIN in
11564   [\\/]* | ?:[\\/]*)
11565   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11566   ;;
11567   *)
11568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11570 do
11571   IFS=$as_save_IFS
11572   test -z "$as_dir" && as_dir=.
11573   for ac_exec_ext in '' $ac_executable_extensions; do
11574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11577     break 2
11578   fi
11579 done
11580 done
11581
11582   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11583   ;;
11584 esac
11585 fi
11586 PERLBIN=$ac_cv_path_PERLBIN
11587
11588 if test -n "$PERLBIN"; then
11589   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11590 echo "${ECHO_T}$PERLBIN" >&6
11591 else
11592   echo "$as_me:$LINENO: result: no" >&5
11593 echo "${ECHO_T}no" >&6
11594 fi
11595
11596
11597         if test "no$PERLBIN" = "no" ; then
11598                 if test $ol_enable_perl = yes ; then
11599                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11600 echo "$as_me: error: could not locate perl" >&2;}
11601    { (exit 1); exit 1; }; }
11602                 fi
11603
11604         else
11605                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11606                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11607
11608                 if test x"$ol_enable_perl" = "xyes" ; then
11609                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11610                 else
11611                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11612                 fi
11613                                 ol_link_perl=yes
11614         fi
11615 fi
11616
11617 ac_ext=c
11618 ac_cpp='$CPP $CPPFLAGS'
11619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11622 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11623 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11624 # On Suns, sometimes $CPP names a directory.
11625 if test -n "$CPP" && test -d "$CPP"; then
11626   CPP=
11627 fi
11628 if test -z "$CPP"; then
11629   if test "${ac_cv_prog_CPP+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632       # Double quotes because CPP needs to be expanded
11633     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11634     do
11635       ac_preproc_ok=false
11636 for ac_c_preproc_warn_flag in '' yes
11637 do
11638   # Use a header file that comes with gcc, so configuring glibc
11639   # with a fresh cross-compiler works.
11640   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641   # <limits.h> exists even on freestanding compilers.
11642   # On the NeXT, cc -E runs the code through the compiler's parser,
11643   # not just through cpp. "Syntax error" is here to catch this case.
11644   cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650 #ifdef __STDC__
11651 # include <limits.h>
11652 #else
11653 # include <assert.h>
11654 #endif
11655                      Syntax error
11656 _ACEOF
11657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } >/dev/null; then
11665   if test -s conftest.err; then
11666     ac_cpp_err=$ac_c_preproc_warn_flag
11667     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11668   else
11669     ac_cpp_err=
11670   fi
11671 else
11672   ac_cpp_err=yes
11673 fi
11674 if test -z "$ac_cpp_err"; then
11675   :
11676 else
11677   echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680   # Broken: fails on valid input.
11681 continue
11682 fi
11683 rm -f conftest.err conftest.$ac_ext
11684
11685   # OK, works on sane cases.  Now check whether non-existent headers
11686   # can be detected and how.
11687   cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693 #include <ac_nonexistent.h>
11694 _ACEOF
11695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11697   ac_status=$?
11698   grep -v '^ *+' conftest.er1 >conftest.err
11699   rm -f conftest.er1
11700   cat conftest.err >&5
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } >/dev/null; then
11703   if test -s conftest.err; then
11704     ac_cpp_err=$ac_c_preproc_warn_flag
11705     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11706   else
11707     ac_cpp_err=
11708   fi
11709 else
11710   ac_cpp_err=yes
11711 fi
11712 if test -z "$ac_cpp_err"; then
11713   # Broken: success on invalid input.
11714 continue
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719   # Passes both tests.
11720 ac_preproc_ok=:
11721 break
11722 fi
11723 rm -f conftest.err conftest.$ac_ext
11724
11725 done
11726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11727 rm -f conftest.err conftest.$ac_ext
11728 if $ac_preproc_ok; then
11729   break
11730 fi
11731
11732     done
11733     ac_cv_prog_CPP=$CPP
11734
11735 fi
11736   CPP=$ac_cv_prog_CPP
11737 else
11738   ac_cv_prog_CPP=$CPP
11739 fi
11740 echo "$as_me:$LINENO: result: $CPP" >&5
11741 echo "${ECHO_T}$CPP" >&6
11742 ac_preproc_ok=false
11743 for ac_c_preproc_warn_flag in '' yes
11744 do
11745   # Use a header file that comes with gcc, so configuring glibc
11746   # with a fresh cross-compiler works.
11747   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11748   # <limits.h> exists even on freestanding compilers.
11749   # On the NeXT, cc -E runs the code through the compiler's parser,
11750   # not just through cpp. "Syntax error" is here to catch this case.
11751   cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757 #ifdef __STDC__
11758 # include <limits.h>
11759 #else
11760 # include <assert.h>
11761 #endif
11762                      Syntax error
11763 _ACEOF
11764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11765   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } >/dev/null; then
11772   if test -s conftest.err; then
11773     ac_cpp_err=$ac_c_preproc_warn_flag
11774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11775   else
11776     ac_cpp_err=
11777   fi
11778 else
11779   ac_cpp_err=yes
11780 fi
11781 if test -z "$ac_cpp_err"; then
11782   :
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787   # Broken: fails on valid input.
11788 continue
11789 fi
11790 rm -f conftest.err conftest.$ac_ext
11791
11792   # OK, works on sane cases.  Now check whether non-existent headers
11793   # can be detected and how.
11794   cat >conftest.$ac_ext <<_ACEOF
11795 /* confdefs.h.  */
11796 _ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h.  */
11800 #include <ac_nonexistent.h>
11801 _ACEOF
11802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11804   ac_status=$?
11805   grep -v '^ *+' conftest.er1 >conftest.err
11806   rm -f conftest.er1
11807   cat conftest.err >&5
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } >/dev/null; then
11810   if test -s conftest.err; then
11811     ac_cpp_err=$ac_c_preproc_warn_flag
11812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11813   else
11814     ac_cpp_err=
11815   fi
11816 else
11817   ac_cpp_err=yes
11818 fi
11819 if test -z "$ac_cpp_err"; then
11820   # Broken: success on invalid input.
11821 continue
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826   # Passes both tests.
11827 ac_preproc_ok=:
11828 break
11829 fi
11830 rm -f conftest.err conftest.$ac_ext
11831
11832 done
11833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11834 rm -f conftest.err conftest.$ac_ext
11835 if $ac_preproc_ok; then
11836   :
11837 else
11838   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11839 See \`config.log' for more details." >&5
11840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11841 See \`config.log' for more details." >&2;}
11842    { (exit 1); exit 1; }; }
11843 fi
11844
11845 ac_ext=c
11846 ac_cpp='$CPP $CPPFLAGS'
11847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11850
11851
11852 case $host_os in
11853   *mingw32* ) ac_cv_mingw32=yes ;;
11854   *cygwin* ) ac_cv_cygwin=yes ;;
11855 esac
11856
11857
11858
11859
11860 cat >>confdefs.h <<_ACEOF
11861 #define EXEEXT "${EXEEXT}"
11862 _ACEOF
11863
11864
11865 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11866 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11867 if test "${ac_cv_lib_be_be_app+set}" = set; then
11868   echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870   ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-lbe -lroot -lnet $LIBS"
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878
11879 /* Override any gcc2 internal prototype to avoid an error.  */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 /* We use char because int might match the return type of a gcc2
11884    builtin and then its argument prototype would still apply.  */
11885 char be_app ();
11886 int
11887 main ()
11888 {
11889 be_app ();
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896   (eval $ac_link) 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -z "$ac_c_werror_flag"
11904                          || test ! -s conftest.err'
11905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906   (eval $ac_try) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); }; } &&
11910          { ac_try='test -s conftest$ac_exeext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   ac_cv_lib_be_be_app=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 ac_cv_lib_be_be_app=no
11922 fi
11923 rm -f conftest.err conftest.$ac_objext \
11924       conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11928 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11929 if test $ac_cv_lib_be_be_app = yes; then
11930   LIBS="$LIBS -lbe -lroot -lnet"
11931 else
11932   :
11933 fi
11934
11935
11936 ac_ext=c
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11941 if test -n "$ac_tool_prefix"; then
11942   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11944 echo "$as_me:$LINENO: checking for $ac_word" >&5
11945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11946 if test "${ac_cv_prog_CC+set}" = set; then
11947   echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949   if test -n "$CC"; then
11950   ac_cv_prog_CC="$CC" # Let the user override the test.
11951 else
11952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953 for as_dir in $PATH
11954 do
11955   IFS=$as_save_IFS
11956   test -z "$as_dir" && as_dir=.
11957   for ac_exec_ext in '' $ac_executable_extensions; do
11958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11959     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11961     break 2
11962   fi
11963 done
11964 done
11965
11966 fi
11967 fi
11968 CC=$ac_cv_prog_CC
11969 if test -n "$CC"; then
11970   echo "$as_me:$LINENO: result: $CC" >&5
11971 echo "${ECHO_T}$CC" >&6
11972 else
11973   echo "$as_me:$LINENO: result: no" >&5
11974 echo "${ECHO_T}no" >&6
11975 fi
11976
11977 fi
11978 if test -z "$ac_cv_prog_CC"; then
11979   ac_ct_CC=$CC
11980   # Extract the first word of "gcc", so it can be a program name with args.
11981 set dummy gcc; ac_word=$2
11982 echo "$as_me:$LINENO: checking for $ac_word" >&5
11983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   if test -n "$ac_ct_CC"; then
11988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11989 else
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11992 do
11993   IFS=$as_save_IFS
11994   test -z "$as_dir" && as_dir=.
11995   for ac_exec_ext in '' $ac_executable_extensions; do
11996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997     ac_cv_prog_ac_ct_CC="gcc"
11998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11999     break 2
12000   fi
12001 done
12002 done
12003
12004 fi
12005 fi
12006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12007 if test -n "$ac_ct_CC"; then
12008   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12009 echo "${ECHO_T}$ac_ct_CC" >&6
12010 else
12011   echo "$as_me:$LINENO: result: no" >&5
12012 echo "${ECHO_T}no" >&6
12013 fi
12014
12015   CC=$ac_ct_CC
12016 else
12017   CC="$ac_cv_prog_CC"
12018 fi
12019
12020 if test -z "$CC"; then
12021   if test -n "$ac_tool_prefix"; then
12022   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12023 set dummy ${ac_tool_prefix}cc; ac_word=$2
12024 echo "$as_me:$LINENO: checking for $ac_word" >&5
12025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12026 if test "${ac_cv_prog_CC+set}" = set; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   if test -n "$CC"; then
12030   ac_cv_prog_CC="$CC" # Let the user override the test.
12031 else
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035   IFS=$as_save_IFS
12036   test -z "$as_dir" && as_dir=.
12037   for ac_exec_ext in '' $ac_executable_extensions; do
12038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12039     ac_cv_prog_CC="${ac_tool_prefix}cc"
12040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044 done
12045
12046 fi
12047 fi
12048 CC=$ac_cv_prog_CC
12049 if test -n "$CC"; then
12050   echo "$as_me:$LINENO: result: $CC" >&5
12051 echo "${ECHO_T}$CC" >&6
12052 else
12053   echo "$as_me:$LINENO: result: no" >&5
12054 echo "${ECHO_T}no" >&6
12055 fi
12056
12057 fi
12058 if test -z "$ac_cv_prog_CC"; then
12059   ac_ct_CC=$CC
12060   # Extract the first word of "cc", so it can be a program name with args.
12061 set dummy cc; ac_word=$2
12062 echo "$as_me:$LINENO: checking for $ac_word" >&5
12063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   if test -n "$ac_ct_CC"; then
12068   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12069 else
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12072 do
12073   IFS=$as_save_IFS
12074   test -z "$as_dir" && as_dir=.
12075   for ac_exec_ext in '' $ac_executable_extensions; do
12076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077     ac_cv_prog_ac_ct_CC="cc"
12078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12079     break 2
12080   fi
12081 done
12082 done
12083
12084 fi
12085 fi
12086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12087 if test -n "$ac_ct_CC"; then
12088   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12089 echo "${ECHO_T}$ac_ct_CC" >&6
12090 else
12091   echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12093 fi
12094
12095   CC=$ac_ct_CC
12096 else
12097   CC="$ac_cv_prog_CC"
12098 fi
12099
12100 fi
12101 if test -z "$CC"; then
12102   # Extract the first word of "cc", so it can be a program name with args.
12103 set dummy cc; ac_word=$2
12104 echo "$as_me:$LINENO: checking for $ac_word" >&5
12105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12106 if test "${ac_cv_prog_CC+set}" = set; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109   if test -n "$CC"; then
12110   ac_cv_prog_CC="$CC" # Let the user override the test.
12111 else
12112   ac_prog_rejected=no
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12115 do
12116   IFS=$as_save_IFS
12117   test -z "$as_dir" && as_dir=.
12118   for ac_exec_ext in '' $ac_executable_extensions; do
12119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12120     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12121        ac_prog_rejected=yes
12122        continue
12123      fi
12124     ac_cv_prog_CC="cc"
12125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12126     break 2
12127   fi
12128 done
12129 done
12130
12131 if test $ac_prog_rejected = yes; then
12132   # We found a bogon in the path, so make sure we never use it.
12133   set dummy $ac_cv_prog_CC
12134   shift
12135   if test $# != 0; then
12136     # We chose a different compiler from the bogus one.
12137     # However, it has the same basename, so the bogon will be chosen
12138     # first if we set CC to just the basename; use the full file name.
12139     shift
12140     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12141   fi
12142 fi
12143 fi
12144 fi
12145 CC=$ac_cv_prog_CC
12146 if test -n "$CC"; then
12147   echo "$as_me:$LINENO: result: $CC" >&5
12148 echo "${ECHO_T}$CC" >&6
12149 else
12150   echo "$as_me:$LINENO: result: no" >&5
12151 echo "${ECHO_T}no" >&6
12152 fi
12153
12154 fi
12155 if test -z "$CC"; then
12156   if test -n "$ac_tool_prefix"; then
12157   for ac_prog in cl
12158   do
12159     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12161 echo "$as_me:$LINENO: checking for $ac_word" >&5
12162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12163 if test "${ac_cv_prog_CC+set}" = set; then
12164   echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166   if test -n "$CC"; then
12167   ac_cv_prog_CC="$CC" # Let the user override the test.
12168 else
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12171 do
12172   IFS=$as_save_IFS
12173   test -z "$as_dir" && as_dir=.
12174   for ac_exec_ext in '' $ac_executable_extensions; do
12175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12176     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12178     break 2
12179   fi
12180 done
12181 done
12182
12183 fi
12184 fi
12185 CC=$ac_cv_prog_CC
12186 if test -n "$CC"; then
12187   echo "$as_me:$LINENO: result: $CC" >&5
12188 echo "${ECHO_T}$CC" >&6
12189 else
12190   echo "$as_me:$LINENO: result: no" >&5
12191 echo "${ECHO_T}no" >&6
12192 fi
12193
12194     test -n "$CC" && break
12195   done
12196 fi
12197 if test -z "$CC"; then
12198   ac_ct_CC=$CC
12199   for ac_prog in cl
12200 do
12201   # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 echo "$as_me:$LINENO: checking for $ac_word" >&5
12204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12206   echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208   if test -n "$ac_ct_CC"; then
12209   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214   IFS=$as_save_IFS
12215   test -z "$as_dir" && as_dir=.
12216   for ac_exec_ext in '' $ac_executable_extensions; do
12217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218     ac_cv_prog_ac_ct_CC="$ac_prog"
12219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12220     break 2
12221   fi
12222 done
12223 done
12224
12225 fi
12226 fi
12227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12228 if test -n "$ac_ct_CC"; then
12229   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12230 echo "${ECHO_T}$ac_ct_CC" >&6
12231 else
12232   echo "$as_me:$LINENO: result: no" >&5
12233 echo "${ECHO_T}no" >&6
12234 fi
12235
12236   test -n "$ac_ct_CC" && break
12237 done
12238
12239   CC=$ac_ct_CC
12240 fi
12241
12242 fi
12243
12244
12245 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12246 See \`config.log' for more details." >&5
12247 echo "$as_me: error: no acceptable C compiler found in \$PATH
12248 See \`config.log' for more details." >&2;}
12249    { (exit 1); exit 1; }; }
12250
12251 # Provide some information about the compiler.
12252 echo "$as_me:$LINENO:" \
12253      "checking for C compiler version" >&5
12254 ac_compiler=`set X $ac_compile; echo $2`
12255 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12256   (eval $ac_compiler --version </dev/null >&5) 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }
12260 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12261   (eval $ac_compiler -v </dev/null >&5) 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); }
12265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12266   (eval $ac_compiler -V </dev/null >&5) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }
12270
12271 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12272 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12273 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276   cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h.  */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h.  */
12282
12283 int
12284 main ()
12285 {
12286 #ifndef __GNUC__
12287        choke me
12288 #endif
12289
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296   (eval $ac_compile) 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -z "$ac_c_werror_flag"
12304                          || test ! -s conftest.err'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; } &&
12310          { ac_try='test -s conftest.$ac_objext'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_compiler_gnu=yes
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_compiler_gnu=no
12322 fi
12323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12324 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12325
12326 fi
12327 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12328 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12329 GCC=`test $ac_compiler_gnu = yes && echo yes`
12330 ac_test_CFLAGS=${CFLAGS+set}
12331 ac_save_CFLAGS=$CFLAGS
12332 CFLAGS="-g"
12333 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12334 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12335 if test "${ac_cv_prog_cc_g+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h.  */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h.  */
12344
12345 int
12346 main ()
12347 {
12348
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355   (eval $ac_compile) 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } &&
12362          { ac_try='test -z "$ac_c_werror_flag"
12363                          || test ! -s conftest.err'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; } &&
12369          { ac_try='test -s conftest.$ac_objext'
12370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371   (eval $ac_try) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; }; then
12375   ac_cv_prog_cc_g=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 ac_cv_prog_cc_g=no
12381 fi
12382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12383 fi
12384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12385 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12386 if test "$ac_test_CFLAGS" = set; then
12387   CFLAGS=$ac_save_CFLAGS
12388 elif test $ac_cv_prog_cc_g = yes; then
12389   if test "$GCC" = yes; then
12390     CFLAGS="-g -O2"
12391   else
12392     CFLAGS="-g"
12393   fi
12394 else
12395   if test "$GCC" = yes; then
12396     CFLAGS="-O2"
12397   else
12398     CFLAGS=
12399   fi
12400 fi
12401 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12402 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12403 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   ac_cv_prog_cc_stdc=no
12407 ac_save_CC=$CC
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414 #include <stdarg.h>
12415 #include <stdio.h>
12416 #include <sys/types.h>
12417 #include <sys/stat.h>
12418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12419 struct buf { int x; };
12420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12421 static char *e (p, i)
12422      char **p;
12423      int i;
12424 {
12425   return p[i];
12426 }
12427 static char *f (char * (*g) (char **, int), char **p, ...)
12428 {
12429   char *s;
12430   va_list v;
12431   va_start (v,p);
12432   s = g (p, va_arg (v,int));
12433   va_end (v);
12434   return s;
12435 }
12436
12437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12438    function prototypes and stuff, but not '\xHH' hex character constants.
12439    These don't provoke an error unfortunately, instead are silently treated
12440    as 'x'.  The following induces an error, until -std1 is added to get
12441    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12442    array size at least.  It's necessary to write '\x00'==0 to get something
12443    that's true only with -std1.  */
12444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12445
12446 int test (int i, double x);
12447 struct s1 {int (*f) (int a);};
12448 struct s2 {int (*f) (double a);};
12449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12450 int argc;
12451 char **argv;
12452 int
12453 main ()
12454 {
12455 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 # Don't try gcc -ansi; that turns off useful extensions and
12461 # breaks some systems' header files.
12462 # AIX                   -qlanglvl=ansi
12463 # Ultrix and OSF/1      -std1
12464 # HP-UX 10.20 and later -Ae
12465 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12466 # SVR4                  -Xc -D__EXTENSIONS__
12467 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12468 do
12469   CC="$ac_save_CC $ac_arg"
12470   rm -f conftest.$ac_objext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472   (eval $ac_compile) 2>conftest.er1
12473   ac_status=$?
12474   grep -v '^ *+' conftest.er1 >conftest.err
12475   rm -f conftest.er1
12476   cat conftest.err >&5
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } &&
12479          { ac_try='test -z "$ac_c_werror_flag"
12480                          || test ! -s conftest.err'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; } &&
12486          { ac_try='test -s conftest.$ac_objext'
12487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488   (eval $ac_try) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); }; }; then
12492   ac_cv_prog_cc_stdc=$ac_arg
12493 break
12494 else
12495   echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498 fi
12499 rm -f conftest.err conftest.$ac_objext
12500 done
12501 rm -f conftest.$ac_ext conftest.$ac_objext
12502 CC=$ac_save_CC
12503
12504 fi
12505
12506 case "x$ac_cv_prog_cc_stdc" in
12507   x|xno)
12508     echo "$as_me:$LINENO: result: none needed" >&5
12509 echo "${ECHO_T}none needed" >&6 ;;
12510   *)
12511     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12512 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12513     CC="$CC $ac_cv_prog_cc_stdc" ;;
12514 esac
12515
12516 # Some people use a C++ compiler to compile C.  Since we use `exit',
12517 # in C++ we need to declare it.  In case someone uses the same compiler
12518 # for both compiling C and C++ we need to have the C++ compiler decide
12519 # the declaration of exit, since it's the most demanding environment.
12520 cat >conftest.$ac_ext <<_ACEOF
12521 #ifndef __cplusplus
12522   choke me
12523 #endif
12524 _ACEOF
12525 rm -f conftest.$ac_objext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527   (eval $ac_compile) 2>conftest.er1
12528   ac_status=$?
12529   grep -v '^ *+' conftest.er1 >conftest.err
12530   rm -f conftest.er1
12531   cat conftest.err >&5
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); } &&
12534          { ac_try='test -z "$ac_c_werror_flag"
12535                          || test ! -s conftest.err'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; } &&
12541          { ac_try='test -s conftest.$ac_objext'
12542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543   (eval $ac_try) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; }; then
12547   for ac_declaration in \
12548    '' \
12549    'extern "C" void std::exit (int) throw (); using std::exit;' \
12550    'extern "C" void std::exit (int); using std::exit;' \
12551    'extern "C" void exit (int) throw ();' \
12552    'extern "C" void exit (int);' \
12553    'void exit (int);'
12554 do
12555   cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h.  */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h.  */
12561 $ac_declaration
12562 #include <stdlib.h>
12563 int
12564 main ()
12565 {
12566 exit (42);
12567   ;
12568   return 0;
12569 }
12570 _ACEOF
12571 rm -f conftest.$ac_objext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12573   (eval $ac_compile) 2>conftest.er1
12574   ac_status=$?
12575   grep -v '^ *+' conftest.er1 >conftest.err
12576   rm -f conftest.er1
12577   cat conftest.err >&5
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); } &&
12580          { ac_try='test -z "$ac_c_werror_flag"
12581                          || test ! -s conftest.err'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; } &&
12587          { ac_try='test -s conftest.$ac_objext'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; }; then
12593   :
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 continue
12599 fi
12600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12601   cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607 $ac_declaration
12608 int
12609 main ()
12610 {
12611 exit (42);
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618   (eval $ac_compile) 2>conftest.er1
12619   ac_status=$?
12620   grep -v '^ *+' conftest.er1 >conftest.err
12621   rm -f conftest.er1
12622   cat conftest.err >&5
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -z "$ac_c_werror_flag"
12626                          || test ! -s conftest.err'
12627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628   (eval $ac_try) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; } &&
12632          { ac_try='test -s conftest.$ac_objext'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638   break
12639 else
12640   echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 fi
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 done
12646 rm -f conftest*
12647 if test -n "$ac_declaration"; then
12648   echo '#ifdef __cplusplus' >>confdefs.h
12649   echo $ac_declaration      >>confdefs.h
12650   echo '#endif'             >>confdefs.h
12651 fi
12652
12653 else
12654   echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657 fi
12658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659 ac_ext=c
12660 ac_cpp='$CPP $CPPFLAGS'
12661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12664
12665 depcc="$CC"   am_compiler_list=
12666
12667 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12668 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12669 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12670   echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12673   # We make a subdir and do the tests there.  Otherwise we can end up
12674   # making bogus files that we don't know about and never remove.  For
12675   # instance it was reported that on HP-UX the gcc test will end up
12676   # making a dummy file named `D' -- because `-MD' means `put the output
12677   # in D'.
12678   mkdir conftest.dir
12679   # Copy depcomp to subdir because otherwise we won't find it if we're
12680   # using a relative directory.
12681   cp "$am_depcomp" conftest.dir
12682   cd conftest.dir
12683   # We will build objects and dependencies in a subdirectory because
12684   # it helps to detect inapplicable dependency modes.  For instance
12685   # both Tru64's cc and ICC support -MD to output dependencies as a
12686   # side effect of compilation, but ICC will put the dependencies in
12687   # the current directory while Tru64 will put them in the object
12688   # directory.
12689   mkdir sub
12690
12691   am_cv_CC_dependencies_compiler_type=none
12692   if test "$am_compiler_list" = ""; then
12693      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12694   fi
12695   for depmode in $am_compiler_list; do
12696     # Setup a source with many dependencies, because some compilers
12697     # like to wrap large dependency lists on column 80 (with \), and
12698     # we should not choose a depcomp mode which is confused by this.
12699     #
12700     # We need to recreate these files for each test, as the compiler may
12701     # overwrite some of them when testing with obscure command lines.
12702     # This happens at least with the AIX C compiler.
12703     : > sub/conftest.c
12704     for i in 1 2 3 4 5 6; do
12705       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12706       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12707       # Solaris 8's {/usr,}/bin/sh.
12708       touch sub/conftst$i.h
12709     done
12710     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12711
12712     case $depmode in
12713     nosideeffect)
12714       # after this tag, mechanisms are not by side-effect, so they'll
12715       # only be used when explicitly requested
12716       if test "x$enable_dependency_tracking" = xyes; then
12717         continue
12718       else
12719         break
12720       fi
12721       ;;
12722     none) break ;;
12723     esac
12724     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12725     # mode.  It turns out that the SunPro C++ compiler does not properly
12726     # handle `-M -o', and we need to detect this.
12727     if depmode=$depmode \
12728        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12729        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12730        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12731          >/dev/null 2>conftest.err &&
12732        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12733        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12734        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12735       # icc doesn't choke on unknown options, it will just issue warnings
12736       # or remarks (even with -Werror).  So we grep stderr for any message
12737       # that says an option was ignored or not supported.
12738       # When given -MP, icc 7.0 and 7.1 complain thusly:
12739       #   icc: Command line warning: ignoring option '-M'; no argument required
12740       # The diagnosis changed in icc 8.0:
12741       #   icc: Command line remark: option '-MP' not supported
12742       if (grep 'ignoring option' conftest.err ||
12743           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12744         am_cv_CC_dependencies_compiler_type=$depmode
12745         break
12746       fi
12747     fi
12748   done
12749
12750   cd ..
12751   rm -rf conftest.dir
12752 else
12753   am_cv_CC_dependencies_compiler_type=none
12754 fi
12755
12756 fi
12757 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12758 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12760
12761
12762
12763 if
12764   test "x$enable_dependency_tracking" != xno \
12765   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12766   am__fastdepCC_TRUE=
12767   am__fastdepCC_FALSE='#'
12768 else
12769   am__fastdepCC_TRUE='#'
12770   am__fastdepCC_FALSE=
12771 fi
12772
12773
12774 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12775         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12776 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12777    { (exit 1); exit 1; }; }
12778 fi
12779
12780 # test for make depend flag
12781 OL_MKDEP=
12782 OL_MKDEP_FLAGS=
12783 if test -z "${MKDEP}"; then
12784         OL_MKDEP="${CC-cc}"
12785         if test -z "${MKDEP_FLAGS}"; then
12786                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12787 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12788 if test "${ol_cv_mkdep+set}" = set; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791
12792                         ol_cv_mkdep=no
12793                         for flag in "-M" "-xM"; do
12794                                 cat > conftest.c <<EOF
12795  noCode;
12796 EOF
12797                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799   (eval $ac_try) 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); }; } \
12803                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12804                                 then
12805                                         if test ! -f conftest."${ac_object}" ; then
12806                                                 ol_cv_mkdep=$flag
12807                                                 OL_MKDEP_FLAGS="$flag"
12808                                                 break
12809                                         fi
12810                                 fi
12811                         done
12812                         rm -f conftest*
12813
12814 fi
12815 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12816 echo "${ECHO_T}$ol_cv_mkdep" >&6
12817         else
12818                 cc_cv_mkdep=yes
12819                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12820         fi
12821 else
12822         cc_cv_mkdep=yes
12823         OL_MKDEP="${MKDEP}"
12824         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12825 fi
12826
12827
12828
12829 if test "${ol_cv_mkdep}" = no ; then
12830         # this will soon become an error
12831         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12832 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12833 fi
12834
12835 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12836 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12837 if test "${ac_cv_lib_s_afopen+set}" = set; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840   ac_check_lib_save_LIBS=$LIBS
12841 LIBS="-ls  $LIBS"
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h.  */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h.  */
12848
12849 /* Override any gcc2 internal prototype to avoid an error.  */
12850 #ifdef __cplusplus
12851 extern "C"
12852 #endif
12853 /* We use char because int might match the return type of a gcc2
12854    builtin and then its argument prototype would still apply.  */
12855 char afopen ();
12856 int
12857 main ()
12858 {
12859 afopen ();
12860   ;
12861   return 0;
12862 }
12863 _ACEOF
12864 rm -f conftest.$ac_objext conftest$ac_exeext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866   (eval $ac_link) 2>conftest.er1
12867   ac_status=$?
12868   grep -v '^ *+' conftest.er1 >conftest.err
12869   rm -f conftest.er1
12870   cat conftest.err >&5
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -z "$ac_c_werror_flag"
12874                          || test ! -s conftest.err'
12875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876   (eval $ac_try) 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; } &&
12880          { ac_try='test -s conftest$ac_exeext'
12881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882   (eval $ac_try) 2>&5
12883   ac_status=$?
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); }; }; then
12886   ac_cv_lib_s_afopen=yes
12887 else
12888   echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12890
12891 ac_cv_lib_s_afopen=no
12892 fi
12893 rm -f conftest.err conftest.$ac_objext \
12894       conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12896 fi
12897 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12898 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12899 if test $ac_cv_lib_s_afopen = yes; then
12900
12901         AUTH_LIBS=-ls
12902
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_AIX_SECURITY 1
12905 _ACEOF
12906
12907
12908 fi
12909
12910
12911 case "$target" in
12912 *-ibm-openedition)
12913         ac_cv_func_getopt=no
12914
12915 cat >>confdefs.h <<\_ACEOF
12916 #define BOTH_STRINGS_H 1
12917 _ACEOF
12918
12919         ;;
12920 esac
12921
12922 ol_link_modules=no
12923 WITH_MODULES_ENABLED=no
12924 if test $ol_enable_modules != no ; then
12925
12926 for ac_header in ltdl.h
12927 do
12928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12930   echo "$as_me:$LINENO: checking for $ac_header" >&5
12931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 fi
12935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12937 else
12938   # Is the header compilable?
12939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947 $ac_includes_default
12948 #include <$ac_header>
12949 _ACEOF
12950 rm -f conftest.$ac_objext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952   (eval $ac_compile) 2>conftest.er1
12953   ac_status=$?
12954   grep -v '^ *+' conftest.er1 >conftest.err
12955   rm -f conftest.er1
12956   cat conftest.err >&5
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); } &&
12959          { ac_try='test -z "$ac_c_werror_flag"
12960                          || test ! -s conftest.err'
12961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962   (eval $ac_try) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; } &&
12966          { ac_try='test -s conftest.$ac_objext'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   ac_header_compiler=yes
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 ac_header_compiler=no
12978 fi
12979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12981 echo "${ECHO_T}$ac_header_compiler" >&6
12982
12983 # Is the header present?
12984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12986 cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992 #include <$ac_header>
12993 _ACEOF
12994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } >/dev/null; then
13002   if test -s conftest.err; then
13003     ac_cpp_err=$ac_c_preproc_warn_flag
13004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13005   else
13006     ac_cpp_err=
13007   fi
13008 else
13009   ac_cpp_err=yes
13010 fi
13011 if test -z "$ac_cpp_err"; then
13012   ac_header_preproc=yes
13013 else
13014   echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13016
13017   ac_header_preproc=no
13018 fi
13019 rm -f conftest.err conftest.$ac_ext
13020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13021 echo "${ECHO_T}$ac_header_preproc" >&6
13022
13023 # So?  What about this header?
13024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13025   yes:no: )
13026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13030     ac_header_preproc=yes
13031     ;;
13032   no:yes:* )
13033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13045     (
13046       cat <<\_ASBOX
13047 ## ------------------------------------------ ##
13048 ## Report this to the AC_PACKAGE_NAME lists.  ##
13049 ## ------------------------------------------ ##
13050 _ASBOX
13051     ) |
13052       sed "s/^/$as_me: WARNING:     /" >&2
13053     ;;
13054 esac
13055 echo "$as_me:$LINENO: checking for $ac_header" >&5
13056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13058   echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060   eval "$as_ac_Header=\$ac_header_preproc"
13061 fi
13062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13064
13065 fi
13066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13067   cat >>confdefs.h <<_ACEOF
13068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13069 _ACEOF
13070
13071 fi
13072
13073 done
13074
13075
13076         if test $ac_cv_header_ltdl_h = no ; then
13077                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13078 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13079    { (exit 1); exit 1; }; }
13080         fi
13081
13082         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13083 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13084 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   ac_check_lib_save_LIBS=$LIBS
13088 LIBS="-lltdl  $LIBS"
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095
13096 /* Override any gcc2 internal prototype to avoid an error.  */
13097 #ifdef __cplusplus
13098 extern "C"
13099 #endif
13100 /* We use char because int might match the return type of a gcc2
13101    builtin and then its argument prototype would still apply.  */
13102 char lt_dlinit ();
13103 int
13104 main ()
13105 {
13106 lt_dlinit ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113   (eval $ac_link) 2>conftest.er1
13114   ac_status=$?
13115   grep -v '^ *+' conftest.er1 >conftest.err
13116   rm -f conftest.er1
13117   cat conftest.err >&5
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } &&
13120          { ac_try='test -z "$ac_c_werror_flag"
13121                          || test ! -s conftest.err'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; } &&
13127          { ac_try='test -s conftest$ac_exeext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133   ac_cv_lib_ltdl_lt_dlinit=yes
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ac_cv_lib_ltdl_lt_dlinit=no
13139 fi
13140 rm -f conftest.err conftest.$ac_objext \
13141       conftest$ac_exeext conftest.$ac_ext
13142 LIBS=$ac_check_lib_save_LIBS
13143 fi
13144 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13145 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13146 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13147
13148                 MODULES_LIBS=-lltdl
13149
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_LIBLTDL 1
13152 _ACEOF
13153
13154
13155 fi
13156
13157
13158         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13159                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13160 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13161    { (exit 1); exit 1; }; }
13162         fi
13163         ol_link_modules=yes
13164         WITH_MODULES_ENABLED=yes
13165
13166 else
13167         for i in $Backends; do
13168                 eval "ol_tmp=\$ol_enable_$i"
13169                 if test $ol_tmp = mod ; then
13170                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13171 echo "$as_me: WARNING: building static $i backend" >&2;}
13172                         eval "ol_enable_$i=yes"
13173                 fi
13174         done
13175         for i in $Overlays; do
13176                 eval "ol_tmp=\$ol_enable_$i"
13177                 if test $ol_tmp = mod ; then
13178                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13179 echo "$as_me: WARNING: building static $i overlay" >&2;}
13180                         eval "ol_enable_$i=yes"
13181                 fi
13182         done
13183 fi
13184
13185 # test for EBCDIC
13186 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13187 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13188 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13189   echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191
13192         cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198
13199 #if !('M' == 0xd4)
13200 #include <__ASCII__/generate_error.h>
13201 #endif
13202
13203 _ACEOF
13204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13206   ac_status=$?
13207   grep -v '^ *+' conftest.er1 >conftest.err
13208   rm -f conftest.er1
13209   cat conftest.err >&5
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); } >/dev/null; then
13212   if test -s conftest.err; then
13213     ac_cpp_err=$ac_c_preproc_warn_flag
13214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13215   else
13216     ac_cpp_err=
13217   fi
13218 else
13219   ac_cpp_err=yes
13220 fi
13221 if test -z "$ac_cpp_err"; then
13222   ol_cv_cpp_ebcdic=yes
13223 else
13224   echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227   ol_cv_cpp_ebcdic=no
13228 fi
13229 rm -f conftest.err conftest.$ac_ext
13230 fi
13231 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13232 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13233 if test $ol_cv_cpp_ebcdic = yes ; then
13234
13235 cat >>confdefs.h <<\_ACEOF
13236 #define HAVE_EBCDIC 1
13237 _ACEOF
13238
13239 fi
13240
13241 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13242 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13243 if test "${ol_cv_header_stdc+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246   cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h.  */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h.  */
13252 #include <stdlib.h>
13253 #include <stdarg.h>
13254 #include <string.h>
13255 #include <float.h>
13256 _ACEOF
13257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13259   ac_status=$?
13260   grep -v '^ *+' conftest.er1 >conftest.err
13261   rm -f conftest.er1
13262   cat conftest.err >&5
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } >/dev/null; then
13265   if test -s conftest.err; then
13266     ac_cpp_err=$ac_c_preproc_warn_flag
13267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13268   else
13269     ac_cpp_err=
13270   fi
13271 else
13272   ac_cpp_err=yes
13273 fi
13274 if test -z "$ac_cpp_err"; then
13275   ol_cv_header_stdc=yes
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280   ol_cv_header_stdc=no
13281 fi
13282 rm -f conftest.err conftest.$ac_ext
13283
13284 if test $ol_cv_header_stdc = yes; then
13285   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h.  */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h.  */
13292 #include <string.h>
13293
13294 _ACEOF
13295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13296   $EGREP "memchr" >/dev/null 2>&1; then
13297   :
13298 else
13299   ol_cv_header_stdc=no
13300 fi
13301 rm -f conftest*
13302
13303 fi
13304
13305 if test $ol_cv_header_stdc = yes; then
13306   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h.  */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h.  */
13313 #include <stdlib.h>
13314
13315 _ACEOF
13316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13317   $EGREP "free" >/dev/null 2>&1; then
13318   :
13319 else
13320   ol_cv_header_stdc=no
13321 fi
13322 rm -f conftest*
13323
13324 fi
13325
13326 if test $ol_cv_header_stdc = yes; then
13327   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13328 if test "$cross_compiling" = yes; then
13329   :
13330 else
13331   cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 #include <ctype.h>
13338 #ifndef HAVE_EBCDIC
13339 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13340 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13341 #else
13342 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13343                 || ('j' <= (c) && (c) <= 'r') \
13344                 || ('s' <= (c) && (c) <= 'z'))
13345 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13346 #endif
13347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13348 int main () { int i; for (i = 0; i < 256; i++)
13349 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13350 exit (0); }
13351
13352 _ACEOF
13353 rm -f conftest$ac_exeext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13355   (eval $ac_link) 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360   (eval $ac_try) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; }; then
13364   :
13365 else
13366   echo "$as_me: program exited with status $ac_status" >&5
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 ( exit $ac_status )
13371 ol_cv_header_stdc=no
13372 fi
13373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13374 fi
13375 fi
13376 fi
13377 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13378 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13379 if test $ol_cv_header_stdc = yes; then
13380   cat >>confdefs.h <<\_ACEOF
13381 #define STDC_HEADERS 1
13382 _ACEOF
13383
13384 fi
13385 ac_cv_header_stdc=disable
13386
13387
13388 if test $ol_cv_header_stdc != yes; then
13389         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13390 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13391 fi
13392
13393
13394
13395
13396
13397
13398 ac_header_dirent=no
13399 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13400   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13401 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13402 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406   cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 #include <sys/types.h>
13413 #include <$ac_hdr>
13414
13415 int
13416 main ()
13417 {
13418 if ((DIR *) 0)
13419 return 0;
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 rm -f conftest.$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426   (eval $ac_compile) 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } &&
13433          { ac_try='test -z "$ac_c_werror_flag"
13434                          || test ! -s conftest.err'
13435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436   (eval $ac_try) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; } &&
13440          { ac_try='test -s conftest.$ac_objext'
13441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442   (eval $ac_try) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   eval "$as_ac_Header=yes"
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 eval "$as_ac_Header=no"
13452 fi
13453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13454 fi
13455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13458   cat >>confdefs.h <<_ACEOF
13459 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13460 _ACEOF
13461
13462 ac_header_dirent=$ac_hdr; break
13463 fi
13464
13465 done
13466 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13467 if test $ac_header_dirent = dirent.h; then
13468   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13469 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13470 if test "${ac_cv_search_opendir+set}" = set; then
13471   echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473   ac_func_search_save_LIBS=$LIBS
13474 ac_cv_search_opendir=no
13475 cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h.  */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h.  */
13481
13482 /* Override any gcc2 internal prototype to avoid an error.  */
13483 #ifdef __cplusplus
13484 extern "C"
13485 #endif
13486 /* We use char because int might match the return type of a gcc2
13487    builtin and then its argument prototype would still apply.  */
13488 char opendir ();
13489 int
13490 main ()
13491 {
13492 opendir ();
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13499   (eval $ac_link) 2>conftest.er1
13500   ac_status=$?
13501   grep -v '^ *+' conftest.er1 >conftest.err
13502   rm -f conftest.er1
13503   cat conftest.err >&5
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } &&
13506          { ac_try='test -z "$ac_c_werror_flag"
13507                          || test ! -s conftest.err'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; } &&
13513          { ac_try='test -s conftest$ac_exeext'
13514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515   (eval $ac_try) 2>&5
13516   ac_status=$?
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); }; }; then
13519   ac_cv_search_opendir="none required"
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 fi
13525 rm -f conftest.err conftest.$ac_objext \
13526       conftest$ac_exeext conftest.$ac_ext
13527 if test "$ac_cv_search_opendir" = no; then
13528   for ac_lib in dir; do
13529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13530     cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h.  */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h.  */
13536
13537 /* Override any gcc2 internal prototype to avoid an error.  */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 /* We use char because int might match the return type of a gcc2
13542    builtin and then its argument prototype would still apply.  */
13543 char opendir ();
13544 int
13545 main ()
13546 {
13547 opendir ();
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554   (eval $ac_link) 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -z "$ac_c_werror_flag"
13562                          || test ! -s conftest.err'
13563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564   (eval $ac_try) 2>&5
13565   ac_status=$?
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); }; } &&
13568          { ac_try='test -s conftest$ac_exeext'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }; then
13574   ac_cv_search_opendir="-l$ac_lib"
13575 break
13576 else
13577   echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580 fi
13581 rm -f conftest.err conftest.$ac_objext \
13582       conftest$ac_exeext conftest.$ac_ext
13583   done
13584 fi
13585 LIBS=$ac_func_search_save_LIBS
13586 fi
13587 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13588 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13589 if test "$ac_cv_search_opendir" != no; then
13590   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13591
13592 fi
13593
13594 else
13595   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13596 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13597 if test "${ac_cv_search_opendir+set}" = set; then
13598   echo $ECHO_N "(cached) $ECHO_C" >&6
13599 else
13600   ac_func_search_save_LIBS=$LIBS
13601 ac_cv_search_opendir=no
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h.  */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h.  */
13608
13609 /* Override any gcc2 internal prototype to avoid an error.  */
13610 #ifdef __cplusplus
13611 extern "C"
13612 #endif
13613 /* We use char because int might match the return type of a gcc2
13614    builtin and then its argument prototype would still apply.  */
13615 char opendir ();
13616 int
13617 main ()
13618 {
13619 opendir ();
13620   ;
13621   return 0;
13622 }
13623 _ACEOF
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13626   (eval $ac_link) 2>conftest.er1
13627   ac_status=$?
13628   grep -v '^ *+' conftest.er1 >conftest.err
13629   rm -f conftest.er1
13630   cat conftest.err >&5
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); } &&
13633          { ac_try='test -z "$ac_c_werror_flag"
13634                          || test ! -s conftest.err'
13635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636   (eval $ac_try) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); }; } &&
13640          { ac_try='test -s conftest$ac_exeext'
13641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642   (eval $ac_try) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }; }; then
13646   ac_cv_search_opendir="none required"
13647 else
13648   echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651 fi
13652 rm -f conftest.err conftest.$ac_objext \
13653       conftest$ac_exeext conftest.$ac_ext
13654 if test "$ac_cv_search_opendir" = no; then
13655   for ac_lib in x; do
13656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13657     cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663
13664 /* Override any gcc2 internal prototype to avoid an error.  */
13665 #ifdef __cplusplus
13666 extern "C"
13667 #endif
13668 /* We use char because int might match the return type of a gcc2
13669    builtin and then its argument prototype would still apply.  */
13670 char opendir ();
13671 int
13672 main ()
13673 {
13674 opendir ();
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681   (eval $ac_link) 2>conftest.er1
13682   ac_status=$?
13683   grep -v '^ *+' conftest.er1 >conftest.err
13684   rm -f conftest.er1
13685   cat conftest.err >&5
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } &&
13688          { ac_try='test -z "$ac_c_werror_flag"
13689                          || test ! -s conftest.err'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; } &&
13695          { ac_try='test -s conftest$ac_exeext'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   ac_cv_search_opendir="-l$ac_lib"
13702 break
13703 else
13704   echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13706
13707 fi
13708 rm -f conftest.err conftest.$ac_objext \
13709       conftest$ac_exeext conftest.$ac_ext
13710   done
13711 fi
13712 LIBS=$ac_func_search_save_LIBS
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13715 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13716 if test "$ac_cv_search_opendir" != no; then
13717   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13718
13719 fi
13720
13721 fi
13722
13723 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13724 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13725 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13726   echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728   cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h.  */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h.  */
13734 #include <sys/types.h>
13735 #include <sys/wait.h>
13736 #ifndef WEXITSTATUS
13737 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13738 #endif
13739 #ifndef WIFEXITED
13740 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13741 #endif
13742
13743 int
13744 main ()
13745 {
13746   int s;
13747   wait (&s);
13748   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755   (eval $ac_compile) 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } &&
13762          { ac_try='test -z "$ac_c_werror_flag"
13763                          || test ! -s conftest.err'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; } &&
13769          { ac_try='test -s conftest.$ac_objext'
13770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771   (eval $ac_try) 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   ac_cv_header_sys_wait_h=yes
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 ac_cv_header_sys_wait_h=no
13781 fi
13782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13783 fi
13784 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13785 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13786 if test $ac_cv_header_sys_wait_h = yes; then
13787
13788 cat >>confdefs.h <<\_ACEOF
13789 #define HAVE_SYS_WAIT_H 1
13790 _ACEOF
13791
13792 fi
13793
13794 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13795 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13796 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13797   echo $ECHO_N "(cached) $ECHO_C" >&6
13798 else
13799   cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805 #include <sys/types.h>
13806 #include <termios.h>
13807 #ifdef TIOCGWINSZ
13808   yes
13809 #endif
13810
13811 _ACEOF
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813   $EGREP "yes" >/dev/null 2>&1; then
13814   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13815 else
13816   ac_cv_sys_tiocgwinsz_in_termios_h=no
13817 fi
13818 rm -f conftest*
13819
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13822 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13823
13824 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13825   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13826 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13827 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h.  */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h.  */
13836 #include <sys/types.h>
13837 #include <sys/ioctl.h>
13838 #ifdef TIOCGWINSZ
13839   yes
13840 #endif
13841
13842 _ACEOF
13843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13844   $EGREP "yes" >/dev/null 2>&1; then
13845   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13846 else
13847   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13848 fi
13849 rm -f conftest*
13850
13851 fi
13852 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13853 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13854
13855   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13856
13857 cat >>confdefs.h <<\_ACEOF
13858 #define GWINSZ_IN_SYS_IOCTL 1
13859 _ACEOF
13860
13861   fi
13862 fi
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912 for ac_header in \
13913         arpa/inet.h             \
13914         arpa/nameser.h          \
13915         assert.h                \
13916         bits/types.h            \
13917         conio.h                 \
13918         crypt.h                 \
13919         direct.h                \
13920         errno.h                 \
13921         fcntl.h                 \
13922         filio.h                 \
13923         getopt.h                \
13924         grp.h                   \
13925         io.h                    \
13926         libutil.h               \
13927         limits.h                \
13928         locale.h                \
13929         netinet/tcp.h           \
13930         malloc.h                \
13931         memory.h                \
13932         psap.h                  \
13933         pwd.h                   \
13934         process.h               \
13935         sgtty.h                 \
13936         shadow.h                \
13937         stddef.h                \
13938         string.h                \
13939         strings.h               \
13940         sysexits.h              \
13941         sys/file.h              \
13942         sys/filio.h             \
13943         sys/errno.h             \
13944         sys/ioctl.h             \
13945         sys/param.h             \
13946         sys/resource.h          \
13947         sys/select.h            \
13948         sys/socket.h            \
13949         sys/stat.h              \
13950         sys/syslog.h            \
13951         sys/time.h              \
13952         sys/types.h             \
13953         sys/uio.h               \
13954         syslog.h                \
13955         termios.h               \
13956         unistd.h                \
13957         utime.h                 \
13958         winsock.h               \
13959         winsock2.h              \
13960
13961 do
13962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13964   echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 fi
13969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13971 else
13972   # Is the header compilable?
13973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13976 /* confdefs.h.  */
13977 _ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h.  */
13981 $ac_includes_default
13982 #include <$ac_header>
13983 _ACEOF
13984 rm -f conftest.$ac_objext
13985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13986   (eval $ac_compile) 2>conftest.er1
13987   ac_status=$?
13988   grep -v '^ *+' conftest.er1 >conftest.err
13989   rm -f conftest.er1
13990   cat conftest.err >&5
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); } &&
13993          { ac_try='test -z "$ac_c_werror_flag"
13994                          || test ! -s conftest.err'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; } &&
14000          { ac_try='test -s conftest.$ac_objext'
14001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002   (eval $ac_try) 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); }; }; then
14006   ac_header_compiler=yes
14007 else
14008   echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011 ac_header_compiler=no
14012 fi
14013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14015 echo "${ECHO_T}$ac_header_compiler" >&6
14016
14017 # Is the header present?
14018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h.  */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h.  */
14026 #include <$ac_header>
14027 _ACEOF
14028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14030   ac_status=$?
14031   grep -v '^ *+' conftest.er1 >conftest.err
14032   rm -f conftest.er1
14033   cat conftest.err >&5
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } >/dev/null; then
14036   if test -s conftest.err; then
14037     ac_cpp_err=$ac_c_preproc_warn_flag
14038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14039   else
14040     ac_cpp_err=
14041   fi
14042 else
14043   ac_cpp_err=yes
14044 fi
14045 if test -z "$ac_cpp_err"; then
14046   ac_header_preproc=yes
14047 else
14048   echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14050
14051   ac_header_preproc=no
14052 fi
14053 rm -f conftest.err conftest.$ac_ext
14054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14055 echo "${ECHO_T}$ac_header_preproc" >&6
14056
14057 # So?  What about this header?
14058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14059   yes:no: )
14060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14064     ac_header_preproc=yes
14065     ;;
14066   no:yes:* )
14067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14079     (
14080       cat <<\_ASBOX
14081 ## ------------------------------------------ ##
14082 ## Report this to the AC_PACKAGE_NAME lists.  ##
14083 ## ------------------------------------------ ##
14084 _ASBOX
14085     ) |
14086       sed "s/^/$as_me: WARNING:     /" >&2
14087     ;;
14088 esac
14089 echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092   echo $ECHO_N "(cached) $ECHO_C" >&6
14093 else
14094   eval "$as_ac_Header=\$ac_header_preproc"
14095 fi
14096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14098
14099 fi
14100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14101   cat >>confdefs.h <<_ACEOF
14102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14103 _ACEOF
14104
14105 fi
14106
14107 done
14108
14109
14110
14111 for ac_header in resolv.h
14112 do
14113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14114 echo "$as_me:$LINENO: checking for $ac_header" >&5
14115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14117   echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119   cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 $ac_includes_default
14126 #include <netinet/in.h>
14127
14128
14129 #include <$ac_header>
14130 _ACEOF
14131 rm -f conftest.$ac_objext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133   (eval $ac_compile) 2>conftest.er1
14134   ac_status=$?
14135   grep -v '^ *+' conftest.er1 >conftest.err
14136   rm -f conftest.er1
14137   cat conftest.err >&5
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); } &&
14140          { ac_try='test -z "$ac_c_werror_flag"
14141                          || test ! -s conftest.err'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; } &&
14147          { ac_try='test -s conftest.$ac_objext'
14148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149   (eval $ac_try) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); }; }; then
14153   eval "$as_ac_Header=yes"
14154 else
14155   echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158 eval "$as_ac_Header=no"
14159 fi
14160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14161 fi
14162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14165   cat >>confdefs.h <<_ACEOF
14166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14167 _ACEOF
14168
14169 fi
14170
14171 done
14172
14173
14174
14175 for ac_header in sys/ucred.h
14176 do
14177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14178 echo "$as_me:$LINENO: checking for $ac_header" >&5
14179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h.  */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h.  */
14189 $ac_includes_default
14190 #ifdef HAVE_SYS_PARAM_H
14191 #include <sys/param.h>
14192 #endif
14193
14194
14195 #include <$ac_header>
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14199   (eval $ac_compile) 2>conftest.er1
14200   ac_status=$?
14201   grep -v '^ *+' conftest.er1 >conftest.err
14202   rm -f conftest.er1
14203   cat conftest.err >&5
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } &&
14206          { ac_try='test -z "$ac_c_werror_flag"
14207                          || test ! -s conftest.err'
14208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209   (eval $ac_try) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; } &&
14213          { ac_try='test -s conftest.$ac_objext'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; }; then
14219   eval "$as_ac_Header=yes"
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224 eval "$as_ac_Header=no"
14225 fi
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 fi
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14231   cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14233 _ACEOF
14234
14235 fi
14236
14237 done
14238
14239
14240
14241
14242
14243 for ac_func in sigaction sigset
14244 do
14245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14246 echo "$as_me:$LINENO: checking for $ac_func" >&5
14247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14248 if eval "test \"\${$as_ac_var+set}\" = set"; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251   cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14259 #define $ac_func innocuous_$ac_func
14260
14261 /* System header to define __stub macros and hopefully few prototypes,
14262     which can conflict with char $ac_func (); below.
14263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14264     <limits.h> exists even on freestanding compilers.  */
14265
14266 #ifdef __STDC__
14267 # include <limits.h>
14268 #else
14269 # include <assert.h>
14270 #endif
14271
14272 #undef $ac_func
14273
14274 /* Override any gcc2 internal prototype to avoid an error.  */
14275 #ifdef __cplusplus
14276 extern "C"
14277 {
14278 #endif
14279 /* We use char because int might match the return type of a gcc2
14280    builtin and then its argument prototype would still apply.  */
14281 char $ac_func ();
14282 /* The GNU C library defines this for functions which it implements
14283     to always fail with ENOSYS.  Some functions are actually named
14284     something starting with __ and the normal name is an alias.  */
14285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14286 choke me
14287 #else
14288 char (*f) () = $ac_func;
14289 #endif
14290 #ifdef __cplusplus
14291 }
14292 #endif
14293
14294 int
14295 main ()
14296 {
14297 return f != $ac_func;
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304   (eval $ac_link) 2>conftest.er1
14305   ac_status=$?
14306   grep -v '^ *+' conftest.er1 >conftest.err
14307   rm -f conftest.er1
14308   cat conftest.err >&5
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); } &&
14311          { ac_try='test -z "$ac_c_werror_flag"
14312                          || test ! -s conftest.err'
14313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314   (eval $ac_try) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); }; } &&
14318          { ac_try='test -s conftest$ac_exeext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   eval "$as_ac_var=yes"
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 eval "$as_ac_var=no"
14330 fi
14331 rm -f conftest.err conftest.$ac_objext \
14332       conftest$ac_exeext conftest.$ac_ext
14333 fi
14334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14336 if test `eval echo '${'$as_ac_var'}'` = yes; then
14337   cat >>confdefs.h <<_ACEOF
14338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14339 _ACEOF
14340
14341 fi
14342 done
14343
14344
14345 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14346
14347 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14348 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14349 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-lV3  $LIBS"
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360
14361 /* Override any gcc2 internal prototype to avoid an error.  */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 /* We use char because int might match the return type of a gcc2
14366    builtin and then its argument prototype would still apply.  */
14367 char sigset ();
14368 int
14369 main ()
14370 {
14371 sigset ();
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378   (eval $ac_link) 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -z "$ac_c_werror_flag"
14386                          || test ! -s conftest.err'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest$ac_exeext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_cv_lib_V3_sigset=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_cv_lib_V3_sigset=no
14404 fi
14405 rm -f conftest.err conftest.$ac_objext \
14406       conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS
14408 fi
14409 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14410 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14411 if test $ac_cv_lib_V3_sigset = yes; then
14412   cat >>confdefs.h <<_ACEOF
14413 #define HAVE_LIBV3 1
14414 _ACEOF
14415
14416   LIBS="-lV3 $LIBS"
14417
14418 fi
14419
14420 fi
14421
14422 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14423 echo "$as_me:$LINENO: checking for winsock" >&5
14424 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14425 if test "${ol_cv_winsock+set}" = set; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428   save_LIBS="$LIBS"
14429 for curlib in ws2_32 wsock32; do
14430         LIBS="$LIBS -l$curlib"
14431         cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h.  */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h.  */
14437 #include <winsock.h>
14438
14439 int
14440 main ()
14441 {
14442
14443                         socket(0,0,0);
14444                         select(0,NULL,NULL,NULL,NULL);
14445                         closesocket(0);
14446                         gethostname(NULL,0);
14447
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext conftest$ac_exeext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14454   (eval $ac_link) 2>conftest.er1
14455   ac_status=$?
14456   grep -v '^ *+' conftest.er1 >conftest.err
14457   rm -f conftest.er1
14458   cat conftest.err >&5
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } &&
14461          { ac_try='test -z "$ac_c_werror_flag"
14462                          || test ! -s conftest.err'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; } &&
14468          { ac_try='test -s conftest$ac_exeext'
14469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470   (eval $ac_try) 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); }; }; then
14474   ol_cv_winsock=yes
14475 else
14476   echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 ol_cv_winsock=no
14480 fi
14481 rm -f conftest.err conftest.$ac_objext \
14482       conftest$ac_exeext conftest.$ac_ext
14483
14484         if test $ol_cv_winsock = yes; then
14485
14486 cat >>confdefs.h <<\_ACEOF
14487 #define HAVE_WINSOCK 1
14488 _ACEOF
14489
14490                 ac_cv_func_socket=yes
14491                 ac_cv_func_select=yes
14492                 ac_cv_func_closesocket=yes
14493                 ac_cv_func_gethostname=yes
14494                 if test $curlib = ws2_32; then
14495                         ol_cv_winsock=winsock2
14496
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_WINSOCK2 1
14499 _ACEOF
14500
14501                 fi
14502                 break
14503         fi
14504         LIBS="$save_LIBS"
14505 done
14506 fi
14507 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14508 echo "${ECHO_T}$ol_cv_winsock" >&6
14509 fi
14510
14511
14512 echo "$as_me:$LINENO: checking for socket" >&5
14513 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14514 if test "${ac_cv_func_socket+set}" = set; then
14515   echo $ECHO_N "(cached) $ECHO_C" >&6
14516 else
14517   cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14525 #define socket innocuous_socket
14526
14527 /* System header to define __stub macros and hopefully few prototypes,
14528     which can conflict with char socket (); below.
14529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14530     <limits.h> exists even on freestanding compilers.  */
14531
14532 #ifdef __STDC__
14533 # include <limits.h>
14534 #else
14535 # include <assert.h>
14536 #endif
14537
14538 #undef socket
14539
14540 /* Override any gcc2 internal prototype to avoid an error.  */
14541 #ifdef __cplusplus
14542 extern "C"
14543 {
14544 #endif
14545 /* We use char because int might match the return type of a gcc2
14546    builtin and then its argument prototype would still apply.  */
14547 char socket ();
14548 /* The GNU C library defines this for functions which it implements
14549     to always fail with ENOSYS.  Some functions are actually named
14550     something starting with __ and the normal name is an alias.  */
14551 #if defined (__stub_socket) || defined (__stub___socket)
14552 choke me
14553 #else
14554 char (*f) () = socket;
14555 #endif
14556 #ifdef __cplusplus
14557 }
14558 #endif
14559
14560 int
14561 main ()
14562 {
14563 return f != socket;
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570   (eval $ac_link) 2>conftest.er1
14571   ac_status=$?
14572   grep -v '^ *+' conftest.er1 >conftest.err
14573   rm -f conftest.er1
14574   cat conftest.err >&5
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } &&
14577          { ac_try='test -z "$ac_c_werror_flag"
14578                          || test ! -s conftest.err'
14579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580   (eval $ac_try) 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; } &&
14584          { ac_try='test -s conftest$ac_exeext'
14585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586   (eval $ac_try) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }; then
14590   ac_cv_func_socket=yes
14591 else
14592   echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595 ac_cv_func_socket=no
14596 fi
14597 rm -f conftest.err conftest.$ac_objext \
14598       conftest$ac_exeext conftest.$ac_ext
14599 fi
14600 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14601 echo "${ECHO_T}$ac_cv_func_socket" >&6
14602 if test $ac_cv_func_socket = yes; then
14603   :
14604 else
14605
14606
14607 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14608 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14609 if test "${ac_cv_lib_socket_main+set}" = set; then
14610   echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612   ac_check_lib_save_LIBS=$LIBS
14613 LIBS="-lsocket  $LIBS"
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620
14621
14622 int
14623 main ()
14624 {
14625 main ();
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632   (eval $ac_link) 2>conftest.er1
14633   ac_status=$?
14634   grep -v '^ *+' conftest.er1 >conftest.err
14635   rm -f conftest.er1
14636   cat conftest.err >&5
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } &&
14639          { ac_try='test -z "$ac_c_werror_flag"
14640                          || test ! -s conftest.err'
14641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642   (eval $ac_try) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; } &&
14646          { ac_try='test -s conftest$ac_exeext'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652   ac_cv_lib_socket_main=yes
14653 else
14654   echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 ac_cv_lib_socket_main=no
14658 fi
14659 rm -f conftest.err conftest.$ac_objext \
14660       conftest$ac_exeext conftest.$ac_ext
14661 LIBS=$ac_check_lib_save_LIBS
14662 fi
14663 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14664 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14665 if test $ac_cv_lib_socket_main = yes; then
14666   cat >>confdefs.h <<_ACEOF
14667 #define HAVE_LIBSOCKET 1
14668 _ACEOF
14669
14670   LIBS="-lsocket $LIBS"
14671
14672 fi
14673
14674
14675 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14676 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14677 if test "${ac_cv_lib_net_main+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   ac_check_lib_save_LIBS=$LIBS
14681 LIBS="-lnet  $LIBS"
14682 cat >conftest.$ac_ext <<_ACEOF
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688
14689
14690 int
14691 main ()
14692 {
14693 main ();
14694   ;
14695   return 0;
14696 }
14697 _ACEOF
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700   (eval $ac_link) 2>conftest.er1
14701   ac_status=$?
14702   grep -v '^ *+' conftest.er1 >conftest.err
14703   rm -f conftest.er1
14704   cat conftest.err >&5
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); } &&
14707          { ac_try='test -z "$ac_c_werror_flag"
14708                          || test ! -s conftest.err'
14709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710   (eval $ac_try) 2>&5
14711   ac_status=$?
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; } &&
14714          { ac_try='test -s conftest$ac_exeext'
14715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716   (eval $ac_try) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); }; }; then
14720   ac_cv_lib_net_main=yes
14721 else
14722   echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14724
14725 ac_cv_lib_net_main=no
14726 fi
14727 rm -f conftest.err conftest.$ac_objext \
14728       conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_lib_save_LIBS
14730 fi
14731 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14732 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14733 if test $ac_cv_lib_net_main = yes; then
14734   cat >>confdefs.h <<_ACEOF
14735 #define HAVE_LIBNET 1
14736 _ACEOF
14737
14738   LIBS="-lnet $LIBS"
14739
14740 fi
14741
14742
14743 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14744 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14745 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14746   echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748   ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lnsl_s  $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h.  */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h.  */
14756
14757
14758 int
14759 main ()
14760 {
14761 main ();
14762   ;
14763   return 0;
14764 }
14765 _ACEOF
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14768   (eval $ac_link) 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -z "$ac_c_werror_flag"
14776                          || test ! -s conftest.err'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; } &&
14782          { ac_try='test -s conftest$ac_exeext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_cv_lib_nsl_s_main=yes
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_cv_lib_nsl_s_main=no
14794 fi
14795 rm -f conftest.err conftest.$ac_objext \
14796       conftest$ac_exeext conftest.$ac_ext
14797 LIBS=$ac_check_lib_save_LIBS
14798 fi
14799 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14800 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14801 if test $ac_cv_lib_nsl_s_main = yes; then
14802   cat >>confdefs.h <<_ACEOF
14803 #define HAVE_LIBNSL_S 1
14804 _ACEOF
14805
14806   LIBS="-lnsl_s $LIBS"
14807
14808 fi
14809
14810
14811 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14812 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14813 if test "${ac_cv_lib_nsl_main+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   ac_check_lib_save_LIBS=$LIBS
14817 LIBS="-lnsl  $LIBS"
14818 cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824
14825
14826 int
14827 main ()
14828 {
14829 main ();
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext conftest$ac_exeext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14836   (eval $ac_link) 2>conftest.er1
14837   ac_status=$?
14838   grep -v '^ *+' conftest.er1 >conftest.err
14839   rm -f conftest.er1
14840   cat conftest.err >&5
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } &&
14843          { ac_try='test -z "$ac_c_werror_flag"
14844                          || test ! -s conftest.err'
14845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846   (eval $ac_try) 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; } &&
14850          { ac_try='test -s conftest$ac_exeext'
14851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852   (eval $ac_try) 2>&5
14853   ac_status=$?
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); }; }; then
14856   ac_cv_lib_nsl_main=yes
14857 else
14858   echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 ac_cv_lib_nsl_main=no
14862 fi
14863 rm -f conftest.err conftest.$ac_objext \
14864       conftest$ac_exeext conftest.$ac_ext
14865 LIBS=$ac_check_lib_save_LIBS
14866 fi
14867 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14868 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14869 if test $ac_cv_lib_nsl_main = yes; then
14870   cat >>confdefs.h <<_ACEOF
14871 #define HAVE_LIBNSL 1
14872 _ACEOF
14873
14874   LIBS="-lnsl $LIBS"
14875
14876 fi
14877
14878
14879 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14880 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14881 if test "${ac_cv_lib_inet_socket+set}" = set; then
14882   echo $ECHO_N "(cached) $ECHO_C" >&6
14883 else
14884   ac_check_lib_save_LIBS=$LIBS
14885 LIBS="-linet  $LIBS"
14886 cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h.  */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h.  */
14892
14893 /* Override any gcc2 internal prototype to avoid an error.  */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 /* We use char because int might match the return type of a gcc2
14898    builtin and then its argument prototype would still apply.  */
14899 char socket ();
14900 int
14901 main ()
14902 {
14903 socket ();
14904   ;
14905   return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910   (eval $ac_link) 2>conftest.er1
14911   ac_status=$?
14912   grep -v '^ *+' conftest.er1 >conftest.err
14913   rm -f conftest.er1
14914   cat conftest.err >&5
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } &&
14917          { ac_try='test -z "$ac_c_werror_flag"
14918                          || test ! -s conftest.err'
14919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920   (eval $ac_try) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); }; } &&
14924          { ac_try='test -s conftest$ac_exeext'
14925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926   (eval $ac_try) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; }; then
14930   ac_cv_lib_inet_socket=yes
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14934
14935 ac_cv_lib_inet_socket=no
14936 fi
14937 rm -f conftest.err conftest.$ac_objext \
14938       conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14940 fi
14941 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14942 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14943 if test $ac_cv_lib_inet_socket = yes; then
14944   cat >>confdefs.h <<_ACEOF
14945 #define HAVE_LIBINET 1
14946 _ACEOF
14947
14948   LIBS="-linet $LIBS"
14949
14950 fi
14951
14952
14953 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14954 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14955 if test "${ac_cv_lib_gen_main+set}" = set; then
14956   echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958   ac_check_lib_save_LIBS=$LIBS
14959 LIBS="-lgen  $LIBS"
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h.  */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h.  */
14966
14967
14968 int
14969 main ()
14970 {
14971 main ();
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14978   (eval $ac_link) 2>conftest.er1
14979   ac_status=$?
14980   grep -v '^ *+' conftest.er1 >conftest.err
14981   rm -f conftest.er1
14982   cat conftest.err >&5
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); } &&
14985          { ac_try='test -z "$ac_c_werror_flag"
14986                          || test ! -s conftest.err'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; } &&
14992          { ac_try='test -s conftest$ac_exeext'
14993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994   (eval $ac_try) 2>&5
14995   ac_status=$?
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); }; }; then
14998   ac_cv_lib_gen_main=yes
14999 else
15000   echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_cv_lib_gen_main=no
15004 fi
15005 rm -f conftest.err conftest.$ac_objext \
15006       conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS
15008 fi
15009 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15010 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15011 if test $ac_cv_lib_gen_main = yes; then
15012   cat >>confdefs.h <<_ACEOF
15013 #define HAVE_LIBGEN 1
15014 _ACEOF
15015
15016   LIBS="-lgen $LIBS"
15017
15018 fi
15019
15020
15021 fi
15022
15023
15024 echo "$as_me:$LINENO: checking for select" >&5
15025 echo $ECHO_N "checking for select... $ECHO_C" >&6
15026 if test "${ac_cv_func_select+set}" = set; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029   cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035 /* Define select to an innocuous variant, in case <limits.h> declares select.
15036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15037 #define select innocuous_select
15038
15039 /* System header to define __stub macros and hopefully few prototypes,
15040     which can conflict with char select (); below.
15041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15042     <limits.h> exists even on freestanding compilers.  */
15043
15044 #ifdef __STDC__
15045 # include <limits.h>
15046 #else
15047 # include <assert.h>
15048 #endif
15049
15050 #undef select
15051
15052 /* Override any gcc2 internal prototype to avoid an error.  */
15053 #ifdef __cplusplus
15054 extern "C"
15055 {
15056 #endif
15057 /* We use char because int might match the return type of a gcc2
15058    builtin and then its argument prototype would still apply.  */
15059 char select ();
15060 /* The GNU C library defines this for functions which it implements
15061     to always fail with ENOSYS.  Some functions are actually named
15062     something starting with __ and the normal name is an alias.  */
15063 #if defined (__stub_select) || defined (__stub___select)
15064 choke me
15065 #else
15066 char (*f) () = select;
15067 #endif
15068 #ifdef __cplusplus
15069 }
15070 #endif
15071
15072 int
15073 main ()
15074 {
15075 return f != select;
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082   (eval $ac_link) 2>conftest.er1
15083   ac_status=$?
15084   grep -v '^ *+' conftest.er1 >conftest.err
15085   rm -f conftest.er1
15086   cat conftest.err >&5
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } &&
15089          { ac_try='test -z "$ac_c_werror_flag"
15090                          || test ! -s conftest.err'
15091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092   (eval $ac_try) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; } &&
15096          { ac_try='test -s conftest$ac_exeext'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102   ac_cv_func_select=yes
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_cv_func_select=no
15108 fi
15109 rm -f conftest.err conftest.$ac_objext \
15110       conftest$ac_exeext conftest.$ac_ext
15111 fi
15112 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15113 echo "${ECHO_T}$ac_cv_func_select" >&6
15114 if test $ac_cv_func_select = yes; then
15115   :
15116 else
15117   { { echo "$as_me:$LINENO: error: select() required." >&5
15118 echo "$as_me: error: select() required." >&2;}
15119    { (exit 1); exit 1; }; }
15120 fi
15121
15122
15123 if test "${ac_cv_header_winsock_h}" != yes; then
15124
15125
15126 for ac_header in sys/select.h sys/socket.h
15127 do
15128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15130   echo "$as_me:$LINENO: checking for $ac_header" >&5
15131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 fi
15135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15137 else
15138   # Is the header compilable?
15139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147 $ac_includes_default
15148 #include <$ac_header>
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152   (eval $ac_compile) 2>conftest.er1
15153   ac_status=$?
15154   grep -v '^ *+' conftest.er1 >conftest.err
15155   rm -f conftest.er1
15156   cat conftest.err >&5
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -z "$ac_c_werror_flag"
15160                          || test ! -s conftest.err'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; } &&
15166          { ac_try='test -s conftest.$ac_objext'
15167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168   (eval $ac_try) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_header_compiler=yes
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177 ac_header_compiler=no
15178 fi
15179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181 echo "${ECHO_T}$ac_header_compiler" >&6
15182
15183 # Is the header present?
15184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 #include <$ac_header>
15193 _ACEOF
15194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } >/dev/null; then
15202   if test -s conftest.err; then
15203     ac_cpp_err=$ac_c_preproc_warn_flag
15204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15205   else
15206     ac_cpp_err=
15207   fi
15208 else
15209   ac_cpp_err=yes
15210 fi
15211 if test -z "$ac_cpp_err"; then
15212   ac_header_preproc=yes
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217   ac_header_preproc=no
15218 fi
15219 rm -f conftest.err conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15221 echo "${ECHO_T}$ac_header_preproc" >&6
15222
15223 # So?  What about this header?
15224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225   yes:no: )
15226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15230     ac_header_preproc=yes
15231     ;;
15232   no:yes:* )
15233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15245     (
15246       cat <<\_ASBOX
15247 ## ------------------------------------------ ##
15248 ## Report this to the AC_PACKAGE_NAME lists.  ##
15249 ## ------------------------------------------ ##
15250 _ASBOX
15251     ) |
15252       sed "s/^/$as_me: WARNING:     /" >&2
15253     ;;
15254 esac
15255 echo "$as_me:$LINENO: checking for $ac_header" >&5
15256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   eval "$as_ac_Header=\$ac_header_preproc"
15261 fi
15262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15264
15265 fi
15266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15267   cat >>confdefs.h <<_ACEOF
15268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15269 _ACEOF
15270
15271 fi
15272
15273 done
15274
15275 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15276 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15277 if test "${ac_cv_func_select_args+set}" = set; then
15278   echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15281  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15282   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15283    cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 $ac_includes_default
15290 #if HAVE_SYS_SELECT_H
15291 # include <sys/select.h>
15292 #endif
15293 #if HAVE_SYS_SOCKET_H
15294 # include <sys/socket.h>
15295 #endif
15296
15297 int
15298 main ()
15299 {
15300 extern int select ($ac_arg1,
15301                                             $ac_arg234, $ac_arg234, $ac_arg234,
15302                                             $ac_arg5);
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 rm -f conftest.$ac_objext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15309   (eval $ac_compile) 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag"
15317                          || test ! -s conftest.err'
15318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319   (eval $ac_try) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); }; } &&
15323          { ac_try='test -s conftest.$ac_objext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 fi
15335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15336   done
15337  done
15338 done
15339 # Provide a safe default value.
15340 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15341
15342 fi
15343 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15344 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15345 ac_save_IFS=$IFS; IFS=','
15346 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15347 IFS=$ac_save_IFS
15348 shift
15349
15350 cat >>confdefs.h <<_ACEOF
15351 #define SELECT_TYPE_ARG1 $1
15352 _ACEOF
15353
15354
15355 cat >>confdefs.h <<_ACEOF
15356 #define SELECT_TYPE_ARG234 ($2)
15357 _ACEOF
15358
15359
15360 cat >>confdefs.h <<_ACEOF
15361 #define SELECT_TYPE_ARG5 ($3)
15362 _ACEOF
15363
15364 rm -f conftest*
15365
15366 fi
15367
15368
15369
15370 for ac_func in poll
15371 do
15372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15373 echo "$as_me:$LINENO: checking for $ac_func" >&5
15374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15375 if eval "test \"\${$as_ac_var+set}\" = set"; then
15376   echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378   cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h.  */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h.  */
15384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15386 #define $ac_func innocuous_$ac_func
15387
15388 /* System header to define __stub macros and hopefully few prototypes,
15389     which can conflict with char $ac_func (); below.
15390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15391     <limits.h> exists even on freestanding compilers.  */
15392
15393 #ifdef __STDC__
15394 # include <limits.h>
15395 #else
15396 # include <assert.h>
15397 #endif
15398
15399 #undef $ac_func
15400
15401 /* Override any gcc2 internal prototype to avoid an error.  */
15402 #ifdef __cplusplus
15403 extern "C"
15404 {
15405 #endif
15406 /* We use char because int might match the return type of a gcc2
15407    builtin and then its argument prototype would still apply.  */
15408 char $ac_func ();
15409 /* The GNU C library defines this for functions which it implements
15410     to always fail with ENOSYS.  Some functions are actually named
15411     something starting with __ and the normal name is an alias.  */
15412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15413 choke me
15414 #else
15415 char (*f) () = $ac_func;
15416 #endif
15417 #ifdef __cplusplus
15418 }
15419 #endif
15420
15421 int
15422 main ()
15423 {
15424 return f != $ac_func;
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431   (eval $ac_link) 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -z "$ac_c_werror_flag"
15439                          || test ! -s conftest.err'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; } &&
15445          { ac_try='test -s conftest$ac_exeext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   eval "$as_ac_var=yes"
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 eval "$as_ac_var=no"
15457 fi
15458 rm -f conftest.err conftest.$ac_objext \
15459       conftest$ac_exeext conftest.$ac_ext
15460 fi
15461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15463 if test `eval echo '${'$as_ac_var'}'` = yes; then
15464   cat >>confdefs.h <<_ACEOF
15465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15466 _ACEOF
15467
15468 fi
15469 done
15470
15471
15472 for ac_header in poll.h
15473 do
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15476   echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15479   echo $ECHO_N "(cached) $ECHO_C" >&6
15480 fi
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15483 else
15484   # Is the header compilable?
15485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15487 cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h.  */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h.  */
15493 $ac_includes_default
15494 #include <$ac_header>
15495 _ACEOF
15496 rm -f conftest.$ac_objext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498   (eval $ac_compile) 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } &&
15505          { ac_try='test -z "$ac_c_werror_flag"
15506                          || test ! -s conftest.err'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; } &&
15512          { ac_try='test -s conftest.$ac_objext'
15513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514   (eval $ac_try) 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   ac_header_compiler=yes
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523 ac_header_compiler=no
15524 fi
15525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15527 echo "${ECHO_T}$ac_header_compiler" >&6
15528
15529 # Is the header present?
15530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h.  */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h.  */
15538 #include <$ac_header>
15539 _ACEOF
15540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15542   ac_status=$?
15543   grep -v '^ *+' conftest.er1 >conftest.err
15544   rm -f conftest.er1
15545   cat conftest.err >&5
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } >/dev/null; then
15548   if test -s conftest.err; then
15549     ac_cpp_err=$ac_c_preproc_warn_flag
15550     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15551   else
15552     ac_cpp_err=
15553   fi
15554 else
15555   ac_cpp_err=yes
15556 fi
15557 if test -z "$ac_cpp_err"; then
15558   ac_header_preproc=yes
15559 else
15560   echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563   ac_header_preproc=no
15564 fi
15565 rm -f conftest.err conftest.$ac_ext
15566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15567 echo "${ECHO_T}$ac_header_preproc" >&6
15568
15569 # So?  What about this header?
15570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15571   yes:no: )
15572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15576     ac_header_preproc=yes
15577     ;;
15578   no:yes:* )
15579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15591     (
15592       cat <<\_ASBOX
15593 ## ------------------------------------------ ##
15594 ## Report this to the AC_PACKAGE_NAME lists.  ##
15595 ## ------------------------------------------ ##
15596 _ASBOX
15597     ) |
15598       sed "s/^/$as_me: WARNING:     /" >&2
15599     ;;
15600 esac
15601 echo "$as_me:$LINENO: checking for $ac_header" >&5
15602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15604   echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606   eval "$as_ac_Header=\$ac_header_preproc"
15607 fi
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15610
15611 fi
15612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15613   cat >>confdefs.h <<_ACEOF
15614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15615 _ACEOF
15616
15617 fi
15618
15619 done
15620
15621
15622
15623 for ac_header in sys/epoll.h
15624 do
15625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15627   echo "$as_me:$LINENO: checking for $ac_header" >&5
15628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 fi
15632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15634 else
15635   # Is the header compilable?
15636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 $ac_includes_default
15645 #include <$ac_header>
15646 _ACEOF
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649   (eval $ac_compile) 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } &&
15656          { ac_try='test -z "$ac_c_werror_flag"
15657                          || test ! -s conftest.err'
15658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659   (eval $ac_try) 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; } &&
15663          { ac_try='test -s conftest.$ac_objext'
15664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665   (eval $ac_try) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; }; then
15669   ac_header_compiler=yes
15670 else
15671   echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 ac_header_compiler=no
15675 fi
15676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15678 echo "${ECHO_T}$ac_header_compiler" >&6
15679
15680 # Is the header present?
15681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 #include <$ac_header>
15690 _ACEOF
15691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15693   ac_status=$?
15694   grep -v '^ *+' conftest.er1 >conftest.err
15695   rm -f conftest.er1
15696   cat conftest.err >&5
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } >/dev/null; then
15699   if test -s conftest.err; then
15700     ac_cpp_err=$ac_c_preproc_warn_flag
15701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15702   else
15703     ac_cpp_err=
15704   fi
15705 else
15706   ac_cpp_err=yes
15707 fi
15708 if test -z "$ac_cpp_err"; then
15709   ac_header_preproc=yes
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714   ac_header_preproc=no
15715 fi
15716 rm -f conftest.err conftest.$ac_ext
15717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15718 echo "${ECHO_T}$ac_header_preproc" >&6
15719
15720 # So?  What about this header?
15721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15722   yes:no: )
15723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15727     ac_header_preproc=yes
15728     ;;
15729   no:yes:* )
15730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15742     (
15743       cat <<\_ASBOX
15744 ## ------------------------------------------ ##
15745 ## Report this to the AC_PACKAGE_NAME lists.  ##
15746 ## ------------------------------------------ ##
15747 _ASBOX
15748     ) |
15749       sed "s/^/$as_me: WARNING:     /" >&2
15750     ;;
15751 esac
15752 echo "$as_me:$LINENO: checking for $ac_header" >&5
15753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15755   echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757   eval "$as_ac_Header=\$ac_header_preproc"
15758 fi
15759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761
15762 fi
15763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15764   cat >>confdefs.h <<_ACEOF
15765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15766 _ACEOF
15767
15768 fi
15769
15770 done
15771
15772 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15773 echo "$as_me:$LINENO: checking for epoll system call" >&5
15774 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15775 if test "$cross_compiling" = yes; then
15776   echo "$as_me:$LINENO: result: no" >&5
15777 echo "${ECHO_T}no" >&6
15778 else
15779   cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785 int main(int argc, char *argv)
15786 {
15787         int epfd = epoll_create(256);
15788         exit (epfd == -1 ? 1 : 0);
15789 }
15790 _ACEOF
15791 rm -f conftest$ac_exeext
15792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15793   (eval $ac_link) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; }; then
15802   echo "$as_me:$LINENO: result: yes" >&5
15803 echo "${ECHO_T}yes" >&6
15804
15805 cat >>confdefs.h <<\_ACEOF
15806 #define HAVE_EPOLL 1
15807 _ACEOF
15808
15809 else
15810   echo "$as_me: program exited with status $ac_status" >&5
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ( exit $ac_status )
15815 echo "$as_me:$LINENO: result: no" >&5
15816 echo "${ECHO_T}no" >&6
15817 fi
15818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15819 fi
15820 fi
15821
15822 # strerror checks
15823 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15824 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15825 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828
15829         cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835
15836 #include <stdio.h>
15837 #include <sys/types.h>
15838 #include <errno.h>
15839 #ifdef WINNT
15840 #include <stdlib.h>
15841 #endif
15842 int
15843 main ()
15844 {
15845 char *c = (char *) *sys_errlist
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 rm -f conftest.$ac_objext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15852   (eval $ac_compile) 2>conftest.er1
15853   ac_status=$?
15854   grep -v '^ *+' conftest.er1 >conftest.err
15855   rm -f conftest.er1
15856   cat conftest.err >&5
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } &&
15859          { ac_try='test -z "$ac_c_werror_flag"
15860                          || test ! -s conftest.err'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; } &&
15866          { ac_try='test -s conftest.$ac_objext'
15867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868   (eval $ac_try) 2>&5
15869   ac_status=$?
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); }; }; then
15872   ol_cv_dcl_sys_errlist=yes
15873         ol_cv_have_sys_errlist=yes
15874 else
15875   echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878 ol_cv_dcl_sys_errlist=no
15879 fi
15880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15881 fi
15882 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15883 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15884 #
15885 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15886 if test $ol_cv_dcl_sys_errlist = no ; then
15887
15888 cat >>confdefs.h <<\_ACEOF
15889 #define DECL_SYS_ERRLIST 1
15890 _ACEOF
15891
15892
15893         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15894 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15895 if test "${ol_cv_have_sys_errlist+set}" = set; then
15896   echo $ECHO_N "(cached) $ECHO_C" >&6
15897 else
15898
15899                 cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905 #include <errno.h>
15906 int
15907 main ()
15908 {
15909 char *c = (char *) *sys_errlist
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916   (eval $ac_link) 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } &&
15923          { ac_try='test -z "$ac_c_werror_flag"
15924                          || test ! -s conftest.err'
15925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926   (eval $ac_try) 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; } &&
15930          { ac_try='test -s conftest$ac_exeext'
15931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932   (eval $ac_try) 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; }; then
15936   ol_cv_have_sys_errlist=yes
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 ol_cv_have_sys_errlist=no
15942 fi
15943 rm -f conftest.err conftest.$ac_objext \
15944       conftest$ac_exeext conftest.$ac_ext
15945 fi
15946 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15947 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15948 fi
15949 if test $ol_cv_have_sys_errlist = yes ; then
15950
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_SYS_ERRLIST 1
15953 _ACEOF
15954
15955 fi
15956
15957
15958 for ac_func in strerror strerror_r
15959 do
15960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15961 echo "$as_me:$LINENO: checking for $ac_func" >&5
15962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15963 if eval "test \"\${$as_ac_var+set}\" = set"; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966   cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h.  */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h.  */
15972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15974 #define $ac_func innocuous_$ac_func
15975
15976 /* System header to define __stub macros and hopefully few prototypes,
15977     which can conflict with char $ac_func (); below.
15978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15979     <limits.h> exists even on freestanding compilers.  */
15980
15981 #ifdef __STDC__
15982 # include <limits.h>
15983 #else
15984 # include <assert.h>
15985 #endif
15986
15987 #undef $ac_func
15988
15989 /* Override any gcc2 internal prototype to avoid an error.  */
15990 #ifdef __cplusplus
15991 extern "C"
15992 {
15993 #endif
15994 /* We use char because int might match the return type of a gcc2
15995    builtin and then its argument prototype would still apply.  */
15996 char $ac_func ();
15997 /* The GNU C library defines this for functions which it implements
15998     to always fail with ENOSYS.  Some functions are actually named
15999     something starting with __ and the normal name is an alias.  */
16000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16001 choke me
16002 #else
16003 char (*f) () = $ac_func;
16004 #endif
16005 #ifdef __cplusplus
16006 }
16007 #endif
16008
16009 int
16010 main ()
16011 {
16012 return f != $ac_func;
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 rm -f conftest.$ac_objext conftest$ac_exeext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16019   (eval $ac_link) 2>conftest.er1
16020   ac_status=$?
16021   grep -v '^ *+' conftest.er1 >conftest.err
16022   rm -f conftest.er1
16023   cat conftest.err >&5
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); } &&
16026          { ac_try='test -z "$ac_c_werror_flag"
16027                          || test ! -s conftest.err'
16028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029   (eval $ac_try) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; } &&
16033          { ac_try='test -s conftest$ac_exeext'
16034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035   (eval $ac_try) 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; }; then
16039   eval "$as_ac_var=yes"
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 eval "$as_ac_var=no"
16045 fi
16046 rm -f conftest.err conftest.$ac_objext \
16047       conftest$ac_exeext conftest.$ac_ext
16048 fi
16049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16051 if test `eval echo '${'$as_ac_var'}'` = yes; then
16052   cat >>confdefs.h <<_ACEOF
16053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16054 _ACEOF
16055
16056 fi
16057 done
16058
16059 ol_cv_func_strerror_r=no
16060 if test "${ac_cv_func_strerror_r}" = yes ; then
16061         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16062 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16063 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16064   echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066
16067         cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h.  */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h.  */
16073 #include <string.h>
16074 _ACEOF
16075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16076   $EGREP "strerror_r" >/dev/null 2>&1; then
16077   ol_decl_strerror_r=yes
16078 else
16079   ol_decl_strerror_r=no
16080 fi
16081 rm -f conftest*
16082
16083         if test $ol_decl_strerror_r = yes ; then
16084                 cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h.  */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h.  */
16090 #include <string.h>
16091 int
16092 main ()
16093 {
16094    /* from autoconf 2.59 */
16095                                 char buf[100];
16096                                 char x = *strerror_r (0, buf, sizeof buf);
16097                                 char *p = strerror_r (0, buf, sizeof buf);
16098
16099   ;
16100   return 0;
16101 }
16102 _ACEOF
16103 rm -f conftest.$ac_objext
16104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105   (eval $ac_compile) 2>conftest.er1
16106   ac_status=$?
16107   grep -v '^ *+' conftest.er1 >conftest.err
16108   rm -f conftest.er1
16109   cat conftest.err >&5
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); } &&
16112          { ac_try='test -z "$ac_c_werror_flag"
16113                          || test ! -s conftest.err'
16114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115   (eval $ac_try) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; } &&
16119          { ac_try='test -s conftest.$ac_objext'
16120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121   (eval $ac_try) 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); }; }; then
16125   ol_cv_nonposix_strerror_r=yes
16126 else
16127   echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16129
16130 ol_cv_nonposix_strerror_r=no
16131 fi
16132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16133         else
16134                 if test "$cross_compiling" = yes; then
16135   ol_cv_nonposix_strerror=no
16136 else
16137   cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h.  */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h.  */
16143
16144                         main() {
16145                                 char buf[100];
16146                                 buf[0] = 0;
16147                                 strerror_r( 1, buf, sizeof buf );
16148                                 exit( buf[0] == 0 );
16149                         }
16150
16151 _ACEOF
16152 rm -f conftest$ac_exeext
16153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16154   (eval $ac_link) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159   (eval $ac_try) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }; }; then
16163   ol_cv_nonposix_strerror_r=yes
16164 else
16165   echo "$as_me: program exited with status $ac_status" >&5
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 ( exit $ac_status )
16170 ol_cv_nonposix_strerror=no
16171 fi
16172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16173 fi
16174         fi
16175
16176 fi
16177 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16178 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16179 if test $ol_cv_nonposix_strerror_r = yes ; then
16180
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_NONPOSIX_STRERROR_R 1
16183 _ACEOF
16184
16185 fi
16186
16187 elif test "${ac_cv_func_strerror}" = no ; then
16188         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16189 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16190 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193
16194         cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h.  */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h.  */
16200
16201 #include <stdio.h>
16202 #include <sys/types.h>
16203 #include <errno.h>
16204 #ifdef WINNT
16205 #include <stdlib.h>
16206 #endif
16207 int
16208 main ()
16209 {
16210 char *c = (char *) *sys_errlist
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 rm -f conftest.$ac_objext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16217   (eval $ac_compile) 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } &&
16224          { ac_try='test -z "$ac_c_werror_flag"
16225                          || test ! -s conftest.err'
16226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227   (eval $ac_try) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; } &&
16231          { ac_try='test -s conftest.$ac_objext'
16232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233   (eval $ac_try) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; }; then
16237   ol_cv_dcl_sys_errlist=yes
16238         ol_cv_have_sys_errlist=yes
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 ol_cv_dcl_sys_errlist=no
16244 fi
16245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16246 fi
16247 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16248 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16249 #
16250 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16251 if test $ol_cv_dcl_sys_errlist = no ; then
16252
16253 cat >>confdefs.h <<\_ACEOF
16254 #define DECL_SYS_ERRLIST 1
16255 _ACEOF
16256
16257
16258         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16259 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16260 if test "${ol_cv_have_sys_errlist+set}" = set; then
16261   echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263
16264                 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h.  */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h.  */
16270 #include <errno.h>
16271 int
16272 main ()
16273 {
16274 char *c = (char *) *sys_errlist
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281   (eval $ac_link) 2>conftest.er1
16282   ac_status=$?
16283   grep -v '^ *+' conftest.er1 >conftest.err
16284   rm -f conftest.er1
16285   cat conftest.err >&5
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); } &&
16288          { ac_try='test -z "$ac_c_werror_flag"
16289                          || test ! -s conftest.err'
16290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291   (eval $ac_try) 2>&5
16292   ac_status=$?
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); }; } &&
16295          { ac_try='test -s conftest$ac_exeext'
16296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297   (eval $ac_try) 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); }; }; then
16301   ol_cv_have_sys_errlist=yes
16302 else
16303   echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ol_cv_have_sys_errlist=no
16307 fi
16308 rm -f conftest.err conftest.$ac_objext \
16309       conftest$ac_exeext conftest.$ac_ext
16310 fi
16311 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16312 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16313 fi
16314 if test $ol_cv_have_sys_errlist = yes ; then
16315
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_SYS_ERRLIST 1
16318 _ACEOF
16319
16320 fi
16321
16322 fi
16323
16324
16325
16326 for ac_header in regex.h
16327 do
16328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330   echo "$as_me:$LINENO: checking for $ac_header" >&5
16331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16333   echo $ECHO_N "(cached) $ECHO_C" >&6
16334 fi
16335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16337 else
16338   # Is the header compilable?
16339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 $ac_includes_default
16348 #include <$ac_header>
16349 _ACEOF
16350 rm -f conftest.$ac_objext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16352   (eval $ac_compile) 2>conftest.er1
16353   ac_status=$?
16354   grep -v '^ *+' conftest.er1 >conftest.err
16355   rm -f conftest.er1
16356   cat conftest.err >&5
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); } &&
16359          { ac_try='test -z "$ac_c_werror_flag"
16360                          || test ! -s conftest.err'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; } &&
16366          { ac_try='test -s conftest.$ac_objext'
16367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368   (eval $ac_try) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372   ac_header_compiler=yes
16373 else
16374   echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377 ac_header_compiler=no
16378 fi
16379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16381 echo "${ECHO_T}$ac_header_compiler" >&6
16382
16383 # Is the header present?
16384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16386 cat >conftest.$ac_ext <<_ACEOF
16387 /* confdefs.h.  */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h.  */
16392 #include <$ac_header>
16393 _ACEOF
16394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16396   ac_status=$?
16397   grep -v '^ *+' conftest.er1 >conftest.err
16398   rm -f conftest.er1
16399   cat conftest.err >&5
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } >/dev/null; then
16402   if test -s conftest.err; then
16403     ac_cpp_err=$ac_c_preproc_warn_flag
16404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16405   else
16406     ac_cpp_err=
16407   fi
16408 else
16409   ac_cpp_err=yes
16410 fi
16411 if test -z "$ac_cpp_err"; then
16412   ac_header_preproc=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417   ac_header_preproc=no
16418 fi
16419 rm -f conftest.err conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16421 echo "${ECHO_T}$ac_header_preproc" >&6
16422
16423 # So?  What about this header?
16424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16425   yes:no: )
16426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16430     ac_header_preproc=yes
16431     ;;
16432   no:yes:* )
16433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16445     (
16446       cat <<\_ASBOX
16447 ## ------------------------------------------ ##
16448 ## Report this to the AC_PACKAGE_NAME lists.  ##
16449 ## ------------------------------------------ ##
16450 _ASBOX
16451     ) |
16452       sed "s/^/$as_me: WARNING:     /" >&2
16453     ;;
16454 esac
16455 echo "$as_me:$LINENO: checking for $ac_header" >&5
16456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   eval "$as_ac_Header=\$ac_header_preproc"
16461 fi
16462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16464
16465 fi
16466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16467   cat >>confdefs.h <<_ACEOF
16468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16469 _ACEOF
16470
16471 fi
16472
16473 done
16474
16475 if test "$ac_cv_header_regex_h" != yes ; then
16476         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16477 echo "$as_me: error: POSIX regex.h required." >&2;}
16478    { (exit 1); exit 1; }; }
16479 fi
16480 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16481 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16482 if test "${ac_cv_search_regfree+set}" = set; then
16483   echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485   ac_func_search_save_LIBS=$LIBS
16486 ac_cv_search_regfree=no
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493
16494 /* Override any gcc2 internal prototype to avoid an error.  */
16495 #ifdef __cplusplus
16496 extern "C"
16497 #endif
16498 /* We use char because int might match the return type of a gcc2
16499    builtin and then its argument prototype would still apply.  */
16500 char regfree ();
16501 int
16502 main ()
16503 {
16504 regfree ();
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511   (eval $ac_link) 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -z "$ac_c_werror_flag"
16519                          || test ! -s conftest.err'
16520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521   (eval $ac_try) 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; } &&
16525          { ac_try='test -s conftest$ac_exeext'
16526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527   (eval $ac_try) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531   ac_cv_search_regfree="none required"
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536 fi
16537 rm -f conftest.err conftest.$ac_objext \
16538       conftest$ac_exeext conftest.$ac_ext
16539 if test "$ac_cv_search_regfree" = no; then
16540   for ac_lib in regex gnuregex; do
16541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16542     cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h.  */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h.  */
16548
16549 /* Override any gcc2 internal prototype to avoid an error.  */
16550 #ifdef __cplusplus
16551 extern "C"
16552 #endif
16553 /* We use char because int might match the return type of a gcc2
16554    builtin and then its argument prototype would still apply.  */
16555 char regfree ();
16556 int
16557 main ()
16558 {
16559 regfree ();
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 rm -f conftest.$ac_objext conftest$ac_exeext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16566   (eval $ac_link) 2>conftest.er1
16567   ac_status=$?
16568   grep -v '^ *+' conftest.er1 >conftest.err
16569   rm -f conftest.er1
16570   cat conftest.err >&5
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); } &&
16573          { ac_try='test -z "$ac_c_werror_flag"
16574                          || test ! -s conftest.err'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest$ac_exeext'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   ac_cv_search_regfree="-l$ac_lib"
16587 break
16588 else
16589   echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 fi
16593 rm -f conftest.err conftest.$ac_objext \
16594       conftest$ac_exeext conftest.$ac_ext
16595   done
16596 fi
16597 LIBS=$ac_func_search_save_LIBS
16598 fi
16599 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16600 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16601 if test "$ac_cv_search_regfree" != no; then
16602   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16603   :
16604 else
16605   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16606 echo "$as_me: error: POSIX regex required." >&2;}
16607    { (exit 1); exit 1; }; }
16608 fi
16609
16610
16611
16612 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16613 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16614 if test "${ol_cv_c_posix_regex+set}" = set; then
16615   echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617
16618         if test "$cross_compiling" = yes; then
16619   ol_cv_c_posix_regex=cross
16620 else
16621   cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627
16628 #include <sys/types.h>
16629 #include <regex.h>
16630 static char *pattern, *string;
16631 main()
16632 {
16633         int rc;
16634         regex_t re;
16635
16636         pattern = "^A";
16637
16638         if(regcomp(&re, pattern, 0)) {
16639                 return -1;
16640         }
16641
16642         string = "ALL MATCH";
16643
16644         rc = regexec(&re, string, 0, (void*)0, 0);
16645
16646         regfree(&re);
16647
16648         return rc;
16649 }
16650 _ACEOF
16651 rm -f conftest$ac_exeext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16653   (eval $ac_link) 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   ol_cv_c_posix_regex=yes
16663 else
16664   echo "$as_me: program exited with status $ac_status" >&5
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 ( exit $ac_status )
16669 ol_cv_c_posix_regex=no
16670 fi
16671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16672 fi
16673 fi
16674 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16675 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16676
16677 if test "$ol_cv_c_posix_regex" = no ; then
16678         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16679 echo "$as_me: error: broken POSIX regex!" >&2;}
16680    { (exit 1); exit 1; }; }
16681 fi
16682
16683
16684 have_uuid=no
16685
16686 for ac_header in sys/uuid.h
16687 do
16688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16690   echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16693   echo $ECHO_N "(cached) $ECHO_C" >&6
16694 fi
16695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16697 else
16698   # Is the header compilable?
16699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h.  */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h.  */
16707 $ac_includes_default
16708 #include <$ac_header>
16709 _ACEOF
16710 rm -f conftest.$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712   (eval $ac_compile) 2>conftest.er1
16713   ac_status=$?
16714   grep -v '^ *+' conftest.er1 >conftest.err
16715   rm -f conftest.er1
16716   cat conftest.err >&5
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -z "$ac_c_werror_flag"
16720                          || test ! -s conftest.err'
16721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722   (eval $ac_try) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; } &&
16726          { ac_try='test -s conftest.$ac_objext'
16727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728   (eval $ac_try) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; }; then
16732   ac_header_compiler=yes
16733 else
16734   echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737 ac_header_compiler=no
16738 fi
16739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16741 echo "${ECHO_T}$ac_header_compiler" >&6
16742
16743 # Is the header present?
16744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h.  */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h.  */
16752 #include <$ac_header>
16753 _ACEOF
16754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16756   ac_status=$?
16757   grep -v '^ *+' conftest.er1 >conftest.err
16758   rm -f conftest.er1
16759   cat conftest.err >&5
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); } >/dev/null; then
16762   if test -s conftest.err; then
16763     ac_cpp_err=$ac_c_preproc_warn_flag
16764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16765   else
16766     ac_cpp_err=
16767   fi
16768 else
16769   ac_cpp_err=yes
16770 fi
16771 if test -z "$ac_cpp_err"; then
16772   ac_header_preproc=yes
16773 else
16774   echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777   ac_header_preproc=no
16778 fi
16779 rm -f conftest.err conftest.$ac_ext
16780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16781 echo "${ECHO_T}$ac_header_preproc" >&6
16782
16783 # So?  What about this header?
16784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16785   yes:no: )
16786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16790     ac_header_preproc=yes
16791     ;;
16792   no:yes:* )
16793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16805     (
16806       cat <<\_ASBOX
16807 ## ------------------------------------------ ##
16808 ## Report this to the AC_PACKAGE_NAME lists.  ##
16809 ## ------------------------------------------ ##
16810 _ASBOX
16811     ) |
16812       sed "s/^/$as_me: WARNING:     /" >&2
16813     ;;
16814 esac
16815 echo "$as_me:$LINENO: checking for $ac_header" >&5
16816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16818   echo $ECHO_N "(cached) $ECHO_C" >&6
16819 else
16820   eval "$as_ac_Header=\$ac_header_preproc"
16821 fi
16822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16824
16825 fi
16826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16827   cat >>confdefs.h <<_ACEOF
16828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16829 _ACEOF
16830
16831 fi
16832
16833 done
16834
16835 if test $ac_cv_header_sys_uuid_h = yes ; then
16836         save_LIBS="$LIBS"
16837         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16838 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16839 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842   ac_func_search_save_LIBS=$LIBS
16843 ac_cv_search_uuid_to_str=no
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850
16851 /* Override any gcc2 internal prototype to avoid an error.  */
16852 #ifdef __cplusplus
16853 extern "C"
16854 #endif
16855 /* We use char because int might match the return type of a gcc2
16856    builtin and then its argument prototype would still apply.  */
16857 char uuid_to_str ();
16858 int
16859 main ()
16860 {
16861 uuid_to_str ();
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext conftest$ac_exeext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16868   (eval $ac_link) 2>conftest.er1
16869   ac_status=$?
16870   grep -v '^ *+' conftest.er1 >conftest.err
16871   rm -f conftest.er1
16872   cat conftest.err >&5
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); } &&
16875          { ac_try='test -z "$ac_c_werror_flag"
16876                          || test ! -s conftest.err'
16877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878   (eval $ac_try) 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); }; } &&
16882          { ac_try='test -s conftest$ac_exeext'
16883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884   (eval $ac_try) 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; }; then
16888   ac_cv_search_uuid_to_str="none required"
16889 else
16890   echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893 fi
16894 rm -f conftest.err conftest.$ac_objext \
16895       conftest$ac_exeext conftest.$ac_ext
16896 if test "$ac_cv_search_uuid_to_str" = no; then
16897   for ac_lib in uuid; do
16898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16899     cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905
16906 /* Override any gcc2 internal prototype to avoid an error.  */
16907 #ifdef __cplusplus
16908 extern "C"
16909 #endif
16910 /* We use char because int might match the return type of a gcc2
16911    builtin and then its argument prototype would still apply.  */
16912 char uuid_to_str ();
16913 int
16914 main ()
16915 {
16916 uuid_to_str ();
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923   (eval $ac_link) 2>conftest.er1
16924   ac_status=$?
16925   grep -v '^ *+' conftest.er1 >conftest.err
16926   rm -f conftest.er1
16927   cat conftest.err >&5
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); } &&
16930          { ac_try='test -z "$ac_c_werror_flag"
16931                          || test ! -s conftest.err'
16932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933   (eval $ac_try) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; } &&
16937          { ac_try='test -s conftest$ac_exeext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   ac_cv_search_uuid_to_str="-l$ac_lib"
16944 break
16945 else
16946   echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16948
16949 fi
16950 rm -f conftest.err conftest.$ac_objext \
16951       conftest$ac_exeext conftest.$ac_ext
16952   done
16953 fi
16954 LIBS=$ac_func_search_save_LIBS
16955 fi
16956 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16957 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16958 if test "$ac_cv_search_uuid_to_str" != no; then
16959   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16960   have_uuid=yes
16961 else
16962   :
16963 fi
16964
16965         LIBS="$save_LIBS"
16966
16967         if test have_uuid = yes ; then
16968
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_UUID_TO_STR 1
16971 _ACEOF
16972
16973
16974                 test "$ac_cv_search_uuid_to_str" = "none required" || \
16975                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16976         fi
16977 fi
16978
16979 if test $have_uuid = no ; then
16980         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16981 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16982         save_LIBS="$LIBS"
16983         LIBS="$LIBS -lrpcrt4"
16984         cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990
16991                 int __stdcall UuidCreate(void *);
16992                 int __stdcall UuidToStringA(void *,void **);
16993
16994 int
16995 main ()
16996 {
16997
16998                 UuidCreate(0);
16999                 UuidToStringA(0,0);
17000
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007   (eval $ac_link) 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } &&
17014          { ac_try='test -z "$ac_c_werror_flag"
17015                          || test ! -s conftest.err'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; } &&
17021          { ac_try='test -s conftest$ac_exeext'
17022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023   (eval $ac_try) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; }; then
17027   need_rpcrt=yes
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 need_rpcrt=no
17033 fi
17034 rm -f conftest.err conftest.$ac_objext \
17035       conftest$ac_exeext conftest.$ac_ext
17036         if test $need_rpcrt = yes; then
17037                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17038         fi
17039         LIBS="$save_LIBS"
17040         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17041 echo "${ECHO_T}$need_rpcrt" >&6
17042 fi
17043
17044 ol_cv_lib_resolver=no
17045 if test $ol_cv_lib_resolver = no ; then
17046         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17047 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17048 if test "${ol_cv_resolver_none+set}" = set; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051
17052         ol_RESOLVER_LIB=
17053         ol_LIBS=$LIBS
17054         LIBS="$ol_RESOLVER_LIB $LIBS"
17055
17056         cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062
17063 #ifdef HAVE_SYS_TYPES_H
17064 #       include <sys/types.h>
17065 #endif
17066 #include <netinet/in.h>
17067 #ifdef HAVE_ARPA_NAMESER_H
17068 #       include <arpa/nameser.h>
17069 #endif
17070 #ifdef HAVE_RESOLV_H
17071 #       include <resolv.h>
17072 #endif
17073
17074 int
17075 main ()
17076 {
17077 {
17078         int len, status;
17079         char *request = NULL;
17080         unsigned char reply[64*1024];
17081         unsigned char host[64*1024];
17082         unsigned char *p;
17083
17084 #ifdef NS_HFIXEDSZ
17085         /* Bind 8/9 interface */
17086         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17087 #else
17088         /* Bind 4 interface */
17089 # ifndef T_SRV
17090 #  define T_SRV 33
17091 # endif
17092         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17093 #endif
17094         p = reply;
17095 #ifdef NS_HFIXEDSZ
17096         /* Bind 8/9 interface */
17097         p += NS_HFIXEDSZ;
17098 #elif defined(HFIXEDSZ)
17099         /* Bind 4 interface w/ HFIXEDSZ */
17100         p += HFIXEDSZ;
17101 #else
17102         /* Bind 4 interface w/o HFIXEDSZ */
17103         p += sizeof(HEADER);
17104 #endif
17105         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17106 }
17107   ;
17108   return 0;
17109 }
17110 _ACEOF
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17113   (eval $ac_link) 2>conftest.er1
17114   ac_status=$?
17115   grep -v '^ *+' conftest.er1 >conftest.err
17116   rm -f conftest.er1
17117   cat conftest.err >&5
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); } &&
17120          { ac_try='test -z "$ac_c_werror_flag"
17121                          || test ! -s conftest.err'
17122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123   (eval $ac_try) 2>&5
17124   ac_status=$?
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); }; } &&
17127          { ac_try='test -s conftest$ac_exeext'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   ol_cv_resolver_none=yes
17134 else
17135   echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138 ol_cv_resolver_none=no
17139 fi
17140 rm -f conftest.err conftest.$ac_objext \
17141       conftest$ac_exeext conftest.$ac_ext
17142
17143         LIBS="$ol_LIBS"
17144
17145 fi
17146 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17147 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17148
17149         if test $ol_cv_resolver_none = yes ; then
17150                 ol_cv_lib_resolver=yes
17151         fi
17152 fi
17153
17154 if test $ol_cv_lib_resolver = no ; then
17155         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17156 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17157 if test "${ol_cv_resolver_resolv+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160
17161         ol_RESOLVER_LIB=-lresolv
17162         ol_LIBS=$LIBS
17163         LIBS="$ol_RESOLVER_LIB $LIBS"
17164
17165         cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h.  */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h.  */
17171
17172 #ifdef HAVE_SYS_TYPES_H
17173 #       include <sys/types.h>
17174 #endif
17175 #include <netinet/in.h>
17176 #ifdef HAVE_ARPA_NAMESER_H
17177 #       include <arpa/nameser.h>
17178 #endif
17179 #ifdef HAVE_RESOLV_H
17180 #       include <resolv.h>
17181 #endif
17182
17183 int
17184 main ()
17185 {
17186 {
17187         int len, status;
17188         char *request = NULL;
17189         unsigned char reply[64*1024];
17190         unsigned char host[64*1024];
17191         unsigned char *p;
17192
17193 #ifdef NS_HFIXEDSZ
17194         /* Bind 8/9 interface */
17195         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17196 #else
17197         /* Bind 4 interface */
17198 # ifndef T_SRV
17199 #  define T_SRV 33
17200 # endif
17201         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17202 #endif
17203         p = reply;
17204 #ifdef NS_HFIXEDSZ
17205         /* Bind 8/9 interface */
17206         p += NS_HFIXEDSZ;
17207 #elif defined(HFIXEDSZ)
17208         /* Bind 4 interface w/ HFIXEDSZ */
17209         p += HFIXEDSZ;
17210 #else
17211         /* Bind 4 interface w/o HFIXEDSZ */
17212         p += sizeof(HEADER);
17213 #endif
17214         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17215 }
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>conftest.er1
17223   ac_status=$?
17224   grep -v '^ *+' conftest.er1 >conftest.err
17225   rm -f conftest.er1
17226   cat conftest.err >&5
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -z "$ac_c_werror_flag"
17230                          || test ! -s conftest.err'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; } &&
17236          { ac_try='test -s conftest$ac_exeext'
17237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ol_cv_resolver_resolv=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ol_cv_resolver_resolv=no
17248 fi
17249 rm -f conftest.err conftest.$ac_objext \
17250       conftest$ac_exeext conftest.$ac_ext
17251
17252         LIBS="$ol_LIBS"
17253
17254 fi
17255 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17256 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17257
17258         if test $ol_cv_resolver_resolv = yes ; then
17259                 ol_cv_lib_resolver=-lresolv
17260         fi
17261 fi
17262
17263 if test $ol_cv_lib_resolver = no ; then
17264         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17265 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17266 if test "${ol_cv_resolver_bind+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269
17270         ol_RESOLVER_LIB=-lbind
17271         ol_LIBS=$LIBS
17272         LIBS="$ol_RESOLVER_LIB $LIBS"
17273
17274         cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h.  */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h.  */
17280
17281 #ifdef HAVE_SYS_TYPES_H
17282 #       include <sys/types.h>
17283 #endif
17284 #include <netinet/in.h>
17285 #ifdef HAVE_ARPA_NAMESER_H
17286 #       include <arpa/nameser.h>
17287 #endif
17288 #ifdef HAVE_RESOLV_H
17289 #       include <resolv.h>
17290 #endif
17291
17292 int
17293 main ()
17294 {
17295 {
17296         int len, status;
17297         char *request = NULL;
17298         unsigned char reply[64*1024];
17299         unsigned char host[64*1024];
17300         unsigned char *p;
17301
17302 #ifdef NS_HFIXEDSZ
17303         /* Bind 8/9 interface */
17304         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17305 #else
17306         /* Bind 4 interface */
17307 # ifndef T_SRV
17308 #  define T_SRV 33
17309 # endif
17310         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17311 #endif
17312         p = reply;
17313 #ifdef NS_HFIXEDSZ
17314         /* Bind 8/9 interface */
17315         p += NS_HFIXEDSZ;
17316 #elif defined(HFIXEDSZ)
17317         /* Bind 4 interface w/ HFIXEDSZ */
17318         p += HFIXEDSZ;
17319 #else
17320         /* Bind 4 interface w/o HFIXEDSZ */
17321         p += sizeof(HEADER);
17322 #endif
17323         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17324 }
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17331   (eval $ac_link) 2>conftest.er1
17332   ac_status=$?
17333   grep -v '^ *+' conftest.er1 >conftest.err
17334   rm -f conftest.er1
17335   cat conftest.err >&5
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } &&
17338          { ac_try='test -z "$ac_c_werror_flag"
17339                          || test ! -s conftest.err'
17340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341   (eval $ac_try) 2>&5
17342   ac_status=$?
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); }; } &&
17345          { ac_try='test -s conftest$ac_exeext'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; }; then
17351   ol_cv_resolver_bind=yes
17352 else
17353   echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17355
17356 ol_cv_resolver_bind=no
17357 fi
17358 rm -f conftest.err conftest.$ac_objext \
17359       conftest$ac_exeext conftest.$ac_ext
17360
17361         LIBS="$ol_LIBS"
17362
17363 fi
17364 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17365 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17366
17367         if test $ol_cv_resolver_bind = yes ; then
17368                 ol_cv_lib_resolver=-lbind
17369         fi
17370 fi
17371
17372
17373
17374 ol_link_dnssrv=no
17375 if test "$ol_cv_lib_resolver" != no ; then
17376
17377 cat >>confdefs.h <<\_ACEOF
17378 #define HAVE_RES_QUERY 1
17379 _ACEOF
17380
17381
17382         if test "$ol_enable_dnssrv" != no ; then
17383                 ol_link_dnssrv=yes
17384         fi
17385
17386         if test "$ol_cv_lib_resolver" != yes ; then
17387                 LIBS="$ol_cv_lib_resolver $LIBS"
17388         fi
17389 fi
17390
17391 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17392         if test "$ol_link_dnssrv" = no ; then
17393                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17394 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17395    { (exit 1); exit 1; }; }
17396         fi
17397 else
17398         ol_enable_dnssrv=no
17399 fi
17400
17401
17402 for ac_func in hstrerror
17403 do
17404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17405 echo "$as_me:$LINENO: checking for $ac_func" >&5
17406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17407 if eval "test \"\${$as_ac_var+set}\" = set"; then
17408   echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410   cat >conftest.$ac_ext <<_ACEOF
17411 /* confdefs.h.  */
17412 _ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h.  */
17416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17418 #define $ac_func innocuous_$ac_func
17419
17420 /* System header to define __stub macros and hopefully few prototypes,
17421     which can conflict with char $ac_func (); below.
17422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17423     <limits.h> exists even on freestanding compilers.  */
17424
17425 #ifdef __STDC__
17426 # include <limits.h>
17427 #else
17428 # include <assert.h>
17429 #endif
17430
17431 #undef $ac_func
17432
17433 /* Override any gcc2 internal prototype to avoid an error.  */
17434 #ifdef __cplusplus
17435 extern "C"
17436 {
17437 #endif
17438 /* We use char because int might match the return type of a gcc2
17439    builtin and then its argument prototype would still apply.  */
17440 char $ac_func ();
17441 /* The GNU C library defines this for functions which it implements
17442     to always fail with ENOSYS.  Some functions are actually named
17443     something starting with __ and the normal name is an alias.  */
17444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17445 choke me
17446 #else
17447 char (*f) () = $ac_func;
17448 #endif
17449 #ifdef __cplusplus
17450 }
17451 #endif
17452
17453 int
17454 main ()
17455 {
17456 return f != $ac_func;
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463   (eval $ac_link) 2>conftest.er1
17464   ac_status=$?
17465   grep -v '^ *+' conftest.er1 >conftest.err
17466   rm -f conftest.er1
17467   cat conftest.err >&5
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } &&
17470          { ac_try='test -z "$ac_c_werror_flag"
17471                          || test ! -s conftest.err'
17472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473   (eval $ac_try) 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; } &&
17477          { ac_try='test -s conftest$ac_exeext'
17478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479   (eval $ac_try) 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); }; }; then
17483   eval "$as_ac_var=yes"
17484 else
17485   echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17487
17488 eval "$as_ac_var=no"
17489 fi
17490 rm -f conftest.err conftest.$ac_objext \
17491       conftest$ac_exeext conftest.$ac_ext
17492 fi
17493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17495 if test `eval echo '${'$as_ac_var'}'` = yes; then
17496   cat >>confdefs.h <<_ACEOF
17497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17498 _ACEOF
17499
17500 fi
17501 done
17502
17503
17504
17505
17506
17507
17508 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17509 do
17510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17511 echo "$as_me:$LINENO: checking for $ac_func" >&5
17512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17513 if eval "test \"\${$as_ac_var+set}\" = set"; then
17514   echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17516   cat >conftest.$ac_ext <<_ACEOF
17517 /* confdefs.h.  */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h.  */
17522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17524 #define $ac_func innocuous_$ac_func
17525
17526 /* System header to define __stub macros and hopefully few prototypes,
17527     which can conflict with char $ac_func (); below.
17528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17529     <limits.h> exists even on freestanding compilers.  */
17530
17531 #ifdef __STDC__
17532 # include <limits.h>
17533 #else
17534 # include <assert.h>
17535 #endif
17536
17537 #undef $ac_func
17538
17539 /* Override any gcc2 internal prototype to avoid an error.  */
17540 #ifdef __cplusplus
17541 extern "C"
17542 {
17543 #endif
17544 /* We use char because int might match the return type of a gcc2
17545    builtin and then its argument prototype would still apply.  */
17546 char $ac_func ();
17547 /* The GNU C library defines this for functions which it implements
17548     to always fail with ENOSYS.  Some functions are actually named
17549     something starting with __ and the normal name is an alias.  */
17550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17551 choke me
17552 #else
17553 char (*f) () = $ac_func;
17554 #endif
17555 #ifdef __cplusplus
17556 }
17557 #endif
17558
17559 int
17560 main ()
17561 {
17562 return f != $ac_func;
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17569   (eval $ac_link) 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } &&
17576          { ac_try='test -z "$ac_c_werror_flag"
17577                          || test ! -s conftest.err'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest$ac_exeext'
17584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585   (eval $ac_try) 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); }; }; then
17589   eval "$as_ac_var=yes"
17590 else
17591   echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 eval "$as_ac_var=no"
17595 fi
17596 rm -f conftest.err conftest.$ac_objext \
17597       conftest$ac_exeext conftest.$ac_ext
17598 fi
17599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17601 if test `eval echo '${'$as_ac_var'}'` = yes; then
17602   cat >>confdefs.h <<_ACEOF
17603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 _ACEOF
17605
17606 fi
17607 done
17608
17609
17610 ol_link_ipv6=no
17611 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17612         if test $ol_enable_ipv6 = yes ; then
17613                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17614 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17615    { (exit 1); exit 1; }; }
17616         fi
17617 elif test $ol_enable_ipv6 != no ; then
17618         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17619 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17620 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
17623
17624                 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630
17631 #                       include <netinet/in.h>
17632 #                       ifdef INET6_ADDRSTRLEN
17633                                 __has_inet6_addrstrlen__;
17634 #                       endif
17635
17636 _ACEOF
17637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17638   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17639   ol_cv_inet6_addrstrlen=yes
17640 else
17641   ol_cv_inet6_addrstrlen=no
17642 fi
17643 rm -f conftest*
17644
17645 fi
17646 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17647 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17648
17649
17650         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17651 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17652 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655
17656                 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662
17663 #include <sys/types.h>
17664 #include <sys/socket.h>
17665
17666 int
17667 main ()
17668 {
17669
17670                         struct sockaddr_storage ss;
17671
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17678   (eval $ac_compile) 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag"
17686                          || test ! -s conftest.err'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; } &&
17692          { ac_try='test -s conftest.$ac_objext'
17693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694   (eval $ac_try) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; }; then
17698   ol_cv_struct_sockaddr_storage=yes
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 ol_cv_struct_sockaddr_storage=no
17704 fi
17705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17708 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17709
17710         if test $ol_cv_inet6_addrstrlen = yes &&
17711            test $ol_cv_struct_sockaddr_storage = yes ; then
17712                 ol_link_ipv6=yes
17713         elif test $ol_enable_ipv6 = yes &&
17714              test $ol_cv_inet6_addrstrlen = no ; then
17715                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17716 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17717    { (exit 1); exit 1; }; }
17718         elif test $ol_enable_ipv6 = yes &&
17719              test $ol_cv_struct_sockaddr_storage = no ; then
17720                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17721 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17722    { (exit 1); exit 1; }; }
17723         fi
17724 fi
17725
17726 if test $ol_enable_local != no ; then
17727
17728 for ac_header in sys/un.h
17729 do
17730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17732   echo "$as_me:$LINENO: checking for $ac_header" >&5
17733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17735   echo $ECHO_N "(cached) $ECHO_C" >&6
17736 fi
17737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17739 else
17740   # Is the header compilable?
17741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h.  */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h.  */
17749 $ac_includes_default
17750 #include <$ac_header>
17751 _ACEOF
17752 rm -f conftest.$ac_objext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17754   (eval $ac_compile) 2>conftest.er1
17755   ac_status=$?
17756   grep -v '^ *+' conftest.er1 >conftest.err
17757   rm -f conftest.er1
17758   cat conftest.err >&5
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); } &&
17761          { ac_try='test -z "$ac_c_werror_flag"
17762                          || test ! -s conftest.err'
17763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764   (eval $ac_try) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; } &&
17768          { ac_try='test -s conftest.$ac_objext'
17769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770   (eval $ac_try) 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; }; then
17774   ac_header_compiler=yes
17775 else
17776   echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17778
17779 ac_header_compiler=no
17780 fi
17781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17783 echo "${ECHO_T}$ac_header_compiler" >&6
17784
17785 # Is the header present?
17786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794 #include <$ac_header>
17795 _ACEOF
17796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } >/dev/null; then
17804   if test -s conftest.err; then
17805     ac_cpp_err=$ac_c_preproc_warn_flag
17806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17807   else
17808     ac_cpp_err=
17809   fi
17810 else
17811   ac_cpp_err=yes
17812 fi
17813 if test -z "$ac_cpp_err"; then
17814   ac_header_preproc=yes
17815 else
17816   echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819   ac_header_preproc=no
17820 fi
17821 rm -f conftest.err conftest.$ac_ext
17822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17823 echo "${ECHO_T}$ac_header_preproc" >&6
17824
17825 # So?  What about this header?
17826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17827   yes:no: )
17828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17832     ac_header_preproc=yes
17833     ;;
17834   no:yes:* )
17835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17847     (
17848       cat <<\_ASBOX
17849 ## ------------------------------------------ ##
17850 ## Report this to the AC_PACKAGE_NAME lists.  ##
17851 ## ------------------------------------------ ##
17852 _ASBOX
17853     ) |
17854       sed "s/^/$as_me: WARNING:     /" >&2
17855     ;;
17856 esac
17857 echo "$as_me:$LINENO: checking for $ac_header" >&5
17858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17860   echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862   eval "$as_ac_Header=\$ac_header_preproc"
17863 fi
17864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17866
17867 fi
17868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17869   cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17871 _ACEOF
17872
17873 fi
17874
17875 done
17876
17877
17878         if test $ol_enable_local = auto ; then
17879                 ol_enable_local=$ac_cv_header_sys_un_h
17880         elif test $ac_cv_header_sys_un_h = no ; then
17881                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17882 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17883    { (exit 1); exit 1; }; }
17884         fi
17885 fi
17886
17887 ol_link_kbind=no
17888 ol_link_krb5=no
17889 ol_link_krb4=no
17890
17891 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17892
17893
17894 for ac_header in krb5.h
17895 do
17896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17898   echo "$as_me:$LINENO: checking for $ac_header" >&5
17899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17901   echo $ECHO_N "(cached) $ECHO_C" >&6
17902 fi
17903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17905 else
17906   # Is the header compilable?
17907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17909 cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h.  */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h.  */
17915 $ac_includes_default
17916 #include <$ac_header>
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920   (eval $ac_compile) 2>conftest.er1
17921   ac_status=$?
17922   grep -v '^ *+' conftest.er1 >conftest.err
17923   rm -f conftest.er1
17924   cat conftest.err >&5
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); } &&
17927          { ac_try='test -z "$ac_c_werror_flag"
17928                          || test ! -s conftest.err'
17929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930   (eval $ac_try) 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; } &&
17934          { ac_try='test -s conftest.$ac_objext'
17935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936   (eval $ac_try) 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; }; then
17940   ac_header_compiler=yes
17941 else
17942   echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_header_compiler=no
17946 fi
17947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17949 echo "${ECHO_T}$ac_header_compiler" >&6
17950
17951 # Is the header present?
17952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17954 cat >conftest.$ac_ext <<_ACEOF
17955 /* confdefs.h.  */
17956 _ACEOF
17957 cat confdefs.h >>conftest.$ac_ext
17958 cat >>conftest.$ac_ext <<_ACEOF
17959 /* end confdefs.h.  */
17960 #include <$ac_header>
17961 _ACEOF
17962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } >/dev/null; then
17970   if test -s conftest.err; then
17971     ac_cpp_err=$ac_c_preproc_warn_flag
17972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17973   else
17974     ac_cpp_err=
17975   fi
17976 else
17977   ac_cpp_err=yes
17978 fi
17979 if test -z "$ac_cpp_err"; then
17980   ac_header_preproc=yes
17981 else
17982   echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985   ac_header_preproc=no
17986 fi
17987 rm -f conftest.err conftest.$ac_ext
17988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17989 echo "${ECHO_T}$ac_header_preproc" >&6
17990
17991 # So?  What about this header?
17992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17993   yes:no: )
17994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17998     ac_header_preproc=yes
17999     ;;
18000   no:yes:* )
18001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18013     (
18014       cat <<\_ASBOX
18015 ## ------------------------------------------ ##
18016 ## Report this to the AC_PACKAGE_NAME lists.  ##
18017 ## ------------------------------------------ ##
18018 _ASBOX
18019     ) |
18020       sed "s/^/$as_me: WARNING:     /" >&2
18021     ;;
18022 esac
18023 echo "$as_me:$LINENO: checking for $ac_header" >&5
18024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18026   echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028   eval "$as_ac_Header=\$ac_header_preproc"
18029 fi
18030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18032
18033 fi
18034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18035   cat >>confdefs.h <<_ACEOF
18036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18037 _ACEOF
18038
18039 fi
18040
18041 done
18042
18043
18044         if test $ac_cv_header_krb5_h = yes ; then
18045
18046 for ac_header in heim_err.h
18047 do
18048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18050   echo "$as_me:$LINENO: checking for $ac_header" >&5
18051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18053   echo $ECHO_N "(cached) $ECHO_C" >&6
18054 fi
18055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18057 else
18058   # Is the header compilable?
18059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h.  */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h.  */
18067 $ac_includes_default
18068 #include <$ac_header>
18069 _ACEOF
18070 rm -f conftest.$ac_objext
18071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18072   (eval $ac_compile) 2>conftest.er1
18073   ac_status=$?
18074   grep -v '^ *+' conftest.er1 >conftest.err
18075   rm -f conftest.er1
18076   cat conftest.err >&5
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); } &&
18079          { ac_try='test -z "$ac_c_werror_flag"
18080                          || test ! -s conftest.err'
18081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082   (eval $ac_try) 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }; } &&
18086          { ac_try='test -s conftest.$ac_objext'
18087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088   (eval $ac_try) 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); }; }; then
18092   ac_header_compiler=yes
18093 else
18094   echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18096
18097 ac_header_compiler=no
18098 fi
18099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18101 echo "${ECHO_T}$ac_header_compiler" >&6
18102
18103 # Is the header present?
18104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 #include <$ac_header>
18113 _ACEOF
18114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18116   ac_status=$?
18117   grep -v '^ *+' conftest.er1 >conftest.err
18118   rm -f conftest.er1
18119   cat conftest.err >&5
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); } >/dev/null; then
18122   if test -s conftest.err; then
18123     ac_cpp_err=$ac_c_preproc_warn_flag
18124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18125   else
18126     ac_cpp_err=
18127   fi
18128 else
18129   ac_cpp_err=yes
18130 fi
18131 if test -z "$ac_cpp_err"; then
18132   ac_header_preproc=yes
18133 else
18134   echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18136
18137   ac_header_preproc=no
18138 fi
18139 rm -f conftest.err conftest.$ac_ext
18140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18141 echo "${ECHO_T}$ac_header_preproc" >&6
18142
18143 # So?  What about this header?
18144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18145   yes:no: )
18146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18150     ac_header_preproc=yes
18151     ;;
18152   no:yes:* )
18153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18165     (
18166       cat <<\_ASBOX
18167 ## ------------------------------------------ ##
18168 ## Report this to the AC_PACKAGE_NAME lists.  ##
18169 ## ------------------------------------------ ##
18170 _ASBOX
18171     ) |
18172       sed "s/^/$as_me: WARNING:     /" >&2
18173     ;;
18174 esac
18175 echo "$as_me:$LINENO: checking for $ac_header" >&5
18176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18178   echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180   eval "$as_ac_Header=\$ac_header_preproc"
18181 fi
18182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18184
18185 fi
18186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18187   cat >>confdefs.h <<_ACEOF
18188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18189 _ACEOF
18190
18191 fi
18192
18193 done
18194
18195                 if test $ac_cv_header_heim_err_h = yes ; then
18196                         krb5_impl=heimdal
18197                 else
18198                         krb5_impl=mit
18199                 fi
18200
18201                 if test $krb5_impl = mit; then
18202                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18203 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18204 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-lk5crypto  $LIBS"
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215
18216
18217 int
18218 main ()
18219 {
18220 main ();
18221   ;
18222   return 0;
18223 }
18224 _ACEOF
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227   (eval $ac_link) 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_c_werror_flag"
18235                          || test ! -s conftest.err'
18236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237   (eval $ac_try) 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest$ac_exeext'
18242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243   (eval $ac_try) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; }; then
18247   ac_cv_lib_k5crypto_main=yes
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ac_cv_lib_k5crypto_main=no
18253 fi
18254 rm -f conftest.err conftest.$ac_objext \
18255       conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18257 fi
18258 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18259 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18260 if test $ac_cv_lib_k5crypto_main = yes; then
18261   krb5crypto=k5crypto
18262 else
18263   krb5crypto=crypto
18264 fi
18265
18266
18267                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18268 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18269 if test "${ac_cv_lib_krb5_main+set}" = set; then
18270   echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272   ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h.  */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h.  */
18280
18281
18282 int
18283 main ()
18284 {
18285 main ();
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 rm -f conftest.$ac_objext conftest$ac_exeext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18292   (eval $ac_link) 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } &&
18299          { ac_try='test -z "$ac_c_werror_flag"
18300                          || test ! -s conftest.err'
18301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302   (eval $ac_try) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; } &&
18306          { ac_try='test -s conftest$ac_exeext'
18307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308   (eval $ac_try) 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); }; }; then
18312   ac_cv_lib_krb5_main=yes
18313 else
18314   echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 ac_cv_lib_krb5_main=no
18318 fi
18319 rm -f conftest.err conftest.$ac_objext \
18320       conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18322 fi
18323 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18324 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18325 if test $ac_cv_lib_krb5_main = yes; then
18326   have_krb5=yes
18327                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18328 else
18329   have_krb5=no
18330 fi
18331
18332
18333                 elif test $krb5_impl = heimdal; then
18334                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18335 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18336 if test "${ac_cv_lib_des_main+set}" = set; then
18337   echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339   ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-ldes  $LIBS"
18341 cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h.  */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h.  */
18347
18348
18349 int
18350 main ()
18351 {
18352 main ();
18353   ;
18354   return 0;
18355 }
18356 _ACEOF
18357 rm -f conftest.$ac_objext conftest$ac_exeext
18358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18359   (eval $ac_link) 2>conftest.er1
18360   ac_status=$?
18361   grep -v '^ *+' conftest.er1 >conftest.err
18362   rm -f conftest.er1
18363   cat conftest.err >&5
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); } &&
18366          { ac_try='test -z "$ac_c_werror_flag"
18367                          || test ! -s conftest.err'
18368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369   (eval $ac_try) 2>&5
18370   ac_status=$?
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); }; } &&
18373          { ac_try='test -s conftest$ac_exeext'
18374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375   (eval $ac_try) 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; }; then
18379   ac_cv_lib_des_main=yes
18380 else
18381   echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18383
18384 ac_cv_lib_des_main=no
18385 fi
18386 rm -f conftest.err conftest.$ac_objext \
18387       conftest$ac_exeext conftest.$ac_ext
18388 LIBS=$ac_check_lib_save_LIBS
18389 fi
18390 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18391 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18392 if test $ac_cv_lib_des_main = yes; then
18393   krb5crypto=des
18394 else
18395   krb5crypto=crypto
18396 fi
18397
18398
18399                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18400 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18401 if test "${ac_cv_lib_krb5_main+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   ac_check_lib_save_LIBS=$LIBS
18405 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h.  */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h.  */
18412
18413
18414 int
18415 main ()
18416 {
18417 main ();
18418   ;
18419   return 0;
18420 }
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18424   (eval $ac_link) 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } &&
18431          { ac_try='test -z "$ac_c_werror_flag"
18432                          || test ! -s conftest.err'
18433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434   (eval $ac_try) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); }; } &&
18438          { ac_try='test -s conftest$ac_exeext'
18439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440   (eval $ac_try) 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); }; }; then
18444   ac_cv_lib_krb5_main=yes
18445 else
18446   echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 ac_cv_lib_krb5_main=no
18450 fi
18451 rm -f conftest.err conftest.$ac_objext \
18452       conftest$ac_exeext conftest.$ac_ext
18453 LIBS=$ac_check_lib_save_LIBS
18454 fi
18455 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18456 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18457 if test $ac_cv_lib_krb5_main = yes; then
18458   have_krb5=yes
18459                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18460 else
18461   have_krb5=no
18462 fi
18463
18464
18465
18466 cat >>confdefs.h <<\_ACEOF
18467 #define HAVE_HEIMDAL_KERBEROS 1
18468 _ACEOF
18469
18470
18471                 else
18472                         have_krb5=no
18473                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18474 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18475                 fi
18476
18477                 if test $have_krb5 = yes ; then
18478                         ol_link_krb5=yes
18479
18480
18481 cat >>confdefs.h <<\_ACEOF
18482 #define HAVE_KRB5 1
18483 _ACEOF
18484
18485
18486                         if test $ol_with_kerberos = k5only ; then
18487                                 ol_with_kerberos=found
18488                         fi
18489
18490                 elif test $ol_with_kerberos != auto ; then
18491                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18492 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18493    { (exit 1); exit 1; }; }
18494                 fi
18495
18496         fi
18497         ;;
18498 esac
18499
18500 if test $ol_link_krb5 = yes &&
18501    { test $ol_with_kerberos = yes ||
18502      test $ol_with_kerberos = auto ||
18503      test $ol_with_kerberos = k425; }; then
18504
18505
18506
18507 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18508 do
18509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18511   echo "$as_me:$LINENO: checking for $ac_header" >&5
18512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18514   echo $ECHO_N "(cached) $ECHO_C" >&6
18515 fi
18516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18518 else
18519   # Is the header compilable?
18520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18522 cat >conftest.$ac_ext <<_ACEOF
18523 /* confdefs.h.  */
18524 _ACEOF
18525 cat confdefs.h >>conftest.$ac_ext
18526 cat >>conftest.$ac_ext <<_ACEOF
18527 /* end confdefs.h.  */
18528 $ac_includes_default
18529 #include <$ac_header>
18530 _ACEOF
18531 rm -f conftest.$ac_objext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18533   (eval $ac_compile) 2>conftest.er1
18534   ac_status=$?
18535   grep -v '^ *+' conftest.er1 >conftest.err
18536   rm -f conftest.er1
18537   cat conftest.err >&5
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); } &&
18540          { ac_try='test -z "$ac_c_werror_flag"
18541                          || test ! -s conftest.err'
18542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543   (eval $ac_try) 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest.$ac_objext'
18548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549   (eval $ac_try) 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }; }; then
18553   ac_header_compiler=yes
18554 else
18555   echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558 ac_header_compiler=no
18559 fi
18560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18562 echo "${ECHO_T}$ac_header_compiler" >&6
18563
18564 # Is the header present?
18565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573 #include <$ac_header>
18574 _ACEOF
18575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18577   ac_status=$?
18578   grep -v '^ *+' conftest.er1 >conftest.err
18579   rm -f conftest.er1
18580   cat conftest.err >&5
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); } >/dev/null; then
18583   if test -s conftest.err; then
18584     ac_cpp_err=$ac_c_preproc_warn_flag
18585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18586   else
18587     ac_cpp_err=
18588   fi
18589 else
18590   ac_cpp_err=yes
18591 fi
18592 if test -z "$ac_cpp_err"; then
18593   ac_header_preproc=yes
18594 else
18595   echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18597
18598   ac_header_preproc=no
18599 fi
18600 rm -f conftest.err conftest.$ac_ext
18601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18602 echo "${ECHO_T}$ac_header_preproc" >&6
18603
18604 # So?  What about this header?
18605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18606   yes:no: )
18607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18611     ac_header_preproc=yes
18612     ;;
18613   no:yes:* )
18614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18616     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18617 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18620     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18621 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18626     (
18627       cat <<\_ASBOX
18628 ## ------------------------------------------ ##
18629 ## Report this to the AC_PACKAGE_NAME lists.  ##
18630 ## ------------------------------------------ ##
18631 _ASBOX
18632     ) |
18633       sed "s/^/$as_me: WARNING:     /" >&2
18634     ;;
18635 esac
18636 echo "$as_me:$LINENO: checking for $ac_header" >&5
18637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18639   echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641   eval "$as_ac_Header=\$ac_header_preproc"
18642 fi
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18645
18646 fi
18647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18648   cat >>confdefs.h <<_ACEOF
18649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18650 _ACEOF
18651
18652 fi
18653
18654 done
18655
18656
18657         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18658                 if test $krb5_impl = mit; then
18659                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18660 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18661 if test "${ac_cv_lib_krb4_main+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664   ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672
18673
18674 int
18675 main ()
18676 {
18677 main ();
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18684   (eval $ac_link) 2>conftest.er1
18685   ac_status=$?
18686   grep -v '^ *+' conftest.er1 >conftest.err
18687   rm -f conftest.er1
18688   cat conftest.err >&5
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } &&
18691          { ac_try='test -z "$ac_c_werror_flag"
18692                          || test ! -s conftest.err'
18693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694   (eval $ac_try) 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; } &&
18698          { ac_try='test -s conftest$ac_exeext'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; }; then
18704   ac_cv_lib_krb4_main=yes
18705 else
18706   echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18708
18709 ac_cv_lib_krb4_main=no
18710 fi
18711 rm -f conftest.err conftest.$ac_objext \
18712       conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18714 fi
18715 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18716 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18717 if test $ac_cv_lib_krb4_main = yes; then
18718   have_k425=yes
18719                                 KRB4_LIBS="-lkrb4 -ldes425"
18720 else
18721   have_k425=no
18722 fi
18723
18724
18725                 elif test $krb5_impl = heimdal; then
18726                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18727 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18728 if test "${ac_cv_lib_krb4_main+set}" = set; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   ac_check_lib_save_LIBS=$LIBS
18732 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18733 cat >conftest.$ac_ext <<_ACEOF
18734 /* confdefs.h.  */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h.  */
18739
18740
18741 int
18742 main ()
18743 {
18744 main ();
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18751   (eval $ac_link) 2>conftest.er1
18752   ac_status=$?
18753   grep -v '^ *+' conftest.er1 >conftest.err
18754   rm -f conftest.er1
18755   cat conftest.err >&5
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); } &&
18758          { ac_try='test -z "$ac_c_werror_flag"
18759                          || test ! -s conftest.err'
18760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761   (eval $ac_try) 2>&5
18762   ac_status=$?
18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764   (exit $ac_status); }; } &&
18765          { ac_try='test -s conftest$ac_exeext'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; }; then
18771   ac_cv_lib_krb4_main=yes
18772 else
18773   echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 ac_cv_lib_krb4_main=no
18777 fi
18778 rm -f conftest.err conftest.$ac_objext \
18779       conftest$ac_exeext conftest.$ac_ext
18780 LIBS=$ac_check_lib_save_LIBS
18781 fi
18782 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18783 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18784 if test $ac_cv_lib_krb4_main = yes; then
18785   have_k425=yes
18786                                 KRB4_LIBS="-lkrb4"
18787 else
18788   have_k425=no
18789 fi
18790
18791
18792                 else
18793                         have_425=no
18794                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18795 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18796                 fi
18797
18798                 if test $have_k425 = yes ; then
18799                         ol_with_kerberos=found
18800                         ol_link_krb4=yes
18801
18802
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE_KRB425 1
18805 _ACEOF
18806
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_KRB4 1
18810 _ACEOF
18811
18812
18813                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18814 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18815 if test "${ol_cv_var_des_debug+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818
18819                                                                 save_LIBS="$LIBS"
18820                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18821                                 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827
18828 #include <kerberosIV/krb.h>
18829 #include <kerberosIV/des.h>
18830 extern int des_debug;
18831
18832 int
18833 main ()
18834 {
18835
18836 des_debug = 1;
18837
18838   ;
18839   return 0;
18840 }
18841 _ACEOF
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844   (eval $ac_link) 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } &&
18851          { ac_try='test -z "$ac_c_werror_flag"
18852                          || test ! -s conftest.err'
18853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854   (eval $ac_try) 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; } &&
18858          { ac_try='test -s conftest$ac_exeext'
18859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860   (eval $ac_try) 2>&5
18861   ac_status=$?
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); }; }; then
18864   ol_cv_var_des_debug=yes
18865 else
18866   echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18868
18869 ol_cv_var_des_debug=no
18870 fi
18871 rm -f conftest.err conftest.$ac_objext \
18872       conftest$ac_exeext conftest.$ac_ext
18873                                                                 LIBS="$save_LIBS"
18874
18875 fi
18876 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18877 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18878
18879                         if test $ol_cv_var_des_debug = yes ; then
18880
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_DES_DEBUG 1
18883 _ACEOF
18884
18885                         fi
18886
18887                         LIBS="$save_LIBS"
18888                 fi
18889         fi
18890 fi
18891
18892 if test $ol_link_krb5 = yes ; then
18893         ol_with_kerberos=found
18894 fi
18895
18896 case $ol_with_kerberos in yes | auto | k4 | kth)
18897
18898
18899
18900
18901 for ac_header in krb.h des.h krb-archaeology.h
18902 do
18903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18905   echo "$as_me:$LINENO: checking for $ac_header" >&5
18906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 fi
18910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18912 else
18913   # Is the header compilable?
18914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922 $ac_includes_default
18923 #include <$ac_header>
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927   (eval $ac_compile) 2>conftest.er1
18928   ac_status=$?
18929   grep -v '^ *+' conftest.er1 >conftest.err
18930   rm -f conftest.er1
18931   cat conftest.err >&5
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); } &&
18934          { ac_try='test -z "$ac_c_werror_flag"
18935                          || test ! -s conftest.err'
18936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937   (eval $ac_try) 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; } &&
18941          { ac_try='test -s conftest.$ac_objext'
18942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943   (eval $ac_try) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; }; then
18947   ac_header_compiler=yes
18948 else
18949   echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ac_header_compiler=no
18953 fi
18954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18956 echo "${ECHO_T}$ac_header_compiler" >&6
18957
18958 # Is the header present?
18959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967 #include <$ac_header>
18968 _ACEOF
18969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18971   ac_status=$?
18972   grep -v '^ *+' conftest.er1 >conftest.err
18973   rm -f conftest.er1
18974   cat conftest.err >&5
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); } >/dev/null; then
18977   if test -s conftest.err; then
18978     ac_cpp_err=$ac_c_preproc_warn_flag
18979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18980   else
18981     ac_cpp_err=
18982   fi
18983 else
18984   ac_cpp_err=yes
18985 fi
18986 if test -z "$ac_cpp_err"; then
18987   ac_header_preproc=yes
18988 else
18989   echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992   ac_header_preproc=no
18993 fi
18994 rm -f conftest.err conftest.$ac_ext
18995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18996 echo "${ECHO_T}$ac_header_preproc" >&6
18997
18998 # So?  What about this header?
18999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19000   yes:no: )
19001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19005     ac_header_preproc=yes
19006     ;;
19007   no:yes:* )
19008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19020     (
19021       cat <<\_ASBOX
19022 ## ------------------------------------------ ##
19023 ## Report this to the AC_PACKAGE_NAME lists.  ##
19024 ## ------------------------------------------ ##
19025 _ASBOX
19026     ) |
19027       sed "s/^/$as_me: WARNING:     /" >&2
19028     ;;
19029 esac
19030 echo "$as_me:$LINENO: checking for $ac_header" >&5
19031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   eval "$as_ac_Header=\$ac_header_preproc"
19036 fi
19037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19039
19040 fi
19041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19042   cat >>confdefs.h <<_ACEOF
19043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19044 _ACEOF
19045
19046 fi
19047
19048 done
19049
19050
19051         if test $ac_cv_header_krb_h = yes ; then
19052                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19053 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19054 if test "${ac_cv_lib_krb_main+set}" = set; then
19055   echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057   ac_check_lib_save_LIBS=$LIBS
19058 LIBS="-lkrb -ldes $LIBS"
19059 cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065
19066
19067 int
19068 main ()
19069 {
19070 main ();
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077   (eval $ac_link) 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } &&
19084          { ac_try='test -z "$ac_c_werror_flag"
19085                          || test ! -s conftest.err'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest$ac_exeext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_cv_lib_krb_main=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 ac_cv_lib_krb_main=no
19103 fi
19104 rm -f conftest.err conftest.$ac_objext \
19105       conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19107 fi
19108 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19109 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19110 if test $ac_cv_lib_krb_main = yes; then
19111   have_k4=yes
19112 else
19113   have_k4=no
19114 fi
19115
19116
19117                 if test $have_k4 = yes ; then
19118                         ol_with_kerberos=found
19119                         ol_link_krb4=yes
19120
19121
19122 cat >>confdefs.h <<\_ACEOF
19123 #define HAVE_KRB4 1
19124 _ACEOF
19125
19126
19127                         KRB4_LIBS="-lkrb -ldes"
19128
19129                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19130
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_KTH_KERBEROS 1
19133 _ACEOF
19134
19135                         fi
19136                 fi
19137         fi
19138         ;;
19139 esac
19140
19141 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19142         ol_link_kbind=yes
19143
19144 elif test $ol_enable_kbind = yes ; then
19145         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19146 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19147    { (exit 1); exit 1; }; }
19148 fi
19149
19150 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19151
19152 cat >>confdefs.h <<\_ACEOF
19153 #define HAVE_KERBEROS 1
19154 _ACEOF
19155
19156
19157 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19158         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19159 echo "$as_me: error: Kerberos detection failed" >&2;}
19160    { (exit 1); exit 1; }; }
19161 fi
19162
19163
19164 ol_link_tls=no
19165 if test $ol_with_tls != no ; then
19166
19167
19168 for ac_header in openssl/ssl.h ssl.h
19169 do
19170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19172   echo "$as_me:$LINENO: checking for $ac_header" >&5
19173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 fi
19177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19179 else
19180   # Is the header compilable?
19181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19183 cat >conftest.$ac_ext <<_ACEOF
19184 /* confdefs.h.  */
19185 _ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h.  */
19189 $ac_includes_default
19190 #include <$ac_header>
19191 _ACEOF
19192 rm -f conftest.$ac_objext
19193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194   (eval $ac_compile) 2>conftest.er1
19195   ac_status=$?
19196   grep -v '^ *+' conftest.er1 >conftest.err
19197   rm -f conftest.er1
19198   cat conftest.err >&5
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); } &&
19201          { ac_try='test -z "$ac_c_werror_flag"
19202                          || test ! -s conftest.err'
19203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204   (eval $ac_try) 2>&5
19205   ac_status=$?
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); }; } &&
19208          { ac_try='test -s conftest.$ac_objext'
19209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210   (eval $ac_try) 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; }; then
19214   ac_header_compiler=yes
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 ac_header_compiler=no
19220 fi
19221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19223 echo "${ECHO_T}$ac_header_compiler" >&6
19224
19225 # Is the header present?
19226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19228 cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h.  */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h.  */
19234 #include <$ac_header>
19235 _ACEOF
19236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19238   ac_status=$?
19239   grep -v '^ *+' conftest.er1 >conftest.err
19240   rm -f conftest.er1
19241   cat conftest.err >&5
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); } >/dev/null; then
19244   if test -s conftest.err; then
19245     ac_cpp_err=$ac_c_preproc_warn_flag
19246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19247   else
19248     ac_cpp_err=
19249   fi
19250 else
19251   ac_cpp_err=yes
19252 fi
19253 if test -z "$ac_cpp_err"; then
19254   ac_header_preproc=yes
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259   ac_header_preproc=no
19260 fi
19261 rm -f conftest.err conftest.$ac_ext
19262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19263 echo "${ECHO_T}$ac_header_preproc" >&6
19264
19265 # So?  What about this header?
19266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19267   yes:no: )
19268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19272     ac_header_preproc=yes
19273     ;;
19274   no:yes:* )
19275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19287     (
19288       cat <<\_ASBOX
19289 ## ------------------------------------------ ##
19290 ## Report this to the AC_PACKAGE_NAME lists.  ##
19291 ## ------------------------------------------ ##
19292 _ASBOX
19293     ) |
19294       sed "s/^/$as_me: WARNING:     /" >&2
19295     ;;
19296 esac
19297 echo "$as_me:$LINENO: checking for $ac_header" >&5
19298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19300   echo $ECHO_N "(cached) $ECHO_C" >&6
19301 else
19302   eval "$as_ac_Header=\$ac_header_preproc"
19303 fi
19304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19306
19307 fi
19308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19309   cat >>confdefs.h <<_ACEOF
19310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19311 _ACEOF
19312
19313 fi
19314
19315 done
19316
19317
19318         if test $ac_cv_header_openssl_ssl_h = yes ||
19319            test $ac_cv_header_ssl_h = yes ; then
19320                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
19321 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
19322 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
19323   echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325   ac_check_lib_save_LIBS=$LIBS
19326 LIBS="-lssl -lcrypto $LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h.  */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h.  */
19333
19334 /* Override any gcc2 internal prototype to avoid an error.  */
19335 #ifdef __cplusplus
19336 extern "C"
19337 #endif
19338 /* We use char because int might match the return type of a gcc2
19339    builtin and then its argument prototype would still apply.  */
19340 char SSLeay_add_ssl_algorithms ();
19341 int
19342 main ()
19343 {
19344 SSLeay_add_ssl_algorithms ();
19345   ;
19346   return 0;
19347 }
19348 _ACEOF
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19351   (eval $ac_link) 2>conftest.er1
19352   ac_status=$?
19353   grep -v '^ *+' conftest.er1 >conftest.err
19354   rm -f conftest.er1
19355   cat conftest.err >&5
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } &&
19358          { ac_try='test -z "$ac_c_werror_flag"
19359                          || test ! -s conftest.err'
19360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361   (eval $ac_try) 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; } &&
19365          { ac_try='test -s conftest$ac_exeext'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; }; then
19371   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
19372 else
19373   echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
19377 fi
19378 rm -f conftest.err conftest.$ac_objext \
19379       conftest$ac_exeext conftest.$ac_ext
19380 LIBS=$ac_check_lib_save_LIBS
19381 fi
19382 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
19383 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
19384 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
19385   have_ssleay=yes
19386                         need_rsaref=no
19387 else
19388   have_ssleay=no
19389 fi
19390
19391
19392                 if test $have_ssleay = no ; then
19393                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19394 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19395 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-lssl -lcrypto $LIBS"
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406
19407 /* Override any gcc2 internal prototype to avoid an error.  */
19408 #ifdef __cplusplus
19409 extern "C"
19410 #endif
19411 /* We use char because int might match the return type of a gcc2
19412    builtin and then its argument prototype would still apply.  */
19413 char SSL_library_init ();
19414 int
19415 main ()
19416 {
19417 SSL_library_init ();
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19424   (eval $ac_link) 2>conftest.er1
19425   ac_status=$?
19426   grep -v '^ *+' conftest.er1 >conftest.err
19427   rm -f conftest.er1
19428   cat conftest.err >&5
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); } &&
19431          { ac_try='test -z "$ac_c_werror_flag"
19432                          || test ! -s conftest.err'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; } &&
19438          { ac_try='test -s conftest$ac_exeext'
19439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440   (eval $ac_try) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; }; then
19444   ac_cv_lib_ssl_SSL_library_init=yes
19445 else
19446   echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 ac_cv_lib_ssl_SSL_library_init=no
19450 fi
19451 rm -f conftest.err conftest.$ac_objext \
19452       conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19454 fi
19455 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19456 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19457 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19458   have_ssleay=yes
19459                                 need_rsaref=no
19460 else
19461   have_ssleay=no
19462 fi
19463
19464                 fi
19465
19466                 if test $have_ssleay = no ; then
19467                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19468 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19469 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19470   echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472   ac_check_lib_save_LIBS=$LIBS
19473 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19474 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h.  */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h.  */
19480
19481 /* Override any gcc2 internal prototype to avoid an error.  */
19482 #ifdef __cplusplus
19483 extern "C"
19484 #endif
19485 /* We use char because int might match the return type of a gcc2
19486    builtin and then its argument prototype would still apply.  */
19487 char ssl3_accept ();
19488 int
19489 main ()
19490 {
19491 ssl3_accept ();
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 rm -f conftest.$ac_objext conftest$ac_exeext
19497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19498   (eval $ac_link) 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } &&
19505          { ac_try='test -z "$ac_c_werror_flag"
19506                          || test ! -s conftest.err'
19507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508   (eval $ac_try) 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; } &&
19512          { ac_try='test -s conftest$ac_exeext'
19513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514   (eval $ac_try) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; }; then
19518   ac_cv_lib_ssl_ssl3_accept=yes
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523 ac_cv_lib_ssl_ssl3_accept=no
19524 fi
19525 rm -f conftest.err conftest.$ac_objext \
19526       conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19528 fi
19529 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19530 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19531 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19532   have_ssleay=yes
19533                                 need_rsaref=yes
19534 else
19535   have_ssleay=no
19536 fi
19537
19538                 fi
19539
19540                 if test $have_ssleay = yes ; then
19541                         ol_with_tls=found
19542                         ol_link_tls=yes
19543
19544
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_SSLEAY 1
19547 _ACEOF
19548
19549
19550                         if test $need_rsaref = yes; then
19551
19552 cat >>confdefs.h <<\_ACEOF
19553 #define HAVE_RSAREF 1
19554 _ACEOF
19555
19556
19557                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19558                         else
19559                                 TLS_LIBS="-lssl -lcrypto"
19560                         fi
19561                 fi
19562                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19563 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19564 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19565   echo $ECHO_N "(cached) $ECHO_C" >&6
19566 else
19567
19568         cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h.  */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h.  */
19574
19575 #ifdef HAVE_OPENSSL_SSL_H
19576 #include <openssl/ssl.h>
19577 #else
19578 #include <ssl.h>
19579 #endif
19580
19581 /* Require 0.9.7d+ */
19582 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19583         char *__ssl_compat = "0.9.7d";
19584 #endif
19585
19586 _ACEOF
19587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19588   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19589   ol_cv_ssl_crl_compat=yes
19590 else
19591   ol_cv_ssl_crl_compat=no
19592 fi
19593 rm -f conftest*
19594
19595 fi
19596 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19597 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19598
19599                 if test $ol_cv_ssl_crl_compat = no ; then
19600                         ol_link_ssl=no
19601                 else
19602
19603 cat >>confdefs.h <<\_ACEOF
19604 #define HAVE_OPENSSL_CRL 1
19605 _ACEOF
19606
19607                 fi
19608         fi
19609
19610 else
19611         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19612 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19613 fi
19614
19615 WITH_TLS=no
19616 if test $ol_link_tls = yes ; then
19617
19618 cat >>confdefs.h <<\_ACEOF
19619 #define HAVE_TLS 1
19620 _ACEOF
19621
19622         WITH_TLS=yes
19623
19624 elif test $ol_with_tls = auto ; then
19625         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19626 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19627         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19628 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19629
19630 elif test $ol_with_tls != no ; then
19631         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19632 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19633    { (exit 1); exit 1; }; }
19634 fi
19635
19636 if test $ol_enable_lmpasswd != no; then
19637         if test $ol_link_tls != yes ; then
19638                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19639 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19640    { (exit 1); exit 1; }; }
19641         fi
19642
19643
19644 cat >>confdefs.h <<\_ACEOF
19645 #define SLAPD_LMHASH 1
19646 _ACEOF
19647
19648 fi
19649
19650 ol_link_threads=no
19651
19652 case $ol_with_threads in auto | yes | nt)
19653
19654
19655         echo "$as_me:$LINENO: checking for _beginthread" >&5
19656 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19657 if test "${ac_cv_func__beginthread+set}" = set; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660   cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19668 #define _beginthread innocuous__beginthread
19669
19670 /* System header to define __stub macros and hopefully few prototypes,
19671     which can conflict with char _beginthread (); below.
19672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673     <limits.h> exists even on freestanding compilers.  */
19674
19675 #ifdef __STDC__
19676 # include <limits.h>
19677 #else
19678 # include <assert.h>
19679 #endif
19680
19681 #undef _beginthread
19682
19683 /* Override any gcc2 internal prototype to avoid an error.  */
19684 #ifdef __cplusplus
19685 extern "C"
19686 {
19687 #endif
19688 /* We use char because int might match the return type of a gcc2
19689    builtin and then its argument prototype would still apply.  */
19690 char _beginthread ();
19691 /* The GNU C library defines this for functions which it implements
19692     to always fail with ENOSYS.  Some functions are actually named
19693     something starting with __ and the normal name is an alias.  */
19694 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19695 choke me
19696 #else
19697 char (*f) () = _beginthread;
19698 #endif
19699 #ifdef __cplusplus
19700 }
19701 #endif
19702
19703 int
19704 main ()
19705 {
19706 return f != _beginthread;
19707   ;
19708   return 0;
19709 }
19710 _ACEOF
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19713   (eval $ac_link) 2>conftest.er1
19714   ac_status=$?
19715   grep -v '^ *+' conftest.er1 >conftest.err
19716   rm -f conftest.er1
19717   cat conftest.err >&5
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); } &&
19720          { ac_try='test -z "$ac_c_werror_flag"
19721                          || test ! -s conftest.err'
19722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723   (eval $ac_try) 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; } &&
19727          { ac_try='test -s conftest$ac_exeext'
19728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729   (eval $ac_try) 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); }; }; then
19733   ac_cv_func__beginthread=yes
19734 else
19735   echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738 ac_cv_func__beginthread=no
19739 fi
19740 rm -f conftest.err conftest.$ac_objext \
19741       conftest$ac_exeext conftest.$ac_ext
19742 fi
19743 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19744 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19745
19746
19747         if test $ac_cv_func__beginthread = yes ; then
19748
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_NT_THREADS 1
19751 _ACEOF
19752
19753                 ol_cv_nt_threads=yes
19754         fi
19755
19756
19757         if test "$ol_cv_nt_threads" = yes ; then
19758                 ol_link_threads=nt
19759                 ol_with_threads=found
19760                 ol_with_yielding_select=yes
19761
19762
19763 cat >>confdefs.h <<\_ACEOF
19764 #define HAVE_NT_SERVICE_MANAGER 1
19765 _ACEOF
19766
19767
19768 cat >>confdefs.h <<\_ACEOF
19769 #define HAVE_NT_EVENT_LOG 1
19770 _ACEOF
19771
19772         fi
19773
19774         if test $ol_with_threads = nt ; then
19775                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19776 echo "$as_me: error: could not locate NT Threads" >&2;}
19777    { (exit 1); exit 1; }; }
19778         fi
19779         ;;
19780 esac
19781
19782 case $ol_with_threads in auto | yes | posix)
19783
19784
19785 for ac_header in pthread.h
19786 do
19787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19789   echo "$as_me:$LINENO: checking for $ac_header" >&5
19790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19792   echo $ECHO_N "(cached) $ECHO_C" >&6
19793 fi
19794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19796 else
19797   # Is the header compilable?
19798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19800 cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h.  */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h.  */
19806 $ac_includes_default
19807 #include <$ac_header>
19808 _ACEOF
19809 rm -f conftest.$ac_objext
19810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19811   (eval $ac_compile) 2>conftest.er1
19812   ac_status=$?
19813   grep -v '^ *+' conftest.er1 >conftest.err
19814   rm -f conftest.er1
19815   cat conftest.err >&5
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); } &&
19818          { ac_try='test -z "$ac_c_werror_flag"
19819                          || test ! -s conftest.err'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; } &&
19825          { ac_try='test -s conftest.$ac_objext'
19826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827   (eval $ac_try) 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); }; }; then
19831   ac_header_compiler=yes
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19835
19836 ac_header_compiler=no
19837 fi
19838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19840 echo "${ECHO_T}$ac_header_compiler" >&6
19841
19842 # Is the header present?
19843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h.  */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h.  */
19851 #include <$ac_header>
19852 _ACEOF
19853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19855   ac_status=$?
19856   grep -v '^ *+' conftest.er1 >conftest.err
19857   rm -f conftest.er1
19858   cat conftest.err >&5
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } >/dev/null; then
19861   if test -s conftest.err; then
19862     ac_cpp_err=$ac_c_preproc_warn_flag
19863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19864   else
19865     ac_cpp_err=
19866   fi
19867 else
19868   ac_cpp_err=yes
19869 fi
19870 if test -z "$ac_cpp_err"; then
19871   ac_header_preproc=yes
19872 else
19873   echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19875
19876   ac_header_preproc=no
19877 fi
19878 rm -f conftest.err conftest.$ac_ext
19879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19880 echo "${ECHO_T}$ac_header_preproc" >&6
19881
19882 # So?  What about this header?
19883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19884   yes:no: )
19885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19889     ac_header_preproc=yes
19890     ;;
19891   no:yes:* )
19892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19894     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19895 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19896     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19898     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19899 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19902     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19904     (
19905       cat <<\_ASBOX
19906 ## ------------------------------------------ ##
19907 ## Report this to the AC_PACKAGE_NAME lists.  ##
19908 ## ------------------------------------------ ##
19909 _ASBOX
19910     ) |
19911       sed "s/^/$as_me: WARNING:     /" >&2
19912     ;;
19913 esac
19914 echo "$as_me:$LINENO: checking for $ac_header" >&5
19915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   eval "$as_ac_Header=\$ac_header_preproc"
19920 fi
19921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19923
19924 fi
19925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19926   cat >>confdefs.h <<_ACEOF
19927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19928 _ACEOF
19929
19930 fi
19931
19932 done
19933
19934
19935         if test $ac_cv_header_pthread_h = yes ; then
19936                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19937 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19938 if test "${ol_cv_pthread_version+set}" = set; then
19939   echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941
19942         cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h.  */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h.  */
19948
19949 #               include <pthread.h>
19950
19951 int
19952 main ()
19953 {
19954
19955                 int i = PTHREAD_CREATE_JOINABLE;
19956
19957   ;
19958   return 0;
19959 }
19960 _ACEOF
19961 rm -f conftest.$ac_objext
19962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19963   (eval $ac_compile) 2>conftest.er1
19964   ac_status=$?
19965   grep -v '^ *+' conftest.er1 >conftest.err
19966   rm -f conftest.er1
19967   cat conftest.err >&5
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); } &&
19970          { ac_try='test -z "$ac_c_werror_flag"
19971                          || test ! -s conftest.err'
19972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973   (eval $ac_try) 2>&5
19974   ac_status=$?
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); }; } &&
19977          { ac_try='test -s conftest.$ac_objext'
19978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979   (eval $ac_try) 2>&5
19980   ac_status=$?
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); }; }; then
19983
19984         cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h.  */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h.  */
19990 #include <pthread.h>
19991
19992 _ACEOF
19993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19994   $EGREP "pthread_detach" >/dev/null 2>&1; then
19995   ol_cv_pthread_version=10
19996 else
19997   ol_cv_pthread_version=8
19998 fi
19999 rm -f conftest*
20000
20001 else
20002   echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20004
20005
20006         cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012
20013 #               include <pthread.h>
20014 #               ifdef PTHREAD_CREATE_UNDETACHED
20015                 draft7
20016 #               endif
20017
20018 _ACEOF
20019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20020   $EGREP "draft7" >/dev/null 2>&1; then
20021   ol_cv_pthread_version=7
20022 else
20023
20024         cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030 #include <pthread.h>
20031
20032 _ACEOF
20033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20034   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20035   ol_cv_pthread_version=6
20036 else
20037
20038         cat >conftest.$ac_ext <<_ACEOF
20039 /* confdefs.h.  */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h.  */
20044
20045 #               include <pthread.h>
20046 #ifdef          PTHREAD_MUTEX_INITIALIZER
20047                 draft5
20048 #endif
20049
20050 _ACEOF
20051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20052   $EGREP "draft5" >/dev/null 2>&1; then
20053   ol_cv_pthread_version=5
20054 else
20055   ol_cv_pthread_version=4
20056 fi
20057 rm -f conftest*
20058
20059 fi
20060 rm -f conftest*
20061
20062 fi
20063 rm -f conftest*
20064
20065 fi
20066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20067
20068 fi
20069 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20070 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20071
20072
20073                 if test $ol_cv_pthread_version != 0 ; then
20074
20075 cat >>confdefs.h <<_ACEOF
20076 #define HAVE_PTHREADS $ol_cv_pthread_version
20077 _ACEOF
20078
20079                 else
20080                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20081 echo "$as_me: error: unknown pthread version" >&2;}
20082    { (exit 1); exit 1; }; }
20083                 fi
20084
20085                 # consider threads found
20086                 ol_with_threads=found
20087
20088
20089         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20090 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20091 if test "${ol_cv_header_linux_threads+set}" = set; then
20092   echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094   cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h.  */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h.  */
20100 #include <pthread.h>
20101 _ACEOF
20102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20103   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20104   ol_cv_header_linux_threads=yes
20105 else
20106   ol_cv_header_linux_threads=no
20107 fi
20108 rm -f conftest*
20109
20110
20111 fi
20112 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20113 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20114         if test $ol_cv_header_linux_threads = yes; then
20115
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_LINUX_THREADS 1
20118 _ACEOF
20119
20120         fi
20121
20122
20123         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20124 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20125 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20126   echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128   cat >conftest.$ac_ext <<_ACEOF
20129 /* confdefs.h.  */
20130 _ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h.  */
20134 #include <pthread.h>
20135 #ifdef _POSIX_THREAD_IS_GNU_PTH
20136         __gnu_pth__;
20137 #endif
20138
20139 _ACEOF
20140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20141   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20142   ol_cv_header_gnu_pth_pthread_h=yes
20143 else
20144   ol_cv_header_gnu_pth_pthread_h=no
20145 fi
20146 rm -f conftest*
20147
20148
20149 fi
20150 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20151 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20152
20153
20154                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20155
20156 for ac_header in sched.h
20157 do
20158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160   echo "$as_me:$LINENO: checking for $ac_header" >&5
20161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163   echo $ECHO_N "(cached) $ECHO_C" >&6
20164 fi
20165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20167 else
20168   # Is the header compilable?
20169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177 $ac_includes_default
20178 #include <$ac_header>
20179 _ACEOF
20180 rm -f conftest.$ac_objext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20182   (eval $ac_compile) 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } &&
20189          { ac_try='test -z "$ac_c_werror_flag"
20190                          || test ! -s conftest.err'
20191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192   (eval $ac_try) 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); }; } &&
20196          { ac_try='test -s conftest.$ac_objext'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   ac_header_compiler=yes
20203 else
20204   echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 ac_header_compiler=no
20208 fi
20209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20211 echo "${ECHO_T}$ac_header_compiler" >&6
20212
20213 # Is the header present?
20214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 #include <$ac_header>
20223 _ACEOF
20224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } >/dev/null; then
20232   if test -s conftest.err; then
20233     ac_cpp_err=$ac_c_preproc_warn_flag
20234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20235   else
20236     ac_cpp_err=
20237   fi
20238 else
20239   ac_cpp_err=yes
20240 fi
20241 if test -z "$ac_cpp_err"; then
20242   ac_header_preproc=yes
20243 else
20244   echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247   ac_header_preproc=no
20248 fi
20249 rm -f conftest.err conftest.$ac_ext
20250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20251 echo "${ECHO_T}$ac_header_preproc" >&6
20252
20253 # So?  What about this header?
20254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20255   yes:no: )
20256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20260     ac_header_preproc=yes
20261     ;;
20262   no:yes:* )
20263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20265     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20266 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20267     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20269     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20270 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20273     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20275     (
20276       cat <<\_ASBOX
20277 ## ------------------------------------------ ##
20278 ## Report this to the AC_PACKAGE_NAME lists.  ##
20279 ## ------------------------------------------ ##
20280 _ASBOX
20281     ) |
20282       sed "s/^/$as_me: WARNING:     /" >&2
20283     ;;
20284 esac
20285 echo "$as_me:$LINENO: checking for $ac_header" >&5
20286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20288   echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290   eval "$as_ac_Header=\$ac_header_preproc"
20291 fi
20292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20294
20295 fi
20296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20297   cat >>confdefs.h <<_ACEOF
20298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20299 _ACEOF
20300
20301 fi
20302
20303 done
20304
20305                 fi
20306
20307
20308                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20309 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20310 if test "${ol_cv_pthread_create+set}" = set; then
20311   echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313
20314                         if test "$cross_compiling" = yes; then
20315   cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321
20322 /* pthread test headers */
20323 #include <pthread.h>
20324 #if HAVE_PTHREADS < 7
20325 #include <errno.h>
20326 #endif
20327 #ifndef NULL
20328 #define NULL (void*)0
20329 #endif
20330
20331 static void *task(p)
20332         void *p;
20333 {
20334         return (void *) (p == NULL);
20335 }
20336
20337 int
20338 main ()
20339 {
20340
20341         /* pthread test function */
20342 #ifndef PTHREAD_CREATE_DETACHED
20343 #define PTHREAD_CREATE_DETACHED 1
20344 #endif
20345         pthread_t t;
20346         int status;
20347         int detach = PTHREAD_CREATE_DETACHED;
20348
20349 #if HAVE_PTHREADS > 4
20350         /* Final pthreads */
20351         pthread_attr_t attr;
20352
20353         status = pthread_attr_init(&attr);
20354         if( status ) return status;
20355
20356 #if HAVE_PTHREADS < 7
20357         status = pthread_attr_setdetachstate(&attr, &detach);
20358         if( status < 0 ) status = errno;
20359 #else
20360         status = pthread_attr_setdetachstate(&attr, detach);
20361 #endif
20362         if( status ) return status;
20363         status = pthread_create( &t, &attr, task, NULL );
20364 #if HAVE_PTHREADS < 7
20365         if( status < 0 ) status = errno;
20366 #endif
20367         if( status ) return status;
20368 #else
20369         /* Draft 4 pthreads */
20370         status = pthread_create( &t, pthread_attr_default, task, NULL );
20371         if( status ) return errno;
20372
20373         /* give thread a chance to complete */
20374         /* it should remain joinable and hence detachable */
20375         sleep( 1 );
20376
20377         status = pthread_detach( &t );
20378         if( status ) return errno;
20379 #endif
20380
20381 #ifdef HAVE_LINUX_THREADS
20382         pthread_kill_other_threads_np();
20383 #endif
20384
20385         return 0;
20386
20387   ;
20388   return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393   (eval $ac_link) 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } &&
20400          { ac_try='test -z "$ac_c_werror_flag"
20401                          || test ! -s conftest.err'
20402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403   (eval $ac_try) 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; } &&
20407          { ac_try='test -s conftest$ac_exeext'
20408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409   (eval $ac_try) 2>&5
20410   ac_status=$?
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); }; }; then
20413   ol_cv_pthread_create=yes
20414 else
20415   echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 ol_cv_pthread_create=no
20419 fi
20420 rm -f conftest.err conftest.$ac_objext \
20421       conftest$ac_exeext conftest.$ac_ext
20422 else
20423   cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h.  */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h.  */
20429
20430 /* pthread test headers */
20431 #include <pthread.h>
20432 #if HAVE_PTHREADS < 7
20433 #include <errno.h>
20434 #endif
20435 #ifndef NULL
20436 #define NULL (void*)0
20437 #endif
20438
20439 static void *task(p)
20440         void *p;
20441 {
20442         return (void *) (p == NULL);
20443 }
20444
20445
20446 int main(argc, argv)
20447         int argc;
20448         char **argv;
20449 {
20450
20451         /* pthread test function */
20452 #ifndef PTHREAD_CREATE_DETACHED
20453 #define PTHREAD_CREATE_DETACHED 1
20454 #endif
20455         pthread_t t;
20456         int status;
20457         int detach = PTHREAD_CREATE_DETACHED;
20458
20459 #if HAVE_PTHREADS > 4
20460         /* Final pthreads */
20461         pthread_attr_t attr;
20462
20463         status = pthread_attr_init(&attr);
20464         if( status ) return status;
20465
20466 #if HAVE_PTHREADS < 7
20467         status = pthread_attr_setdetachstate(&attr, &detach);
20468         if( status < 0 ) status = errno;
20469 #else
20470         status = pthread_attr_setdetachstate(&attr, detach);
20471 #endif
20472         if( status ) return status;
20473         status = pthread_create( &t, &attr, task, NULL );
20474 #if HAVE_PTHREADS < 7
20475         if( status < 0 ) status = errno;
20476 #endif
20477         if( status ) return status;
20478 #else
20479         /* Draft 4 pthreads */
20480         status = pthread_create( &t, pthread_attr_default, task, NULL );
20481         if( status ) return errno;
20482
20483         /* give thread a chance to complete */
20484         /* it should remain joinable and hence detachable */
20485         sleep( 1 );
20486
20487         status = pthread_detach( &t );
20488         if( status ) return errno;
20489 #endif
20490
20491 #ifdef HAVE_LINUX_THREADS
20492         pthread_kill_other_threads_np();
20493 #endif
20494
20495         return 0;
20496
20497 }
20498
20499 _ACEOF
20500 rm -f conftest$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502   (eval $ac_link) 2>&5
20503   ac_status=$?
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507   (eval $ac_try) 2>&5
20508   ac_status=$?
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); }; }; then
20511   ol_cv_pthread_create=yes
20512 else
20513   echo "$as_me: program exited with status $ac_status" >&5
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 ( exit $ac_status )
20518 ol_cv_pthread_create=no
20519 fi
20520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20521 fi
20522 fi
20523 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20524 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20525
20526                 if test $ol_cv_pthread_create != no ; then
20527                         ol_link_threads=posix
20528                         ol_link_pthreads=""
20529                 fi
20530
20531                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20532 if test "$ol_link_threads" = no ; then
20533         # try -kthread
20534         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20535 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20536 if test "${ol_cv_pthread_kthread+set}" = set; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539
20540                 # save the flags
20541                 ol_LIBS="$LIBS"
20542                 LIBS="-kthread $LIBS"
20543
20544                 if test "$cross_compiling" = yes; then
20545   cat >conftest.$ac_ext <<_ACEOF
20546 /* confdefs.h.  */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h.  */
20551
20552 /* pthread test headers */
20553 #include <pthread.h>
20554 #if HAVE_PTHREADS < 7
20555 #include <errno.h>
20556 #endif
20557 #ifndef NULL
20558 #define NULL (void*)0
20559 #endif
20560
20561 static void *task(p)
20562         void *p;
20563 {
20564         return (void *) (p == NULL);
20565 }
20566
20567 int
20568 main ()
20569 {
20570
20571         /* pthread test function */
20572 #ifndef PTHREAD_CREATE_DETACHED
20573 #define PTHREAD_CREATE_DETACHED 1
20574 #endif
20575         pthread_t t;
20576         int status;
20577         int detach = PTHREAD_CREATE_DETACHED;
20578
20579 #if HAVE_PTHREADS > 4
20580         /* Final pthreads */
20581         pthread_attr_t attr;
20582
20583         status = pthread_attr_init(&attr);
20584         if( status ) return status;
20585
20586 #if HAVE_PTHREADS < 7
20587         status = pthread_attr_setdetachstate(&attr, &detach);
20588         if( status < 0 ) status = errno;
20589 #else
20590         status = pthread_attr_setdetachstate(&attr, detach);
20591 #endif
20592         if( status ) return status;
20593         status = pthread_create( &t, &attr, task, NULL );
20594 #if HAVE_PTHREADS < 7
20595         if( status < 0 ) status = errno;
20596 #endif
20597         if( status ) return status;
20598 #else
20599         /* Draft 4 pthreads */
20600         status = pthread_create( &t, pthread_attr_default, task, NULL );
20601         if( status ) return errno;
20602
20603         /* give thread a chance to complete */
20604         /* it should remain joinable and hence detachable */
20605         sleep( 1 );
20606
20607         status = pthread_detach( &t );
20608         if( status ) return errno;
20609 #endif
20610
20611 #ifdef HAVE_LINUX_THREADS
20612         pthread_kill_other_threads_np();
20613 #endif
20614
20615         return 0;
20616
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623   (eval $ac_link) 2>conftest.er1
20624   ac_status=$?
20625   grep -v '^ *+' conftest.er1 >conftest.err
20626   rm -f conftest.er1
20627   cat conftest.err >&5
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); } &&
20630          { ac_try='test -z "$ac_c_werror_flag"
20631                          || test ! -s conftest.err'
20632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633   (eval $ac_try) 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); }; } &&
20637          { ac_try='test -s conftest$ac_exeext'
20638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639   (eval $ac_try) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; }; then
20643   ol_cv_pthread_kthread=yes
20644 else
20645   echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648 ol_cv_pthread_kthread=no
20649 fi
20650 rm -f conftest.err conftest.$ac_objext \
20651       conftest$ac_exeext conftest.$ac_ext
20652 else
20653   cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659
20660 /* pthread test headers */
20661 #include <pthread.h>
20662 #if HAVE_PTHREADS < 7
20663 #include <errno.h>
20664 #endif
20665 #ifndef NULL
20666 #define NULL (void*)0
20667 #endif
20668
20669 static void *task(p)
20670         void *p;
20671 {
20672         return (void *) (p == NULL);
20673 }
20674
20675
20676 int main(argc, argv)
20677         int argc;
20678         char **argv;
20679 {
20680
20681         /* pthread test function */
20682 #ifndef PTHREAD_CREATE_DETACHED
20683 #define PTHREAD_CREATE_DETACHED 1
20684 #endif
20685         pthread_t t;
20686         int status;
20687         int detach = PTHREAD_CREATE_DETACHED;
20688
20689 #if HAVE_PTHREADS > 4
20690         /* Final pthreads */
20691         pthread_attr_t attr;
20692
20693         status = pthread_attr_init(&attr);
20694         if( status ) return status;
20695
20696 #if HAVE_PTHREADS < 7
20697         status = pthread_attr_setdetachstate(&attr, &detach);
20698         if( status < 0 ) status = errno;
20699 #else
20700         status = pthread_attr_setdetachstate(&attr, detach);
20701 #endif
20702         if( status ) return status;
20703         status = pthread_create( &t, &attr, task, NULL );
20704 #if HAVE_PTHREADS < 7
20705         if( status < 0 ) status = errno;
20706 #endif
20707         if( status ) return status;
20708 #else
20709         /* Draft 4 pthreads */
20710         status = pthread_create( &t, pthread_attr_default, task, NULL );
20711         if( status ) return errno;
20712
20713         /* give thread a chance to complete */
20714         /* it should remain joinable and hence detachable */
20715         sleep( 1 );
20716
20717         status = pthread_detach( &t );
20718         if( status ) return errno;
20719 #endif
20720
20721 #ifdef HAVE_LINUX_THREADS
20722         pthread_kill_other_threads_np();
20723 #endif
20724
20725         return 0;
20726
20727 }
20728
20729 _ACEOF
20730 rm -f conftest$ac_exeext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20732   (eval $ac_link) 2>&5
20733   ac_status=$?
20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737   (eval $ac_try) 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; }; then
20741   ol_cv_pthread_kthread=yes
20742 else
20743   echo "$as_me: program exited with status $ac_status" >&5
20744 echo "$as_me: failed program was:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20746
20747 ( exit $ac_status )
20748 ol_cv_pthread_kthread=no
20749 fi
20750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20751 fi
20752
20753                 # restore the LIBS
20754                 LIBS="$ol_LIBS"
20755
20756 fi
20757 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20758 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20759
20760         if test $ol_cv_pthread_kthread = yes ; then
20761                 ol_link_pthreads="-kthread"
20762                 ol_link_threads=posix
20763         fi
20764 fi
20765
20766                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20767 if test "$ol_link_threads" = no ; then
20768         # try -pthread
20769         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20770 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20771 if test "${ol_cv_pthread_pthread+set}" = set; then
20772   echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774
20775                 # save the flags
20776                 ol_LIBS="$LIBS"
20777                 LIBS="-pthread $LIBS"
20778
20779                 if test "$cross_compiling" = yes; then
20780   cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h.  */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h.  */
20786
20787 /* pthread test headers */
20788 #include <pthread.h>
20789 #if HAVE_PTHREADS < 7
20790 #include <errno.h>
20791 #endif
20792 #ifndef NULL
20793 #define NULL (void*)0
20794 #endif
20795
20796 static void *task(p)
20797         void *p;
20798 {
20799         return (void *) (p == NULL);
20800 }
20801
20802 int
20803 main ()
20804 {
20805
20806         /* pthread test function */
20807 #ifndef PTHREAD_CREATE_DETACHED
20808 #define PTHREAD_CREATE_DETACHED 1
20809 #endif
20810         pthread_t t;
20811         int status;
20812         int detach = PTHREAD_CREATE_DETACHED;
20813
20814 #if HAVE_PTHREADS > 4
20815         /* Final pthreads */
20816         pthread_attr_t attr;
20817
20818         status = pthread_attr_init(&attr);
20819         if( status ) return status;
20820
20821 #if HAVE_PTHREADS < 7
20822         status = pthread_attr_setdetachstate(&attr, &detach);
20823         if( status < 0 ) status = errno;
20824 #else
20825         status = pthread_attr_setdetachstate(&attr, detach);
20826 #endif
20827         if( status ) return status;
20828         status = pthread_create( &t, &attr, task, NULL );
20829 #if HAVE_PTHREADS < 7
20830         if( status < 0 ) status = errno;
20831 #endif
20832         if( status ) return status;
20833 #else
20834         /* Draft 4 pthreads */
20835         status = pthread_create( &t, pthread_attr_default, task, NULL );
20836         if( status ) return errno;
20837
20838         /* give thread a chance to complete */
20839         /* it should remain joinable and hence detachable */
20840         sleep( 1 );
20841
20842         status = pthread_detach( &t );
20843         if( status ) return errno;
20844 #endif
20845
20846 #ifdef HAVE_LINUX_THREADS
20847         pthread_kill_other_threads_np();
20848 #endif
20849
20850         return 0;
20851
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858   (eval $ac_link) 2>conftest.er1
20859   ac_status=$?
20860   grep -v '^ *+' conftest.er1 >conftest.err
20861   rm -f conftest.er1
20862   cat conftest.err >&5
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -z "$ac_c_werror_flag"
20866                          || test ! -s conftest.err'
20867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868   (eval $ac_try) 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; } &&
20872          { ac_try='test -s conftest$ac_exeext'
20873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874   (eval $ac_try) 2>&5
20875   ac_status=$?
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); }; }; then
20878   ol_cv_pthread_pthread=yes
20879 else
20880   echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 ol_cv_pthread_pthread=no
20884 fi
20885 rm -f conftest.err conftest.$ac_objext \
20886       conftest$ac_exeext conftest.$ac_ext
20887 else
20888   cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894
20895 /* pthread test headers */
20896 #include <pthread.h>
20897 #if HAVE_PTHREADS < 7
20898 #include <errno.h>
20899 #endif
20900 #ifndef NULL
20901 #define NULL (void*)0
20902 #endif
20903
20904 static void *task(p)
20905         void *p;
20906 {
20907         return (void *) (p == NULL);
20908 }
20909
20910
20911 int main(argc, argv)
20912         int argc;
20913         char **argv;
20914 {
20915
20916         /* pthread test function */
20917 #ifndef PTHREAD_CREATE_DETACHED
20918 #define PTHREAD_CREATE_DETACHED 1
20919 #endif
20920         pthread_t t;
20921         int status;
20922         int detach = PTHREAD_CREATE_DETACHED;
20923
20924 #if HAVE_PTHREADS > 4
20925         /* Final pthreads */
20926         pthread_attr_t attr;
20927
20928         status = pthread_attr_init(&attr);
20929         if( status ) return status;
20930
20931 #if HAVE_PTHREADS < 7
20932         status = pthread_attr_setdetachstate(&attr, &detach);
20933         if( status < 0 ) status = errno;
20934 #else
20935         status = pthread_attr_setdetachstate(&attr, detach);
20936 #endif
20937         if( status ) return status;
20938         status = pthread_create( &t, &attr, task, NULL );
20939 #if HAVE_PTHREADS < 7
20940         if( status < 0 ) status = errno;
20941 #endif
20942         if( status ) return status;
20943 #else
20944         /* Draft 4 pthreads */
20945         status = pthread_create( &t, pthread_attr_default, task, NULL );
20946         if( status ) return errno;
20947
20948         /* give thread a chance to complete */
20949         /* it should remain joinable and hence detachable */
20950         sleep( 1 );
20951
20952         status = pthread_detach( &t );
20953         if( status ) return errno;
20954 #endif
20955
20956 #ifdef HAVE_LINUX_THREADS
20957         pthread_kill_other_threads_np();
20958 #endif
20959
20960         return 0;
20961
20962 }
20963
20964 _ACEOF
20965 rm -f conftest$ac_exeext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20967   (eval $ac_link) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972   (eval $ac_try) 2>&5
20973   ac_status=$?
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); }; }; then
20976   ol_cv_pthread_pthread=yes
20977 else
20978   echo "$as_me: program exited with status $ac_status" >&5
20979 echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20981
20982 ( exit $ac_status )
20983 ol_cv_pthread_pthread=no
20984 fi
20985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20986 fi
20987
20988                 # restore the LIBS
20989                 LIBS="$ol_LIBS"
20990
20991 fi
20992 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20993 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20994
20995         if test $ol_cv_pthread_pthread = yes ; then
20996                 ol_link_pthreads="-pthread"
20997                 ol_link_threads=posix
20998         fi
20999 fi
21000
21001                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21002 if test "$ol_link_threads" = no ; then
21003         # try -pthreads
21004         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21005 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21006 if test "${ol_cv_pthread_pthreads+set}" = set; then
21007   echo $ECHO_N "(cached) $ECHO_C" >&6
21008 else
21009
21010                 # save the flags
21011                 ol_LIBS="$LIBS"
21012                 LIBS="-pthreads $LIBS"
21013
21014                 if test "$cross_compiling" = yes; then
21015   cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h.  */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h.  */
21021
21022 /* pthread test headers */
21023 #include <pthread.h>
21024 #if HAVE_PTHREADS < 7
21025 #include <errno.h>
21026 #endif
21027 #ifndef NULL
21028 #define NULL (void*)0
21029 #endif
21030
21031 static void *task(p)
21032         void *p;
21033 {
21034         return (void *) (p == NULL);
21035 }
21036
21037 int
21038 main ()
21039 {
21040
21041         /* pthread test function */
21042 #ifndef PTHREAD_CREATE_DETACHED
21043 #define PTHREAD_CREATE_DETACHED 1
21044 #endif
21045         pthread_t t;
21046         int status;
21047         int detach = PTHREAD_CREATE_DETACHED;
21048
21049 #if HAVE_PTHREADS > 4
21050         /* Final pthreads */
21051         pthread_attr_t attr;
21052
21053         status = pthread_attr_init(&attr);
21054         if( status ) return status;
21055
21056 #if HAVE_PTHREADS < 7
21057         status = pthread_attr_setdetachstate(&attr, &detach);
21058         if( status < 0 ) status = errno;
21059 #else
21060         status = pthread_attr_setdetachstate(&attr, detach);
21061 #endif
21062         if( status ) return status;
21063         status = pthread_create( &t, &attr, task, NULL );
21064 #if HAVE_PTHREADS < 7
21065         if( status < 0 ) status = errno;
21066 #endif
21067         if( status ) return status;
21068 #else
21069         /* Draft 4 pthreads */
21070         status = pthread_create( &t, pthread_attr_default, task, NULL );
21071         if( status ) return errno;
21072
21073         /* give thread a chance to complete */
21074         /* it should remain joinable and hence detachable */
21075         sleep( 1 );
21076
21077         status = pthread_detach( &t );
21078         if( status ) return errno;
21079 #endif
21080
21081 #ifdef HAVE_LINUX_THREADS
21082         pthread_kill_other_threads_np();
21083 #endif
21084
21085         return 0;
21086
21087   ;
21088   return 0;
21089 }
21090 _ACEOF
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21093   (eval $ac_link) 2>conftest.er1
21094   ac_status=$?
21095   grep -v '^ *+' conftest.er1 >conftest.err
21096   rm -f conftest.er1
21097   cat conftest.err >&5
21098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099   (exit $ac_status); } &&
21100          { ac_try='test -z "$ac_c_werror_flag"
21101                          || test ! -s conftest.err'
21102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103   (eval $ac_try) 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); }; } &&
21107          { ac_try='test -s conftest$ac_exeext'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   ol_cv_pthread_pthreads=yes
21114 else
21115   echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 ol_cv_pthread_pthreads=no
21119 fi
21120 rm -f conftest.err conftest.$ac_objext \
21121       conftest$ac_exeext conftest.$ac_ext
21122 else
21123   cat >conftest.$ac_ext <<_ACEOF
21124 /* confdefs.h.  */
21125 _ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h.  */
21129
21130 /* pthread test headers */
21131 #include <pthread.h>
21132 #if HAVE_PTHREADS < 7
21133 #include <errno.h>
21134 #endif
21135 #ifndef NULL
21136 #define NULL (void*)0
21137 #endif
21138
21139 static void *task(p)
21140         void *p;
21141 {
21142         return (void *) (p == NULL);
21143 }
21144
21145
21146 int main(argc, argv)
21147         int argc;
21148         char **argv;
21149 {
21150
21151         /* pthread test function */
21152 #ifndef PTHREAD_CREATE_DETACHED
21153 #define PTHREAD_CREATE_DETACHED 1
21154 #endif
21155         pthread_t t;
21156         int status;
21157         int detach = PTHREAD_CREATE_DETACHED;
21158
21159 #if HAVE_PTHREADS > 4
21160         /* Final pthreads */
21161         pthread_attr_t attr;
21162
21163         status = pthread_attr_init(&attr);
21164         if( status ) return status;
21165
21166 #if HAVE_PTHREADS < 7
21167         status = pthread_attr_setdetachstate(&attr, &detach);
21168         if( status < 0 ) status = errno;
21169 #else
21170         status = pthread_attr_setdetachstate(&attr, detach);
21171 #endif
21172         if( status ) return status;
21173         status = pthread_create( &t, &attr, task, NULL );
21174 #if HAVE_PTHREADS < 7
21175         if( status < 0 ) status = errno;
21176 #endif
21177         if( status ) return status;
21178 #else
21179         /* Draft 4 pthreads */
21180         status = pthread_create( &t, pthread_attr_default, task, NULL );
21181         if( status ) return errno;
21182
21183         /* give thread a chance to complete */
21184         /* it should remain joinable and hence detachable */
21185         sleep( 1 );
21186
21187         status = pthread_detach( &t );
21188         if( status ) return errno;
21189 #endif
21190
21191 #ifdef HAVE_LINUX_THREADS
21192         pthread_kill_other_threads_np();
21193 #endif
21194
21195         return 0;
21196
21197 }
21198
21199 _ACEOF
21200 rm -f conftest$ac_exeext
21201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21202   (eval $ac_link) 2>&5
21203   ac_status=$?
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207   (eval $ac_try) 2>&5
21208   ac_status=$?
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); }; }; then
21211   ol_cv_pthread_pthreads=yes
21212 else
21213   echo "$as_me: program exited with status $ac_status" >&5
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217 ( exit $ac_status )
21218 ol_cv_pthread_pthreads=no
21219 fi
21220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21221 fi
21222
21223                 # restore the LIBS
21224                 LIBS="$ol_LIBS"
21225
21226 fi
21227 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21228 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21229
21230         if test $ol_cv_pthread_pthreads = yes ; then
21231                 ol_link_pthreads="-pthreads"
21232                 ol_link_threads=posix
21233         fi
21234 fi
21235
21236                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21237 if test "$ol_link_threads" = no ; then
21238         # try -mthreads
21239         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21240 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21241 if test "${ol_cv_pthread_mthreads+set}" = set; then
21242   echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244
21245                 # save the flags
21246                 ol_LIBS="$LIBS"
21247                 LIBS="-mthreads $LIBS"
21248
21249                 if test "$cross_compiling" = yes; then
21250   cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h.  */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h.  */
21256
21257 /* pthread test headers */
21258 #include <pthread.h>
21259 #if HAVE_PTHREADS < 7
21260 #include <errno.h>
21261 #endif
21262 #ifndef NULL
21263 #define NULL (void*)0
21264 #endif
21265
21266 static void *task(p)
21267         void *p;
21268 {
21269         return (void *) (p == NULL);
21270 }
21271
21272 int
21273 main ()
21274 {
21275
21276         /* pthread test function */
21277 #ifndef PTHREAD_CREATE_DETACHED
21278 #define PTHREAD_CREATE_DETACHED 1
21279 #endif
21280         pthread_t t;
21281         int status;
21282         int detach = PTHREAD_CREATE_DETACHED;
21283
21284 #if HAVE_PTHREADS > 4
21285         /* Final pthreads */
21286         pthread_attr_t attr;
21287
21288         status = pthread_attr_init(&attr);
21289         if( status ) return status;
21290
21291 #if HAVE_PTHREADS < 7
21292         status = pthread_attr_setdetachstate(&attr, &detach);
21293         if( status < 0 ) status = errno;
21294 #else
21295         status = pthread_attr_setdetachstate(&attr, detach);
21296 #endif
21297         if( status ) return status;
21298         status = pthread_create( &t, &attr, task, NULL );
21299 #if HAVE_PTHREADS < 7
21300         if( status < 0 ) status = errno;
21301 #endif
21302         if( status ) return status;
21303 #else
21304         /* Draft 4 pthreads */
21305         status = pthread_create( &t, pthread_attr_default, task, NULL );
21306         if( status ) return errno;
21307
21308         /* give thread a chance to complete */
21309         /* it should remain joinable and hence detachable */
21310         sleep( 1 );
21311
21312         status = pthread_detach( &t );
21313         if( status ) return errno;
21314 #endif
21315
21316 #ifdef HAVE_LINUX_THREADS
21317         pthread_kill_other_threads_np();
21318 #endif
21319
21320         return 0;
21321
21322   ;
21323   return 0;
21324 }
21325 _ACEOF
21326 rm -f conftest.$ac_objext conftest$ac_exeext
21327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21328   (eval $ac_link) 2>conftest.er1
21329   ac_status=$?
21330   grep -v '^ *+' conftest.er1 >conftest.err
21331   rm -f conftest.er1
21332   cat conftest.err >&5
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); } &&
21335          { ac_try='test -z "$ac_c_werror_flag"
21336                          || test ! -s conftest.err'
21337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338   (eval $ac_try) 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); }; } &&
21342          { ac_try='test -s conftest$ac_exeext'
21343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344   (eval $ac_try) 2>&5
21345   ac_status=$?
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); }; }; then
21348   ol_cv_pthread_mthreads=yes
21349 else
21350   echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21352
21353 ol_cv_pthread_mthreads=no
21354 fi
21355 rm -f conftest.err conftest.$ac_objext \
21356       conftest$ac_exeext conftest.$ac_ext
21357 else
21358   cat >conftest.$ac_ext <<_ACEOF
21359 /* confdefs.h.  */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h.  */
21364
21365 /* pthread test headers */
21366 #include <pthread.h>
21367 #if HAVE_PTHREADS < 7
21368 #include <errno.h>
21369 #endif
21370 #ifndef NULL
21371 #define NULL (void*)0
21372 #endif
21373
21374 static void *task(p)
21375         void *p;
21376 {
21377         return (void *) (p == NULL);
21378 }
21379
21380
21381 int main(argc, argv)
21382         int argc;
21383         char **argv;
21384 {
21385
21386         /* pthread test function */
21387 #ifndef PTHREAD_CREATE_DETACHED
21388 #define PTHREAD_CREATE_DETACHED 1
21389 #endif
21390         pthread_t t;
21391         int status;
21392         int detach = PTHREAD_CREATE_DETACHED;
21393
21394 #if HAVE_PTHREADS > 4
21395         /* Final pthreads */
21396         pthread_attr_t attr;
21397
21398         status = pthread_attr_init(&attr);
21399         if( status ) return status;
21400
21401 #if HAVE_PTHREADS < 7
21402         status = pthread_attr_setdetachstate(&attr, &detach);
21403         if( status < 0 ) status = errno;
21404 #else
21405         status = pthread_attr_setdetachstate(&attr, detach);
21406 #endif
21407         if( status ) return status;
21408         status = pthread_create( &t, &attr, task, NULL );
21409 #if HAVE_PTHREADS < 7
21410         if( status < 0 ) status = errno;
21411 #endif
21412         if( status ) return status;
21413 #else
21414         /* Draft 4 pthreads */
21415         status = pthread_create( &t, pthread_attr_default, task, NULL );
21416         if( status ) return errno;
21417
21418         /* give thread a chance to complete */
21419         /* it should remain joinable and hence detachable */
21420         sleep( 1 );
21421
21422         status = pthread_detach( &t );
21423         if( status ) return errno;
21424 #endif
21425
21426 #ifdef HAVE_LINUX_THREADS
21427         pthread_kill_other_threads_np();
21428 #endif
21429
21430         return 0;
21431
21432 }
21433
21434 _ACEOF
21435 rm -f conftest$ac_exeext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437   (eval $ac_link) 2>&5
21438   ac_status=$?
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442   (eval $ac_try) 2>&5
21443   ac_status=$?
21444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445   (exit $ac_status); }; }; then
21446   ol_cv_pthread_mthreads=yes
21447 else
21448   echo "$as_me: program exited with status $ac_status" >&5
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21451
21452 ( exit $ac_status )
21453 ol_cv_pthread_mthreads=no
21454 fi
21455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21456 fi
21457
21458                 # restore the LIBS
21459                 LIBS="$ol_LIBS"
21460
21461 fi
21462 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21463 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21464
21465         if test $ol_cv_pthread_mthreads = yes ; then
21466                 ol_link_pthreads="-mthreads"
21467                 ol_link_threads=posix
21468         fi
21469 fi
21470
21471                 # Pthread try link: -thread (ol_cv_pthread_thread)
21472 if test "$ol_link_threads" = no ; then
21473         # try -thread
21474         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21475 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21476 if test "${ol_cv_pthread_thread+set}" = set; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479
21480                 # save the flags
21481                 ol_LIBS="$LIBS"
21482                 LIBS="-thread $LIBS"
21483
21484                 if test "$cross_compiling" = yes; then
21485   cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491
21492 /* pthread test headers */
21493 #include <pthread.h>
21494 #if HAVE_PTHREADS < 7
21495 #include <errno.h>
21496 #endif
21497 #ifndef NULL
21498 #define NULL (void*)0
21499 #endif
21500
21501 static void *task(p)
21502         void *p;
21503 {
21504         return (void *) (p == NULL);
21505 }
21506
21507 int
21508 main ()
21509 {
21510
21511         /* pthread test function */
21512 #ifndef PTHREAD_CREATE_DETACHED
21513 #define PTHREAD_CREATE_DETACHED 1
21514 #endif
21515         pthread_t t;
21516         int status;
21517         int detach = PTHREAD_CREATE_DETACHED;
21518
21519 #if HAVE_PTHREADS > 4
21520         /* Final pthreads */
21521         pthread_attr_t attr;
21522
21523         status = pthread_attr_init(&attr);
21524         if( status ) return status;
21525
21526 #if HAVE_PTHREADS < 7
21527         status = pthread_attr_setdetachstate(&attr, &detach);
21528         if( status < 0 ) status = errno;
21529 #else
21530         status = pthread_attr_setdetachstate(&attr, detach);
21531 #endif
21532         if( status ) return status;
21533         status = pthread_create( &t, &attr, task, NULL );
21534 #if HAVE_PTHREADS < 7
21535         if( status < 0 ) status = errno;
21536 #endif
21537         if( status ) return status;
21538 #else
21539         /* Draft 4 pthreads */
21540         status = pthread_create( &t, pthread_attr_default, task, NULL );
21541         if( status ) return errno;
21542
21543         /* give thread a chance to complete */
21544         /* it should remain joinable and hence detachable */
21545         sleep( 1 );
21546
21547         status = pthread_detach( &t );
21548         if( status ) return errno;
21549 #endif
21550
21551 #ifdef HAVE_LINUX_THREADS
21552         pthread_kill_other_threads_np();
21553 #endif
21554
21555         return 0;
21556
21557   ;
21558   return 0;
21559 }
21560 _ACEOF
21561 rm -f conftest.$ac_objext conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563   (eval $ac_link) 2>conftest.er1
21564   ac_status=$?
21565   grep -v '^ *+' conftest.er1 >conftest.err
21566   rm -f conftest.er1
21567   cat conftest.err >&5
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); } &&
21570          { ac_try='test -z "$ac_c_werror_flag"
21571                          || test ! -s conftest.err'
21572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573   (eval $ac_try) 2>&5
21574   ac_status=$?
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); }; } &&
21577          { ac_try='test -s conftest$ac_exeext'
21578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579   (eval $ac_try) 2>&5
21580   ac_status=$?
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); }; }; then
21583   ol_cv_pthread_thread=yes
21584 else
21585   echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588 ol_cv_pthread_thread=no
21589 fi
21590 rm -f conftest.err conftest.$ac_objext \
21591       conftest$ac_exeext conftest.$ac_ext
21592 else
21593   cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h.  */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h.  */
21599
21600 /* pthread test headers */
21601 #include <pthread.h>
21602 #if HAVE_PTHREADS < 7
21603 #include <errno.h>
21604 #endif
21605 #ifndef NULL
21606 #define NULL (void*)0
21607 #endif
21608
21609 static void *task(p)
21610         void *p;
21611 {
21612         return (void *) (p == NULL);
21613 }
21614
21615
21616 int main(argc, argv)
21617         int argc;
21618         char **argv;
21619 {
21620
21621         /* pthread test function */
21622 #ifndef PTHREAD_CREATE_DETACHED
21623 #define PTHREAD_CREATE_DETACHED 1
21624 #endif
21625         pthread_t t;
21626         int status;
21627         int detach = PTHREAD_CREATE_DETACHED;
21628
21629 #if HAVE_PTHREADS > 4
21630         /* Final pthreads */
21631         pthread_attr_t attr;
21632
21633         status = pthread_attr_init(&attr);
21634         if( status ) return status;
21635
21636 #if HAVE_PTHREADS < 7
21637         status = pthread_attr_setdetachstate(&attr, &detach);
21638         if( status < 0 ) status = errno;
21639 #else
21640         status = pthread_attr_setdetachstate(&attr, detach);
21641 #endif
21642         if( status ) return status;
21643         status = pthread_create( &t, &attr, task, NULL );
21644 #if HAVE_PTHREADS < 7
21645         if( status < 0 ) status = errno;
21646 #endif
21647         if( status ) return status;
21648 #else
21649         /* Draft 4 pthreads */
21650         status = pthread_create( &t, pthread_attr_default, task, NULL );
21651         if( status ) return errno;
21652
21653         /* give thread a chance to complete */
21654         /* it should remain joinable and hence detachable */
21655         sleep( 1 );
21656
21657         status = pthread_detach( &t );
21658         if( status ) return errno;
21659 #endif
21660
21661 #ifdef HAVE_LINUX_THREADS
21662         pthread_kill_other_threads_np();
21663 #endif
21664
21665         return 0;
21666
21667 }
21668
21669 _ACEOF
21670 rm -f conftest$ac_exeext
21671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21672   (eval $ac_link) 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677   (eval $ac_try) 2>&5
21678   ac_status=$?
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); }; }; then
21681   ol_cv_pthread_thread=yes
21682 else
21683   echo "$as_me: program exited with status $ac_status" >&5
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687 ( exit $ac_status )
21688 ol_cv_pthread_thread=no
21689 fi
21690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21691 fi
21692
21693                 # restore the LIBS
21694                 LIBS="$ol_LIBS"
21695
21696 fi
21697 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21698 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21699
21700         if test $ol_cv_pthread_thread = yes ; then
21701                 ol_link_pthreads="-thread"
21702                 ol_link_threads=posix
21703         fi
21704 fi
21705
21706
21707                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21708 if test "$ol_link_threads" = no ; then
21709         # try -lpthread -lmach -lexc -lc_r
21710         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21711 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21712 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21713   echo $ECHO_N "(cached) $ECHO_C" >&6
21714 else
21715
21716                 # save the flags
21717                 ol_LIBS="$LIBS"
21718                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21719
21720                 if test "$cross_compiling" = yes; then
21721   cat >conftest.$ac_ext <<_ACEOF
21722 /* confdefs.h.  */
21723 _ACEOF
21724 cat confdefs.h >>conftest.$ac_ext
21725 cat >>conftest.$ac_ext <<_ACEOF
21726 /* end confdefs.h.  */
21727
21728 /* pthread test headers */
21729 #include <pthread.h>
21730 #if HAVE_PTHREADS < 7
21731 #include <errno.h>
21732 #endif
21733 #ifndef NULL
21734 #define NULL (void*)0
21735 #endif
21736
21737 static void *task(p)
21738         void *p;
21739 {
21740         return (void *) (p == NULL);
21741 }
21742
21743 int
21744 main ()
21745 {
21746
21747         /* pthread test function */
21748 #ifndef PTHREAD_CREATE_DETACHED
21749 #define PTHREAD_CREATE_DETACHED 1
21750 #endif
21751         pthread_t t;
21752         int status;
21753         int detach = PTHREAD_CREATE_DETACHED;
21754
21755 #if HAVE_PTHREADS > 4
21756         /* Final pthreads */
21757         pthread_attr_t attr;
21758
21759         status = pthread_attr_init(&attr);
21760         if( status ) return status;
21761
21762 #if HAVE_PTHREADS < 7
21763         status = pthread_attr_setdetachstate(&attr, &detach);
21764         if( status < 0 ) status = errno;
21765 #else
21766         status = pthread_attr_setdetachstate(&attr, detach);
21767 #endif
21768         if( status ) return status;
21769         status = pthread_create( &t, &attr, task, NULL );
21770 #if HAVE_PTHREADS < 7
21771         if( status < 0 ) status = errno;
21772 #endif
21773         if( status ) return status;
21774 #else
21775         /* Draft 4 pthreads */
21776         status = pthread_create( &t, pthread_attr_default, task, NULL );
21777         if( status ) return errno;
21778
21779         /* give thread a chance to complete */
21780         /* it should remain joinable and hence detachable */
21781         sleep( 1 );
21782
21783         status = pthread_detach( &t );
21784         if( status ) return errno;
21785 #endif
21786
21787 #ifdef HAVE_LINUX_THREADS
21788         pthread_kill_other_threads_np();
21789 #endif
21790
21791         return 0;
21792
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799   (eval $ac_link) 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } &&
21806          { ac_try='test -z "$ac_c_werror_flag"
21807                          || test ! -s conftest.err'
21808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809   (eval $ac_try) 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); }; } &&
21813          { ac_try='test -s conftest$ac_exeext'
21814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815   (eval $ac_try) 2>&5
21816   ac_status=$?
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); }; }; then
21819   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21820 else
21821   echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21825 fi
21826 rm -f conftest.err conftest.$ac_objext \
21827       conftest$ac_exeext conftest.$ac_ext
21828 else
21829   cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835
21836 /* pthread test headers */
21837 #include <pthread.h>
21838 #if HAVE_PTHREADS < 7
21839 #include <errno.h>
21840 #endif
21841 #ifndef NULL
21842 #define NULL (void*)0
21843 #endif
21844
21845 static void *task(p)
21846         void *p;
21847 {
21848         return (void *) (p == NULL);
21849 }
21850
21851
21852 int main(argc, argv)
21853         int argc;
21854         char **argv;
21855 {
21856
21857         /* pthread test function */
21858 #ifndef PTHREAD_CREATE_DETACHED
21859 #define PTHREAD_CREATE_DETACHED 1
21860 #endif
21861         pthread_t t;
21862         int status;
21863         int detach = PTHREAD_CREATE_DETACHED;
21864
21865 #if HAVE_PTHREADS > 4
21866         /* Final pthreads */
21867         pthread_attr_t attr;
21868
21869         status = pthread_attr_init(&attr);
21870         if( status ) return status;
21871
21872 #if HAVE_PTHREADS < 7
21873         status = pthread_attr_setdetachstate(&attr, &detach);
21874         if( status < 0 ) status = errno;
21875 #else
21876         status = pthread_attr_setdetachstate(&attr, detach);
21877 #endif
21878         if( status ) return status;
21879         status = pthread_create( &t, &attr, task, NULL );
21880 #if HAVE_PTHREADS < 7
21881         if( status < 0 ) status = errno;
21882 #endif
21883         if( status ) return status;
21884 #else
21885         /* Draft 4 pthreads */
21886         status = pthread_create( &t, pthread_attr_default, task, NULL );
21887         if( status ) return errno;
21888
21889         /* give thread a chance to complete */
21890         /* it should remain joinable and hence detachable */
21891         sleep( 1 );
21892
21893         status = pthread_detach( &t );
21894         if( status ) return errno;
21895 #endif
21896
21897 #ifdef HAVE_LINUX_THREADS
21898         pthread_kill_other_threads_np();
21899 #endif
21900
21901         return 0;
21902
21903 }
21904
21905 _ACEOF
21906 rm -f conftest$ac_exeext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21908   (eval $ac_link) 2>&5
21909   ac_status=$?
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21913   (eval $ac_try) 2>&5
21914   ac_status=$?
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); }; }; then
21917   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21918 else
21919   echo "$as_me: program exited with status $ac_status" >&5
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923 ( exit $ac_status )
21924 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21925 fi
21926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21927 fi
21928
21929                 # restore the LIBS
21930                 LIBS="$ol_LIBS"
21931
21932 fi
21933 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21934 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21935
21936         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21937                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21938                 ol_link_threads=posix
21939         fi
21940 fi
21941
21942                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21943 if test "$ol_link_threads" = no ; then
21944         # try -lpthread -lmach -lexc
21945         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21946 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21947 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21948   echo $ECHO_N "(cached) $ECHO_C" >&6
21949 else
21950
21951                 # save the flags
21952                 ol_LIBS="$LIBS"
21953                 LIBS="-lpthread -lmach -lexc $LIBS"
21954
21955                 if test "$cross_compiling" = yes; then
21956   cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h.  */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h.  */
21962
21963 /* pthread test headers */
21964 #include <pthread.h>
21965 #if HAVE_PTHREADS < 7
21966 #include <errno.h>
21967 #endif
21968 #ifndef NULL
21969 #define NULL (void*)0
21970 #endif
21971
21972 static void *task(p)
21973         void *p;
21974 {
21975         return (void *) (p == NULL);
21976 }
21977
21978 int
21979 main ()
21980 {
21981
21982         /* pthread test function */
21983 #ifndef PTHREAD_CREATE_DETACHED
21984 #define PTHREAD_CREATE_DETACHED 1
21985 #endif
21986         pthread_t t;
21987         int status;
21988         int detach = PTHREAD_CREATE_DETACHED;
21989
21990 #if HAVE_PTHREADS > 4
21991         /* Final pthreads */
21992         pthread_attr_t attr;
21993
21994         status = pthread_attr_init(&attr);
21995         if( status ) return status;
21996
21997 #if HAVE_PTHREADS < 7
21998         status = pthread_attr_setdetachstate(&attr, &detach);
21999         if( status < 0 ) status = errno;
22000 #else
22001         status = pthread_attr_setdetachstate(&attr, detach);
22002 #endif
22003         if( status ) return status;
22004         status = pthread_create( &t, &attr, task, NULL );
22005 #if HAVE_PTHREADS < 7
22006         if( status < 0 ) status = errno;
22007 #endif
22008         if( status ) return status;
22009 #else
22010         /* Draft 4 pthreads */
22011         status = pthread_create( &t, pthread_attr_default, task, NULL );
22012         if( status ) return errno;
22013
22014         /* give thread a chance to complete */
22015         /* it should remain joinable and hence detachable */
22016         sleep( 1 );
22017
22018         status = pthread_detach( &t );
22019         if( status ) return errno;
22020 #endif
22021
22022 #ifdef HAVE_LINUX_THREADS
22023         pthread_kill_other_threads_np();
22024 #endif
22025
22026         return 0;
22027
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 rm -f conftest.$ac_objext conftest$ac_exeext
22033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22034   (eval $ac_link) 2>conftest.er1
22035   ac_status=$?
22036   grep -v '^ *+' conftest.er1 >conftest.err
22037   rm -f conftest.er1
22038   cat conftest.err >&5
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } &&
22041          { ac_try='test -z "$ac_c_werror_flag"
22042                          || test ! -s conftest.err'
22043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044   (eval $ac_try) 2>&5
22045   ac_status=$?
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); }; } &&
22048          { ac_try='test -s conftest$ac_exeext'
22049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050   (eval $ac_try) 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; }; then
22054   ol_cv_pthread_lpthread_lmach_lexc=yes
22055 else
22056   echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22058
22059 ol_cv_pthread_lpthread_lmach_lexc=no
22060 fi
22061 rm -f conftest.err conftest.$ac_objext \
22062       conftest$ac_exeext conftest.$ac_ext
22063 else
22064   cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070
22071 /* pthread test headers */
22072 #include <pthread.h>
22073 #if HAVE_PTHREADS < 7
22074 #include <errno.h>
22075 #endif
22076 #ifndef NULL
22077 #define NULL (void*)0
22078 #endif
22079
22080 static void *task(p)
22081         void *p;
22082 {
22083         return (void *) (p == NULL);
22084 }
22085
22086
22087 int main(argc, argv)
22088         int argc;
22089         char **argv;
22090 {
22091
22092         /* pthread test function */
22093 #ifndef PTHREAD_CREATE_DETACHED
22094 #define PTHREAD_CREATE_DETACHED 1
22095 #endif
22096         pthread_t t;
22097         int status;
22098         int detach = PTHREAD_CREATE_DETACHED;
22099
22100 #if HAVE_PTHREADS > 4
22101         /* Final pthreads */
22102         pthread_attr_t attr;
22103
22104         status = pthread_attr_init(&attr);
22105         if( status ) return status;
22106
22107 #if HAVE_PTHREADS < 7
22108         status = pthread_attr_setdetachstate(&attr, &detach);
22109         if( status < 0 ) status = errno;
22110 #else
22111         status = pthread_attr_setdetachstate(&attr, detach);
22112 #endif
22113         if( status ) return status;
22114         status = pthread_create( &t, &attr, task, NULL );
22115 #if HAVE_PTHREADS < 7
22116         if( status < 0 ) status = errno;
22117 #endif
22118         if( status ) return status;
22119 #else
22120         /* Draft 4 pthreads */
22121         status = pthread_create( &t, pthread_attr_default, task, NULL );
22122         if( status ) return errno;
22123
22124         /* give thread a chance to complete */
22125         /* it should remain joinable and hence detachable */
22126         sleep( 1 );
22127
22128         status = pthread_detach( &t );
22129         if( status ) return errno;
22130 #endif
22131
22132 #ifdef HAVE_LINUX_THREADS
22133         pthread_kill_other_threads_np();
22134 #endif
22135
22136         return 0;
22137
22138 }
22139
22140 _ACEOF
22141 rm -f conftest$ac_exeext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22143   (eval $ac_link) 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148   (eval $ac_try) 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); }; }; then
22152   ol_cv_pthread_lpthread_lmach_lexc=yes
22153 else
22154   echo "$as_me: program exited with status $ac_status" >&5
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22157
22158 ( exit $ac_status )
22159 ol_cv_pthread_lpthread_lmach_lexc=no
22160 fi
22161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22162 fi
22163
22164                 # restore the LIBS
22165                 LIBS="$ol_LIBS"
22166
22167 fi
22168 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22169 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22170
22171         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22172                 ol_link_pthreads="-lpthread -lmach -lexc"
22173                 ol_link_threads=posix
22174         fi
22175 fi
22176
22177
22178                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22179 if test "$ol_link_threads" = no ; then
22180         # try -lpthread -Wl,-woff,85
22181         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22182 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22183 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22184   echo $ECHO_N "(cached) $ECHO_C" >&6
22185 else
22186
22187                 # save the flags
22188                 ol_LIBS="$LIBS"
22189                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22190
22191                 if test "$cross_compiling" = yes; then
22192   cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h.  */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h.  */
22198
22199 /* pthread test headers */
22200 #include <pthread.h>
22201 #if HAVE_PTHREADS < 7
22202 #include <errno.h>
22203 #endif
22204 #ifndef NULL
22205 #define NULL (void*)0
22206 #endif
22207
22208 static void *task(p)
22209         void *p;
22210 {
22211         return (void *) (p == NULL);
22212 }
22213
22214 int
22215 main ()
22216 {
22217
22218         /* pthread test function */
22219 #ifndef PTHREAD_CREATE_DETACHED
22220 #define PTHREAD_CREATE_DETACHED 1
22221 #endif
22222         pthread_t t;
22223         int status;
22224         int detach = PTHREAD_CREATE_DETACHED;
22225
22226 #if HAVE_PTHREADS > 4
22227         /* Final pthreads */
22228         pthread_attr_t attr;
22229
22230         status = pthread_attr_init(&attr);
22231         if( status ) return status;
22232
22233 #if HAVE_PTHREADS < 7
22234         status = pthread_attr_setdetachstate(&attr, &detach);
22235         if( status < 0 ) status = errno;
22236 #else
22237         status = pthread_attr_setdetachstate(&attr, detach);
22238 #endif
22239         if( status ) return status;
22240         status = pthread_create( &t, &attr, task, NULL );
22241 #if HAVE_PTHREADS < 7
22242         if( status < 0 ) status = errno;
22243 #endif
22244         if( status ) return status;
22245 #else
22246         /* Draft 4 pthreads */
22247         status = pthread_create( &t, pthread_attr_default, task, NULL );
22248         if( status ) return errno;
22249
22250         /* give thread a chance to complete */
22251         /* it should remain joinable and hence detachable */
22252         sleep( 1 );
22253
22254         status = pthread_detach( &t );
22255         if( status ) return errno;
22256 #endif
22257
22258 #ifdef HAVE_LINUX_THREADS
22259         pthread_kill_other_threads_np();
22260 #endif
22261
22262         return 0;
22263
22264   ;
22265   return 0;
22266 }
22267 _ACEOF
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22270   (eval $ac_link) 2>conftest.er1
22271   ac_status=$?
22272   grep -v '^ *+' conftest.er1 >conftest.err
22273   rm -f conftest.er1
22274   cat conftest.err >&5
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); } &&
22277          { ac_try='test -z "$ac_c_werror_flag"
22278                          || test ! -s conftest.err'
22279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280   (eval $ac_try) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); }; } &&
22284          { ac_try='test -s conftest$ac_exeext'
22285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286   (eval $ac_try) 2>&5
22287   ac_status=$?
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); }; }; then
22290   ol_cv_pthread_lib_lpthread_woff=yes
22291 else
22292   echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22294
22295 ol_cv_pthread_lib_lpthread_woff=no
22296 fi
22297 rm -f conftest.err conftest.$ac_objext \
22298       conftest$ac_exeext conftest.$ac_ext
22299 else
22300   cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h.  */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h.  */
22306
22307 /* pthread test headers */
22308 #include <pthread.h>
22309 #if HAVE_PTHREADS < 7
22310 #include <errno.h>
22311 #endif
22312 #ifndef NULL
22313 #define NULL (void*)0
22314 #endif
22315
22316 static void *task(p)
22317         void *p;
22318 {
22319         return (void *) (p == NULL);
22320 }
22321
22322
22323 int main(argc, argv)
22324         int argc;
22325         char **argv;
22326 {
22327
22328         /* pthread test function */
22329 #ifndef PTHREAD_CREATE_DETACHED
22330 #define PTHREAD_CREATE_DETACHED 1
22331 #endif
22332         pthread_t t;
22333         int status;
22334         int detach = PTHREAD_CREATE_DETACHED;
22335
22336 #if HAVE_PTHREADS > 4
22337         /* Final pthreads */
22338         pthread_attr_t attr;
22339
22340         status = pthread_attr_init(&attr);
22341         if( status ) return status;
22342
22343 #if HAVE_PTHREADS < 7
22344         status = pthread_attr_setdetachstate(&attr, &detach);
22345         if( status < 0 ) status = errno;
22346 #else
22347         status = pthread_attr_setdetachstate(&attr, detach);
22348 #endif
22349         if( status ) return status;
22350         status = pthread_create( &t, &attr, task, NULL );
22351 #if HAVE_PTHREADS < 7
22352         if( status < 0 ) status = errno;
22353 #endif
22354         if( status ) return status;
22355 #else
22356         /* Draft 4 pthreads */
22357         status = pthread_create( &t, pthread_attr_default, task, NULL );
22358         if( status ) return errno;
22359
22360         /* give thread a chance to complete */
22361         /* it should remain joinable and hence detachable */
22362         sleep( 1 );
22363
22364         status = pthread_detach( &t );
22365         if( status ) return errno;
22366 #endif
22367
22368 #ifdef HAVE_LINUX_THREADS
22369         pthread_kill_other_threads_np();
22370 #endif
22371
22372         return 0;
22373
22374 }
22375
22376 _ACEOF
22377 rm -f conftest$ac_exeext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22379   (eval $ac_link) 2>&5
22380   ac_status=$?
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384   (eval $ac_try) 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); }; }; then
22388   ol_cv_pthread_lib_lpthread_woff=yes
22389 else
22390   echo "$as_me: program exited with status $ac_status" >&5
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.$ac_ext >&5
22393
22394 ( exit $ac_status )
22395 ol_cv_pthread_lib_lpthread_woff=no
22396 fi
22397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22398 fi
22399
22400                 # restore the LIBS
22401                 LIBS="$ol_LIBS"
22402
22403 fi
22404 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22405 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22406
22407         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22408                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22409                 ol_link_threads=posix
22410         fi
22411 fi
22412
22413
22414                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22415 if test "$ol_link_threads" = no ; then
22416         # try -lpthread
22417         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22418 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22419 if test "${ol_cv_pthread_lpthread+set}" = set; then
22420   echo $ECHO_N "(cached) $ECHO_C" >&6
22421 else
22422
22423                 # save the flags
22424                 ol_LIBS="$LIBS"
22425                 LIBS="-lpthread $LIBS"
22426
22427                 if test "$cross_compiling" = yes; then
22428   cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h.  */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h.  */
22434
22435 /* pthread test headers */
22436 #include <pthread.h>
22437 #if HAVE_PTHREADS < 7
22438 #include <errno.h>
22439 #endif
22440 #ifndef NULL
22441 #define NULL (void*)0
22442 #endif
22443
22444 static void *task(p)
22445         void *p;
22446 {
22447         return (void *) (p == NULL);
22448 }
22449
22450 int
22451 main ()
22452 {
22453
22454         /* pthread test function */
22455 #ifndef PTHREAD_CREATE_DETACHED
22456 #define PTHREAD_CREATE_DETACHED 1
22457 #endif
22458         pthread_t t;
22459         int status;
22460         int detach = PTHREAD_CREATE_DETACHED;
22461
22462 #if HAVE_PTHREADS > 4
22463         /* Final pthreads */
22464         pthread_attr_t attr;
22465
22466         status = pthread_attr_init(&attr);
22467         if( status ) return status;
22468
22469 #if HAVE_PTHREADS < 7
22470         status = pthread_attr_setdetachstate(&attr, &detach);
22471         if( status < 0 ) status = errno;
22472 #else
22473         status = pthread_attr_setdetachstate(&attr, detach);
22474 #endif
22475         if( status ) return status;
22476         status = pthread_create( &t, &attr, task, NULL );
22477 #if HAVE_PTHREADS < 7
22478         if( status < 0 ) status = errno;
22479 #endif
22480         if( status ) return status;
22481 #else
22482         /* Draft 4 pthreads */
22483         status = pthread_create( &t, pthread_attr_default, task, NULL );
22484         if( status ) return errno;
22485
22486         /* give thread a chance to complete */
22487         /* it should remain joinable and hence detachable */
22488         sleep( 1 );
22489
22490         status = pthread_detach( &t );
22491         if( status ) return errno;
22492 #endif
22493
22494 #ifdef HAVE_LINUX_THREADS
22495         pthread_kill_other_threads_np();
22496 #endif
22497
22498         return 0;
22499
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext conftest$ac_exeext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22506   (eval $ac_link) 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } &&
22513          { ac_try='test -z "$ac_c_werror_flag"
22514                          || test ! -s conftest.err'
22515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516   (eval $ac_try) 2>&5
22517   ac_status=$?
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); }; } &&
22520          { ac_try='test -s conftest$ac_exeext'
22521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522   (eval $ac_try) 2>&5
22523   ac_status=$?
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); }; }; then
22526   ol_cv_pthread_lpthread=yes
22527 else
22528   echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22530
22531 ol_cv_pthread_lpthread=no
22532 fi
22533 rm -f conftest.err conftest.$ac_objext \
22534       conftest$ac_exeext conftest.$ac_ext
22535 else
22536   cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h.  */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h.  */
22542
22543 /* pthread test headers */
22544 #include <pthread.h>
22545 #if HAVE_PTHREADS < 7
22546 #include <errno.h>
22547 #endif
22548 #ifndef NULL
22549 #define NULL (void*)0
22550 #endif
22551
22552 static void *task(p)
22553         void *p;
22554 {
22555         return (void *) (p == NULL);
22556 }
22557
22558
22559 int main(argc, argv)
22560         int argc;
22561         char **argv;
22562 {
22563
22564         /* pthread test function */
22565 #ifndef PTHREAD_CREATE_DETACHED
22566 #define PTHREAD_CREATE_DETACHED 1
22567 #endif
22568         pthread_t t;
22569         int status;
22570         int detach = PTHREAD_CREATE_DETACHED;
22571
22572 #if HAVE_PTHREADS > 4
22573         /* Final pthreads */
22574         pthread_attr_t attr;
22575
22576         status = pthread_attr_init(&attr);
22577         if( status ) return status;
22578
22579 #if HAVE_PTHREADS < 7
22580         status = pthread_attr_setdetachstate(&attr, &detach);
22581         if( status < 0 ) status = errno;
22582 #else
22583         status = pthread_attr_setdetachstate(&attr, detach);
22584 #endif
22585         if( status ) return status;
22586         status = pthread_create( &t, &attr, task, NULL );
22587 #if HAVE_PTHREADS < 7
22588         if( status < 0 ) status = errno;
22589 #endif
22590         if( status ) return status;
22591 #else
22592         /* Draft 4 pthreads */
22593         status = pthread_create( &t, pthread_attr_default, task, NULL );
22594         if( status ) return errno;
22595
22596         /* give thread a chance to complete */
22597         /* it should remain joinable and hence detachable */
22598         sleep( 1 );
22599
22600         status = pthread_detach( &t );
22601         if( status ) return errno;
22602 #endif
22603
22604 #ifdef HAVE_LINUX_THREADS
22605         pthread_kill_other_threads_np();
22606 #endif
22607
22608         return 0;
22609
22610 }
22611
22612 _ACEOF
22613 rm -f conftest$ac_exeext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22615   (eval $ac_link) 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; }; then
22624   ol_cv_pthread_lpthread=yes
22625 else
22626   echo "$as_me: program exited with status $ac_status" >&5
22627 echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22629
22630 ( exit $ac_status )
22631 ol_cv_pthread_lpthread=no
22632 fi
22633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22634 fi
22635
22636                 # restore the LIBS
22637                 LIBS="$ol_LIBS"
22638
22639 fi
22640 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22641 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22642
22643         if test $ol_cv_pthread_lpthread = yes ; then
22644                 ol_link_pthreads="-lpthread"
22645                 ol_link_threads=posix
22646         fi
22647 fi
22648
22649                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22650 if test "$ol_link_threads" = no ; then
22651         # try -lc_r
22652         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22653 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22654 if test "${ol_cv_pthread_lc_r+set}" = set; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657
22658                 # save the flags
22659                 ol_LIBS="$LIBS"
22660                 LIBS="-lc_r $LIBS"
22661
22662                 if test "$cross_compiling" = yes; then
22663   cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h.  */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h.  */
22669
22670 /* pthread test headers */
22671 #include <pthread.h>
22672 #if HAVE_PTHREADS < 7
22673 #include <errno.h>
22674 #endif
22675 #ifndef NULL
22676 #define NULL (void*)0
22677 #endif
22678
22679 static void *task(p)
22680         void *p;
22681 {
22682         return (void *) (p == NULL);
22683 }
22684
22685 int
22686 main ()
22687 {
22688
22689         /* pthread test function */
22690 #ifndef PTHREAD_CREATE_DETACHED
22691 #define PTHREAD_CREATE_DETACHED 1
22692 #endif
22693         pthread_t t;
22694         int status;
22695         int detach = PTHREAD_CREATE_DETACHED;
22696
22697 #if HAVE_PTHREADS > 4
22698         /* Final pthreads */
22699         pthread_attr_t attr;
22700
22701         status = pthread_attr_init(&attr);
22702         if( status ) return status;
22703
22704 #if HAVE_PTHREADS < 7
22705         status = pthread_attr_setdetachstate(&attr, &detach);
22706         if( status < 0 ) status = errno;
22707 #else
22708         status = pthread_attr_setdetachstate(&attr, detach);
22709 #endif
22710         if( status ) return status;
22711         status = pthread_create( &t, &attr, task, NULL );
22712 #if HAVE_PTHREADS < 7
22713         if( status < 0 ) status = errno;
22714 #endif
22715         if( status ) return status;
22716 #else
22717         /* Draft 4 pthreads */
22718         status = pthread_create( &t, pthread_attr_default, task, NULL );
22719         if( status ) return errno;
22720
22721         /* give thread a chance to complete */
22722         /* it should remain joinable and hence detachable */
22723         sleep( 1 );
22724
22725         status = pthread_detach( &t );
22726         if( status ) return errno;
22727 #endif
22728
22729 #ifdef HAVE_LINUX_THREADS
22730         pthread_kill_other_threads_np();
22731 #endif
22732
22733         return 0;
22734
22735   ;
22736   return 0;
22737 }
22738 _ACEOF
22739 rm -f conftest.$ac_objext conftest$ac_exeext
22740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22741   (eval $ac_link) 2>conftest.er1
22742   ac_status=$?
22743   grep -v '^ *+' conftest.er1 >conftest.err
22744   rm -f conftest.er1
22745   cat conftest.err >&5
22746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747   (exit $ac_status); } &&
22748          { ac_try='test -z "$ac_c_werror_flag"
22749                          || test ! -s conftest.err'
22750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751   (eval $ac_try) 2>&5
22752   ac_status=$?
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); }; } &&
22755          { ac_try='test -s conftest$ac_exeext'
22756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757   (eval $ac_try) 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); }; }; then
22761   ol_cv_pthread_lc_r=yes
22762 else
22763   echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766 ol_cv_pthread_lc_r=no
22767 fi
22768 rm -f conftest.err conftest.$ac_objext \
22769       conftest$ac_exeext conftest.$ac_ext
22770 else
22771   cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h.  */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h.  */
22777
22778 /* pthread test headers */
22779 #include <pthread.h>
22780 #if HAVE_PTHREADS < 7
22781 #include <errno.h>
22782 #endif
22783 #ifndef NULL
22784 #define NULL (void*)0
22785 #endif
22786
22787 static void *task(p)
22788         void *p;
22789 {
22790         return (void *) (p == NULL);
22791 }
22792
22793
22794 int main(argc, argv)
22795         int argc;
22796         char **argv;
22797 {
22798
22799         /* pthread test function */
22800 #ifndef PTHREAD_CREATE_DETACHED
22801 #define PTHREAD_CREATE_DETACHED 1
22802 #endif
22803         pthread_t t;
22804         int status;
22805         int detach = PTHREAD_CREATE_DETACHED;
22806
22807 #if HAVE_PTHREADS > 4
22808         /* Final pthreads */
22809         pthread_attr_t attr;
22810
22811         status = pthread_attr_init(&attr);
22812         if( status ) return status;
22813
22814 #if HAVE_PTHREADS < 7
22815         status = pthread_attr_setdetachstate(&attr, &detach);
22816         if( status < 0 ) status = errno;
22817 #else
22818         status = pthread_attr_setdetachstate(&attr, detach);
22819 #endif
22820         if( status ) return status;
22821         status = pthread_create( &t, &attr, task, NULL );
22822 #if HAVE_PTHREADS < 7
22823         if( status < 0 ) status = errno;
22824 #endif
22825         if( status ) return status;
22826 #else
22827         /* Draft 4 pthreads */
22828         status = pthread_create( &t, pthread_attr_default, task, NULL );
22829         if( status ) return errno;
22830
22831         /* give thread a chance to complete */
22832         /* it should remain joinable and hence detachable */
22833         sleep( 1 );
22834
22835         status = pthread_detach( &t );
22836         if( status ) return errno;
22837 #endif
22838
22839 #ifdef HAVE_LINUX_THREADS
22840         pthread_kill_other_threads_np();
22841 #endif
22842
22843         return 0;
22844
22845 }
22846
22847 _ACEOF
22848 rm -f conftest$ac_exeext
22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850   (eval $ac_link) 2>&5
22851   ac_status=$?
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855   (eval $ac_try) 2>&5
22856   ac_status=$?
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); }; }; then
22859   ol_cv_pthread_lc_r=yes
22860 else
22861   echo "$as_me: program exited with status $ac_status" >&5
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22864
22865 ( exit $ac_status )
22866 ol_cv_pthread_lc_r=no
22867 fi
22868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22869 fi
22870
22871                 # restore the LIBS
22872                 LIBS="$ol_LIBS"
22873
22874 fi
22875 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22876 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22877
22878         if test $ol_cv_pthread_lc_r = yes ; then
22879                 ol_link_pthreads="-lc_r"
22880                 ol_link_threads=posix
22881         fi
22882 fi
22883
22884
22885                 # Pthread try link: -threads (ol_cv_pthread_threads)
22886 if test "$ol_link_threads" = no ; then
22887         # try -threads
22888         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22889 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22890 if test "${ol_cv_pthread_threads+set}" = set; then
22891   echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22893
22894                 # save the flags
22895                 ol_LIBS="$LIBS"
22896                 LIBS="-threads $LIBS"
22897
22898                 if test "$cross_compiling" = yes; then
22899   cat >conftest.$ac_ext <<_ACEOF
22900 /* confdefs.h.  */
22901 _ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h.  */
22905
22906 /* pthread test headers */
22907 #include <pthread.h>
22908 #if HAVE_PTHREADS < 7
22909 #include <errno.h>
22910 #endif
22911 #ifndef NULL
22912 #define NULL (void*)0
22913 #endif
22914
22915 static void *task(p)
22916         void *p;
22917 {
22918         return (void *) (p == NULL);
22919 }
22920
22921 int
22922 main ()
22923 {
22924
22925         /* pthread test function */
22926 #ifndef PTHREAD_CREATE_DETACHED
22927 #define PTHREAD_CREATE_DETACHED 1
22928 #endif
22929         pthread_t t;
22930         int status;
22931         int detach = PTHREAD_CREATE_DETACHED;
22932
22933 #if HAVE_PTHREADS > 4
22934         /* Final pthreads */
22935         pthread_attr_t attr;
22936
22937         status = pthread_attr_init(&attr);
22938         if( status ) return status;
22939
22940 #if HAVE_PTHREADS < 7
22941         status = pthread_attr_setdetachstate(&attr, &detach);
22942         if( status < 0 ) status = errno;
22943 #else
22944         status = pthread_attr_setdetachstate(&attr, detach);
22945 #endif
22946         if( status ) return status;
22947         status = pthread_create( &t, &attr, task, NULL );
22948 #if HAVE_PTHREADS < 7
22949         if( status < 0 ) status = errno;
22950 #endif
22951         if( status ) return status;
22952 #else
22953         /* Draft 4 pthreads */
22954         status = pthread_create( &t, pthread_attr_default, task, NULL );
22955         if( status ) return errno;
22956
22957         /* give thread a chance to complete */
22958         /* it should remain joinable and hence detachable */
22959         sleep( 1 );
22960
22961         status = pthread_detach( &t );
22962         if( status ) return errno;
22963 #endif
22964
22965 #ifdef HAVE_LINUX_THREADS
22966         pthread_kill_other_threads_np();
22967 #endif
22968
22969         return 0;
22970
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22977   (eval $ac_link) 2>conftest.er1
22978   ac_status=$?
22979   grep -v '^ *+' conftest.er1 >conftest.err
22980   rm -f conftest.er1
22981   cat conftest.err >&5
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); } &&
22984          { ac_try='test -z "$ac_c_werror_flag"
22985                          || test ! -s conftest.err'
22986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987   (eval $ac_try) 2>&5
22988   ac_status=$?
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); }; } &&
22991          { ac_try='test -s conftest$ac_exeext'
22992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993   (eval $ac_try) 2>&5
22994   ac_status=$?
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); }; }; then
22997   ol_cv_pthread_threads=yes
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002 ol_cv_pthread_threads=no
23003 fi
23004 rm -f conftest.err conftest.$ac_objext \
23005       conftest$ac_exeext conftest.$ac_ext
23006 else
23007   cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h.  */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h.  */
23013
23014 /* pthread test headers */
23015 #include <pthread.h>
23016 #if HAVE_PTHREADS < 7
23017 #include <errno.h>
23018 #endif
23019 #ifndef NULL
23020 #define NULL (void*)0
23021 #endif
23022
23023 static void *task(p)
23024         void *p;
23025 {
23026         return (void *) (p == NULL);
23027 }
23028
23029
23030 int main(argc, argv)
23031         int argc;
23032         char **argv;
23033 {
23034
23035         /* pthread test function */
23036 #ifndef PTHREAD_CREATE_DETACHED
23037 #define PTHREAD_CREATE_DETACHED 1
23038 #endif
23039         pthread_t t;
23040         int status;
23041         int detach = PTHREAD_CREATE_DETACHED;
23042
23043 #if HAVE_PTHREADS > 4
23044         /* Final pthreads */
23045         pthread_attr_t attr;
23046
23047         status = pthread_attr_init(&attr);
23048         if( status ) return status;
23049
23050 #if HAVE_PTHREADS < 7
23051         status = pthread_attr_setdetachstate(&attr, &detach);
23052         if( status < 0 ) status = errno;
23053 #else
23054         status = pthread_attr_setdetachstate(&attr, detach);
23055 #endif
23056         if( status ) return status;
23057         status = pthread_create( &t, &attr, task, NULL );
23058 #if HAVE_PTHREADS < 7
23059         if( status < 0 ) status = errno;
23060 #endif
23061         if( status ) return status;
23062 #else
23063         /* Draft 4 pthreads */
23064         status = pthread_create( &t, pthread_attr_default, task, NULL );
23065         if( status ) return errno;
23066
23067         /* give thread a chance to complete */
23068         /* it should remain joinable and hence detachable */
23069         sleep( 1 );
23070
23071         status = pthread_detach( &t );
23072         if( status ) return errno;
23073 #endif
23074
23075 #ifdef HAVE_LINUX_THREADS
23076         pthread_kill_other_threads_np();
23077 #endif
23078
23079         return 0;
23080
23081 }
23082
23083 _ACEOF
23084 rm -f conftest$ac_exeext
23085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23086   (eval $ac_link) 2>&5
23087   ac_status=$?
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091   (eval $ac_try) 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); }; }; then
23095   ol_cv_pthread_threads=yes
23096 else
23097   echo "$as_me: program exited with status $ac_status" >&5
23098 echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23100
23101 ( exit $ac_status )
23102 ol_cv_pthread_threads=no
23103 fi
23104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23105 fi
23106
23107                 # restore the LIBS
23108                 LIBS="$ol_LIBS"
23109
23110 fi
23111 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23112 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23113
23114         if test $ol_cv_pthread_threads = yes ; then
23115                 ol_link_pthreads="-threads"
23116                 ol_link_threads=posix
23117         fi
23118 fi
23119
23120
23121                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23122 if test "$ol_link_threads" = no ; then
23123         # try -lpthreads -lmach -lexc -lc_r
23124         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23125 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23126 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23127   echo $ECHO_N "(cached) $ECHO_C" >&6
23128 else
23129
23130                 # save the flags
23131                 ol_LIBS="$LIBS"
23132                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23133
23134                 if test "$cross_compiling" = yes; then
23135   cat >conftest.$ac_ext <<_ACEOF
23136 /* confdefs.h.  */
23137 _ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h.  */
23141
23142 /* pthread test headers */
23143 #include <pthread.h>
23144 #if HAVE_PTHREADS < 7
23145 #include <errno.h>
23146 #endif
23147 #ifndef NULL
23148 #define NULL (void*)0
23149 #endif
23150
23151 static void *task(p)
23152         void *p;
23153 {
23154         return (void *) (p == NULL);
23155 }
23156
23157 int
23158 main ()
23159 {
23160
23161         /* pthread test function */
23162 #ifndef PTHREAD_CREATE_DETACHED
23163 #define PTHREAD_CREATE_DETACHED 1
23164 #endif
23165         pthread_t t;
23166         int status;
23167         int detach = PTHREAD_CREATE_DETACHED;
23168
23169 #if HAVE_PTHREADS > 4
23170         /* Final pthreads */
23171         pthread_attr_t attr;
23172
23173         status = pthread_attr_init(&attr);
23174         if( status ) return status;
23175
23176 #if HAVE_PTHREADS < 7
23177         status = pthread_attr_setdetachstate(&attr, &detach);
23178         if( status < 0 ) status = errno;
23179 #else
23180         status = pthread_attr_setdetachstate(&attr, detach);
23181 #endif
23182         if( status ) return status;
23183         status = pthread_create( &t, &attr, task, NULL );
23184 #if HAVE_PTHREADS < 7
23185         if( status < 0 ) status = errno;
23186 #endif
23187         if( status ) return status;
23188 #else
23189         /* Draft 4 pthreads */
23190         status = pthread_create( &t, pthread_attr_default, task, NULL );
23191         if( status ) return errno;
23192
23193         /* give thread a chance to complete */
23194         /* it should remain joinable and hence detachable */
23195         sleep( 1 );
23196
23197         status = pthread_detach( &t );
23198         if( status ) return errno;
23199 #endif
23200
23201 #ifdef HAVE_LINUX_THREADS
23202         pthread_kill_other_threads_np();
23203 #endif
23204
23205         return 0;
23206
23207   ;
23208   return 0;
23209 }
23210 _ACEOF
23211 rm -f conftest.$ac_objext conftest$ac_exeext
23212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23213   (eval $ac_link) 2>conftest.er1
23214   ac_status=$?
23215   grep -v '^ *+' conftest.er1 >conftest.err
23216   rm -f conftest.er1
23217   cat conftest.err >&5
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); } &&
23220          { ac_try='test -z "$ac_c_werror_flag"
23221                          || test ! -s conftest.err'
23222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23223   (eval $ac_try) 2>&5
23224   ac_status=$?
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); }; } &&
23227          { ac_try='test -s conftest$ac_exeext'
23228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229   (eval $ac_try) 2>&5
23230   ac_status=$?
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); }; }; then
23233   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23234 else
23235   echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23237
23238 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23239 fi
23240 rm -f conftest.err conftest.$ac_objext \
23241       conftest$ac_exeext conftest.$ac_ext
23242 else
23243   cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249
23250 /* pthread test headers */
23251 #include <pthread.h>
23252 #if HAVE_PTHREADS < 7
23253 #include <errno.h>
23254 #endif
23255 #ifndef NULL
23256 #define NULL (void*)0
23257 #endif
23258
23259 static void *task(p)
23260         void *p;
23261 {
23262         return (void *) (p == NULL);
23263 }
23264
23265
23266 int main(argc, argv)
23267         int argc;
23268         char **argv;
23269 {
23270
23271         /* pthread test function */
23272 #ifndef PTHREAD_CREATE_DETACHED
23273 #define PTHREAD_CREATE_DETACHED 1
23274 #endif
23275         pthread_t t;
23276         int status;
23277         int detach = PTHREAD_CREATE_DETACHED;
23278
23279 #if HAVE_PTHREADS > 4
23280         /* Final pthreads */
23281         pthread_attr_t attr;
23282
23283         status = pthread_attr_init(&attr);
23284         if( status ) return status;
23285
23286 #if HAVE_PTHREADS < 7
23287         status = pthread_attr_setdetachstate(&attr, &detach);
23288         if( status < 0 ) status = errno;
23289 #else
23290         status = pthread_attr_setdetachstate(&attr, detach);
23291 #endif
23292         if( status ) return status;
23293         status = pthread_create( &t, &attr, task, NULL );
23294 #if HAVE_PTHREADS < 7
23295         if( status < 0 ) status = errno;
23296 #endif
23297         if( status ) return status;
23298 #else
23299         /* Draft 4 pthreads */
23300         status = pthread_create( &t, pthread_attr_default, task, NULL );
23301         if( status ) return errno;
23302
23303         /* give thread a chance to complete */
23304         /* it should remain joinable and hence detachable */
23305         sleep( 1 );
23306
23307         status = pthread_detach( &t );
23308         if( status ) return errno;
23309 #endif
23310
23311 #ifdef HAVE_LINUX_THREADS
23312         pthread_kill_other_threads_np();
23313 #endif
23314
23315         return 0;
23316
23317 }
23318
23319 _ACEOF
23320 rm -f conftest$ac_exeext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23322   (eval $ac_link) 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327   (eval $ac_try) 2>&5
23328   ac_status=$?
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); }; }; then
23331   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23332 else
23333   echo "$as_me: program exited with status $ac_status" >&5
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23336
23337 ( exit $ac_status )
23338 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23339 fi
23340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23341 fi
23342
23343                 # restore the LIBS
23344                 LIBS="$ol_LIBS"
23345
23346 fi
23347 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23348 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23349
23350         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23351                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23352                 ol_link_threads=posix
23353         fi
23354 fi
23355
23356                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23357 if test "$ol_link_threads" = no ; then
23358         # try -lpthreads -lmach -lexc
23359         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23360 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23361 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23362   echo $ECHO_N "(cached) $ECHO_C" >&6
23363 else
23364
23365                 # save the flags
23366                 ol_LIBS="$LIBS"
23367                 LIBS="-lpthreads -lmach -lexc $LIBS"
23368
23369                 if test "$cross_compiling" = yes; then
23370   cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376
23377 /* pthread test headers */
23378 #include <pthread.h>
23379 #if HAVE_PTHREADS < 7
23380 #include <errno.h>
23381 #endif
23382 #ifndef NULL
23383 #define NULL (void*)0
23384 #endif
23385
23386 static void *task(p)
23387         void *p;
23388 {
23389         return (void *) (p == NULL);
23390 }
23391
23392 int
23393 main ()
23394 {
23395
23396         /* pthread test function */
23397 #ifndef PTHREAD_CREATE_DETACHED
23398 #define PTHREAD_CREATE_DETACHED 1
23399 #endif
23400         pthread_t t;
23401         int status;
23402         int detach = PTHREAD_CREATE_DETACHED;
23403
23404 #if HAVE_PTHREADS > 4
23405         /* Final pthreads */
23406         pthread_attr_t attr;
23407
23408         status = pthread_attr_init(&attr);
23409         if( status ) return status;
23410
23411 #if HAVE_PTHREADS < 7
23412         status = pthread_attr_setdetachstate(&attr, &detach);
23413         if( status < 0 ) status = errno;
23414 #else
23415         status = pthread_attr_setdetachstate(&attr, detach);
23416 #endif
23417         if( status ) return status;
23418         status = pthread_create( &t, &attr, task, NULL );
23419 #if HAVE_PTHREADS < 7
23420         if( status < 0 ) status = errno;
23421 #endif
23422         if( status ) return status;
23423 #else
23424         /* Draft 4 pthreads */
23425         status = pthread_create( &t, pthread_attr_default, task, NULL );
23426         if( status ) return errno;
23427
23428         /* give thread a chance to complete */
23429         /* it should remain joinable and hence detachable */
23430         sleep( 1 );
23431
23432         status = pthread_detach( &t );
23433         if( status ) return errno;
23434 #endif
23435
23436 #ifdef HAVE_LINUX_THREADS
23437         pthread_kill_other_threads_np();
23438 #endif
23439
23440         return 0;
23441
23442   ;
23443   return 0;
23444 }
23445 _ACEOF
23446 rm -f conftest.$ac_objext conftest$ac_exeext
23447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23448   (eval $ac_link) 2>conftest.er1
23449   ac_status=$?
23450   grep -v '^ *+' conftest.er1 >conftest.err
23451   rm -f conftest.er1
23452   cat conftest.err >&5
23453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454   (exit $ac_status); } &&
23455          { ac_try='test -z "$ac_c_werror_flag"
23456                          || test ! -s conftest.err'
23457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458   (eval $ac_try) 2>&5
23459   ac_status=$?
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); }; } &&
23462          { ac_try='test -s conftest$ac_exeext'
23463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464   (eval $ac_try) 2>&5
23465   ac_status=$?
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); }; }; then
23468   ol_cv_pthread_lpthreads_lmach_lexc=yes
23469 else
23470   echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23472
23473 ol_cv_pthread_lpthreads_lmach_lexc=no
23474 fi
23475 rm -f conftest.err conftest.$ac_objext \
23476       conftest$ac_exeext conftest.$ac_ext
23477 else
23478   cat >conftest.$ac_ext <<_ACEOF
23479 /* confdefs.h.  */
23480 _ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h.  */
23484
23485 /* pthread test headers */
23486 #include <pthread.h>
23487 #if HAVE_PTHREADS < 7
23488 #include <errno.h>
23489 #endif
23490 #ifndef NULL
23491 #define NULL (void*)0
23492 #endif
23493
23494 static void *task(p)
23495         void *p;
23496 {
23497         return (void *) (p == NULL);
23498 }
23499
23500
23501 int main(argc, argv)
23502         int argc;
23503         char **argv;
23504 {
23505
23506         /* pthread test function */
23507 #ifndef PTHREAD_CREATE_DETACHED
23508 #define PTHREAD_CREATE_DETACHED 1
23509 #endif
23510         pthread_t t;
23511         int status;
23512         int detach = PTHREAD_CREATE_DETACHED;
23513
23514 #if HAVE_PTHREADS > 4
23515         /* Final pthreads */
23516         pthread_attr_t attr;
23517
23518         status = pthread_attr_init(&attr);
23519         if( status ) return status;
23520
23521 #if HAVE_PTHREADS < 7
23522         status = pthread_attr_setdetachstate(&attr, &detach);
23523         if( status < 0 ) status = errno;
23524 #else
23525         status = pthread_attr_setdetachstate(&attr, detach);
23526 #endif
23527         if( status ) return status;
23528         status = pthread_create( &t, &attr, task, NULL );
23529 #if HAVE_PTHREADS < 7
23530         if( status < 0 ) status = errno;
23531 #endif
23532         if( status ) return status;
23533 #else
23534         /* Draft 4 pthreads */
23535         status = pthread_create( &t, pthread_attr_default, task, NULL );
23536         if( status ) return errno;
23537
23538         /* give thread a chance to complete */
23539         /* it should remain joinable and hence detachable */
23540         sleep( 1 );
23541
23542         status = pthread_detach( &t );
23543         if( status ) return errno;
23544 #endif
23545
23546 #ifdef HAVE_LINUX_THREADS
23547         pthread_kill_other_threads_np();
23548 #endif
23549
23550         return 0;
23551
23552 }
23553
23554 _ACEOF
23555 rm -f conftest$ac_exeext
23556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23557   (eval $ac_link) 2>&5
23558   ac_status=$?
23559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562   (eval $ac_try) 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; }; then
23566   ol_cv_pthread_lpthreads_lmach_lexc=yes
23567 else
23568   echo "$as_me: program exited with status $ac_status" >&5
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23571
23572 ( exit $ac_status )
23573 ol_cv_pthread_lpthreads_lmach_lexc=no
23574 fi
23575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23576 fi
23577
23578                 # restore the LIBS
23579                 LIBS="$ol_LIBS"
23580
23581 fi
23582 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23583 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23584
23585         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23586                 ol_link_pthreads="-lpthreads -lmach -lexc"
23587                 ol_link_threads=posix
23588         fi
23589 fi
23590
23591                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23592 if test "$ol_link_threads" = no ; then
23593         # try -lpthreads -lexc
23594         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23595 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23596 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23597   echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599
23600                 # save the flags
23601                 ol_LIBS="$LIBS"
23602                 LIBS="-lpthreads -lexc $LIBS"
23603
23604                 if test "$cross_compiling" = yes; then
23605   cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h.  */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h.  */
23611
23612 /* pthread test headers */
23613 #include <pthread.h>
23614 #if HAVE_PTHREADS < 7
23615 #include <errno.h>
23616 #endif
23617 #ifndef NULL
23618 #define NULL (void*)0
23619 #endif
23620
23621 static void *task(p)
23622         void *p;
23623 {
23624         return (void *) (p == NULL);
23625 }
23626
23627 int
23628 main ()
23629 {
23630
23631         /* pthread test function */
23632 #ifndef PTHREAD_CREATE_DETACHED
23633 #define PTHREAD_CREATE_DETACHED 1
23634 #endif
23635         pthread_t t;
23636         int status;
23637         int detach = PTHREAD_CREATE_DETACHED;
23638
23639 #if HAVE_PTHREADS > 4
23640         /* Final pthreads */
23641         pthread_attr_t attr;
23642
23643         status = pthread_attr_init(&attr);
23644         if( status ) return status;
23645
23646 #if HAVE_PTHREADS < 7
23647         status = pthread_attr_setdetachstate(&attr, &detach);
23648         if( status < 0 ) status = errno;
23649 #else
23650         status = pthread_attr_setdetachstate(&attr, detach);
23651 #endif
23652         if( status ) return status;
23653         status = pthread_create( &t, &attr, task, NULL );
23654 #if HAVE_PTHREADS < 7
23655         if( status < 0 ) status = errno;
23656 #endif
23657         if( status ) return status;
23658 #else
23659         /* Draft 4 pthreads */
23660         status = pthread_create( &t, pthread_attr_default, task, NULL );
23661         if( status ) return errno;
23662
23663         /* give thread a chance to complete */
23664         /* it should remain joinable and hence detachable */
23665         sleep( 1 );
23666
23667         status = pthread_detach( &t );
23668         if( status ) return errno;
23669 #endif
23670
23671 #ifdef HAVE_LINUX_THREADS
23672         pthread_kill_other_threads_np();
23673 #endif
23674
23675         return 0;
23676
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23683   (eval $ac_link) 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } &&
23690          { ac_try='test -z "$ac_c_werror_flag"
23691                          || test ! -s conftest.err'
23692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693   (eval $ac_try) 2>&5
23694   ac_status=$?
23695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696   (exit $ac_status); }; } &&
23697          { ac_try='test -s conftest$ac_exeext'
23698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699   (eval $ac_try) 2>&5
23700   ac_status=$?
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); }; }; then
23703   ol_cv_pthread_lpthreads_lexc=yes
23704 else
23705   echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ol_cv_pthread_lpthreads_lexc=no
23709 fi
23710 rm -f conftest.err conftest.$ac_objext \
23711       conftest$ac_exeext conftest.$ac_ext
23712 else
23713   cat >conftest.$ac_ext <<_ACEOF
23714 /* confdefs.h.  */
23715 _ACEOF
23716 cat confdefs.h >>conftest.$ac_ext
23717 cat >>conftest.$ac_ext <<_ACEOF
23718 /* end confdefs.h.  */
23719
23720 /* pthread test headers */
23721 #include <pthread.h>
23722 #if HAVE_PTHREADS < 7
23723 #include <errno.h>
23724 #endif
23725 #ifndef NULL
23726 #define NULL (void*)0
23727 #endif
23728
23729 static void *task(p)
23730         void *p;
23731 {
23732         return (void *) (p == NULL);
23733 }
23734
23735
23736 int main(argc, argv)
23737         int argc;
23738         char **argv;
23739 {
23740
23741         /* pthread test function */
23742 #ifndef PTHREAD_CREATE_DETACHED
23743 #define PTHREAD_CREATE_DETACHED 1
23744 #endif
23745         pthread_t t;
23746         int status;
23747         int detach = PTHREAD_CREATE_DETACHED;
23748
23749 #if HAVE_PTHREADS > 4
23750         /* Final pthreads */
23751         pthread_attr_t attr;
23752
23753         status = pthread_attr_init(&attr);
23754         if( status ) return status;
23755
23756 #if HAVE_PTHREADS < 7
23757         status = pthread_attr_setdetachstate(&attr, &detach);
23758         if( status < 0 ) status = errno;
23759 #else
23760         status = pthread_attr_setdetachstate(&attr, detach);
23761 #endif
23762         if( status ) return status;
23763         status = pthread_create( &t, &attr, task, NULL );
23764 #if HAVE_PTHREADS < 7
23765         if( status < 0 ) status = errno;
23766 #endif
23767         if( status ) return status;
23768 #else
23769         /* Draft 4 pthreads */
23770         status = pthread_create( &t, pthread_attr_default, task, NULL );
23771         if( status ) return errno;
23772
23773         /* give thread a chance to complete */
23774         /* it should remain joinable and hence detachable */
23775         sleep( 1 );
23776
23777         status = pthread_detach( &t );
23778         if( status ) return errno;
23779 #endif
23780
23781 #ifdef HAVE_LINUX_THREADS
23782         pthread_kill_other_threads_np();
23783 #endif
23784
23785         return 0;
23786
23787 }
23788
23789 _ACEOF
23790 rm -f conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792   (eval $ac_link) 2>&5
23793   ac_status=$?
23794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797   (eval $ac_try) 2>&5
23798   ac_status=$?
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); }; }; then
23801   ol_cv_pthread_lpthreads_lexc=yes
23802 else
23803   echo "$as_me: program exited with status $ac_status" >&5
23804 echo "$as_me: failed program was:" >&5
23805 sed 's/^/| /' conftest.$ac_ext >&5
23806
23807 ( exit $ac_status )
23808 ol_cv_pthread_lpthreads_lexc=no
23809 fi
23810 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23811 fi
23812
23813                 # restore the LIBS
23814                 LIBS="$ol_LIBS"
23815
23816 fi
23817 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23818 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23819
23820         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23821                 ol_link_pthreads="-lpthreads -lexc"
23822                 ol_link_threads=posix
23823         fi
23824 fi
23825
23826
23827                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23828 if test "$ol_link_threads" = no ; then
23829         # try -lpthreads
23830         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23831 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23832 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23833   echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835
23836                 # save the flags
23837                 ol_LIBS="$LIBS"
23838                 LIBS="-lpthreads $LIBS"
23839
23840                 if test "$cross_compiling" = yes; then
23841   cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h.  */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h.  */
23847
23848 /* pthread test headers */
23849 #include <pthread.h>
23850 #if HAVE_PTHREADS < 7
23851 #include <errno.h>
23852 #endif
23853 #ifndef NULL
23854 #define NULL (void*)0
23855 #endif
23856
23857 static void *task(p)
23858         void *p;
23859 {
23860         return (void *) (p == NULL);
23861 }
23862
23863 int
23864 main ()
23865 {
23866
23867         /* pthread test function */
23868 #ifndef PTHREAD_CREATE_DETACHED
23869 #define PTHREAD_CREATE_DETACHED 1
23870 #endif
23871         pthread_t t;
23872         int status;
23873         int detach = PTHREAD_CREATE_DETACHED;
23874
23875 #if HAVE_PTHREADS > 4
23876         /* Final pthreads */
23877         pthread_attr_t attr;
23878
23879         status = pthread_attr_init(&attr);
23880         if( status ) return status;
23881
23882 #if HAVE_PTHREADS < 7
23883         status = pthread_attr_setdetachstate(&attr, &detach);
23884         if( status < 0 ) status = errno;
23885 #else
23886         status = pthread_attr_setdetachstate(&attr, detach);
23887 #endif
23888         if( status ) return status;
23889         status = pthread_create( &t, &attr, task, NULL );
23890 #if HAVE_PTHREADS < 7
23891         if( status < 0 ) status = errno;
23892 #endif
23893         if( status ) return status;
23894 #else
23895         /* Draft 4 pthreads */
23896         status = pthread_create( &t, pthread_attr_default, task, NULL );
23897         if( status ) return errno;
23898
23899         /* give thread a chance to complete */
23900         /* it should remain joinable and hence detachable */
23901         sleep( 1 );
23902
23903         status = pthread_detach( &t );
23904         if( status ) return errno;
23905 #endif
23906
23907 #ifdef HAVE_LINUX_THREADS
23908         pthread_kill_other_threads_np();
23909 #endif
23910
23911         return 0;
23912
23913   ;
23914   return 0;
23915 }
23916 _ACEOF
23917 rm -f conftest.$ac_objext conftest$ac_exeext
23918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23919   (eval $ac_link) 2>conftest.er1
23920   ac_status=$?
23921   grep -v '^ *+' conftest.er1 >conftest.err
23922   rm -f conftest.er1
23923   cat conftest.err >&5
23924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925   (exit $ac_status); } &&
23926          { ac_try='test -z "$ac_c_werror_flag"
23927                          || test ! -s conftest.err'
23928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929   (eval $ac_try) 2>&5
23930   ac_status=$?
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); }; } &&
23933          { ac_try='test -s conftest$ac_exeext'
23934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935   (eval $ac_try) 2>&5
23936   ac_status=$?
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); }; }; then
23939   ol_cv_pthread_lib_lpthreads=yes
23940 else
23941   echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23943
23944 ol_cv_pthread_lib_lpthreads=no
23945 fi
23946 rm -f conftest.err conftest.$ac_objext \
23947       conftest$ac_exeext conftest.$ac_ext
23948 else
23949   cat >conftest.$ac_ext <<_ACEOF
23950 /* confdefs.h.  */
23951 _ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h.  */
23955
23956 /* pthread test headers */
23957 #include <pthread.h>
23958 #if HAVE_PTHREADS < 7
23959 #include <errno.h>
23960 #endif
23961 #ifndef NULL
23962 #define NULL (void*)0
23963 #endif
23964
23965 static void *task(p)
23966         void *p;
23967 {
23968         return (void *) (p == NULL);
23969 }
23970
23971
23972 int main(argc, argv)
23973         int argc;
23974         char **argv;
23975 {
23976
23977         /* pthread test function */
23978 #ifndef PTHREAD_CREATE_DETACHED
23979 #define PTHREAD_CREATE_DETACHED 1
23980 #endif
23981         pthread_t t;
23982         int status;
23983         int detach = PTHREAD_CREATE_DETACHED;
23984
23985 #if HAVE_PTHREADS > 4
23986         /* Final pthreads */
23987         pthread_attr_t attr;
23988
23989         status = pthread_attr_init(&attr);
23990         if( status ) return status;
23991
23992 #if HAVE_PTHREADS < 7
23993         status = pthread_attr_setdetachstate(&attr, &detach);
23994         if( status < 0 ) status = errno;
23995 #else
23996         status = pthread_attr_setdetachstate(&attr, detach);
23997 #endif
23998         if( status ) return status;
23999         status = pthread_create( &t, &attr, task, NULL );
24000 #if HAVE_PTHREADS < 7
24001         if( status < 0 ) status = errno;
24002 #endif
24003         if( status ) return status;
24004 #else
24005         /* Draft 4 pthreads */
24006         status = pthread_create( &t, pthread_attr_default, task, NULL );
24007         if( status ) return errno;
24008
24009         /* give thread a chance to complete */
24010         /* it should remain joinable and hence detachable */
24011         sleep( 1 );
24012
24013         status = pthread_detach( &t );
24014         if( status ) return errno;
24015 #endif
24016
24017 #ifdef HAVE_LINUX_THREADS
24018         pthread_kill_other_threads_np();
24019 #endif
24020
24021         return 0;
24022
24023 }
24024
24025 _ACEOF
24026 rm -f conftest$ac_exeext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24028   (eval $ac_link) 2>&5
24029   ac_status=$?
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033   (eval $ac_try) 2>&5
24034   ac_status=$?
24035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036   (exit $ac_status); }; }; then
24037   ol_cv_pthread_lib_lpthreads=yes
24038 else
24039   echo "$as_me: program exited with status $ac_status" >&5
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24042
24043 ( exit $ac_status )
24044 ol_cv_pthread_lib_lpthreads=no
24045 fi
24046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24047 fi
24048
24049                 # restore the LIBS
24050                 LIBS="$ol_LIBS"
24051
24052 fi
24053 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24054 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24055
24056         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24057                 ol_link_pthreads="-lpthreads"
24058                 ol_link_threads=posix
24059         fi
24060 fi
24061
24062
24063                 if test $ol_link_threads != no ; then
24064                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24065
24066                                                 save_CPPFLAGS="$CPPFLAGS"
24067                         save_LIBS="$LIBS"
24068                         LIBS="$LTHREAD_LIBS $LIBS"
24069
24070
24071
24072
24073 for ac_func in sched_yield pthread_yield thr_yield
24074 do
24075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24076 echo "$as_me:$LINENO: checking for $ac_func" >&5
24077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24078 if eval "test \"\${$as_ac_var+set}\" = set"; then
24079   echo $ECHO_N "(cached) $ECHO_C" >&6
24080 else
24081   cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h.  */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h.  */
24087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24089 #define $ac_func innocuous_$ac_func
24090
24091 /* System header to define __stub macros and hopefully few prototypes,
24092     which can conflict with char $ac_func (); below.
24093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24094     <limits.h> exists even on freestanding compilers.  */
24095
24096 #ifdef __STDC__
24097 # include <limits.h>
24098 #else
24099 # include <assert.h>
24100 #endif
24101
24102 #undef $ac_func
24103
24104 /* Override any gcc2 internal prototype to avoid an error.  */
24105 #ifdef __cplusplus
24106 extern "C"
24107 {
24108 #endif
24109 /* We use char because int might match the return type of a gcc2
24110    builtin and then its argument prototype would still apply.  */
24111 char $ac_func ();
24112 /* The GNU C library defines this for functions which it implements
24113     to always fail with ENOSYS.  Some functions are actually named
24114     something starting with __ and the normal name is an alias.  */
24115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24116 choke me
24117 #else
24118 char (*f) () = $ac_func;
24119 #endif
24120 #ifdef __cplusplus
24121 }
24122 #endif
24123
24124 int
24125 main ()
24126 {
24127 return f != $ac_func;
24128   ;
24129   return 0;
24130 }
24131 _ACEOF
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24134   (eval $ac_link) 2>conftest.er1
24135   ac_status=$?
24136   grep -v '^ *+' conftest.er1 >conftest.err
24137   rm -f conftest.er1
24138   cat conftest.err >&5
24139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140   (exit $ac_status); } &&
24141          { ac_try='test -z "$ac_c_werror_flag"
24142                          || test ! -s conftest.err'
24143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144   (eval $ac_try) 2>&5
24145   ac_status=$?
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); }; } &&
24148          { ac_try='test -s conftest$ac_exeext'
24149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24150   (eval $ac_try) 2>&5
24151   ac_status=$?
24152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153   (exit $ac_status); }; }; then
24154   eval "$as_ac_var=yes"
24155 else
24156   echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24158
24159 eval "$as_ac_var=no"
24160 fi
24161 rm -f conftest.err conftest.$ac_objext \
24162       conftest$ac_exeext conftest.$ac_ext
24163 fi
24164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24166 if test `eval echo '${'$as_ac_var'}'` = yes; then
24167   cat >>confdefs.h <<_ACEOF
24168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24169 _ACEOF
24170
24171 fi
24172 done
24173
24174
24175                         if test $ac_cv_func_sched_yield = no &&
24176                            test $ac_cv_func_pthread_yield = no &&
24177                            test $ac_cv_func_thr_yield = no ; then
24178                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24179 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24180 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24181   echo $ECHO_N "(cached) $ECHO_C" >&6
24182 else
24183   ac_check_lib_save_LIBS=$LIBS
24184 LIBS="-lrt  $LIBS"
24185 cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h.  */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h.  */
24191
24192 /* Override any gcc2 internal prototype to avoid an error.  */
24193 #ifdef __cplusplus
24194 extern "C"
24195 #endif
24196 /* We use char because int might match the return type of a gcc2
24197    builtin and then its argument prototype would still apply.  */
24198 char sched_yield ();
24199 int
24200 main ()
24201 {
24202 sched_yield ();
24203   ;
24204   return 0;
24205 }
24206 _ACEOF
24207 rm -f conftest.$ac_objext conftest$ac_exeext
24208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24209   (eval $ac_link) 2>conftest.er1
24210   ac_status=$?
24211   grep -v '^ *+' conftest.er1 >conftest.err
24212   rm -f conftest.er1
24213   cat conftest.err >&5
24214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215   (exit $ac_status); } &&
24216          { ac_try='test -z "$ac_c_werror_flag"
24217                          || test ! -s conftest.err'
24218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219   (eval $ac_try) 2>&5
24220   ac_status=$?
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); }; } &&
24223          { ac_try='test -s conftest$ac_exeext'
24224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225   (eval $ac_try) 2>&5
24226   ac_status=$?
24227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228   (exit $ac_status); }; }; then
24229   ac_cv_lib_rt_sched_yield=yes
24230 else
24231   echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24233
24234 ac_cv_lib_rt_sched_yield=no
24235 fi
24236 rm -f conftest.err conftest.$ac_objext \
24237       conftest$ac_exeext conftest.$ac_ext
24238 LIBS=$ac_check_lib_save_LIBS
24239 fi
24240 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24241 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24242 if test $ac_cv_lib_rt_sched_yield = yes; then
24243   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24244
24245 cat >>confdefs.h <<\_ACEOF
24246 #define HAVE_SCHED_YIELD 1
24247 _ACEOF
24248
24249                                         ac_cv_func_sched_yield=yes
24250 else
24251   ac_cv_func_sched_yield=no
24252 fi
24253
24254                         fi
24255                         if test $ac_cv_func_sched_yield = no &&
24256                            test $ac_cv_func_pthread_yield = no &&
24257                            test "$ac_cv_func_thr_yield" = no ; then
24258                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24259 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24260                         fi
24261
24262
24263
24264 for ac_func in pthread_kill pthread_rwlock_destroy
24265 do
24266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24267 echo "$as_me:$LINENO: checking for $ac_func" >&5
24268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24269 if eval "test \"\${$as_ac_var+set}\" = set"; then
24270   echo $ECHO_N "(cached) $ECHO_C" >&6
24271 else
24272   cat >conftest.$ac_ext <<_ACEOF
24273 /* confdefs.h.  */
24274 _ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h.  */
24278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24280 #define $ac_func innocuous_$ac_func
24281
24282 /* System header to define __stub macros and hopefully few prototypes,
24283     which can conflict with char $ac_func (); below.
24284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24285     <limits.h> exists even on freestanding compilers.  */
24286
24287 #ifdef __STDC__
24288 # include <limits.h>
24289 #else
24290 # include <assert.h>
24291 #endif
24292
24293 #undef $ac_func
24294
24295 /* Override any gcc2 internal prototype to avoid an error.  */
24296 #ifdef __cplusplus
24297 extern "C"
24298 {
24299 #endif
24300 /* We use char because int might match the return type of a gcc2
24301    builtin and then its argument prototype would still apply.  */
24302 char $ac_func ();
24303 /* The GNU C library defines this for functions which it implements
24304     to always fail with ENOSYS.  Some functions are actually named
24305     something starting with __ and the normal name is an alias.  */
24306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24307 choke me
24308 #else
24309 char (*f) () = $ac_func;
24310 #endif
24311 #ifdef __cplusplus
24312 }
24313 #endif
24314
24315 int
24316 main ()
24317 {
24318 return f != $ac_func;
24319   ;
24320   return 0;
24321 }
24322 _ACEOF
24323 rm -f conftest.$ac_objext conftest$ac_exeext
24324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24325   (eval $ac_link) 2>conftest.er1
24326   ac_status=$?
24327   grep -v '^ *+' conftest.er1 >conftest.err
24328   rm -f conftest.er1
24329   cat conftest.err >&5
24330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331   (exit $ac_status); } &&
24332          { ac_try='test -z "$ac_c_werror_flag"
24333                          || test ! -s conftest.err'
24334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335   (eval $ac_try) 2>&5
24336   ac_status=$?
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); }; } &&
24339          { ac_try='test -s conftest$ac_exeext'
24340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341   (eval $ac_try) 2>&5
24342   ac_status=$?
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); }; }; then
24345   eval "$as_ac_var=yes"
24346 else
24347   echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24349
24350 eval "$as_ac_var=no"
24351 fi
24352 rm -f conftest.err conftest.$ac_objext \
24353       conftest$ac_exeext conftest.$ac_ext
24354 fi
24355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24357 if test `eval echo '${'$as_ac_var'}'` = yes; then
24358   cat >>confdefs.h <<_ACEOF
24359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24360 _ACEOF
24361
24362 fi
24363 done
24364
24365
24366                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24367 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24368 if test "${ol_cv_func_pthread_detach+set}" = set; then
24369   echo $ECHO_N "(cached) $ECHO_C" >&6
24370 else
24371
24372                                                                 cat >conftest.$ac_ext <<_ACEOF
24373 /* confdefs.h.  */
24374 _ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h.  */
24378
24379 #include <pthread.h>
24380 #ifndef NULL
24381 #define NULL (void*)0
24382 #endif
24383
24384 int
24385 main ()
24386 {
24387 pthread_detach(NULL);
24388   ;
24389   return 0;
24390 }
24391 _ACEOF
24392 rm -f conftest.$ac_objext conftest$ac_exeext
24393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24394   (eval $ac_link) 2>conftest.er1
24395   ac_status=$?
24396   grep -v '^ *+' conftest.er1 >conftest.err
24397   rm -f conftest.er1
24398   cat conftest.err >&5
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); } &&
24401          { ac_try='test -z "$ac_c_werror_flag"
24402                          || test ! -s conftest.err'
24403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404   (eval $ac_try) 2>&5
24405   ac_status=$?
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); }; } &&
24408          { ac_try='test -s conftest$ac_exeext'
24409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); }; }; then
24414   ol_cv_func_pthread_detach=yes
24415 else
24416   echo "$as_me: failed program was:" >&5
24417 sed 's/^/| /' conftest.$ac_ext >&5
24418
24419 ol_cv_func_pthread_detach=no
24420 fi
24421 rm -f conftest.err conftest.$ac_objext \
24422       conftest$ac_exeext conftest.$ac_ext
24423
24424 fi
24425 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24426 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24427
24428                         if test $ol_cv_func_pthread_detach = no ; then
24429                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24430 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24431    { (exit 1); exit 1; }; }
24432                         fi
24433
24434
24435 cat >>confdefs.h <<\_ACEOF
24436 #define HAVE_PTHREAD_DETACH 1
24437 _ACEOF
24438
24439
24440
24441
24442
24443
24444 for ac_func in \
24445                                 pthread_setconcurrency \
24446                                 pthread_getconcurrency \
24447                                 thr_setconcurrency \
24448                                 thr_getconcurrency \
24449
24450 do
24451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24452 echo "$as_me:$LINENO: checking for $ac_func" >&5
24453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24454 if eval "test \"\${$as_ac_var+set}\" = set"; then
24455   echo $ECHO_N "(cached) $ECHO_C" >&6
24456 else
24457   cat >conftest.$ac_ext <<_ACEOF
24458 /* confdefs.h.  */
24459 _ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h.  */
24463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24465 #define $ac_func innocuous_$ac_func
24466
24467 /* System header to define __stub macros and hopefully few prototypes,
24468     which can conflict with char $ac_func (); below.
24469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24470     <limits.h> exists even on freestanding compilers.  */
24471
24472 #ifdef __STDC__
24473 # include <limits.h>
24474 #else
24475 # include <assert.h>
24476 #endif
24477
24478 #undef $ac_func
24479
24480 /* Override any gcc2 internal prototype to avoid an error.  */
24481 #ifdef __cplusplus
24482 extern "C"
24483 {
24484 #endif
24485 /* We use char because int might match the return type of a gcc2
24486    builtin and then its argument prototype would still apply.  */
24487 char $ac_func ();
24488 /* The GNU C library defines this for functions which it implements
24489     to always fail with ENOSYS.  Some functions are actually named
24490     something starting with __ and the normal name is an alias.  */
24491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24492 choke me
24493 #else
24494 char (*f) () = $ac_func;
24495 #endif
24496 #ifdef __cplusplus
24497 }
24498 #endif
24499
24500 int
24501 main ()
24502 {
24503 return f != $ac_func;
24504   ;
24505   return 0;
24506 }
24507 _ACEOF
24508 rm -f conftest.$ac_objext conftest$ac_exeext
24509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24510   (eval $ac_link) 2>conftest.er1
24511   ac_status=$?
24512   grep -v '^ *+' conftest.er1 >conftest.err
24513   rm -f conftest.er1
24514   cat conftest.err >&5
24515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516   (exit $ac_status); } &&
24517          { ac_try='test -z "$ac_c_werror_flag"
24518                          || test ! -s conftest.err'
24519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520   (eval $ac_try) 2>&5
24521   ac_status=$?
24522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); }; } &&
24524          { ac_try='test -s conftest$ac_exeext'
24525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24526   (eval $ac_try) 2>&5
24527   ac_status=$?
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); }; }; then
24530   eval "$as_ac_var=yes"
24531 else
24532   echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24534
24535 eval "$as_ac_var=no"
24536 fi
24537 rm -f conftest.err conftest.$ac_objext \
24538       conftest$ac_exeext conftest.$ac_ext
24539 fi
24540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24542 if test `eval echo '${'$as_ac_var'}'` = yes; then
24543   cat >>confdefs.h <<_ACEOF
24544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24545 _ACEOF
24546
24547 fi
24548 done
24549
24550
24551
24552
24553 for ac_func in pthread_kill_other_threads_np
24554 do
24555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24556 echo "$as_me:$LINENO: checking for $ac_func" >&5
24557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24558 if eval "test \"\${$as_ac_var+set}\" = set"; then
24559   echo $ECHO_N "(cached) $ECHO_C" >&6
24560 else
24561   cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24569 #define $ac_func innocuous_$ac_func
24570
24571 /* System header to define __stub macros and hopefully few prototypes,
24572     which can conflict with char $ac_func (); below.
24573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24574     <limits.h> exists even on freestanding compilers.  */
24575
24576 #ifdef __STDC__
24577 # include <limits.h>
24578 #else
24579 # include <assert.h>
24580 #endif
24581
24582 #undef $ac_func
24583
24584 /* Override any gcc2 internal prototype to avoid an error.  */
24585 #ifdef __cplusplus
24586 extern "C"
24587 {
24588 #endif
24589 /* We use char because int might match the return type of a gcc2
24590    builtin and then its argument prototype would still apply.  */
24591 char $ac_func ();
24592 /* The GNU C library defines this for functions which it implements
24593     to always fail with ENOSYS.  Some functions are actually named
24594     something starting with __ and the normal name is an alias.  */
24595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24596 choke me
24597 #else
24598 char (*f) () = $ac_func;
24599 #endif
24600 #ifdef __cplusplus
24601 }
24602 #endif
24603
24604 int
24605 main ()
24606 {
24607 return f != $ac_func;
24608   ;
24609   return 0;
24610 }
24611 _ACEOF
24612 rm -f conftest.$ac_objext conftest$ac_exeext
24613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24614   (eval $ac_link) 2>conftest.er1
24615   ac_status=$?
24616   grep -v '^ *+' conftest.er1 >conftest.err
24617   rm -f conftest.er1
24618   cat conftest.err >&5
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); } &&
24621          { ac_try='test -z "$ac_c_werror_flag"
24622                          || test ! -s conftest.err'
24623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624   (eval $ac_try) 2>&5
24625   ac_status=$?
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); }; } &&
24628          { ac_try='test -s conftest$ac_exeext'
24629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630   (eval $ac_try) 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; }; then
24634   eval "$as_ac_var=yes"
24635 else
24636   echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24638
24639 eval "$as_ac_var=no"
24640 fi
24641 rm -f conftest.err conftest.$ac_objext \
24642       conftest$ac_exeext conftest.$ac_ext
24643 fi
24644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24646 if test `eval echo '${'$as_ac_var'}'` = yes; then
24647   cat >>confdefs.h <<_ACEOF
24648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24649 _ACEOF
24650
24651 fi
24652 done
24653
24654         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24655 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24656 if test "${ol_cv_sys_linux_threads+set}" = set; then
24657   echo $ECHO_N "(cached) $ECHO_C" >&6
24658 else
24659   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24660 fi
24661 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24662 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24663
24664
24665
24666
24667         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24668 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24669 if test "${ol_cv_linux_threads+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672
24673                 if test $ol_cv_header_linux_threads = yes &&
24674                    test $ol_cv_sys_linux_threads = yes; then
24675                         ol_cv_linux_threads=yes
24676                 elif test $ol_cv_header_linux_threads = no &&
24677                      test $ol_cv_sys_linux_threads = no; then
24678                         ol_cv_linux_threads=no
24679                 else
24680                         ol_cv_linux_threads=error
24681                 fi
24682
24683 fi
24684 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24685 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24686
24687
24688                         if test $ol_cv_linux_threads = error; then
24689                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24690 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24691    { (exit 1); exit 1; }; };
24692                         fi
24693
24694                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24695 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24696 if test "${ol_cv_pthread_create_works+set}" = set; then
24697   echo $ECHO_N "(cached) $ECHO_C" >&6
24698 else
24699
24700                         if test "$cross_compiling" = yes; then
24701                                 ol_cv_pthread_create_works=yes
24702 else
24703   cat >conftest.$ac_ext <<_ACEOF
24704 /* confdefs.h.  */
24705 _ACEOF
24706 cat confdefs.h >>conftest.$ac_ext
24707 cat >>conftest.$ac_ext <<_ACEOF
24708 /* end confdefs.h.  */
24709
24710 /* pthread test headers */
24711 #include <pthread.h>
24712 #if HAVE_PTHREADS < 7
24713 #include <errno.h>
24714 #endif
24715 #ifndef NULL
24716 #define NULL (void*)0
24717 #endif
24718
24719 static void *task(p)
24720         void *p;
24721 {
24722         return (void *) (p == NULL);
24723 }
24724
24725
24726 int main(argc, argv)
24727         int argc;
24728         char **argv;
24729 {
24730
24731         /* pthread test function */
24732 #ifndef PTHREAD_CREATE_DETACHED
24733 #define PTHREAD_CREATE_DETACHED 1
24734 #endif
24735         pthread_t t;
24736         int status;
24737         int detach = PTHREAD_CREATE_DETACHED;
24738
24739 #if HAVE_PTHREADS > 4
24740         /* Final pthreads */
24741         pthread_attr_t attr;
24742
24743         status = pthread_attr_init(&attr);
24744         if( status ) return status;
24745
24746 #if HAVE_PTHREADS < 7
24747         status = pthread_attr_setdetachstate(&attr, &detach);
24748         if( status < 0 ) status = errno;
24749 #else
24750         status = pthread_attr_setdetachstate(&attr, detach);
24751 #endif
24752         if( status ) return status;
24753         status = pthread_create( &t, &attr, task, NULL );
24754 #if HAVE_PTHREADS < 7
24755         if( status < 0 ) status = errno;
24756 #endif
24757         if( status ) return status;
24758 #else
24759         /* Draft 4 pthreads */
24760         status = pthread_create( &t, pthread_attr_default, task, NULL );
24761         if( status ) return errno;
24762
24763         /* give thread a chance to complete */
24764         /* it should remain joinable and hence detachable */
24765         sleep( 1 );
24766
24767         status = pthread_detach( &t );
24768         if( status ) return errno;
24769 #endif
24770
24771 #ifdef HAVE_LINUX_THREADS
24772         pthread_kill_other_threads_np();
24773 #endif
24774
24775         return 0;
24776
24777 }
24778
24779 _ACEOF
24780 rm -f conftest$ac_exeext
24781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24782   (eval $ac_link) 2>&5
24783   ac_status=$?
24784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787   (eval $ac_try) 2>&5
24788   ac_status=$?
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); }; }; then
24791   ol_cv_pthread_create_works=yes
24792 else
24793   echo "$as_me: program exited with status $ac_status" >&5
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797 ( exit $ac_status )
24798 ol_cv_pthread_create_works=no
24799 fi
24800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24801 fi
24802 fi
24803 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24804 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24805
24806                         if test $ol_cv_pthread_create_works = no ; then
24807                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24808 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24809    { (exit 1); exit 1; }; }
24810                         fi
24811
24812                                                 if test $ol_with_yielding_select = auto ; then
24813                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24814 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24815 if test "${ol_cv_pthread_select_yields+set}" = set; then
24816   echo $ECHO_N "(cached) $ECHO_C" >&6
24817 else
24818
24819                                 if test "$cross_compiling" = yes; then
24820   ol_cv_pthread_select_yields=cross
24821 else
24822   cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828
24829 #include <sys/types.h>
24830 #include <sys/time.h>
24831 #include <unistd.h>
24832 #include <pthread.h>
24833 #ifndef NULL
24834 #define NULL (void*) 0
24835 #endif
24836
24837 static int fildes[2];
24838
24839 static void *task(p)
24840         void *p;
24841 {
24842         int i;
24843         struct timeval tv;
24844
24845         fd_set rfds;
24846
24847         tv.tv_sec=10;
24848         tv.tv_usec=0;
24849
24850         FD_ZERO(&rfds);
24851         FD_SET(fildes[0], &rfds);
24852
24853         /* we're not interested in any fds */
24854         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24855
24856         if(i < 0) {
24857                 perror("select");
24858                 exit(10);
24859         }
24860
24861         exit(0); /* if we exit here, the select blocked the whole process */
24862 }
24863
24864 int main(argc, argv)
24865         int argc;
24866         char **argv;
24867 {
24868         pthread_t t;
24869
24870         /* create a pipe to select */
24871         if(pipe(&fildes[0])) {
24872                 perror("select");
24873                 exit(1);
24874         }
24875
24876 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24877         (void) pthread_setconcurrency(2);
24878 #else
24879 #ifdef HAVE_THR_SETCONCURRENCY
24880         /* Set Solaris LWP concurrency to 2 */
24881         thr_setconcurrency(2);
24882 #endif
24883 #endif
24884
24885 #if HAVE_PTHREADS < 6
24886         pthread_create(&t, pthread_attr_default, task, NULL);
24887 #else
24888         pthread_create(&t, NULL, task, NULL);
24889 #endif
24890
24891         /* make sure task runs first */
24892 #if HAVE_THR_YIELD
24893         thr_yield();
24894 #elif defined( HAVE_SCHED_YIELD )
24895         sched_yield();
24896 #elif defined( HAVE_PTHREAD_YIELD )
24897         pthread_yield();
24898 #endif
24899
24900         exit(2);
24901 }
24902 _ACEOF
24903 rm -f conftest$ac_exeext
24904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24905   (eval $ac_link) 2>&5
24906   ac_status=$?
24907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910   (eval $ac_try) 2>&5
24911   ac_status=$?
24912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913   (exit $ac_status); }; }; then
24914   ol_cv_pthread_select_yields=no
24915 else
24916   echo "$as_me: program exited with status $ac_status" >&5
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24919
24920 ( exit $ac_status )
24921 ol_cv_pthread_select_yields=yes
24922 fi
24923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24924 fi
24925 fi
24926 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24927 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24928
24929                                 if test $ol_cv_pthread_select_yields = cross ; then
24930                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24931 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24932    { (exit 1); exit 1; }; }
24933                                 fi
24934
24935                                 if test $ol_cv_pthread_select_yields = yes ; then
24936                                         ol_with_yielding_select=yes
24937                                 fi
24938                         fi
24939
24940                                                 CPPFLAGS="$save_CPPFLAGS"
24941                         LIBS="$save_LIBS"
24942                 else
24943                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24944 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24945    { (exit 1); exit 1; }; }
24946                 fi
24947         fi
24948
24949         if test $ol_with_threads = posix ; then
24950                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24951 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24952    { (exit 1); exit 1; }; }
24953         fi
24954         ;;
24955 esac
24956
24957 case $ol_with_threads in auto | yes | mach)
24958
24959
24960
24961 for ac_header in mach/cthreads.h cthreads.h
24962 do
24963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24965   echo "$as_me:$LINENO: checking for $ac_header" >&5
24966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24968   echo $ECHO_N "(cached) $ECHO_C" >&6
24969 fi
24970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24972 else
24973   # Is the header compilable?
24974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24976 cat >conftest.$ac_ext <<_ACEOF
24977 /* confdefs.h.  */
24978 _ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h.  */
24982 $ac_includes_default
24983 #include <$ac_header>
24984 _ACEOF
24985 rm -f conftest.$ac_objext
24986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24987   (eval $ac_compile) 2>conftest.er1
24988   ac_status=$?
24989   grep -v '^ *+' conftest.er1 >conftest.err
24990   rm -f conftest.er1
24991   cat conftest.err >&5
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); } &&
24994          { ac_try='test -z "$ac_c_werror_flag"
24995                          || test ! -s conftest.err'
24996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997   (eval $ac_try) 2>&5
24998   ac_status=$?
24999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000   (exit $ac_status); }; } &&
25001          { ac_try='test -s conftest.$ac_objext'
25002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003   (eval $ac_try) 2>&5
25004   ac_status=$?
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); }; }; then
25007   ac_header_compiler=yes
25008 else
25009   echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25011
25012 ac_header_compiler=no
25013 fi
25014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25016 echo "${ECHO_T}$ac_header_compiler" >&6
25017
25018 # Is the header present?
25019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25021 cat >conftest.$ac_ext <<_ACEOF
25022 /* confdefs.h.  */
25023 _ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h.  */
25027 #include <$ac_header>
25028 _ACEOF
25029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25031   ac_status=$?
25032   grep -v '^ *+' conftest.er1 >conftest.err
25033   rm -f conftest.er1
25034   cat conftest.err >&5
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } >/dev/null; then
25037   if test -s conftest.err; then
25038     ac_cpp_err=$ac_c_preproc_warn_flag
25039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25040   else
25041     ac_cpp_err=
25042   fi
25043 else
25044   ac_cpp_err=yes
25045 fi
25046 if test -z "$ac_cpp_err"; then
25047   ac_header_preproc=yes
25048 else
25049   echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25051
25052   ac_header_preproc=no
25053 fi
25054 rm -f conftest.err conftest.$ac_ext
25055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25056 echo "${ECHO_T}$ac_header_preproc" >&6
25057
25058 # So?  What about this header?
25059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25060   yes:no: )
25061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25065     ac_header_preproc=yes
25066     ;;
25067   no:yes:* )
25068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25080     (
25081       cat <<\_ASBOX
25082 ## ------------------------------------------ ##
25083 ## Report this to the AC_PACKAGE_NAME lists.  ##
25084 ## ------------------------------------------ ##
25085 _ASBOX
25086     ) |
25087       sed "s/^/$as_me: WARNING:     /" >&2
25088     ;;
25089 esac
25090 echo "$as_me:$LINENO: checking for $ac_header" >&5
25091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25093   echo $ECHO_N "(cached) $ECHO_C" >&6
25094 else
25095   eval "$as_ac_Header=\$ac_header_preproc"
25096 fi
25097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25099
25100 fi
25101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25102   cat >>confdefs.h <<_ACEOF
25103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25104 _ACEOF
25105
25106 fi
25107
25108 done
25109
25110         if test $ac_cv_header_mach_cthreads_h = yes ; then
25111                 ol_with_threads=found
25112
25113                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25114 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25115 if test "${ac_cv_func_cthread_fork+set}" = set; then
25116   echo $ECHO_N "(cached) $ECHO_C" >&6
25117 else
25118   cat >conftest.$ac_ext <<_ACEOF
25119 /* confdefs.h.  */
25120 _ACEOF
25121 cat confdefs.h >>conftest.$ac_ext
25122 cat >>conftest.$ac_ext <<_ACEOF
25123 /* end confdefs.h.  */
25124 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25126 #define cthread_fork innocuous_cthread_fork
25127
25128 /* System header to define __stub macros and hopefully few prototypes,
25129     which can conflict with char cthread_fork (); below.
25130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25131     <limits.h> exists even on freestanding compilers.  */
25132
25133 #ifdef __STDC__
25134 # include <limits.h>
25135 #else
25136 # include <assert.h>
25137 #endif
25138
25139 #undef cthread_fork
25140
25141 /* Override any gcc2 internal prototype to avoid an error.  */
25142 #ifdef __cplusplus
25143 extern "C"
25144 {
25145 #endif
25146 /* We use char because int might match the return type of a gcc2
25147    builtin and then its argument prototype would still apply.  */
25148 char cthread_fork ();
25149 /* The GNU C library defines this for functions which it implements
25150     to always fail with ENOSYS.  Some functions are actually named
25151     something starting with __ and the normal name is an alias.  */
25152 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25153 choke me
25154 #else
25155 char (*f) () = cthread_fork;
25156 #endif
25157 #ifdef __cplusplus
25158 }
25159 #endif
25160
25161 int
25162 main ()
25163 {
25164 return f != cthread_fork;
25165   ;
25166   return 0;
25167 }
25168 _ACEOF
25169 rm -f conftest.$ac_objext conftest$ac_exeext
25170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25171   (eval $ac_link) 2>conftest.er1
25172   ac_status=$?
25173   grep -v '^ *+' conftest.er1 >conftest.err
25174   rm -f conftest.er1
25175   cat conftest.err >&5
25176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177   (exit $ac_status); } &&
25178          { ac_try='test -z "$ac_c_werror_flag"
25179                          || test ! -s conftest.err'
25180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25181   (eval $ac_try) 2>&5
25182   ac_status=$?
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); }; } &&
25185          { ac_try='test -s conftest$ac_exeext'
25186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187   (eval $ac_try) 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; }; then
25191   ac_cv_func_cthread_fork=yes
25192 else
25193   echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25195
25196 ac_cv_func_cthread_fork=no
25197 fi
25198 rm -f conftest.err conftest.$ac_objext \
25199       conftest$ac_exeext conftest.$ac_ext
25200 fi
25201 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25202 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25203 if test $ac_cv_func_cthread_fork = yes; then
25204   ol_link_threads=yes
25205 fi
25206
25207
25208                 if test $ol_link_threads = no ; then
25209                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25210 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25211 if test "${ol_cv_cthread_all_load+set}" = set; then
25212   echo $ECHO_N "(cached) $ECHO_C" >&6
25213 else
25214
25215                                                                 save_LIBS="$LIBS"
25216                                 LIBS="-all_load $LIBS"
25217                                 cat >conftest.$ac_ext <<_ACEOF
25218 /* confdefs.h.  */
25219 _ACEOF
25220 cat confdefs.h >>conftest.$ac_ext
25221 cat >>conftest.$ac_ext <<_ACEOF
25222 /* end confdefs.h.  */
25223 #include <mach/cthreads.h>
25224 int
25225 main ()
25226 {
25227
25228                                         cthread_fork((void *)0, (void *)0);
25229
25230   ;
25231   return 0;
25232 }
25233 _ACEOF
25234 rm -f conftest.$ac_objext conftest$ac_exeext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25236   (eval $ac_link) 2>conftest.er1
25237   ac_status=$?
25238   grep -v '^ *+' conftest.er1 >conftest.err
25239   rm -f conftest.er1
25240   cat conftest.err >&5
25241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); } &&
25243          { ac_try='test -z "$ac_c_werror_flag"
25244                          || test ! -s conftest.err'
25245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246   (eval $ac_try) 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); }; } &&
25250          { ac_try='test -s conftest$ac_exeext'
25251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252   (eval $ac_try) 2>&5
25253   ac_status=$?
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); }; }; then
25256   ol_cv_cthread_all_load=yes
25257 else
25258   echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25260
25261 ol_cv_cthread_all_load=no
25262 fi
25263 rm -f conftest.err conftest.$ac_objext \
25264       conftest$ac_exeext conftest.$ac_ext
25265                                                                 LIBS="$save_LIBS"
25266
25267 fi
25268 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25269 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25270
25271                         if test $ol_cv_cthread_all_load = yes ; then
25272                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25273                                 ol_link_threads=mach
25274                                 ol_with_threads=found
25275                         fi
25276                 fi
25277
25278         elif test $ac_cv_header_cthreads_h = yes ; then
25279
25280                 ol_with_threads=found
25281
25282                                 save_LIBS="$LIBS"
25283                 LIBS="$LIBS -lthreads"
25284                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25285 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25286 if test "${ac_cv_func_cthread_fork+set}" = set; then
25287   echo $ECHO_N "(cached) $ECHO_C" >&6
25288 else
25289   cat >conftest.$ac_ext <<_ACEOF
25290 /* confdefs.h.  */
25291 _ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h.  */
25295 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25297 #define cthread_fork innocuous_cthread_fork
25298
25299 /* System header to define __stub macros and hopefully few prototypes,
25300     which can conflict with char cthread_fork (); below.
25301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25302     <limits.h> exists even on freestanding compilers.  */
25303
25304 #ifdef __STDC__
25305 # include <limits.h>
25306 #else
25307 # include <assert.h>
25308 #endif
25309
25310 #undef cthread_fork
25311
25312 /* Override any gcc2 internal prototype to avoid an error.  */
25313 #ifdef __cplusplus
25314 extern "C"
25315 {
25316 #endif
25317 /* We use char because int might match the return type of a gcc2
25318    builtin and then its argument prototype would still apply.  */
25319 char cthread_fork ();
25320 /* The GNU C library defines this for functions which it implements
25321     to always fail with ENOSYS.  Some functions are actually named
25322     something starting with __ and the normal name is an alias.  */
25323 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25324 choke me
25325 #else
25326 char (*f) () = cthread_fork;
25327 #endif
25328 #ifdef __cplusplus
25329 }
25330 #endif
25331
25332 int
25333 main ()
25334 {
25335 return f != cthread_fork;
25336   ;
25337   return 0;
25338 }
25339 _ACEOF
25340 rm -f conftest.$ac_objext conftest$ac_exeext
25341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25342   (eval $ac_link) 2>conftest.er1
25343   ac_status=$?
25344   grep -v '^ *+' conftest.er1 >conftest.err
25345   rm -f conftest.er1
25346   cat conftest.err >&5
25347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348   (exit $ac_status); } &&
25349          { ac_try='test -z "$ac_c_werror_flag"
25350                          || test ! -s conftest.err'
25351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352   (eval $ac_try) 2>&5
25353   ac_status=$?
25354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355   (exit $ac_status); }; } &&
25356          { ac_try='test -s conftest$ac_exeext'
25357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358   (eval $ac_try) 2>&5
25359   ac_status=$?
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); }; }; then
25362   ac_cv_func_cthread_fork=yes
25363 else
25364   echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367 ac_cv_func_cthread_fork=no
25368 fi
25369 rm -f conftest.err conftest.$ac_objext \
25370       conftest$ac_exeext conftest.$ac_ext
25371 fi
25372 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25373 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25374 if test $ac_cv_func_cthread_fork = yes; then
25375   ol_link_threads=yes
25376 fi
25377
25378                 LIBS="$save_LIBS"
25379
25380                 if test $ol_link_threads = yes ; then
25381                         LTHREAD_LIBS="-lthreads"
25382                         ol_link_threads=mach
25383                         ol_with_threads=found
25384                 else
25385                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25386 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25387    { (exit 1); exit 1; }; }
25388                 fi
25389
25390         elif test $ol_with_threads = mach ; then
25391                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25392 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25393    { (exit 1); exit 1; }; }
25394         fi
25395
25396         if test $ol_link_threads = mach ; then
25397
25398 cat >>confdefs.h <<\_ACEOF
25399 #define HAVE_MACH_CTHREADS 1
25400 _ACEOF
25401
25402         elif test $ol_with_threads = found ; then
25403                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25404 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25405    { (exit 1); exit 1; }; }
25406         fi
25407         ;;
25408 esac
25409
25410 case $ol_with_threads in auto | yes | pth)
25411
25412
25413 for ac_header in pth.h
25414 do
25415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25417   echo "$as_me:$LINENO: checking for $ac_header" >&5
25418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25420   echo $ECHO_N "(cached) $ECHO_C" >&6
25421 fi
25422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25424 else
25425   # Is the header compilable?
25426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25428 cat >conftest.$ac_ext <<_ACEOF
25429 /* confdefs.h.  */
25430 _ACEOF
25431 cat confdefs.h >>conftest.$ac_ext
25432 cat >>conftest.$ac_ext <<_ACEOF
25433 /* end confdefs.h.  */
25434 $ac_includes_default
25435 #include <$ac_header>
25436 _ACEOF
25437 rm -f conftest.$ac_objext
25438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25439   (eval $ac_compile) 2>conftest.er1
25440   ac_status=$?
25441   grep -v '^ *+' conftest.er1 >conftest.err
25442   rm -f conftest.er1
25443   cat conftest.err >&5
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); } &&
25446          { ac_try='test -z "$ac_c_werror_flag"
25447                          || test ! -s conftest.err'
25448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449   (eval $ac_try) 2>&5
25450   ac_status=$?
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); }; } &&
25453          { ac_try='test -s conftest.$ac_objext'
25454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455   (eval $ac_try) 2>&5
25456   ac_status=$?
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); }; }; then
25459   ac_header_compiler=yes
25460 else
25461   echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25463
25464 ac_header_compiler=no
25465 fi
25466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25468 echo "${ECHO_T}$ac_header_compiler" >&6
25469
25470 # Is the header present?
25471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25473 cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h.  */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h.  */
25479 #include <$ac_header>
25480 _ACEOF
25481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25483   ac_status=$?
25484   grep -v '^ *+' conftest.er1 >conftest.err
25485   rm -f conftest.er1
25486   cat conftest.err >&5
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); } >/dev/null; then
25489   if test -s conftest.err; then
25490     ac_cpp_err=$ac_c_preproc_warn_flag
25491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25492   else
25493     ac_cpp_err=
25494   fi
25495 else
25496   ac_cpp_err=yes
25497 fi
25498 if test -z "$ac_cpp_err"; then
25499   ac_header_preproc=yes
25500 else
25501   echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504   ac_header_preproc=no
25505 fi
25506 rm -f conftest.err conftest.$ac_ext
25507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25508 echo "${ECHO_T}$ac_header_preproc" >&6
25509
25510 # So?  What about this header?
25511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25512   yes:no: )
25513     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25517     ac_header_preproc=yes
25518     ;;
25519   no:yes:* )
25520     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25522     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25523 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25524     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25526     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25527 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25530     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25532     (
25533       cat <<\_ASBOX
25534 ## ------------------------------------------ ##
25535 ## Report this to the AC_PACKAGE_NAME lists.  ##
25536 ## ------------------------------------------ ##
25537 _ASBOX
25538     ) |
25539       sed "s/^/$as_me: WARNING:     /" >&2
25540     ;;
25541 esac
25542 echo "$as_me:$LINENO: checking for $ac_header" >&5
25543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25545   echo $ECHO_N "(cached) $ECHO_C" >&6
25546 else
25547   eval "$as_ac_Header=\$ac_header_preproc"
25548 fi
25549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25551
25552 fi
25553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25554   cat >>confdefs.h <<_ACEOF
25555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25556 _ACEOF
25557
25558 fi
25559
25560 done
25561
25562
25563         if test $ac_cv_header_pth_h = yes ; then
25564                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25565 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25566 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25567   echo $ECHO_N "(cached) $ECHO_C" >&6
25568 else
25569   ac_check_lib_save_LIBS=$LIBS
25570 LIBS="-lpth  $LIBS"
25571 cat >conftest.$ac_ext <<_ACEOF
25572 /* confdefs.h.  */
25573 _ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h.  */
25577
25578 /* Override any gcc2 internal prototype to avoid an error.  */
25579 #ifdef __cplusplus
25580 extern "C"
25581 #endif
25582 /* We use char because int might match the return type of a gcc2
25583    builtin and then its argument prototype would still apply.  */
25584 char pth_version ();
25585 int
25586 main ()
25587 {
25588 pth_version ();
25589   ;
25590   return 0;
25591 }
25592 _ACEOF
25593 rm -f conftest.$ac_objext conftest$ac_exeext
25594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25595   (eval $ac_link) 2>conftest.er1
25596   ac_status=$?
25597   grep -v '^ *+' conftest.er1 >conftest.err
25598   rm -f conftest.er1
25599   cat conftest.err >&5
25600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); } &&
25602          { ac_try='test -z "$ac_c_werror_flag"
25603                          || test ! -s conftest.err'
25604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25605   (eval $ac_try) 2>&5
25606   ac_status=$?
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); }; } &&
25609          { ac_try='test -s conftest$ac_exeext'
25610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25611   (eval $ac_try) 2>&5
25612   ac_status=$?
25613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614   (exit $ac_status); }; }; then
25615   ac_cv_lib_pth_pth_version=yes
25616 else
25617   echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25619
25620 ac_cv_lib_pth_pth_version=no
25621 fi
25622 rm -f conftest.err conftest.$ac_objext \
25623       conftest$ac_exeext conftest.$ac_ext
25624 LIBS=$ac_check_lib_save_LIBS
25625 fi
25626 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25627 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25628 if test $ac_cv_lib_pth_pth_version = yes; then
25629   have_pth=yes
25630 else
25631   have_pth=no
25632 fi
25633
25634
25635                 if test $have_pth = yes ; then
25636
25637 cat >>confdefs.h <<\_ACEOF
25638 #define HAVE_GNU_PTH 1
25639 _ACEOF
25640
25641                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25642                         ol_link_threads=pth
25643                         ol_with_threads=found
25644
25645                         if test $ol_with_yielding_select = auto ; then
25646                                 ol_with_yielding_select=yes
25647                         fi
25648                 fi
25649         fi
25650         ;;
25651 esac
25652
25653 case $ol_with_threads in auto | yes | lwp)
25654
25655
25656
25657 for ac_header in thread.h synch.h
25658 do
25659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25661   echo "$as_me:$LINENO: checking for $ac_header" >&5
25662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25664   echo $ECHO_N "(cached) $ECHO_C" >&6
25665 fi
25666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25668 else
25669   # Is the header compilable?
25670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25672 cat >conftest.$ac_ext <<_ACEOF
25673 /* confdefs.h.  */
25674 _ACEOF
25675 cat confdefs.h >>conftest.$ac_ext
25676 cat >>conftest.$ac_ext <<_ACEOF
25677 /* end confdefs.h.  */
25678 $ac_includes_default
25679 #include <$ac_header>
25680 _ACEOF
25681 rm -f conftest.$ac_objext
25682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25683   (eval $ac_compile) 2>conftest.er1
25684   ac_status=$?
25685   grep -v '^ *+' conftest.er1 >conftest.err
25686   rm -f conftest.er1
25687   cat conftest.err >&5
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); } &&
25690          { ac_try='test -z "$ac_c_werror_flag"
25691                          || test ! -s conftest.err'
25692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25693   (eval $ac_try) 2>&5
25694   ac_status=$?
25695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696   (exit $ac_status); }; } &&
25697          { ac_try='test -s conftest.$ac_objext'
25698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25699   (eval $ac_try) 2>&5
25700   ac_status=$?
25701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702   (exit $ac_status); }; }; then
25703   ac_header_compiler=yes
25704 else
25705   echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25707
25708 ac_header_compiler=no
25709 fi
25710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25712 echo "${ECHO_T}$ac_header_compiler" >&6
25713
25714 # Is the header present?
25715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25717 cat >conftest.$ac_ext <<_ACEOF
25718 /* confdefs.h.  */
25719 _ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h.  */
25723 #include <$ac_header>
25724 _ACEOF
25725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } >/dev/null; then
25733   if test -s conftest.err; then
25734     ac_cpp_err=$ac_c_preproc_warn_flag
25735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25736   else
25737     ac_cpp_err=
25738   fi
25739 else
25740   ac_cpp_err=yes
25741 fi
25742 if test -z "$ac_cpp_err"; then
25743   ac_header_preproc=yes
25744 else
25745   echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25747
25748   ac_header_preproc=no
25749 fi
25750 rm -f conftest.err conftest.$ac_ext
25751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25752 echo "${ECHO_T}$ac_header_preproc" >&6
25753
25754 # So?  What about this header?
25755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25756   yes:no: )
25757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25761     ac_header_preproc=yes
25762     ;;
25763   no:yes:* )
25764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25766     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25767 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25768     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25770     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25771 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25774     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25776     (
25777       cat <<\_ASBOX
25778 ## ------------------------------------------ ##
25779 ## Report this to the AC_PACKAGE_NAME lists.  ##
25780 ## ------------------------------------------ ##
25781 _ASBOX
25782     ) |
25783       sed "s/^/$as_me: WARNING:     /" >&2
25784     ;;
25785 esac
25786 echo "$as_me:$LINENO: checking for $ac_header" >&5
25787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25789   echo $ECHO_N "(cached) $ECHO_C" >&6
25790 else
25791   eval "$as_ac_Header=\$ac_header_preproc"
25792 fi
25793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25795
25796 fi
25797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25798   cat >>confdefs.h <<_ACEOF
25799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25800 _ACEOF
25801
25802 fi
25803
25804 done
25805
25806         if test $ac_cv_header_thread_h = yes &&
25807            test $ac_cv_header_synch_h = yes ; then
25808                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25809 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25810 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25811   echo $ECHO_N "(cached) $ECHO_C" >&6
25812 else
25813   ac_check_lib_save_LIBS=$LIBS
25814 LIBS="-lthread  $LIBS"
25815 cat >conftest.$ac_ext <<_ACEOF
25816 /* confdefs.h.  */
25817 _ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h.  */
25821
25822 /* Override any gcc2 internal prototype to avoid an error.  */
25823 #ifdef __cplusplus
25824 extern "C"
25825 #endif
25826 /* We use char because int might match the return type of a gcc2
25827    builtin and then its argument prototype would still apply.  */
25828 char thr_create ();
25829 int
25830 main ()
25831 {
25832 thr_create ();
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 rm -f conftest.$ac_objext conftest$ac_exeext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25839   (eval $ac_link) 2>conftest.er1
25840   ac_status=$?
25841   grep -v '^ *+' conftest.er1 >conftest.err
25842   rm -f conftest.er1
25843   cat conftest.err >&5
25844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845   (exit $ac_status); } &&
25846          { ac_try='test -z "$ac_c_werror_flag"
25847                          || test ! -s conftest.err'
25848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849   (eval $ac_try) 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); }; } &&
25853          { ac_try='test -s conftest$ac_exeext'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; }; then
25859   ac_cv_lib_thread_thr_create=yes
25860 else
25861   echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864 ac_cv_lib_thread_thr_create=no
25865 fi
25866 rm -f conftest.err conftest.$ac_objext \
25867       conftest$ac_exeext conftest.$ac_ext
25868 LIBS=$ac_check_lib_save_LIBS
25869 fi
25870 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25871 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25872 if test $ac_cv_lib_thread_thr_create = yes; then
25873   have_thr=yes
25874 else
25875   have_thr=no
25876 fi
25877
25878
25879                 if test $have_thr = yes ; then
25880
25881 cat >>confdefs.h <<\_ACEOF
25882 #define HAVE_THR 1
25883 _ACEOF
25884
25885                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25886                         ol_link_threads=thr
25887
25888                         if test $ol_with_yielding_select = auto ; then
25889                                 ol_with_yielding_select=yes
25890                         fi
25891
25892
25893
25894 for ac_func in \
25895                                 thr_setconcurrency \
25896                                 thr_getconcurrency \
25897
25898 do
25899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25900 echo "$as_me:$LINENO: checking for $ac_func" >&5
25901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25902 if eval "test \"\${$as_ac_var+set}\" = set"; then
25903   echo $ECHO_N "(cached) $ECHO_C" >&6
25904 else
25905   cat >conftest.$ac_ext <<_ACEOF
25906 /* confdefs.h.  */
25907 _ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h.  */
25911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25913 #define $ac_func innocuous_$ac_func
25914
25915 /* System header to define __stub macros and hopefully few prototypes,
25916     which can conflict with char $ac_func (); below.
25917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25918     <limits.h> exists even on freestanding compilers.  */
25919
25920 #ifdef __STDC__
25921 # include <limits.h>
25922 #else
25923 # include <assert.h>
25924 #endif
25925
25926 #undef $ac_func
25927
25928 /* Override any gcc2 internal prototype to avoid an error.  */
25929 #ifdef __cplusplus
25930 extern "C"
25931 {
25932 #endif
25933 /* We use char because int might match the return type of a gcc2
25934    builtin and then its argument prototype would still apply.  */
25935 char $ac_func ();
25936 /* The GNU C library defines this for functions which it implements
25937     to always fail with ENOSYS.  Some functions are actually named
25938     something starting with __ and the normal name is an alias.  */
25939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25940 choke me
25941 #else
25942 char (*f) () = $ac_func;
25943 #endif
25944 #ifdef __cplusplus
25945 }
25946 #endif
25947
25948 int
25949 main ()
25950 {
25951 return f != $ac_func;
25952   ;
25953   return 0;
25954 }
25955 _ACEOF
25956 rm -f conftest.$ac_objext conftest$ac_exeext
25957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25958   (eval $ac_link) 2>conftest.er1
25959   ac_status=$?
25960   grep -v '^ *+' conftest.er1 >conftest.err
25961   rm -f conftest.er1
25962   cat conftest.err >&5
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); } &&
25965          { ac_try='test -z "$ac_c_werror_flag"
25966                          || test ! -s conftest.err'
25967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968   (eval $ac_try) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); }; } &&
25972          { ac_try='test -s conftest$ac_exeext'
25973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974   (eval $ac_try) 2>&5
25975   ac_status=$?
25976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977   (exit $ac_status); }; }; then
25978   eval "$as_ac_var=yes"
25979 else
25980   echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25982
25983 eval "$as_ac_var=no"
25984 fi
25985 rm -f conftest.err conftest.$ac_objext \
25986       conftest$ac_exeext conftest.$ac_ext
25987 fi
25988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25990 if test `eval echo '${'$as_ac_var'}'` = yes; then
25991   cat >>confdefs.h <<_ACEOF
25992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25993 _ACEOF
25994
25995 fi
25996 done
25997
25998                 fi
25999         fi
26000
26001
26002 for ac_header in lwp/lwp.h
26003 do
26004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26006   echo "$as_me:$LINENO: checking for $ac_header" >&5
26007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26009   echo $ECHO_N "(cached) $ECHO_C" >&6
26010 fi
26011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26013 else
26014   # Is the header compilable?
26015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26017 cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 $ac_includes_default
26024 #include <$ac_header>
26025 _ACEOF
26026 rm -f conftest.$ac_objext
26027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26028   (eval $ac_compile) 2>conftest.er1
26029   ac_status=$?
26030   grep -v '^ *+' conftest.er1 >conftest.err
26031   rm -f conftest.er1
26032   cat conftest.err >&5
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); } &&
26035          { ac_try='test -z "$ac_c_werror_flag"
26036                          || test ! -s conftest.err'
26037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038   (eval $ac_try) 2>&5
26039   ac_status=$?
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); }; } &&
26042          { ac_try='test -s conftest.$ac_objext'
26043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044   (eval $ac_try) 2>&5
26045   ac_status=$?
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); }; }; then
26048   ac_header_compiler=yes
26049 else
26050   echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053 ac_header_compiler=no
26054 fi
26055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26057 echo "${ECHO_T}$ac_header_compiler" >&6
26058
26059 # Is the header present?
26060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26062 cat >conftest.$ac_ext <<_ACEOF
26063 /* confdefs.h.  */
26064 _ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h.  */
26068 #include <$ac_header>
26069 _ACEOF
26070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26072   ac_status=$?
26073   grep -v '^ *+' conftest.er1 >conftest.err
26074   rm -f conftest.er1
26075   cat conftest.err >&5
26076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077   (exit $ac_status); } >/dev/null; then
26078   if test -s conftest.err; then
26079     ac_cpp_err=$ac_c_preproc_warn_flag
26080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26081   else
26082     ac_cpp_err=
26083   fi
26084 else
26085   ac_cpp_err=yes
26086 fi
26087 if test -z "$ac_cpp_err"; then
26088   ac_header_preproc=yes
26089 else
26090   echo "$as_me: failed program was:" >&5
26091 sed 's/^/| /' conftest.$ac_ext >&5
26092
26093   ac_header_preproc=no
26094 fi
26095 rm -f conftest.err conftest.$ac_ext
26096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26097 echo "${ECHO_T}$ac_header_preproc" >&6
26098
26099 # So?  What about this header?
26100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26101   yes:no: )
26102     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26106     ac_header_preproc=yes
26107     ;;
26108   no:yes:* )
26109     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26111     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26112 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26113     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26115     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26116 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26119     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26121     (
26122       cat <<\_ASBOX
26123 ## ------------------------------------------ ##
26124 ## Report this to the AC_PACKAGE_NAME lists.  ##
26125 ## ------------------------------------------ ##
26126 _ASBOX
26127     ) |
26128       sed "s/^/$as_me: WARNING:     /" >&2
26129     ;;
26130 esac
26131 echo "$as_me:$LINENO: checking for $ac_header" >&5
26132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26134   echo $ECHO_N "(cached) $ECHO_C" >&6
26135 else
26136   eval "$as_ac_Header=\$ac_header_preproc"
26137 fi
26138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26140
26141 fi
26142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26143   cat >>confdefs.h <<_ACEOF
26144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26145 _ACEOF
26146
26147 fi
26148
26149 done
26150
26151         if test $ac_cv_header_lwp_lwp_h = yes ; then
26152                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26153 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26154 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26155   echo $ECHO_N "(cached) $ECHO_C" >&6
26156 else
26157   ac_check_lib_save_LIBS=$LIBS
26158 LIBS="-llwp  $LIBS"
26159 cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165
26166 /* Override any gcc2 internal prototype to avoid an error.  */
26167 #ifdef __cplusplus
26168 extern "C"
26169 #endif
26170 /* We use char because int might match the return type of a gcc2
26171    builtin and then its argument prototype would still apply.  */
26172 char lwp_create ();
26173 int
26174 main ()
26175 {
26176 lwp_create ();
26177   ;
26178   return 0;
26179 }
26180 _ACEOF
26181 rm -f conftest.$ac_objext conftest$ac_exeext
26182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26183   (eval $ac_link) 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } &&
26190          { ac_try='test -z "$ac_c_werror_flag"
26191                          || test ! -s conftest.err'
26192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26193   (eval $ac_try) 2>&5
26194   ac_status=$?
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); }; } &&
26197          { ac_try='test -s conftest$ac_exeext'
26198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199   (eval $ac_try) 2>&5
26200   ac_status=$?
26201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); }; }; then
26203   ac_cv_lib_lwp_lwp_create=yes
26204 else
26205   echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26207
26208 ac_cv_lib_lwp_lwp_create=no
26209 fi
26210 rm -f conftest.err conftest.$ac_objext \
26211       conftest$ac_exeext conftest.$ac_ext
26212 LIBS=$ac_check_lib_save_LIBS
26213 fi
26214 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26215 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26216 if test $ac_cv_lib_lwp_lwp_create = yes; then
26217   have_lwp=yes
26218 else
26219   have_lwp=no
26220 fi
26221
26222
26223                 if test $have_lwp = yes ; then
26224
26225 cat >>confdefs.h <<\_ACEOF
26226 #define HAVE_LWP 1
26227 _ACEOF
26228
26229                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26230                         ol_link_threads=lwp
26231
26232                         if test $ol_with_yielding_select = auto ; then
26233                                 ol_with_yielding_select=no
26234                         fi
26235                 fi
26236         fi
26237         ;;
26238 esac
26239
26240 if test $ol_with_yielding_select = yes ; then
26241
26242 cat >>confdefs.h <<\_ACEOF
26243 #define HAVE_YIELDING_SELECT 1
26244 _ACEOF
26245
26246 fi
26247
26248 if test $ol_with_threads = manual ; then
26249                 ol_link_threads=yes
26250
26251         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26252 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26253
26254
26255
26256 for ac_header in pthread.h sched.h
26257 do
26258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26260   echo "$as_me:$LINENO: checking for $ac_header" >&5
26261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26263   echo $ECHO_N "(cached) $ECHO_C" >&6
26264 fi
26265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26267 else
26268   # Is the header compilable?
26269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26271 cat >conftest.$ac_ext <<_ACEOF
26272 /* confdefs.h.  */
26273 _ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h.  */
26277 $ac_includes_default
26278 #include <$ac_header>
26279 _ACEOF
26280 rm -f conftest.$ac_objext
26281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26282   (eval $ac_compile) 2>conftest.er1
26283   ac_status=$?
26284   grep -v '^ *+' conftest.er1 >conftest.err
26285   rm -f conftest.er1
26286   cat conftest.err >&5
26287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288   (exit $ac_status); } &&
26289          { ac_try='test -z "$ac_c_werror_flag"
26290                          || test ! -s conftest.err'
26291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292   (eval $ac_try) 2>&5
26293   ac_status=$?
26294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295   (exit $ac_status); }; } &&
26296          { ac_try='test -s conftest.$ac_objext'
26297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298   (eval $ac_try) 2>&5
26299   ac_status=$?
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); }; }; then
26302   ac_header_compiler=yes
26303 else
26304   echo "$as_me: failed program was:" >&5
26305 sed 's/^/| /' conftest.$ac_ext >&5
26306
26307 ac_header_compiler=no
26308 fi
26309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26311 echo "${ECHO_T}$ac_header_compiler" >&6
26312
26313 # Is the header present?
26314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26316 cat >conftest.$ac_ext <<_ACEOF
26317 /* confdefs.h.  */
26318 _ACEOF
26319 cat confdefs.h >>conftest.$ac_ext
26320 cat >>conftest.$ac_ext <<_ACEOF
26321 /* end confdefs.h.  */
26322 #include <$ac_header>
26323 _ACEOF
26324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26326   ac_status=$?
26327   grep -v '^ *+' conftest.er1 >conftest.err
26328   rm -f conftest.er1
26329   cat conftest.err >&5
26330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331   (exit $ac_status); } >/dev/null; then
26332   if test -s conftest.err; then
26333     ac_cpp_err=$ac_c_preproc_warn_flag
26334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26335   else
26336     ac_cpp_err=
26337   fi
26338 else
26339   ac_cpp_err=yes
26340 fi
26341 if test -z "$ac_cpp_err"; then
26342   ac_header_preproc=yes
26343 else
26344   echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347   ac_header_preproc=no
26348 fi
26349 rm -f conftest.err conftest.$ac_ext
26350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26351 echo "${ECHO_T}$ac_header_preproc" >&6
26352
26353 # So?  What about this header?
26354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26355   yes:no: )
26356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26360     ac_header_preproc=yes
26361     ;;
26362   no:yes:* )
26363     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26365     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26366 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26367     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26369     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26370 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26373     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26375     (
26376       cat <<\_ASBOX
26377 ## ------------------------------------------ ##
26378 ## Report this to the AC_PACKAGE_NAME lists.  ##
26379 ## ------------------------------------------ ##
26380 _ASBOX
26381     ) |
26382       sed "s/^/$as_me: WARNING:     /" >&2
26383     ;;
26384 esac
26385 echo "$as_me:$LINENO: checking for $ac_header" >&5
26386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26388   echo $ECHO_N "(cached) $ECHO_C" >&6
26389 else
26390   eval "$as_ac_Header=\$ac_header_preproc"
26391 fi
26392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26394
26395 fi
26396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26397   cat >>confdefs.h <<_ACEOF
26398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26399 _ACEOF
26400
26401 fi
26402
26403 done
26404
26405
26406
26407 for ac_func in sched_yield pthread_yield
26408 do
26409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26410 echo "$as_me:$LINENO: checking for $ac_func" >&5
26411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26412 if eval "test \"\${$as_ac_var+set}\" = set"; then
26413   echo $ECHO_N "(cached) $ECHO_C" >&6
26414 else
26415   cat >conftest.$ac_ext <<_ACEOF
26416 /* confdefs.h.  */
26417 _ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h.  */
26421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26423 #define $ac_func innocuous_$ac_func
26424
26425 /* System header to define __stub macros and hopefully few prototypes,
26426     which can conflict with char $ac_func (); below.
26427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26428     <limits.h> exists even on freestanding compilers.  */
26429
26430 #ifdef __STDC__
26431 # include <limits.h>
26432 #else
26433 # include <assert.h>
26434 #endif
26435
26436 #undef $ac_func
26437
26438 /* Override any gcc2 internal prototype to avoid an error.  */
26439 #ifdef __cplusplus
26440 extern "C"
26441 {
26442 #endif
26443 /* We use char because int might match the return type of a gcc2
26444    builtin and then its argument prototype would still apply.  */
26445 char $ac_func ();
26446 /* The GNU C library defines this for functions which it implements
26447     to always fail with ENOSYS.  Some functions are actually named
26448     something starting with __ and the normal name is an alias.  */
26449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26450 choke me
26451 #else
26452 char (*f) () = $ac_func;
26453 #endif
26454 #ifdef __cplusplus
26455 }
26456 #endif
26457
26458 int
26459 main ()
26460 {
26461 return f != $ac_func;
26462   ;
26463   return 0;
26464 }
26465 _ACEOF
26466 rm -f conftest.$ac_objext conftest$ac_exeext
26467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26468   (eval $ac_link) 2>conftest.er1
26469   ac_status=$?
26470   grep -v '^ *+' conftest.er1 >conftest.err
26471   rm -f conftest.er1
26472   cat conftest.err >&5
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); } &&
26475          { ac_try='test -z "$ac_c_werror_flag"
26476                          || test ! -s conftest.err'
26477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478   (eval $ac_try) 2>&5
26479   ac_status=$?
26480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481   (exit $ac_status); }; } &&
26482          { ac_try='test -s conftest$ac_exeext'
26483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484   (eval $ac_try) 2>&5
26485   ac_status=$?
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); }; }; then
26488   eval "$as_ac_var=yes"
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493 eval "$as_ac_var=no"
26494 fi
26495 rm -f conftest.err conftest.$ac_objext \
26496       conftest$ac_exeext conftest.$ac_ext
26497 fi
26498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26500 if test `eval echo '${'$as_ac_var'}'` = yes; then
26501   cat >>confdefs.h <<_ACEOF
26502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26503 _ACEOF
26504
26505 fi
26506 done
26507
26508
26509         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26510 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26511 if test "${ol_cv_header_linux_threads+set}" = set; then
26512   echo $ECHO_N "(cached) $ECHO_C" >&6
26513 else
26514   cat >conftest.$ac_ext <<_ACEOF
26515 /* confdefs.h.  */
26516 _ACEOF
26517 cat confdefs.h >>conftest.$ac_ext
26518 cat >>conftest.$ac_ext <<_ACEOF
26519 /* end confdefs.h.  */
26520 #include <pthread.h>
26521 _ACEOF
26522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26523   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26524   ol_cv_header_linux_threads=yes
26525 else
26526   ol_cv_header_linux_threads=no
26527 fi
26528 rm -f conftest*
26529
26530
26531 fi
26532 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26533 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26534         if test $ol_cv_header_linux_threads = yes; then
26535
26536 cat >>confdefs.h <<\_ACEOF
26537 #define HAVE_LINUX_THREADS 1
26538 _ACEOF
26539
26540         fi
26541
26542
26543
26544 for ac_header in mach/cthreads.h
26545 do
26546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26548   echo "$as_me:$LINENO: checking for $ac_header" >&5
26549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26551   echo $ECHO_N "(cached) $ECHO_C" >&6
26552 fi
26553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26555 else
26556   # Is the header compilable?
26557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26559 cat >conftest.$ac_ext <<_ACEOF
26560 /* confdefs.h.  */
26561 _ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h.  */
26565 $ac_includes_default
26566 #include <$ac_header>
26567 _ACEOF
26568 rm -f conftest.$ac_objext
26569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26570   (eval $ac_compile) 2>conftest.er1
26571   ac_status=$?
26572   grep -v '^ *+' conftest.er1 >conftest.err
26573   rm -f conftest.er1
26574   cat conftest.err >&5
26575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576   (exit $ac_status); } &&
26577          { ac_try='test -z "$ac_c_werror_flag"
26578                          || test ! -s conftest.err'
26579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580   (eval $ac_try) 2>&5
26581   ac_status=$?
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); }; } &&
26584          { ac_try='test -s conftest.$ac_objext'
26585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586   (eval $ac_try) 2>&5
26587   ac_status=$?
26588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589   (exit $ac_status); }; }; then
26590   ac_header_compiler=yes
26591 else
26592   echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26594
26595 ac_header_compiler=no
26596 fi
26597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26599 echo "${ECHO_T}$ac_header_compiler" >&6
26600
26601 # Is the header present?
26602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26604 cat >conftest.$ac_ext <<_ACEOF
26605 /* confdefs.h.  */
26606 _ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h.  */
26610 #include <$ac_header>
26611 _ACEOF
26612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26614   ac_status=$?
26615   grep -v '^ *+' conftest.er1 >conftest.err
26616   rm -f conftest.er1
26617   cat conftest.err >&5
26618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619   (exit $ac_status); } >/dev/null; then
26620   if test -s conftest.err; then
26621     ac_cpp_err=$ac_c_preproc_warn_flag
26622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26623   else
26624     ac_cpp_err=
26625   fi
26626 else
26627   ac_cpp_err=yes
26628 fi
26629 if test -z "$ac_cpp_err"; then
26630   ac_header_preproc=yes
26631 else
26632   echo "$as_me: failed program was:" >&5
26633 sed 's/^/| /' conftest.$ac_ext >&5
26634
26635   ac_header_preproc=no
26636 fi
26637 rm -f conftest.err conftest.$ac_ext
26638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26639 echo "${ECHO_T}$ac_header_preproc" >&6
26640
26641 # So?  What about this header?
26642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26643   yes:no: )
26644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26648     ac_header_preproc=yes
26649     ;;
26650   no:yes:* )
26651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26663     (
26664       cat <<\_ASBOX
26665 ## ------------------------------------------ ##
26666 ## Report this to the AC_PACKAGE_NAME lists.  ##
26667 ## ------------------------------------------ ##
26668 _ASBOX
26669     ) |
26670       sed "s/^/$as_me: WARNING:     /" >&2
26671     ;;
26672 esac
26673 echo "$as_me:$LINENO: checking for $ac_header" >&5
26674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26676   echo $ECHO_N "(cached) $ECHO_C" >&6
26677 else
26678   eval "$as_ac_Header=\$ac_header_preproc"
26679 fi
26680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26682
26683 fi
26684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26685   cat >>confdefs.h <<_ACEOF
26686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26687 _ACEOF
26688
26689 fi
26690
26691 done
26692
26693
26694 for ac_header in lwp/lwp.h
26695 do
26696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26698   echo "$as_me:$LINENO: checking for $ac_header" >&5
26699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26701   echo $ECHO_N "(cached) $ECHO_C" >&6
26702 fi
26703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26705 else
26706   # Is the header compilable?
26707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26709 cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715 $ac_includes_default
26716 #include <$ac_header>
26717 _ACEOF
26718 rm -f conftest.$ac_objext
26719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26720   (eval $ac_compile) 2>conftest.er1
26721   ac_status=$?
26722   grep -v '^ *+' conftest.er1 >conftest.err
26723   rm -f conftest.er1
26724   cat conftest.err >&5
26725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); } &&
26727          { ac_try='test -z "$ac_c_werror_flag"
26728                          || test ! -s conftest.err'
26729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730   (eval $ac_try) 2>&5
26731   ac_status=$?
26732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733   (exit $ac_status); }; } &&
26734          { ac_try='test -s conftest.$ac_objext'
26735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736   (eval $ac_try) 2>&5
26737   ac_status=$?
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); }; }; then
26740   ac_header_compiler=yes
26741 else
26742   echo "$as_me: failed program was:" >&5
26743 sed 's/^/| /' conftest.$ac_ext >&5
26744
26745 ac_header_compiler=no
26746 fi
26747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26749 echo "${ECHO_T}$ac_header_compiler" >&6
26750
26751 # Is the header present?
26752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26754 cat >conftest.$ac_ext <<_ACEOF
26755 /* confdefs.h.  */
26756 _ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h.  */
26760 #include <$ac_header>
26761 _ACEOF
26762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26764   ac_status=$?
26765   grep -v '^ *+' conftest.er1 >conftest.err
26766   rm -f conftest.er1
26767   cat conftest.err >&5
26768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769   (exit $ac_status); } >/dev/null; then
26770   if test -s conftest.err; then
26771     ac_cpp_err=$ac_c_preproc_warn_flag
26772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26773   else
26774     ac_cpp_err=
26775   fi
26776 else
26777   ac_cpp_err=yes
26778 fi
26779 if test -z "$ac_cpp_err"; then
26780   ac_header_preproc=yes
26781 else
26782   echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26784
26785   ac_header_preproc=no
26786 fi
26787 rm -f conftest.err conftest.$ac_ext
26788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26789 echo "${ECHO_T}$ac_header_preproc" >&6
26790
26791 # So?  What about this header?
26792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26793   yes:no: )
26794     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26798     ac_header_preproc=yes
26799     ;;
26800   no:yes:* )
26801     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26803     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26804 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26805     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26807     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26808 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26811     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26813     (
26814       cat <<\_ASBOX
26815 ## ------------------------------------------ ##
26816 ## Report this to the AC_PACKAGE_NAME lists.  ##
26817 ## ------------------------------------------ ##
26818 _ASBOX
26819     ) |
26820       sed "s/^/$as_me: WARNING:     /" >&2
26821     ;;
26822 esac
26823 echo "$as_me:$LINENO: checking for $ac_header" >&5
26824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26826   echo $ECHO_N "(cached) $ECHO_C" >&6
26827 else
26828   eval "$as_ac_Header=\$ac_header_preproc"
26829 fi
26830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26832
26833 fi
26834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26835   cat >>confdefs.h <<_ACEOF
26836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26837 _ACEOF
26838
26839 fi
26840
26841 done
26842
26843
26844
26845 for ac_header in thread.h synch.h
26846 do
26847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26849   echo "$as_me:$LINENO: checking for $ac_header" >&5
26850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26852   echo $ECHO_N "(cached) $ECHO_C" >&6
26853 fi
26854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26856 else
26857   # Is the header compilable?
26858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26860 cat >conftest.$ac_ext <<_ACEOF
26861 /* confdefs.h.  */
26862 _ACEOF
26863 cat confdefs.h >>conftest.$ac_ext
26864 cat >>conftest.$ac_ext <<_ACEOF
26865 /* end confdefs.h.  */
26866 $ac_includes_default
26867 #include <$ac_header>
26868 _ACEOF
26869 rm -f conftest.$ac_objext
26870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26871   (eval $ac_compile) 2>conftest.er1
26872   ac_status=$?
26873   grep -v '^ *+' conftest.er1 >conftest.err
26874   rm -f conftest.er1
26875   cat conftest.err >&5
26876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877   (exit $ac_status); } &&
26878          { ac_try='test -z "$ac_c_werror_flag"
26879                          || test ! -s conftest.err'
26880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26881   (eval $ac_try) 2>&5
26882   ac_status=$?
26883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); }; } &&
26885          { ac_try='test -s conftest.$ac_objext'
26886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26887   (eval $ac_try) 2>&5
26888   ac_status=$?
26889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890   (exit $ac_status); }; }; then
26891   ac_header_compiler=yes
26892 else
26893   echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26895
26896 ac_header_compiler=no
26897 fi
26898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26900 echo "${ECHO_T}$ac_header_compiler" >&6
26901
26902 # Is the header present?
26903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26905 cat >conftest.$ac_ext <<_ACEOF
26906 /* confdefs.h.  */
26907 _ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h.  */
26911 #include <$ac_header>
26912 _ACEOF
26913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26915   ac_status=$?
26916   grep -v '^ *+' conftest.er1 >conftest.err
26917   rm -f conftest.er1
26918   cat conftest.err >&5
26919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920   (exit $ac_status); } >/dev/null; then
26921   if test -s conftest.err; then
26922     ac_cpp_err=$ac_c_preproc_warn_flag
26923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26924   else
26925     ac_cpp_err=
26926   fi
26927 else
26928   ac_cpp_err=yes
26929 fi
26930 if test -z "$ac_cpp_err"; then
26931   ac_header_preproc=yes
26932 else
26933   echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26935
26936   ac_header_preproc=no
26937 fi
26938 rm -f conftest.err conftest.$ac_ext
26939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26940 echo "${ECHO_T}$ac_header_preproc" >&6
26941
26942 # So?  What about this header?
26943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26944   yes:no: )
26945     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26949     ac_header_preproc=yes
26950     ;;
26951   no:yes:* )
26952     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26964     (
26965       cat <<\_ASBOX
26966 ## ------------------------------------------ ##
26967 ## Report this to the AC_PACKAGE_NAME lists.  ##
26968 ## ------------------------------------------ ##
26969 _ASBOX
26970     ) |
26971       sed "s/^/$as_me: WARNING:     /" >&2
26972     ;;
26973 esac
26974 echo "$as_me:$LINENO: checking for $ac_header" >&5
26975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26977   echo $ECHO_N "(cached) $ECHO_C" >&6
26978 else
26979   eval "$as_ac_Header=\$ac_header_preproc"
26980 fi
26981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26983
26984 fi
26985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26986   cat >>confdefs.h <<_ACEOF
26987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26988 _ACEOF
26989
26990 fi
26991
26992 done
26993
26994 fi
26995
26996 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26997                         cat >>confdefs.h <<\_ACEOF
26998 #define REENTRANT 1
26999 _ACEOF
27000
27001         cat >>confdefs.h <<\_ACEOF
27002 #define _REENTRANT 1
27003 _ACEOF
27004
27005         cat >>confdefs.h <<\_ACEOF
27006 #define THREAD_SAFE 1
27007 _ACEOF
27008
27009         cat >>confdefs.h <<\_ACEOF
27010 #define _THREAD_SAFE 1
27011 _ACEOF
27012
27013         cat >>confdefs.h <<\_ACEOF
27014 #define THREADSAFE 1
27015 _ACEOF
27016
27017         cat >>confdefs.h <<\_ACEOF
27018 #define _THREADSAFE 1
27019 _ACEOF
27020
27021         cat >>confdefs.h <<\_ACEOF
27022 #define _SGI_MP_SOURCE 1
27023 _ACEOF
27024
27025
27026                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27027 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27028 if test "${ol_cv_errno_thread_specific+set}" = set; then
27029   echo $ECHO_N "(cached) $ECHO_C" >&6
27030 else
27031
27032                 cat >conftest.$ac_ext <<_ACEOF
27033 /* confdefs.h.  */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h.  */
27038 #include <errno.h>
27039 int
27040 main ()
27041 {
27042 errno = 0;
27043   ;
27044   return 0;
27045 }
27046 _ACEOF
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27049   (eval $ac_link) 2>conftest.er1
27050   ac_status=$?
27051   grep -v '^ *+' conftest.er1 >conftest.err
27052   rm -f conftest.er1
27053   cat conftest.err >&5
27054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055   (exit $ac_status); } &&
27056          { ac_try='test -z "$ac_c_werror_flag"
27057                          || test ! -s conftest.err'
27058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059   (eval $ac_try) 2>&5
27060   ac_status=$?
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); }; } &&
27063          { ac_try='test -s conftest$ac_exeext'
27064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065   (eval $ac_try) 2>&5
27066   ac_status=$?
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); }; }; then
27069   ol_cv_errno_thread_specific=yes
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074 ol_cv_errno_thread_specific=no
27075 fi
27076 rm -f conftest.err conftest.$ac_objext \
27077       conftest$ac_exeext conftest.$ac_ext
27078
27079 fi
27080 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27081 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27082
27083                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27084 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27085 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088
27089                 cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h.  */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h.  */
27095 #include <netdb.h>
27096 int
27097 main ()
27098 {
27099 h_errno = 0;
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 rm -f conftest.$ac_objext conftest$ac_exeext
27105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27106   (eval $ac_link) 2>conftest.er1
27107   ac_status=$?
27108   grep -v '^ *+' conftest.er1 >conftest.err
27109   rm -f conftest.er1
27110   cat conftest.err >&5
27111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); } &&
27113          { ac_try='test -z "$ac_c_werror_flag"
27114                          || test ! -s conftest.err'
27115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116   (eval $ac_try) 2>&5
27117   ac_status=$?
27118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); }; } &&
27120          { ac_try='test -s conftest$ac_exeext'
27121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122   (eval $ac_try) 2>&5
27123   ac_status=$?
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); }; }; then
27126   ol_cv_h_errno_thread_specific=yes
27127 else
27128   echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27130
27131 ol_cv_h_errno_thread_specific=no
27132 fi
27133 rm -f conftest.err conftest.$ac_objext \
27134       conftest$ac_exeext conftest.$ac_ext
27135
27136 fi
27137 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27138 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27139
27140         if test $ol_cv_errno_thread_specific != yes ||
27141            test $ol_cv_h_errno_thread_specific != yes ; then
27142                 LIBS="$LTHREAD_LIBS $LIBS"
27143                 LTHREAD_LIBS=""
27144         fi
27145
27146 fi
27147
27148 if test $ol_link_threads = no ; then
27149         if test $ol_with_threads = yes ; then
27150                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27151 echo "$as_me: error: no suitable thread support" >&2;}
27152    { (exit 1); exit 1; }; }
27153         fi
27154
27155         if test $ol_with_threads = auto ; then
27156                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27157 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27158                 ol_with_threads=no
27159         fi
27160
27161
27162 cat >>confdefs.h <<\_ACEOF
27163 #define NO_THREADS 1
27164 _ACEOF
27165
27166         LTHREAD_LIBS=""
27167 fi
27168
27169 if test $ol_link_threads != no ; then
27170
27171 cat >>confdefs.h <<\_ACEOF
27172 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27173 _ACEOF
27174
27175 fi
27176
27177
27178
27179
27180 for ac_func in \
27181         ctime_r                 \
27182         gethostbyname_r gethostbyaddr_r \
27183
27184 do
27185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27186 echo "$as_me:$LINENO: checking for $ac_func" >&5
27187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27188 if eval "test \"\${$as_ac_var+set}\" = set"; then
27189   echo $ECHO_N "(cached) $ECHO_C" >&6
27190 else
27191   cat >conftest.$ac_ext <<_ACEOF
27192 /* confdefs.h.  */
27193 _ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h.  */
27197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27199 #define $ac_func innocuous_$ac_func
27200
27201 /* System header to define __stub macros and hopefully few prototypes,
27202     which can conflict with char $ac_func (); below.
27203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27204     <limits.h> exists even on freestanding compilers.  */
27205
27206 #ifdef __STDC__
27207 # include <limits.h>
27208 #else
27209 # include <assert.h>
27210 #endif
27211
27212 #undef $ac_func
27213
27214 /* Override any gcc2 internal prototype to avoid an error.  */
27215 #ifdef __cplusplus
27216 extern "C"
27217 {
27218 #endif
27219 /* We use char because int might match the return type of a gcc2
27220    builtin and then its argument prototype would still apply.  */
27221 char $ac_func ();
27222 /* The GNU C library defines this for functions which it implements
27223     to always fail with ENOSYS.  Some functions are actually named
27224     something starting with __ and the normal name is an alias.  */
27225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27226 choke me
27227 #else
27228 char (*f) () = $ac_func;
27229 #endif
27230 #ifdef __cplusplus
27231 }
27232 #endif
27233
27234 int
27235 main ()
27236 {
27237 return f != $ac_func;
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27244   (eval $ac_link) 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } &&
27251          { ac_try='test -z "$ac_c_werror_flag"
27252                          || test ! -s conftest.err'
27253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254   (eval $ac_try) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; } &&
27258          { ac_try='test -s conftest$ac_exeext'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; }; then
27264   eval "$as_ac_var=yes"
27265 else
27266   echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269 eval "$as_ac_var=no"
27270 fi
27271 rm -f conftest.err conftest.$ac_objext \
27272       conftest$ac_exeext conftest.$ac_ext
27273 fi
27274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27276 if test `eval echo '${'$as_ac_var'}'` = yes; then
27277   cat >>confdefs.h <<_ACEOF
27278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27279 _ACEOF
27280
27281 fi
27282 done
27283
27284
27285 if test "$ac_cv_func_ctime_r" = no ; then
27286         ol_cv_func_ctime_r_nargs=0
27287 else
27288         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27289 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27290 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27291   echo $ECHO_N "(cached) $ECHO_C" >&6
27292 else
27293   cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h.  */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h.  */
27299 #include <time.h>
27300 int
27301 main ()
27302 {
27303 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27304   ;
27305   return 0;
27306 }
27307 _ACEOF
27308 rm -f conftest.$ac_objext
27309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27310   (eval $ac_compile) 2>conftest.er1
27311   ac_status=$?
27312   grep -v '^ *+' conftest.er1 >conftest.err
27313   rm -f conftest.er1
27314   cat conftest.err >&5
27315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316   (exit $ac_status); } &&
27317          { ac_try='test -z "$ac_c_werror_flag"
27318                          || test ! -s conftest.err'
27319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320   (eval $ac_try) 2>&5
27321   ac_status=$?
27322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323   (exit $ac_status); }; } &&
27324          { ac_try='test -s conftest.$ac_objext'
27325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326   (eval $ac_try) 2>&5
27327   ac_status=$?
27328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329   (exit $ac_status); }; }; then
27330   ol_cv_func_ctime_r_nargs3=yes
27331 else
27332   echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27334
27335 ol_cv_func_ctime_r_nargs3=no
27336 fi
27337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27338
27339         cat >conftest.$ac_ext <<_ACEOF
27340 /* confdefs.h.  */
27341 _ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h.  */
27345 #include <time.h>
27346 int
27347 main ()
27348 {
27349 time_t ti; char *buffer; ctime_r(&ti,buffer);
27350   ;
27351   return 0;
27352 }
27353 _ACEOF
27354 rm -f conftest.$ac_objext
27355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27356   (eval $ac_compile) 2>conftest.er1
27357   ac_status=$?
27358   grep -v '^ *+' conftest.er1 >conftest.err
27359   rm -f conftest.er1
27360   cat conftest.err >&5
27361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362   (exit $ac_status); } &&
27363          { ac_try='test -z "$ac_c_werror_flag"
27364                          || test ! -s conftest.err'
27365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27366   (eval $ac_try) 2>&5
27367   ac_status=$?
27368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369   (exit $ac_status); }; } &&
27370          { ac_try='test -s conftest.$ac_objext'
27371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27372   (eval $ac_try) 2>&5
27373   ac_status=$?
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); }; }; then
27376   ol_cv_func_ctime_r_nargs2=yes
27377 else
27378   echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27380
27381 ol_cv_func_ctime_r_nargs2=no
27382 fi
27383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27384
27385         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27386            test $ol_cv_func_ctime_r_nargs2 = no ; then
27387
27388                 ol_cv_func_ctime_r_nargs=3
27389
27390         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27391              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27392
27393                 ol_cv_func_ctime_r_nargs=2
27394
27395         else
27396                 ol_cv_func_ctime_r_nargs=0
27397         fi
27398
27399 fi
27400 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27401 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27402
27403   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27404
27405 cat >>confdefs.h <<_ACEOF
27406 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27407 _ACEOF
27408
27409   fi
27410
27411 fi
27412
27413 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27414         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27415 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27416 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27417   echo $ECHO_N "(cached) $ECHO_C" >&6
27418 else
27419   cat >conftest.$ac_ext <<_ACEOF
27420 /* confdefs.h.  */
27421 _ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h.  */
27425 #include <sys/types.h>
27426 #include <sys/socket.h>
27427 #include <netinet/in.h>
27428 #include <netdb.h>
27429 #define BUFSIZE (sizeof(struct hostent)+10)
27430 int
27431 main ()
27432 {
27433 struct hostent hent; char buffer[BUFSIZE];
27434                 int bufsize=BUFSIZE;int h_errno;
27435                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27436                         buffer, bufsize, &h_errno);
27437   ;
27438   return 0;
27439 }
27440 _ACEOF
27441 rm -f conftest.$ac_objext
27442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27443   (eval $ac_compile) 2>conftest.er1
27444   ac_status=$?
27445   grep -v '^ *+' conftest.er1 >conftest.err
27446   rm -f conftest.er1
27447   cat conftest.err >&5
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); } &&
27450          { ac_try='test -z "$ac_c_werror_flag"
27451                          || test ! -s conftest.err'
27452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453   (eval $ac_try) 2>&5
27454   ac_status=$?
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); }; } &&
27457          { ac_try='test -s conftest.$ac_objext'
27458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27459   (eval $ac_try) 2>&5
27460   ac_status=$?
27461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); }; }; then
27463   ol_cv_func_gethostbyname_r_nargs5=yes
27464 else
27465   echo "$as_me: failed program was:" >&5
27466 sed 's/^/| /' conftest.$ac_ext >&5
27467
27468 ol_cv_func_gethostbyname_r_nargs5=no
27469 fi
27470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27471
27472         cat >conftest.$ac_ext <<_ACEOF
27473 /* confdefs.h.  */
27474 _ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h.  */
27478 #include <sys/types.h>
27479 #include <sys/socket.h>
27480 #include <netinet/in.h>
27481 #include <netdb.h>
27482 #define BUFSIZE (sizeof(struct hostent)+10)
27483 int
27484 main ()
27485 {
27486 struct hostent hent;struct hostent *rhent;
27487                 char buffer[BUFSIZE];
27488                 int bufsize=BUFSIZE;int h_errno;
27489                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27490                         &rhent, &h_errno);
27491   ;
27492   return 0;
27493 }
27494 _ACEOF
27495 rm -f conftest.$ac_objext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27497   (eval $ac_compile) 2>conftest.er1
27498   ac_status=$?
27499   grep -v '^ *+' conftest.er1 >conftest.err
27500   rm -f conftest.er1
27501   cat conftest.err >&5
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); } &&
27504          { ac_try='test -z "$ac_c_werror_flag"
27505                          || test ! -s conftest.err'
27506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507   (eval $ac_try) 2>&5
27508   ac_status=$?
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); }; } &&
27511          { ac_try='test -s conftest.$ac_objext'
27512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513   (eval $ac_try) 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; }; then
27517   ol_cv_func_gethostbyname_r_nargs6=yes
27518 else
27519   echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27521
27522 ol_cv_func_gethostbyname_r_nargs6=no
27523 fi
27524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27525
27526         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27527            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27528
27529                 ol_cv_func_gethostbyname_r_nargs=5
27530
27531         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27532              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27533
27534                 ol_cv_func_gethostbyname_r_nargs=6
27535
27536         else
27537                 ol_cv_func_gethostbyname_r_nargs=0
27538         fi
27539
27540 fi
27541 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27542 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27543   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27544
27545 cat >>confdefs.h <<_ACEOF
27546 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27547 _ACEOF
27548
27549   fi
27550
27551 else
27552         ol_cv_func_gethostbyname_r_nargs=0
27553 fi
27554
27555 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27556         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27557 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27558 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27559   echo $ECHO_N "(cached) $ECHO_C" >&6
27560 else
27561   cat >conftest.$ac_ext <<_ACEOF
27562 /* confdefs.h.  */
27563 _ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h.  */
27567 #include <sys/types.h>
27568 #include <sys/socket.h>
27569 #include <netinet/in.h>
27570 #include <netdb.h>
27571 #define BUFSIZE (sizeof(struct hostent)+10)
27572 int
27573 main ()
27574 {
27575 struct hostent hent; char buffer[BUFSIZE];
27576             struct in_addr add;
27577             size_t alen=sizeof(struct in_addr);
27578             int bufsize=BUFSIZE;int h_errno;
27579                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27580                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27581   ;
27582   return 0;
27583 }
27584 _ACEOF
27585 rm -f conftest.$ac_objext
27586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27587   (eval $ac_compile) 2>conftest.er1
27588   ac_status=$?
27589   grep -v '^ *+' conftest.er1 >conftest.err
27590   rm -f conftest.er1
27591   cat conftest.err >&5
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); } &&
27594          { ac_try='test -z "$ac_c_werror_flag"
27595                          || test ! -s conftest.err'
27596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597   (eval $ac_try) 2>&5
27598   ac_status=$?
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); }; } &&
27601          { ac_try='test -s conftest.$ac_objext'
27602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603   (eval $ac_try) 2>&5
27604   ac_status=$?
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); }; }; then
27607   ol_cv_func_gethostbyaddr_r_nargs7=yes
27608 else
27609   echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27611
27612 ol_cv_func_gethostbyaddr_r_nargs7=no
27613 fi
27614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27615
27616         cat >conftest.$ac_ext <<_ACEOF
27617 /* confdefs.h.  */
27618 _ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h.  */
27622 #include <sys/types.h>
27623 #include <sys/socket.h>
27624 #include <netinet/in.h>
27625 #include <netdb.h>
27626 #define BUFSIZE (sizeof(struct hostent)+10)
27627 int
27628 main ()
27629 {
27630 struct hostent hent;
27631                 struct hostent *rhent; char buffer[BUFSIZE];
27632                 struct in_addr add;
27633                 size_t alen=sizeof(struct in_addr);
27634                 int bufsize=BUFSIZE;int h_errno;
27635                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27636                         alen, AF_INET, &hent, buffer, bufsize,
27637                         &rhent, &h_errno);
27638   ;
27639   return 0;
27640 }
27641 _ACEOF
27642 rm -f conftest.$ac_objext
27643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27644   (eval $ac_compile) 2>conftest.er1
27645   ac_status=$?
27646   grep -v '^ *+' conftest.er1 >conftest.err
27647   rm -f conftest.er1
27648   cat conftest.err >&5
27649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650   (exit $ac_status); } &&
27651          { ac_try='test -z "$ac_c_werror_flag"
27652                          || test ! -s conftest.err'
27653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654   (eval $ac_try) 2>&5
27655   ac_status=$?
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); }; } &&
27658          { ac_try='test -s conftest.$ac_objext'
27659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660   (eval $ac_try) 2>&5
27661   ac_status=$?
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); }; }; then
27664   ol_cv_func_gethostbyaddr_r_nargs8=yes
27665 else
27666   echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.$ac_ext >&5
27668
27669 ol_cv_func_gethostbyaddr_r_nargs8=no
27670 fi
27671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27672
27673         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27674            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27675
27676                 ol_cv_func_gethostbyaddr_r_nargs=7
27677
27678         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27679              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27680
27681                 ol_cv_func_gethostbyaddr_r_nargs=8
27682
27683         else
27684                 ol_cv_func_gethostbyaddr_r_nargs=0
27685         fi
27686
27687 fi
27688 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27689 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27690   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27691
27692 cat >>confdefs.h <<_ACEOF
27693 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27694 _ACEOF
27695
27696   fi
27697
27698 else
27699         ol_cv_func_gethostbyaddr_r_nargs=0
27700 fi
27701
27702 ol_link_ldbm=no
27703
27704 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27705
27706         if test $ol_enable_ldbm_api = bcompat; then \
27707
27708
27709 for ac_header in db_185.h db.h
27710 do
27711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27713   echo "$as_me:$LINENO: checking for $ac_header" >&5
27714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27716   echo $ECHO_N "(cached) $ECHO_C" >&6
27717 fi
27718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27720 else
27721   # Is the header compilable?
27722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27724 cat >conftest.$ac_ext <<_ACEOF
27725 /* confdefs.h.  */
27726 _ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h.  */
27730 $ac_includes_default
27731 #include <$ac_header>
27732 _ACEOF
27733 rm -f conftest.$ac_objext
27734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27735   (eval $ac_compile) 2>conftest.er1
27736   ac_status=$?
27737   grep -v '^ *+' conftest.er1 >conftest.err
27738   rm -f conftest.er1
27739   cat conftest.err >&5
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); } &&
27742          { ac_try='test -z "$ac_c_werror_flag"
27743                          || test ! -s conftest.err'
27744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745   (eval $ac_try) 2>&5
27746   ac_status=$?
27747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); }; } &&
27749          { ac_try='test -s conftest.$ac_objext'
27750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27751   (eval $ac_try) 2>&5
27752   ac_status=$?
27753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754   (exit $ac_status); }; }; then
27755   ac_header_compiler=yes
27756 else
27757   echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760 ac_header_compiler=no
27761 fi
27762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27764 echo "${ECHO_T}$ac_header_compiler" >&6
27765
27766 # Is the header present?
27767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27769 cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h.  */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h.  */
27775 #include <$ac_header>
27776 _ACEOF
27777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27779   ac_status=$?
27780   grep -v '^ *+' conftest.er1 >conftest.err
27781   rm -f conftest.er1
27782   cat conftest.err >&5
27783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784   (exit $ac_status); } >/dev/null; then
27785   if test -s conftest.err; then
27786     ac_cpp_err=$ac_c_preproc_warn_flag
27787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27788   else
27789     ac_cpp_err=
27790   fi
27791 else
27792   ac_cpp_err=yes
27793 fi
27794 if test -z "$ac_cpp_err"; then
27795   ac_header_preproc=yes
27796 else
27797   echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27799
27800   ac_header_preproc=no
27801 fi
27802 rm -f conftest.err conftest.$ac_ext
27803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27804 echo "${ECHO_T}$ac_header_preproc" >&6
27805
27806 # So?  What about this header?
27807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27808   yes:no: )
27809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27813     ac_header_preproc=yes
27814     ;;
27815   no:yes:* )
27816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27828     (
27829       cat <<\_ASBOX
27830 ## ------------------------------------------ ##
27831 ## Report this to the AC_PACKAGE_NAME lists.  ##
27832 ## ------------------------------------------ ##
27833 _ASBOX
27834     ) |
27835       sed "s/^/$as_me: WARNING:     /" >&2
27836     ;;
27837 esac
27838 echo "$as_me:$LINENO: checking for $ac_header" >&5
27839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27841   echo $ECHO_N "(cached) $ECHO_C" >&6
27842 else
27843   eval "$as_ac_Header=\$ac_header_preproc"
27844 fi
27845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27847
27848 fi
27849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27850   cat >>confdefs.h <<_ACEOF
27851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27852 _ACEOF
27853
27854 fi
27855
27856 done
27857
27858 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27859         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27860 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27861 if test "${ol_cv_header_db1+set}" = set; then
27862   echo $ECHO_N "(cached) $ECHO_C" >&6
27863 else
27864
27865                 cat >conftest.$ac_ext <<_ACEOF
27866 /* confdefs.h.  */
27867 _ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h.  */
27871
27872 #if HAVE_DB_185_H
27873 #       include <db_185.h>
27874 #else
27875 #       include <db.h>
27876 #endif
27877
27878  /* this check could be improved */
27879 #ifndef DB_VERSION_MAJOR
27880 #       define DB_VERSION_MAJOR 1
27881 #endif
27882
27883 #if DB_VERSION_MAJOR == 1
27884         __db_version_1
27885 #endif
27886
27887 _ACEOF
27888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27889   $EGREP "__db_version_1" >/dev/null 2>&1; then
27890   ol_cv_header_db1=yes
27891 else
27892   ol_cv_header_db1=no
27893 fi
27894 rm -f conftest*
27895
27896 fi
27897 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27898 echo "${ECHO_T}$ol_cv_header_db1" >&6
27899
27900         if test $ol_cv_header_db1 = yes ; then
27901                 ol_cv_lib_db=no
27902 if test $ol_cv_lib_db = no ; then
27903         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27904 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27905 if test "${ol_cv_db_none+set}" = set; then
27906   echo $ECHO_N "(cached) $ECHO_C" >&6
27907 else
27908
27909         ol_DB_LIB=
27910         ol_LIBS=$LIBS
27911         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27912
27913         cat >conftest.$ac_ext <<_ACEOF
27914 /* confdefs.h.  */
27915 _ACEOF
27916 cat confdefs.h >>conftest.$ac_ext
27917 cat >>conftest.$ac_ext <<_ACEOF
27918 /* end confdefs.h.  */
27919
27920 #ifdef HAVE_DB_185_H
27921 # include <db_185.h>
27922 #else
27923 # include <db.h>
27924 #endif
27925
27926 #ifndef DB_VERSION_MAJOR
27927 # define DB_VERSION_MAJOR 1
27928 #endif
27929
27930 #ifndef NULL
27931 #define NULL ((void*)0)
27932 #endif
27933
27934 int
27935 main ()
27936 {
27937
27938 #if DB_VERSION_MAJOR > 1
27939         {
27940                 char *version;
27941                 int major, minor, patch;
27942
27943                 version = db_version( &major, &minor, &patch );
27944
27945                 if( major != DB_VERSION_MAJOR ||
27946                         minor < DB_VERSION_MINOR )
27947                 {
27948                         printf("Berkeley DB version mismatch\n"
27949                                 "\theader: %s\n\tlibrary: %s\n",
27950                                 DB_VERSION_STRING, version);
27951                         return 1;
27952                 }
27953         }
27954 #endif
27955
27956 #if DB_VERSION_MAJOR > 2
27957         db_env_create( NULL, 0 );
27958 #elif DB_VERSION_MAJOR > 1
27959         db_appexit( NULL );
27960 #else
27961         (void) dbopen( NULL, 0, 0, 0, NULL);
27962 #endif
27963
27964   ;
27965   return 0;
27966 }
27967 _ACEOF
27968 rm -f conftest.$ac_objext conftest$ac_exeext
27969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27970   (eval $ac_link) 2>conftest.er1
27971   ac_status=$?
27972   grep -v '^ *+' conftest.er1 >conftest.err
27973   rm -f conftest.er1
27974   cat conftest.err >&5
27975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976   (exit $ac_status); } &&
27977          { ac_try='test -z "$ac_c_werror_flag"
27978                          || test ! -s conftest.err'
27979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27980   (eval $ac_try) 2>&5
27981   ac_status=$?
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); }; } &&
27984          { ac_try='test -s conftest$ac_exeext'
27985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986   (eval $ac_try) 2>&5
27987   ac_status=$?
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); }; }; then
27990   ol_cv_db_none=yes
27991 else
27992   echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27994
27995 ol_cv_db_none=no
27996 fi
27997 rm -f conftest.err conftest.$ac_objext \
27998       conftest$ac_exeext conftest.$ac_ext
27999
28000         LIBS="$ol_LIBS"
28001
28002 fi
28003 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28004 echo "${ECHO_T}$ol_cv_db_none" >&6
28005
28006         if test $ol_cv_db_none = yes ; then
28007                 ol_cv_lib_db=yes
28008         fi
28009 fi
28010
28011 if test $ol_cv_lib_db = no ; then
28012         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28013 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28014 if test "${ol_cv_db_db43+set}" = set; then
28015   echo $ECHO_N "(cached) $ECHO_C" >&6
28016 else
28017
28018         ol_DB_LIB=-ldb43
28019         ol_LIBS=$LIBS
28020         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28021
28022         cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h.  */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h.  */
28028
28029 #ifdef HAVE_DB_185_H
28030 # include <db_185.h>
28031 #else
28032 # include <db.h>
28033 #endif
28034
28035 #ifndef DB_VERSION_MAJOR
28036 # define DB_VERSION_MAJOR 1
28037 #endif
28038
28039 #ifndef NULL
28040 #define NULL ((void*)0)
28041 #endif
28042
28043 int
28044 main ()
28045 {
28046
28047 #if DB_VERSION_MAJOR > 1
28048         {
28049                 char *version;
28050                 int major, minor, patch;
28051
28052                 version = db_version( &major, &minor, &patch );
28053
28054                 if( major != DB_VERSION_MAJOR ||
28055                         minor < DB_VERSION_MINOR )
28056                 {
28057                         printf("Berkeley DB version mismatch\n"
28058                                 "\theader: %s\n\tlibrary: %s\n",
28059                                 DB_VERSION_STRING, version);
28060                         return 1;
28061                 }
28062         }
28063 #endif
28064
28065 #if DB_VERSION_MAJOR > 2
28066         db_env_create( NULL, 0 );
28067 #elif DB_VERSION_MAJOR > 1
28068         db_appexit( NULL );
28069 #else
28070         (void) dbopen( NULL, 0, 0, 0, NULL);
28071 #endif
28072
28073   ;
28074   return 0;
28075 }
28076 _ACEOF
28077 rm -f conftest.$ac_objext conftest$ac_exeext
28078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28079   (eval $ac_link) 2>conftest.er1
28080   ac_status=$?
28081   grep -v '^ *+' conftest.er1 >conftest.err
28082   rm -f conftest.er1
28083   cat conftest.err >&5
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); } &&
28086          { ac_try='test -z "$ac_c_werror_flag"
28087                          || test ! -s conftest.err'
28088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089   (eval $ac_try) 2>&5
28090   ac_status=$?
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); }; } &&
28093          { ac_try='test -s conftest$ac_exeext'
28094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095   (eval $ac_try) 2>&5
28096   ac_status=$?
28097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098   (exit $ac_status); }; }; then
28099   ol_cv_db_db43=yes
28100 else
28101   echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104 ol_cv_db_db43=no
28105 fi
28106 rm -f conftest.err conftest.$ac_objext \
28107       conftest$ac_exeext conftest.$ac_ext
28108
28109         LIBS="$ol_LIBS"
28110
28111 fi
28112 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28113 echo "${ECHO_T}$ol_cv_db_db43" >&6
28114
28115         if test $ol_cv_db_db43 = yes ; then
28116                 ol_cv_lib_db=-ldb43
28117         fi
28118 fi
28119
28120 if test $ol_cv_lib_db = no ; then
28121         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28122 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28123 if test "${ol_cv_db_db_43+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126
28127         ol_DB_LIB=-ldb-43
28128         ol_LIBS=$LIBS
28129         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28130
28131         cat >conftest.$ac_ext <<_ACEOF
28132 /* confdefs.h.  */
28133 _ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h.  */
28137
28138 #ifdef HAVE_DB_185_H
28139 # include <db_185.h>
28140 #else
28141 # include <db.h>
28142 #endif
28143
28144 #ifndef DB_VERSION_MAJOR
28145 # define DB_VERSION_MAJOR 1
28146 #endif
28147
28148 #ifndef NULL
28149 #define NULL ((void*)0)
28150 #endif
28151
28152 int
28153 main ()
28154 {
28155
28156 #if DB_VERSION_MAJOR > 1
28157         {
28158                 char *version;
28159                 int major, minor, patch;
28160
28161                 version = db_version( &major, &minor, &patch );
28162
28163                 if( major != DB_VERSION_MAJOR ||
28164                         minor < DB_VERSION_MINOR )
28165                 {
28166                         printf("Berkeley DB version mismatch\n"
28167                                 "\theader: %s\n\tlibrary: %s\n",
28168                                 DB_VERSION_STRING, version);
28169                         return 1;
28170                 }
28171         }
28172 #endif
28173
28174 #if DB_VERSION_MAJOR > 2
28175         db_env_create( NULL, 0 );
28176 #elif DB_VERSION_MAJOR > 1
28177         db_appexit( NULL );
28178 #else
28179         (void) dbopen( NULL, 0, 0, 0, NULL);
28180 #endif
28181
28182   ;
28183   return 0;
28184 }
28185 _ACEOF
28186 rm -f conftest.$ac_objext conftest$ac_exeext
28187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28188   (eval $ac_link) 2>conftest.er1
28189   ac_status=$?
28190   grep -v '^ *+' conftest.er1 >conftest.err
28191   rm -f conftest.er1
28192   cat conftest.err >&5
28193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194   (exit $ac_status); } &&
28195          { ac_try='test -z "$ac_c_werror_flag"
28196                          || test ! -s conftest.err'
28197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198   (eval $ac_try) 2>&5
28199   ac_status=$?
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); }; } &&
28202          { ac_try='test -s conftest$ac_exeext'
28203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204   (eval $ac_try) 2>&5
28205   ac_status=$?
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); }; }; then
28208   ol_cv_db_db_43=yes
28209 else
28210   echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213 ol_cv_db_db_43=no
28214 fi
28215 rm -f conftest.err conftest.$ac_objext \
28216       conftest$ac_exeext conftest.$ac_ext
28217
28218         LIBS="$ol_LIBS"
28219
28220 fi
28221 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28222 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28223
28224         if test $ol_cv_db_db_43 = yes ; then
28225                 ol_cv_lib_db=-ldb-43
28226         fi
28227 fi
28228
28229 if test $ol_cv_lib_db = no ; then
28230         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28231 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28232 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235
28236         ol_DB_LIB=-ldb-4.3
28237         ol_LIBS=$LIBS
28238         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28239
28240         cat >conftest.$ac_ext <<_ACEOF
28241 /* confdefs.h.  */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h.  */
28246
28247 #ifdef HAVE_DB_185_H
28248 # include <db_185.h>
28249 #else
28250 # include <db.h>
28251 #endif
28252
28253 #ifndef DB_VERSION_MAJOR
28254 # define DB_VERSION_MAJOR 1
28255 #endif
28256
28257 #ifndef NULL
28258 #define NULL ((void*)0)
28259 #endif
28260
28261 int
28262 main ()
28263 {
28264
28265 #if DB_VERSION_MAJOR > 1
28266         {
28267                 char *version;
28268                 int major, minor, patch;
28269
28270                 version = db_version( &major, &minor, &patch );
28271
28272                 if( major != DB_VERSION_MAJOR ||
28273                         minor < DB_VERSION_MINOR )
28274                 {
28275                         printf("Berkeley DB version mismatch\n"
28276                                 "\theader: %s\n\tlibrary: %s\n",
28277                                 DB_VERSION_STRING, version);
28278                         return 1;
28279                 }
28280         }
28281 #endif
28282
28283 #if DB_VERSION_MAJOR > 2
28284         db_env_create( NULL, 0 );
28285 #elif DB_VERSION_MAJOR > 1
28286         db_appexit( NULL );
28287 #else
28288         (void) dbopen( NULL, 0, 0, 0, NULL);
28289 #endif
28290
28291   ;
28292   return 0;
28293 }
28294 _ACEOF
28295 rm -f conftest.$ac_objext conftest$ac_exeext
28296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28297   (eval $ac_link) 2>conftest.er1
28298   ac_status=$?
28299   grep -v '^ *+' conftest.er1 >conftest.err
28300   rm -f conftest.er1
28301   cat conftest.err >&5
28302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28303   (exit $ac_status); } &&
28304          { ac_try='test -z "$ac_c_werror_flag"
28305                          || test ! -s conftest.err'
28306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307   (eval $ac_try) 2>&5
28308   ac_status=$?
28309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310   (exit $ac_status); }; } &&
28311          { ac_try='test -s conftest$ac_exeext'
28312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313   (eval $ac_try) 2>&5
28314   ac_status=$?
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); }; }; then
28317   ol_cv_db_db_4_dot_3=yes
28318 else
28319   echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28321
28322 ol_cv_db_db_4_dot_3=no
28323 fi
28324 rm -f conftest.err conftest.$ac_objext \
28325       conftest$ac_exeext conftest.$ac_ext
28326
28327         LIBS="$ol_LIBS"
28328
28329 fi
28330 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28331 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28332
28333         if test $ol_cv_db_db_4_dot_3 = yes ; then
28334                 ol_cv_lib_db=-ldb-4.3
28335         fi
28336 fi
28337
28338 if test $ol_cv_lib_db = no ; then
28339         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28340 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28341 if test "${ol_cv_db_db_4_3+set}" = set; then
28342   echo $ECHO_N "(cached) $ECHO_C" >&6
28343 else
28344
28345         ol_DB_LIB=-ldb-4-3
28346         ol_LIBS=$LIBS
28347         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28348
28349         cat >conftest.$ac_ext <<_ACEOF
28350 /* confdefs.h.  */
28351 _ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h.  */
28355
28356 #ifdef HAVE_DB_185_H
28357 # include <db_185.h>
28358 #else
28359 # include <db.h>
28360 #endif
28361
28362 #ifndef DB_VERSION_MAJOR
28363 # define DB_VERSION_MAJOR 1
28364 #endif
28365
28366 #ifndef NULL
28367 #define NULL ((void*)0)
28368 #endif
28369
28370 int
28371 main ()
28372 {
28373
28374 #if DB_VERSION_MAJOR > 1
28375         {
28376                 char *version;
28377                 int major, minor, patch;
28378
28379                 version = db_version( &major, &minor, &patch );
28380
28381                 if( major != DB_VERSION_MAJOR ||
28382                         minor < DB_VERSION_MINOR )
28383                 {
28384                         printf("Berkeley DB version mismatch\n"
28385                                 "\theader: %s\n\tlibrary: %s\n",
28386                                 DB_VERSION_STRING, version);
28387                         return 1;
28388                 }
28389         }
28390 #endif
28391
28392 #if DB_VERSION_MAJOR > 2
28393         db_env_create( NULL, 0 );
28394 #elif DB_VERSION_MAJOR > 1
28395         db_appexit( NULL );
28396 #else
28397         (void) dbopen( NULL, 0, 0, 0, NULL);
28398 #endif
28399
28400   ;
28401   return 0;
28402 }
28403 _ACEOF
28404 rm -f conftest.$ac_objext conftest$ac_exeext
28405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28406   (eval $ac_link) 2>conftest.er1
28407   ac_status=$?
28408   grep -v '^ *+' conftest.er1 >conftest.err
28409   rm -f conftest.er1
28410   cat conftest.err >&5
28411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412   (exit $ac_status); } &&
28413          { ac_try='test -z "$ac_c_werror_flag"
28414                          || test ! -s conftest.err'
28415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416   (eval $ac_try) 2>&5
28417   ac_status=$?
28418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); }; } &&
28420          { ac_try='test -s conftest$ac_exeext'
28421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422   (eval $ac_try) 2>&5
28423   ac_status=$?
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); }; }; then
28426   ol_cv_db_db_4_3=yes
28427 else
28428   echo "$as_me: failed program was:" >&5
28429 sed 's/^/| /' conftest.$ac_ext >&5
28430
28431 ol_cv_db_db_4_3=no
28432 fi
28433 rm -f conftest.err conftest.$ac_objext \
28434       conftest$ac_exeext conftest.$ac_ext
28435
28436         LIBS="$ol_LIBS"
28437
28438 fi
28439 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28440 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28441
28442         if test $ol_cv_db_db_4_3 = yes ; then
28443                 ol_cv_lib_db=-ldb-4-3
28444         fi
28445 fi
28446
28447 if test $ol_cv_lib_db = no ; then
28448         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28449 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28450 if test "${ol_cv_db_db42+set}" = set; then
28451   echo $ECHO_N "(cached) $ECHO_C" >&6
28452 else
28453
28454         ol_DB_LIB=-ldb42
28455         ol_LIBS=$LIBS
28456         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28457
28458         cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h.  */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h.  */
28464
28465 #ifdef HAVE_DB_185_H
28466 # include <db_185.h>
28467 #else
28468 # include <db.h>
28469 #endif
28470
28471 #ifndef DB_VERSION_MAJOR
28472 # define DB_VERSION_MAJOR 1
28473 #endif
28474
28475 #ifndef NULL
28476 #define NULL ((void*)0)
28477 #endif
28478
28479 int
28480 main ()
28481 {
28482
28483 #if DB_VERSION_MAJOR > 1
28484         {
28485                 char *version;
28486                 int major, minor, patch;
28487
28488                 version = db_version( &major, &minor, &patch );
28489
28490                 if( major != DB_VERSION_MAJOR ||
28491                         minor < DB_VERSION_MINOR )
28492                 {
28493                         printf("Berkeley DB version mismatch\n"
28494                                 "\theader: %s\n\tlibrary: %s\n",
28495                                 DB_VERSION_STRING, version);
28496                         return 1;
28497                 }
28498         }
28499 #endif
28500
28501 #if DB_VERSION_MAJOR > 2
28502         db_env_create( NULL, 0 );
28503 #elif DB_VERSION_MAJOR > 1
28504         db_appexit( NULL );
28505 #else
28506         (void) dbopen( NULL, 0, 0, 0, NULL);
28507 #endif
28508
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 rm -f conftest.$ac_objext conftest$ac_exeext
28514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28515   (eval $ac_link) 2>conftest.er1
28516   ac_status=$?
28517   grep -v '^ *+' conftest.er1 >conftest.err
28518   rm -f conftest.er1
28519   cat conftest.err >&5
28520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521   (exit $ac_status); } &&
28522          { ac_try='test -z "$ac_c_werror_flag"
28523                          || test ! -s conftest.err'
28524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525   (eval $ac_try) 2>&5
28526   ac_status=$?
28527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528   (exit $ac_status); }; } &&
28529          { ac_try='test -s conftest$ac_exeext'
28530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531   (eval $ac_try) 2>&5
28532   ac_status=$?
28533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); }; }; then
28535   ol_cv_db_db42=yes
28536 else
28537   echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28539
28540 ol_cv_db_db42=no
28541 fi
28542 rm -f conftest.err conftest.$ac_objext \
28543       conftest$ac_exeext conftest.$ac_ext
28544
28545         LIBS="$ol_LIBS"
28546
28547 fi
28548 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28549 echo "${ECHO_T}$ol_cv_db_db42" >&6
28550
28551         if test $ol_cv_db_db42 = yes ; then
28552                 ol_cv_lib_db=-ldb42
28553         fi
28554 fi
28555
28556 if test $ol_cv_lib_db = no ; then
28557         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28558 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28559 if test "${ol_cv_db_db_42+set}" = set; then
28560   echo $ECHO_N "(cached) $ECHO_C" >&6
28561 else
28562
28563         ol_DB_LIB=-ldb-42
28564         ol_LIBS=$LIBS
28565         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28566
28567         cat >conftest.$ac_ext <<_ACEOF
28568 /* confdefs.h.  */
28569 _ACEOF
28570 cat confdefs.h >>conftest.$ac_ext
28571 cat >>conftest.$ac_ext <<_ACEOF
28572 /* end confdefs.h.  */
28573
28574 #ifdef HAVE_DB_185_H
28575 # include <db_185.h>
28576 #else
28577 # include <db.h>
28578 #endif
28579
28580 #ifndef DB_VERSION_MAJOR
28581 # define DB_VERSION_MAJOR 1
28582 #endif
28583
28584 #ifndef NULL
28585 #define NULL ((void*)0)
28586 #endif
28587
28588 int
28589 main ()
28590 {
28591
28592 #if DB_VERSION_MAJOR > 1
28593         {
28594                 char *version;
28595                 int major, minor, patch;
28596
28597                 version = db_version( &major, &minor, &patch );
28598
28599                 if( major != DB_VERSION_MAJOR ||
28600                         minor < DB_VERSION_MINOR )
28601                 {
28602                         printf("Berkeley DB version mismatch\n"
28603                                 "\theader: %s\n\tlibrary: %s\n",
28604                                 DB_VERSION_STRING, version);
28605                         return 1;
28606                 }
28607         }
28608 #endif
28609
28610 #if DB_VERSION_MAJOR > 2
28611         db_env_create( NULL, 0 );
28612 #elif DB_VERSION_MAJOR > 1
28613         db_appexit( NULL );
28614 #else
28615         (void) dbopen( NULL, 0, 0, 0, NULL);
28616 #endif
28617
28618   ;
28619   return 0;
28620 }
28621 _ACEOF
28622 rm -f conftest.$ac_objext conftest$ac_exeext
28623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28624   (eval $ac_link) 2>conftest.er1
28625   ac_status=$?
28626   grep -v '^ *+' conftest.er1 >conftest.err
28627   rm -f conftest.er1
28628   cat conftest.err >&5
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); } &&
28631          { ac_try='test -z "$ac_c_werror_flag"
28632                          || test ! -s conftest.err'
28633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28634   (eval $ac_try) 2>&5
28635   ac_status=$?
28636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); }; } &&
28638          { ac_try='test -s conftest$ac_exeext'
28639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640   (eval $ac_try) 2>&5
28641   ac_status=$?
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); }; }; then
28644   ol_cv_db_db_42=yes
28645 else
28646   echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28648
28649 ol_cv_db_db_42=no
28650 fi
28651 rm -f conftest.err conftest.$ac_objext \
28652       conftest$ac_exeext conftest.$ac_ext
28653
28654         LIBS="$ol_LIBS"
28655
28656 fi
28657 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28658 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28659
28660         if test $ol_cv_db_db_42 = yes ; then
28661                 ol_cv_lib_db=-ldb-42
28662         fi
28663 fi
28664
28665 if test $ol_cv_lib_db = no ; then
28666         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28667 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28668 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28669   echo $ECHO_N "(cached) $ECHO_C" >&6
28670 else
28671
28672         ol_DB_LIB=-ldb-4.2
28673         ol_LIBS=$LIBS
28674         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28675
28676         cat >conftest.$ac_ext <<_ACEOF
28677 /* confdefs.h.  */
28678 _ACEOF
28679 cat confdefs.h >>conftest.$ac_ext
28680 cat >>conftest.$ac_ext <<_ACEOF
28681 /* end confdefs.h.  */
28682
28683 #ifdef HAVE_DB_185_H
28684 # include <db_185.h>
28685 #else
28686 # include <db.h>
28687 #endif
28688
28689 #ifndef DB_VERSION_MAJOR
28690 # define DB_VERSION_MAJOR 1
28691 #endif
28692
28693 #ifndef NULL
28694 #define NULL ((void*)0)
28695 #endif
28696
28697 int
28698 main ()
28699 {
28700
28701 #if DB_VERSION_MAJOR > 1
28702         {
28703                 char *version;
28704                 int major, minor, patch;
28705
28706                 version = db_version( &major, &minor, &patch );
28707
28708                 if( major != DB_VERSION_MAJOR ||
28709                         minor < DB_VERSION_MINOR )
28710                 {
28711                         printf("Berkeley DB version mismatch\n"
28712                                 "\theader: %s\n\tlibrary: %s\n",
28713                                 DB_VERSION_STRING, version);
28714                         return 1;
28715                 }
28716         }
28717 #endif
28718
28719 #if DB_VERSION_MAJOR > 2
28720         db_env_create( NULL, 0 );
28721 #elif DB_VERSION_MAJOR > 1
28722         db_appexit( NULL );
28723 #else
28724         (void) dbopen( NULL, 0, 0, 0, NULL);
28725 #endif
28726
28727   ;
28728   return 0;
28729 }
28730 _ACEOF
28731 rm -f conftest.$ac_objext conftest$ac_exeext
28732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28733   (eval $ac_link) 2>conftest.er1
28734   ac_status=$?
28735   grep -v '^ *+' conftest.er1 >conftest.err
28736   rm -f conftest.er1
28737   cat conftest.err >&5
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); } &&
28740          { ac_try='test -z "$ac_c_werror_flag"
28741                          || test ! -s conftest.err'
28742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743   (eval $ac_try) 2>&5
28744   ac_status=$?
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); }; } &&
28747          { ac_try='test -s conftest$ac_exeext'
28748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749   (eval $ac_try) 2>&5
28750   ac_status=$?
28751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752   (exit $ac_status); }; }; then
28753   ol_cv_db_db_4_dot_2=yes
28754 else
28755   echo "$as_me: failed program was:" >&5
28756 sed 's/^/| /' conftest.$ac_ext >&5
28757
28758 ol_cv_db_db_4_dot_2=no
28759 fi
28760 rm -f conftest.err conftest.$ac_objext \
28761       conftest$ac_exeext conftest.$ac_ext
28762
28763         LIBS="$ol_LIBS"
28764
28765 fi
28766 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28767 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28768
28769         if test $ol_cv_db_db_4_dot_2 = yes ; then
28770                 ol_cv_lib_db=-ldb-4.2
28771         fi
28772 fi
28773
28774 if test $ol_cv_lib_db = no ; then
28775         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28776 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28777 if test "${ol_cv_db_db_4_2+set}" = set; then
28778   echo $ECHO_N "(cached) $ECHO_C" >&6
28779 else
28780
28781         ol_DB_LIB=-ldb-4-2
28782         ol_LIBS=$LIBS
28783         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28784
28785         cat >conftest.$ac_ext <<_ACEOF
28786 /* confdefs.h.  */
28787 _ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h.  */
28791
28792 #ifdef HAVE_DB_185_H
28793 # include <db_185.h>
28794 #else
28795 # include <db.h>
28796 #endif
28797
28798 #ifndef DB_VERSION_MAJOR
28799 # define DB_VERSION_MAJOR 1
28800 #endif
28801
28802 #ifndef NULL
28803 #define NULL ((void*)0)
28804 #endif
28805
28806 int
28807 main ()
28808 {
28809
28810 #if DB_VERSION_MAJOR > 1
28811         {
28812                 char *version;
28813                 int major, minor, patch;
28814
28815                 version = db_version( &major, &minor, &patch );
28816
28817                 if( major != DB_VERSION_MAJOR ||
28818                         minor < DB_VERSION_MINOR )
28819                 {
28820                         printf("Berkeley DB version mismatch\n"
28821                                 "\theader: %s\n\tlibrary: %s\n",
28822                                 DB_VERSION_STRING, version);
28823                         return 1;
28824                 }
28825         }
28826 #endif
28827
28828 #if DB_VERSION_MAJOR > 2
28829         db_env_create( NULL, 0 );
28830 #elif DB_VERSION_MAJOR > 1
28831         db_appexit( NULL );
28832 #else
28833         (void) dbopen( NULL, 0, 0, 0, NULL);
28834 #endif
28835
28836   ;
28837   return 0;
28838 }
28839 _ACEOF
28840 rm -f conftest.$ac_objext conftest$ac_exeext
28841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28842   (eval $ac_link) 2>conftest.er1
28843   ac_status=$?
28844   grep -v '^ *+' conftest.er1 >conftest.err
28845   rm -f conftest.er1
28846   cat conftest.err >&5
28847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848   (exit $ac_status); } &&
28849          { ac_try='test -z "$ac_c_werror_flag"
28850                          || test ! -s conftest.err'
28851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852   (eval $ac_try) 2>&5
28853   ac_status=$?
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); }; } &&
28856          { ac_try='test -s conftest$ac_exeext'
28857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858   (eval $ac_try) 2>&5
28859   ac_status=$?
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); }; }; then
28862   ol_cv_db_db_4_2=yes
28863 else
28864   echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28866
28867 ol_cv_db_db_4_2=no
28868 fi
28869 rm -f conftest.err conftest.$ac_objext \
28870       conftest$ac_exeext conftest.$ac_ext
28871
28872         LIBS="$ol_LIBS"
28873
28874 fi
28875 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28876 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28877
28878         if test $ol_cv_db_db_4_2 = yes ; then
28879                 ol_cv_lib_db=-ldb-4-2
28880         fi
28881 fi
28882
28883 if test $ol_cv_lib_db = no ; then
28884         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28885 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28886 if test "${ol_cv_db_db_4+set}" = set; then
28887   echo $ECHO_N "(cached) $ECHO_C" >&6
28888 else
28889
28890         ol_DB_LIB=-ldb-4
28891         ol_LIBS=$LIBS
28892         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28893
28894         cat >conftest.$ac_ext <<_ACEOF
28895 /* confdefs.h.  */
28896 _ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h.  */
28900
28901 #ifdef HAVE_DB_185_H
28902 # include <db_185.h>
28903 #else
28904 # include <db.h>
28905 #endif
28906
28907 #ifndef DB_VERSION_MAJOR
28908 # define DB_VERSION_MAJOR 1
28909 #endif
28910
28911 #ifndef NULL
28912 #define NULL ((void*)0)
28913 #endif
28914
28915 int
28916 main ()
28917 {
28918
28919 #if DB_VERSION_MAJOR > 1
28920         {
28921                 char *version;
28922                 int major, minor, patch;
28923
28924                 version = db_version( &major, &minor, &patch );
28925
28926                 if( major != DB_VERSION_MAJOR ||
28927                         minor < DB_VERSION_MINOR )
28928                 {
28929                         printf("Berkeley DB version mismatch\n"
28930                                 "\theader: %s\n\tlibrary: %s\n",
28931                                 DB_VERSION_STRING, version);
28932                         return 1;
28933                 }
28934         }
28935 #endif
28936
28937 #if DB_VERSION_MAJOR > 2
28938         db_env_create( NULL, 0 );
28939 #elif DB_VERSION_MAJOR > 1
28940         db_appexit( NULL );
28941 #else
28942         (void) dbopen( NULL, 0, 0, 0, NULL);
28943 #endif
28944
28945   ;
28946   return 0;
28947 }
28948 _ACEOF
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28951   (eval $ac_link) 2>conftest.er1
28952   ac_status=$?
28953   grep -v '^ *+' conftest.er1 >conftest.err
28954   rm -f conftest.er1
28955   cat conftest.err >&5
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); } &&
28958          { ac_try='test -z "$ac_c_werror_flag"
28959                          || test ! -s conftest.err'
28960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961   (eval $ac_try) 2>&5
28962   ac_status=$?
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); }; } &&
28965          { ac_try='test -s conftest$ac_exeext'
28966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967   (eval $ac_try) 2>&5
28968   ac_status=$?
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); }; }; then
28971   ol_cv_db_db_4=yes
28972 else
28973   echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28975
28976 ol_cv_db_db_4=no
28977 fi
28978 rm -f conftest.err conftest.$ac_objext \
28979       conftest$ac_exeext conftest.$ac_ext
28980
28981         LIBS="$ol_LIBS"
28982
28983 fi
28984 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28985 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28986
28987         if test $ol_cv_db_db_4 = yes ; then
28988                 ol_cv_lib_db=-ldb-4
28989         fi
28990 fi
28991
28992 if test $ol_cv_lib_db = no ; then
28993         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28994 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28995 if test "${ol_cv_db_db4+set}" = set; then
28996   echo $ECHO_N "(cached) $ECHO_C" >&6
28997 else
28998
28999         ol_DB_LIB=-ldb4
29000         ol_LIBS=$LIBS
29001         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29002
29003         cat >conftest.$ac_ext <<_ACEOF
29004 /* confdefs.h.  */
29005 _ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h.  */
29009
29010 #ifdef HAVE_DB_185_H
29011 # include <db_185.h>
29012 #else
29013 # include <db.h>
29014 #endif
29015
29016 #ifndef DB_VERSION_MAJOR
29017 # define DB_VERSION_MAJOR 1
29018 #endif
29019
29020 #ifndef NULL
29021 #define NULL ((void*)0)
29022 #endif
29023
29024 int
29025 main ()
29026 {
29027
29028 #if DB_VERSION_MAJOR > 1
29029         {
29030                 char *version;
29031                 int major, minor, patch;
29032
29033                 version = db_version( &major, &minor, &patch );
29034
29035                 if( major != DB_VERSION_MAJOR ||
29036                         minor < DB_VERSION_MINOR )
29037                 {
29038                         printf("Berkeley DB version mismatch\n"
29039                                 "\theader: %s\n\tlibrary: %s\n",
29040                                 DB_VERSION_STRING, version);
29041                         return 1;
29042                 }
29043         }
29044 #endif
29045
29046 #if DB_VERSION_MAJOR > 2
29047         db_env_create( NULL, 0 );
29048 #elif DB_VERSION_MAJOR > 1
29049         db_appexit( NULL );
29050 #else
29051         (void) dbopen( NULL, 0, 0, 0, NULL);
29052 #endif
29053
29054   ;
29055   return 0;
29056 }
29057 _ACEOF
29058 rm -f conftest.$ac_objext conftest$ac_exeext
29059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29060   (eval $ac_link) 2>conftest.er1
29061   ac_status=$?
29062   grep -v '^ *+' conftest.er1 >conftest.err
29063   rm -f conftest.er1
29064   cat conftest.err >&5
29065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066   (exit $ac_status); } &&
29067          { ac_try='test -z "$ac_c_werror_flag"
29068                          || test ! -s conftest.err'
29069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29070   (eval $ac_try) 2>&5
29071   ac_status=$?
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); }; } &&
29074          { ac_try='test -s conftest$ac_exeext'
29075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29076   (eval $ac_try) 2>&5
29077   ac_status=$?
29078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079   (exit $ac_status); }; }; then
29080   ol_cv_db_db4=yes
29081 else
29082   echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29084
29085 ol_cv_db_db4=no
29086 fi
29087 rm -f conftest.err conftest.$ac_objext \
29088       conftest$ac_exeext conftest.$ac_ext
29089
29090         LIBS="$ol_LIBS"
29091
29092 fi
29093 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29094 echo "${ECHO_T}$ol_cv_db_db4" >&6
29095
29096         if test $ol_cv_db_db4 = yes ; then
29097                 ol_cv_lib_db=-ldb4
29098         fi
29099 fi
29100
29101 if test $ol_cv_lib_db = no ; then
29102         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29103 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29104 if test "${ol_cv_db_db+set}" = set; then
29105   echo $ECHO_N "(cached) $ECHO_C" >&6
29106 else
29107
29108         ol_DB_LIB=-ldb
29109         ol_LIBS=$LIBS
29110         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29111
29112         cat >conftest.$ac_ext <<_ACEOF
29113 /* confdefs.h.  */
29114 _ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h.  */
29118
29119 #ifdef HAVE_DB_185_H
29120 # include <db_185.h>
29121 #else
29122 # include <db.h>
29123 #endif
29124
29125 #ifndef DB_VERSION_MAJOR
29126 # define DB_VERSION_MAJOR 1
29127 #endif
29128
29129 #ifndef NULL
29130 #define NULL ((void*)0)
29131 #endif
29132
29133 int
29134 main ()
29135 {
29136
29137 #if DB_VERSION_MAJOR > 1
29138         {
29139                 char *version;
29140                 int major, minor, patch;
29141
29142                 version = db_version( &major, &minor, &patch );
29143
29144                 if( major != DB_VERSION_MAJOR ||
29145                         minor < DB_VERSION_MINOR )
29146                 {
29147                         printf("Berkeley DB version mismatch\n"
29148                                 "\theader: %s\n\tlibrary: %s\n",
29149                                 DB_VERSION_STRING, version);
29150                         return 1;
29151                 }
29152         }
29153 #endif
29154
29155 #if DB_VERSION_MAJOR > 2
29156         db_env_create( NULL, 0 );
29157 #elif DB_VERSION_MAJOR > 1
29158         db_appexit( NULL );
29159 #else
29160         (void) dbopen( NULL, 0, 0, 0, NULL);
29161 #endif
29162
29163   ;
29164   return 0;
29165 }
29166 _ACEOF
29167 rm -f conftest.$ac_objext conftest$ac_exeext
29168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29169   (eval $ac_link) 2>conftest.er1
29170   ac_status=$?
29171   grep -v '^ *+' conftest.er1 >conftest.err
29172   rm -f conftest.er1
29173   cat conftest.err >&5
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); } &&
29176          { ac_try='test -z "$ac_c_werror_flag"
29177                          || test ! -s conftest.err'
29178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179   (eval $ac_try) 2>&5
29180   ac_status=$?
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); }; } &&
29183          { ac_try='test -s conftest$ac_exeext'
29184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185   (eval $ac_try) 2>&5
29186   ac_status=$?
29187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188   (exit $ac_status); }; }; then
29189   ol_cv_db_db=yes
29190 else
29191   echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29193
29194 ol_cv_db_db=no
29195 fi
29196 rm -f conftest.err conftest.$ac_objext \
29197       conftest$ac_exeext conftest.$ac_ext
29198
29199         LIBS="$ol_LIBS"
29200
29201 fi
29202 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29203 echo "${ECHO_T}$ol_cv_db_db" >&6
29204
29205         if test $ol_cv_db_db = yes ; then
29206                 ol_cv_lib_db=-ldb
29207         fi
29208 fi
29209
29210 if test $ol_cv_lib_db = no ; then
29211         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29212 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29213 if test "${ol_cv_db_db41+set}" = set; then
29214   echo $ECHO_N "(cached) $ECHO_C" >&6
29215 else
29216
29217         ol_DB_LIB=-ldb41
29218         ol_LIBS=$LIBS
29219         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29220
29221         cat >conftest.$ac_ext <<_ACEOF
29222 /* confdefs.h.  */
29223 _ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h.  */
29227
29228 #ifdef HAVE_DB_185_H
29229 # include <db_185.h>
29230 #else
29231 # include <db.h>
29232 #endif
29233
29234 #ifndef DB_VERSION_MAJOR
29235 # define DB_VERSION_MAJOR 1
29236 #endif
29237
29238 #ifndef NULL
29239 #define NULL ((void*)0)
29240 #endif
29241
29242 int
29243 main ()
29244 {
29245
29246 #if DB_VERSION_MAJOR > 1
29247         {
29248                 char *version;
29249                 int major, minor, patch;
29250
29251                 version = db_version( &major, &minor, &patch );
29252
29253                 if( major != DB_VERSION_MAJOR ||
29254                         minor < DB_VERSION_MINOR )
29255                 {
29256                         printf("Berkeley DB version mismatch\n"
29257                                 "\theader: %s\n\tlibrary: %s\n",
29258                                 DB_VERSION_STRING, version);
29259                         return 1;
29260                 }
29261         }
29262 #endif
29263
29264 #if DB_VERSION_MAJOR > 2
29265         db_env_create( NULL, 0 );
29266 #elif DB_VERSION_MAJOR > 1
29267         db_appexit( NULL );
29268 #else
29269         (void) dbopen( NULL, 0, 0, 0, NULL);
29270 #endif
29271
29272   ;
29273   return 0;
29274 }
29275 _ACEOF
29276 rm -f conftest.$ac_objext conftest$ac_exeext
29277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29278   (eval $ac_link) 2>conftest.er1
29279   ac_status=$?
29280   grep -v '^ *+' conftest.er1 >conftest.err
29281   rm -f conftest.er1
29282   cat conftest.err >&5
29283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284   (exit $ac_status); } &&
29285          { ac_try='test -z "$ac_c_werror_flag"
29286                          || test ! -s conftest.err'
29287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288   (eval $ac_try) 2>&5
29289   ac_status=$?
29290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291   (exit $ac_status); }; } &&
29292          { ac_try='test -s conftest$ac_exeext'
29293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294   (eval $ac_try) 2>&5
29295   ac_status=$?
29296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297   (exit $ac_status); }; }; then
29298   ol_cv_db_db41=yes
29299 else
29300   echo "$as_me: failed program was:" >&5
29301 sed 's/^/| /' conftest.$ac_ext >&5
29302
29303 ol_cv_db_db41=no
29304 fi
29305 rm -f conftest.err conftest.$ac_objext \
29306       conftest$ac_exeext conftest.$ac_ext
29307
29308         LIBS="$ol_LIBS"
29309
29310 fi
29311 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29312 echo "${ECHO_T}$ol_cv_db_db41" >&6
29313
29314         if test $ol_cv_db_db41 = yes ; then
29315                 ol_cv_lib_db=-ldb41
29316         fi
29317 fi
29318
29319 if test $ol_cv_lib_db = no ; then
29320         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29321 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29322 if test "${ol_cv_db_db_41+set}" = set; then
29323   echo $ECHO_N "(cached) $ECHO_C" >&6
29324 else
29325
29326         ol_DB_LIB=-ldb-41
29327         ol_LIBS=$LIBS
29328         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29329
29330         cat >conftest.$ac_ext <<_ACEOF
29331 /* confdefs.h.  */
29332 _ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h.  */
29336
29337 #ifdef HAVE_DB_185_H
29338 # include <db_185.h>
29339 #else
29340 # include <db.h>
29341 #endif
29342
29343 #ifndef DB_VERSION_MAJOR
29344 # define DB_VERSION_MAJOR 1
29345 #endif
29346
29347 #ifndef NULL
29348 #define NULL ((void*)0)
29349 #endif
29350
29351 int
29352 main ()
29353 {
29354
29355 #if DB_VERSION_MAJOR > 1
29356         {
29357                 char *version;
29358                 int major, minor, patch;
29359
29360                 version = db_version( &major, &minor, &patch );
29361
29362                 if( major != DB_VERSION_MAJOR ||
29363                         minor < DB_VERSION_MINOR )
29364                 {
29365                         printf("Berkeley DB version mismatch\n"
29366                                 "\theader: %s\n\tlibrary: %s\n",
29367                                 DB_VERSION_STRING, version);
29368                         return 1;
29369                 }
29370         }
29371 #endif
29372
29373 #if DB_VERSION_MAJOR > 2
29374         db_env_create( NULL, 0 );
29375 #elif DB_VERSION_MAJOR > 1
29376         db_appexit( NULL );
29377 #else
29378         (void) dbopen( NULL, 0, 0, 0, NULL);
29379 #endif
29380
29381   ;
29382   return 0;
29383 }
29384 _ACEOF
29385 rm -f conftest.$ac_objext conftest$ac_exeext
29386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29387   (eval $ac_link) 2>conftest.er1
29388   ac_status=$?
29389   grep -v '^ *+' conftest.er1 >conftest.err
29390   rm -f conftest.er1
29391   cat conftest.err >&5
29392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393   (exit $ac_status); } &&
29394          { ac_try='test -z "$ac_c_werror_flag"
29395                          || test ! -s conftest.err'
29396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397   (eval $ac_try) 2>&5
29398   ac_status=$?
29399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400   (exit $ac_status); }; } &&
29401          { ac_try='test -s conftest$ac_exeext'
29402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403   (eval $ac_try) 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); }; }; then
29407   ol_cv_db_db_41=yes
29408 else
29409   echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29411
29412 ol_cv_db_db_41=no
29413 fi
29414 rm -f conftest.err conftest.$ac_objext \
29415       conftest$ac_exeext conftest.$ac_ext
29416
29417         LIBS="$ol_LIBS"
29418
29419 fi
29420 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29421 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29422
29423         if test $ol_cv_db_db_41 = yes ; then
29424                 ol_cv_lib_db=-ldb-41
29425         fi
29426 fi
29427
29428 if test $ol_cv_lib_db = no ; then
29429         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29430 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29431 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29432   echo $ECHO_N "(cached) $ECHO_C" >&6
29433 else
29434
29435         ol_DB_LIB=-ldb-4.1
29436         ol_LIBS=$LIBS
29437         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29438
29439         cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445
29446 #ifdef HAVE_DB_185_H
29447 # include <db_185.h>
29448 #else
29449 # include <db.h>
29450 #endif
29451
29452 #ifndef DB_VERSION_MAJOR
29453 # define DB_VERSION_MAJOR 1
29454 #endif
29455
29456 #ifndef NULL
29457 #define NULL ((void*)0)
29458 #endif
29459
29460 int
29461 main ()
29462 {
29463
29464 #if DB_VERSION_MAJOR > 1
29465         {
29466                 char *version;
29467                 int major, minor, patch;
29468
29469                 version = db_version( &major, &minor, &patch );
29470
29471                 if( major != DB_VERSION_MAJOR ||
29472                         minor < DB_VERSION_MINOR )
29473                 {
29474                         printf("Berkeley DB version mismatch\n"
29475                                 "\theader: %s\n\tlibrary: %s\n",
29476                                 DB_VERSION_STRING, version);
29477                         return 1;
29478                 }
29479         }
29480 #endif
29481
29482 #if DB_VERSION_MAJOR > 2
29483         db_env_create( NULL, 0 );
29484 #elif DB_VERSION_MAJOR > 1
29485         db_appexit( NULL );
29486 #else
29487         (void) dbopen( NULL, 0, 0, 0, NULL);
29488 #endif
29489
29490   ;
29491   return 0;
29492 }
29493 _ACEOF
29494 rm -f conftest.$ac_objext conftest$ac_exeext
29495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29496   (eval $ac_link) 2>conftest.er1
29497   ac_status=$?
29498   grep -v '^ *+' conftest.er1 >conftest.err
29499   rm -f conftest.er1
29500   cat conftest.err >&5
29501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502   (exit $ac_status); } &&
29503          { ac_try='test -z "$ac_c_werror_flag"
29504                          || test ! -s conftest.err'
29505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506   (eval $ac_try) 2>&5
29507   ac_status=$?
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); }; } &&
29510          { ac_try='test -s conftest$ac_exeext'
29511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29512   (eval $ac_try) 2>&5
29513   ac_status=$?
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); }; }; then
29516   ol_cv_db_db_4_dot_1=yes
29517 else
29518   echo "$as_me: failed program was:" >&5
29519 sed 's/^/| /' conftest.$ac_ext >&5
29520
29521 ol_cv_db_db_4_dot_1=no
29522 fi
29523 rm -f conftest.err conftest.$ac_objext \
29524       conftest$ac_exeext conftest.$ac_ext
29525
29526         LIBS="$ol_LIBS"
29527
29528 fi
29529 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29530 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29531
29532         if test $ol_cv_db_db_4_dot_1 = yes ; then
29533                 ol_cv_lib_db=-ldb-4.1
29534         fi
29535 fi
29536
29537 if test $ol_cv_lib_db = no ; then
29538         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29539 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29540 if test "${ol_cv_db_db_4_1+set}" = set; then
29541   echo $ECHO_N "(cached) $ECHO_C" >&6
29542 else
29543
29544         ol_DB_LIB=-ldb-4-1
29545         ol_LIBS=$LIBS
29546         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29547
29548         cat >conftest.$ac_ext <<_ACEOF
29549 /* confdefs.h.  */
29550 _ACEOF
29551 cat confdefs.h >>conftest.$ac_ext
29552 cat >>conftest.$ac_ext <<_ACEOF
29553 /* end confdefs.h.  */
29554
29555 #ifdef HAVE_DB_185_H
29556 # include <db_185.h>
29557 #else
29558 # include <db.h>
29559 #endif
29560
29561 #ifndef DB_VERSION_MAJOR
29562 # define DB_VERSION_MAJOR 1
29563 #endif
29564
29565 #ifndef NULL
29566 #define NULL ((void*)0)
29567 #endif
29568
29569 int
29570 main ()
29571 {
29572
29573 #if DB_VERSION_MAJOR > 1
29574         {
29575                 char *version;
29576                 int major, minor, patch;
29577
29578                 version = db_version( &major, &minor, &patch );
29579
29580                 if( major != DB_VERSION_MAJOR ||
29581                         minor < DB_VERSION_MINOR )
29582                 {
29583                         printf("Berkeley DB version mismatch\n"
29584                                 "\theader: %s\n\tlibrary: %s\n",
29585                                 DB_VERSION_STRING, version);
29586                         return 1;
29587                 }
29588         }
29589 #endif
29590
29591 #if DB_VERSION_MAJOR > 2
29592         db_env_create( NULL, 0 );
29593 #elif DB_VERSION_MAJOR > 1
29594         db_appexit( NULL );
29595 #else
29596         (void) dbopen( NULL, 0, 0, 0, NULL);
29597 #endif
29598
29599   ;
29600   return 0;
29601 }
29602 _ACEOF
29603 rm -f conftest.$ac_objext conftest$ac_exeext
29604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29605   (eval $ac_link) 2>conftest.er1
29606   ac_status=$?
29607   grep -v '^ *+' conftest.er1 >conftest.err
29608   rm -f conftest.er1
29609   cat conftest.err >&5
29610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611   (exit $ac_status); } &&
29612          { ac_try='test -z "$ac_c_werror_flag"
29613                          || test ! -s conftest.err'
29614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615   (eval $ac_try) 2>&5
29616   ac_status=$?
29617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618   (exit $ac_status); }; } &&
29619          { ac_try='test -s conftest$ac_exeext'
29620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621   (eval $ac_try) 2>&5
29622   ac_status=$?
29623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); }; }; then
29625   ol_cv_db_db_4_1=yes
29626 else
29627   echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29629
29630 ol_cv_db_db_4_1=no
29631 fi
29632 rm -f conftest.err conftest.$ac_objext \
29633       conftest$ac_exeext conftest.$ac_ext
29634
29635         LIBS="$ol_LIBS"
29636
29637 fi
29638 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29639 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29640
29641         if test $ol_cv_db_db_4_1 = yes ; then
29642                 ol_cv_lib_db=-ldb-4-1
29643         fi
29644 fi
29645
29646 if test $ol_cv_lib_db = no ; then
29647         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29648 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29649 if test "${ol_cv_db_db3+set}" = set; then
29650   echo $ECHO_N "(cached) $ECHO_C" >&6
29651 else
29652
29653         ol_DB_LIB=-ldb3
29654         ol_LIBS=$LIBS
29655         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29656
29657         cat >conftest.$ac_ext <<_ACEOF
29658 /* confdefs.h.  */
29659 _ACEOF
29660 cat confdefs.h >>conftest.$ac_ext
29661 cat >>conftest.$ac_ext <<_ACEOF
29662 /* end confdefs.h.  */
29663
29664 #ifdef HAVE_DB_185_H
29665 # include <db_185.h>
29666 #else
29667 # include <db.h>
29668 #endif
29669
29670 #ifndef DB_VERSION_MAJOR
29671 # define DB_VERSION_MAJOR 1
29672 #endif
29673
29674 #ifndef NULL
29675 #define NULL ((void*)0)
29676 #endif
29677
29678 int
29679 main ()
29680 {
29681
29682 #if DB_VERSION_MAJOR > 1
29683         {
29684                 char *version;
29685                 int major, minor, patch;
29686
29687                 version = db_version( &major, &minor, &patch );
29688
29689                 if( major != DB_VERSION_MAJOR ||
29690                         minor < DB_VERSION_MINOR )
29691                 {
29692                         printf("Berkeley DB version mismatch\n"
29693                                 "\theader: %s\n\tlibrary: %s\n",
29694                                 DB_VERSION_STRING, version);
29695                         return 1;
29696                 }
29697         }
29698 #endif
29699
29700 #if DB_VERSION_MAJOR > 2
29701         db_env_create( NULL, 0 );
29702 #elif DB_VERSION_MAJOR > 1
29703         db_appexit( NULL );
29704 #else
29705         (void) dbopen( NULL, 0, 0, 0, NULL);
29706 #endif
29707
29708   ;
29709   return 0;
29710 }
29711 _ACEOF
29712 rm -f conftest.$ac_objext conftest$ac_exeext
29713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29714   (eval $ac_link) 2>conftest.er1
29715   ac_status=$?
29716   grep -v '^ *+' conftest.er1 >conftest.err
29717   rm -f conftest.er1
29718   cat conftest.err >&5
29719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720   (exit $ac_status); } &&
29721          { ac_try='test -z "$ac_c_werror_flag"
29722                          || test ! -s conftest.err'
29723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29724   (eval $ac_try) 2>&5
29725   ac_status=$?
29726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727   (exit $ac_status); }; } &&
29728          { ac_try='test -s conftest$ac_exeext'
29729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29730   (eval $ac_try) 2>&5
29731   ac_status=$?
29732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733   (exit $ac_status); }; }; then
29734   ol_cv_db_db3=yes
29735 else
29736   echo "$as_me: failed program was:" >&5
29737 sed 's/^/| /' conftest.$ac_ext >&5
29738
29739 ol_cv_db_db3=no
29740 fi
29741 rm -f conftest.err conftest.$ac_objext \
29742       conftest$ac_exeext conftest.$ac_ext
29743
29744         LIBS="$ol_LIBS"
29745
29746 fi
29747 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29748 echo "${ECHO_T}$ol_cv_db_db3" >&6
29749
29750         if test $ol_cv_db_db3 = yes ; then
29751                 ol_cv_lib_db=-ldb3
29752         fi
29753 fi
29754
29755 if test $ol_cv_lib_db = no ; then
29756         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29757 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29758 if test "${ol_cv_db_db_3+set}" = set; then
29759   echo $ECHO_N "(cached) $ECHO_C" >&6
29760 else
29761
29762         ol_DB_LIB=-ldb-3
29763         ol_LIBS=$LIBS
29764         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29765
29766         cat >conftest.$ac_ext <<_ACEOF
29767 /* confdefs.h.  */
29768 _ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h.  */
29772
29773 #ifdef HAVE_DB_185_H
29774 # include <db_185.h>
29775 #else
29776 # include <db.h>
29777 #endif
29778
29779 #ifndef DB_VERSION_MAJOR
29780 # define DB_VERSION_MAJOR 1
29781 #endif
29782
29783 #ifndef NULL
29784 #define NULL ((void*)0)
29785 #endif
29786
29787 int
29788 main ()
29789 {
29790
29791 #if DB_VERSION_MAJOR > 1
29792         {
29793                 char *version;
29794                 int major, minor, patch;
29795
29796                 version = db_version( &major, &minor, &patch );
29797
29798                 if( major != DB_VERSION_MAJOR ||
29799                         minor < DB_VERSION_MINOR )
29800                 {
29801                         printf("Berkeley DB version mismatch\n"
29802                                 "\theader: %s\n\tlibrary: %s\n",
29803                                 DB_VERSION_STRING, version);
29804                         return 1;
29805                 }
29806         }
29807 #endif
29808
29809 #if DB_VERSION_MAJOR > 2
29810         db_env_create( NULL, 0 );
29811 #elif DB_VERSION_MAJOR > 1
29812         db_appexit( NULL );
29813 #else
29814         (void) dbopen( NULL, 0, 0, 0, NULL);
29815 #endif
29816
29817   ;
29818   return 0;
29819 }
29820 _ACEOF
29821 rm -f conftest.$ac_objext conftest$ac_exeext
29822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29823   (eval $ac_link) 2>conftest.er1
29824   ac_status=$?
29825   grep -v '^ *+' conftest.er1 >conftest.err
29826   rm -f conftest.er1
29827   cat conftest.err >&5
29828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829   (exit $ac_status); } &&
29830          { ac_try='test -z "$ac_c_werror_flag"
29831                          || test ! -s conftest.err'
29832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833   (eval $ac_try) 2>&5
29834   ac_status=$?
29835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836   (exit $ac_status); }; } &&
29837          { ac_try='test -s conftest$ac_exeext'
29838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839   (eval $ac_try) 2>&5
29840   ac_status=$?
29841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842   (exit $ac_status); }; }; then
29843   ol_cv_db_db_3=yes
29844 else
29845   echo "$as_me: failed program was:" >&5
29846 sed 's/^/| /' conftest.$ac_ext >&5
29847
29848 ol_cv_db_db_3=no
29849 fi
29850 rm -f conftest.err conftest.$ac_objext \
29851       conftest$ac_exeext conftest.$ac_ext
29852
29853         LIBS="$ol_LIBS"
29854
29855 fi
29856 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29857 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29858
29859         if test $ol_cv_db_db_3 = yes ; then
29860                 ol_cv_lib_db=-ldb-3
29861         fi
29862 fi
29863
29864 if test $ol_cv_lib_db = no ; then
29865         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29866 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29867 if test "${ol_cv_db_db2+set}" = set; then
29868   echo $ECHO_N "(cached) $ECHO_C" >&6
29869 else
29870
29871         ol_DB_LIB=-ldb2
29872         ol_LIBS=$LIBS
29873         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29874
29875         cat >conftest.$ac_ext <<_ACEOF
29876 /* confdefs.h.  */
29877 _ACEOF
29878 cat confdefs.h >>conftest.$ac_ext
29879 cat >>conftest.$ac_ext <<_ACEOF
29880 /* end confdefs.h.  */
29881
29882 #ifdef HAVE_DB_185_H
29883 # include <db_185.h>
29884 #else
29885 # include <db.h>
29886 #endif
29887
29888 #ifndef DB_VERSION_MAJOR
29889 # define DB_VERSION_MAJOR 1
29890 #endif
29891
29892 #ifndef NULL
29893 #define NULL ((void*)0)
29894 #endif
29895
29896 int
29897 main ()
29898 {
29899
29900 #if DB_VERSION_MAJOR > 1
29901         {
29902                 char *version;
29903                 int major, minor, patch;
29904
29905                 version = db_version( &major, &minor, &patch );
29906
29907                 if( major != DB_VERSION_MAJOR ||
29908                         minor < DB_VERSION_MINOR )
29909                 {
29910                         printf("Berkeley DB version mismatch\n"
29911                                 "\theader: %s\n\tlibrary: %s\n",
29912                                 DB_VERSION_STRING, version);
29913                         return 1;
29914                 }
29915         }
29916 #endif
29917
29918 #if DB_VERSION_MAJOR > 2
29919         db_env_create( NULL, 0 );
29920 #elif DB_VERSION_MAJOR > 1
29921         db_appexit( NULL );
29922 #else
29923         (void) dbopen( NULL, 0, 0, 0, NULL);
29924 #endif
29925
29926   ;
29927   return 0;
29928 }
29929 _ACEOF
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29932   (eval $ac_link) 2>conftest.er1
29933   ac_status=$?
29934   grep -v '^ *+' conftest.er1 >conftest.err
29935   rm -f conftest.er1
29936   cat conftest.err >&5
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); } &&
29939          { ac_try='test -z "$ac_c_werror_flag"
29940                          || test ! -s conftest.err'
29941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942   (eval $ac_try) 2>&5
29943   ac_status=$?
29944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945   (exit $ac_status); }; } &&
29946          { ac_try='test -s conftest$ac_exeext'
29947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29948   (eval $ac_try) 2>&5
29949   ac_status=$?
29950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951   (exit $ac_status); }; }; then
29952   ol_cv_db_db2=yes
29953 else
29954   echo "$as_me: failed program was:" >&5
29955 sed 's/^/| /' conftest.$ac_ext >&5
29956
29957 ol_cv_db_db2=no
29958 fi
29959 rm -f conftest.err conftest.$ac_objext \
29960       conftest$ac_exeext conftest.$ac_ext
29961
29962         LIBS="$ol_LIBS"
29963
29964 fi
29965 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29966 echo "${ECHO_T}$ol_cv_db_db2" >&6
29967
29968         if test $ol_cv_db_db2 = yes ; then
29969                 ol_cv_lib_db=-ldb2
29970         fi
29971 fi
29972
29973 if test $ol_cv_lib_db = no ; then
29974         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29975 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29976 if test "${ol_cv_db_db_2+set}" = set; then
29977   echo $ECHO_N "(cached) $ECHO_C" >&6
29978 else
29979
29980         ol_DB_LIB=-ldb-2
29981         ol_LIBS=$LIBS
29982         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29983
29984         cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h.  */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h.  */
29990
29991 #ifdef HAVE_DB_185_H
29992 # include <db_185.h>
29993 #else
29994 # include <db.h>
29995 #endif
29996
29997 #ifndef DB_VERSION_MAJOR
29998 # define DB_VERSION_MAJOR 1
29999 #endif
30000
30001 #ifndef NULL
30002 #define NULL ((void*)0)
30003 #endif
30004
30005 int
30006 main ()
30007 {
30008
30009 #if DB_VERSION_MAJOR > 1
30010         {
30011                 char *version;
30012                 int major, minor, patch;
30013
30014                 version = db_version( &major, &minor, &patch );
30015
30016                 if( major != DB_VERSION_MAJOR ||
30017                         minor < DB_VERSION_MINOR )
30018                 {
30019                         printf("Berkeley DB version mismatch\n"
30020                                 "\theader: %s\n\tlibrary: %s\n",
30021                                 DB_VERSION_STRING, version);
30022                         return 1;
30023                 }
30024         }
30025 #endif
30026
30027 #if DB_VERSION_MAJOR > 2
30028         db_env_create( NULL, 0 );
30029 #elif DB_VERSION_MAJOR > 1
30030         db_appexit( NULL );
30031 #else
30032         (void) dbopen( NULL, 0, 0, 0, NULL);
30033 #endif
30034
30035   ;
30036   return 0;
30037 }
30038 _ACEOF
30039 rm -f conftest.$ac_objext conftest$ac_exeext
30040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30041   (eval $ac_link) 2>conftest.er1
30042   ac_status=$?
30043   grep -v '^ *+' conftest.er1 >conftest.err
30044   rm -f conftest.er1
30045   cat conftest.err >&5
30046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047   (exit $ac_status); } &&
30048          { ac_try='test -z "$ac_c_werror_flag"
30049                          || test ! -s conftest.err'
30050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051   (eval $ac_try) 2>&5
30052   ac_status=$?
30053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054   (exit $ac_status); }; } &&
30055          { ac_try='test -s conftest$ac_exeext'
30056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057   (eval $ac_try) 2>&5
30058   ac_status=$?
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); }; }; then
30061   ol_cv_db_db_2=yes
30062 else
30063   echo "$as_me: failed program was:" >&5
30064 sed 's/^/| /' conftest.$ac_ext >&5
30065
30066 ol_cv_db_db_2=no
30067 fi
30068 rm -f conftest.err conftest.$ac_objext \
30069       conftest$ac_exeext conftest.$ac_ext
30070
30071         LIBS="$ol_LIBS"
30072
30073 fi
30074 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30075 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30076
30077         if test $ol_cv_db_db_2 = yes ; then
30078                 ol_cv_lib_db=-ldb-2
30079         fi
30080 fi
30081
30082 if test $ol_cv_lib_db = no ; then
30083         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30084 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30085 if test "${ol_cv_db_db1+set}" = set; then
30086   echo $ECHO_N "(cached) $ECHO_C" >&6
30087 else
30088
30089         ol_DB_LIB=-ldb1
30090         ol_LIBS=$LIBS
30091         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30092
30093         cat >conftest.$ac_ext <<_ACEOF
30094 /* confdefs.h.  */
30095 _ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h.  */
30099
30100 #ifdef HAVE_DB_185_H
30101 # include <db_185.h>
30102 #else
30103 # include <db.h>
30104 #endif
30105
30106 #ifndef DB_VERSION_MAJOR
30107 # define DB_VERSION_MAJOR 1
30108 #endif
30109
30110 #ifndef NULL
30111 #define NULL ((void*)0)
30112 #endif
30113
30114 int
30115 main ()
30116 {
30117
30118 #if DB_VERSION_MAJOR > 1
30119         {
30120                 char *version;
30121                 int major, minor, patch;
30122
30123                 version = db_version( &major, &minor, &patch );
30124
30125                 if( major != DB_VERSION_MAJOR ||
30126                         minor < DB_VERSION_MINOR )
30127                 {
30128                         printf("Berkeley DB version mismatch\n"
30129                                 "\theader: %s\n\tlibrary: %s\n",
30130                                 DB_VERSION_STRING, version);
30131                         return 1;
30132                 }
30133         }
30134 #endif
30135
30136 #if DB_VERSION_MAJOR > 2
30137         db_env_create( NULL, 0 );
30138 #elif DB_VERSION_MAJOR > 1
30139         db_appexit( NULL );
30140 #else
30141         (void) dbopen( NULL, 0, 0, 0, NULL);
30142 #endif
30143
30144   ;
30145   return 0;
30146 }
30147 _ACEOF
30148 rm -f conftest.$ac_objext conftest$ac_exeext
30149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30150   (eval $ac_link) 2>conftest.er1
30151   ac_status=$?
30152   grep -v '^ *+' conftest.er1 >conftest.err
30153   rm -f conftest.er1
30154   cat conftest.err >&5
30155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156   (exit $ac_status); } &&
30157          { ac_try='test -z "$ac_c_werror_flag"
30158                          || test ! -s conftest.err'
30159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30160   (eval $ac_try) 2>&5
30161   ac_status=$?
30162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163   (exit $ac_status); }; } &&
30164          { ac_try='test -s conftest$ac_exeext'
30165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30166   (eval $ac_try) 2>&5
30167   ac_status=$?
30168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169   (exit $ac_status); }; }; then
30170   ol_cv_db_db1=yes
30171 else
30172   echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30174
30175 ol_cv_db_db1=no
30176 fi
30177 rm -f conftest.err conftest.$ac_objext \
30178       conftest$ac_exeext conftest.$ac_ext
30179
30180         LIBS="$ol_LIBS"
30181
30182 fi
30183 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30184 echo "${ECHO_T}$ol_cv_db_db1" >&6
30185
30186         if test $ol_cv_db_db1 = yes ; then
30187                 ol_cv_lib_db=-ldb1
30188         fi
30189 fi
30190
30191 if test $ol_cv_lib_db = no ; then
30192         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30193 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30194 if test "${ol_cv_db_db_1+set}" = set; then
30195   echo $ECHO_N "(cached) $ECHO_C" >&6
30196 else
30197
30198         ol_DB_LIB=-ldb-1
30199         ol_LIBS=$LIBS
30200         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30201
30202         cat >conftest.$ac_ext <<_ACEOF
30203 /* confdefs.h.  */
30204 _ACEOF
30205 cat confdefs.h >>conftest.$ac_ext
30206 cat >>conftest.$ac_ext <<_ACEOF
30207 /* end confdefs.h.  */
30208
30209 #ifdef HAVE_DB_185_H
30210 # include <db_185.h>
30211 #else
30212 # include <db.h>
30213 #endif
30214
30215 #ifndef DB_VERSION_MAJOR
30216 # define DB_VERSION_MAJOR 1
30217 #endif
30218
30219 #ifndef NULL
30220 #define NULL ((void*)0)
30221 #endif
30222
30223 int
30224 main ()
30225 {
30226
30227 #if DB_VERSION_MAJOR > 1
30228         {
30229                 char *version;
30230                 int major, minor, patch;
30231
30232                 version = db_version( &major, &minor, &patch );
30233
30234                 if( major != DB_VERSION_MAJOR ||
30235                         minor < DB_VERSION_MINOR )
30236                 {
30237                         printf("Berkeley DB version mismatch\n"
30238                                 "\theader: %s\n\tlibrary: %s\n",
30239                                 DB_VERSION_STRING, version);
30240                         return 1;
30241                 }
30242         }
30243 #endif
30244
30245 #if DB_VERSION_MAJOR > 2
30246         db_env_create( NULL, 0 );
30247 #elif DB_VERSION_MAJOR > 1
30248         db_appexit( NULL );
30249 #else
30250         (void) dbopen( NULL, 0, 0, 0, NULL);
30251 #endif
30252
30253   ;
30254   return 0;
30255 }
30256 _ACEOF
30257 rm -f conftest.$ac_objext conftest$ac_exeext
30258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259   (eval $ac_link) 2>conftest.er1
30260   ac_status=$?
30261   grep -v '^ *+' conftest.er1 >conftest.err
30262   rm -f conftest.er1
30263   cat conftest.err >&5
30264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265   (exit $ac_status); } &&
30266          { ac_try='test -z "$ac_c_werror_flag"
30267                          || test ! -s conftest.err'
30268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30269   (eval $ac_try) 2>&5
30270   ac_status=$?
30271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272   (exit $ac_status); }; } &&
30273          { ac_try='test -s conftest$ac_exeext'
30274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30275   (eval $ac_try) 2>&5
30276   ac_status=$?
30277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30278   (exit $ac_status); }; }; then
30279   ol_cv_db_db_1=yes
30280 else
30281   echo "$as_me: failed program was:" >&5
30282 sed 's/^/| /' conftest.$ac_ext >&5
30283
30284 ol_cv_db_db_1=no
30285 fi
30286 rm -f conftest.err conftest.$ac_objext \
30287       conftest$ac_exeext conftest.$ac_ext
30288
30289         LIBS="$ol_LIBS"
30290
30291 fi
30292 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30293 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30294
30295         if test $ol_cv_db_db_1 = yes ; then
30296                 ol_cv_lib_db=-ldb-1
30297         fi
30298 fi
30299
30300
30301                 if test "$ol_cv_lib_db" != no ; then
30302                         ol_cv_berkeley_db=yes
30303                 fi
30304         fi
30305 fi
30306
30307         else
30308                 ol_cv_berkeley_db=no
30309
30310 for ac_header in db.h
30311 do
30312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30314   echo "$as_me:$LINENO: checking for $ac_header" >&5
30315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30317   echo $ECHO_N "(cached) $ECHO_C" >&6
30318 fi
30319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30321 else
30322   # Is the header compilable?
30323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30325 cat >conftest.$ac_ext <<_ACEOF
30326 /* confdefs.h.  */
30327 _ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h.  */
30331 $ac_includes_default
30332 #include <$ac_header>
30333 _ACEOF
30334 rm -f conftest.$ac_objext
30335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30336   (eval $ac_compile) 2>conftest.er1
30337   ac_status=$?
30338   grep -v '^ *+' conftest.er1 >conftest.err
30339   rm -f conftest.er1
30340   cat conftest.err >&5
30341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342   (exit $ac_status); } &&
30343          { ac_try='test -z "$ac_c_werror_flag"
30344                          || test ! -s conftest.err'
30345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30346   (eval $ac_try) 2>&5
30347   ac_status=$?
30348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349   (exit $ac_status); }; } &&
30350          { ac_try='test -s conftest.$ac_objext'
30351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30352   (eval $ac_try) 2>&5
30353   ac_status=$?
30354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355   (exit $ac_status); }; }; then
30356   ac_header_compiler=yes
30357 else
30358   echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30360
30361 ac_header_compiler=no
30362 fi
30363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30365 echo "${ECHO_T}$ac_header_compiler" >&6
30366
30367 # Is the header present?
30368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30370 cat >conftest.$ac_ext <<_ACEOF
30371 /* confdefs.h.  */
30372 _ACEOF
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h.  */
30376 #include <$ac_header>
30377 _ACEOF
30378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30380   ac_status=$?
30381   grep -v '^ *+' conftest.er1 >conftest.err
30382   rm -f conftest.er1
30383   cat conftest.err >&5
30384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385   (exit $ac_status); } >/dev/null; then
30386   if test -s conftest.err; then
30387     ac_cpp_err=$ac_c_preproc_warn_flag
30388     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30389   else
30390     ac_cpp_err=
30391   fi
30392 else
30393   ac_cpp_err=yes
30394 fi
30395 if test -z "$ac_cpp_err"; then
30396   ac_header_preproc=yes
30397 else
30398   echo "$as_me: failed program was:" >&5
30399 sed 's/^/| /' conftest.$ac_ext >&5
30400
30401   ac_header_preproc=no
30402 fi
30403 rm -f conftest.err conftest.$ac_ext
30404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30405 echo "${ECHO_T}$ac_header_preproc" >&6
30406
30407 # So?  What about this header?
30408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30409   yes:no: )
30410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30414     ac_header_preproc=yes
30415     ;;
30416   no:yes:* )
30417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30419     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30420 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30421     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30423     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30424 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30427     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30429     (
30430       cat <<\_ASBOX
30431 ## ------------------------------------------ ##
30432 ## Report this to the AC_PACKAGE_NAME lists.  ##
30433 ## ------------------------------------------ ##
30434 _ASBOX
30435     ) |
30436       sed "s/^/$as_me: WARNING:     /" >&2
30437     ;;
30438 esac
30439 echo "$as_me:$LINENO: checking for $ac_header" >&5
30440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30442   echo $ECHO_N "(cached) $ECHO_C" >&6
30443 else
30444   eval "$as_ac_Header=\$ac_header_preproc"
30445 fi
30446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30448
30449 fi
30450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30451   cat >>confdefs.h <<_ACEOF
30452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30453 _ACEOF
30454
30455 fi
30456
30457 done
30458
30459 if test $ac_cv_header_db_h = yes; then
30460         ol_cv_lib_db=no
30461 if test $ol_cv_lib_db = no ; then
30462         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30463 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30464 if test "${ol_cv_db_none+set}" = set; then
30465   echo $ECHO_N "(cached) $ECHO_C" >&6
30466 else
30467
30468         ol_DB_LIB=
30469         ol_LIBS=$LIBS
30470         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30471
30472         cat >conftest.$ac_ext <<_ACEOF
30473 /* confdefs.h.  */
30474 _ACEOF
30475 cat confdefs.h >>conftest.$ac_ext
30476 cat >>conftest.$ac_ext <<_ACEOF
30477 /* end confdefs.h.  */
30478
30479 #ifdef HAVE_DB_185_H
30480 # include <db_185.h>
30481 #else
30482 # include <db.h>
30483 #endif
30484
30485 #ifndef DB_VERSION_MAJOR
30486 # define DB_VERSION_MAJOR 1
30487 #endif
30488
30489 #ifndef NULL
30490 #define NULL ((void*)0)
30491 #endif
30492
30493 int
30494 main ()
30495 {
30496
30497 #if DB_VERSION_MAJOR > 1
30498         {
30499                 char *version;
30500                 int major, minor, patch;
30501
30502                 version = db_version( &major, &minor, &patch );
30503
30504                 if( major != DB_VERSION_MAJOR ||
30505                         minor < DB_VERSION_MINOR )
30506                 {
30507                         printf("Berkeley DB version mismatch\n"
30508                                 "\theader: %s\n\tlibrary: %s\n",
30509                                 DB_VERSION_STRING, version);
30510                         return 1;
30511                 }
30512         }
30513 #endif
30514
30515 #if DB_VERSION_MAJOR > 2
30516         db_env_create( NULL, 0 );
30517 #elif DB_VERSION_MAJOR > 1
30518         db_appexit( NULL );
30519 #else
30520         (void) dbopen( NULL, 0, 0, 0, NULL);
30521 #endif
30522
30523   ;
30524   return 0;
30525 }
30526 _ACEOF
30527 rm -f conftest.$ac_objext conftest$ac_exeext
30528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30529   (eval $ac_link) 2>conftest.er1
30530   ac_status=$?
30531   grep -v '^ *+' conftest.er1 >conftest.err
30532   rm -f conftest.er1
30533   cat conftest.err >&5
30534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535   (exit $ac_status); } &&
30536          { ac_try='test -z "$ac_c_werror_flag"
30537                          || test ! -s conftest.err'
30538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30539   (eval $ac_try) 2>&5
30540   ac_status=$?
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); }; } &&
30543          { ac_try='test -s conftest$ac_exeext'
30544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30545   (eval $ac_try) 2>&5
30546   ac_status=$?
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); }; }; then
30549   ol_cv_db_none=yes
30550 else
30551   echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554 ol_cv_db_none=no
30555 fi
30556 rm -f conftest.err conftest.$ac_objext \
30557       conftest$ac_exeext conftest.$ac_ext
30558
30559         LIBS="$ol_LIBS"
30560
30561 fi
30562 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30563 echo "${ECHO_T}$ol_cv_db_none" >&6
30564
30565         if test $ol_cv_db_none = yes ; then
30566                 ol_cv_lib_db=yes
30567         fi
30568 fi
30569
30570 if test $ol_cv_lib_db = no ; then
30571         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30572 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30573 if test "${ol_cv_db_db43+set}" = set; then
30574   echo $ECHO_N "(cached) $ECHO_C" >&6
30575 else
30576
30577         ol_DB_LIB=-ldb43
30578         ol_LIBS=$LIBS
30579         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30580
30581         cat >conftest.$ac_ext <<_ACEOF
30582 /* confdefs.h.  */
30583 _ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h.  */
30587
30588 #ifdef HAVE_DB_185_H
30589 # include <db_185.h>
30590 #else
30591 # include <db.h>
30592 #endif
30593
30594 #ifndef DB_VERSION_MAJOR
30595 # define DB_VERSION_MAJOR 1
30596 #endif
30597
30598 #ifndef NULL
30599 #define NULL ((void*)0)
30600 #endif
30601
30602 int
30603 main ()
30604 {
30605
30606 #if DB_VERSION_MAJOR > 1
30607         {
30608                 char *version;
30609                 int major, minor, patch;
30610
30611                 version = db_version( &major, &minor, &patch );
30612
30613                 if( major != DB_VERSION_MAJOR ||
30614                         minor < DB_VERSION_MINOR )
30615                 {
30616                         printf("Berkeley DB version mismatch\n"
30617                                 "\theader: %s\n\tlibrary: %s\n",
30618                                 DB_VERSION_STRING, version);
30619                         return 1;
30620                 }
30621         }
30622 #endif
30623
30624 #if DB_VERSION_MAJOR > 2
30625         db_env_create( NULL, 0 );
30626 #elif DB_VERSION_MAJOR > 1
30627         db_appexit( NULL );
30628 #else
30629         (void) dbopen( NULL, 0, 0, 0, NULL);
30630 #endif
30631
30632   ;
30633   return 0;
30634 }
30635 _ACEOF
30636 rm -f conftest.$ac_objext conftest$ac_exeext
30637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30638   (eval $ac_link) 2>conftest.er1
30639   ac_status=$?
30640   grep -v '^ *+' conftest.er1 >conftest.err
30641   rm -f conftest.er1
30642   cat conftest.err >&5
30643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644   (exit $ac_status); } &&
30645          { ac_try='test -z "$ac_c_werror_flag"
30646                          || test ! -s conftest.err'
30647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648   (eval $ac_try) 2>&5
30649   ac_status=$?
30650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651   (exit $ac_status); }; } &&
30652          { ac_try='test -s conftest$ac_exeext'
30653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654   (eval $ac_try) 2>&5
30655   ac_status=$?
30656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657   (exit $ac_status); }; }; then
30658   ol_cv_db_db43=yes
30659 else
30660   echo "$as_me: failed program was:" >&5
30661 sed 's/^/| /' conftest.$ac_ext >&5
30662
30663 ol_cv_db_db43=no
30664 fi
30665 rm -f conftest.err conftest.$ac_objext \
30666       conftest$ac_exeext conftest.$ac_ext
30667
30668         LIBS="$ol_LIBS"
30669
30670 fi
30671 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30672 echo "${ECHO_T}$ol_cv_db_db43" >&6
30673
30674         if test $ol_cv_db_db43 = yes ; then
30675                 ol_cv_lib_db=-ldb43
30676         fi
30677 fi
30678
30679 if test $ol_cv_lib_db = no ; then
30680         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30681 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30682 if test "${ol_cv_db_db_43+set}" = set; then
30683   echo $ECHO_N "(cached) $ECHO_C" >&6
30684 else
30685
30686         ol_DB_LIB=-ldb-43
30687         ol_LIBS=$LIBS
30688         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30689
30690         cat >conftest.$ac_ext <<_ACEOF
30691 /* confdefs.h.  */
30692 _ACEOF
30693 cat confdefs.h >>conftest.$ac_ext
30694 cat >>conftest.$ac_ext <<_ACEOF
30695 /* end confdefs.h.  */
30696
30697 #ifdef HAVE_DB_185_H
30698 # include <db_185.h>
30699 #else
30700 # include <db.h>
30701 #endif
30702
30703 #ifndef DB_VERSION_MAJOR
30704 # define DB_VERSION_MAJOR 1
30705 #endif
30706
30707 #ifndef NULL
30708 #define NULL ((void*)0)
30709 #endif
30710
30711 int
30712 main ()
30713 {
30714
30715 #if DB_VERSION_MAJOR > 1
30716         {
30717                 char *version;
30718                 int major, minor, patch;
30719
30720                 version = db_version( &major, &minor, &patch );
30721
30722                 if( major != DB_VERSION_MAJOR ||
30723                         minor < DB_VERSION_MINOR )
30724                 {
30725                         printf("Berkeley DB version mismatch\n"
30726                                 "\theader: %s\n\tlibrary: %s\n",
30727                                 DB_VERSION_STRING, version);
30728                         return 1;
30729                 }
30730         }
30731 #endif
30732
30733 #if DB_VERSION_MAJOR > 2
30734         db_env_create( NULL, 0 );
30735 #elif DB_VERSION_MAJOR > 1
30736         db_appexit( NULL );
30737 #else
30738         (void) dbopen( NULL, 0, 0, 0, NULL);
30739 #endif
30740
30741   ;
30742   return 0;
30743 }
30744 _ACEOF
30745 rm -f conftest.$ac_objext conftest$ac_exeext
30746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30747   (eval $ac_link) 2>conftest.er1
30748   ac_status=$?
30749   grep -v '^ *+' conftest.er1 >conftest.err
30750   rm -f conftest.er1
30751   cat conftest.err >&5
30752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753   (exit $ac_status); } &&
30754          { ac_try='test -z "$ac_c_werror_flag"
30755                          || test ! -s conftest.err'
30756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30757   (eval $ac_try) 2>&5
30758   ac_status=$?
30759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760   (exit $ac_status); }; } &&
30761          { ac_try='test -s conftest$ac_exeext'
30762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30763   (eval $ac_try) 2>&5
30764   ac_status=$?
30765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766   (exit $ac_status); }; }; then
30767   ol_cv_db_db_43=yes
30768 else
30769   echo "$as_me: failed program was:" >&5
30770 sed 's/^/| /' conftest.$ac_ext >&5
30771
30772 ol_cv_db_db_43=no
30773 fi
30774 rm -f conftest.err conftest.$ac_objext \
30775       conftest$ac_exeext conftest.$ac_ext
30776
30777         LIBS="$ol_LIBS"
30778
30779 fi
30780 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30781 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30782
30783         if test $ol_cv_db_db_43 = yes ; then
30784                 ol_cv_lib_db=-ldb-43
30785         fi
30786 fi
30787
30788 if test $ol_cv_lib_db = no ; then
30789         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30790 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30791 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30792   echo $ECHO_N "(cached) $ECHO_C" >&6
30793 else
30794
30795         ol_DB_LIB=-ldb-4.3
30796         ol_LIBS=$LIBS
30797         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30798
30799         cat >conftest.$ac_ext <<_ACEOF
30800 /* confdefs.h.  */
30801 _ACEOF
30802 cat confdefs.h >>conftest.$ac_ext
30803 cat >>conftest.$ac_ext <<_ACEOF
30804 /* end confdefs.h.  */
30805
30806 #ifdef HAVE_DB_185_H
30807 # include <db_185.h>
30808 #else
30809 # include <db.h>
30810 #endif
30811
30812 #ifndef DB_VERSION_MAJOR
30813 # define DB_VERSION_MAJOR 1
30814 #endif
30815
30816 #ifndef NULL
30817 #define NULL ((void*)0)
30818 #endif
30819
30820 int
30821 main ()
30822 {
30823
30824 #if DB_VERSION_MAJOR > 1
30825         {
30826                 char *version;
30827                 int major, minor, patch;
30828
30829                 version = db_version( &major, &minor, &patch );
30830
30831                 if( major != DB_VERSION_MAJOR ||
30832                         minor < DB_VERSION_MINOR )
30833                 {
30834                         printf("Berkeley DB version mismatch\n"
30835                                 "\theader: %s\n\tlibrary: %s\n",
30836                                 DB_VERSION_STRING, version);
30837                         return 1;
30838                 }
30839         }
30840 #endif
30841
30842 #if DB_VERSION_MAJOR > 2
30843         db_env_create( NULL, 0 );
30844 #elif DB_VERSION_MAJOR > 1
30845         db_appexit( NULL );
30846 #else
30847         (void) dbopen( NULL, 0, 0, 0, NULL);
30848 #endif
30849
30850   ;
30851   return 0;
30852 }
30853 _ACEOF
30854 rm -f conftest.$ac_objext conftest$ac_exeext
30855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30856   (eval $ac_link) 2>conftest.er1
30857   ac_status=$?
30858   grep -v '^ *+' conftest.er1 >conftest.err
30859   rm -f conftest.er1
30860   cat conftest.err >&5
30861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862   (exit $ac_status); } &&
30863          { ac_try='test -z "$ac_c_werror_flag"
30864                          || test ! -s conftest.err'
30865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866   (eval $ac_try) 2>&5
30867   ac_status=$?
30868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869   (exit $ac_status); }; } &&
30870          { ac_try='test -s conftest$ac_exeext'
30871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30872   (eval $ac_try) 2>&5
30873   ac_status=$?
30874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875   (exit $ac_status); }; }; then
30876   ol_cv_db_db_4_dot_3=yes
30877 else
30878   echo "$as_me: failed program was:" >&5
30879 sed 's/^/| /' conftest.$ac_ext >&5
30880
30881 ol_cv_db_db_4_dot_3=no
30882 fi
30883 rm -f conftest.err conftest.$ac_objext \
30884       conftest$ac_exeext conftest.$ac_ext
30885
30886         LIBS="$ol_LIBS"
30887
30888 fi
30889 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30890 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30891
30892         if test $ol_cv_db_db_4_dot_3 = yes ; then
30893                 ol_cv_lib_db=-ldb-4.3
30894         fi
30895 fi
30896
30897 if test $ol_cv_lib_db = no ; then
30898         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30899 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30900 if test "${ol_cv_db_db_4_3+set}" = set; then
30901   echo $ECHO_N "(cached) $ECHO_C" >&6
30902 else
30903
30904         ol_DB_LIB=-ldb-4-3
30905         ol_LIBS=$LIBS
30906         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30907
30908         cat >conftest.$ac_ext <<_ACEOF
30909 /* confdefs.h.  */
30910 _ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h.  */
30914
30915 #ifdef HAVE_DB_185_H
30916 # include <db_185.h>
30917 #else
30918 # include <db.h>
30919 #endif
30920
30921 #ifndef DB_VERSION_MAJOR
30922 # define DB_VERSION_MAJOR 1
30923 #endif
30924
30925 #ifndef NULL
30926 #define NULL ((void*)0)
30927 #endif
30928
30929 int
30930 main ()
30931 {
30932
30933 #if DB_VERSION_MAJOR > 1
30934         {
30935                 char *version;
30936                 int major, minor, patch;
30937
30938                 version = db_version( &major, &minor, &patch );
30939
30940                 if( major != DB_VERSION_MAJOR ||
30941                         minor < DB_VERSION_MINOR )
30942                 {
30943                         printf("Berkeley DB version mismatch\n"
30944                                 "\theader: %s\n\tlibrary: %s\n",
30945                                 DB_VERSION_STRING, version);
30946                         return 1;
30947                 }
30948         }
30949 #endif
30950
30951 #if DB_VERSION_MAJOR > 2
30952         db_env_create( NULL, 0 );
30953 #elif DB_VERSION_MAJOR > 1
30954         db_appexit( NULL );
30955 #else
30956         (void) dbopen( NULL, 0, 0, 0, NULL);
30957 #endif
30958
30959   ;
30960   return 0;
30961 }
30962 _ACEOF
30963 rm -f conftest.$ac_objext conftest$ac_exeext
30964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30965   (eval $ac_link) 2>conftest.er1
30966   ac_status=$?
30967   grep -v '^ *+' conftest.er1 >conftest.err
30968   rm -f conftest.er1
30969   cat conftest.err >&5
30970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971   (exit $ac_status); } &&
30972          { ac_try='test -z "$ac_c_werror_flag"
30973                          || test ! -s conftest.err'
30974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975   (eval $ac_try) 2>&5
30976   ac_status=$?
30977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978   (exit $ac_status); }; } &&
30979          { ac_try='test -s conftest$ac_exeext'
30980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981   (eval $ac_try) 2>&5
30982   ac_status=$?
30983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984   (exit $ac_status); }; }; then
30985   ol_cv_db_db_4_3=yes
30986 else
30987   echo "$as_me: failed program was:" >&5
30988 sed 's/^/| /' conftest.$ac_ext >&5
30989
30990 ol_cv_db_db_4_3=no
30991 fi
30992 rm -f conftest.err conftest.$ac_objext \
30993       conftest$ac_exeext conftest.$ac_ext
30994
30995         LIBS="$ol_LIBS"
30996
30997 fi
30998 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30999 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
31000
31001         if test $ol_cv_db_db_4_3 = yes ; then
31002                 ol_cv_lib_db=-ldb-4-3
31003         fi
31004 fi
31005
31006 if test $ol_cv_lib_db = no ; then
31007         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
31008 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
31009 if test "${ol_cv_db_db42+set}" = set; then
31010   echo $ECHO_N "(cached) $ECHO_C" >&6
31011 else
31012
31013         ol_DB_LIB=-ldb42
31014         ol_LIBS=$LIBS
31015         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31016
31017         cat >conftest.$ac_ext <<_ACEOF
31018 /* confdefs.h.  */
31019 _ACEOF
31020 cat confdefs.h >>conftest.$ac_ext
31021 cat >>conftest.$ac_ext <<_ACEOF
31022 /* end confdefs.h.  */
31023
31024 #ifdef HAVE_DB_185_H
31025 # include <db_185.h>
31026 #else
31027 # include <db.h>
31028 #endif
31029
31030 #ifndef DB_VERSION_MAJOR
31031 # define DB_VERSION_MAJOR 1
31032 #endif
31033
31034 #ifndef NULL
31035 #define NULL ((void*)0)
31036 #endif
31037
31038 int
31039 main ()
31040 {
31041
31042 #if DB_VERSION_MAJOR > 1
31043         {
31044                 char *version;
31045                 int major, minor, patch;
31046
31047                 version = db_version( &major, &minor, &patch );
31048
31049                 if( major != DB_VERSION_MAJOR ||
31050                         minor < DB_VERSION_MINOR )
31051                 {
31052                         printf("Berkeley DB version mismatch\n"
31053                                 "\theader: %s\n\tlibrary: %s\n",
31054                                 DB_VERSION_STRING, version);
31055                         return 1;
31056                 }
31057         }
31058 #endif
31059
31060 #if DB_VERSION_MAJOR > 2
31061         db_env_create( NULL, 0 );
31062 #elif DB_VERSION_MAJOR > 1
31063         db_appexit( NULL );
31064 #else
31065         (void) dbopen( NULL, 0, 0, 0, NULL);
31066 #endif
31067
31068   ;
31069   return 0;
31070 }
31071 _ACEOF
31072 rm -f conftest.$ac_objext conftest$ac_exeext
31073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31074   (eval $ac_link) 2>conftest.er1
31075   ac_status=$?
31076   grep -v '^ *+' conftest.er1 >conftest.err
31077   rm -f conftest.er1
31078   cat conftest.err >&5
31079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080   (exit $ac_status); } &&
31081          { ac_try='test -z "$ac_c_werror_flag"
31082                          || test ! -s conftest.err'
31083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31084   (eval $ac_try) 2>&5
31085   ac_status=$?
31086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087   (exit $ac_status); }; } &&
31088          { ac_try='test -s conftest$ac_exeext'
31089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31090   (eval $ac_try) 2>&5
31091   ac_status=$?
31092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093   (exit $ac_status); }; }; then
31094   ol_cv_db_db42=yes
31095 else
31096   echo "$as_me: failed program was:" >&5
31097 sed 's/^/| /' conftest.$ac_ext >&5
31098
31099 ol_cv_db_db42=no
31100 fi
31101 rm -f conftest.err conftest.$ac_objext \
31102       conftest$ac_exeext conftest.$ac_ext
31103
31104         LIBS="$ol_LIBS"
31105
31106 fi
31107 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31108 echo "${ECHO_T}$ol_cv_db_db42" >&6
31109
31110         if test $ol_cv_db_db42 = yes ; then
31111                 ol_cv_lib_db=-ldb42
31112         fi
31113 fi
31114
31115 if test $ol_cv_lib_db = no ; then
31116         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31117 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31118 if test "${ol_cv_db_db_42+set}" = set; then
31119   echo $ECHO_N "(cached) $ECHO_C" >&6
31120 else
31121
31122         ol_DB_LIB=-ldb-42
31123         ol_LIBS=$LIBS
31124         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31125
31126         cat >conftest.$ac_ext <<_ACEOF
31127 /* confdefs.h.  */
31128 _ACEOF
31129 cat confdefs.h >>conftest.$ac_ext
31130 cat >>conftest.$ac_ext <<_ACEOF
31131 /* end confdefs.h.  */
31132
31133 #ifdef HAVE_DB_185_H
31134 # include <db_185.h>
31135 #else
31136 # include <db.h>
31137 #endif
31138
31139 #ifndef DB_VERSION_MAJOR
31140 # define DB_VERSION_MAJOR 1
31141 #endif
31142
31143 #ifndef NULL
31144 #define NULL ((void*)0)
31145 #endif
31146
31147 int
31148 main ()
31149 {
31150
31151 #if DB_VERSION_MAJOR > 1
31152         {
31153                 char *version;
31154                 int major, minor, patch;
31155
31156                 version = db_version( &major, &minor, &patch );
31157
31158                 if( major != DB_VERSION_MAJOR ||
31159                         minor < DB_VERSION_MINOR )
31160                 {
31161                         printf("Berkeley DB version mismatch\n"
31162                                 "\theader: %s\n\tlibrary: %s\n",
31163                                 DB_VERSION_STRING, version);
31164                         return 1;
31165                 }
31166         }
31167 #endif
31168
31169 #if DB_VERSION_MAJOR > 2
31170         db_env_create( NULL, 0 );
31171 #elif DB_VERSION_MAJOR > 1
31172         db_appexit( NULL );
31173 #else
31174         (void) dbopen( NULL, 0, 0, 0, NULL);
31175 #endif
31176
31177   ;
31178   return 0;
31179 }
31180 _ACEOF
31181 rm -f conftest.$ac_objext conftest$ac_exeext
31182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31183   (eval $ac_link) 2>conftest.er1
31184   ac_status=$?
31185   grep -v '^ *+' conftest.er1 >conftest.err
31186   rm -f conftest.er1
31187   cat conftest.err >&5
31188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31189   (exit $ac_status); } &&
31190          { ac_try='test -z "$ac_c_werror_flag"
31191                          || test ! -s conftest.err'
31192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31193   (eval $ac_try) 2>&5
31194   ac_status=$?
31195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196   (exit $ac_status); }; } &&
31197          { ac_try='test -s conftest$ac_exeext'
31198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199   (eval $ac_try) 2>&5
31200   ac_status=$?
31201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202   (exit $ac_status); }; }; then
31203   ol_cv_db_db_42=yes
31204 else
31205   echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31207
31208 ol_cv_db_db_42=no
31209 fi
31210 rm -f conftest.err conftest.$ac_objext \
31211       conftest$ac_exeext conftest.$ac_ext
31212
31213         LIBS="$ol_LIBS"
31214
31215 fi
31216 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31217 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31218
31219         if test $ol_cv_db_db_42 = yes ; then
31220                 ol_cv_lib_db=-ldb-42
31221         fi
31222 fi
31223
31224 if test $ol_cv_lib_db = no ; then
31225         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31226 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31227 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31228   echo $ECHO_N "(cached) $ECHO_C" >&6
31229 else
31230
31231         ol_DB_LIB=-ldb-4.2
31232         ol_LIBS=$LIBS
31233         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31234
31235         cat >conftest.$ac_ext <<_ACEOF
31236 /* confdefs.h.  */
31237 _ACEOF
31238 cat confdefs.h >>conftest.$ac_ext
31239 cat >>conftest.$ac_ext <<_ACEOF
31240 /* end confdefs.h.  */
31241
31242 #ifdef HAVE_DB_185_H
31243 # include <db_185.h>
31244 #else
31245 # include <db.h>
31246 #endif
31247
31248 #ifndef DB_VERSION_MAJOR
31249 # define DB_VERSION_MAJOR 1
31250 #endif
31251
31252 #ifndef NULL
31253 #define NULL ((void*)0)
31254 #endif
31255
31256 int
31257 main ()
31258 {
31259
31260 #if DB_VERSION_MAJOR > 1
31261         {
31262                 char *version;
31263                 int major, minor, patch;
31264
31265                 version = db_version( &major, &minor, &patch );
31266
31267                 if( major != DB_VERSION_MAJOR ||
31268                         minor < DB_VERSION_MINOR )
31269                 {
31270                         printf("Berkeley DB version mismatch\n"
31271                                 "\theader: %s\n\tlibrary: %s\n",
31272                                 DB_VERSION_STRING, version);
31273                         return 1;
31274                 }
31275         }
31276 #endif
31277
31278 #if DB_VERSION_MAJOR > 2
31279         db_env_create( NULL, 0 );
31280 #elif DB_VERSION_MAJOR > 1
31281         db_appexit( NULL );
31282 #else
31283         (void) dbopen( NULL, 0, 0, 0, NULL);
31284 #endif
31285
31286   ;
31287   return 0;
31288 }
31289 _ACEOF
31290 rm -f conftest.$ac_objext conftest$ac_exeext
31291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31292   (eval $ac_link) 2>conftest.er1
31293   ac_status=$?
31294   grep -v '^ *+' conftest.er1 >conftest.err
31295   rm -f conftest.er1
31296   cat conftest.err >&5
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); } &&
31299          { ac_try='test -z "$ac_c_werror_flag"
31300                          || test ! -s conftest.err'
31301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31302   (eval $ac_try) 2>&5
31303   ac_status=$?
31304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305   (exit $ac_status); }; } &&
31306          { ac_try='test -s conftest$ac_exeext'
31307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308   (eval $ac_try) 2>&5
31309   ac_status=$?
31310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311   (exit $ac_status); }; }; then
31312   ol_cv_db_db_4_dot_2=yes
31313 else
31314   echo "$as_me: failed program was:" >&5
31315 sed 's/^/| /' conftest.$ac_ext >&5
31316
31317 ol_cv_db_db_4_dot_2=no
31318 fi
31319 rm -f conftest.err conftest.$ac_objext \
31320       conftest$ac_exeext conftest.$ac_ext
31321
31322         LIBS="$ol_LIBS"
31323
31324 fi
31325 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31326 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31327
31328         if test $ol_cv_db_db_4_dot_2 = yes ; then
31329                 ol_cv_lib_db=-ldb-4.2
31330         fi
31331 fi
31332
31333 if test $ol_cv_lib_db = no ; then
31334         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31335 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31336 if test "${ol_cv_db_db_4_2+set}" = set; then
31337   echo $ECHO_N "(cached) $ECHO_C" >&6
31338 else
31339
31340         ol_DB_LIB=-ldb-4-2
31341         ol_LIBS=$LIBS
31342         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31343
31344         cat >conftest.$ac_ext <<_ACEOF
31345 /* confdefs.h.  */
31346 _ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h.  */
31350
31351 #ifdef HAVE_DB_185_H
31352 # include <db_185.h>
31353 #else
31354 # include <db.h>
31355 #endif
31356
31357 #ifndef DB_VERSION_MAJOR
31358 # define DB_VERSION_MAJOR 1
31359 #endif
31360
31361 #ifndef NULL
31362 #define NULL ((void*)0)
31363 #endif
31364
31365 int
31366 main ()
31367 {
31368
31369 #if DB_VERSION_MAJOR > 1
31370         {
31371                 char *version;
31372                 int major, minor, patch;
31373
31374                 version = db_version( &major, &minor, &patch );
31375
31376                 if( major != DB_VERSION_MAJOR ||
31377                         minor < DB_VERSION_MINOR )
31378                 {
31379                         printf("Berkeley DB version mismatch\n"
31380                                 "\theader: %s\n\tlibrary: %s\n",
31381                                 DB_VERSION_STRING, version);
31382                         return 1;
31383                 }
31384         }
31385 #endif
31386
31387 #if DB_VERSION_MAJOR > 2
31388         db_env_create( NULL, 0 );
31389 #elif DB_VERSION_MAJOR > 1
31390         db_appexit( NULL );
31391 #else
31392         (void) dbopen( NULL, 0, 0, 0, NULL);
31393 #endif
31394
31395   ;
31396   return 0;
31397 }
31398 _ACEOF
31399 rm -f conftest.$ac_objext conftest$ac_exeext
31400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31401   (eval $ac_link) 2>conftest.er1
31402   ac_status=$?
31403   grep -v '^ *+' conftest.er1 >conftest.err
31404   rm -f conftest.er1
31405   cat conftest.err >&5
31406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31407   (exit $ac_status); } &&
31408          { ac_try='test -z "$ac_c_werror_flag"
31409                          || test ! -s conftest.err'
31410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31411   (eval $ac_try) 2>&5
31412   ac_status=$?
31413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414   (exit $ac_status); }; } &&
31415          { ac_try='test -s conftest$ac_exeext'
31416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31417   (eval $ac_try) 2>&5
31418   ac_status=$?
31419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420   (exit $ac_status); }; }; then
31421   ol_cv_db_db_4_2=yes
31422 else
31423   echo "$as_me: failed program was:" >&5
31424 sed 's/^/| /' conftest.$ac_ext >&5
31425
31426 ol_cv_db_db_4_2=no
31427 fi
31428 rm -f conftest.err conftest.$ac_objext \
31429       conftest$ac_exeext conftest.$ac_ext
31430
31431         LIBS="$ol_LIBS"
31432
31433 fi
31434 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31435 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31436
31437         if test $ol_cv_db_db_4_2 = yes ; then
31438                 ol_cv_lib_db=-ldb-4-2
31439         fi
31440 fi
31441
31442 if test $ol_cv_lib_db = no ; then
31443         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31444 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31445 if test "${ol_cv_db_db_4+set}" = set; then
31446   echo $ECHO_N "(cached) $ECHO_C" >&6
31447 else
31448
31449         ol_DB_LIB=-ldb-4
31450         ol_LIBS=$LIBS
31451         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31452
31453         cat >conftest.$ac_ext <<_ACEOF
31454 /* confdefs.h.  */
31455 _ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h.  */
31459
31460 #ifdef HAVE_DB_185_H
31461 # include <db_185.h>
31462 #else
31463 # include <db.h>
31464 #endif
31465
31466 #ifndef DB_VERSION_MAJOR
31467 # define DB_VERSION_MAJOR 1
31468 #endif
31469
31470 #ifndef NULL
31471 #define NULL ((void*)0)
31472 #endif
31473
31474 int
31475 main ()
31476 {
31477
31478 #if DB_VERSION_MAJOR > 1
31479         {
31480                 char *version;
31481                 int major, minor, patch;
31482
31483                 version = db_version( &major, &minor, &patch );
31484
31485                 if( major != DB_VERSION_MAJOR ||
31486                         minor < DB_VERSION_MINOR )
31487                 {
31488                         printf("Berkeley DB version mismatch\n"
31489                                 "\theader: %s\n\tlibrary: %s\n",
31490                                 DB_VERSION_STRING, version);
31491                         return 1;
31492                 }
31493         }
31494 #endif
31495
31496 #if DB_VERSION_MAJOR > 2
31497         db_env_create( NULL, 0 );
31498 #elif DB_VERSION_MAJOR > 1
31499         db_appexit( NULL );
31500 #else
31501         (void) dbopen( NULL, 0, 0, 0, NULL);
31502 #endif
31503
31504   ;
31505   return 0;
31506 }
31507 _ACEOF
31508 rm -f conftest.$ac_objext conftest$ac_exeext
31509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31510   (eval $ac_link) 2>conftest.er1
31511   ac_status=$?
31512   grep -v '^ *+' conftest.er1 >conftest.err
31513   rm -f conftest.er1
31514   cat conftest.err >&5
31515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516   (exit $ac_status); } &&
31517          { ac_try='test -z "$ac_c_werror_flag"
31518                          || test ! -s conftest.err'
31519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31520   (eval $ac_try) 2>&5
31521   ac_status=$?
31522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523   (exit $ac_status); }; } &&
31524          { ac_try='test -s conftest$ac_exeext'
31525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31526   (eval $ac_try) 2>&5
31527   ac_status=$?
31528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529   (exit $ac_status); }; }; then
31530   ol_cv_db_db_4=yes
31531 else
31532   echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31534
31535 ol_cv_db_db_4=no
31536 fi
31537 rm -f conftest.err conftest.$ac_objext \
31538       conftest$ac_exeext conftest.$ac_ext
31539
31540         LIBS="$ol_LIBS"
31541
31542 fi
31543 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31544 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31545
31546         if test $ol_cv_db_db_4 = yes ; then
31547                 ol_cv_lib_db=-ldb-4
31548         fi
31549 fi
31550
31551 if test $ol_cv_lib_db = no ; then
31552         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31553 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31554 if test "${ol_cv_db_db4+set}" = set; then
31555   echo $ECHO_N "(cached) $ECHO_C" >&6
31556 else
31557
31558         ol_DB_LIB=-ldb4
31559         ol_LIBS=$LIBS
31560         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31561
31562         cat >conftest.$ac_ext <<_ACEOF
31563 /* confdefs.h.  */
31564 _ACEOF
31565 cat confdefs.h >>conftest.$ac_ext
31566 cat >>conftest.$ac_ext <<_ACEOF
31567 /* end confdefs.h.  */
31568
31569 #ifdef HAVE_DB_185_H
31570 # include <db_185.h>
31571 #else
31572 # include <db.h>
31573 #endif
31574
31575 #ifndef DB_VERSION_MAJOR
31576 # define DB_VERSION_MAJOR 1
31577 #endif
31578
31579 #ifndef NULL
31580 #define NULL ((void*)0)
31581 #endif
31582
31583 int
31584 main ()
31585 {
31586
31587 #if DB_VERSION_MAJOR > 1
31588         {
31589                 char *version;
31590                 int major, minor, patch;
31591
31592                 version = db_version( &major, &minor, &patch );
31593
31594                 if( major != DB_VERSION_MAJOR ||
31595                         minor < DB_VERSION_MINOR )
31596                 {
31597                         printf("Berkeley DB version mismatch\n"
31598                                 "\theader: %s\n\tlibrary: %s\n",
31599                                 DB_VERSION_STRING, version);
31600                         return 1;
31601                 }
31602         }
31603 #endif
31604
31605 #if DB_VERSION_MAJOR > 2
31606         db_env_create( NULL, 0 );
31607 #elif DB_VERSION_MAJOR > 1
31608         db_appexit( NULL );
31609 #else
31610         (void) dbopen( NULL, 0, 0, 0, NULL);
31611 #endif
31612
31613   ;
31614   return 0;
31615 }
31616 _ACEOF
31617 rm -f conftest.$ac_objext conftest$ac_exeext
31618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31619   (eval $ac_link) 2>conftest.er1
31620   ac_status=$?
31621   grep -v '^ *+' conftest.er1 >conftest.err
31622   rm -f conftest.er1
31623   cat conftest.err >&5
31624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625   (exit $ac_status); } &&
31626          { ac_try='test -z "$ac_c_werror_flag"
31627                          || test ! -s conftest.err'
31628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629   (eval $ac_try) 2>&5
31630   ac_status=$?
31631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632   (exit $ac_status); }; } &&
31633          { ac_try='test -s conftest$ac_exeext'
31634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635   (eval $ac_try) 2>&5
31636   ac_status=$?
31637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638   (exit $ac_status); }; }; then
31639   ol_cv_db_db4=yes
31640 else
31641   echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31643
31644 ol_cv_db_db4=no
31645 fi
31646 rm -f conftest.err conftest.$ac_objext \
31647       conftest$ac_exeext conftest.$ac_ext
31648
31649         LIBS="$ol_LIBS"
31650
31651 fi
31652 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31653 echo "${ECHO_T}$ol_cv_db_db4" >&6
31654
31655         if test $ol_cv_db_db4 = yes ; then
31656                 ol_cv_lib_db=-ldb4
31657         fi
31658 fi
31659
31660 if test $ol_cv_lib_db = no ; then
31661         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31662 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31663 if test "${ol_cv_db_db+set}" = set; then
31664   echo $ECHO_N "(cached) $ECHO_C" >&6
31665 else
31666
31667         ol_DB_LIB=-ldb
31668         ol_LIBS=$LIBS
31669         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31670
31671         cat >conftest.$ac_ext <<_ACEOF
31672 /* confdefs.h.  */
31673 _ACEOF
31674 cat confdefs.h >>conftest.$ac_ext
31675 cat >>conftest.$ac_ext <<_ACEOF
31676 /* end confdefs.h.  */
31677
31678 #ifdef HAVE_DB_185_H
31679 # include <db_185.h>
31680 #else
31681 # include <db.h>
31682 #endif
31683
31684 #ifndef DB_VERSION_MAJOR
31685 # define DB_VERSION_MAJOR 1
31686 #endif
31687
31688 #ifndef NULL
31689 #define NULL ((void*)0)
31690 #endif
31691
31692 int
31693 main ()
31694 {
31695
31696 #if DB_VERSION_MAJOR > 1
31697         {
31698                 char *version;
31699                 int major, minor, patch;
31700
31701                 version = db_version( &major, &minor, &patch );
31702
31703                 if( major != DB_VERSION_MAJOR ||
31704                         minor < DB_VERSION_MINOR )
31705                 {
31706                         printf("Berkeley DB version mismatch\n"
31707                                 "\theader: %s\n\tlibrary: %s\n",
31708                                 DB_VERSION_STRING, version);
31709                         return 1;
31710                 }
31711         }
31712 #endif
31713
31714 #if DB_VERSION_MAJOR > 2
31715         db_env_create( NULL, 0 );
31716 #elif DB_VERSION_MAJOR > 1
31717         db_appexit( NULL );
31718 #else
31719         (void) dbopen( NULL, 0, 0, 0, NULL);
31720 #endif
31721
31722   ;
31723   return 0;
31724 }
31725 _ACEOF
31726 rm -f conftest.$ac_objext conftest$ac_exeext
31727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31728   (eval $ac_link) 2>conftest.er1
31729   ac_status=$?
31730   grep -v '^ *+' conftest.er1 >conftest.err
31731   rm -f conftest.er1
31732   cat conftest.err >&5
31733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734   (exit $ac_status); } &&
31735          { ac_try='test -z "$ac_c_werror_flag"
31736                          || test ! -s conftest.err'
31737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738   (eval $ac_try) 2>&5
31739   ac_status=$?
31740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741   (exit $ac_status); }; } &&
31742          { ac_try='test -s conftest$ac_exeext'
31743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31744   (eval $ac_try) 2>&5
31745   ac_status=$?
31746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747   (exit $ac_status); }; }; then
31748   ol_cv_db_db=yes
31749 else
31750   echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31752
31753 ol_cv_db_db=no
31754 fi
31755 rm -f conftest.err conftest.$ac_objext \
31756       conftest$ac_exeext conftest.$ac_ext
31757
31758         LIBS="$ol_LIBS"
31759
31760 fi
31761 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31762 echo "${ECHO_T}$ol_cv_db_db" >&6
31763
31764         if test $ol_cv_db_db = yes ; then
31765                 ol_cv_lib_db=-ldb
31766         fi
31767 fi
31768
31769 if test $ol_cv_lib_db = no ; then
31770         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31771 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31772 if test "${ol_cv_db_db41+set}" = set; then
31773   echo $ECHO_N "(cached) $ECHO_C" >&6
31774 else
31775
31776         ol_DB_LIB=-ldb41
31777         ol_LIBS=$LIBS
31778         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31779
31780         cat >conftest.$ac_ext <<_ACEOF
31781 /* confdefs.h.  */
31782 _ACEOF
31783 cat confdefs.h >>conftest.$ac_ext
31784 cat >>conftest.$ac_ext <<_ACEOF
31785 /* end confdefs.h.  */
31786
31787 #ifdef HAVE_DB_185_H
31788 # include <db_185.h>
31789 #else
31790 # include <db.h>
31791 #endif
31792
31793 #ifndef DB_VERSION_MAJOR
31794 # define DB_VERSION_MAJOR 1
31795 #endif
31796
31797 #ifndef NULL
31798 #define NULL ((void*)0)
31799 #endif
31800
31801 int
31802 main ()
31803 {
31804
31805 #if DB_VERSION_MAJOR > 1
31806         {
31807                 char *version;
31808                 int major, minor, patch;
31809
31810                 version = db_version( &major, &minor, &patch );
31811
31812                 if( major != DB_VERSION_MAJOR ||
31813                         minor < DB_VERSION_MINOR )
31814                 {
31815                         printf("Berkeley DB version mismatch\n"
31816                                 "\theader: %s\n\tlibrary: %s\n",
31817                                 DB_VERSION_STRING, version);
31818                         return 1;
31819                 }
31820         }
31821 #endif
31822
31823 #if DB_VERSION_MAJOR > 2
31824         db_env_create( NULL, 0 );
31825 #elif DB_VERSION_MAJOR > 1
31826         db_appexit( NULL );
31827 #else
31828         (void) dbopen( NULL, 0, 0, 0, NULL);
31829 #endif
31830
31831   ;
31832   return 0;
31833 }
31834 _ACEOF
31835 rm -f conftest.$ac_objext conftest$ac_exeext
31836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31837   (eval $ac_link) 2>conftest.er1
31838   ac_status=$?
31839   grep -v '^ *+' conftest.er1 >conftest.err
31840   rm -f conftest.er1
31841   cat conftest.err >&5
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); } &&
31844          { ac_try='test -z "$ac_c_werror_flag"
31845                          || test ! -s conftest.err'
31846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847   (eval $ac_try) 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); }; } &&
31851          { ac_try='test -s conftest$ac_exeext'
31852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31853   (eval $ac_try) 2>&5
31854   ac_status=$?
31855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856   (exit $ac_status); }; }; then
31857   ol_cv_db_db41=yes
31858 else
31859   echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31861
31862 ol_cv_db_db41=no
31863 fi
31864 rm -f conftest.err conftest.$ac_objext \
31865       conftest$ac_exeext conftest.$ac_ext
31866
31867         LIBS="$ol_LIBS"
31868
31869 fi
31870 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31871 echo "${ECHO_T}$ol_cv_db_db41" >&6
31872
31873         if test $ol_cv_db_db41 = yes ; then
31874                 ol_cv_lib_db=-ldb41
31875         fi
31876 fi
31877
31878 if test $ol_cv_lib_db = no ; then
31879         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31880 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31881 if test "${ol_cv_db_db_41+set}" = set; then
31882   echo $ECHO_N "(cached) $ECHO_C" >&6
31883 else
31884
31885         ol_DB_LIB=-ldb-41
31886         ol_LIBS=$LIBS
31887         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31888
31889         cat >conftest.$ac_ext <<_ACEOF
31890 /* confdefs.h.  */
31891 _ACEOF
31892 cat confdefs.h >>conftest.$ac_ext
31893 cat >>conftest.$ac_ext <<_ACEOF
31894 /* end confdefs.h.  */
31895
31896 #ifdef HAVE_DB_185_H
31897 # include <db_185.h>
31898 #else
31899 # include <db.h>
31900 #endif
31901
31902 #ifndef DB_VERSION_MAJOR
31903 # define DB_VERSION_MAJOR 1
31904 #endif
31905
31906 #ifndef NULL
31907 #define NULL ((void*)0)
31908 #endif
31909
31910 int
31911 main ()
31912 {
31913
31914 #if DB_VERSION_MAJOR > 1
31915         {
31916                 char *version;
31917                 int major, minor, patch;
31918
31919                 version = db_version( &major, &minor, &patch );
31920
31921                 if( major != DB_VERSION_MAJOR ||
31922                         minor < DB_VERSION_MINOR )
31923                 {
31924                         printf("Berkeley DB version mismatch\n"
31925                                 "\theader: %s\n\tlibrary: %s\n",
31926                                 DB_VERSION_STRING, version);
31927                         return 1;
31928                 }
31929         }
31930 #endif
31931
31932 #if DB_VERSION_MAJOR > 2
31933         db_env_create( NULL, 0 );
31934 #elif DB_VERSION_MAJOR > 1
31935         db_appexit( NULL );
31936 #else
31937         (void) dbopen( NULL, 0, 0, 0, NULL);
31938 #endif
31939
31940   ;
31941   return 0;
31942 }
31943 _ACEOF
31944 rm -f conftest.$ac_objext conftest$ac_exeext
31945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31946   (eval $ac_link) 2>conftest.er1
31947   ac_status=$?
31948   grep -v '^ *+' conftest.er1 >conftest.err
31949   rm -f conftest.er1
31950   cat conftest.err >&5
31951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952   (exit $ac_status); } &&
31953          { ac_try='test -z "$ac_c_werror_flag"
31954                          || test ! -s conftest.err'
31955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956   (eval $ac_try) 2>&5
31957   ac_status=$?
31958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959   (exit $ac_status); }; } &&
31960          { ac_try='test -s conftest$ac_exeext'
31961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31962   (eval $ac_try) 2>&5
31963   ac_status=$?
31964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965   (exit $ac_status); }; }; then
31966   ol_cv_db_db_41=yes
31967 else
31968   echo "$as_me: failed program was:" >&5
31969 sed 's/^/| /' conftest.$ac_ext >&5
31970
31971 ol_cv_db_db_41=no
31972 fi
31973 rm -f conftest.err conftest.$ac_objext \
31974       conftest$ac_exeext conftest.$ac_ext
31975
31976         LIBS="$ol_LIBS"
31977
31978 fi
31979 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31980 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31981
31982         if test $ol_cv_db_db_41 = yes ; then
31983                 ol_cv_lib_db=-ldb-41
31984         fi
31985 fi
31986
31987 if test $ol_cv_lib_db = no ; then
31988         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31989 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31990 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31991   echo $ECHO_N "(cached) $ECHO_C" >&6
31992 else
31993
31994         ol_DB_LIB=-ldb-4.1
31995         ol_LIBS=$LIBS
31996         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31997
31998         cat >conftest.$ac_ext <<_ACEOF
31999 /* confdefs.h.  */
32000 _ACEOF
32001 cat confdefs.h >>conftest.$ac_ext
32002 cat >>conftest.$ac_ext <<_ACEOF
32003 /* end confdefs.h.  */
32004
32005 #ifdef HAVE_DB_185_H
32006 # include <db_185.h>
32007 #else
32008 # include <db.h>
32009 #endif
32010
32011 #ifndef DB_VERSION_MAJOR
32012 # define DB_VERSION_MAJOR 1
32013 #endif
32014
32015 #ifndef NULL
32016 #define NULL ((void*)0)
32017 #endif
32018
32019 int
32020 main ()
32021 {
32022
32023 #if DB_VERSION_MAJOR > 1
32024         {
32025                 char *version;
32026                 int major, minor, patch;
32027
32028                 version = db_version( &major, &minor, &patch );
32029
32030                 if( major != DB_VERSION_MAJOR ||
32031                         minor < DB_VERSION_MINOR )
32032                 {
32033                         printf("Berkeley DB version mismatch\n"
32034                                 "\theader: %s\n\tlibrary: %s\n",
32035                                 DB_VERSION_STRING, version);
32036                         return 1;
32037                 }
32038         }
32039 #endif
32040
32041 #if DB_VERSION_MAJOR > 2
32042         db_env_create( NULL, 0 );
32043 #elif DB_VERSION_MAJOR > 1
32044         db_appexit( NULL );
32045 #else
32046         (void) dbopen( NULL, 0, 0, 0, NULL);
32047 #endif
32048
32049   ;
32050   return 0;
32051 }
32052 _ACEOF
32053 rm -f conftest.$ac_objext conftest$ac_exeext
32054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32055   (eval $ac_link) 2>conftest.er1
32056   ac_status=$?
32057   grep -v '^ *+' conftest.er1 >conftest.err
32058   rm -f conftest.er1
32059   cat conftest.err >&5
32060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061   (exit $ac_status); } &&
32062          { ac_try='test -z "$ac_c_werror_flag"
32063                          || test ! -s conftest.err'
32064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065   (eval $ac_try) 2>&5
32066   ac_status=$?
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); }; } &&
32069          { ac_try='test -s conftest$ac_exeext'
32070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32071   (eval $ac_try) 2>&5
32072   ac_status=$?
32073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074   (exit $ac_status); }; }; then
32075   ol_cv_db_db_4_dot_1=yes
32076 else
32077   echo "$as_me: failed program was:" >&5
32078 sed 's/^/| /' conftest.$ac_ext >&5
32079
32080 ol_cv_db_db_4_dot_1=no
32081 fi
32082 rm -f conftest.err conftest.$ac_objext \
32083       conftest$ac_exeext conftest.$ac_ext
32084
32085         LIBS="$ol_LIBS"
32086
32087 fi
32088 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32089 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32090
32091         if test $ol_cv_db_db_4_dot_1 = yes ; then
32092                 ol_cv_lib_db=-ldb-4.1
32093         fi
32094 fi
32095
32096 if test $ol_cv_lib_db = no ; then
32097         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32098 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32099 if test "${ol_cv_db_db_4_1+set}" = set; then
32100   echo $ECHO_N "(cached) $ECHO_C" >&6
32101 else
32102
32103         ol_DB_LIB=-ldb-4-1
32104         ol_LIBS=$LIBS
32105         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32106
32107         cat >conftest.$ac_ext <<_ACEOF
32108 /* confdefs.h.  */
32109 _ACEOF
32110 cat confdefs.h >>conftest.$ac_ext
32111 cat >>conftest.$ac_ext <<_ACEOF
32112 /* end confdefs.h.  */
32113
32114 #ifdef HAVE_DB_185_H
32115 # include <db_185.h>
32116 #else
32117 # include <db.h>
32118 #endif
32119
32120 #ifndef DB_VERSION_MAJOR
32121 # define DB_VERSION_MAJOR 1
32122 #endif
32123
32124 #ifndef NULL
32125 #define NULL ((void*)0)
32126 #endif
32127
32128 int
32129 main ()
32130 {
32131
32132 #if DB_VERSION_MAJOR > 1
32133         {
32134                 char *version;
32135                 int major, minor, patch;
32136
32137                 version = db_version( &major, &minor, &patch );
32138
32139                 if( major != DB_VERSION_MAJOR ||
32140                         minor < DB_VERSION_MINOR )
32141                 {
32142                         printf("Berkeley DB version mismatch\n"
32143                                 "\theader: %s\n\tlibrary: %s\n",
32144                                 DB_VERSION_STRING, version);
32145                         return 1;
32146                 }
32147         }
32148 #endif
32149
32150 #if DB_VERSION_MAJOR > 2
32151         db_env_create( NULL, 0 );
32152 #elif DB_VERSION_MAJOR > 1
32153         db_appexit( NULL );
32154 #else
32155         (void) dbopen( NULL, 0, 0, 0, NULL);
32156 #endif
32157
32158   ;
32159   return 0;
32160 }
32161 _ACEOF
32162 rm -f conftest.$ac_objext conftest$ac_exeext
32163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32164   (eval $ac_link) 2>conftest.er1
32165   ac_status=$?
32166   grep -v '^ *+' conftest.er1 >conftest.err
32167   rm -f conftest.er1
32168   cat conftest.err >&5
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); } &&
32171          { ac_try='test -z "$ac_c_werror_flag"
32172                          || test ! -s conftest.err'
32173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174   (eval $ac_try) 2>&5
32175   ac_status=$?
32176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177   (exit $ac_status); }; } &&
32178          { ac_try='test -s conftest$ac_exeext'
32179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180   (eval $ac_try) 2>&5
32181   ac_status=$?
32182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183   (exit $ac_status); }; }; then
32184   ol_cv_db_db_4_1=yes
32185 else
32186   echo "$as_me: failed program was:" >&5
32187 sed 's/^/| /' conftest.$ac_ext >&5
32188
32189 ol_cv_db_db_4_1=no
32190 fi
32191 rm -f conftest.err conftest.$ac_objext \
32192       conftest$ac_exeext conftest.$ac_ext
32193
32194         LIBS="$ol_LIBS"
32195
32196 fi
32197 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32198 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32199
32200         if test $ol_cv_db_db_4_1 = yes ; then
32201                 ol_cv_lib_db=-ldb-4-1
32202         fi
32203 fi
32204
32205 if test $ol_cv_lib_db = no ; then
32206         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32207 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32208 if test "${ol_cv_db_db3+set}" = set; then
32209   echo $ECHO_N "(cached) $ECHO_C" >&6
32210 else
32211
32212         ol_DB_LIB=-ldb3
32213         ol_LIBS=$LIBS
32214         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32215
32216         cat >conftest.$ac_ext <<_ACEOF
32217 /* confdefs.h.  */
32218 _ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h.  */
32222
32223 #ifdef HAVE_DB_185_H
32224 # include <db_185.h>
32225 #else
32226 # include <db.h>
32227 #endif
32228
32229 #ifndef DB_VERSION_MAJOR
32230 # define DB_VERSION_MAJOR 1
32231 #endif
32232
32233 #ifndef NULL
32234 #define NULL ((void*)0)
32235 #endif
32236
32237 int
32238 main ()
32239 {
32240
32241 #if DB_VERSION_MAJOR > 1
32242         {
32243                 char *version;
32244                 int major, minor, patch;
32245
32246                 version = db_version( &major, &minor, &patch );
32247
32248                 if( major != DB_VERSION_MAJOR ||
32249                         minor < DB_VERSION_MINOR )
32250                 {
32251                         printf("Berkeley DB version mismatch\n"
32252                                 "\theader: %s\n\tlibrary: %s\n",
32253                                 DB_VERSION_STRING, version);
32254                         return 1;
32255                 }
32256         }
32257 #endif
32258
32259 #if DB_VERSION_MAJOR > 2
32260         db_env_create( NULL, 0 );
32261 #elif DB_VERSION_MAJOR > 1
32262         db_appexit( NULL );
32263 #else
32264         (void) dbopen( NULL, 0, 0, 0, NULL);
32265 #endif
32266
32267   ;
32268   return 0;
32269 }
32270 _ACEOF
32271 rm -f conftest.$ac_objext conftest$ac_exeext
32272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32273   (eval $ac_link) 2>conftest.er1
32274   ac_status=$?
32275   grep -v '^ *+' conftest.er1 >conftest.err
32276   rm -f conftest.er1
32277   cat conftest.err >&5
32278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279   (exit $ac_status); } &&
32280          { ac_try='test -z "$ac_c_werror_flag"
32281                          || test ! -s conftest.err'
32282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283   (eval $ac_try) 2>&5
32284   ac_status=$?
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); }; } &&
32287          { ac_try='test -s conftest$ac_exeext'
32288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32289   (eval $ac_try) 2>&5
32290   ac_status=$?
32291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292   (exit $ac_status); }; }; then
32293   ol_cv_db_db3=yes
32294 else
32295   echo "$as_me: failed program was:" >&5
32296 sed 's/^/| /' conftest.$ac_ext >&5
32297
32298 ol_cv_db_db3=no
32299 fi
32300 rm -f conftest.err conftest.$ac_objext \
32301       conftest$ac_exeext conftest.$ac_ext
32302
32303         LIBS="$ol_LIBS"
32304
32305 fi
32306 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32307 echo "${ECHO_T}$ol_cv_db_db3" >&6
32308
32309         if test $ol_cv_db_db3 = yes ; then
32310                 ol_cv_lib_db=-ldb3
32311         fi
32312 fi
32313
32314 if test $ol_cv_lib_db = no ; then
32315         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32316 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32317 if test "${ol_cv_db_db_3+set}" = set; then
32318   echo $ECHO_N "(cached) $ECHO_C" >&6
32319 else
32320
32321         ol_DB_LIB=-ldb-3
32322         ol_LIBS=$LIBS
32323         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32324
32325         cat >conftest.$ac_ext <<_ACEOF
32326 /* confdefs.h.  */
32327 _ACEOF
32328 cat confdefs.h >>conftest.$ac_ext
32329 cat >>conftest.$ac_ext <<_ACEOF
32330 /* end confdefs.h.  */
32331
32332 #ifdef HAVE_DB_185_H
32333 # include <db_185.h>
32334 #else
32335 # include <db.h>
32336 #endif
32337
32338 #ifndef DB_VERSION_MAJOR
32339 # define DB_VERSION_MAJOR 1
32340 #endif
32341
32342 #ifndef NULL
32343 #define NULL ((void*)0)
32344 #endif
32345
32346 int
32347 main ()
32348 {
32349
32350 #if DB_VERSION_MAJOR > 1
32351         {
32352                 char *version;
32353                 int major, minor, patch;
32354
32355                 version = db_version( &major, &minor, &patch );
32356
32357                 if( major != DB_VERSION_MAJOR ||
32358                         minor < DB_VERSION_MINOR )
32359                 {
32360                         printf("Berkeley DB version mismatch\n"
32361                                 "\theader: %s\n\tlibrary: %s\n",
32362                                 DB_VERSION_STRING, version);
32363                         return 1;
32364                 }
32365         }
32366 #endif
32367
32368 #if DB_VERSION_MAJOR > 2
32369         db_env_create( NULL, 0 );
32370 #elif DB_VERSION_MAJOR > 1
32371         db_appexit( NULL );
32372 #else
32373         (void) dbopen( NULL, 0, 0, 0, NULL);
32374 #endif
32375
32376   ;
32377   return 0;
32378 }
32379 _ACEOF
32380 rm -f conftest.$ac_objext conftest$ac_exeext
32381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32382   (eval $ac_link) 2>conftest.er1
32383   ac_status=$?
32384   grep -v '^ *+' conftest.er1 >conftest.err
32385   rm -f conftest.er1
32386   cat conftest.err >&5
32387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388   (exit $ac_status); } &&
32389          { ac_try='test -z "$ac_c_werror_flag"
32390                          || test ! -s conftest.err'
32391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32392   (eval $ac_try) 2>&5
32393   ac_status=$?
32394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395   (exit $ac_status); }; } &&
32396          { ac_try='test -s conftest$ac_exeext'
32397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398   (eval $ac_try) 2>&5
32399   ac_status=$?
32400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401   (exit $ac_status); }; }; then
32402   ol_cv_db_db_3=yes
32403 else
32404   echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32406
32407 ol_cv_db_db_3=no
32408 fi
32409 rm -f conftest.err conftest.$ac_objext \
32410       conftest$ac_exeext conftest.$ac_ext
32411
32412         LIBS="$ol_LIBS"
32413
32414 fi
32415 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32416 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32417
32418         if test $ol_cv_db_db_3 = yes ; then
32419                 ol_cv_lib_db=-ldb-3
32420         fi
32421 fi
32422
32423 if test $ol_cv_lib_db = no ; then
32424         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32425 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32426 if test "${ol_cv_db_db2+set}" = set; then
32427   echo $ECHO_N "(cached) $ECHO_C" >&6
32428 else
32429
32430         ol_DB_LIB=-ldb2
32431         ol_LIBS=$LIBS
32432         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32433
32434         cat >conftest.$ac_ext <<_ACEOF
32435 /* confdefs.h.  */
32436 _ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h.  */
32440
32441 #ifdef HAVE_DB_185_H
32442 # include <db_185.h>
32443 #else
32444 # include <db.h>
32445 #endif
32446
32447 #ifndef DB_VERSION_MAJOR
32448 # define DB_VERSION_MAJOR 1
32449 #endif
32450
32451 #ifndef NULL
32452 #define NULL ((void*)0)
32453 #endif
32454
32455 int
32456 main ()
32457 {
32458
32459 #if DB_VERSION_MAJOR > 1
32460         {
32461                 char *version;
32462                 int major, minor, patch;
32463
32464                 version = db_version( &major, &minor, &patch );
32465
32466                 if( major != DB_VERSION_MAJOR ||
32467                         minor < DB_VERSION_MINOR )
32468                 {
32469                         printf("Berkeley DB version mismatch\n"
32470                                 "\theader: %s\n\tlibrary: %s\n",
32471                                 DB_VERSION_STRING, version);
32472                         return 1;
32473                 }
32474         }
32475 #endif
32476
32477 #if DB_VERSION_MAJOR > 2
32478         db_env_create( NULL, 0 );
32479 #elif DB_VERSION_MAJOR > 1
32480         db_appexit( NULL );
32481 #else
32482         (void) dbopen( NULL, 0, 0, 0, NULL);
32483 #endif
32484
32485   ;
32486   return 0;
32487 }
32488 _ACEOF
32489 rm -f conftest.$ac_objext conftest$ac_exeext
32490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32491   (eval $ac_link) 2>conftest.er1
32492   ac_status=$?
32493   grep -v '^ *+' conftest.er1 >conftest.err
32494   rm -f conftest.er1
32495   cat conftest.err >&5
32496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497   (exit $ac_status); } &&
32498          { ac_try='test -z "$ac_c_werror_flag"
32499                          || test ! -s conftest.err'
32500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32501   (eval $ac_try) 2>&5
32502   ac_status=$?
32503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32504   (exit $ac_status); }; } &&
32505          { ac_try='test -s conftest$ac_exeext'
32506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32507   (eval $ac_try) 2>&5
32508   ac_status=$?
32509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510   (exit $ac_status); }; }; then
32511   ol_cv_db_db2=yes
32512 else
32513   echo "$as_me: failed program was:" >&5
32514 sed 's/^/| /' conftest.$ac_ext >&5
32515
32516 ol_cv_db_db2=no
32517 fi
32518 rm -f conftest.err conftest.$ac_objext \
32519       conftest$ac_exeext conftest.$ac_ext
32520
32521         LIBS="$ol_LIBS"
32522
32523 fi
32524 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32525 echo "${ECHO_T}$ol_cv_db_db2" >&6
32526
32527         if test $ol_cv_db_db2 = yes ; then
32528                 ol_cv_lib_db=-ldb2
32529         fi
32530 fi
32531
32532 if test $ol_cv_lib_db = no ; then
32533         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32534 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32535 if test "${ol_cv_db_db_2+set}" = set; then
32536   echo $ECHO_N "(cached) $ECHO_C" >&6
32537 else
32538
32539         ol_DB_LIB=-ldb-2
32540         ol_LIBS=$LIBS
32541         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32542
32543         cat >conftest.$ac_ext <<_ACEOF
32544 /* confdefs.h.  */
32545 _ACEOF
32546 cat confdefs.h >>conftest.$ac_ext
32547 cat >>conftest.$ac_ext <<_ACEOF
32548 /* end confdefs.h.  */
32549
32550 #ifdef HAVE_DB_185_H
32551 # include <db_185.h>
32552 #else
32553 # include <db.h>
32554 #endif
32555
32556 #ifndef DB_VERSION_MAJOR
32557 # define DB_VERSION_MAJOR 1
32558 #endif
32559
32560 #ifndef NULL
32561 #define NULL ((void*)0)
32562 #endif
32563
32564 int
32565 main ()
32566 {
32567
32568 #if DB_VERSION_MAJOR > 1
32569         {
32570                 char *version;
32571                 int major, minor, patch;
32572
32573                 version = db_version( &major, &minor, &patch );
32574
32575                 if( major != DB_VERSION_MAJOR ||
32576                         minor < DB_VERSION_MINOR )
32577                 {
32578                         printf("Berkeley DB version mismatch\n"
32579                                 "\theader: %s\n\tlibrary: %s\n",
32580                                 DB_VERSION_STRING, version);
32581                         return 1;
32582                 }
32583         }
32584 #endif
32585
32586 #if DB_VERSION_MAJOR > 2
32587         db_env_create( NULL, 0 );
32588 #elif DB_VERSION_MAJOR > 1
32589         db_appexit( NULL );
32590 #else
32591         (void) dbopen( NULL, 0, 0, 0, NULL);
32592 #endif
32593
32594   ;
32595   return 0;
32596 }
32597 _ACEOF
32598 rm -f conftest.$ac_objext conftest$ac_exeext
32599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32600   (eval $ac_link) 2>conftest.er1
32601   ac_status=$?
32602   grep -v '^ *+' conftest.er1 >conftest.err
32603   rm -f conftest.er1
32604   cat conftest.err >&5
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); } &&
32607          { ac_try='test -z "$ac_c_werror_flag"
32608                          || test ! -s conftest.err'
32609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610   (eval $ac_try) 2>&5
32611   ac_status=$?
32612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613   (exit $ac_status); }; } &&
32614          { ac_try='test -s conftest$ac_exeext'
32615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616   (eval $ac_try) 2>&5
32617   ac_status=$?
32618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); }; }; then
32620   ol_cv_db_db_2=yes
32621 else
32622   echo "$as_me: failed program was:" >&5
32623 sed 's/^/| /' conftest.$ac_ext >&5
32624
32625 ol_cv_db_db_2=no
32626 fi
32627 rm -f conftest.err conftest.$ac_objext \
32628       conftest$ac_exeext conftest.$ac_ext
32629
32630         LIBS="$ol_LIBS"
32631
32632 fi
32633 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32634 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32635
32636         if test $ol_cv_db_db_2 = yes ; then
32637                 ol_cv_lib_db=-ldb-2
32638         fi
32639 fi
32640
32641 if test $ol_cv_lib_db = no ; then
32642         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32643 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32644 if test "${ol_cv_db_db1+set}" = set; then
32645   echo $ECHO_N "(cached) $ECHO_C" >&6
32646 else
32647
32648         ol_DB_LIB=-ldb1
32649         ol_LIBS=$LIBS
32650         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32651
32652         cat >conftest.$ac_ext <<_ACEOF
32653 /* confdefs.h.  */
32654 _ACEOF
32655 cat confdefs.h >>conftest.$ac_ext
32656 cat >>conftest.$ac_ext <<_ACEOF
32657 /* end confdefs.h.  */
32658
32659 #ifdef HAVE_DB_185_H
32660 # include <db_185.h>
32661 #else
32662 # include <db.h>
32663 #endif
32664
32665 #ifndef DB_VERSION_MAJOR
32666 # define DB_VERSION_MAJOR 1
32667 #endif
32668
32669 #ifndef NULL
32670 #define NULL ((void*)0)
32671 #endif
32672
32673 int
32674 main ()
32675 {
32676
32677 #if DB_VERSION_MAJOR > 1
32678         {
32679                 char *version;
32680                 int major, minor, patch;
32681
32682                 version = db_version( &major, &minor, &patch );
32683
32684                 if( major != DB_VERSION_MAJOR ||
32685                         minor < DB_VERSION_MINOR )
32686                 {
32687                         printf("Berkeley DB version mismatch\n"
32688                                 "\theader: %s\n\tlibrary: %s\n",
32689                                 DB_VERSION_STRING, version);
32690                         return 1;
32691                 }
32692         }
32693 #endif
32694
32695 #if DB_VERSION_MAJOR > 2
32696         db_env_create( NULL, 0 );
32697 #elif DB_VERSION_MAJOR > 1
32698         db_appexit( NULL );
32699 #else
32700         (void) dbopen( NULL, 0, 0, 0, NULL);
32701 #endif
32702
32703   ;
32704   return 0;
32705 }
32706 _ACEOF
32707 rm -f conftest.$ac_objext conftest$ac_exeext
32708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32709   (eval $ac_link) 2>conftest.er1
32710   ac_status=$?
32711   grep -v '^ *+' conftest.er1 >conftest.err
32712   rm -f conftest.er1
32713   cat conftest.err >&5
32714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715   (exit $ac_status); } &&
32716          { ac_try='test -z "$ac_c_werror_flag"
32717                          || test ! -s conftest.err'
32718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719   (eval $ac_try) 2>&5
32720   ac_status=$?
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); }; } &&
32723          { ac_try='test -s conftest$ac_exeext'
32724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32725   (eval $ac_try) 2>&5
32726   ac_status=$?
32727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728   (exit $ac_status); }; }; then
32729   ol_cv_db_db1=yes
32730 else
32731   echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32733
32734 ol_cv_db_db1=no
32735 fi
32736 rm -f conftest.err conftest.$ac_objext \
32737       conftest$ac_exeext conftest.$ac_ext
32738
32739         LIBS="$ol_LIBS"
32740
32741 fi
32742 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32743 echo "${ECHO_T}$ol_cv_db_db1" >&6
32744
32745         if test $ol_cv_db_db1 = yes ; then
32746                 ol_cv_lib_db=-ldb1
32747         fi
32748 fi
32749
32750 if test $ol_cv_lib_db = no ; then
32751         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32752 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32753 if test "${ol_cv_db_db_1+set}" = set; then
32754   echo $ECHO_N "(cached) $ECHO_C" >&6
32755 else
32756
32757         ol_DB_LIB=-ldb-1
32758         ol_LIBS=$LIBS
32759         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32760
32761         cat >conftest.$ac_ext <<_ACEOF
32762 /* confdefs.h.  */
32763 _ACEOF
32764 cat confdefs.h >>conftest.$ac_ext
32765 cat >>conftest.$ac_ext <<_ACEOF
32766 /* end confdefs.h.  */
32767
32768 #ifdef HAVE_DB_185_H
32769 # include <db_185.h>
32770 #else
32771 # include <db.h>
32772 #endif
32773
32774 #ifndef DB_VERSION_MAJOR
32775 # define DB_VERSION_MAJOR 1
32776 #endif
32777
32778 #ifndef NULL
32779 #define NULL ((void*)0)
32780 #endif
32781
32782 int
32783 main ()
32784 {
32785
32786 #if DB_VERSION_MAJOR > 1
32787         {
32788                 char *version;
32789                 int major, minor, patch;
32790
32791                 version = db_version( &major, &minor, &patch );
32792
32793                 if( major != DB_VERSION_MAJOR ||
32794                         minor < DB_VERSION_MINOR )
32795                 {
32796                         printf("Berkeley DB version mismatch\n"
32797                                 "\theader: %s\n\tlibrary: %s\n",
32798                                 DB_VERSION_STRING, version);
32799                         return 1;
32800                 }
32801         }
32802 #endif
32803
32804 #if DB_VERSION_MAJOR > 2
32805         db_env_create( NULL, 0 );
32806 #elif DB_VERSION_MAJOR > 1
32807         db_appexit( NULL );
32808 #else
32809         (void) dbopen( NULL, 0, 0, 0, NULL);
32810 #endif
32811
32812   ;
32813   return 0;
32814 }
32815 _ACEOF
32816 rm -f conftest.$ac_objext conftest$ac_exeext
32817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32818   (eval $ac_link) 2>conftest.er1
32819   ac_status=$?
32820   grep -v '^ *+' conftest.er1 >conftest.err
32821   rm -f conftest.er1
32822   cat conftest.err >&5
32823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824   (exit $ac_status); } &&
32825          { ac_try='test -z "$ac_c_werror_flag"
32826                          || test ! -s conftest.err'
32827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32828   (eval $ac_try) 2>&5
32829   ac_status=$?
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); }; } &&
32832          { ac_try='test -s conftest$ac_exeext'
32833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32834   (eval $ac_try) 2>&5
32835   ac_status=$?
32836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837   (exit $ac_status); }; }; then
32838   ol_cv_db_db_1=yes
32839 else
32840   echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32842
32843 ol_cv_db_db_1=no
32844 fi
32845 rm -f conftest.err conftest.$ac_objext \
32846       conftest$ac_exeext conftest.$ac_ext
32847
32848         LIBS="$ol_LIBS"
32849
32850 fi
32851 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32852 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32853
32854         if test $ol_cv_db_db_1 = yes ; then
32855                 ol_cv_lib_db=-ldb-1
32856         fi
32857 fi
32858
32859
32860         if test "$ol_cv_lib_db" != no ; then
32861                 ol_cv_berkeley_db=yes
32862                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32863 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32864 if test "${ol_cv_berkeley_db_version+set}" = set; then
32865   echo $ECHO_N "(cached) $ECHO_C" >&6
32866 else
32867
32868         ol_LIBS="$LIBS"
32869         LIBS="$LTHREAD_LIBS $LIBS"
32870         if test $ol_cv_lib_db != yes ; then
32871                 LIBS="$ol_cv_lib_db $LIBS"
32872         fi
32873
32874         if test "$cross_compiling" = yes; then
32875   ol_cv_berkeley_db_version=cross
32876 else
32877   cat >conftest.$ac_ext <<_ACEOF
32878 /* confdefs.h.  */
32879 _ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h.  */
32883
32884 #ifdef HAVE_DB_185_H
32885         choke me;
32886 #else
32887 #include <db.h>
32888 #endif
32889 #ifndef DB_VERSION_MAJOR
32890 # define DB_VERSION_MAJOR 1
32891 #endif
32892 #ifndef NULL
32893 #define NULL ((void *)0)
32894 #endif
32895 main()
32896 {
32897 #if DB_VERSION_MAJOR > 1
32898         char *version;
32899         int major, minor, patch;
32900
32901         version = db_version( &major, &minor, &patch );
32902
32903         if( major != DB_VERSION_MAJOR ||
32904                 minor != DB_VERSION_MINOR ||
32905                 patch != DB_VERSION_PATCH )
32906         {
32907                 printf("Berkeley DB version mismatch\n"
32908                         "\theader: %s\n\tlibrary: %s\n",
32909                         DB_VERSION_STRING, version);
32910                 return 1;
32911         }
32912 #endif
32913
32914         return 0;
32915 }
32916 _ACEOF
32917 rm -f conftest$ac_exeext
32918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32919   (eval $ac_link) 2>&5
32920   ac_status=$?
32921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32924   (eval $ac_try) 2>&5
32925   ac_status=$?
32926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927   (exit $ac_status); }; }; then
32928   ol_cv_berkeley_db_version=yes
32929 else
32930   echo "$as_me: program exited with status $ac_status" >&5
32931 echo "$as_me: failed program was:" >&5
32932 sed 's/^/| /' conftest.$ac_ext >&5
32933
32934 ( exit $ac_status )
32935 ol_cv_berkeley_db_version=no
32936 fi
32937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32938 fi
32939
32940         LIBS="$ol_LIBS"
32941
32942 fi
32943 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32944 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32945
32946         if test $ol_cv_berkeley_db_version = no ; then
32947                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32948 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32949    { (exit 1); exit 1; }; }
32950         fi
32951
32952                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32953 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32954 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32955   echo $ECHO_N "(cached) $ECHO_C" >&6
32956 else
32957
32958         ol_LIBS="$LIBS"
32959         LIBS="$LTHREAD_LIBS $LIBS"
32960         if test $ol_cv_lib_db != yes ; then
32961                 LIBS="$ol_cv_lib_db $LIBS"
32962         fi
32963
32964         if test "$cross_compiling" = yes; then
32965   ol_cv_berkeley_db_thread=cross
32966 else
32967   cat >conftest.$ac_ext <<_ACEOF
32968 /* confdefs.h.  */
32969 _ACEOF
32970 cat confdefs.h >>conftest.$ac_ext
32971 cat >>conftest.$ac_ext <<_ACEOF
32972 /* end confdefs.h.  */
32973
32974 #ifdef HAVE_DB_185_H
32975         choke me;
32976 #else
32977 #include <db.h>
32978 #endif
32979 #ifndef NULL
32980 #define NULL ((void *)0)
32981 #endif
32982 main()
32983 {
32984         int rc;
32985         u_int32_t flags = DB_CREATE |
32986 #ifdef DB_PRIVATE
32987                 DB_PRIVATE |
32988 #endif
32989                 DB_THREAD;
32990
32991 #if DB_VERSION_MAJOR > 2
32992         DB_ENV *env = NULL;
32993
32994         rc = db_env_create( &env, 0 );
32995
32996         flags |= DB_INIT_MPOOL;
32997 #ifdef DB_MPOOL_PRIVATE
32998         flags |= DB_MPOOL_PRIVATE;
32999 #endif
33000
33001         if( rc ) {
33002                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33003                 return rc;
33004         }
33005
33006 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
33007         rc = env->open( env, NULL, flags, 0 );
33008 #else
33009         rc = env->open( env, NULL, NULL, flags, 0 );
33010 #endif
33011
33012         if ( rc == 0 ) {
33013                 rc = env->close( env, 0 );
33014         }
33015
33016         if( rc ) {
33017                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33018                 return rc;
33019         }
33020
33021 #else
33022         DB_ENV env;
33023         memset( &env, '\0', sizeof(env) );
33024
33025         rc = db_appinit( NULL, NULL, &env, flags );
33026
33027         if( rc == 0 ) {
33028                 db_appexit( &env );
33029         }
33030
33031         unlink("__db_mpool.share");
33032         unlink("__db_lock.share");
33033 #endif
33034
33035         return rc;
33036 }
33037 _ACEOF
33038 rm -f conftest$ac_exeext
33039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33040   (eval $ac_link) 2>&5
33041   ac_status=$?
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33045   (eval $ac_try) 2>&5
33046   ac_status=$?
33047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048   (exit $ac_status); }; }; then
33049   ol_cv_berkeley_db_thread=yes
33050 else
33051   echo "$as_me: program exited with status $ac_status" >&5
33052 echo "$as_me: failed program was:" >&5
33053 sed 's/^/| /' conftest.$ac_ext >&5
33054
33055 ( exit $ac_status )
33056 ol_cv_berkeley_db_thread=no
33057 fi
33058 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33059 fi
33060
33061         LIBS="$ol_LIBS"
33062
33063 fi
33064 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
33065 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
33066
33067         if test $ol_cv_berkeley_db_thread != no ; then
33068
33069 cat >>confdefs.h <<\_ACEOF
33070 #define HAVE_BERKELEY_DB_THREAD 1
33071 _ACEOF
33072
33073         fi
33074
33075         fi
33076 fi
33077
33078         fi
33079
33080         if test $ol_cv_berkeley_db != no ; then
33081
33082 cat >>confdefs.h <<\_ACEOF
33083 #define HAVE_BERKELEY_DB 1
33084 _ACEOF
33085
33086
33087                 ol_link_ldbm=berkeley
33088                 ol_enable_ldbm_api=berkeley
33089
33090                 if test $ol_enable_ldbm_type = hash ; then
33091
33092 cat >>confdefs.h <<\_ACEOF
33093 #define LDBM_USE_DBHASH 1
33094 _ACEOF
33095
33096                 else
33097
33098 cat >>confdefs.h <<\_ACEOF
33099 #define LDBM_USE_DBBTREE 1
33100 _ACEOF
33101
33102                 fi
33103
33104                                                 if test $ol_cv_lib_db != yes ; then
33105                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33106                 fi
33107         fi
33108         ;;
33109 esac
33110
33111 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
33112         if test $ol_link_ldbm != berkeley ; then
33113                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33114 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33115    { (exit 1); exit 1; }; }
33116         else
33117                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33118 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33119 if test "${ol_cv_bdb_compat+set}" = set; then
33120   echo $ECHO_N "(cached) $ECHO_C" >&6
33121 else
33122
33123         cat >conftest.$ac_ext <<_ACEOF
33124 /* confdefs.h.  */
33125 _ACEOF
33126 cat confdefs.h >>conftest.$ac_ext
33127 cat >>conftest.$ac_ext <<_ACEOF
33128 /* end confdefs.h.  */
33129
33130 #include <db.h>
33131
33132  /* this check could be improved */
33133 #ifndef DB_VERSION_MAJOR
33134 #       define DB_VERSION_MAJOR 1
33135 #endif
33136 #ifndef DB_VERSION_MINOR
33137 #       define DB_VERSION_MINOR 0
33138 #endif
33139
33140 /* require 4.2 or later */
33141 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33142         __db_version_compat
33143 #endif
33144
33145 _ACEOF
33146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33147   $EGREP "__db_version_compat" >/dev/null 2>&1; then
33148   ol_cv_bdb_compat=yes
33149 else
33150   ol_cv_bdb_compat=no
33151 fi
33152 rm -f conftest*
33153
33154 fi
33155 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33156 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33157
33158
33159                 if test $ol_cv_bdb_compat != yes ; then
33160                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33161 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33162    { (exit 1); exit 1; }; }
33163                 fi
33164         fi
33165 fi
33166
33167 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
33168         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33169 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33170         ol_enable_ldbm_api=none
33171 fi
33172
33173 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
33174         echo "$as_me:$LINENO: checking for MDBM library" >&5
33175 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33176 if test "${ol_cv_lib_mdbm+set}" = set; then
33177   echo $ECHO_N "(cached) $ECHO_C" >&6
33178 else
33179         ol_LIBS="$LIBS"
33180         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33181 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33182 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33183   echo $ECHO_N "(cached) $ECHO_C" >&6
33184 else
33185   cat >conftest.$ac_ext <<_ACEOF
33186 /* confdefs.h.  */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h.  */
33191 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33193 #define mdbm_set_chain innocuous_mdbm_set_chain
33194
33195 /* System header to define __stub macros and hopefully few prototypes,
33196     which can conflict with char mdbm_set_chain (); below.
33197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33198     <limits.h> exists even on freestanding compilers.  */
33199
33200 #ifdef __STDC__
33201 # include <limits.h>
33202 #else
33203 # include <assert.h>
33204 #endif
33205
33206 #undef mdbm_set_chain
33207
33208 /* Override any gcc2 internal prototype to avoid an error.  */
33209 #ifdef __cplusplus
33210 extern "C"
33211 {
33212 #endif
33213 /* We use char because int might match the return type of a gcc2
33214    builtin and then its argument prototype would still apply.  */
33215 char mdbm_set_chain ();
33216 /* The GNU C library defines this for functions which it implements
33217     to always fail with ENOSYS.  Some functions are actually named
33218     something starting with __ and the normal name is an alias.  */
33219 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33220 choke me
33221 #else
33222 char (*f) () = mdbm_set_chain;
33223 #endif
33224 #ifdef __cplusplus
33225 }
33226 #endif
33227
33228 int
33229 main ()
33230 {
33231 return f != mdbm_set_chain;
33232   ;
33233   return 0;
33234 }
33235 _ACEOF
33236 rm -f conftest.$ac_objext conftest$ac_exeext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33238   (eval $ac_link) 2>conftest.er1
33239   ac_status=$?
33240   grep -v '^ *+' conftest.er1 >conftest.err
33241   rm -f conftest.er1
33242   cat conftest.err >&5
33243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244   (exit $ac_status); } &&
33245          { ac_try='test -z "$ac_c_werror_flag"
33246                          || test ! -s conftest.err'
33247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248   (eval $ac_try) 2>&5
33249   ac_status=$?
33250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251   (exit $ac_status); }; } &&
33252          { ac_try='test -s conftest$ac_exeext'
33253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254   (eval $ac_try) 2>&5
33255   ac_status=$?
33256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257   (exit $ac_status); }; }; then
33258   ac_cv_func_mdbm_set_chain=yes
33259 else
33260   echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33262
33263 ac_cv_func_mdbm_set_chain=no
33264 fi
33265 rm -f conftest.err conftest.$ac_objext \
33266       conftest$ac_exeext conftest.$ac_ext
33267 fi
33268 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33269 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33270 if test $ac_cv_func_mdbm_set_chain = yes; then
33271   ol_cv_lib_mdbm=yes
33272 else
33273
33274                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33275 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33276 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33277   echo $ECHO_N "(cached) $ECHO_C" >&6
33278 else
33279   ac_check_lib_save_LIBS=$LIBS
33280 LIBS="-lmdbm  $LIBS"
33281 cat >conftest.$ac_ext <<_ACEOF
33282 /* confdefs.h.  */
33283 _ACEOF
33284 cat confdefs.h >>conftest.$ac_ext
33285 cat >>conftest.$ac_ext <<_ACEOF
33286 /* end confdefs.h.  */
33287
33288 /* Override any gcc2 internal prototype to avoid an error.  */
33289 #ifdef __cplusplus
33290 extern "C"
33291 #endif
33292 /* We use char because int might match the return type of a gcc2
33293    builtin and then its argument prototype would still apply.  */
33294 char mdbm_set_chain ();
33295 int
33296 main ()
33297 {
33298 mdbm_set_chain ();
33299   ;
33300   return 0;
33301 }
33302 _ACEOF
33303 rm -f conftest.$ac_objext conftest$ac_exeext
33304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33305   (eval $ac_link) 2>conftest.er1
33306   ac_status=$?
33307   grep -v '^ *+' conftest.er1 >conftest.err
33308   rm -f conftest.er1
33309   cat conftest.err >&5
33310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311   (exit $ac_status); } &&
33312          { ac_try='test -z "$ac_c_werror_flag"
33313                          || test ! -s conftest.err'
33314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315   (eval $ac_try) 2>&5
33316   ac_status=$?
33317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318   (exit $ac_status); }; } &&
33319          { ac_try='test -s conftest$ac_exeext'
33320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321   (eval $ac_try) 2>&5
33322   ac_status=$?
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); }; }; then
33325   ac_cv_lib_mdbm_mdbm_set_chain=yes
33326 else
33327   echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33329
33330 ac_cv_lib_mdbm_mdbm_set_chain=no
33331 fi
33332 rm -f conftest.err conftest.$ac_objext \
33333       conftest$ac_exeext conftest.$ac_ext
33334 LIBS=$ac_check_lib_save_LIBS
33335 fi
33336 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33337 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33338 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33339   ol_cv_lib_mdbm=-lmdbm
33340 else
33341   ol_cv_lib_mdbm=no
33342 fi
33343
33344
33345 fi
33346
33347         LIBS="$ol_LIBS"
33348
33349 fi
33350 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33351 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33352
33353
33354
33355 for ac_header in mdbm.h
33356 do
33357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33359   echo "$as_me:$LINENO: checking for $ac_header" >&5
33360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33362   echo $ECHO_N "(cached) $ECHO_C" >&6
33363 fi
33364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33366 else
33367   # Is the header compilable?
33368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33370 cat >conftest.$ac_ext <<_ACEOF
33371 /* confdefs.h.  */
33372 _ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h.  */
33376 $ac_includes_default
33377 #include <$ac_header>
33378 _ACEOF
33379 rm -f conftest.$ac_objext
33380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33381   (eval $ac_compile) 2>conftest.er1
33382   ac_status=$?
33383   grep -v '^ *+' conftest.er1 >conftest.err
33384   rm -f conftest.er1
33385   cat conftest.err >&5
33386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387   (exit $ac_status); } &&
33388          { ac_try='test -z "$ac_c_werror_flag"
33389                          || test ! -s conftest.err'
33390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33391   (eval $ac_try) 2>&5
33392   ac_status=$?
33393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394   (exit $ac_status); }; } &&
33395          { ac_try='test -s conftest.$ac_objext'
33396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33397   (eval $ac_try) 2>&5
33398   ac_status=$?
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); }; }; then
33401   ac_header_compiler=yes
33402 else
33403   echo "$as_me: failed program was:" >&5
33404 sed 's/^/| /' conftest.$ac_ext >&5
33405
33406 ac_header_compiler=no
33407 fi
33408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33410 echo "${ECHO_T}$ac_header_compiler" >&6
33411
33412 # Is the header present?
33413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33415 cat >conftest.$ac_ext <<_ACEOF
33416 /* confdefs.h.  */
33417 _ACEOF
33418 cat confdefs.h >>conftest.$ac_ext
33419 cat >>conftest.$ac_ext <<_ACEOF
33420 /* end confdefs.h.  */
33421 #include <$ac_header>
33422 _ACEOF
33423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33425   ac_status=$?
33426   grep -v '^ *+' conftest.er1 >conftest.err
33427   rm -f conftest.er1
33428   cat conftest.err >&5
33429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430   (exit $ac_status); } >/dev/null; then
33431   if test -s conftest.err; then
33432     ac_cpp_err=$ac_c_preproc_warn_flag
33433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33434   else
33435     ac_cpp_err=
33436   fi
33437 else
33438   ac_cpp_err=yes
33439 fi
33440 if test -z "$ac_cpp_err"; then
33441   ac_header_preproc=yes
33442 else
33443   echo "$as_me: failed program was:" >&5
33444 sed 's/^/| /' conftest.$ac_ext >&5
33445
33446   ac_header_preproc=no
33447 fi
33448 rm -f conftest.err conftest.$ac_ext
33449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33450 echo "${ECHO_T}$ac_header_preproc" >&6
33451
33452 # So?  What about this header?
33453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33454   yes:no: )
33455     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33459     ac_header_preproc=yes
33460     ;;
33461   no:yes:* )
33462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33464     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33465 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33466     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33468     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33469 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33472     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33474     (
33475       cat <<\_ASBOX
33476 ## ------------------------------------------ ##
33477 ## Report this to the AC_PACKAGE_NAME lists.  ##
33478 ## ------------------------------------------ ##
33479 _ASBOX
33480     ) |
33481       sed "s/^/$as_me: WARNING:     /" >&2
33482     ;;
33483 esac
33484 echo "$as_me:$LINENO: checking for $ac_header" >&5
33485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33487   echo $ECHO_N "(cached) $ECHO_C" >&6
33488 else
33489   eval "$as_ac_Header=\$ac_header_preproc"
33490 fi
33491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33493
33494 fi
33495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33496   cat >>confdefs.h <<_ACEOF
33497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33498 _ACEOF
33499
33500 fi
33501
33502 done
33503
33504  echo "$as_me:$LINENO: checking for db" >&5
33505 echo $ECHO_N "checking for db... $ECHO_C" >&6
33506 if test "${ol_cv_mdbm+set}" = set; then
33507   echo $ECHO_N "(cached) $ECHO_C" >&6
33508 else
33509
33510         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
33511                 ol_cv_mdbm=no
33512         else
33513                 ol_cv_mdbm=yes
33514         fi
33515
33516 fi
33517 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33518 echo "${ECHO_T}$ol_cv_mdbm" >&6
33519  if test $ol_cv_mdbm = yes ; then
33520
33521 cat >>confdefs.h <<\_ACEOF
33522 #define HAVE_MDBM 1
33523 _ACEOF
33524
33525  fi
33526
33527
33528         if test $ol_cv_mdbm = yes ; then
33529                 ol_link_ldbm=mdbm
33530                 ol_enable_ldbm_api=mdbm
33531                 if test $ol_cv_lib_mdbm != yes ; then
33532                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33533                 fi
33534         fi
33535 fi
33536
33537 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
33538         echo "$as_me:$LINENO: checking for GDBM library" >&5
33539 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33540 if test "${ol_cv_lib_gdbm+set}" = set; then
33541   echo $ECHO_N "(cached) $ECHO_C" >&6
33542 else
33543         ol_LIBS="$LIBS"
33544         echo "$as_me:$LINENO: checking for gdbm_open" >&5
33545 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33546 if test "${ac_cv_func_gdbm_open+set}" = set; then
33547   echo $ECHO_N "(cached) $ECHO_C" >&6
33548 else
33549   cat >conftest.$ac_ext <<_ACEOF
33550 /* confdefs.h.  */
33551 _ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h.  */
33555 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33557 #define gdbm_open innocuous_gdbm_open
33558
33559 /* System header to define __stub macros and hopefully few prototypes,
33560     which can conflict with char gdbm_open (); below.
33561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33562     <limits.h> exists even on freestanding compilers.  */
33563
33564 #ifdef __STDC__
33565 # include <limits.h>
33566 #else
33567 # include <assert.h>
33568 #endif
33569
33570 #undef gdbm_open
33571
33572 /* Override any gcc2 internal prototype to avoid an error.  */
33573 #ifdef __cplusplus
33574 extern "C"
33575 {
33576 #endif
33577 /* We use char because int might match the return type of a gcc2
33578    builtin and then its argument prototype would still apply.  */
33579 char gdbm_open ();
33580 /* The GNU C library defines this for functions which it implements
33581     to always fail with ENOSYS.  Some functions are actually named
33582     something starting with __ and the normal name is an alias.  */
33583 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33584 choke me
33585 #else
33586 char (*f) () = gdbm_open;
33587 #endif
33588 #ifdef __cplusplus
33589 }
33590 #endif
33591
33592 int
33593 main ()
33594 {
33595 return f != gdbm_open;
33596   ;
33597   return 0;
33598 }
33599 _ACEOF
33600 rm -f conftest.$ac_objext conftest$ac_exeext
33601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33602   (eval $ac_link) 2>conftest.er1
33603   ac_status=$?
33604   grep -v '^ *+' conftest.er1 >conftest.err
33605   rm -f conftest.er1
33606   cat conftest.err >&5
33607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608   (exit $ac_status); } &&
33609          { ac_try='test -z "$ac_c_werror_flag"
33610                          || test ! -s conftest.err'
33611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612   (eval $ac_try) 2>&5
33613   ac_status=$?
33614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615   (exit $ac_status); }; } &&
33616          { ac_try='test -s conftest$ac_exeext'
33617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618   (eval $ac_try) 2>&5
33619   ac_status=$?
33620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621   (exit $ac_status); }; }; then
33622   ac_cv_func_gdbm_open=yes
33623 else
33624   echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33626
33627 ac_cv_func_gdbm_open=no
33628 fi
33629 rm -f conftest.err conftest.$ac_objext \
33630       conftest$ac_exeext conftest.$ac_ext
33631 fi
33632 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33633 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33634 if test $ac_cv_func_gdbm_open = yes; then
33635   ol_cv_lib_gdbm=yes
33636 else
33637
33638                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33639 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33640 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33641   echo $ECHO_N "(cached) $ECHO_C" >&6
33642 else
33643   ac_check_lib_save_LIBS=$LIBS
33644 LIBS="-lgdbm  $LIBS"
33645 cat >conftest.$ac_ext <<_ACEOF
33646 /* confdefs.h.  */
33647 _ACEOF
33648 cat confdefs.h >>conftest.$ac_ext
33649 cat >>conftest.$ac_ext <<_ACEOF
33650 /* end confdefs.h.  */
33651
33652 /* Override any gcc2 internal prototype to avoid an error.  */
33653 #ifdef __cplusplus
33654 extern "C"
33655 #endif
33656 /* We use char because int might match the return type of a gcc2
33657    builtin and then its argument prototype would still apply.  */
33658 char gdbm_open ();
33659 int
33660 main ()
33661 {
33662 gdbm_open ();
33663   ;
33664   return 0;
33665 }
33666 _ACEOF
33667 rm -f conftest.$ac_objext conftest$ac_exeext
33668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33669   (eval $ac_link) 2>conftest.er1
33670   ac_status=$?
33671   grep -v '^ *+' conftest.er1 >conftest.err
33672   rm -f conftest.er1
33673   cat conftest.err >&5
33674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675   (exit $ac_status); } &&
33676          { ac_try='test -z "$ac_c_werror_flag"
33677                          || test ! -s conftest.err'
33678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33679   (eval $ac_try) 2>&5
33680   ac_status=$?
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); }; } &&
33683          { ac_try='test -s conftest$ac_exeext'
33684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33685   (eval $ac_try) 2>&5
33686   ac_status=$?
33687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688   (exit $ac_status); }; }; then
33689   ac_cv_lib_gdbm_gdbm_open=yes
33690 else
33691   echo "$as_me: failed program was:" >&5
33692 sed 's/^/| /' conftest.$ac_ext >&5
33693
33694 ac_cv_lib_gdbm_gdbm_open=no
33695 fi
33696 rm -f conftest.err conftest.$ac_objext \
33697       conftest$ac_exeext conftest.$ac_ext
33698 LIBS=$ac_check_lib_save_LIBS
33699 fi
33700 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33701 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33702 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33703   ol_cv_lib_gdbm=-lgdbm
33704 else
33705   ol_cv_lib_gdbm=no
33706 fi
33707
33708
33709 fi
33710
33711         LIBS="$ol_LIBS"
33712
33713 fi
33714 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33715 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33716
33717
33718
33719 for ac_header in gdbm.h
33720 do
33721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33723   echo "$as_me:$LINENO: checking for $ac_header" >&5
33724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33726   echo $ECHO_N "(cached) $ECHO_C" >&6
33727 fi
33728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33730 else
33731   # Is the header compilable?
33732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33734 cat >conftest.$ac_ext <<_ACEOF
33735 /* confdefs.h.  */
33736 _ACEOF
33737 cat confdefs.h >>conftest.$ac_ext
33738 cat >>conftest.$ac_ext <<_ACEOF
33739 /* end confdefs.h.  */
33740 $ac_includes_default
33741 #include <$ac_header>
33742 _ACEOF
33743 rm -f conftest.$ac_objext
33744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33745   (eval $ac_compile) 2>conftest.er1
33746   ac_status=$?
33747   grep -v '^ *+' conftest.er1 >conftest.err
33748   rm -f conftest.er1
33749   cat conftest.err >&5
33750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751   (exit $ac_status); } &&
33752          { ac_try='test -z "$ac_c_werror_flag"
33753                          || test ! -s conftest.err'
33754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755   (eval $ac_try) 2>&5
33756   ac_status=$?
33757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); }; } &&
33759          { ac_try='test -s conftest.$ac_objext'
33760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33761   (eval $ac_try) 2>&5
33762   ac_status=$?
33763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764   (exit $ac_status); }; }; then
33765   ac_header_compiler=yes
33766 else
33767   echo "$as_me: failed program was:" >&5
33768 sed 's/^/| /' conftest.$ac_ext >&5
33769
33770 ac_header_compiler=no
33771 fi
33772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33774 echo "${ECHO_T}$ac_header_compiler" >&6
33775
33776 # Is the header present?
33777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33779 cat >conftest.$ac_ext <<_ACEOF
33780 /* confdefs.h.  */
33781 _ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h.  */
33785 #include <$ac_header>
33786 _ACEOF
33787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33789   ac_status=$?
33790   grep -v '^ *+' conftest.er1 >conftest.err
33791   rm -f conftest.er1
33792   cat conftest.err >&5
33793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794   (exit $ac_status); } >/dev/null; then
33795   if test -s conftest.err; then
33796     ac_cpp_err=$ac_c_preproc_warn_flag
33797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33798   else
33799     ac_cpp_err=
33800   fi
33801 else
33802   ac_cpp_err=yes
33803 fi
33804 if test -z "$ac_cpp_err"; then
33805   ac_header_preproc=yes
33806 else
33807   echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.$ac_ext >&5
33809
33810   ac_header_preproc=no
33811 fi
33812 rm -f conftest.err conftest.$ac_ext
33813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33814 echo "${ECHO_T}$ac_header_preproc" >&6
33815
33816 # So?  What about this header?
33817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33818   yes:no: )
33819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33823     ac_header_preproc=yes
33824     ;;
33825   no:yes:* )
33826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33828     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33829 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33830     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33832     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33833 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33836     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33838     (
33839       cat <<\_ASBOX
33840 ## ------------------------------------------ ##
33841 ## Report this to the AC_PACKAGE_NAME lists.  ##
33842 ## ------------------------------------------ ##
33843 _ASBOX
33844     ) |
33845       sed "s/^/$as_me: WARNING:     /" >&2
33846     ;;
33847 esac
33848 echo "$as_me:$LINENO: checking for $ac_header" >&5
33849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33851   echo $ECHO_N "(cached) $ECHO_C" >&6
33852 else
33853   eval "$as_ac_Header=\$ac_header_preproc"
33854 fi
33855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33857
33858 fi
33859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33860   cat >>confdefs.h <<_ACEOF
33861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33862 _ACEOF
33863
33864 fi
33865
33866 done
33867
33868  echo "$as_me:$LINENO: checking for db" >&5
33869 echo $ECHO_N "checking for db... $ECHO_C" >&6
33870 if test "${ol_cv_gdbm+set}" = set; then
33871   echo $ECHO_N "(cached) $ECHO_C" >&6
33872 else
33873
33874         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
33875                 ol_cv_gdbm=no
33876         else
33877                 ol_cv_gdbm=yes
33878         fi
33879
33880 fi
33881 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33882 echo "${ECHO_T}$ol_cv_gdbm" >&6
33883  if test $ol_cv_gdbm = yes ; then
33884
33885 cat >>confdefs.h <<\_ACEOF
33886 #define HAVE_GDBM 1
33887 _ACEOF
33888
33889  fi
33890
33891
33892         if test $ol_cv_gdbm = yes ; then
33893                 ol_link_ldbm=gdbm
33894                 ol_enable_ldbm_api=gdbm
33895
33896                 if test $ol_cv_lib_gdbm != yes ; then
33897                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33898                 fi
33899         fi
33900 fi
33901
33902 if test $ol_enable_ldbm_api = ndbm ; then
33903         echo "$as_me:$LINENO: checking for NDBM library" >&5
33904 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33905 if test "${ol_cv_lib_ndbm+set}" = set; then
33906   echo $ECHO_N "(cached) $ECHO_C" >&6
33907 else
33908         ol_LIBS="$LIBS"
33909         echo "$as_me:$LINENO: checking for dbm_open" >&5
33910 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33911 if test "${ac_cv_func_dbm_open+set}" = set; then
33912   echo $ECHO_N "(cached) $ECHO_C" >&6
33913 else
33914   cat >conftest.$ac_ext <<_ACEOF
33915 /* confdefs.h.  */
33916 _ACEOF
33917 cat confdefs.h >>conftest.$ac_ext
33918 cat >>conftest.$ac_ext <<_ACEOF
33919 /* end confdefs.h.  */
33920 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33922 #define dbm_open innocuous_dbm_open
33923
33924 /* System header to define __stub macros and hopefully few prototypes,
33925     which can conflict with char dbm_open (); below.
33926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33927     <limits.h> exists even on freestanding compilers.  */
33928
33929 #ifdef __STDC__
33930 # include <limits.h>
33931 #else
33932 # include <assert.h>
33933 #endif
33934
33935 #undef dbm_open
33936
33937 /* Override any gcc2 internal prototype to avoid an error.  */
33938 #ifdef __cplusplus
33939 extern "C"
33940 {
33941 #endif
33942 /* We use char because int might match the return type of a gcc2
33943    builtin and then its argument prototype would still apply.  */
33944 char dbm_open ();
33945 /* The GNU C library defines this for functions which it implements
33946     to always fail with ENOSYS.  Some functions are actually named
33947     something starting with __ and the normal name is an alias.  */
33948 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33949 choke me
33950 #else
33951 char (*f) () = dbm_open;
33952 #endif
33953 #ifdef __cplusplus
33954 }
33955 #endif
33956
33957 int
33958 main ()
33959 {
33960 return f != dbm_open;
33961   ;
33962   return 0;
33963 }
33964 _ACEOF
33965 rm -f conftest.$ac_objext conftest$ac_exeext
33966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33967   (eval $ac_link) 2>conftest.er1
33968   ac_status=$?
33969   grep -v '^ *+' conftest.er1 >conftest.err
33970   rm -f conftest.er1
33971   cat conftest.err >&5
33972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973   (exit $ac_status); } &&
33974          { ac_try='test -z "$ac_c_werror_flag"
33975                          || test ! -s conftest.err'
33976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977   (eval $ac_try) 2>&5
33978   ac_status=$?
33979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980   (exit $ac_status); }; } &&
33981          { ac_try='test -s conftest$ac_exeext'
33982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983   (eval $ac_try) 2>&5
33984   ac_status=$?
33985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986   (exit $ac_status); }; }; then
33987   ac_cv_func_dbm_open=yes
33988 else
33989   echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33991
33992 ac_cv_func_dbm_open=no
33993 fi
33994 rm -f conftest.err conftest.$ac_objext \
33995       conftest$ac_exeext conftest.$ac_ext
33996 fi
33997 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33998 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33999 if test $ac_cv_func_dbm_open = yes; then
34000   ol_cv_lib_ndbm=yes
34001 else
34002
34003                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
34004 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
34005 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
34006   echo $ECHO_N "(cached) $ECHO_C" >&6
34007 else
34008   ac_check_lib_save_LIBS=$LIBS
34009 LIBS="-lndbm  $LIBS"
34010 cat >conftest.$ac_ext <<_ACEOF
34011 /* confdefs.h.  */
34012 _ACEOF
34013 cat confdefs.h >>conftest.$ac_ext
34014 cat >>conftest.$ac_ext <<_ACEOF
34015 /* end confdefs.h.  */
34016
34017 /* Override any gcc2 internal prototype to avoid an error.  */
34018 #ifdef __cplusplus
34019 extern "C"
34020 #endif
34021 /* We use char because int might match the return type of a gcc2
34022    builtin and then its argument prototype would still apply.  */
34023 char dbm_open ();
34024 int
34025 main ()
34026 {
34027 dbm_open ();
34028   ;
34029   return 0;
34030 }
34031 _ACEOF
34032 rm -f conftest.$ac_objext conftest$ac_exeext
34033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34034   (eval $ac_link) 2>conftest.er1
34035   ac_status=$?
34036   grep -v '^ *+' conftest.er1 >conftest.err
34037   rm -f conftest.er1
34038   cat conftest.err >&5
34039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040   (exit $ac_status); } &&
34041          { ac_try='test -z "$ac_c_werror_flag"
34042                          || test ! -s conftest.err'
34043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34044   (eval $ac_try) 2>&5
34045   ac_status=$?
34046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047   (exit $ac_status); }; } &&
34048          { ac_try='test -s conftest$ac_exeext'
34049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34050   (eval $ac_try) 2>&5
34051   ac_status=$?
34052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053   (exit $ac_status); }; }; then
34054   ac_cv_lib_ndbm_dbm_open=yes
34055 else
34056   echo "$as_me: failed program was:" >&5
34057 sed 's/^/| /' conftest.$ac_ext >&5
34058
34059 ac_cv_lib_ndbm_dbm_open=no
34060 fi
34061 rm -f conftest.err conftest.$ac_objext \
34062       conftest$ac_exeext conftest.$ac_ext
34063 LIBS=$ac_check_lib_save_LIBS
34064 fi
34065 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
34066 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
34067 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34068   ol_cv_lib_ndbm=-lndbm
34069 else
34070
34071                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34072 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34073 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34074   echo $ECHO_N "(cached) $ECHO_C" >&6
34075 else
34076   ac_check_lib_save_LIBS=$LIBS
34077 LIBS="-ldbm  $LIBS"
34078 cat >conftest.$ac_ext <<_ACEOF
34079 /* confdefs.h.  */
34080 _ACEOF
34081 cat confdefs.h >>conftest.$ac_ext
34082 cat >>conftest.$ac_ext <<_ACEOF
34083 /* end confdefs.h.  */
34084
34085 /* Override any gcc2 internal prototype to avoid an error.  */
34086 #ifdef __cplusplus
34087 extern "C"
34088 #endif
34089 /* We use char because int might match the return type of a gcc2
34090    builtin and then its argument prototype would still apply.  */
34091 char dbm_open ();
34092 int
34093 main ()
34094 {
34095 dbm_open ();
34096   ;
34097   return 0;
34098 }
34099 _ACEOF
34100 rm -f conftest.$ac_objext conftest$ac_exeext
34101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34102   (eval $ac_link) 2>conftest.er1
34103   ac_status=$?
34104   grep -v '^ *+' conftest.er1 >conftest.err
34105   rm -f conftest.er1
34106   cat conftest.err >&5
34107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108   (exit $ac_status); } &&
34109          { ac_try='test -z "$ac_c_werror_flag"
34110                          || test ! -s conftest.err'
34111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34112   (eval $ac_try) 2>&5
34113   ac_status=$?
34114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115   (exit $ac_status); }; } &&
34116          { ac_try='test -s conftest$ac_exeext'
34117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34118   (eval $ac_try) 2>&5
34119   ac_status=$?
34120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121   (exit $ac_status); }; }; then
34122   ac_cv_lib_dbm_dbm_open=yes
34123 else
34124   echo "$as_me: failed program was:" >&5
34125 sed 's/^/| /' conftest.$ac_ext >&5
34126
34127 ac_cv_lib_dbm_dbm_open=no
34128 fi
34129 rm -f conftest.err conftest.$ac_objext \
34130       conftest$ac_exeext conftest.$ac_ext
34131 LIBS=$ac_check_lib_save_LIBS
34132 fi
34133 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34134 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34135 if test $ac_cv_lib_dbm_dbm_open = yes; then
34136   ol_cv_lib_ndbm=-ldbm
34137 else
34138   ol_cv_lib_ndbm=no
34139 fi
34140
34141 fi
34142
34143
34144 fi
34145
34146         LIBS="$ol_LIBS"
34147
34148 fi
34149 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34150 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34151
34152
34153
34154 for ac_header in ndbm.h
34155 do
34156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34158   echo "$as_me:$LINENO: checking for $ac_header" >&5
34159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34161   echo $ECHO_N "(cached) $ECHO_C" >&6
34162 fi
34163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34165 else
34166   # Is the header compilable?
34167 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34169 cat >conftest.$ac_ext <<_ACEOF
34170 /* confdefs.h.  */
34171 _ACEOF
34172 cat confdefs.h >>conftest.$ac_ext
34173 cat >>conftest.$ac_ext <<_ACEOF
34174 /* end confdefs.h.  */
34175 $ac_includes_default
34176 #include <$ac_header>
34177 _ACEOF
34178 rm -f conftest.$ac_objext
34179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34180   (eval $ac_compile) 2>conftest.er1
34181   ac_status=$?
34182   grep -v '^ *+' conftest.er1 >conftest.err
34183   rm -f conftest.er1
34184   cat conftest.err >&5
34185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186   (exit $ac_status); } &&
34187          { ac_try='test -z "$ac_c_werror_flag"
34188                          || test ! -s conftest.err'
34189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190   (eval $ac_try) 2>&5
34191   ac_status=$?
34192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193   (exit $ac_status); }; } &&
34194          { ac_try='test -s conftest.$ac_objext'
34195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34196   (eval $ac_try) 2>&5
34197   ac_status=$?
34198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199   (exit $ac_status); }; }; then
34200   ac_header_compiler=yes
34201 else
34202   echo "$as_me: failed program was:" >&5
34203 sed 's/^/| /' conftest.$ac_ext >&5
34204
34205 ac_header_compiler=no
34206 fi
34207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34209 echo "${ECHO_T}$ac_header_compiler" >&6
34210
34211 # Is the header present?
34212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34214 cat >conftest.$ac_ext <<_ACEOF
34215 /* confdefs.h.  */
34216 _ACEOF
34217 cat confdefs.h >>conftest.$ac_ext
34218 cat >>conftest.$ac_ext <<_ACEOF
34219 /* end confdefs.h.  */
34220 #include <$ac_header>
34221 _ACEOF
34222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34224   ac_status=$?
34225   grep -v '^ *+' conftest.er1 >conftest.err
34226   rm -f conftest.er1
34227   cat conftest.err >&5
34228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229   (exit $ac_status); } >/dev/null; then
34230   if test -s conftest.err; then
34231     ac_cpp_err=$ac_c_preproc_warn_flag
34232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34233   else
34234     ac_cpp_err=
34235   fi
34236 else
34237   ac_cpp_err=yes
34238 fi
34239 if test -z "$ac_cpp_err"; then
34240   ac_header_preproc=yes
34241 else
34242   echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34244
34245   ac_header_preproc=no
34246 fi
34247 rm -f conftest.err conftest.$ac_ext
34248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34249 echo "${ECHO_T}$ac_header_preproc" >&6
34250
34251 # So?  What about this header?
34252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34253   yes:no: )
34254     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34258     ac_header_preproc=yes
34259     ;;
34260   no:yes:* )
34261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34263     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34264 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34265     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34267     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34268 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34271     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34273     (
34274       cat <<\_ASBOX
34275 ## ------------------------------------------ ##
34276 ## Report this to the AC_PACKAGE_NAME lists.  ##
34277 ## ------------------------------------------ ##
34278 _ASBOX
34279     ) |
34280       sed "s/^/$as_me: WARNING:     /" >&2
34281     ;;
34282 esac
34283 echo "$as_me:$LINENO: checking for $ac_header" >&5
34284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34286   echo $ECHO_N "(cached) $ECHO_C" >&6
34287 else
34288   eval "$as_ac_Header=\$ac_header_preproc"
34289 fi
34290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34292
34293 fi
34294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34295   cat >>confdefs.h <<_ACEOF
34296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34297 _ACEOF
34298
34299 fi
34300
34301 done
34302
34303  echo "$as_me:$LINENO: checking for db" >&5
34304 echo $ECHO_N "checking for db... $ECHO_C" >&6
34305 if test "${ol_cv_ndbm+set}" = set; then
34306   echo $ECHO_N "(cached) $ECHO_C" >&6
34307 else
34308
34309         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
34310                 ol_cv_ndbm=no
34311         else
34312                 ol_cv_ndbm=yes
34313         fi
34314
34315 fi
34316 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34317 echo "${ECHO_T}$ol_cv_ndbm" >&6
34318  if test $ol_cv_ndbm = yes ; then
34319
34320 cat >>confdefs.h <<\_ACEOF
34321 #define HAVE_NDBM 1
34322 _ACEOF
34323
34324  fi
34325
34326
34327         if test $ol_cv_ndbm = yes ; then
34328                 ol_link_ldbm=ndbm
34329                 ol_enable_ldbm_api=ndbm
34330
34331                 if test $ol_cv_lib_ndbm != yes ; then
34332                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34333                 fi
34334         fi
34335 fi
34336
34337 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
34338         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34339 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34340    { (exit 1); exit 1; }; }
34341 fi
34342
34343 if test $ol_enable_bdb = yes ||
34344    test $ol_enable_hdb = yes ||
34345    test $ol_enable_ldbm = yes ; then
34346         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34347 fi
34348
34349
34350 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34351         BUILD_LIBS_DYNAMIC=shared
34352
34353 cat >>confdefs.h <<\_ACEOF
34354 #define LDAP_LIBS_DYNAMIC 1
34355 _ACEOF
34356
34357         LTSTATIC=""
34358 else
34359         BUILD_LIBS_DYNAMIC=static
34360         LTSTATIC="-static"
34361 fi
34362
34363 if test $ol_enable_wrappers != no ; then
34364
34365 for ac_header in tcpd.h
34366 do
34367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34369   echo "$as_me:$LINENO: checking for $ac_header" >&5
34370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34372   echo $ECHO_N "(cached) $ECHO_C" >&6
34373 fi
34374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34376 else
34377   # Is the header compilable?
34378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34380 cat >conftest.$ac_ext <<_ACEOF
34381 /* confdefs.h.  */
34382 _ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h.  */
34386 $ac_includes_default
34387 #include <$ac_header>
34388 _ACEOF
34389 rm -f conftest.$ac_objext
34390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34391   (eval $ac_compile) 2>conftest.er1
34392   ac_status=$?
34393   grep -v '^ *+' conftest.er1 >conftest.err
34394   rm -f conftest.er1
34395   cat conftest.err >&5
34396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397   (exit $ac_status); } &&
34398          { ac_try='test -z "$ac_c_werror_flag"
34399                          || test ! -s conftest.err'
34400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34401   (eval $ac_try) 2>&5
34402   ac_status=$?
34403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404   (exit $ac_status); }; } &&
34405          { ac_try='test -s conftest.$ac_objext'
34406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407   (eval $ac_try) 2>&5
34408   ac_status=$?
34409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410   (exit $ac_status); }; }; then
34411   ac_header_compiler=yes
34412 else
34413   echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34415
34416 ac_header_compiler=no
34417 fi
34418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34420 echo "${ECHO_T}$ac_header_compiler" >&6
34421
34422 # Is the header present?
34423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34425 cat >conftest.$ac_ext <<_ACEOF
34426 /* confdefs.h.  */
34427 _ACEOF
34428 cat confdefs.h >>conftest.$ac_ext
34429 cat >>conftest.$ac_ext <<_ACEOF
34430 /* end confdefs.h.  */
34431 #include <$ac_header>
34432 _ACEOF
34433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34435   ac_status=$?
34436   grep -v '^ *+' conftest.er1 >conftest.err
34437   rm -f conftest.er1
34438   cat conftest.err >&5
34439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440   (exit $ac_status); } >/dev/null; then
34441   if test -s conftest.err; then
34442     ac_cpp_err=$ac_c_preproc_warn_flag
34443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34444   else
34445     ac_cpp_err=
34446   fi
34447 else
34448   ac_cpp_err=yes
34449 fi
34450 if test -z "$ac_cpp_err"; then
34451   ac_header_preproc=yes
34452 else
34453   echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34455
34456   ac_header_preproc=no
34457 fi
34458 rm -f conftest.err conftest.$ac_ext
34459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34460 echo "${ECHO_T}$ac_header_preproc" >&6
34461
34462 # So?  What about this header?
34463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34464   yes:no: )
34465     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34469     ac_header_preproc=yes
34470     ;;
34471   no:yes:* )
34472     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34474     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34475 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34476     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34478     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34479 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34482     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34484     (
34485       cat <<\_ASBOX
34486 ## ------------------------------------------ ##
34487 ## Report this to the AC_PACKAGE_NAME lists.  ##
34488 ## ------------------------------------------ ##
34489 _ASBOX
34490     ) |
34491       sed "s/^/$as_me: WARNING:     /" >&2
34492     ;;
34493 esac
34494 echo "$as_me:$LINENO: checking for $ac_header" >&5
34495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34497   echo $ECHO_N "(cached) $ECHO_C" >&6
34498 else
34499   eval "$as_ac_Header=\$ac_header_preproc"
34500 fi
34501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34503
34504 fi
34505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34506   cat >>confdefs.h <<_ACEOF
34507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34508 _ACEOF
34509
34510                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34511 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34512                 save_LIBS="$LIBS"
34513                 LIBS="$LIBS -lwrap"
34514                 cat >conftest.$ac_ext <<_ACEOF
34515 /* confdefs.h.  */
34516 _ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h.  */
34520
34521 #include <tcpd.h>
34522 int allow_severity = 0;
34523 int deny_severity  = 0;
34524
34525 struct request_info *req;
34526
34527 int
34528 main ()
34529 {
34530
34531 hosts_access(req)
34532
34533   ;
34534   return 0;
34535 }
34536 _ACEOF
34537 rm -f conftest.$ac_objext conftest$ac_exeext
34538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34539   (eval $ac_link) 2>conftest.er1
34540   ac_status=$?
34541   grep -v '^ *+' conftest.er1 >conftest.err
34542   rm -f conftest.er1
34543   cat conftest.err >&5
34544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545   (exit $ac_status); } &&
34546          { ac_try='test -z "$ac_c_werror_flag"
34547                          || test ! -s conftest.err'
34548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549   (eval $ac_try) 2>&5
34550   ac_status=$?
34551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552   (exit $ac_status); }; } &&
34553          { ac_try='test -s conftest$ac_exeext'
34554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555   (eval $ac_try) 2>&5
34556   ac_status=$?
34557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558   (exit $ac_status); }; }; then
34559   echo "$as_me:$LINENO: result: -lwrap" >&5
34560 echo "${ECHO_T}-lwrap" >&6
34561                 have_wrappers=yes
34562                 LIBS="$save_LIBS"
34563 else
34564   echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34566
34567
34568                                 LIBS="$LIBS -lnsl"
34569                 cat >conftest.$ac_ext <<_ACEOF
34570 /* confdefs.h.  */
34571 _ACEOF
34572 cat confdefs.h >>conftest.$ac_ext
34573 cat >>conftest.$ac_ext <<_ACEOF
34574 /* end confdefs.h.  */
34575
34576 #include <tcpd.h>
34577 int allow_severity = 0;
34578 int deny_severity  = 0;
34579
34580 struct request_info *req;
34581
34582 int
34583 main ()
34584 {
34585
34586 hosts_access(req)
34587
34588   ;
34589   return 0;
34590 }
34591 _ACEOF
34592 rm -f conftest.$ac_objext conftest$ac_exeext
34593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34594   (eval $ac_link) 2>conftest.er1
34595   ac_status=$?
34596   grep -v '^ *+' conftest.er1 >conftest.err
34597   rm -f conftest.er1
34598   cat conftest.err >&5
34599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34600   (exit $ac_status); } &&
34601          { ac_try='test -z "$ac_c_werror_flag"
34602                          || test ! -s conftest.err'
34603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34604   (eval $ac_try) 2>&5
34605   ac_status=$?
34606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607   (exit $ac_status); }; } &&
34608          { ac_try='test -s conftest$ac_exeext'
34609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34610   (eval $ac_try) 2>&5
34611   ac_status=$?
34612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613   (exit $ac_status); }; }; then
34614   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34615 echo "${ECHO_T}-lwrap -lnsl" >&6
34616                 have_wrappers=yes
34617                 LIBS="$save_LIBS -lnsl"
34618 else
34619   echo "$as_me: failed program was:" >&5
34620 sed 's/^/| /' conftest.$ac_ext >&5
34621
34622
34623                 echo "$as_me:$LINENO: result: no" >&5
34624 echo "${ECHO_T}no" >&6
34625                 have_wrappers=no
34626                 LIBS=$save_LIBS
34627 fi
34628 rm -f conftest.err conftest.$ac_objext \
34629       conftest$ac_exeext conftest.$ac_ext
34630 fi
34631 rm -f conftest.err conftest.$ac_objext \
34632       conftest$ac_exeext conftest.$ac_ext
34633 else
34634   have_wrappers=no
34635 fi
34636
34637 done
34638
34639
34640         if test $have_wrappers = yes ; then
34641
34642 cat >>confdefs.h <<\_ACEOF
34643 #define HAVE_TCPD 1
34644 _ACEOF
34645
34646                 WRAP_LIBS="-lwrap"
34647         elif test $ol_enable_wrappers = yes ; then
34648                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34649 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34650    { (exit 1); exit 1; }; }
34651         else
34652                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34653 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34654                 WRAP_LIBS=""
34655         fi
34656 fi
34657
34658 if test $ol_enable_syslog != no ; then
34659         echo "$as_me:$LINENO: checking for openlog" >&5
34660 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34661 if test "${ac_cv_func_openlog+set}" = set; then
34662   echo $ECHO_N "(cached) $ECHO_C" >&6
34663 else
34664   cat >conftest.$ac_ext <<_ACEOF
34665 /* confdefs.h.  */
34666 _ACEOF
34667 cat confdefs.h >>conftest.$ac_ext
34668 cat >>conftest.$ac_ext <<_ACEOF
34669 /* end confdefs.h.  */
34670 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34672 #define openlog innocuous_openlog
34673
34674 /* System header to define __stub macros and hopefully few prototypes,
34675     which can conflict with char openlog (); below.
34676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34677     <limits.h> exists even on freestanding compilers.  */
34678
34679 #ifdef __STDC__
34680 # include <limits.h>
34681 #else
34682 # include <assert.h>
34683 #endif
34684
34685 #undef openlog
34686
34687 /* Override any gcc2 internal prototype to avoid an error.  */
34688 #ifdef __cplusplus
34689 extern "C"
34690 {
34691 #endif
34692 /* We use char because int might match the return type of a gcc2
34693    builtin and then its argument prototype would still apply.  */
34694 char openlog ();
34695 /* The GNU C library defines this for functions which it implements
34696     to always fail with ENOSYS.  Some functions are actually named
34697     something starting with __ and the normal name is an alias.  */
34698 #if defined (__stub_openlog) || defined (__stub___openlog)
34699 choke me
34700 #else
34701 char (*f) () = openlog;
34702 #endif
34703 #ifdef __cplusplus
34704 }
34705 #endif
34706
34707 int
34708 main ()
34709 {
34710 return f != openlog;
34711   ;
34712   return 0;
34713 }
34714 _ACEOF
34715 rm -f conftest.$ac_objext conftest$ac_exeext
34716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34717   (eval $ac_link) 2>conftest.er1
34718   ac_status=$?
34719   grep -v '^ *+' conftest.er1 >conftest.err
34720   rm -f conftest.er1
34721   cat conftest.err >&5
34722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723   (exit $ac_status); } &&
34724          { ac_try='test -z "$ac_c_werror_flag"
34725                          || test ! -s conftest.err'
34726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34727   (eval $ac_try) 2>&5
34728   ac_status=$?
34729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730   (exit $ac_status); }; } &&
34731          { ac_try='test -s conftest$ac_exeext'
34732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34733   (eval $ac_try) 2>&5
34734   ac_status=$?
34735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736   (exit $ac_status); }; }; then
34737   ac_cv_func_openlog=yes
34738 else
34739   echo "$as_me: failed program was:" >&5
34740 sed 's/^/| /' conftest.$ac_ext >&5
34741
34742 ac_cv_func_openlog=no
34743 fi
34744 rm -f conftest.err conftest.$ac_objext \
34745       conftest$ac_exeext conftest.$ac_ext
34746 fi
34747 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34748 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34749
34750         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34751                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34752 echo "$as_me: error: could not find syslog" >&2;}
34753    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34754         fi
34755         ol_enable_syslog=$ac_cv_func_openlog
34756 fi
34757
34758 ol_link_sql=no
34759 if test $ol_enable_sql != no ; then
34760
34761
34762 for ac_header in sql.h sqlext.h
34763 do
34764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34766   echo "$as_me:$LINENO: checking for $ac_header" >&5
34767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34769   echo $ECHO_N "(cached) $ECHO_C" >&6
34770 fi
34771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34773 else
34774   # Is the header compilable?
34775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34777 cat >conftest.$ac_ext <<_ACEOF
34778 /* confdefs.h.  */
34779 _ACEOF
34780 cat confdefs.h >>conftest.$ac_ext
34781 cat >>conftest.$ac_ext <<_ACEOF
34782 /* end confdefs.h.  */
34783 $ac_includes_default
34784 #include <$ac_header>
34785 _ACEOF
34786 rm -f conftest.$ac_objext
34787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34788   (eval $ac_compile) 2>conftest.er1
34789   ac_status=$?
34790   grep -v '^ *+' conftest.er1 >conftest.err
34791   rm -f conftest.er1
34792   cat conftest.err >&5
34793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794   (exit $ac_status); } &&
34795          { ac_try='test -z "$ac_c_werror_flag"
34796                          || test ! -s conftest.err'
34797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34798   (eval $ac_try) 2>&5
34799   ac_status=$?
34800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801   (exit $ac_status); }; } &&
34802          { ac_try='test -s conftest.$ac_objext'
34803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34804   (eval $ac_try) 2>&5
34805   ac_status=$?
34806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807   (exit $ac_status); }; }; then
34808   ac_header_compiler=yes
34809 else
34810   echo "$as_me: failed program was:" >&5
34811 sed 's/^/| /' conftest.$ac_ext >&5
34812
34813 ac_header_compiler=no
34814 fi
34815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34817 echo "${ECHO_T}$ac_header_compiler" >&6
34818
34819 # Is the header present?
34820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34822 cat >conftest.$ac_ext <<_ACEOF
34823 /* confdefs.h.  */
34824 _ACEOF
34825 cat confdefs.h >>conftest.$ac_ext
34826 cat >>conftest.$ac_ext <<_ACEOF
34827 /* end confdefs.h.  */
34828 #include <$ac_header>
34829 _ACEOF
34830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34832   ac_status=$?
34833   grep -v '^ *+' conftest.er1 >conftest.err
34834   rm -f conftest.er1
34835   cat conftest.err >&5
34836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837   (exit $ac_status); } >/dev/null; then
34838   if test -s conftest.err; then
34839     ac_cpp_err=$ac_c_preproc_warn_flag
34840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34841   else
34842     ac_cpp_err=
34843   fi
34844 else
34845   ac_cpp_err=yes
34846 fi
34847 if test -z "$ac_cpp_err"; then
34848   ac_header_preproc=yes
34849 else
34850   echo "$as_me: failed program was:" >&5
34851 sed 's/^/| /' conftest.$ac_ext >&5
34852
34853   ac_header_preproc=no
34854 fi
34855 rm -f conftest.err conftest.$ac_ext
34856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34857 echo "${ECHO_T}$ac_header_preproc" >&6
34858
34859 # So?  What about this header?
34860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34861   yes:no: )
34862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34866     ac_header_preproc=yes
34867     ;;
34868   no:yes:* )
34869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34881     (
34882       cat <<\_ASBOX
34883 ## ------------------------------------------ ##
34884 ## Report this to the AC_PACKAGE_NAME lists.  ##
34885 ## ------------------------------------------ ##
34886 _ASBOX
34887     ) |
34888       sed "s/^/$as_me: WARNING:     /" >&2
34889     ;;
34890 esac
34891 echo "$as_me:$LINENO: checking for $ac_header" >&5
34892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34894   echo $ECHO_N "(cached) $ECHO_C" >&6
34895 else
34896   eval "$as_ac_Header=\$ac_header_preproc"
34897 fi
34898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34900
34901 fi
34902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34903   cat >>confdefs.h <<_ACEOF
34904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34905 _ACEOF
34906
34907 else
34908
34909                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34910 echo "$as_me: error: could not locate SQL headers" >&2;}
34911    { (exit 1); exit 1; }; }
34912
34913 fi
34914
34915 done
34916
34917
34918         sql_LIBS="$LIBS"
34919         LIBS="$LTHREAD_LIBS"
34920
34921         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34922 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34923 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34924   echo $ECHO_N "(cached) $ECHO_C" >&6
34925 else
34926   ac_check_lib_save_LIBS=$LIBS
34927 LIBS="-liodbc  $LIBS"
34928 cat >conftest.$ac_ext <<_ACEOF
34929 /* confdefs.h.  */
34930 _ACEOF
34931 cat confdefs.h >>conftest.$ac_ext
34932 cat >>conftest.$ac_ext <<_ACEOF
34933 /* end confdefs.h.  */
34934
34935 /* Override any gcc2 internal prototype to avoid an error.  */
34936 #ifdef __cplusplus
34937 extern "C"
34938 #endif
34939 /* We use char because int might match the return type of a gcc2
34940    builtin and then its argument prototype would still apply.  */
34941 char SQLDriverConnect ();
34942 int
34943 main ()
34944 {
34945 SQLDriverConnect ();
34946   ;
34947   return 0;
34948 }
34949 _ACEOF
34950 rm -f conftest.$ac_objext conftest$ac_exeext
34951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34952   (eval $ac_link) 2>conftest.er1
34953   ac_status=$?
34954   grep -v '^ *+' conftest.er1 >conftest.err
34955   rm -f conftest.er1
34956   cat conftest.err >&5
34957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958   (exit $ac_status); } &&
34959          { ac_try='test -z "$ac_c_werror_flag"
34960                          || test ! -s conftest.err'
34961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34962   (eval $ac_try) 2>&5
34963   ac_status=$?
34964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965   (exit $ac_status); }; } &&
34966          { ac_try='test -s conftest$ac_exeext'
34967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34968   (eval $ac_try) 2>&5
34969   ac_status=$?
34970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971   (exit $ac_status); }; }; then
34972   ac_cv_lib_iodbc_SQLDriverConnect=yes
34973 else
34974   echo "$as_me: failed program was:" >&5
34975 sed 's/^/| /' conftest.$ac_ext >&5
34976
34977 ac_cv_lib_iodbc_SQLDriverConnect=no
34978 fi
34979 rm -f conftest.err conftest.$ac_objext \
34980       conftest$ac_exeext conftest.$ac_ext
34981 LIBS=$ac_check_lib_save_LIBS
34982 fi
34983 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34984 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34985 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34986   have_iodbc=yes
34987 else
34988   have_iodbc=no
34989 fi
34990
34991         if test $have_iodbc = yes ; then
34992                 ol_link_sql="-liodbc"
34993         else
34994                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34995 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34996 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34997   echo $ECHO_N "(cached) $ECHO_C" >&6
34998 else
34999   ac_check_lib_save_LIBS=$LIBS
35000 LIBS="-lodbc  $LIBS"
35001 cat >conftest.$ac_ext <<_ACEOF
35002 /* confdefs.h.  */
35003 _ACEOF
35004 cat confdefs.h >>conftest.$ac_ext
35005 cat >>conftest.$ac_ext <<_ACEOF
35006 /* end confdefs.h.  */
35007
35008 /* Override any gcc2 internal prototype to avoid an error.  */
35009 #ifdef __cplusplus
35010 extern "C"
35011 #endif
35012 /* We use char because int might match the return type of a gcc2
35013    builtin and then its argument prototype would still apply.  */
35014 char SQLDriverConnect ();
35015 int
35016 main ()
35017 {
35018 SQLDriverConnect ();
35019   ;
35020   return 0;
35021 }
35022 _ACEOF
35023 rm -f conftest.$ac_objext conftest$ac_exeext
35024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35025   (eval $ac_link) 2>conftest.er1
35026   ac_status=$?
35027   grep -v '^ *+' conftest.er1 >conftest.err
35028   rm -f conftest.er1
35029   cat conftest.err >&5
35030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031   (exit $ac_status); } &&
35032          { ac_try='test -z "$ac_c_werror_flag"
35033                          || test ! -s conftest.err'
35034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035   (eval $ac_try) 2>&5
35036   ac_status=$?
35037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038   (exit $ac_status); }; } &&
35039          { ac_try='test -s conftest$ac_exeext'
35040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35041   (eval $ac_try) 2>&5
35042   ac_status=$?
35043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35044   (exit $ac_status); }; }; then
35045   ac_cv_lib_odbc_SQLDriverConnect=yes
35046 else
35047   echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35049
35050 ac_cv_lib_odbc_SQLDriverConnect=no
35051 fi
35052 rm -f conftest.err conftest.$ac_objext \
35053       conftest$ac_exeext conftest.$ac_ext
35054 LIBS=$ac_check_lib_save_LIBS
35055 fi
35056 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
35057 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
35058 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
35059   have_odbc=yes
35060 else
35061   have_odbc=no
35062 fi
35063
35064                 if test $have_odbc = yes ; then
35065                         ol_link_sql="-lodbc"
35066                 fi
35067         fi
35068
35069         LIBS="$sql_LIBS"
35070
35071         if test $ol_link_sql != no ; then
35072                 SLAPD_SQL_LIBS="$ol_link_sql"
35073
35074         elif test $ol_enable_sql != auto ; then
35075                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35076 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35077    { (exit 1); exit 1; }; }
35078         fi
35079 fi
35080
35081 WITH_SASL=no
35082 ol_link_sasl=no
35083 ol_link_spasswd=no
35084 if test $ol_with_cyrus_sasl != no ; then
35085
35086
35087 for ac_header in sasl/sasl.h sasl.h
35088 do
35089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35091   echo "$as_me:$LINENO: checking for $ac_header" >&5
35092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35094   echo $ECHO_N "(cached) $ECHO_C" >&6
35095 fi
35096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35098 else
35099   # Is the header compilable?
35100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35102 cat >conftest.$ac_ext <<_ACEOF
35103 /* confdefs.h.  */
35104 _ACEOF
35105 cat confdefs.h >>conftest.$ac_ext
35106 cat >>conftest.$ac_ext <<_ACEOF
35107 /* end confdefs.h.  */
35108 $ac_includes_default
35109 #include <$ac_header>
35110 _ACEOF
35111 rm -f conftest.$ac_objext
35112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35113   (eval $ac_compile) 2>conftest.er1
35114   ac_status=$?
35115   grep -v '^ *+' conftest.er1 >conftest.err
35116   rm -f conftest.er1
35117   cat conftest.err >&5
35118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35119   (exit $ac_status); } &&
35120          { ac_try='test -z "$ac_c_werror_flag"
35121                          || test ! -s conftest.err'
35122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35123   (eval $ac_try) 2>&5
35124   ac_status=$?
35125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126   (exit $ac_status); }; } &&
35127          { ac_try='test -s conftest.$ac_objext'
35128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129   (eval $ac_try) 2>&5
35130   ac_status=$?
35131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132   (exit $ac_status); }; }; then
35133   ac_header_compiler=yes
35134 else
35135   echo "$as_me: failed program was:" >&5
35136 sed 's/^/| /' conftest.$ac_ext >&5
35137
35138 ac_header_compiler=no
35139 fi
35140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35142 echo "${ECHO_T}$ac_header_compiler" >&6
35143
35144 # Is the header present?
35145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35147 cat >conftest.$ac_ext <<_ACEOF
35148 /* confdefs.h.  */
35149 _ACEOF
35150 cat confdefs.h >>conftest.$ac_ext
35151 cat >>conftest.$ac_ext <<_ACEOF
35152 /* end confdefs.h.  */
35153 #include <$ac_header>
35154 _ACEOF
35155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35157   ac_status=$?
35158   grep -v '^ *+' conftest.er1 >conftest.err
35159   rm -f conftest.er1
35160   cat conftest.err >&5
35161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35162   (exit $ac_status); } >/dev/null; then
35163   if test -s conftest.err; then
35164     ac_cpp_err=$ac_c_preproc_warn_flag
35165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35166   else
35167     ac_cpp_err=
35168   fi
35169 else
35170   ac_cpp_err=yes
35171 fi
35172 if test -z "$ac_cpp_err"; then
35173   ac_header_preproc=yes
35174 else
35175   echo "$as_me: failed program was:" >&5
35176 sed 's/^/| /' conftest.$ac_ext >&5
35177
35178   ac_header_preproc=no
35179 fi
35180 rm -f conftest.err conftest.$ac_ext
35181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35182 echo "${ECHO_T}$ac_header_preproc" >&6
35183
35184 # So?  What about this header?
35185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35186   yes:no: )
35187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35191     ac_header_preproc=yes
35192     ;;
35193   no:yes:* )
35194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35206     (
35207       cat <<\_ASBOX
35208 ## ------------------------------------------ ##
35209 ## Report this to the AC_PACKAGE_NAME lists.  ##
35210 ## ------------------------------------------ ##
35211 _ASBOX
35212     ) |
35213       sed "s/^/$as_me: WARNING:     /" >&2
35214     ;;
35215 esac
35216 echo "$as_me:$LINENO: checking for $ac_header" >&5
35217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35219   echo $ECHO_N "(cached) $ECHO_C" >&6
35220 else
35221   eval "$as_ac_Header=\$ac_header_preproc"
35222 fi
35223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35225
35226 fi
35227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35228   cat >>confdefs.h <<_ACEOF
35229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35230 _ACEOF
35231
35232 fi
35233
35234 done
35235
35236
35237         if test $ac_cv_header_sasl_sasl_h = yes ||
35238            test $ac_cv_header_sasl_h = yes; then
35239                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35240 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35241 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35242   echo $ECHO_N "(cached) $ECHO_C" >&6
35243 else
35244   ac_check_lib_save_LIBS=$LIBS
35245 LIBS="-lsasl2  $LIBS"
35246 cat >conftest.$ac_ext <<_ACEOF
35247 /* confdefs.h.  */
35248 _ACEOF
35249 cat confdefs.h >>conftest.$ac_ext
35250 cat >>conftest.$ac_ext <<_ACEOF
35251 /* end confdefs.h.  */
35252
35253 /* Override any gcc2 internal prototype to avoid an error.  */
35254 #ifdef __cplusplus
35255 extern "C"
35256 #endif
35257 /* We use char because int might match the return type of a gcc2
35258    builtin and then its argument prototype would still apply.  */
35259 char sasl_client_init ();
35260 int
35261 main ()
35262 {
35263 sasl_client_init ();
35264   ;
35265   return 0;
35266 }
35267 _ACEOF
35268 rm -f conftest.$ac_objext conftest$ac_exeext
35269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35270   (eval $ac_link) 2>conftest.er1
35271   ac_status=$?
35272   grep -v '^ *+' conftest.er1 >conftest.err
35273   rm -f conftest.er1
35274   cat conftest.err >&5
35275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276   (exit $ac_status); } &&
35277          { ac_try='test -z "$ac_c_werror_flag"
35278                          || test ! -s conftest.err'
35279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280   (eval $ac_try) 2>&5
35281   ac_status=$?
35282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283   (exit $ac_status); }; } &&
35284          { ac_try='test -s conftest$ac_exeext'
35285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35286   (eval $ac_try) 2>&5
35287   ac_status=$?
35288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289   (exit $ac_status); }; }; then
35290   ac_cv_lib_sasl2_sasl_client_init=yes
35291 else
35292   echo "$as_me: failed program was:" >&5
35293 sed 's/^/| /' conftest.$ac_ext >&5
35294
35295 ac_cv_lib_sasl2_sasl_client_init=no
35296 fi
35297 rm -f conftest.err conftest.$ac_objext \
35298       conftest$ac_exeext conftest.$ac_ext
35299 LIBS=$ac_check_lib_save_LIBS
35300 fi
35301 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35302 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35303 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35304   ol_link_sasl="-lsasl2"
35305 else
35306   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35307 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35308 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35309   echo $ECHO_N "(cached) $ECHO_C" >&6
35310 else
35311   ac_check_lib_save_LIBS=$LIBS
35312 LIBS="-lsasl  $LIBS"
35313 cat >conftest.$ac_ext <<_ACEOF
35314 /* confdefs.h.  */
35315 _ACEOF
35316 cat confdefs.h >>conftest.$ac_ext
35317 cat >>conftest.$ac_ext <<_ACEOF
35318 /* end confdefs.h.  */
35319
35320 /* Override any gcc2 internal prototype to avoid an error.  */
35321 #ifdef __cplusplus
35322 extern "C"
35323 #endif
35324 /* We use char because int might match the return type of a gcc2
35325    builtin and then its argument prototype would still apply.  */
35326 char sasl_client_init ();
35327 int
35328 main ()
35329 {
35330 sasl_client_init ();
35331   ;
35332   return 0;
35333 }
35334 _ACEOF
35335 rm -f conftest.$ac_objext conftest$ac_exeext
35336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35337   (eval $ac_link) 2>conftest.er1
35338   ac_status=$?
35339   grep -v '^ *+' conftest.er1 >conftest.err
35340   rm -f conftest.er1
35341   cat conftest.err >&5
35342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343   (exit $ac_status); } &&
35344          { ac_try='test -z "$ac_c_werror_flag"
35345                          || test ! -s conftest.err'
35346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347   (eval $ac_try) 2>&5
35348   ac_status=$?
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); }; } &&
35351          { ac_try='test -s conftest$ac_exeext'
35352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353   (eval $ac_try) 2>&5
35354   ac_status=$?
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); }; }; then
35357   ac_cv_lib_sasl_sasl_client_init=yes
35358 else
35359   echo "$as_me: failed program was:" >&5
35360 sed 's/^/| /' conftest.$ac_ext >&5
35361
35362 ac_cv_lib_sasl_sasl_client_init=no
35363 fi
35364 rm -f conftest.err conftest.$ac_objext \
35365       conftest$ac_exeext conftest.$ac_ext
35366 LIBS=$ac_check_lib_save_LIBS
35367 fi
35368 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35369 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35370 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35371   ol_link_sasl="-lsasl"
35372 fi
35373
35374 fi
35375
35376         fi
35377
35378         if test $ol_link_sasl = no ; then
35379                 if test $ol_with_cyrus_sasl != auto ; then
35380                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35381 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35382    { (exit 1); exit 1; }; }
35383                 else
35384                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35385 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35386                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35387 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35388                         if test $ol_link_tls = no ; then
35389                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35390 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35391                         fi
35392                 fi
35393         else
35394                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35395 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35396 if test "${ol_cv_sasl_compat+set}" = set; then
35397   echo $ECHO_N "(cached) $ECHO_C" >&6
35398 else
35399
35400         cat >conftest.$ac_ext <<_ACEOF
35401 /* confdefs.h.  */
35402 _ACEOF
35403 cat confdefs.h >>conftest.$ac_ext
35404 cat >>conftest.$ac_ext <<_ACEOF
35405 /* end confdefs.h.  */
35406
35407 #ifdef HAVE_SASL_SASL_H
35408 #include <sasl/sasl.h>
35409 #else
35410 #include <sasl.h>
35411 #endif
35412
35413 /* Require 2.1.15+ */
35414 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
35415         char *__sasl_compat = "2.2+ or better okay (we guess)";
35416 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
35417         && SASL_VERSION_STEP >=15
35418         char *__sasl_compat = "2.1.15+ or better okay";
35419 #endif
35420
35421 _ACEOF
35422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35423   $EGREP "__sasl_compat" >/dev/null 2>&1; then
35424   ol_cv_sasl_compat=yes
35425 else
35426   ol_cv_sasl_compat=no
35427 fi
35428 rm -f conftest*
35429
35430 fi
35431 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35432 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35433
35434                 if test $ol_cv_sasl_compat = no ; then
35435                         ol_link_sasl=no
35436                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35437 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35438    { (exit 1); exit 1; }; }
35439                 fi
35440
35441
35442 cat >>confdefs.h <<\_ACEOF
35443 #define HAVE_CYRUS_SASL 1
35444 _ACEOF
35445
35446                 SASL_LIBS="$ol_link_sasl"
35447                 if test $ol_enable_spasswd != no ; then
35448                         ol_link_spasswd=yes
35449                 fi
35450
35451                 ac_save_LIBS="$LIBS"
35452                 LIBS="$LIBS $ol_link_sasl"
35453                 echo "$as_me:$LINENO: checking for sasl_version" >&5
35454 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35455 if test "${ac_cv_func_sasl_version+set}" = set; then
35456   echo $ECHO_N "(cached) $ECHO_C" >&6
35457 else
35458   cat >conftest.$ac_ext <<_ACEOF
35459 /* confdefs.h.  */
35460 _ACEOF
35461 cat confdefs.h >>conftest.$ac_ext
35462 cat >>conftest.$ac_ext <<_ACEOF
35463 /* end confdefs.h.  */
35464 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35466 #define sasl_version innocuous_sasl_version
35467
35468 /* System header to define __stub macros and hopefully few prototypes,
35469     which can conflict with char sasl_version (); below.
35470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35471     <limits.h> exists even on freestanding compilers.  */
35472
35473 #ifdef __STDC__
35474 # include <limits.h>
35475 #else
35476 # include <assert.h>
35477 #endif
35478
35479 #undef sasl_version
35480
35481 /* Override any gcc2 internal prototype to avoid an error.  */
35482 #ifdef __cplusplus
35483 extern "C"
35484 {
35485 #endif
35486 /* We use char because int might match the return type of a gcc2
35487    builtin and then its argument prototype would still apply.  */
35488 char sasl_version ();
35489 /* The GNU C library defines this for functions which it implements
35490     to always fail with ENOSYS.  Some functions are actually named
35491     something starting with __ and the normal name is an alias.  */
35492 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35493 choke me
35494 #else
35495 char (*f) () = sasl_version;
35496 #endif
35497 #ifdef __cplusplus
35498 }
35499 #endif
35500
35501 int
35502 main ()
35503 {
35504 return f != sasl_version;
35505   ;
35506   return 0;
35507 }
35508 _ACEOF
35509 rm -f conftest.$ac_objext conftest$ac_exeext
35510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35511   (eval $ac_link) 2>conftest.er1
35512   ac_status=$?
35513   grep -v '^ *+' conftest.er1 >conftest.err
35514   rm -f conftest.er1
35515   cat conftest.err >&5
35516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517   (exit $ac_status); } &&
35518          { ac_try='test -z "$ac_c_werror_flag"
35519                          || test ! -s conftest.err'
35520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35521   (eval $ac_try) 2>&5
35522   ac_status=$?
35523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35524   (exit $ac_status); }; } &&
35525          { ac_try='test -s conftest$ac_exeext'
35526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35527   (eval $ac_try) 2>&5
35528   ac_status=$?
35529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35530   (exit $ac_status); }; }; then
35531   ac_cv_func_sasl_version=yes
35532 else
35533   echo "$as_me: failed program was:" >&5
35534 sed 's/^/| /' conftest.$ac_ext >&5
35535
35536 ac_cv_func_sasl_version=no
35537 fi
35538 rm -f conftest.err conftest.$ac_objext \
35539       conftest$ac_exeext conftest.$ac_ext
35540 fi
35541 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35542 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35543 if test $ac_cv_func_sasl_version = yes; then
35544
35545 cat >>confdefs.h <<\_ACEOF
35546 #define HAVE_SASL_VERSION 1
35547 _ACEOF
35548
35549 fi
35550
35551                 LIBS="$ac_save_LIBS"
35552
35553                 WITH_SASL=yes
35554         fi
35555
35556 else
35557         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35558 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35559         if test $ol_link_tls = no ; then
35560                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35561 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35562         fi
35563 fi
35564
35565 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
35566         dev=no
35567         if test -r /dev/urandom ; then
35568                 dev="/dev/urandom";
35569         elif test -r /idev/urandom ; then
35570                 dev="/idev/urandom";
35571         elif test -r /dev/srandom ; then
35572                 dev="/dev/srandom";
35573         elif test -r /dev/random ; then
35574                 dev="/dev/random";
35575         elif test -r /idev/random ; then
35576                 dev="/idev/random";
35577         fi
35578
35579         if test $dev != no ; then
35580
35581 cat >>confdefs.h <<_ACEOF
35582 #define URANDOM_DEVICE "$dev"
35583 _ACEOF
35584
35585         fi
35586 fi
35587
35588 ol_link_fetch=no
35589 if test $ol_with_fetch != no ; then
35590         ol_LIBS=$LIBS
35591 LIBS="-lfetch -lcom_err $LIBS"
35592 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35593 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35594 if test "${ol_cv_lib_fetch+set}" = set; then
35595   echo $ECHO_N "(cached) $ECHO_C" >&6
35596 else
35597
35598         cat >conftest.$ac_ext <<_ACEOF
35599 /* confdefs.h.  */
35600 _ACEOF
35601 cat confdefs.h >>conftest.$ac_ext
35602 cat >>conftest.$ac_ext <<_ACEOF
35603 /* end confdefs.h.  */
35604
35605 #include <sys/param.h>
35606 #include <stdio.h>
35607 #include <fetch.h>
35608 int
35609 main ()
35610 {
35611 struct url *u = fetchParseURL("file:///");
35612   ;
35613   return 0;
35614 }
35615 _ACEOF
35616 rm -f conftest.$ac_objext conftest$ac_exeext
35617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35618   (eval $ac_link) 2>conftest.er1
35619   ac_status=$?
35620   grep -v '^ *+' conftest.er1 >conftest.err
35621   rm -f conftest.er1
35622   cat conftest.err >&5
35623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624   (exit $ac_status); } &&
35625          { ac_try='test -z "$ac_c_werror_flag"
35626                          || test ! -s conftest.err'
35627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35628   (eval $ac_try) 2>&5
35629   ac_status=$?
35630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631   (exit $ac_status); }; } &&
35632          { ac_try='test -s conftest$ac_exeext'
35633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35634   (eval $ac_try) 2>&5
35635   ac_status=$?
35636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35637   (exit $ac_status); }; }; then
35638   ol_cv_lib_fetch=yes
35639 else
35640   echo "$as_me: failed program was:" >&5
35641 sed 's/^/| /' conftest.$ac_ext >&5
35642
35643 ol_cv_lib_fetch=no
35644 fi
35645 rm -f conftest.err conftest.$ac_objext \
35646       conftest$ac_exeext conftest.$ac_ext
35647 fi
35648 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35649 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35650 LIBS=$ol_LIBS
35651 if test $ol_cv_lib_fetch != no ; then
35652         ol_link_fetch="-lfetch -lcom_err"
35653
35654 cat >>confdefs.h <<\_ACEOF
35655 #define HAVE_FETCH 1
35656 _ACEOF
35657
35658 fi
35659
35660
35661         if test $ol_cv_lib_fetch != no ; then
35662                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35663                 ol_link_fetch=freebsd
35664
35665         elif test $ol_with_fetch != auto ; then
35666                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35667 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35668    { (exit 1); exit 1; }; }
35669         fi
35670 fi
35671
35672 if test $ol_enable_crypt != no ; then
35673         save_LIBS="$LIBS"
35674         LIBS="$TLS_LIBS $LIBS"
35675
35676         echo "$as_me:$LINENO: checking for crypt" >&5
35677 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35678 if test "${ac_cv_func_crypt+set}" = set; then
35679   echo $ECHO_N "(cached) $ECHO_C" >&6
35680 else
35681   cat >conftest.$ac_ext <<_ACEOF
35682 /* confdefs.h.  */
35683 _ACEOF
35684 cat confdefs.h >>conftest.$ac_ext
35685 cat >>conftest.$ac_ext <<_ACEOF
35686 /* end confdefs.h.  */
35687 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35689 #define crypt innocuous_crypt
35690
35691 /* System header to define __stub macros and hopefully few prototypes,
35692     which can conflict with char crypt (); below.
35693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35694     <limits.h> exists even on freestanding compilers.  */
35695
35696 #ifdef __STDC__
35697 # include <limits.h>
35698 #else
35699 # include <assert.h>
35700 #endif
35701
35702 #undef crypt
35703
35704 /* Override any gcc2 internal prototype to avoid an error.  */
35705 #ifdef __cplusplus
35706 extern "C"
35707 {
35708 #endif
35709 /* We use char because int might match the return type of a gcc2
35710    builtin and then its argument prototype would still apply.  */
35711 char crypt ();
35712 /* The GNU C library defines this for functions which it implements
35713     to always fail with ENOSYS.  Some functions are actually named
35714     something starting with __ and the normal name is an alias.  */
35715 #if defined (__stub_crypt) || defined (__stub___crypt)
35716 choke me
35717 #else
35718 char (*f) () = crypt;
35719 #endif
35720 #ifdef __cplusplus
35721 }
35722 #endif
35723
35724 int
35725 main ()
35726 {
35727 return f != crypt;
35728   ;
35729   return 0;
35730 }
35731 _ACEOF
35732 rm -f conftest.$ac_objext conftest$ac_exeext
35733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35734   (eval $ac_link) 2>conftest.er1
35735   ac_status=$?
35736   grep -v '^ *+' conftest.er1 >conftest.err
35737   rm -f conftest.er1
35738   cat conftest.err >&5
35739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740   (exit $ac_status); } &&
35741          { ac_try='test -z "$ac_c_werror_flag"
35742                          || test ! -s conftest.err'
35743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744   (eval $ac_try) 2>&5
35745   ac_status=$?
35746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747   (exit $ac_status); }; } &&
35748          { ac_try='test -s conftest$ac_exeext'
35749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750   (eval $ac_try) 2>&5
35751   ac_status=$?
35752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753   (exit $ac_status); }; }; then
35754   ac_cv_func_crypt=yes
35755 else
35756   echo "$as_me: failed program was:" >&5
35757 sed 's/^/| /' conftest.$ac_ext >&5
35758
35759 ac_cv_func_crypt=no
35760 fi
35761 rm -f conftest.err conftest.$ac_objext \
35762       conftest$ac_exeext conftest.$ac_ext
35763 fi
35764 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35765 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35766 if test $ac_cv_func_crypt = yes; then
35767   have_crypt=yes
35768 else
35769
35770                 LIBS="$save_LIBS"
35771                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35772 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35773 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35774   echo $ECHO_N "(cached) $ECHO_C" >&6
35775 else
35776   ac_check_lib_save_LIBS=$LIBS
35777 LIBS="-lcrypt  $LIBS"
35778 cat >conftest.$ac_ext <<_ACEOF
35779 /* confdefs.h.  */
35780 _ACEOF
35781 cat confdefs.h >>conftest.$ac_ext
35782 cat >>conftest.$ac_ext <<_ACEOF
35783 /* end confdefs.h.  */
35784
35785 /* Override any gcc2 internal prototype to avoid an error.  */
35786 #ifdef __cplusplus
35787 extern "C"
35788 #endif
35789 /* We use char because int might match the return type of a gcc2
35790    builtin and then its argument prototype would still apply.  */
35791 char crypt ();
35792 int
35793 main ()
35794 {
35795 crypt ();
35796   ;
35797   return 0;
35798 }
35799 _ACEOF
35800 rm -f conftest.$ac_objext conftest$ac_exeext
35801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35802   (eval $ac_link) 2>conftest.er1
35803   ac_status=$?
35804   grep -v '^ *+' conftest.er1 >conftest.err
35805   rm -f conftest.er1
35806   cat conftest.err >&5
35807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808   (exit $ac_status); } &&
35809          { ac_try='test -z "$ac_c_werror_flag"
35810                          || test ! -s conftest.err'
35811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35812   (eval $ac_try) 2>&5
35813   ac_status=$?
35814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815   (exit $ac_status); }; } &&
35816          { ac_try='test -s conftest$ac_exeext'
35817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35818   (eval $ac_try) 2>&5
35819   ac_status=$?
35820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821   (exit $ac_status); }; }; then
35822   ac_cv_lib_crypt_crypt=yes
35823 else
35824   echo "$as_me: failed program was:" >&5
35825 sed 's/^/| /' conftest.$ac_ext >&5
35826
35827 ac_cv_lib_crypt_crypt=no
35828 fi
35829 rm -f conftest.err conftest.$ac_objext \
35830       conftest$ac_exeext conftest.$ac_ext
35831 LIBS=$ac_check_lib_save_LIBS
35832 fi
35833 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35834 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35835 if test $ac_cv_lib_crypt_crypt = yes; then
35836   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35837                         have_crypt=yes
35838 else
35839   have_crypt=no
35840 fi
35841
35842 fi
35843
35844
35845         LIBS="$save_LIBS"
35846
35847         if test $have_crypt = yes ; then
35848
35849 cat >>confdefs.h <<\_ACEOF
35850 #define HAVE_CRYPT 1
35851 _ACEOF
35852
35853         else
35854                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35855 echo "$as_me: WARNING: could not find crypt" >&2;}
35856                 if test $ol_enable_crypt = yes ; then
35857                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35858 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35859    { (exit 1); exit 1; }; }
35860                 fi
35861
35862                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35863 echo "$as_me: WARNING: disabling crypt support" >&2;}
35864                 ol_enable_crypt=no
35865         fi
35866 fi
35867
35868 if test $ol_enable_proctitle != no ; then
35869         echo "$as_me:$LINENO: checking for setproctitle" >&5
35870 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35871 if test "${ac_cv_func_setproctitle+set}" = set; then
35872   echo $ECHO_N "(cached) $ECHO_C" >&6
35873 else
35874   cat >conftest.$ac_ext <<_ACEOF
35875 /* confdefs.h.  */
35876 _ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h.  */
35880 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35882 #define setproctitle innocuous_setproctitle
35883
35884 /* System header to define __stub macros and hopefully few prototypes,
35885     which can conflict with char setproctitle (); below.
35886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35887     <limits.h> exists even on freestanding compilers.  */
35888
35889 #ifdef __STDC__
35890 # include <limits.h>
35891 #else
35892 # include <assert.h>
35893 #endif
35894
35895 #undef setproctitle
35896
35897 /* Override any gcc2 internal prototype to avoid an error.  */
35898 #ifdef __cplusplus
35899 extern "C"
35900 {
35901 #endif
35902 /* We use char because int might match the return type of a gcc2
35903    builtin and then its argument prototype would still apply.  */
35904 char setproctitle ();
35905 /* The GNU C library defines this for functions which it implements
35906     to always fail with ENOSYS.  Some functions are actually named
35907     something starting with __ and the normal name is an alias.  */
35908 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35909 choke me
35910 #else
35911 char (*f) () = setproctitle;
35912 #endif
35913 #ifdef __cplusplus
35914 }
35915 #endif
35916
35917 int
35918 main ()
35919 {
35920 return f != setproctitle;
35921   ;
35922   return 0;
35923 }
35924 _ACEOF
35925 rm -f conftest.$ac_objext conftest$ac_exeext
35926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35927   (eval $ac_link) 2>conftest.er1
35928   ac_status=$?
35929   grep -v '^ *+' conftest.er1 >conftest.err
35930   rm -f conftest.er1
35931   cat conftest.err >&5
35932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35933   (exit $ac_status); } &&
35934          { ac_try='test -z "$ac_c_werror_flag"
35935                          || test ! -s conftest.err'
35936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35937   (eval $ac_try) 2>&5
35938   ac_status=$?
35939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940   (exit $ac_status); }; } &&
35941          { ac_try='test -s conftest$ac_exeext'
35942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35943   (eval $ac_try) 2>&5
35944   ac_status=$?
35945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946   (exit $ac_status); }; }; then
35947   ac_cv_func_setproctitle=yes
35948 else
35949   echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35951
35952 ac_cv_func_setproctitle=no
35953 fi
35954 rm -f conftest.err conftest.$ac_objext \
35955       conftest$ac_exeext conftest.$ac_ext
35956 fi
35957 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35958 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35959 if test $ac_cv_func_setproctitle = yes; then
35960   have_setproctitle=yes
35961 else
35962
35963                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35964 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35965 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35966   echo $ECHO_N "(cached) $ECHO_C" >&6
35967 else
35968   ac_check_lib_save_LIBS=$LIBS
35969 LIBS="-lutil  $LIBS"
35970 cat >conftest.$ac_ext <<_ACEOF
35971 /* confdefs.h.  */
35972 _ACEOF
35973 cat confdefs.h >>conftest.$ac_ext
35974 cat >>conftest.$ac_ext <<_ACEOF
35975 /* end confdefs.h.  */
35976
35977 /* Override any gcc2 internal prototype to avoid an error.  */
35978 #ifdef __cplusplus
35979 extern "C"
35980 #endif
35981 /* We use char because int might match the return type of a gcc2
35982    builtin and then its argument prototype would still apply.  */
35983 char setproctitle ();
35984 int
35985 main ()
35986 {
35987 setproctitle ();
35988   ;
35989   return 0;
35990 }
35991 _ACEOF
35992 rm -f conftest.$ac_objext conftest$ac_exeext
35993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35994   (eval $ac_link) 2>conftest.er1
35995   ac_status=$?
35996   grep -v '^ *+' conftest.er1 >conftest.err
35997   rm -f conftest.er1
35998   cat conftest.err >&5
35999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000   (exit $ac_status); } &&
36001          { ac_try='test -z "$ac_c_werror_flag"
36002                          || test ! -s conftest.err'
36003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36004   (eval $ac_try) 2>&5
36005   ac_status=$?
36006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36007   (exit $ac_status); }; } &&
36008          { ac_try='test -s conftest$ac_exeext'
36009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36010   (eval $ac_try) 2>&5
36011   ac_status=$?
36012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013   (exit $ac_status); }; }; then
36014   ac_cv_lib_util_setproctitle=yes
36015 else
36016   echo "$as_me: failed program was:" >&5
36017 sed 's/^/| /' conftest.$ac_ext >&5
36018
36019 ac_cv_lib_util_setproctitle=no
36020 fi
36021 rm -f conftest.err conftest.$ac_objext \
36022       conftest$ac_exeext conftest.$ac_ext
36023 LIBS=$ac_check_lib_save_LIBS
36024 fi
36025 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
36026 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
36027 if test $ac_cv_lib_util_setproctitle = yes; then
36028   have_setproctitle=yes
36029                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
36030 else
36031   have_setproctitle=no
36032                         case $LIBOBJS in
36033     "setproctitle.$ac_objext"   | \
36034   *" setproctitle.$ac_objext"   | \
36035     "setproctitle.$ac_objext "* | \
36036   *" setproctitle.$ac_objext "* ) ;;
36037   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
36038 esac
36039
36040                         LIBSRCS="$LIBSRCS setproctitle.c"
36041 fi
36042
36043 fi
36044
36045
36046         if test $have_setproctitle = yes ; then
36047
36048 cat >>confdefs.h <<\_ACEOF
36049 #define HAVE_SETPROCTITLE 1
36050 _ACEOF
36051
36052         fi
36053 fi
36054
36055 if test $ol_enable_slp != no ; then
36056
36057 for ac_header in slp.h
36058 do
36059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36061   echo "$as_me:$LINENO: checking for $ac_header" >&5
36062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36064   echo $ECHO_N "(cached) $ECHO_C" >&6
36065 fi
36066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36068 else
36069   # Is the header compilable?
36070 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36071 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36072 cat >conftest.$ac_ext <<_ACEOF
36073 /* confdefs.h.  */
36074 _ACEOF
36075 cat confdefs.h >>conftest.$ac_ext
36076 cat >>conftest.$ac_ext <<_ACEOF
36077 /* end confdefs.h.  */
36078 $ac_includes_default
36079 #include <$ac_header>
36080 _ACEOF
36081 rm -f conftest.$ac_objext
36082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36083   (eval $ac_compile) 2>conftest.er1
36084   ac_status=$?
36085   grep -v '^ *+' conftest.er1 >conftest.err
36086   rm -f conftest.er1
36087   cat conftest.err >&5
36088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089   (exit $ac_status); } &&
36090          { ac_try='test -z "$ac_c_werror_flag"
36091                          || test ! -s conftest.err'
36092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36093   (eval $ac_try) 2>&5
36094   ac_status=$?
36095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096   (exit $ac_status); }; } &&
36097          { ac_try='test -s conftest.$ac_objext'
36098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36099   (eval $ac_try) 2>&5
36100   ac_status=$?
36101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102   (exit $ac_status); }; }; then
36103   ac_header_compiler=yes
36104 else
36105   echo "$as_me: failed program was:" >&5
36106 sed 's/^/| /' conftest.$ac_ext >&5
36107
36108 ac_header_compiler=no
36109 fi
36110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36112 echo "${ECHO_T}$ac_header_compiler" >&6
36113
36114 # Is the header present?
36115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36117 cat >conftest.$ac_ext <<_ACEOF
36118 /* confdefs.h.  */
36119 _ACEOF
36120 cat confdefs.h >>conftest.$ac_ext
36121 cat >>conftest.$ac_ext <<_ACEOF
36122 /* end confdefs.h.  */
36123 #include <$ac_header>
36124 _ACEOF
36125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36126   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36127   ac_status=$?
36128   grep -v '^ *+' conftest.er1 >conftest.err
36129   rm -f conftest.er1
36130   cat conftest.err >&5
36131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132   (exit $ac_status); } >/dev/null; then
36133   if test -s conftest.err; then
36134     ac_cpp_err=$ac_c_preproc_warn_flag
36135     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36136   else
36137     ac_cpp_err=
36138   fi
36139 else
36140   ac_cpp_err=yes
36141 fi
36142 if test -z "$ac_cpp_err"; then
36143   ac_header_preproc=yes
36144 else
36145   echo "$as_me: failed program was:" >&5
36146 sed 's/^/| /' conftest.$ac_ext >&5
36147
36148   ac_header_preproc=no
36149 fi
36150 rm -f conftest.err conftest.$ac_ext
36151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36152 echo "${ECHO_T}$ac_header_preproc" >&6
36153
36154 # So?  What about this header?
36155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36156   yes:no: )
36157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36161     ac_header_preproc=yes
36162     ;;
36163   no:yes:* )
36164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36176     (
36177       cat <<\_ASBOX
36178 ## ------------------------------------------ ##
36179 ## Report this to the AC_PACKAGE_NAME lists.  ##
36180 ## ------------------------------------------ ##
36181 _ASBOX
36182     ) |
36183       sed "s/^/$as_me: WARNING:     /" >&2
36184     ;;
36185 esac
36186 echo "$as_me:$LINENO: checking for $ac_header" >&5
36187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36189   echo $ECHO_N "(cached) $ECHO_C" >&6
36190 else
36191   eval "$as_ac_Header=\$ac_header_preproc"
36192 fi
36193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36195
36196 fi
36197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36198   cat >>confdefs.h <<_ACEOF
36199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36200 _ACEOF
36201
36202 fi
36203
36204 done
36205
36206
36207         if test $ac_cv_header_slp_h = yes ; then
36208                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36209 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36210 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36211   echo $ECHO_N "(cached) $ECHO_C" >&6
36212 else
36213   ac_check_lib_save_LIBS=$LIBS
36214 LIBS="-lslp  $LIBS"
36215 cat >conftest.$ac_ext <<_ACEOF
36216 /* confdefs.h.  */
36217 _ACEOF
36218 cat confdefs.h >>conftest.$ac_ext
36219 cat >>conftest.$ac_ext <<_ACEOF
36220 /* end confdefs.h.  */
36221
36222 /* Override any gcc2 internal prototype to avoid an error.  */
36223 #ifdef __cplusplus
36224 extern "C"
36225 #endif
36226 /* We use char because int might match the return type of a gcc2
36227    builtin and then its argument prototype would still apply.  */
36228 char SLPOpen ();
36229 int
36230 main ()
36231 {
36232 SLPOpen ();
36233   ;
36234   return 0;
36235 }
36236 _ACEOF
36237 rm -f conftest.$ac_objext conftest$ac_exeext
36238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36239   (eval $ac_link) 2>conftest.er1
36240   ac_status=$?
36241   grep -v '^ *+' conftest.er1 >conftest.err
36242   rm -f conftest.er1
36243   cat conftest.err >&5
36244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245   (exit $ac_status); } &&
36246          { ac_try='test -z "$ac_c_werror_flag"
36247                          || test ! -s conftest.err'
36248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36249   (eval $ac_try) 2>&5
36250   ac_status=$?
36251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252   (exit $ac_status); }; } &&
36253          { ac_try='test -s conftest$ac_exeext'
36254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36255   (eval $ac_try) 2>&5
36256   ac_status=$?
36257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258   (exit $ac_status); }; }; then
36259   ac_cv_lib_slp_SLPOpen=yes
36260 else
36261   echo "$as_me: failed program was:" >&5
36262 sed 's/^/| /' conftest.$ac_ext >&5
36263
36264 ac_cv_lib_slp_SLPOpen=no
36265 fi
36266 rm -f conftest.err conftest.$ac_objext \
36267       conftest$ac_exeext conftest.$ac_ext
36268 LIBS=$ac_check_lib_save_LIBS
36269 fi
36270 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36271 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36272 if test $ac_cv_lib_slp_SLPOpen = yes; then
36273   have_slp=yes
36274 else
36275   have_slp=no
36276 fi
36277
36278                 if test $have_slp = yes ; then
36279
36280 cat >>confdefs.h <<\_ACEOF
36281 #define HAVE_SLP 1
36282 _ACEOF
36283
36284                         SLAPD_SLP_LIBS=-lslp
36285                 fi
36286
36287         elif test $ol_enable_slp = yes ; then
36288                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36289 echo "$as_me: error: SLP not found" >&2;}
36290    { (exit 1); exit 1; }; }
36291         fi
36292 fi
36293
36294 if test "$ol_with_multiple_precision" != "no" ; then
36295         ol_have_bignum=no
36296         ol_have_gmp=no
36297
36298
36299
36300 for ac_header in openssl/bn.h bn.h
36301 do
36302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36304   echo "$as_me:$LINENO: checking for $ac_header" >&5
36305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36307   echo $ECHO_N "(cached) $ECHO_C" >&6
36308 fi
36309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36311 else
36312   # Is the header compilable?
36313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36315 cat >conftest.$ac_ext <<_ACEOF
36316 /* confdefs.h.  */
36317 _ACEOF
36318 cat confdefs.h >>conftest.$ac_ext
36319 cat >>conftest.$ac_ext <<_ACEOF
36320 /* end confdefs.h.  */
36321 $ac_includes_default
36322 #include <$ac_header>
36323 _ACEOF
36324 rm -f conftest.$ac_objext
36325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36326   (eval $ac_compile) 2>conftest.er1
36327   ac_status=$?
36328   grep -v '^ *+' conftest.er1 >conftest.err
36329   rm -f conftest.er1
36330   cat conftest.err >&5
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); } &&
36333          { ac_try='test -z "$ac_c_werror_flag"
36334                          || test ! -s conftest.err'
36335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36336   (eval $ac_try) 2>&5
36337   ac_status=$?
36338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339   (exit $ac_status); }; } &&
36340          { ac_try='test -s conftest.$ac_objext'
36341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342   (eval $ac_try) 2>&5
36343   ac_status=$?
36344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345   (exit $ac_status); }; }; then
36346   ac_header_compiler=yes
36347 else
36348   echo "$as_me: failed program was:" >&5
36349 sed 's/^/| /' conftest.$ac_ext >&5
36350
36351 ac_header_compiler=no
36352 fi
36353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36355 echo "${ECHO_T}$ac_header_compiler" >&6
36356
36357 # Is the header present?
36358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36360 cat >conftest.$ac_ext <<_ACEOF
36361 /* confdefs.h.  */
36362 _ACEOF
36363 cat confdefs.h >>conftest.$ac_ext
36364 cat >>conftest.$ac_ext <<_ACEOF
36365 /* end confdefs.h.  */
36366 #include <$ac_header>
36367 _ACEOF
36368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36369   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36370   ac_status=$?
36371   grep -v '^ *+' conftest.er1 >conftest.err
36372   rm -f conftest.er1
36373   cat conftest.err >&5
36374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375   (exit $ac_status); } >/dev/null; then
36376   if test -s conftest.err; then
36377     ac_cpp_err=$ac_c_preproc_warn_flag
36378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36379   else
36380     ac_cpp_err=
36381   fi
36382 else
36383   ac_cpp_err=yes
36384 fi
36385 if test -z "$ac_cpp_err"; then
36386   ac_header_preproc=yes
36387 else
36388   echo "$as_me: failed program was:" >&5
36389 sed 's/^/| /' conftest.$ac_ext >&5
36390
36391   ac_header_preproc=no
36392 fi
36393 rm -f conftest.err conftest.$ac_ext
36394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36395 echo "${ECHO_T}$ac_header_preproc" >&6
36396
36397 # So?  What about this header?
36398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36399   yes:no: )
36400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36404     ac_header_preproc=yes
36405     ;;
36406   no:yes:* )
36407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36419     (
36420       cat <<\_ASBOX
36421 ## ------------------------------------------ ##
36422 ## Report this to the AC_PACKAGE_NAME lists.  ##
36423 ## ------------------------------------------ ##
36424 _ASBOX
36425     ) |
36426       sed "s/^/$as_me: WARNING:     /" >&2
36427     ;;
36428 esac
36429 echo "$as_me:$LINENO: checking for $ac_header" >&5
36430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36432   echo $ECHO_N "(cached) $ECHO_C" >&6
36433 else
36434   eval "$as_ac_Header=\$ac_header_preproc"
36435 fi
36436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36438
36439 fi
36440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36441   cat >>confdefs.h <<_ACEOF
36442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36443 _ACEOF
36444
36445 fi
36446
36447 done
36448
36449
36450
36451 for ac_header in openssl/crypto.h crypto.h
36452 do
36453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36455   echo "$as_me:$LINENO: checking for $ac_header" >&5
36456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36458   echo $ECHO_N "(cached) $ECHO_C" >&6
36459 fi
36460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36462 else
36463   # Is the header compilable?
36464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36466 cat >conftest.$ac_ext <<_ACEOF
36467 /* confdefs.h.  */
36468 _ACEOF
36469 cat confdefs.h >>conftest.$ac_ext
36470 cat >>conftest.$ac_ext <<_ACEOF
36471 /* end confdefs.h.  */
36472 $ac_includes_default
36473 #include <$ac_header>
36474 _ACEOF
36475 rm -f conftest.$ac_objext
36476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36477   (eval $ac_compile) 2>conftest.er1
36478   ac_status=$?
36479   grep -v '^ *+' conftest.er1 >conftest.err
36480   rm -f conftest.er1
36481   cat conftest.err >&5
36482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483   (exit $ac_status); } &&
36484          { ac_try='test -z "$ac_c_werror_flag"
36485                          || test ! -s conftest.err'
36486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487   (eval $ac_try) 2>&5
36488   ac_status=$?
36489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490   (exit $ac_status); }; } &&
36491          { ac_try='test -s conftest.$ac_objext'
36492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36493   (eval $ac_try) 2>&5
36494   ac_status=$?
36495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496   (exit $ac_status); }; }; then
36497   ac_header_compiler=yes
36498 else
36499   echo "$as_me: failed program was:" >&5
36500 sed 's/^/| /' conftest.$ac_ext >&5
36501
36502 ac_header_compiler=no
36503 fi
36504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36506 echo "${ECHO_T}$ac_header_compiler" >&6
36507
36508 # Is the header present?
36509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36511 cat >conftest.$ac_ext <<_ACEOF
36512 /* confdefs.h.  */
36513 _ACEOF
36514 cat confdefs.h >>conftest.$ac_ext
36515 cat >>conftest.$ac_ext <<_ACEOF
36516 /* end confdefs.h.  */
36517 #include <$ac_header>
36518 _ACEOF
36519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36521   ac_status=$?
36522   grep -v '^ *+' conftest.er1 >conftest.err
36523   rm -f conftest.er1
36524   cat conftest.err >&5
36525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36526   (exit $ac_status); } >/dev/null; then
36527   if test -s conftest.err; then
36528     ac_cpp_err=$ac_c_preproc_warn_flag
36529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36530   else
36531     ac_cpp_err=
36532   fi
36533 else
36534   ac_cpp_err=yes
36535 fi
36536 if test -z "$ac_cpp_err"; then
36537   ac_header_preproc=yes
36538 else
36539   echo "$as_me: failed program was:" >&5
36540 sed 's/^/| /' conftest.$ac_ext >&5
36541
36542   ac_header_preproc=no
36543 fi
36544 rm -f conftest.err conftest.$ac_ext
36545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36546 echo "${ECHO_T}$ac_header_preproc" >&6
36547
36548 # So?  What about this header?
36549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36550   yes:no: )
36551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36555     ac_header_preproc=yes
36556     ;;
36557   no:yes:* )
36558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36570     (
36571       cat <<\_ASBOX
36572 ## ------------------------------------------ ##
36573 ## Report this to the AC_PACKAGE_NAME lists.  ##
36574 ## ------------------------------------------ ##
36575 _ASBOX
36576     ) |
36577       sed "s/^/$as_me: WARNING:     /" >&2
36578     ;;
36579 esac
36580 echo "$as_me:$LINENO: checking for $ac_header" >&5
36581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36583   echo $ECHO_N "(cached) $ECHO_C" >&6
36584 else
36585   eval "$as_ac_Header=\$ac_header_preproc"
36586 fi
36587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36589
36590 fi
36591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36592   cat >>confdefs.h <<_ACEOF
36593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36594 _ACEOF
36595
36596 fi
36597
36598 done
36599
36600
36601 for ac_header in gmp.h
36602 do
36603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36605   echo "$as_me:$LINENO: checking for $ac_header" >&5
36606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36608   echo $ECHO_N "(cached) $ECHO_C" >&6
36609 fi
36610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36612 else
36613   # Is the header compilable?
36614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36616 cat >conftest.$ac_ext <<_ACEOF
36617 /* confdefs.h.  */
36618 _ACEOF
36619 cat confdefs.h >>conftest.$ac_ext
36620 cat >>conftest.$ac_ext <<_ACEOF
36621 /* end confdefs.h.  */
36622 $ac_includes_default
36623 #include <$ac_header>
36624 _ACEOF
36625 rm -f conftest.$ac_objext
36626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36627   (eval $ac_compile) 2>conftest.er1
36628   ac_status=$?
36629   grep -v '^ *+' conftest.er1 >conftest.err
36630   rm -f conftest.er1
36631   cat conftest.err >&5
36632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633   (exit $ac_status); } &&
36634          { ac_try='test -z "$ac_c_werror_flag"
36635                          || test ! -s conftest.err'
36636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637   (eval $ac_try) 2>&5
36638   ac_status=$?
36639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640   (exit $ac_status); }; } &&
36641          { ac_try='test -s conftest.$ac_objext'
36642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36643   (eval $ac_try) 2>&5
36644   ac_status=$?
36645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646   (exit $ac_status); }; }; then
36647   ac_header_compiler=yes
36648 else
36649   echo "$as_me: failed program was:" >&5
36650 sed 's/^/| /' conftest.$ac_ext >&5
36651
36652 ac_header_compiler=no
36653 fi
36654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36656 echo "${ECHO_T}$ac_header_compiler" >&6
36657
36658 # Is the header present?
36659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36661 cat >conftest.$ac_ext <<_ACEOF
36662 /* confdefs.h.  */
36663 _ACEOF
36664 cat confdefs.h >>conftest.$ac_ext
36665 cat >>conftest.$ac_ext <<_ACEOF
36666 /* end confdefs.h.  */
36667 #include <$ac_header>
36668 _ACEOF
36669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36671   ac_status=$?
36672   grep -v '^ *+' conftest.er1 >conftest.err
36673   rm -f conftest.er1
36674   cat conftest.err >&5
36675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676   (exit $ac_status); } >/dev/null; then
36677   if test -s conftest.err; then
36678     ac_cpp_err=$ac_c_preproc_warn_flag
36679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36680   else
36681     ac_cpp_err=
36682   fi
36683 else
36684   ac_cpp_err=yes
36685 fi
36686 if test -z "$ac_cpp_err"; then
36687   ac_header_preproc=yes
36688 else
36689   echo "$as_me: failed program was:" >&5
36690 sed 's/^/| /' conftest.$ac_ext >&5
36691
36692   ac_header_preproc=no
36693 fi
36694 rm -f conftest.err conftest.$ac_ext
36695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36696 echo "${ECHO_T}$ac_header_preproc" >&6
36697
36698 # So?  What about this header?
36699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36700   yes:no: )
36701     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36705     ac_header_preproc=yes
36706     ;;
36707   no:yes:* )
36708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36710     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36711 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36712     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36714     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36715 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36718     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36720     (
36721       cat <<\_ASBOX
36722 ## ------------------------------------------ ##
36723 ## Report this to the AC_PACKAGE_NAME lists.  ##
36724 ## ------------------------------------------ ##
36725 _ASBOX
36726     ) |
36727       sed "s/^/$as_me: WARNING:     /" >&2
36728     ;;
36729 esac
36730 echo "$as_me:$LINENO: checking for $ac_header" >&5
36731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36733   echo $ECHO_N "(cached) $ECHO_C" >&6
36734 else
36735   eval "$as_ac_Header=\$ac_header_preproc"
36736 fi
36737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36739
36740 fi
36741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36742   cat >>confdefs.h <<_ACEOF
36743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36744 _ACEOF
36745
36746 fi
36747
36748 done
36749
36750
36751         if test "$ol_with_tls" = "found" ; then
36752                 ol_have_bn_h=no
36753                 ol_have_crypto_h=no
36754
36755                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
36756                    test "$ac_cv_header_bn_h" = "yes" ; then
36757                         ol_have_bn_h=yes
36758                 fi
36759
36760                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
36761                    test "$ac_cv_header_crypto_h" = "yes" ; then
36762                         ol_have_crypto_h=yes
36763                 fi
36764
36765                 if test "$ol_have_bn_h" = "yes" &&
36766                    test "$ol_have_crypto_h" = "yes" ; then
36767                         ol_have_bignum=yes
36768                 fi
36769         fi
36770
36771         if test $ac_cv_header_gmp_h = yes ; then
36772                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36773 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36774 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36775   echo $ECHO_N "(cached) $ECHO_C" >&6
36776 else
36777   ac_check_lib_save_LIBS=$LIBS
36778 LIBS="-lgmp  $LIBS"
36779 cat >conftest.$ac_ext <<_ACEOF
36780 /* confdefs.h.  */
36781 _ACEOF
36782 cat confdefs.h >>conftest.$ac_ext
36783 cat >>conftest.$ac_ext <<_ACEOF
36784 /* end confdefs.h.  */
36785
36786 /* Override any gcc2 internal prototype to avoid an error.  */
36787 #ifdef __cplusplus
36788 extern "C"
36789 #endif
36790 /* We use char because int might match the return type of a gcc2
36791    builtin and then its argument prototype would still apply.  */
36792 char __gmpz_add_ui ();
36793 int
36794 main ()
36795 {
36796 __gmpz_add_ui ();
36797   ;
36798   return 0;
36799 }
36800 _ACEOF
36801 rm -f conftest.$ac_objext conftest$ac_exeext
36802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36803   (eval $ac_link) 2>conftest.er1
36804   ac_status=$?
36805   grep -v '^ *+' conftest.er1 >conftest.err
36806   rm -f conftest.er1
36807   cat conftest.err >&5
36808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809   (exit $ac_status); } &&
36810          { ac_try='test -z "$ac_c_werror_flag"
36811                          || test ! -s conftest.err'
36812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813   (eval $ac_try) 2>&5
36814   ac_status=$?
36815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816   (exit $ac_status); }; } &&
36817          { ac_try='test -s conftest$ac_exeext'
36818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36819   (eval $ac_try) 2>&5
36820   ac_status=$?
36821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822   (exit $ac_status); }; }; then
36823   ac_cv_lib_gmp___gmpz_add_ui=yes
36824 else
36825   echo "$as_me: failed program was:" >&5
36826 sed 's/^/| /' conftest.$ac_ext >&5
36827
36828 ac_cv_lib_gmp___gmpz_add_ui=no
36829 fi
36830 rm -f conftest.err conftest.$ac_objext \
36831       conftest$ac_exeext conftest.$ac_ext
36832 LIBS=$ac_check_lib_save_LIBS
36833 fi
36834 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36835 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36836 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36837   have_gmp=yes
36838 else
36839   have_gmp=no
36840 fi
36841
36842                 if test $have_gmp = yes ; then
36843                         ol_have_gmp=yes
36844                 fi
36845         fi
36846
36847         echo "$as_me:$LINENO: checking for multiple precision support" >&5
36848 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36849
36850         ol_mp_support="none"
36851         case "$ol_with_multiple_precision" in
36852         auto)
36853                                                                                 if test "$ol_have_bignum" = "yes" ; then
36854                         ol_mp_support="bignum"
36855                 else
36856                         if test "$ol_have_gmp" = "yes" ; then
36857                                 ol_mp_support="gmp"
36858                         fi
36859                 fi
36860                 ;;
36861         bignum)
36862                 if test "$ol_have_bignum" != "yes" ; then
36863                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36864 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36865    { (exit 1); exit 1; }; }
36866                 fi
36867                 ol_mp_support="bignum"
36868                 ;;
36869         gmp)
36870                 if test "$ol_have_gmp" != "yes" ; then
36871                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
36872 echo "$as_me: error: GMP not available" >&2;}
36873    { (exit 1); exit 1; }; }
36874                 fi
36875                 ol_mp_support="gmp"
36876                 ;;
36877         yes)
36878                 if test "$ol_have_bignum" = "yes" ; then
36879                         ol_mp_support="bignum"
36880                 elif test "$ol_have_gmp" = "yes" ; then
36881                         ol_mp_support="gmp"
36882                 else
36883                         { { echo "$as_me:$LINENO: error: not available" >&5
36884 echo "$as_me: error: not available" >&2;}
36885    { (exit 1); exit 1; }; }
36886                 fi
36887                 ;;
36888         esac
36889
36890         case "$ol_mp_support" in
36891         bignum)
36892
36893 cat >>confdefs.h <<\_ACEOF
36894 #define HAVE_BIGNUM 1
36895 _ACEOF
36896
36897                 ;;
36898         gmp)
36899
36900 cat >>confdefs.h <<\_ACEOF
36901 #define HAVE_GMP 1
36902 _ACEOF
36903
36904                 SLAPD_GMP_LIBS=-lgmp
36905                 ;;
36906         none)
36907                 ;;
36908         esac
36909
36910         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36911 echo "${ECHO_T}$ol_mp_support" >&6
36912 fi
36913
36914
36915 echo "$as_me:$LINENO: checking for mode_t" >&5
36916 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36917 if test "${ac_cv_type_mode_t+set}" = set; then
36918   echo $ECHO_N "(cached) $ECHO_C" >&6
36919 else
36920   cat >conftest.$ac_ext <<_ACEOF
36921 /* confdefs.h.  */
36922 _ACEOF
36923 cat confdefs.h >>conftest.$ac_ext
36924 cat >>conftest.$ac_ext <<_ACEOF
36925 /* end confdefs.h.  */
36926 $ac_includes_default
36927 int
36928 main ()
36929 {
36930 if ((mode_t *) 0)
36931   return 0;
36932 if (sizeof (mode_t))
36933   return 0;
36934   ;
36935   return 0;
36936 }
36937 _ACEOF
36938 rm -f conftest.$ac_objext
36939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36940   (eval $ac_compile) 2>conftest.er1
36941   ac_status=$?
36942   grep -v '^ *+' conftest.er1 >conftest.err
36943   rm -f conftest.er1
36944   cat conftest.err >&5
36945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946   (exit $ac_status); } &&
36947          { ac_try='test -z "$ac_c_werror_flag"
36948                          || test ! -s conftest.err'
36949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36950   (eval $ac_try) 2>&5
36951   ac_status=$?
36952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953   (exit $ac_status); }; } &&
36954          { ac_try='test -s conftest.$ac_objext'
36955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956   (eval $ac_try) 2>&5
36957   ac_status=$?
36958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959   (exit $ac_status); }; }; then
36960   ac_cv_type_mode_t=yes
36961 else
36962   echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36964
36965 ac_cv_type_mode_t=no
36966 fi
36967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36968 fi
36969 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36970 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36971 if test $ac_cv_type_mode_t = yes; then
36972   :
36973 else
36974
36975 cat >>confdefs.h <<_ACEOF
36976 #define mode_t int
36977 _ACEOF
36978
36979 fi
36980
36981 echo "$as_me:$LINENO: checking for off_t" >&5
36982 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36983 if test "${ac_cv_type_off_t+set}" = set; then
36984   echo $ECHO_N "(cached) $ECHO_C" >&6
36985 else
36986   cat >conftest.$ac_ext <<_ACEOF
36987 /* confdefs.h.  */
36988 _ACEOF
36989 cat confdefs.h >>conftest.$ac_ext
36990 cat >>conftest.$ac_ext <<_ACEOF
36991 /* end confdefs.h.  */
36992 $ac_includes_default
36993 int
36994 main ()
36995 {
36996 if ((off_t *) 0)
36997   return 0;
36998 if (sizeof (off_t))
36999   return 0;
37000   ;
37001   return 0;
37002 }
37003 _ACEOF
37004 rm -f conftest.$ac_objext
37005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37006   (eval $ac_compile) 2>conftest.er1
37007   ac_status=$?
37008   grep -v '^ *+' conftest.er1 >conftest.err
37009   rm -f conftest.er1
37010   cat conftest.err >&5
37011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012   (exit $ac_status); } &&
37013          { ac_try='test -z "$ac_c_werror_flag"
37014                          || test ! -s conftest.err'
37015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37016   (eval $ac_try) 2>&5
37017   ac_status=$?
37018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); }; } &&
37020          { ac_try='test -s conftest.$ac_objext'
37021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37022   (eval $ac_try) 2>&5
37023   ac_status=$?
37024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025   (exit $ac_status); }; }; then
37026   ac_cv_type_off_t=yes
37027 else
37028   echo "$as_me: failed program was:" >&5
37029 sed 's/^/| /' conftest.$ac_ext >&5
37030
37031 ac_cv_type_off_t=no
37032 fi
37033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37034 fi
37035 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37036 echo "${ECHO_T}$ac_cv_type_off_t" >&6
37037 if test $ac_cv_type_off_t = yes; then
37038   :
37039 else
37040
37041 cat >>confdefs.h <<_ACEOF
37042 #define off_t long
37043 _ACEOF
37044
37045 fi
37046
37047 echo "$as_me:$LINENO: checking for pid_t" >&5
37048 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
37049 if test "${ac_cv_type_pid_t+set}" = set; then
37050   echo $ECHO_N "(cached) $ECHO_C" >&6
37051 else
37052   cat >conftest.$ac_ext <<_ACEOF
37053 /* confdefs.h.  */
37054 _ACEOF
37055 cat confdefs.h >>conftest.$ac_ext
37056 cat >>conftest.$ac_ext <<_ACEOF
37057 /* end confdefs.h.  */
37058 $ac_includes_default
37059 int
37060 main ()
37061 {
37062 if ((pid_t *) 0)
37063   return 0;
37064 if (sizeof (pid_t))
37065   return 0;
37066   ;
37067   return 0;
37068 }
37069 _ACEOF
37070 rm -f conftest.$ac_objext
37071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37072   (eval $ac_compile) 2>conftest.er1
37073   ac_status=$?
37074   grep -v '^ *+' conftest.er1 >conftest.err
37075   rm -f conftest.er1
37076   cat conftest.err >&5
37077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078   (exit $ac_status); } &&
37079          { ac_try='test -z "$ac_c_werror_flag"
37080                          || test ! -s conftest.err'
37081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082   (eval $ac_try) 2>&5
37083   ac_status=$?
37084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085   (exit $ac_status); }; } &&
37086          { ac_try='test -s conftest.$ac_objext'
37087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37088   (eval $ac_try) 2>&5
37089   ac_status=$?
37090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091   (exit $ac_status); }; }; then
37092   ac_cv_type_pid_t=yes
37093 else
37094   echo "$as_me: failed program was:" >&5
37095 sed 's/^/| /' conftest.$ac_ext >&5
37096
37097 ac_cv_type_pid_t=no
37098 fi
37099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37100 fi
37101 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37102 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37103 if test $ac_cv_type_pid_t = yes; then
37104   :
37105 else
37106
37107 cat >>confdefs.h <<_ACEOF
37108 #define pid_t int
37109 _ACEOF
37110
37111 fi
37112
37113 echo "$as_me:$LINENO: checking for ssize_t" >&5
37114 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37115 if test "${ac_cv_type_ssize_t+set}" = set; then
37116   echo $ECHO_N "(cached) $ECHO_C" >&6
37117 else
37118   cat >conftest.$ac_ext <<_ACEOF
37119 /* confdefs.h.  */
37120 _ACEOF
37121 cat confdefs.h >>conftest.$ac_ext
37122 cat >>conftest.$ac_ext <<_ACEOF
37123 /* end confdefs.h.  */
37124 $ac_includes_default
37125 int
37126 main ()
37127 {
37128 if ((ssize_t *) 0)
37129   return 0;
37130 if (sizeof (ssize_t))
37131   return 0;
37132   ;
37133   return 0;
37134 }
37135 _ACEOF
37136 rm -f conftest.$ac_objext
37137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37138   (eval $ac_compile) 2>conftest.er1
37139   ac_status=$?
37140   grep -v '^ *+' conftest.er1 >conftest.err
37141   rm -f conftest.er1
37142   cat conftest.err >&5
37143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144   (exit $ac_status); } &&
37145          { ac_try='test -z "$ac_c_werror_flag"
37146                          || test ! -s conftest.err'
37147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37148   (eval $ac_try) 2>&5
37149   ac_status=$?
37150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151   (exit $ac_status); }; } &&
37152          { ac_try='test -s conftest.$ac_objext'
37153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154   (eval $ac_try) 2>&5
37155   ac_status=$?
37156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157   (exit $ac_status); }; }; then
37158   ac_cv_type_ssize_t=yes
37159 else
37160   echo "$as_me: failed program was:" >&5
37161 sed 's/^/| /' conftest.$ac_ext >&5
37162
37163 ac_cv_type_ssize_t=no
37164 fi
37165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37166 fi
37167 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37168 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37169 if test $ac_cv_type_ssize_t = yes; then
37170   :
37171 else
37172
37173 cat >>confdefs.h <<_ACEOF
37174 #define ssize_t signed int
37175 _ACEOF
37176
37177 fi
37178
37179 echo "$as_me:$LINENO: checking for caddr_t" >&5
37180 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37181 if test "${ac_cv_type_caddr_t+set}" = set; then
37182   echo $ECHO_N "(cached) $ECHO_C" >&6
37183 else
37184   cat >conftest.$ac_ext <<_ACEOF
37185 /* confdefs.h.  */
37186 _ACEOF
37187 cat confdefs.h >>conftest.$ac_ext
37188 cat >>conftest.$ac_ext <<_ACEOF
37189 /* end confdefs.h.  */
37190 $ac_includes_default
37191 int
37192 main ()
37193 {
37194 if ((caddr_t *) 0)
37195   return 0;
37196 if (sizeof (caddr_t))
37197   return 0;
37198   ;
37199   return 0;
37200 }
37201 _ACEOF
37202 rm -f conftest.$ac_objext
37203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37204   (eval $ac_compile) 2>conftest.er1
37205   ac_status=$?
37206   grep -v '^ *+' conftest.er1 >conftest.err
37207   rm -f conftest.er1
37208   cat conftest.err >&5
37209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37210   (exit $ac_status); } &&
37211          { ac_try='test -z "$ac_c_werror_flag"
37212                          || test ! -s conftest.err'
37213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37214   (eval $ac_try) 2>&5
37215   ac_status=$?
37216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217   (exit $ac_status); }; } &&
37218          { ac_try='test -s conftest.$ac_objext'
37219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37220   (eval $ac_try) 2>&5
37221   ac_status=$?
37222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223   (exit $ac_status); }; }; then
37224   ac_cv_type_caddr_t=yes
37225 else
37226   echo "$as_me: failed program was:" >&5
37227 sed 's/^/| /' conftest.$ac_ext >&5
37228
37229 ac_cv_type_caddr_t=no
37230 fi
37231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37232 fi
37233 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37234 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37235 if test $ac_cv_type_caddr_t = yes; then
37236   :
37237 else
37238
37239 cat >>confdefs.h <<_ACEOF
37240 #define caddr_t char *
37241 _ACEOF
37242
37243 fi
37244
37245 echo "$as_me:$LINENO: checking for size_t" >&5
37246 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37247 if test "${ac_cv_type_size_t+set}" = set; then
37248   echo $ECHO_N "(cached) $ECHO_C" >&6
37249 else
37250   cat >conftest.$ac_ext <<_ACEOF
37251 /* confdefs.h.  */
37252 _ACEOF
37253 cat confdefs.h >>conftest.$ac_ext
37254 cat >>conftest.$ac_ext <<_ACEOF
37255 /* end confdefs.h.  */
37256 $ac_includes_default
37257 int
37258 main ()
37259 {
37260 if ((size_t *) 0)
37261   return 0;
37262 if (sizeof (size_t))
37263   return 0;
37264   ;
37265   return 0;
37266 }
37267 _ACEOF
37268 rm -f conftest.$ac_objext
37269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37270   (eval $ac_compile) 2>conftest.er1
37271   ac_status=$?
37272   grep -v '^ *+' conftest.er1 >conftest.err
37273   rm -f conftest.er1
37274   cat conftest.err >&5
37275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37276   (exit $ac_status); } &&
37277          { ac_try='test -z "$ac_c_werror_flag"
37278                          || test ! -s conftest.err'
37279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37280   (eval $ac_try) 2>&5
37281   ac_status=$?
37282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283   (exit $ac_status); }; } &&
37284          { ac_try='test -s conftest.$ac_objext'
37285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37286   (eval $ac_try) 2>&5
37287   ac_status=$?
37288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289   (exit $ac_status); }; }; then
37290   ac_cv_type_size_t=yes
37291 else
37292   echo "$as_me: failed program was:" >&5
37293 sed 's/^/| /' conftest.$ac_ext >&5
37294
37295 ac_cv_type_size_t=no
37296 fi
37297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37298 fi
37299 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37300 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37301 if test $ac_cv_type_size_t = yes; then
37302   :
37303 else
37304
37305 cat >>confdefs.h <<_ACEOF
37306 #define size_t unsigned
37307 _ACEOF
37308
37309 fi
37310
37311
37312 echo "$as_me:$LINENO: checking for long long" >&5
37313 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37314 if test "${ac_cv_type_long_long+set}" = set; then
37315   echo $ECHO_N "(cached) $ECHO_C" >&6
37316 else
37317   cat >conftest.$ac_ext <<_ACEOF
37318 /* confdefs.h.  */
37319 _ACEOF
37320 cat confdefs.h >>conftest.$ac_ext
37321 cat >>conftest.$ac_ext <<_ACEOF
37322 /* end confdefs.h.  */
37323 $ac_includes_default
37324 int
37325 main ()
37326 {
37327 if ((long long *) 0)
37328   return 0;
37329 if (sizeof (long long))
37330   return 0;
37331   ;
37332   return 0;
37333 }
37334 _ACEOF
37335 rm -f conftest.$ac_objext
37336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37337   (eval $ac_compile) 2>conftest.er1
37338   ac_status=$?
37339   grep -v '^ *+' conftest.er1 >conftest.err
37340   rm -f conftest.er1
37341   cat conftest.err >&5
37342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343   (exit $ac_status); } &&
37344          { ac_try='test -z "$ac_c_werror_flag"
37345                          || test ! -s conftest.err'
37346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37347   (eval $ac_try) 2>&5
37348   ac_status=$?
37349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350   (exit $ac_status); }; } &&
37351          { ac_try='test -s conftest.$ac_objext'
37352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37353   (eval $ac_try) 2>&5
37354   ac_status=$?
37355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356   (exit $ac_status); }; }; then
37357   ac_cv_type_long_long=yes
37358 else
37359   echo "$as_me: failed program was:" >&5
37360 sed 's/^/| /' conftest.$ac_ext >&5
37361
37362 ac_cv_type_long_long=no
37363 fi
37364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37365 fi
37366 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37367 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37368 if test $ac_cv_type_long_long = yes; then
37369
37370 cat >>confdefs.h <<_ACEOF
37371 #define HAVE_LONG_LONG 1
37372 _ACEOF
37373
37374
37375 fi
37376
37377 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37378 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37379 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37380   echo $ECHO_N "(cached) $ECHO_C" >&6
37381 else
37382   cat >conftest.$ac_ext <<_ACEOF
37383 /* confdefs.h.  */
37384 _ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h.  */
37388 $ac_includes_default
37389 int
37390 main ()
37391 {
37392 if ((ptrdiff_t *) 0)
37393   return 0;
37394 if (sizeof (ptrdiff_t))
37395   return 0;
37396   ;
37397   return 0;
37398 }
37399 _ACEOF
37400 rm -f conftest.$ac_objext
37401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37402   (eval $ac_compile) 2>conftest.er1
37403   ac_status=$?
37404   grep -v '^ *+' conftest.er1 >conftest.err
37405   rm -f conftest.er1
37406   cat conftest.err >&5
37407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408   (exit $ac_status); } &&
37409          { ac_try='test -z "$ac_c_werror_flag"
37410                          || test ! -s conftest.err'
37411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37412   (eval $ac_try) 2>&5
37413   ac_status=$?
37414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415   (exit $ac_status); }; } &&
37416          { ac_try='test -s conftest.$ac_objext'
37417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418   (eval $ac_try) 2>&5
37419   ac_status=$?
37420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421   (exit $ac_status); }; }; then
37422   ac_cv_type_ptrdiff_t=yes
37423 else
37424   echo "$as_me: failed program was:" >&5
37425 sed 's/^/| /' conftest.$ac_ext >&5
37426
37427 ac_cv_type_ptrdiff_t=no
37428 fi
37429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37430 fi
37431 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37432 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37433 if test $ac_cv_type_ptrdiff_t = yes; then
37434
37435 cat >>confdefs.h <<_ACEOF
37436 #define HAVE_PTRDIFF_T 1
37437 _ACEOF
37438
37439
37440 fi
37441
37442
37443 echo "$as_me:$LINENO: checking for socklen_t" >&5
37444 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37445 if test "${ac_cv_type_socklen_t+set}" = set; then
37446   echo $ECHO_N "(cached) $ECHO_C" >&6
37447 else
37448   cat >conftest.$ac_ext <<_ACEOF
37449 /* confdefs.h.  */
37450 _ACEOF
37451 cat confdefs.h >>conftest.$ac_ext
37452 cat >>conftest.$ac_ext <<_ACEOF
37453 /* end confdefs.h.  */
37454 $ac_includes_default
37455 #ifdef HAVE_SYS_SOCKET_H
37456 #include <sys/socket.h>
37457 #endif
37458
37459
37460 int
37461 main ()
37462 {
37463 if ((socklen_t *) 0)
37464   return 0;
37465 if (sizeof (socklen_t))
37466   return 0;
37467   ;
37468   return 0;
37469 }
37470 _ACEOF
37471 rm -f conftest.$ac_objext
37472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37473   (eval $ac_compile) 2>conftest.er1
37474   ac_status=$?
37475   grep -v '^ *+' conftest.er1 >conftest.err
37476   rm -f conftest.er1
37477   cat conftest.err >&5
37478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479   (exit $ac_status); } &&
37480          { ac_try='test -z "$ac_c_werror_flag"
37481                          || test ! -s conftest.err'
37482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37483   (eval $ac_try) 2>&5
37484   ac_status=$?
37485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486   (exit $ac_status); }; } &&
37487          { ac_try='test -s conftest.$ac_objext'
37488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37489   (eval $ac_try) 2>&5
37490   ac_status=$?
37491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37492   (exit $ac_status); }; }; then
37493   ac_cv_type_socklen_t=yes
37494 else
37495   echo "$as_me: failed program was:" >&5
37496 sed 's/^/| /' conftest.$ac_ext >&5
37497
37498 ac_cv_type_socklen_t=no
37499 fi
37500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37501 fi
37502 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37503 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37504 if test $ac_cv_type_socklen_t = yes; then
37505   :
37506 else
37507
37508 cat >>confdefs.h <<_ACEOF
37509 #define socklen_t int
37510 _ACEOF
37511
37512 fi
37513
37514
37515 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37516 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37517 if test "${ac_cv_type_signal+set}" = set; then
37518   echo $ECHO_N "(cached) $ECHO_C" >&6
37519 else
37520   cat >conftest.$ac_ext <<_ACEOF
37521 /* confdefs.h.  */
37522 _ACEOF
37523 cat confdefs.h >>conftest.$ac_ext
37524 cat >>conftest.$ac_ext <<_ACEOF
37525 /* end confdefs.h.  */
37526 #include <sys/types.h>
37527 #include <signal.h>
37528 #ifdef signal
37529 # undef signal
37530 #endif
37531 #ifdef __cplusplus
37532 extern "C" void (*signal (int, void (*)(int)))(int);
37533 #else
37534 void (*signal ()) ();
37535 #endif
37536
37537 int
37538 main ()
37539 {
37540 int i;
37541   ;
37542   return 0;
37543 }
37544 _ACEOF
37545 rm -f conftest.$ac_objext
37546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37547   (eval $ac_compile) 2>conftest.er1
37548   ac_status=$?
37549   grep -v '^ *+' conftest.er1 >conftest.err
37550   rm -f conftest.er1
37551   cat conftest.err >&5
37552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553   (exit $ac_status); } &&
37554          { ac_try='test -z "$ac_c_werror_flag"
37555                          || test ! -s conftest.err'
37556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37557   (eval $ac_try) 2>&5
37558   ac_status=$?
37559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560   (exit $ac_status); }; } &&
37561          { ac_try='test -s conftest.$ac_objext'
37562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37563   (eval $ac_try) 2>&5
37564   ac_status=$?
37565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566   (exit $ac_status); }; }; then
37567   ac_cv_type_signal=void
37568 else
37569   echo "$as_me: failed program was:" >&5
37570 sed 's/^/| /' conftest.$ac_ext >&5
37571
37572 ac_cv_type_signal=int
37573 fi
37574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37575 fi
37576 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37577 echo "${ECHO_T}$ac_cv_type_signal" >&6
37578
37579 cat >>confdefs.h <<_ACEOF
37580 #define RETSIGTYPE $ac_cv_type_signal
37581 _ACEOF
37582
37583
37584
37585 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37586 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37587 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37588   echo $ECHO_N "(cached) $ECHO_C" >&6
37589 else
37590   cat >conftest.$ac_ext <<_ACEOF
37591 /* confdefs.h.  */
37592 _ACEOF
37593 cat confdefs.h >>conftest.$ac_ext
37594 cat >>conftest.$ac_ext <<_ACEOF
37595 /* end confdefs.h.  */
37596 $ac_includes_default
37597 #include <signal.h>
37598
37599
37600 int
37601 main ()
37602 {
37603 if ((sig_atomic_t *) 0)
37604   return 0;
37605 if (sizeof (sig_atomic_t))
37606   return 0;
37607   ;
37608   return 0;
37609 }
37610 _ACEOF
37611 rm -f conftest.$ac_objext
37612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37613   (eval $ac_compile) 2>conftest.er1
37614   ac_status=$?
37615   grep -v '^ *+' conftest.er1 >conftest.err
37616   rm -f conftest.er1
37617   cat conftest.err >&5
37618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619   (exit $ac_status); } &&
37620          { ac_try='test -z "$ac_c_werror_flag"
37621                          || test ! -s conftest.err'
37622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37623   (eval $ac_try) 2>&5
37624   ac_status=$?
37625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37626   (exit $ac_status); }; } &&
37627          { ac_try='test -s conftest.$ac_objext'
37628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37629   (eval $ac_try) 2>&5
37630   ac_status=$?
37631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632   (exit $ac_status); }; }; then
37633   ac_cv_type_sig_atomic_t=yes
37634 else
37635   echo "$as_me: failed program was:" >&5
37636 sed 's/^/| /' conftest.$ac_ext >&5
37637
37638 ac_cv_type_sig_atomic_t=no
37639 fi
37640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37641 fi
37642 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37643 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37644 if test $ac_cv_type_sig_atomic_t = yes; then
37645   :
37646 else
37647
37648 cat >>confdefs.h <<_ACEOF
37649 #define sig_atomic_t int
37650 _ACEOF
37651
37652 fi
37653
37654
37655 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37656 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37657 if test "${ac_cv_type_uid_t+set}" = set; then
37658   echo $ECHO_N "(cached) $ECHO_C" >&6
37659 else
37660   cat >conftest.$ac_ext <<_ACEOF
37661 /* confdefs.h.  */
37662 _ACEOF
37663 cat confdefs.h >>conftest.$ac_ext
37664 cat >>conftest.$ac_ext <<_ACEOF
37665 /* end confdefs.h.  */
37666 #include <sys/types.h>
37667
37668 _ACEOF
37669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37670   $EGREP "uid_t" >/dev/null 2>&1; then
37671   ac_cv_type_uid_t=yes
37672 else
37673   ac_cv_type_uid_t=no
37674 fi
37675 rm -f conftest*
37676
37677 fi
37678 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37679 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37680 if test $ac_cv_type_uid_t = no; then
37681
37682 cat >>confdefs.h <<\_ACEOF
37683 #define uid_t int
37684 _ACEOF
37685
37686
37687 cat >>confdefs.h <<\_ACEOF
37688 #define gid_t int
37689 _ACEOF
37690
37691 fi
37692
37693
37694 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37695 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37696 if test "${ac_cv_header_time+set}" = set; then
37697   echo $ECHO_N "(cached) $ECHO_C" >&6
37698 else
37699   cat >conftest.$ac_ext <<_ACEOF
37700 /* confdefs.h.  */
37701 _ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h.  */
37705 #include <sys/types.h>
37706 #include <sys/time.h>
37707 #include <time.h>
37708
37709 int
37710 main ()
37711 {
37712 if ((struct tm *) 0)
37713 return 0;
37714   ;
37715   return 0;
37716 }
37717 _ACEOF
37718 rm -f conftest.$ac_objext
37719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37720   (eval $ac_compile) 2>conftest.er1
37721   ac_status=$?
37722   grep -v '^ *+' conftest.er1 >conftest.err
37723   rm -f conftest.er1
37724   cat conftest.err >&5
37725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726   (exit $ac_status); } &&
37727          { ac_try='test -z "$ac_c_werror_flag"
37728                          || test ! -s conftest.err'
37729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37730   (eval $ac_try) 2>&5
37731   ac_status=$?
37732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733   (exit $ac_status); }; } &&
37734          { ac_try='test -s conftest.$ac_objext'
37735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37736   (eval $ac_try) 2>&5
37737   ac_status=$?
37738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37739   (exit $ac_status); }; }; then
37740   ac_cv_header_time=yes
37741 else
37742   echo "$as_me: failed program was:" >&5
37743 sed 's/^/| /' conftest.$ac_ext >&5
37744
37745 ac_cv_header_time=no
37746 fi
37747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37748 fi
37749 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37750 echo "${ECHO_T}$ac_cv_header_time" >&6
37751 if test $ac_cv_header_time = yes; then
37752
37753 cat >>confdefs.h <<\_ACEOF
37754 #define TIME_WITH_SYS_TIME 1
37755 _ACEOF
37756
37757 fi
37758
37759 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37760 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37761 if test "${ac_cv_struct_tm+set}" = set; then
37762   echo $ECHO_N "(cached) $ECHO_C" >&6
37763 else
37764   cat >conftest.$ac_ext <<_ACEOF
37765 /* confdefs.h.  */
37766 _ACEOF
37767 cat confdefs.h >>conftest.$ac_ext
37768 cat >>conftest.$ac_ext <<_ACEOF
37769 /* end confdefs.h.  */
37770 #include <sys/types.h>
37771 #include <time.h>
37772
37773 int
37774 main ()
37775 {
37776 struct tm *tp; tp->tm_sec;
37777   ;
37778   return 0;
37779 }
37780 _ACEOF
37781 rm -f conftest.$ac_objext
37782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37783   (eval $ac_compile) 2>conftest.er1
37784   ac_status=$?
37785   grep -v '^ *+' conftest.er1 >conftest.err
37786   rm -f conftest.er1
37787   cat conftest.err >&5
37788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789   (exit $ac_status); } &&
37790          { ac_try='test -z "$ac_c_werror_flag"
37791                          || test ! -s conftest.err'
37792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37793   (eval $ac_try) 2>&5
37794   ac_status=$?
37795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796   (exit $ac_status); }; } &&
37797          { ac_try='test -s conftest.$ac_objext'
37798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799   (eval $ac_try) 2>&5
37800   ac_status=$?
37801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802   (exit $ac_status); }; }; then
37803   ac_cv_struct_tm=time.h
37804 else
37805   echo "$as_me: failed program was:" >&5
37806 sed 's/^/| /' conftest.$ac_ext >&5
37807
37808 ac_cv_struct_tm=sys/time.h
37809 fi
37810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37811 fi
37812 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37813 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37814 if test $ac_cv_struct_tm = sys/time.h; then
37815
37816 cat >>confdefs.h <<\_ACEOF
37817 #define TM_IN_SYS_TIME 1
37818 _ACEOF
37819
37820 fi
37821
37822 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37823 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37824 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37825   echo $ECHO_N "(cached) $ECHO_C" >&6
37826 else
37827   cat >conftest.$ac_ext <<_ACEOF
37828 /* confdefs.h.  */
37829 _ACEOF
37830 cat confdefs.h >>conftest.$ac_ext
37831 cat >>conftest.$ac_ext <<_ACEOF
37832 /* end confdefs.h.  */
37833 $ac_includes_default
37834 int
37835 main ()
37836 {
37837 static struct stat ac_aggr;
37838 if (ac_aggr.st_blksize)
37839 return 0;
37840   ;
37841   return 0;
37842 }
37843 _ACEOF
37844 rm -f conftest.$ac_objext
37845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37846   (eval $ac_compile) 2>conftest.er1
37847   ac_status=$?
37848   grep -v '^ *+' conftest.er1 >conftest.err
37849   rm -f conftest.er1
37850   cat conftest.err >&5
37851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852   (exit $ac_status); } &&
37853          { ac_try='test -z "$ac_c_werror_flag"
37854                          || test ! -s conftest.err'
37855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37856   (eval $ac_try) 2>&5
37857   ac_status=$?
37858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859   (exit $ac_status); }; } &&
37860          { ac_try='test -s conftest.$ac_objext'
37861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37862   (eval $ac_try) 2>&5
37863   ac_status=$?
37864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865   (exit $ac_status); }; }; then
37866   ac_cv_member_struct_stat_st_blksize=yes
37867 else
37868   echo "$as_me: failed program was:" >&5
37869 sed 's/^/| /' conftest.$ac_ext >&5
37870
37871 cat >conftest.$ac_ext <<_ACEOF
37872 /* confdefs.h.  */
37873 _ACEOF
37874 cat confdefs.h >>conftest.$ac_ext
37875 cat >>conftest.$ac_ext <<_ACEOF
37876 /* end confdefs.h.  */
37877 $ac_includes_default
37878 int
37879 main ()
37880 {
37881 static struct stat ac_aggr;
37882 if (sizeof ac_aggr.st_blksize)
37883 return 0;
37884   ;
37885   return 0;
37886 }
37887 _ACEOF
37888 rm -f conftest.$ac_objext
37889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37890   (eval $ac_compile) 2>conftest.er1
37891   ac_status=$?
37892   grep -v '^ *+' conftest.er1 >conftest.err
37893   rm -f conftest.er1
37894   cat conftest.err >&5
37895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896   (exit $ac_status); } &&
37897          { ac_try='test -z "$ac_c_werror_flag"
37898                          || test ! -s conftest.err'
37899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37900   (eval $ac_try) 2>&5
37901   ac_status=$?
37902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903   (exit $ac_status); }; } &&
37904          { ac_try='test -s conftest.$ac_objext'
37905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37906   (eval $ac_try) 2>&5
37907   ac_status=$?
37908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909   (exit $ac_status); }; }; then
37910   ac_cv_member_struct_stat_st_blksize=yes
37911 else
37912   echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37914
37915 ac_cv_member_struct_stat_st_blksize=no
37916 fi
37917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37918 fi
37919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37920 fi
37921 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37922 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37923 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37924
37925 cat >>confdefs.h <<_ACEOF
37926 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37927 _ACEOF
37928
37929
37930 fi
37931
37932 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37933 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37934 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37935   echo $ECHO_N "(cached) $ECHO_C" >&6
37936 else
37937   cat >conftest.$ac_ext <<_ACEOF
37938 /* confdefs.h.  */
37939 _ACEOF
37940 cat confdefs.h >>conftest.$ac_ext
37941 cat >>conftest.$ac_ext <<_ACEOF
37942 /* end confdefs.h.  */
37943 $ac_includes_default
37944 #include <pwd.h>
37945
37946 int
37947 main ()
37948 {
37949 static struct passwd ac_aggr;
37950 if (ac_aggr.pw_gecos)
37951 return 0;
37952   ;
37953   return 0;
37954 }
37955 _ACEOF
37956 rm -f conftest.$ac_objext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37958   (eval $ac_compile) 2>conftest.er1
37959   ac_status=$?
37960   grep -v '^ *+' conftest.er1 >conftest.err
37961   rm -f conftest.er1
37962   cat conftest.err >&5
37963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964   (exit $ac_status); } &&
37965          { ac_try='test -z "$ac_c_werror_flag"
37966                          || test ! -s conftest.err'
37967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968   (eval $ac_try) 2>&5
37969   ac_status=$?
37970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971   (exit $ac_status); }; } &&
37972          { ac_try='test -s conftest.$ac_objext'
37973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974   (eval $ac_try) 2>&5
37975   ac_status=$?
37976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); }; }; then
37978   ac_cv_member_struct_passwd_pw_gecos=yes
37979 else
37980   echo "$as_me: failed program was:" >&5
37981 sed 's/^/| /' conftest.$ac_ext >&5
37982
37983 cat >conftest.$ac_ext <<_ACEOF
37984 /* confdefs.h.  */
37985 _ACEOF
37986 cat confdefs.h >>conftest.$ac_ext
37987 cat >>conftest.$ac_ext <<_ACEOF
37988 /* end confdefs.h.  */
37989 $ac_includes_default
37990 #include <pwd.h>
37991
37992 int
37993 main ()
37994 {
37995 static struct passwd ac_aggr;
37996 if (sizeof ac_aggr.pw_gecos)
37997 return 0;
37998   ;
37999   return 0;
38000 }
38001 _ACEOF
38002 rm -f conftest.$ac_objext
38003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38004   (eval $ac_compile) 2>conftest.er1
38005   ac_status=$?
38006   grep -v '^ *+' conftest.er1 >conftest.err
38007   rm -f conftest.er1
38008   cat conftest.err >&5
38009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010   (exit $ac_status); } &&
38011          { ac_try='test -z "$ac_c_werror_flag"
38012                          || test ! -s conftest.err'
38013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38014   (eval $ac_try) 2>&5
38015   ac_status=$?
38016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017   (exit $ac_status); }; } &&
38018          { ac_try='test -s conftest.$ac_objext'
38019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020   (eval $ac_try) 2>&5
38021   ac_status=$?
38022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023   (exit $ac_status); }; }; then
38024   ac_cv_member_struct_passwd_pw_gecos=yes
38025 else
38026   echo "$as_me: failed program was:" >&5
38027 sed 's/^/| /' conftest.$ac_ext >&5
38028
38029 ac_cv_member_struct_passwd_pw_gecos=no
38030 fi
38031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38032 fi
38033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38034 fi
38035 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
38036 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
38037 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
38038
38039 cat >>confdefs.h <<_ACEOF
38040 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
38041 _ACEOF
38042
38043
38044 fi
38045
38046 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
38047 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
38048 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
38049   echo $ECHO_N "(cached) $ECHO_C" >&6
38050 else
38051   cat >conftest.$ac_ext <<_ACEOF
38052 /* confdefs.h.  */
38053 _ACEOF
38054 cat confdefs.h >>conftest.$ac_ext
38055 cat >>conftest.$ac_ext <<_ACEOF
38056 /* end confdefs.h.  */
38057 $ac_includes_default
38058 #include <pwd.h>
38059
38060 int
38061 main ()
38062 {
38063 static struct passwd ac_aggr;
38064 if (ac_aggr.pw_passwd)
38065 return 0;
38066   ;
38067   return 0;
38068 }
38069 _ACEOF
38070 rm -f conftest.$ac_objext
38071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38072   (eval $ac_compile) 2>conftest.er1
38073   ac_status=$?
38074   grep -v '^ *+' conftest.er1 >conftest.err
38075   rm -f conftest.er1
38076   cat conftest.err >&5
38077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38078   (exit $ac_status); } &&
38079          { ac_try='test -z "$ac_c_werror_flag"
38080                          || test ! -s conftest.err'
38081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38082   (eval $ac_try) 2>&5
38083   ac_status=$?
38084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085   (exit $ac_status); }; } &&
38086          { ac_try='test -s conftest.$ac_objext'
38087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38088   (eval $ac_try) 2>&5
38089   ac_status=$?
38090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091   (exit $ac_status); }; }; then
38092   ac_cv_member_struct_passwd_pw_passwd=yes
38093 else
38094   echo "$as_me: failed program was:" >&5
38095 sed 's/^/| /' conftest.$ac_ext >&5
38096
38097 cat >conftest.$ac_ext <<_ACEOF
38098 /* confdefs.h.  */
38099 _ACEOF
38100 cat confdefs.h >>conftest.$ac_ext
38101 cat >>conftest.$ac_ext <<_ACEOF
38102 /* end confdefs.h.  */
38103 $ac_includes_default
38104 #include <pwd.h>
38105
38106 int
38107 main ()
38108 {
38109 static struct passwd ac_aggr;
38110 if (sizeof ac_aggr.pw_passwd)
38111 return 0;
38112   ;
38113   return 0;
38114 }
38115 _ACEOF
38116 rm -f conftest.$ac_objext
38117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38118   (eval $ac_compile) 2>conftest.er1
38119   ac_status=$?
38120   grep -v '^ *+' conftest.er1 >conftest.err
38121   rm -f conftest.er1
38122   cat conftest.err >&5
38123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124   (exit $ac_status); } &&
38125          { ac_try='test -z "$ac_c_werror_flag"
38126                          || test ! -s conftest.err'
38127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38128   (eval $ac_try) 2>&5
38129   ac_status=$?
38130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131   (exit $ac_status); }; } &&
38132          { ac_try='test -s conftest.$ac_objext'
38133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38134   (eval $ac_try) 2>&5
38135   ac_status=$?
38136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137   (exit $ac_status); }; }; then
38138   ac_cv_member_struct_passwd_pw_passwd=yes
38139 else
38140   echo "$as_me: failed program was:" >&5
38141 sed 's/^/| /' conftest.$ac_ext >&5
38142
38143 ac_cv_member_struct_passwd_pw_passwd=no
38144 fi
38145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38146 fi
38147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38148 fi
38149 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38150 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38151 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38152
38153 cat >>confdefs.h <<_ACEOF
38154 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38155 _ACEOF
38156
38157
38158 fi
38159
38160
38161 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38162 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38163 if test "${ol_cv_c_upper_lower+set}" = set; then
38164   echo $ECHO_N "(cached) $ECHO_C" >&6
38165 else
38166
38167         if test "$cross_compiling" = yes; then
38168   ol_cv_c_upper_lower=safe
38169 else
38170   cat >conftest.$ac_ext <<_ACEOF
38171 /* confdefs.h.  */
38172 _ACEOF
38173 cat confdefs.h >>conftest.$ac_ext
38174 cat >>conftest.$ac_ext <<_ACEOF
38175 /* end confdefs.h.  */
38176
38177 #include <ctype.h>
38178 main()
38179 {
38180         if ('C' == toupper('C'))
38181                 exit(0);
38182         else
38183                 exit(1);
38184 }
38185 _ACEOF
38186 rm -f conftest$ac_exeext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38188   (eval $ac_link) 2>&5
38189   ac_status=$?
38190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38193   (eval $ac_try) 2>&5
38194   ac_status=$?
38195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38196   (exit $ac_status); }; }; then
38197   ol_cv_c_upper_lower=no
38198 else
38199   echo "$as_me: program exited with status $ac_status" >&5
38200 echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.$ac_ext >&5
38202
38203 ( exit $ac_status )
38204 ol_cv_c_upper_lower=yes
38205 fi
38206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38207 fi
38208 fi
38209 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38210 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38211 if test $ol_cv_c_upper_lower != no ; then
38212
38213 cat >>confdefs.h <<\_ACEOF
38214 #define C_UPPER_LOWER 1
38215 _ACEOF
38216
38217 fi
38218
38219 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38220 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38221 if test "${ac_cv_c_const+set}" = set; then
38222   echo $ECHO_N "(cached) $ECHO_C" >&6
38223 else
38224   cat >conftest.$ac_ext <<_ACEOF
38225 /* confdefs.h.  */
38226 _ACEOF
38227 cat confdefs.h >>conftest.$ac_ext
38228 cat >>conftest.$ac_ext <<_ACEOF
38229 /* end confdefs.h.  */
38230
38231 int
38232 main ()
38233 {
38234 /* FIXME: Include the comments suggested by Paul. */
38235 #ifndef __cplusplus
38236   /* Ultrix mips cc rejects this.  */
38237   typedef int charset[2];
38238   const charset x;
38239   /* SunOS 4.1.1 cc rejects this.  */
38240   char const *const *ccp;
38241   char **p;
38242   /* NEC SVR4.0.2 mips cc rejects this.  */
38243   struct point {int x, y;};
38244   static struct point const zero = {0,0};
38245   /* AIX XL C 1.02.0.0 rejects this.
38246      It does not let you subtract one const X* pointer from another in
38247      an arm of an if-expression whose if-part is not a constant
38248      expression */
38249   const char *g = "string";
38250   ccp = &g + (g ? g-g : 0);
38251   /* HPUX 7.0 cc rejects these. */
38252   ++ccp;
38253   p = (char**) ccp;
38254   ccp = (char const *const *) p;
38255   { /* SCO 3.2v4 cc rejects this.  */
38256     char *t;
38257     char const *s = 0 ? (char *) 0 : (char const *) 0;
38258
38259     *t++ = 0;
38260   }
38261   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
38262     int x[] = {25, 17};
38263     const int *foo = &x[0];
38264     ++foo;
38265   }
38266   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38267     typedef const int *iptr;
38268     iptr p = 0;
38269     ++p;
38270   }
38271   { /* AIX XL C 1.02.0.0 rejects this saying
38272        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38273     struct s { int j; const int *ap[3]; };
38274     struct s *b; b->j = 5;
38275   }
38276   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38277     const int foo = 10;
38278   }
38279 #endif
38280
38281   ;
38282   return 0;
38283 }
38284 _ACEOF
38285 rm -f conftest.$ac_objext
38286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38287   (eval $ac_compile) 2>conftest.er1
38288   ac_status=$?
38289   grep -v '^ *+' conftest.er1 >conftest.err
38290   rm -f conftest.er1
38291   cat conftest.err >&5
38292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293   (exit $ac_status); } &&
38294          { ac_try='test -z "$ac_c_werror_flag"
38295                          || test ! -s conftest.err'
38296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38297   (eval $ac_try) 2>&5
38298   ac_status=$?
38299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38300   (exit $ac_status); }; } &&
38301          { ac_try='test -s conftest.$ac_objext'
38302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38303   (eval $ac_try) 2>&5
38304   ac_status=$?
38305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306   (exit $ac_status); }; }; then
38307   ac_cv_c_const=yes
38308 else
38309   echo "$as_me: failed program was:" >&5
38310 sed 's/^/| /' conftest.$ac_ext >&5
38311
38312 ac_cv_c_const=no
38313 fi
38314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38315 fi
38316 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38317 echo "${ECHO_T}$ac_cv_c_const" >&6
38318 if test $ac_cv_c_const = no; then
38319
38320 cat >>confdefs.h <<\_ACEOF
38321 #define const
38322 _ACEOF
38323
38324 fi
38325
38326 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38327 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38328 if test "${ol_cv_c_volatile+set}" = set; then
38329   echo $ECHO_N "(cached) $ECHO_C" >&6
38330 else
38331   cat >conftest.$ac_ext <<_ACEOF
38332 /* confdefs.h.  */
38333 _ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h.  */
38337 int x, y, z;
38338 int
38339 main ()
38340 {
38341 volatile int a; int * volatile b = x ? &y : &z;
38342       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38343       *b = 0;
38344   ;
38345   return 0;
38346 }
38347 _ACEOF
38348 rm -f conftest.$ac_objext
38349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38350   (eval $ac_compile) 2>conftest.er1
38351   ac_status=$?
38352   grep -v '^ *+' conftest.er1 >conftest.err
38353   rm -f conftest.er1
38354   cat conftest.err >&5
38355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356   (exit $ac_status); } &&
38357          { ac_try='test -z "$ac_c_werror_flag"
38358                          || test ! -s conftest.err'
38359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38360   (eval $ac_try) 2>&5
38361   ac_status=$?
38362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363   (exit $ac_status); }; } &&
38364          { ac_try='test -s conftest.$ac_objext'
38365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38366   (eval $ac_try) 2>&5
38367   ac_status=$?
38368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38369   (exit $ac_status); }; }; then
38370   ol_cv_c_volatile=yes
38371 else
38372   echo "$as_me: failed program was:" >&5
38373 sed 's/^/| /' conftest.$ac_ext >&5
38374
38375 ol_cv_c_volatile=no
38376 fi
38377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38378 fi
38379 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38380 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38381   if test $ol_cv_c_volatile = yes; then
38382     :
38383   else
38384
38385 cat >>confdefs.h <<\_ACEOF
38386 #define volatile
38387 _ACEOF
38388
38389   fi
38390
38391
38392 if test $cross_compiling = yes ; then
38393         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38394 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38395
38396 cat >>confdefs.h <<\_ACEOF
38397 #define CROSS_COMPILING 1
38398 _ACEOF
38399
38400 else
38401         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38402 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38403 if test "${ac_cv_c_bigendian+set}" = set; then
38404   echo $ECHO_N "(cached) $ECHO_C" >&6
38405 else
38406   # See if sys/param.h defines the BYTE_ORDER macro.
38407 cat >conftest.$ac_ext <<_ACEOF
38408 /* confdefs.h.  */
38409 _ACEOF
38410 cat confdefs.h >>conftest.$ac_ext
38411 cat >>conftest.$ac_ext <<_ACEOF
38412 /* end confdefs.h.  */
38413 #include <sys/types.h>
38414 #include <sys/param.h>
38415
38416 int
38417 main ()
38418 {
38419 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38420  bogus endian macros
38421 #endif
38422
38423   ;
38424   return 0;
38425 }
38426 _ACEOF
38427 rm -f conftest.$ac_objext
38428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38429   (eval $ac_compile) 2>conftest.er1
38430   ac_status=$?
38431   grep -v '^ *+' conftest.er1 >conftest.err
38432   rm -f conftest.er1
38433   cat conftest.err >&5
38434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435   (exit $ac_status); } &&
38436          { ac_try='test -z "$ac_c_werror_flag"
38437                          || test ! -s conftest.err'
38438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38439   (eval $ac_try) 2>&5
38440   ac_status=$?
38441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442   (exit $ac_status); }; } &&
38443          { ac_try='test -s conftest.$ac_objext'
38444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38445   (eval $ac_try) 2>&5
38446   ac_status=$?
38447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448   (exit $ac_status); }; }; then
38449   # It does; now see whether it defined to BIG_ENDIAN or not.
38450 cat >conftest.$ac_ext <<_ACEOF
38451 /* confdefs.h.  */
38452 _ACEOF
38453 cat confdefs.h >>conftest.$ac_ext
38454 cat >>conftest.$ac_ext <<_ACEOF
38455 /* end confdefs.h.  */
38456 #include <sys/types.h>
38457 #include <sys/param.h>
38458
38459 int
38460 main ()
38461 {
38462 #if BYTE_ORDER != BIG_ENDIAN
38463  not big endian
38464 #endif
38465
38466   ;
38467   return 0;
38468 }
38469 _ACEOF
38470 rm -f conftest.$ac_objext
38471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38472   (eval $ac_compile) 2>conftest.er1
38473   ac_status=$?
38474   grep -v '^ *+' conftest.er1 >conftest.err
38475   rm -f conftest.er1
38476   cat conftest.err >&5
38477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478   (exit $ac_status); } &&
38479          { ac_try='test -z "$ac_c_werror_flag"
38480                          || test ! -s conftest.err'
38481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38482   (eval $ac_try) 2>&5
38483   ac_status=$?
38484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485   (exit $ac_status); }; } &&
38486          { ac_try='test -s conftest.$ac_objext'
38487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38488   (eval $ac_try) 2>&5
38489   ac_status=$?
38490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38491   (exit $ac_status); }; }; then
38492   ac_cv_c_bigendian=yes
38493 else
38494   echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38496
38497 ac_cv_c_bigendian=no
38498 fi
38499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38500 else
38501   echo "$as_me: failed program was:" >&5
38502 sed 's/^/| /' conftest.$ac_ext >&5
38503
38504 # It does not; compile a test program.
38505 if test "$cross_compiling" = yes; then
38506   # try to guess the endianness by grepping values into an object file
38507   ac_cv_c_bigendian=unknown
38508   cat >conftest.$ac_ext <<_ACEOF
38509 /* confdefs.h.  */
38510 _ACEOF
38511 cat confdefs.h >>conftest.$ac_ext
38512 cat >>conftest.$ac_ext <<_ACEOF
38513 /* end confdefs.h.  */
38514 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38515 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38516 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38517 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38518 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38519 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38520 int
38521 main ()
38522 {
38523  _ascii (); _ebcdic ();
38524   ;
38525   return 0;
38526 }
38527 _ACEOF
38528 rm -f conftest.$ac_objext
38529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38530   (eval $ac_compile) 2>conftest.er1
38531   ac_status=$?
38532   grep -v '^ *+' conftest.er1 >conftest.err
38533   rm -f conftest.er1
38534   cat conftest.err >&5
38535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38536   (exit $ac_status); } &&
38537          { ac_try='test -z "$ac_c_werror_flag"
38538                          || test ! -s conftest.err'
38539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38540   (eval $ac_try) 2>&5
38541   ac_status=$?
38542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38543   (exit $ac_status); }; } &&
38544          { ac_try='test -s conftest.$ac_objext'
38545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38546   (eval $ac_try) 2>&5
38547   ac_status=$?
38548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549   (exit $ac_status); }; }; then
38550   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38551   ac_cv_c_bigendian=yes
38552 fi
38553 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38554   if test "$ac_cv_c_bigendian" = unknown; then
38555     ac_cv_c_bigendian=no
38556   else
38557     # finding both strings is unlikely to happen, but who knows?
38558     ac_cv_c_bigendian=unknown
38559   fi
38560 fi
38561 else
38562   echo "$as_me: failed program was:" >&5
38563 sed 's/^/| /' conftest.$ac_ext >&5
38564
38565 fi
38566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38567 else
38568   cat >conftest.$ac_ext <<_ACEOF
38569 /* confdefs.h.  */
38570 _ACEOF
38571 cat confdefs.h >>conftest.$ac_ext
38572 cat >>conftest.$ac_ext <<_ACEOF
38573 /* end confdefs.h.  */
38574 int
38575 main ()
38576 {
38577   /* Are we little or big endian?  From Harbison&Steele.  */
38578   union
38579   {
38580     long l;
38581     char c[sizeof (long)];
38582   } u;
38583   u.l = 1;
38584   exit (u.c[sizeof (long) - 1] == 1);
38585 }
38586 _ACEOF
38587 rm -f conftest$ac_exeext
38588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38589   (eval $ac_link) 2>&5
38590   ac_status=$?
38591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38594   (eval $ac_try) 2>&5
38595   ac_status=$?
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); }; }; then
38598   ac_cv_c_bigendian=no
38599 else
38600   echo "$as_me: program exited with status $ac_status" >&5
38601 echo "$as_me: failed program was:" >&5
38602 sed 's/^/| /' conftest.$ac_ext >&5
38603
38604 ( exit $ac_status )
38605 ac_cv_c_bigendian=yes
38606 fi
38607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38608 fi
38609 fi
38610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38611 fi
38612 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38613 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38614 case $ac_cv_c_bigendian in
38615   yes)
38616
38617 cat >>confdefs.h <<\_ACEOF
38618 #define WORDS_BIGENDIAN 1
38619 _ACEOF
38620  ;;
38621   no)
38622      ;;
38623   *)
38624     { { echo "$as_me:$LINENO: error: unknown endianness
38625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38626 echo "$as_me: error: unknown endianness
38627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38628    { (exit 1); exit 1; }; } ;;
38629 esac
38630
38631 fi
38632
38633 echo "$as_me:$LINENO: checking for short" >&5
38634 echo $ECHO_N "checking for short... $ECHO_C" >&6
38635 if test "${ac_cv_type_short+set}" = set; then
38636   echo $ECHO_N "(cached) $ECHO_C" >&6
38637 else
38638   cat >conftest.$ac_ext <<_ACEOF
38639 /* confdefs.h.  */
38640 _ACEOF
38641 cat confdefs.h >>conftest.$ac_ext
38642 cat >>conftest.$ac_ext <<_ACEOF
38643 /* end confdefs.h.  */
38644 $ac_includes_default
38645 int
38646 main ()
38647 {
38648 if ((short *) 0)
38649   return 0;
38650 if (sizeof (short))
38651   return 0;
38652   ;
38653   return 0;
38654 }
38655 _ACEOF
38656 rm -f conftest.$ac_objext
38657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38658   (eval $ac_compile) 2>conftest.er1
38659   ac_status=$?
38660   grep -v '^ *+' conftest.er1 >conftest.err
38661   rm -f conftest.er1
38662   cat conftest.err >&5
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); } &&
38665          { ac_try='test -z "$ac_c_werror_flag"
38666                          || test ! -s conftest.err'
38667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668   (eval $ac_try) 2>&5
38669   ac_status=$?
38670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671   (exit $ac_status); }; } &&
38672          { ac_try='test -s conftest.$ac_objext'
38673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674   (eval $ac_try) 2>&5
38675   ac_status=$?
38676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677   (exit $ac_status); }; }; then
38678   ac_cv_type_short=yes
38679 else
38680   echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38682
38683 ac_cv_type_short=no
38684 fi
38685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38686 fi
38687 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38688 echo "${ECHO_T}$ac_cv_type_short" >&6
38689
38690 echo "$as_me:$LINENO: checking size of short" >&5
38691 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38692 if test "${ac_cv_sizeof_short+set}" = set; then
38693   echo $ECHO_N "(cached) $ECHO_C" >&6
38694 else
38695   if test "$ac_cv_type_short" = yes; then
38696   # The cast to unsigned long works around a bug in the HP C Compiler
38697   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38698   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38699   # This bug is HP SR number 8606223364.
38700   if test "$cross_compiling" = yes; then
38701   # Depending upon the size, compute the lo and hi bounds.
38702 cat >conftest.$ac_ext <<_ACEOF
38703 /* confdefs.h.  */
38704 _ACEOF
38705 cat confdefs.h >>conftest.$ac_ext
38706 cat >>conftest.$ac_ext <<_ACEOF
38707 /* end confdefs.h.  */
38708 $ac_includes_default
38709 int
38710 main ()
38711 {
38712 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38713 test_array [0] = 0
38714
38715   ;
38716   return 0;
38717 }
38718 _ACEOF
38719 rm -f conftest.$ac_objext
38720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38721   (eval $ac_compile) 2>conftest.er1
38722   ac_status=$?
38723   grep -v '^ *+' conftest.er1 >conftest.err
38724   rm -f conftest.er1
38725   cat conftest.err >&5
38726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727   (exit $ac_status); } &&
38728          { ac_try='test -z "$ac_c_werror_flag"
38729                          || test ! -s conftest.err'
38730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38731   (eval $ac_try) 2>&5
38732   ac_status=$?
38733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734   (exit $ac_status); }; } &&
38735          { ac_try='test -s conftest.$ac_objext'
38736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38737   (eval $ac_try) 2>&5
38738   ac_status=$?
38739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740   (exit $ac_status); }; }; then
38741   ac_lo=0 ac_mid=0
38742   while :; do
38743     cat >conftest.$ac_ext <<_ACEOF
38744 /* confdefs.h.  */
38745 _ACEOF
38746 cat confdefs.h >>conftest.$ac_ext
38747 cat >>conftest.$ac_ext <<_ACEOF
38748 /* end confdefs.h.  */
38749 $ac_includes_default
38750 int
38751 main ()
38752 {
38753 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38754 test_array [0] = 0
38755
38756   ;
38757   return 0;
38758 }
38759 _ACEOF
38760 rm -f conftest.$ac_objext
38761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38762   (eval $ac_compile) 2>conftest.er1
38763   ac_status=$?
38764   grep -v '^ *+' conftest.er1 >conftest.err
38765   rm -f conftest.er1
38766   cat conftest.err >&5
38767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768   (exit $ac_status); } &&
38769          { ac_try='test -z "$ac_c_werror_flag"
38770                          || test ! -s conftest.err'
38771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38772   (eval $ac_try) 2>&5
38773   ac_status=$?
38774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775   (exit $ac_status); }; } &&
38776          { ac_try='test -s conftest.$ac_objext'
38777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38778   (eval $ac_try) 2>&5
38779   ac_status=$?
38780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781   (exit $ac_status); }; }; then
38782   ac_hi=$ac_mid; break
38783 else
38784   echo "$as_me: failed program was:" >&5
38785 sed 's/^/| /' conftest.$ac_ext >&5
38786
38787 ac_lo=`expr $ac_mid + 1`
38788                     if test $ac_lo -le $ac_mid; then
38789                       ac_lo= ac_hi=
38790                       break
38791                     fi
38792                     ac_mid=`expr 2 '*' $ac_mid + 1`
38793 fi
38794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38795   done
38796 else
38797   echo "$as_me: failed program was:" >&5
38798 sed 's/^/| /' conftest.$ac_ext >&5
38799
38800 cat >conftest.$ac_ext <<_ACEOF
38801 /* confdefs.h.  */
38802 _ACEOF
38803 cat confdefs.h >>conftest.$ac_ext
38804 cat >>conftest.$ac_ext <<_ACEOF
38805 /* end confdefs.h.  */
38806 $ac_includes_default
38807 int
38808 main ()
38809 {
38810 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38811 test_array [0] = 0
38812
38813   ;
38814   return 0;
38815 }
38816 _ACEOF
38817 rm -f conftest.$ac_objext
38818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38819   (eval $ac_compile) 2>conftest.er1
38820   ac_status=$?
38821   grep -v '^ *+' conftest.er1 >conftest.err
38822   rm -f conftest.er1
38823   cat conftest.err >&5
38824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825   (exit $ac_status); } &&
38826          { ac_try='test -z "$ac_c_werror_flag"
38827                          || test ! -s conftest.err'
38828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38829   (eval $ac_try) 2>&5
38830   ac_status=$?
38831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832   (exit $ac_status); }; } &&
38833          { ac_try='test -s conftest.$ac_objext'
38834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38835   (eval $ac_try) 2>&5
38836   ac_status=$?
38837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38838   (exit $ac_status); }; }; then
38839   ac_hi=-1 ac_mid=-1
38840   while :; do
38841     cat >conftest.$ac_ext <<_ACEOF
38842 /* confdefs.h.  */
38843 _ACEOF
38844 cat confdefs.h >>conftest.$ac_ext
38845 cat >>conftest.$ac_ext <<_ACEOF
38846 /* end confdefs.h.  */
38847 $ac_includes_default
38848 int
38849 main ()
38850 {
38851 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38852 test_array [0] = 0
38853
38854   ;
38855   return 0;
38856 }
38857 _ACEOF
38858 rm -f conftest.$ac_objext
38859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38860   (eval $ac_compile) 2>conftest.er1
38861   ac_status=$?
38862   grep -v '^ *+' conftest.er1 >conftest.err
38863   rm -f conftest.er1
38864   cat conftest.err >&5
38865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866   (exit $ac_status); } &&
38867          { ac_try='test -z "$ac_c_werror_flag"
38868                          || test ! -s conftest.err'
38869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38870   (eval $ac_try) 2>&5
38871   ac_status=$?
38872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873   (exit $ac_status); }; } &&
38874          { ac_try='test -s conftest.$ac_objext'
38875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38876   (eval $ac_try) 2>&5
38877   ac_status=$?
38878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879   (exit $ac_status); }; }; then
38880   ac_lo=$ac_mid; break
38881 else
38882   echo "$as_me: failed program was:" >&5
38883 sed 's/^/| /' conftest.$ac_ext >&5
38884
38885 ac_hi=`expr '(' $ac_mid ')' - 1`
38886                        if test $ac_mid -le $ac_hi; then
38887                          ac_lo= ac_hi=
38888                          break
38889                        fi
38890                        ac_mid=`expr 2 '*' $ac_mid`
38891 fi
38892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38893   done
38894 else
38895   echo "$as_me: failed program was:" >&5
38896 sed 's/^/| /' conftest.$ac_ext >&5
38897
38898 ac_lo= ac_hi=
38899 fi
38900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38901 fi
38902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38903 # Binary search between lo and hi bounds.
38904 while test "x$ac_lo" != "x$ac_hi"; do
38905   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38906   cat >conftest.$ac_ext <<_ACEOF
38907 /* confdefs.h.  */
38908 _ACEOF
38909 cat confdefs.h >>conftest.$ac_ext
38910 cat >>conftest.$ac_ext <<_ACEOF
38911 /* end confdefs.h.  */
38912 $ac_includes_default
38913 int
38914 main ()
38915 {
38916 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38917 test_array [0] = 0
38918
38919   ;
38920   return 0;
38921 }
38922 _ACEOF
38923 rm -f conftest.$ac_objext
38924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38925   (eval $ac_compile) 2>conftest.er1
38926   ac_status=$?
38927   grep -v '^ *+' conftest.er1 >conftest.err
38928   rm -f conftest.er1
38929   cat conftest.err >&5
38930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38931   (exit $ac_status); } &&
38932          { ac_try='test -z "$ac_c_werror_flag"
38933                          || test ! -s conftest.err'
38934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38935   (eval $ac_try) 2>&5
38936   ac_status=$?
38937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938   (exit $ac_status); }; } &&
38939          { ac_try='test -s conftest.$ac_objext'
38940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38941   (eval $ac_try) 2>&5
38942   ac_status=$?
38943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38944   (exit $ac_status); }; }; then
38945   ac_hi=$ac_mid
38946 else
38947   echo "$as_me: failed program was:" >&5
38948 sed 's/^/| /' conftest.$ac_ext >&5
38949
38950 ac_lo=`expr '(' $ac_mid ')' + 1`
38951 fi
38952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38953 done
38954 case $ac_lo in
38955 ?*) ac_cv_sizeof_short=$ac_lo;;
38956 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38957 See \`config.log' for more details." >&5
38958 echo "$as_me: error: cannot compute sizeof (short), 77
38959 See \`config.log' for more details." >&2;}
38960    { (exit 1); exit 1; }; } ;;
38961 esac
38962 else
38963   if test "$cross_compiling" = yes; then
38964   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38965 See \`config.log' for more details." >&5
38966 echo "$as_me: error: cannot run test program while cross compiling
38967 See \`config.log' for more details." >&2;}
38968    { (exit 1); exit 1; }; }
38969 else
38970   cat >conftest.$ac_ext <<_ACEOF
38971 /* confdefs.h.  */
38972 _ACEOF
38973 cat confdefs.h >>conftest.$ac_ext
38974 cat >>conftest.$ac_ext <<_ACEOF
38975 /* end confdefs.h.  */
38976 $ac_includes_default
38977 long longval () { return (long) (sizeof (short)); }
38978 unsigned long ulongval () { return (long) (sizeof (short)); }
38979 #include <stdio.h>
38980 #include <stdlib.h>
38981 int
38982 main ()
38983 {
38984
38985   FILE *f = fopen ("conftest.val", "w");
38986   if (! f)
38987     exit (1);
38988   if (((long) (sizeof (short))) < 0)
38989     {
38990       long i = longval ();
38991       if (i != ((long) (sizeof (short))))
38992         exit (1);
38993       fprintf (f, "%ld\n", i);
38994     }
38995   else
38996     {
38997       unsigned long i = ulongval ();
38998       if (i != ((long) (sizeof (short))))
38999         exit (1);
39000       fprintf (f, "%lu\n", i);
39001     }
39002   exit (ferror (f) || fclose (f) != 0);
39003
39004   ;
39005   return 0;
39006 }
39007 _ACEOF
39008 rm -f conftest$ac_exeext
39009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39010   (eval $ac_link) 2>&5
39011   ac_status=$?
39012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39015   (eval $ac_try) 2>&5
39016   ac_status=$?
39017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018   (exit $ac_status); }; }; then
39019   ac_cv_sizeof_short=`cat conftest.val`
39020 else
39021   echo "$as_me: program exited with status $ac_status" >&5
39022 echo "$as_me: failed program was:" >&5
39023 sed 's/^/| /' conftest.$ac_ext >&5
39024
39025 ( exit $ac_status )
39026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
39027 See \`config.log' for more details." >&5
39028 echo "$as_me: error: cannot compute sizeof (short), 77
39029 See \`config.log' for more details." >&2;}
39030    { (exit 1); exit 1; }; }
39031 fi
39032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39033 fi
39034 fi
39035 rm -f conftest.val
39036 else
39037   ac_cv_sizeof_short=0
39038 fi
39039 fi
39040 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
39041 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
39042 cat >>confdefs.h <<_ACEOF
39043 #define SIZEOF_SHORT $ac_cv_sizeof_short
39044 _ACEOF
39045
39046
39047 echo "$as_me:$LINENO: checking for int" >&5
39048 echo $ECHO_N "checking for int... $ECHO_C" >&6
39049 if test "${ac_cv_type_int+set}" = set; then
39050   echo $ECHO_N "(cached) $ECHO_C" >&6
39051 else
39052   cat >conftest.$ac_ext <<_ACEOF
39053 /* confdefs.h.  */
39054 _ACEOF
39055 cat confdefs.h >>conftest.$ac_ext
39056 cat >>conftest.$ac_ext <<_ACEOF
39057 /* end confdefs.h.  */
39058 $ac_includes_default
39059 int
39060 main ()
39061 {
39062 if ((int *) 0)
39063   return 0;
39064 if (sizeof (int))
39065   return 0;
39066   ;
39067   return 0;
39068 }
39069 _ACEOF
39070 rm -f conftest.$ac_objext
39071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39072   (eval $ac_compile) 2>conftest.er1
39073   ac_status=$?
39074   grep -v '^ *+' conftest.er1 >conftest.err
39075   rm -f conftest.er1
39076   cat conftest.err >&5
39077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078   (exit $ac_status); } &&
39079          { ac_try='test -z "$ac_c_werror_flag"
39080                          || test ! -s conftest.err'
39081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39082   (eval $ac_try) 2>&5
39083   ac_status=$?
39084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39085   (exit $ac_status); }; } &&
39086          { ac_try='test -s conftest.$ac_objext'
39087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39088   (eval $ac_try) 2>&5
39089   ac_status=$?
39090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091   (exit $ac_status); }; }; then
39092   ac_cv_type_int=yes
39093 else
39094   echo "$as_me: failed program was:" >&5
39095 sed 's/^/| /' conftest.$ac_ext >&5
39096
39097 ac_cv_type_int=no
39098 fi
39099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39100 fi
39101 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39102 echo "${ECHO_T}$ac_cv_type_int" >&6
39103
39104 echo "$as_me:$LINENO: checking size of int" >&5
39105 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39106 if test "${ac_cv_sizeof_int+set}" = set; then
39107   echo $ECHO_N "(cached) $ECHO_C" >&6
39108 else
39109   if test "$ac_cv_type_int" = yes; then
39110   # The cast to unsigned long works around a bug in the HP C Compiler
39111   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39112   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39113   # This bug is HP SR number 8606223364.
39114   if test "$cross_compiling" = yes; then
39115   # Depending upon the size, compute the lo and hi bounds.
39116 cat >conftest.$ac_ext <<_ACEOF
39117 /* confdefs.h.  */
39118 _ACEOF
39119 cat confdefs.h >>conftest.$ac_ext
39120 cat >>conftest.$ac_ext <<_ACEOF
39121 /* end confdefs.h.  */
39122 $ac_includes_default
39123 int
39124 main ()
39125 {
39126 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39127 test_array [0] = 0
39128
39129   ;
39130   return 0;
39131 }
39132 _ACEOF
39133 rm -f conftest.$ac_objext
39134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39135   (eval $ac_compile) 2>conftest.er1
39136   ac_status=$?
39137   grep -v '^ *+' conftest.er1 >conftest.err
39138   rm -f conftest.er1
39139   cat conftest.err >&5
39140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141   (exit $ac_status); } &&
39142          { ac_try='test -z "$ac_c_werror_flag"
39143                          || test ! -s conftest.err'
39144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39145   (eval $ac_try) 2>&5
39146   ac_status=$?
39147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148   (exit $ac_status); }; } &&
39149          { ac_try='test -s conftest.$ac_objext'
39150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39151   (eval $ac_try) 2>&5
39152   ac_status=$?
39153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154   (exit $ac_status); }; }; then
39155   ac_lo=0 ac_mid=0
39156   while :; do
39157     cat >conftest.$ac_ext <<_ACEOF
39158 /* confdefs.h.  */
39159 _ACEOF
39160 cat confdefs.h >>conftest.$ac_ext
39161 cat >>conftest.$ac_ext <<_ACEOF
39162 /* end confdefs.h.  */
39163 $ac_includes_default
39164 int
39165 main ()
39166 {
39167 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39168 test_array [0] = 0
39169
39170   ;
39171   return 0;
39172 }
39173 _ACEOF
39174 rm -f conftest.$ac_objext
39175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39176   (eval $ac_compile) 2>conftest.er1
39177   ac_status=$?
39178   grep -v '^ *+' conftest.er1 >conftest.err
39179   rm -f conftest.er1
39180   cat conftest.err >&5
39181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182   (exit $ac_status); } &&
39183          { ac_try='test -z "$ac_c_werror_flag"
39184                          || test ! -s conftest.err'
39185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39186   (eval $ac_try) 2>&5
39187   ac_status=$?
39188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39189   (exit $ac_status); }; } &&
39190          { ac_try='test -s conftest.$ac_objext'
39191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39192   (eval $ac_try) 2>&5
39193   ac_status=$?
39194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39195   (exit $ac_status); }; }; then
39196   ac_hi=$ac_mid; break
39197 else
39198   echo "$as_me: failed program was:" >&5
39199 sed 's/^/| /' conftest.$ac_ext >&5
39200
39201 ac_lo=`expr $ac_mid + 1`
39202                     if test $ac_lo -le $ac_mid; then
39203                       ac_lo= ac_hi=
39204                       break
39205                     fi
39206                     ac_mid=`expr 2 '*' $ac_mid + 1`
39207 fi
39208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39209   done
39210 else
39211   echo "$as_me: failed program was:" >&5
39212 sed 's/^/| /' conftest.$ac_ext >&5
39213
39214 cat >conftest.$ac_ext <<_ACEOF
39215 /* confdefs.h.  */
39216 _ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h.  */
39220 $ac_includes_default
39221 int
39222 main ()
39223 {
39224 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39225 test_array [0] = 0
39226
39227   ;
39228   return 0;
39229 }
39230 _ACEOF
39231 rm -f conftest.$ac_objext
39232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39233   (eval $ac_compile) 2>conftest.er1
39234   ac_status=$?
39235   grep -v '^ *+' conftest.er1 >conftest.err
39236   rm -f conftest.er1
39237   cat conftest.err >&5
39238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239   (exit $ac_status); } &&
39240          { ac_try='test -z "$ac_c_werror_flag"
39241                          || test ! -s conftest.err'
39242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39243   (eval $ac_try) 2>&5
39244   ac_status=$?
39245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246   (exit $ac_status); }; } &&
39247          { ac_try='test -s conftest.$ac_objext'
39248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39249   (eval $ac_try) 2>&5
39250   ac_status=$?
39251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252   (exit $ac_status); }; }; then
39253   ac_hi=-1 ac_mid=-1
39254   while :; do
39255     cat >conftest.$ac_ext <<_ACEOF
39256 /* confdefs.h.  */
39257 _ACEOF
39258 cat confdefs.h >>conftest.$ac_ext
39259 cat >>conftest.$ac_ext <<_ACEOF
39260 /* end confdefs.h.  */
39261 $ac_includes_default
39262 int
39263 main ()
39264 {
39265 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39266 test_array [0] = 0
39267
39268   ;
39269   return 0;
39270 }
39271 _ACEOF
39272 rm -f conftest.$ac_objext
39273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39274   (eval $ac_compile) 2>conftest.er1
39275   ac_status=$?
39276   grep -v '^ *+' conftest.er1 >conftest.err
39277   rm -f conftest.er1
39278   cat conftest.err >&5
39279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280   (exit $ac_status); } &&
39281          { ac_try='test -z "$ac_c_werror_flag"
39282                          || test ! -s conftest.err'
39283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39284   (eval $ac_try) 2>&5
39285   ac_status=$?
39286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39287   (exit $ac_status); }; } &&
39288          { ac_try='test -s conftest.$ac_objext'
39289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39290   (eval $ac_try) 2>&5
39291   ac_status=$?
39292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293   (exit $ac_status); }; }; then
39294   ac_lo=$ac_mid; break
39295 else
39296   echo "$as_me: failed program was:" >&5
39297 sed 's/^/| /' conftest.$ac_ext >&5
39298
39299 ac_hi=`expr '(' $ac_mid ')' - 1`
39300                        if test $ac_mid -le $ac_hi; then
39301                          ac_lo= ac_hi=
39302                          break
39303                        fi
39304                        ac_mid=`expr 2 '*' $ac_mid`
39305 fi
39306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39307   done
39308 else
39309   echo "$as_me: failed program was:" >&5
39310 sed 's/^/| /' conftest.$ac_ext >&5
39311
39312 ac_lo= ac_hi=
39313 fi
39314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39315 fi
39316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39317 # Binary search between lo and hi bounds.
39318 while test "x$ac_lo" != "x$ac_hi"; do
39319   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39320   cat >conftest.$ac_ext <<_ACEOF
39321 /* confdefs.h.  */
39322 _ACEOF
39323 cat confdefs.h >>conftest.$ac_ext
39324 cat >>conftest.$ac_ext <<_ACEOF
39325 /* end confdefs.h.  */
39326 $ac_includes_default
39327 int
39328 main ()
39329 {
39330 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39331 test_array [0] = 0
39332
39333   ;
39334   return 0;
39335 }
39336 _ACEOF
39337 rm -f conftest.$ac_objext
39338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39339   (eval $ac_compile) 2>conftest.er1
39340   ac_status=$?
39341   grep -v '^ *+' conftest.er1 >conftest.err
39342   rm -f conftest.er1
39343   cat conftest.err >&5
39344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39345   (exit $ac_status); } &&
39346          { ac_try='test -z "$ac_c_werror_flag"
39347                          || test ! -s conftest.err'
39348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39349   (eval $ac_try) 2>&5
39350   ac_status=$?
39351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39352   (exit $ac_status); }; } &&
39353          { ac_try='test -s conftest.$ac_objext'
39354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39355   (eval $ac_try) 2>&5
39356   ac_status=$?
39357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39358   (exit $ac_status); }; }; then
39359   ac_hi=$ac_mid
39360 else
39361   echo "$as_me: failed program was:" >&5
39362 sed 's/^/| /' conftest.$ac_ext >&5
39363
39364 ac_lo=`expr '(' $ac_mid ')' + 1`
39365 fi
39366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39367 done
39368 case $ac_lo in
39369 ?*) ac_cv_sizeof_int=$ac_lo;;
39370 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39371 See \`config.log' for more details." >&5
39372 echo "$as_me: error: cannot compute sizeof (int), 77
39373 See \`config.log' for more details." >&2;}
39374    { (exit 1); exit 1; }; } ;;
39375 esac
39376 else
39377   if test "$cross_compiling" = yes; then
39378   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39379 See \`config.log' for more details." >&5
39380 echo "$as_me: error: cannot run test program while cross compiling
39381 See \`config.log' for more details." >&2;}
39382    { (exit 1); exit 1; }; }
39383 else
39384   cat >conftest.$ac_ext <<_ACEOF
39385 /* confdefs.h.  */
39386 _ACEOF
39387 cat confdefs.h >>conftest.$ac_ext
39388 cat >>conftest.$ac_ext <<_ACEOF
39389 /* end confdefs.h.  */
39390 $ac_includes_default
39391 long longval () { return (long) (sizeof (int)); }
39392 unsigned long ulongval () { return (long) (sizeof (int)); }
39393 #include <stdio.h>
39394 #include <stdlib.h>
39395 int
39396 main ()
39397 {
39398
39399   FILE *f = fopen ("conftest.val", "w");
39400   if (! f)
39401     exit (1);
39402   if (((long) (sizeof (int))) < 0)
39403     {
39404       long i = longval ();
39405       if (i != ((long) (sizeof (int))))
39406         exit (1);
39407       fprintf (f, "%ld\n", i);
39408     }
39409   else
39410     {
39411       unsigned long i = ulongval ();
39412       if (i != ((long) (sizeof (int))))
39413         exit (1);
39414       fprintf (f, "%lu\n", i);
39415     }
39416   exit (ferror (f) || fclose (f) != 0);
39417
39418   ;
39419   return 0;
39420 }
39421 _ACEOF
39422 rm -f conftest$ac_exeext
39423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39424   (eval $ac_link) 2>&5
39425   ac_status=$?
39426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429   (eval $ac_try) 2>&5
39430   ac_status=$?
39431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432   (exit $ac_status); }; }; then
39433   ac_cv_sizeof_int=`cat conftest.val`
39434 else
39435   echo "$as_me: program exited with status $ac_status" >&5
39436 echo "$as_me: failed program was:" >&5
39437 sed 's/^/| /' conftest.$ac_ext >&5
39438
39439 ( exit $ac_status )
39440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39441 See \`config.log' for more details." >&5
39442 echo "$as_me: error: cannot compute sizeof (int), 77
39443 See \`config.log' for more details." >&2;}
39444    { (exit 1); exit 1; }; }
39445 fi
39446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39447 fi
39448 fi
39449 rm -f conftest.val
39450 else
39451   ac_cv_sizeof_int=0
39452 fi
39453 fi
39454 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39455 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39456 cat >>confdefs.h <<_ACEOF
39457 #define SIZEOF_INT $ac_cv_sizeof_int
39458 _ACEOF
39459
39460
39461 echo "$as_me:$LINENO: checking for long" >&5
39462 echo $ECHO_N "checking for long... $ECHO_C" >&6
39463 if test "${ac_cv_type_long+set}" = set; then
39464   echo $ECHO_N "(cached) $ECHO_C" >&6
39465 else
39466   cat >conftest.$ac_ext <<_ACEOF
39467 /* confdefs.h.  */
39468 _ACEOF
39469 cat confdefs.h >>conftest.$ac_ext
39470 cat >>conftest.$ac_ext <<_ACEOF
39471 /* end confdefs.h.  */
39472 $ac_includes_default
39473 int
39474 main ()
39475 {
39476 if ((long *) 0)
39477   return 0;
39478 if (sizeof (long))
39479   return 0;
39480   ;
39481   return 0;
39482 }
39483 _ACEOF
39484 rm -f conftest.$ac_objext
39485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39486   (eval $ac_compile) 2>conftest.er1
39487   ac_status=$?
39488   grep -v '^ *+' conftest.er1 >conftest.err
39489   rm -f conftest.er1
39490   cat conftest.err >&5
39491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492   (exit $ac_status); } &&
39493          { ac_try='test -z "$ac_c_werror_flag"
39494                          || test ! -s conftest.err'
39495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39496   (eval $ac_try) 2>&5
39497   ac_status=$?
39498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39499   (exit $ac_status); }; } &&
39500          { ac_try='test -s conftest.$ac_objext'
39501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39502   (eval $ac_try) 2>&5
39503   ac_status=$?
39504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505   (exit $ac_status); }; }; then
39506   ac_cv_type_long=yes
39507 else
39508   echo "$as_me: failed program was:" >&5
39509 sed 's/^/| /' conftest.$ac_ext >&5
39510
39511 ac_cv_type_long=no
39512 fi
39513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39514 fi
39515 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39516 echo "${ECHO_T}$ac_cv_type_long" >&6
39517
39518 echo "$as_me:$LINENO: checking size of long" >&5
39519 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39520 if test "${ac_cv_sizeof_long+set}" = set; then
39521   echo $ECHO_N "(cached) $ECHO_C" >&6
39522 else
39523   if test "$ac_cv_type_long" = yes; then
39524   # The cast to unsigned long works around a bug in the HP C Compiler
39525   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39526   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39527   # This bug is HP SR number 8606223364.
39528   if test "$cross_compiling" = yes; then
39529   # Depending upon the size, compute the lo and hi bounds.
39530 cat >conftest.$ac_ext <<_ACEOF
39531 /* confdefs.h.  */
39532 _ACEOF
39533 cat confdefs.h >>conftest.$ac_ext
39534 cat >>conftest.$ac_ext <<_ACEOF
39535 /* end confdefs.h.  */
39536 $ac_includes_default
39537 int
39538 main ()
39539 {
39540 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39541 test_array [0] = 0
39542
39543   ;
39544   return 0;
39545 }
39546 _ACEOF
39547 rm -f conftest.$ac_objext
39548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39549   (eval $ac_compile) 2>conftest.er1
39550   ac_status=$?
39551   grep -v '^ *+' conftest.er1 >conftest.err
39552   rm -f conftest.er1
39553   cat conftest.err >&5
39554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555   (exit $ac_status); } &&
39556          { ac_try='test -z "$ac_c_werror_flag"
39557                          || test ! -s conftest.err'
39558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559   (eval $ac_try) 2>&5
39560   ac_status=$?
39561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562   (exit $ac_status); }; } &&
39563          { ac_try='test -s conftest.$ac_objext'
39564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39565   (eval $ac_try) 2>&5
39566   ac_status=$?
39567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568   (exit $ac_status); }; }; then
39569   ac_lo=0 ac_mid=0
39570   while :; do
39571     cat >conftest.$ac_ext <<_ACEOF
39572 /* confdefs.h.  */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h.  */
39577 $ac_includes_default
39578 int
39579 main ()
39580 {
39581 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39582 test_array [0] = 0
39583
39584   ;
39585   return 0;
39586 }
39587 _ACEOF
39588 rm -f conftest.$ac_objext
39589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39590   (eval $ac_compile) 2>conftest.er1
39591   ac_status=$?
39592   grep -v '^ *+' conftest.er1 >conftest.err
39593   rm -f conftest.er1
39594   cat conftest.err >&5
39595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596   (exit $ac_status); } &&
39597          { ac_try='test -z "$ac_c_werror_flag"
39598                          || test ! -s conftest.err'
39599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39600   (eval $ac_try) 2>&5
39601   ac_status=$?
39602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603   (exit $ac_status); }; } &&
39604          { ac_try='test -s conftest.$ac_objext'
39605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39606   (eval $ac_try) 2>&5
39607   ac_status=$?
39608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609   (exit $ac_status); }; }; then
39610   ac_hi=$ac_mid; break
39611 else
39612   echo "$as_me: failed program was:" >&5
39613 sed 's/^/| /' conftest.$ac_ext >&5
39614
39615 ac_lo=`expr $ac_mid + 1`
39616                     if test $ac_lo -le $ac_mid; then
39617                       ac_lo= ac_hi=
39618                       break
39619                     fi
39620                     ac_mid=`expr 2 '*' $ac_mid + 1`
39621 fi
39622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39623   done
39624 else
39625   echo "$as_me: failed program was:" >&5
39626 sed 's/^/| /' conftest.$ac_ext >&5
39627
39628 cat >conftest.$ac_ext <<_ACEOF
39629 /* confdefs.h.  */
39630 _ACEOF
39631 cat confdefs.h >>conftest.$ac_ext
39632 cat >>conftest.$ac_ext <<_ACEOF
39633 /* end confdefs.h.  */
39634 $ac_includes_default
39635 int
39636 main ()
39637 {
39638 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39639 test_array [0] = 0
39640
39641   ;
39642   return 0;
39643 }
39644 _ACEOF
39645 rm -f conftest.$ac_objext
39646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39647   (eval $ac_compile) 2>conftest.er1
39648   ac_status=$?
39649   grep -v '^ *+' conftest.er1 >conftest.err
39650   rm -f conftest.er1
39651   cat conftest.err >&5
39652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39653   (exit $ac_status); } &&
39654          { ac_try='test -z "$ac_c_werror_flag"
39655                          || test ! -s conftest.err'
39656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39657   (eval $ac_try) 2>&5
39658   ac_status=$?
39659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660   (exit $ac_status); }; } &&
39661          { ac_try='test -s conftest.$ac_objext'
39662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39663   (eval $ac_try) 2>&5
39664   ac_status=$?
39665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666   (exit $ac_status); }; }; then
39667   ac_hi=-1 ac_mid=-1
39668   while :; do
39669     cat >conftest.$ac_ext <<_ACEOF
39670 /* confdefs.h.  */
39671 _ACEOF
39672 cat confdefs.h >>conftest.$ac_ext
39673 cat >>conftest.$ac_ext <<_ACEOF
39674 /* end confdefs.h.  */
39675 $ac_includes_default
39676 int
39677 main ()
39678 {
39679 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39680 test_array [0] = 0
39681
39682   ;
39683   return 0;
39684 }
39685 _ACEOF
39686 rm -f conftest.$ac_objext
39687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39688   (eval $ac_compile) 2>conftest.er1
39689   ac_status=$?
39690   grep -v '^ *+' conftest.er1 >conftest.err
39691   rm -f conftest.er1
39692   cat conftest.err >&5
39693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694   (exit $ac_status); } &&
39695          { ac_try='test -z "$ac_c_werror_flag"
39696                          || test ! -s conftest.err'
39697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39698   (eval $ac_try) 2>&5
39699   ac_status=$?
39700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701   (exit $ac_status); }; } &&
39702          { ac_try='test -s conftest.$ac_objext'
39703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39704   (eval $ac_try) 2>&5
39705   ac_status=$?
39706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39707   (exit $ac_status); }; }; then
39708   ac_lo=$ac_mid; break
39709 else
39710   echo "$as_me: failed program was:" >&5
39711 sed 's/^/| /' conftest.$ac_ext >&5
39712
39713 ac_hi=`expr '(' $ac_mid ')' - 1`
39714                        if test $ac_mid -le $ac_hi; then
39715                          ac_lo= ac_hi=
39716                          break
39717                        fi
39718                        ac_mid=`expr 2 '*' $ac_mid`
39719 fi
39720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39721   done
39722 else
39723   echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39725
39726 ac_lo= ac_hi=
39727 fi
39728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39729 fi
39730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39731 # Binary search between lo and hi bounds.
39732 while test "x$ac_lo" != "x$ac_hi"; do
39733   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39734   cat >conftest.$ac_ext <<_ACEOF
39735 /* confdefs.h.  */
39736 _ACEOF
39737 cat confdefs.h >>conftest.$ac_ext
39738 cat >>conftest.$ac_ext <<_ACEOF
39739 /* end confdefs.h.  */
39740 $ac_includes_default
39741 int
39742 main ()
39743 {
39744 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39745 test_array [0] = 0
39746
39747   ;
39748   return 0;
39749 }
39750 _ACEOF
39751 rm -f conftest.$ac_objext
39752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39753   (eval $ac_compile) 2>conftest.er1
39754   ac_status=$?
39755   grep -v '^ *+' conftest.er1 >conftest.err
39756   rm -f conftest.er1
39757   cat conftest.err >&5
39758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759   (exit $ac_status); } &&
39760          { ac_try='test -z "$ac_c_werror_flag"
39761                          || test ! -s conftest.err'
39762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39763   (eval $ac_try) 2>&5
39764   ac_status=$?
39765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766   (exit $ac_status); }; } &&
39767          { ac_try='test -s conftest.$ac_objext'
39768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39769   (eval $ac_try) 2>&5
39770   ac_status=$?
39771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772   (exit $ac_status); }; }; then
39773   ac_hi=$ac_mid
39774 else
39775   echo "$as_me: failed program was:" >&5
39776 sed 's/^/| /' conftest.$ac_ext >&5
39777
39778 ac_lo=`expr '(' $ac_mid ')' + 1`
39779 fi
39780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39781 done
39782 case $ac_lo in
39783 ?*) ac_cv_sizeof_long=$ac_lo;;
39784 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39785 See \`config.log' for more details." >&5
39786 echo "$as_me: error: cannot compute sizeof (long), 77
39787 See \`config.log' for more details." >&2;}
39788    { (exit 1); exit 1; }; } ;;
39789 esac
39790 else
39791   if test "$cross_compiling" = yes; then
39792   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39793 See \`config.log' for more details." >&5
39794 echo "$as_me: error: cannot run test program while cross compiling
39795 See \`config.log' for more details." >&2;}
39796    { (exit 1); exit 1; }; }
39797 else
39798   cat >conftest.$ac_ext <<_ACEOF
39799 /* confdefs.h.  */
39800 _ACEOF
39801 cat confdefs.h >>conftest.$ac_ext
39802 cat >>conftest.$ac_ext <<_ACEOF
39803 /* end confdefs.h.  */
39804 $ac_includes_default
39805 long longval () { return (long) (sizeof (long)); }
39806 unsigned long ulongval () { return (long) (sizeof (long)); }
39807 #include <stdio.h>
39808 #include <stdlib.h>
39809 int
39810 main ()
39811 {
39812
39813   FILE *f = fopen ("conftest.val", "w");
39814   if (! f)
39815     exit (1);
39816   if (((long) (sizeof (long))) < 0)
39817     {
39818       long i = longval ();
39819       if (i != ((long) (sizeof (long))))
39820         exit (1);
39821       fprintf (f, "%ld\n", i);
39822     }
39823   else
39824     {
39825       unsigned long i = ulongval ();
39826       if (i != ((long) (sizeof (long))))
39827         exit (1);
39828       fprintf (f, "%lu\n", i);
39829     }
39830   exit (ferror (f) || fclose (f) != 0);
39831
39832   ;
39833   return 0;
39834 }
39835 _ACEOF
39836 rm -f conftest$ac_exeext
39837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39838   (eval $ac_link) 2>&5
39839   ac_status=$?
39840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39843   (eval $ac_try) 2>&5
39844   ac_status=$?
39845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39846   (exit $ac_status); }; }; then
39847   ac_cv_sizeof_long=`cat conftest.val`
39848 else
39849   echo "$as_me: program exited with status $ac_status" >&5
39850 echo "$as_me: failed program was:" >&5
39851 sed 's/^/| /' conftest.$ac_ext >&5
39852
39853 ( exit $ac_status )
39854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39855 See \`config.log' for more details." >&5
39856 echo "$as_me: error: cannot compute sizeof (long), 77
39857 See \`config.log' for more details." >&2;}
39858    { (exit 1); exit 1; }; }
39859 fi
39860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39861 fi
39862 fi
39863 rm -f conftest.val
39864 else
39865   ac_cv_sizeof_long=0
39866 fi
39867 fi
39868 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39869 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39870 cat >>confdefs.h <<_ACEOF
39871 #define SIZEOF_LONG $ac_cv_sizeof_long
39872 _ACEOF
39873
39874
39875 echo "$as_me:$LINENO: checking for wchar_t" >&5
39876 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39877 if test "${ac_cv_type_wchar_t+set}" = set; then
39878   echo $ECHO_N "(cached) $ECHO_C" >&6
39879 else
39880   cat >conftest.$ac_ext <<_ACEOF
39881 /* confdefs.h.  */
39882 _ACEOF
39883 cat confdefs.h >>conftest.$ac_ext
39884 cat >>conftest.$ac_ext <<_ACEOF
39885 /* end confdefs.h.  */
39886 $ac_includes_default
39887 int
39888 main ()
39889 {
39890 if ((wchar_t *) 0)
39891   return 0;
39892 if (sizeof (wchar_t))
39893   return 0;
39894   ;
39895   return 0;
39896 }
39897 _ACEOF
39898 rm -f conftest.$ac_objext
39899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39900   (eval $ac_compile) 2>conftest.er1
39901   ac_status=$?
39902   grep -v '^ *+' conftest.er1 >conftest.err
39903   rm -f conftest.er1
39904   cat conftest.err >&5
39905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906   (exit $ac_status); } &&
39907          { ac_try='test -z "$ac_c_werror_flag"
39908                          || test ! -s conftest.err'
39909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910   (eval $ac_try) 2>&5
39911   ac_status=$?
39912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913   (exit $ac_status); }; } &&
39914          { ac_try='test -s conftest.$ac_objext'
39915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39916   (eval $ac_try) 2>&5
39917   ac_status=$?
39918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919   (exit $ac_status); }; }; then
39920   ac_cv_type_wchar_t=yes
39921 else
39922   echo "$as_me: failed program was:" >&5
39923 sed 's/^/| /' conftest.$ac_ext >&5
39924
39925 ac_cv_type_wchar_t=no
39926 fi
39927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39928 fi
39929 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39930 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39931
39932 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39933 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39934 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39935   echo $ECHO_N "(cached) $ECHO_C" >&6
39936 else
39937   if test "$ac_cv_type_wchar_t" = yes; then
39938   # The cast to unsigned long works around a bug in the HP C Compiler
39939   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39940   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39941   # This bug is HP SR number 8606223364.
39942   if test "$cross_compiling" = yes; then
39943   # Depending upon the size, compute the lo and hi bounds.
39944 cat >conftest.$ac_ext <<_ACEOF
39945 /* confdefs.h.  */
39946 _ACEOF
39947 cat confdefs.h >>conftest.$ac_ext
39948 cat >>conftest.$ac_ext <<_ACEOF
39949 /* end confdefs.h.  */
39950 $ac_includes_default
39951 int
39952 main ()
39953 {
39954 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39955 test_array [0] = 0
39956
39957   ;
39958   return 0;
39959 }
39960 _ACEOF
39961 rm -f conftest.$ac_objext
39962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39963   (eval $ac_compile) 2>conftest.er1
39964   ac_status=$?
39965   grep -v '^ *+' conftest.er1 >conftest.err
39966   rm -f conftest.er1
39967   cat conftest.err >&5
39968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969   (exit $ac_status); } &&
39970          { ac_try='test -z "$ac_c_werror_flag"
39971                          || test ! -s conftest.err'
39972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39973   (eval $ac_try) 2>&5
39974   ac_status=$?
39975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976   (exit $ac_status); }; } &&
39977          { ac_try='test -s conftest.$ac_objext'
39978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39979   (eval $ac_try) 2>&5
39980   ac_status=$?
39981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39982   (exit $ac_status); }; }; then
39983   ac_lo=0 ac_mid=0
39984   while :; do
39985     cat >conftest.$ac_ext <<_ACEOF
39986 /* confdefs.h.  */
39987 _ACEOF
39988 cat confdefs.h >>conftest.$ac_ext
39989 cat >>conftest.$ac_ext <<_ACEOF
39990 /* end confdefs.h.  */
39991 $ac_includes_default
39992 int
39993 main ()
39994 {
39995 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
39996 test_array [0] = 0
39997
39998   ;
39999   return 0;
40000 }
40001 _ACEOF
40002 rm -f conftest.$ac_objext
40003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40004   (eval $ac_compile) 2>conftest.er1
40005   ac_status=$?
40006   grep -v '^ *+' conftest.er1 >conftest.err
40007   rm -f conftest.er1
40008   cat conftest.err >&5
40009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010   (exit $ac_status); } &&
40011          { ac_try='test -z "$ac_c_werror_flag"
40012                          || test ! -s conftest.err'
40013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40014   (eval $ac_try) 2>&5
40015   ac_status=$?
40016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017   (exit $ac_status); }; } &&
40018          { ac_try='test -s conftest.$ac_objext'
40019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40020   (eval $ac_try) 2>&5
40021   ac_status=$?
40022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40023   (exit $ac_status); }; }; then
40024   ac_hi=$ac_mid; break
40025 else
40026   echo "$as_me: failed program was:" >&5
40027 sed 's/^/| /' conftest.$ac_ext >&5
40028
40029 ac_lo=`expr $ac_mid + 1`
40030                     if test $ac_lo -le $ac_mid; then
40031                       ac_lo= ac_hi=
40032                       break
40033                     fi
40034                     ac_mid=`expr 2 '*' $ac_mid + 1`
40035 fi
40036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40037   done
40038 else
40039   echo "$as_me: failed program was:" >&5
40040 sed 's/^/| /' conftest.$ac_ext >&5
40041
40042 cat >conftest.$ac_ext <<_ACEOF
40043 /* confdefs.h.  */
40044 _ACEOF
40045 cat confdefs.h >>conftest.$ac_ext
40046 cat >>conftest.$ac_ext <<_ACEOF
40047 /* end confdefs.h.  */
40048 $ac_includes_default
40049 int
40050 main ()
40051 {
40052 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
40053 test_array [0] = 0
40054
40055   ;
40056   return 0;
40057 }
40058 _ACEOF
40059 rm -f conftest.$ac_objext
40060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40061   (eval $ac_compile) 2>conftest.er1
40062   ac_status=$?
40063   grep -v '^ *+' conftest.er1 >conftest.err
40064   rm -f conftest.er1
40065   cat conftest.err >&5
40066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067   (exit $ac_status); } &&
40068          { ac_try='test -z "$ac_c_werror_flag"
40069                          || test ! -s conftest.err'
40070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40071   (eval $ac_try) 2>&5
40072   ac_status=$?
40073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074   (exit $ac_status); }; } &&
40075          { ac_try='test -s conftest.$ac_objext'
40076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40077   (eval $ac_try) 2>&5
40078   ac_status=$?
40079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080   (exit $ac_status); }; }; then
40081   ac_hi=-1 ac_mid=-1
40082   while :; do
40083     cat >conftest.$ac_ext <<_ACEOF
40084 /* confdefs.h.  */
40085 _ACEOF
40086 cat confdefs.h >>conftest.$ac_ext
40087 cat >>conftest.$ac_ext <<_ACEOF
40088 /* end confdefs.h.  */
40089 $ac_includes_default
40090 int
40091 main ()
40092 {
40093 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40094 test_array [0] = 0
40095
40096   ;
40097   return 0;
40098 }
40099 _ACEOF
40100 rm -f conftest.$ac_objext
40101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40102   (eval $ac_compile) 2>conftest.er1
40103   ac_status=$?
40104   grep -v '^ *+' conftest.er1 >conftest.err
40105   rm -f conftest.er1
40106   cat conftest.err >&5
40107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108   (exit $ac_status); } &&
40109          { ac_try='test -z "$ac_c_werror_flag"
40110                          || test ! -s conftest.err'
40111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40112   (eval $ac_try) 2>&5
40113   ac_status=$?
40114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115   (exit $ac_status); }; } &&
40116          { ac_try='test -s conftest.$ac_objext'
40117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40118   (eval $ac_try) 2>&5
40119   ac_status=$?
40120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121   (exit $ac_status); }; }; then
40122   ac_lo=$ac_mid; break
40123 else
40124   echo "$as_me: failed program was:" >&5
40125 sed 's/^/| /' conftest.$ac_ext >&5
40126
40127 ac_hi=`expr '(' $ac_mid ')' - 1`
40128                        if test $ac_mid -le $ac_hi; then
40129                          ac_lo= ac_hi=
40130                          break
40131                        fi
40132                        ac_mid=`expr 2 '*' $ac_mid`
40133 fi
40134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40135   done
40136 else
40137   echo "$as_me: failed program was:" >&5
40138 sed 's/^/| /' conftest.$ac_ext >&5
40139
40140 ac_lo= ac_hi=
40141 fi
40142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40143 fi
40144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40145 # Binary search between lo and hi bounds.
40146 while test "x$ac_lo" != "x$ac_hi"; do
40147   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40148   cat >conftest.$ac_ext <<_ACEOF
40149 /* confdefs.h.  */
40150 _ACEOF
40151 cat confdefs.h >>conftest.$ac_ext
40152 cat >>conftest.$ac_ext <<_ACEOF
40153 /* end confdefs.h.  */
40154 $ac_includes_default
40155 int
40156 main ()
40157 {
40158 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40159 test_array [0] = 0
40160
40161   ;
40162   return 0;
40163 }
40164 _ACEOF
40165 rm -f conftest.$ac_objext
40166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40167   (eval $ac_compile) 2>conftest.er1
40168   ac_status=$?
40169   grep -v '^ *+' conftest.er1 >conftest.err
40170   rm -f conftest.er1
40171   cat conftest.err >&5
40172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40173   (exit $ac_status); } &&
40174          { ac_try='test -z "$ac_c_werror_flag"
40175                          || test ! -s conftest.err'
40176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177   (eval $ac_try) 2>&5
40178   ac_status=$?
40179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180   (exit $ac_status); }; } &&
40181          { ac_try='test -s conftest.$ac_objext'
40182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40183   (eval $ac_try) 2>&5
40184   ac_status=$?
40185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186   (exit $ac_status); }; }; then
40187   ac_hi=$ac_mid
40188 else
40189   echo "$as_me: failed program was:" >&5
40190 sed 's/^/| /' conftest.$ac_ext >&5
40191
40192 ac_lo=`expr '(' $ac_mid ')' + 1`
40193 fi
40194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40195 done
40196 case $ac_lo in
40197 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40198 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40199 See \`config.log' for more details." >&5
40200 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40201 See \`config.log' for more details." >&2;}
40202    { (exit 1); exit 1; }; } ;;
40203 esac
40204 else
40205   if test "$cross_compiling" = yes; then
40206   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40207 See \`config.log' for more details." >&5
40208 echo "$as_me: error: cannot run test program while cross compiling
40209 See \`config.log' for more details." >&2;}
40210    { (exit 1); exit 1; }; }
40211 else
40212   cat >conftest.$ac_ext <<_ACEOF
40213 /* confdefs.h.  */
40214 _ACEOF
40215 cat confdefs.h >>conftest.$ac_ext
40216 cat >>conftest.$ac_ext <<_ACEOF
40217 /* end confdefs.h.  */
40218 $ac_includes_default
40219 long longval () { return (long) (sizeof (wchar_t)); }
40220 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40221 #include <stdio.h>
40222 #include <stdlib.h>
40223 int
40224 main ()
40225 {
40226
40227   FILE *f = fopen ("conftest.val", "w");
40228   if (! f)
40229     exit (1);
40230   if (((long) (sizeof (wchar_t))) < 0)
40231     {
40232       long i = longval ();
40233       if (i != ((long) (sizeof (wchar_t))))
40234         exit (1);
40235       fprintf (f, "%ld\n", i);
40236     }
40237   else
40238     {
40239       unsigned long i = ulongval ();
40240       if (i != ((long) (sizeof (wchar_t))))
40241         exit (1);
40242       fprintf (f, "%lu\n", i);
40243     }
40244   exit (ferror (f) || fclose (f) != 0);
40245
40246   ;
40247   return 0;
40248 }
40249 _ACEOF
40250 rm -f conftest$ac_exeext
40251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40252   (eval $ac_link) 2>&5
40253   ac_status=$?
40254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257   (eval $ac_try) 2>&5
40258   ac_status=$?
40259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260   (exit $ac_status); }; }; then
40261   ac_cv_sizeof_wchar_t=`cat conftest.val`
40262 else
40263   echo "$as_me: program exited with status $ac_status" >&5
40264 echo "$as_me: failed program was:" >&5
40265 sed 's/^/| /' conftest.$ac_ext >&5
40266
40267 ( exit $ac_status )
40268 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40269 See \`config.log' for more details." >&5
40270 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40271 See \`config.log' for more details." >&2;}
40272    { (exit 1); exit 1; }; }
40273 fi
40274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40275 fi
40276 fi
40277 rm -f conftest.val
40278 else
40279   ac_cv_sizeof_wchar_t=0
40280 fi
40281 fi
40282 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40283 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40284 cat >>confdefs.h <<_ACEOF
40285 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40286 _ACEOF
40287
40288
40289
40290 if test "$ac_cv_sizeof_int" -lt 4 ; then
40291         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40292 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40293
40294
40295 cat >>confdefs.h <<\_ACEOF
40296 #define LBER_INT_T long
40297 _ACEOF
40298
40299 else
40300
40301 cat >>confdefs.h <<\_ACEOF
40302 #define LBER_INT_T int
40303 _ACEOF
40304
40305 fi
40306
40307
40308 cat >>confdefs.h <<\_ACEOF
40309 #define LBER_LEN_T long
40310 _ACEOF
40311
40312
40313 cat >>confdefs.h <<\_ACEOF
40314 #define LBER_SOCKET_T int
40315 _ACEOF
40316
40317
40318 cat >>confdefs.h <<\_ACEOF
40319 #define LBER_TAG_T long
40320 _ACEOF
40321
40322
40323 echo "$as_me:$LINENO: checking for working memcmp" >&5
40324 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40325 if test "${ac_cv_func_memcmp_working+set}" = set; then
40326   echo $ECHO_N "(cached) $ECHO_C" >&6
40327 else
40328   if test "$cross_compiling" = yes; then
40329   ac_cv_func_memcmp_working=no
40330 else
40331   cat >conftest.$ac_ext <<_ACEOF
40332 /* confdefs.h.  */
40333 _ACEOF
40334 cat confdefs.h >>conftest.$ac_ext
40335 cat >>conftest.$ac_ext <<_ACEOF
40336 /* end confdefs.h.  */
40337 $ac_includes_default
40338 int
40339 main ()
40340 {
40341
40342   /* Some versions of memcmp are not 8-bit clean.  */
40343   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40344   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40345     exit (1);
40346
40347   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40348      or more and with at least one buffer not starting on a 4-byte boundary.
40349      William Lewis provided this test program.   */
40350   {
40351     char foo[21];
40352     char bar[21];
40353     int i;
40354     for (i = 0; i < 4; i++)
40355       {
40356         char *a = foo + i;
40357         char *b = bar + i;
40358         strcpy (a, "--------01111111");
40359         strcpy (b, "--------10000000");
40360         if (memcmp (a, b, 16) >= 0)
40361           exit (1);
40362       }
40363     exit (0);
40364   }
40365
40366   ;
40367   return 0;
40368 }
40369 _ACEOF
40370 rm -f conftest$ac_exeext
40371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40372   (eval $ac_link) 2>&5
40373   ac_status=$?
40374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40377   (eval $ac_try) 2>&5
40378   ac_status=$?
40379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380   (exit $ac_status); }; }; then
40381   ac_cv_func_memcmp_working=yes
40382 else
40383   echo "$as_me: program exited with status $ac_status" >&5
40384 echo "$as_me: failed program was:" >&5
40385 sed 's/^/| /' conftest.$ac_ext >&5
40386
40387 ( exit $ac_status )
40388 ac_cv_func_memcmp_working=no
40389 fi
40390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40391 fi
40392 fi
40393 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40394 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40395 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40396     "memcmp.$ac_objext"   | \
40397   *" memcmp.$ac_objext"   | \
40398     "memcmp.$ac_objext "* | \
40399   *" memcmp.$ac_objext "* ) ;;
40400   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40401 esac
40402
40403
40404
40405 if test $ac_cv_func_memcmp_working = no ; then
40406
40407 cat >>confdefs.h <<\_ACEOF
40408 #define NEED_MEMCMP_REPLACEMENT 1
40409 _ACEOF
40410
40411 fi
40412
40413
40414 for ac_func in strftime
40415 do
40416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40417 echo "$as_me:$LINENO: checking for $ac_func" >&5
40418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40419 if eval "test \"\${$as_ac_var+set}\" = set"; then
40420   echo $ECHO_N "(cached) $ECHO_C" >&6
40421 else
40422   cat >conftest.$ac_ext <<_ACEOF
40423 /* confdefs.h.  */
40424 _ACEOF
40425 cat confdefs.h >>conftest.$ac_ext
40426 cat >>conftest.$ac_ext <<_ACEOF
40427 /* end confdefs.h.  */
40428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40430 #define $ac_func innocuous_$ac_func
40431
40432 /* System header to define __stub macros and hopefully few prototypes,
40433     which can conflict with char $ac_func (); below.
40434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40435     <limits.h> exists even on freestanding compilers.  */
40436
40437 #ifdef __STDC__
40438 # include <limits.h>
40439 #else
40440 # include <assert.h>
40441 #endif
40442
40443 #undef $ac_func
40444
40445 /* Override any gcc2 internal prototype to avoid an error.  */
40446 #ifdef __cplusplus
40447 extern "C"
40448 {
40449 #endif
40450 /* We use char because int might match the return type of a gcc2
40451    builtin and then its argument prototype would still apply.  */
40452 char $ac_func ();
40453 /* The GNU C library defines this for functions which it implements
40454     to always fail with ENOSYS.  Some functions are actually named
40455     something starting with __ and the normal name is an alias.  */
40456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40457 choke me
40458 #else
40459 char (*f) () = $ac_func;
40460 #endif
40461 #ifdef __cplusplus
40462 }
40463 #endif
40464
40465 int
40466 main ()
40467 {
40468 return f != $ac_func;
40469   ;
40470   return 0;
40471 }
40472 _ACEOF
40473 rm -f conftest.$ac_objext conftest$ac_exeext
40474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40475   (eval $ac_link) 2>conftest.er1
40476   ac_status=$?
40477   grep -v '^ *+' conftest.er1 >conftest.err
40478   rm -f conftest.er1
40479   cat conftest.err >&5
40480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40481   (exit $ac_status); } &&
40482          { ac_try='test -z "$ac_c_werror_flag"
40483                          || test ! -s conftest.err'
40484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40485   (eval $ac_try) 2>&5
40486   ac_status=$?
40487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40488   (exit $ac_status); }; } &&
40489          { ac_try='test -s conftest$ac_exeext'
40490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40491   (eval $ac_try) 2>&5
40492   ac_status=$?
40493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40494   (exit $ac_status); }; }; then
40495   eval "$as_ac_var=yes"
40496 else
40497   echo "$as_me: failed program was:" >&5
40498 sed 's/^/| /' conftest.$ac_ext >&5
40499
40500 eval "$as_ac_var=no"
40501 fi
40502 rm -f conftest.err conftest.$ac_objext \
40503       conftest$ac_exeext conftest.$ac_ext
40504 fi
40505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40507 if test `eval echo '${'$as_ac_var'}'` = yes; then
40508   cat >>confdefs.h <<_ACEOF
40509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40510 _ACEOF
40511
40512 else
40513   # strftime is in -lintl on SCO UNIX.
40514 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40515 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40516 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40517   echo $ECHO_N "(cached) $ECHO_C" >&6
40518 else
40519   ac_check_lib_save_LIBS=$LIBS
40520 LIBS="-lintl  $LIBS"
40521 cat >conftest.$ac_ext <<_ACEOF
40522 /* confdefs.h.  */
40523 _ACEOF
40524 cat confdefs.h >>conftest.$ac_ext
40525 cat >>conftest.$ac_ext <<_ACEOF
40526 /* end confdefs.h.  */
40527
40528 /* Override any gcc2 internal prototype to avoid an error.  */
40529 #ifdef __cplusplus
40530 extern "C"
40531 #endif
40532 /* We use char because int might match the return type of a gcc2
40533    builtin and then its argument prototype would still apply.  */
40534 char strftime ();
40535 int
40536 main ()
40537 {
40538 strftime ();
40539   ;
40540   return 0;
40541 }
40542 _ACEOF
40543 rm -f conftest.$ac_objext conftest$ac_exeext
40544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40545   (eval $ac_link) 2>conftest.er1
40546   ac_status=$?
40547   grep -v '^ *+' conftest.er1 >conftest.err
40548   rm -f conftest.er1
40549   cat conftest.err >&5
40550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551   (exit $ac_status); } &&
40552          { ac_try='test -z "$ac_c_werror_flag"
40553                          || test ! -s conftest.err'
40554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40555   (eval $ac_try) 2>&5
40556   ac_status=$?
40557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40558   (exit $ac_status); }; } &&
40559          { ac_try='test -s conftest$ac_exeext'
40560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40561   (eval $ac_try) 2>&5
40562   ac_status=$?
40563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564   (exit $ac_status); }; }; then
40565   ac_cv_lib_intl_strftime=yes
40566 else
40567   echo "$as_me: failed program was:" >&5
40568 sed 's/^/| /' conftest.$ac_ext >&5
40569
40570 ac_cv_lib_intl_strftime=no
40571 fi
40572 rm -f conftest.err conftest.$ac_objext \
40573       conftest$ac_exeext conftest.$ac_ext
40574 LIBS=$ac_check_lib_save_LIBS
40575 fi
40576 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40577 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40578 if test $ac_cv_lib_intl_strftime = yes; then
40579   cat >>confdefs.h <<\_ACEOF
40580 #define HAVE_STRFTIME 1
40581 _ACEOF
40582
40583 LIBS="-lintl $LIBS"
40584 fi
40585
40586 fi
40587 done
40588
40589
40590 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40591 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40592 if test "${ol_cv_func_inet_aton+set}" = set; then
40593   echo $ECHO_N "(cached) $ECHO_C" >&6
40594 else
40595   cat >conftest.$ac_ext <<_ACEOF
40596 /* confdefs.h.  */
40597 _ACEOF
40598 cat confdefs.h >>conftest.$ac_ext
40599 cat >>conftest.$ac_ext <<_ACEOF
40600 /* end confdefs.h.  */
40601
40602 #ifdef HAVE_SYS_TYPES_H
40603 #       include <sys/types.h>
40604 #endif
40605 #ifdef HAVE_SYS_SOCKET_H
40606 #       include <sys/socket.h>
40607 #       ifdef HAVE_SYS_SELECT_H
40608 #               include <sys/select.h>
40609 #       endif
40610 #       include <netinet/in.h>
40611 #       ifdef HAVE_ARPA_INET_H
40612 #               include <arpa/inet.h>
40613 #       endif
40614 #endif
40615
40616 int
40617 main ()
40618 {
40619 struct in_addr in;
40620 int rc = inet_aton( "255.255.255.255", &in );
40621   ;
40622   return 0;
40623 }
40624 _ACEOF
40625 rm -f conftest.$ac_objext conftest$ac_exeext
40626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40627   (eval $ac_link) 2>conftest.er1
40628   ac_status=$?
40629   grep -v '^ *+' conftest.er1 >conftest.err
40630   rm -f conftest.er1
40631   cat conftest.err >&5
40632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633   (exit $ac_status); } &&
40634          { ac_try='test -z "$ac_c_werror_flag"
40635                          || test ! -s conftest.err'
40636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40637   (eval $ac_try) 2>&5
40638   ac_status=$?
40639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640   (exit $ac_status); }; } &&
40641          { ac_try='test -s conftest$ac_exeext'
40642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40643   (eval $ac_try) 2>&5
40644   ac_status=$?
40645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646   (exit $ac_status); }; }; then
40647   ol_cv_func_inet_aton=yes
40648 else
40649   echo "$as_me: failed program was:" >&5
40650 sed 's/^/| /' conftest.$ac_ext >&5
40651
40652 ol_cv_func_inet_aton=no
40653 fi
40654 rm -f conftest.err conftest.$ac_objext \
40655       conftest$ac_exeext conftest.$ac_ext
40656 fi
40657 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40658 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40659   if test $ol_cv_func_inet_aton != no; then
40660
40661 cat >>confdefs.h <<\_ACEOF
40662 #define HAVE_INET_ATON 1
40663 _ACEOF
40664
40665   fi
40666
40667
40668 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40669 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40670 if test "${ac_cv_func__spawnlp+set}" = set; then
40671   echo $ECHO_N "(cached) $ECHO_C" >&6
40672 else
40673   cat >conftest.$ac_ext <<_ACEOF
40674 /* confdefs.h.  */
40675 _ACEOF
40676 cat confdefs.h >>conftest.$ac_ext
40677 cat >>conftest.$ac_ext <<_ACEOF
40678 /* end confdefs.h.  */
40679 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40681 #define _spawnlp innocuous__spawnlp
40682
40683 /* System header to define __stub macros and hopefully few prototypes,
40684     which can conflict with char _spawnlp (); below.
40685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40686     <limits.h> exists even on freestanding compilers.  */
40687
40688 #ifdef __STDC__
40689 # include <limits.h>
40690 #else
40691 # include <assert.h>
40692 #endif
40693
40694 #undef _spawnlp
40695
40696 /* Override any gcc2 internal prototype to avoid an error.  */
40697 #ifdef __cplusplus
40698 extern "C"
40699 {
40700 #endif
40701 /* We use char because int might match the return type of a gcc2
40702    builtin and then its argument prototype would still apply.  */
40703 char _spawnlp ();
40704 /* The GNU C library defines this for functions which it implements
40705     to always fail with ENOSYS.  Some functions are actually named
40706     something starting with __ and the normal name is an alias.  */
40707 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40708 choke me
40709 #else
40710 char (*f) () = _spawnlp;
40711 #endif
40712 #ifdef __cplusplus
40713 }
40714 #endif
40715
40716 int
40717 main ()
40718 {
40719 return f != _spawnlp;
40720   ;
40721   return 0;
40722 }
40723 _ACEOF
40724 rm -f conftest.$ac_objext conftest$ac_exeext
40725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40726   (eval $ac_link) 2>conftest.er1
40727   ac_status=$?
40728   grep -v '^ *+' conftest.er1 >conftest.err
40729   rm -f conftest.er1
40730   cat conftest.err >&5
40731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40732   (exit $ac_status); } &&
40733          { ac_try='test -z "$ac_c_werror_flag"
40734                          || test ! -s conftest.err'
40735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40736   (eval $ac_try) 2>&5
40737   ac_status=$?
40738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739   (exit $ac_status); }; } &&
40740          { ac_try='test -s conftest$ac_exeext'
40741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40742   (eval $ac_try) 2>&5
40743   ac_status=$?
40744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745   (exit $ac_status); }; }; then
40746   ac_cv_func__spawnlp=yes
40747 else
40748   echo "$as_me: failed program was:" >&5
40749 sed 's/^/| /' conftest.$ac_ext >&5
40750
40751 ac_cv_func__spawnlp=no
40752 fi
40753 rm -f conftest.err conftest.$ac_objext \
40754       conftest$ac_exeext conftest.$ac_ext
40755 fi
40756 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40757 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40758 if test $ac_cv_func__spawnlp = yes; then
40759
40760 cat >>confdefs.h <<\_ACEOF
40761 #define HAVE_SPAWNLP 1
40762 _ACEOF
40763
40764 fi
40765
40766
40767 echo "$as_me:$LINENO: checking for _snprintf" >&5
40768 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40769 if test "${ac_cv_func__snprintf+set}" = set; then
40770   echo $ECHO_N "(cached) $ECHO_C" >&6
40771 else
40772   cat >conftest.$ac_ext <<_ACEOF
40773 /* confdefs.h.  */
40774 _ACEOF
40775 cat confdefs.h >>conftest.$ac_ext
40776 cat >>conftest.$ac_ext <<_ACEOF
40777 /* end confdefs.h.  */
40778 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40780 #define _snprintf innocuous__snprintf
40781
40782 /* System header to define __stub macros and hopefully few prototypes,
40783     which can conflict with char _snprintf (); below.
40784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40785     <limits.h> exists even on freestanding compilers.  */
40786
40787 #ifdef __STDC__
40788 # include <limits.h>
40789 #else
40790 # include <assert.h>
40791 #endif
40792
40793 #undef _snprintf
40794
40795 /* Override any gcc2 internal prototype to avoid an error.  */
40796 #ifdef __cplusplus
40797 extern "C"
40798 {
40799 #endif
40800 /* We use char because int might match the return type of a gcc2
40801    builtin and then its argument prototype would still apply.  */
40802 char _snprintf ();
40803 /* The GNU C library defines this for functions which it implements
40804     to always fail with ENOSYS.  Some functions are actually named
40805     something starting with __ and the normal name is an alias.  */
40806 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40807 choke me
40808 #else
40809 char (*f) () = _snprintf;
40810 #endif
40811 #ifdef __cplusplus
40812 }
40813 #endif
40814
40815 int
40816 main ()
40817 {
40818 return f != _snprintf;
40819   ;
40820   return 0;
40821 }
40822 _ACEOF
40823 rm -f conftest.$ac_objext conftest$ac_exeext
40824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40825   (eval $ac_link) 2>conftest.er1
40826   ac_status=$?
40827   grep -v '^ *+' conftest.er1 >conftest.err
40828   rm -f conftest.er1
40829   cat conftest.err >&5
40830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40831   (exit $ac_status); } &&
40832          { ac_try='test -z "$ac_c_werror_flag"
40833                          || test ! -s conftest.err'
40834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40835   (eval $ac_try) 2>&5
40836   ac_status=$?
40837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838   (exit $ac_status); }; } &&
40839          { ac_try='test -s conftest$ac_exeext'
40840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40841   (eval $ac_try) 2>&5
40842   ac_status=$?
40843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844   (exit $ac_status); }; }; then
40845   ac_cv_func__snprintf=yes
40846 else
40847   echo "$as_me: failed program was:" >&5
40848 sed 's/^/| /' conftest.$ac_ext >&5
40849
40850 ac_cv_func__snprintf=no
40851 fi
40852 rm -f conftest.err conftest.$ac_objext \
40853       conftest$ac_exeext conftest.$ac_ext
40854 fi
40855 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40856 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40857 if test $ac_cv_func__snprintf = yes; then
40858   ac_cv_func_snprintf=yes
40859
40860 cat >>confdefs.h <<\_ACEOF
40861 #define snprintf _snprintf
40862 _ACEOF
40863
40864
40865 fi
40866
40867
40868 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40869 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40870 if test "${ac_cv_func__vsnprintf+set}" = set; then
40871   echo $ECHO_N "(cached) $ECHO_C" >&6
40872 else
40873   cat >conftest.$ac_ext <<_ACEOF
40874 /* confdefs.h.  */
40875 _ACEOF
40876 cat confdefs.h >>conftest.$ac_ext
40877 cat >>conftest.$ac_ext <<_ACEOF
40878 /* end confdefs.h.  */
40879 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40881 #define _vsnprintf innocuous__vsnprintf
40882
40883 /* System header to define __stub macros and hopefully few prototypes,
40884     which can conflict with char _vsnprintf (); below.
40885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40886     <limits.h> exists even on freestanding compilers.  */
40887
40888 #ifdef __STDC__
40889 # include <limits.h>
40890 #else
40891 # include <assert.h>
40892 #endif
40893
40894 #undef _vsnprintf
40895
40896 /* Override any gcc2 internal prototype to avoid an error.  */
40897 #ifdef __cplusplus
40898 extern "C"
40899 {
40900 #endif
40901 /* We use char because int might match the return type of a gcc2
40902    builtin and then its argument prototype would still apply.  */
40903 char _vsnprintf ();
40904 /* The GNU C library defines this for functions which it implements
40905     to always fail with ENOSYS.  Some functions are actually named
40906     something starting with __ and the normal name is an alias.  */
40907 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40908 choke me
40909 #else
40910 char (*f) () = _vsnprintf;
40911 #endif
40912 #ifdef __cplusplus
40913 }
40914 #endif
40915
40916 int
40917 main ()
40918 {
40919 return f != _vsnprintf;
40920   ;
40921   return 0;
40922 }
40923 _ACEOF
40924 rm -f conftest.$ac_objext conftest$ac_exeext
40925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40926   (eval $ac_link) 2>conftest.er1
40927   ac_status=$?
40928   grep -v '^ *+' conftest.er1 >conftest.err
40929   rm -f conftest.er1
40930   cat conftest.err >&5
40931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932   (exit $ac_status); } &&
40933          { ac_try='test -z "$ac_c_werror_flag"
40934                          || test ! -s conftest.err'
40935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40936   (eval $ac_try) 2>&5
40937   ac_status=$?
40938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939   (exit $ac_status); }; } &&
40940          { ac_try='test -s conftest$ac_exeext'
40941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40942   (eval $ac_try) 2>&5
40943   ac_status=$?
40944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40945   (exit $ac_status); }; }; then
40946   ac_cv_func__vsnprintf=yes
40947 else
40948   echo "$as_me: failed program was:" >&5
40949 sed 's/^/| /' conftest.$ac_ext >&5
40950
40951 ac_cv_func__vsnprintf=no
40952 fi
40953 rm -f conftest.err conftest.$ac_objext \
40954       conftest$ac_exeext conftest.$ac_ext
40955 fi
40956 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40957 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40958 if test $ac_cv_func__vsnprintf = yes; then
40959   ac_cv_func_vsnprintf=yes
40960
40961 cat >>confdefs.h <<\_ACEOF
40962 #define vsnprintf _vsnprintf
40963 _ACEOF
40964
40965
40966 fi
40967
40968
40969
40970 for ac_func in vprintf
40971 do
40972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40973 echo "$as_me:$LINENO: checking for $ac_func" >&5
40974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40975 if eval "test \"\${$as_ac_var+set}\" = set"; then
40976   echo $ECHO_N "(cached) $ECHO_C" >&6
40977 else
40978   cat >conftest.$ac_ext <<_ACEOF
40979 /* confdefs.h.  */
40980 _ACEOF
40981 cat confdefs.h >>conftest.$ac_ext
40982 cat >>conftest.$ac_ext <<_ACEOF
40983 /* end confdefs.h.  */
40984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40986 #define $ac_func innocuous_$ac_func
40987
40988 /* System header to define __stub macros and hopefully few prototypes,
40989     which can conflict with char $ac_func (); below.
40990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40991     <limits.h> exists even on freestanding compilers.  */
40992
40993 #ifdef __STDC__
40994 # include <limits.h>
40995 #else
40996 # include <assert.h>
40997 #endif
40998
40999 #undef $ac_func
41000
41001 /* Override any gcc2 internal prototype to avoid an error.  */
41002 #ifdef __cplusplus
41003 extern "C"
41004 {
41005 #endif
41006 /* We use char because int might match the return type of a gcc2
41007    builtin and then its argument prototype would still apply.  */
41008 char $ac_func ();
41009 /* The GNU C library defines this for functions which it implements
41010     to always fail with ENOSYS.  Some functions are actually named
41011     something starting with __ and the normal name is an alias.  */
41012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41013 choke me
41014 #else
41015 char (*f) () = $ac_func;
41016 #endif
41017 #ifdef __cplusplus
41018 }
41019 #endif
41020
41021 int
41022 main ()
41023 {
41024 return f != $ac_func;
41025   ;
41026   return 0;
41027 }
41028 _ACEOF
41029 rm -f conftest.$ac_objext conftest$ac_exeext
41030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41031   (eval $ac_link) 2>conftest.er1
41032   ac_status=$?
41033   grep -v '^ *+' conftest.er1 >conftest.err
41034   rm -f conftest.er1
41035   cat conftest.err >&5
41036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41037   (exit $ac_status); } &&
41038          { ac_try='test -z "$ac_c_werror_flag"
41039                          || test ! -s conftest.err'
41040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41041   (eval $ac_try) 2>&5
41042   ac_status=$?
41043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41044   (exit $ac_status); }; } &&
41045          { ac_try='test -s conftest$ac_exeext'
41046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41047   (eval $ac_try) 2>&5
41048   ac_status=$?
41049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41050   (exit $ac_status); }; }; then
41051   eval "$as_ac_var=yes"
41052 else
41053   echo "$as_me: failed program was:" >&5
41054 sed 's/^/| /' conftest.$ac_ext >&5
41055
41056 eval "$as_ac_var=no"
41057 fi
41058 rm -f conftest.err conftest.$ac_objext \
41059       conftest$ac_exeext conftest.$ac_ext
41060 fi
41061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41063 if test `eval echo '${'$as_ac_var'}'` = yes; then
41064   cat >>confdefs.h <<_ACEOF
41065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41066 _ACEOF
41067
41068 echo "$as_me:$LINENO: checking for _doprnt" >&5
41069 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41070 if test "${ac_cv_func__doprnt+set}" = set; then
41071   echo $ECHO_N "(cached) $ECHO_C" >&6
41072 else
41073   cat >conftest.$ac_ext <<_ACEOF
41074 /* confdefs.h.  */
41075 _ACEOF
41076 cat confdefs.h >>conftest.$ac_ext
41077 cat >>conftest.$ac_ext <<_ACEOF
41078 /* end confdefs.h.  */
41079 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41081 #define _doprnt innocuous__doprnt
41082
41083 /* System header to define __stub macros and hopefully few prototypes,
41084     which can conflict with char _doprnt (); below.
41085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41086     <limits.h> exists even on freestanding compilers.  */
41087
41088 #ifdef __STDC__
41089 # include <limits.h>
41090 #else
41091 # include <assert.h>
41092 #endif
41093
41094 #undef _doprnt
41095
41096 /* Override any gcc2 internal prototype to avoid an error.  */
41097 #ifdef __cplusplus
41098 extern "C"
41099 {
41100 #endif
41101 /* We use char because int might match the return type of a gcc2
41102    builtin and then its argument prototype would still apply.  */
41103 char _doprnt ();
41104 /* The GNU C library defines this for functions which it implements
41105     to always fail with ENOSYS.  Some functions are actually named
41106     something starting with __ and the normal name is an alias.  */
41107 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41108 choke me
41109 #else
41110 char (*f) () = _doprnt;
41111 #endif
41112 #ifdef __cplusplus
41113 }
41114 #endif
41115
41116 int
41117 main ()
41118 {
41119 return f != _doprnt;
41120   ;
41121   return 0;
41122 }
41123 _ACEOF
41124 rm -f conftest.$ac_objext conftest$ac_exeext
41125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41126   (eval $ac_link) 2>conftest.er1
41127   ac_status=$?
41128   grep -v '^ *+' conftest.er1 >conftest.err
41129   rm -f conftest.er1
41130   cat conftest.err >&5
41131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132   (exit $ac_status); } &&
41133          { ac_try='test -z "$ac_c_werror_flag"
41134                          || test ! -s conftest.err'
41135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41136   (eval $ac_try) 2>&5
41137   ac_status=$?
41138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139   (exit $ac_status); }; } &&
41140          { ac_try='test -s conftest$ac_exeext'
41141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41142   (eval $ac_try) 2>&5
41143   ac_status=$?
41144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145   (exit $ac_status); }; }; then
41146   ac_cv_func__doprnt=yes
41147 else
41148   echo "$as_me: failed program was:" >&5
41149 sed 's/^/| /' conftest.$ac_ext >&5
41150
41151 ac_cv_func__doprnt=no
41152 fi
41153 rm -f conftest.err conftest.$ac_objext \
41154       conftest$ac_exeext conftest.$ac_ext
41155 fi
41156 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41157 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41158 if test $ac_cv_func__doprnt = yes; then
41159
41160 cat >>confdefs.h <<\_ACEOF
41161 #define HAVE_DOPRNT 1
41162 _ACEOF
41163
41164 fi
41165
41166 fi
41167 done
41168
41169
41170
41171 if test $ac_cv_func_vprintf = yes ; then
41172
41173
41174 for ac_func in snprintf vsnprintf
41175 do
41176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41177 echo "$as_me:$LINENO: checking for $ac_func" >&5
41178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41179 if eval "test \"\${$as_ac_var+set}\" = set"; then
41180   echo $ECHO_N "(cached) $ECHO_C" >&6
41181 else
41182   cat >conftest.$ac_ext <<_ACEOF
41183 /* confdefs.h.  */
41184 _ACEOF
41185 cat confdefs.h >>conftest.$ac_ext
41186 cat >>conftest.$ac_ext <<_ACEOF
41187 /* end confdefs.h.  */
41188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41190 #define $ac_func innocuous_$ac_func
41191
41192 /* System header to define __stub macros and hopefully few prototypes,
41193     which can conflict with char $ac_func (); below.
41194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41195     <limits.h> exists even on freestanding compilers.  */
41196
41197 #ifdef __STDC__
41198 # include <limits.h>
41199 #else
41200 # include <assert.h>
41201 #endif
41202
41203 #undef $ac_func
41204
41205 /* Override any gcc2 internal prototype to avoid an error.  */
41206 #ifdef __cplusplus
41207 extern "C"
41208 {
41209 #endif
41210 /* We use char because int might match the return type of a gcc2
41211    builtin and then its argument prototype would still apply.  */
41212 char $ac_func ();
41213 /* The GNU C library defines this for functions which it implements
41214     to always fail with ENOSYS.  Some functions are actually named
41215     something starting with __ and the normal name is an alias.  */
41216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41217 choke me
41218 #else
41219 char (*f) () = $ac_func;
41220 #endif
41221 #ifdef __cplusplus
41222 }
41223 #endif
41224
41225 int
41226 main ()
41227 {
41228 return f != $ac_func;
41229   ;
41230   return 0;
41231 }
41232 _ACEOF
41233 rm -f conftest.$ac_objext conftest$ac_exeext
41234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41235   (eval $ac_link) 2>conftest.er1
41236   ac_status=$?
41237   grep -v '^ *+' conftest.er1 >conftest.err
41238   rm -f conftest.er1
41239   cat conftest.err >&5
41240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241   (exit $ac_status); } &&
41242          { ac_try='test -z "$ac_c_werror_flag"
41243                          || test ! -s conftest.err'
41244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41245   (eval $ac_try) 2>&5
41246   ac_status=$?
41247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248   (exit $ac_status); }; } &&
41249          { ac_try='test -s conftest$ac_exeext'
41250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251   (eval $ac_try) 2>&5
41252   ac_status=$?
41253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254   (exit $ac_status); }; }; then
41255   eval "$as_ac_var=yes"
41256 else
41257   echo "$as_me: failed program was:" >&5
41258 sed 's/^/| /' conftest.$ac_ext >&5
41259
41260 eval "$as_ac_var=no"
41261 fi
41262 rm -f conftest.err conftest.$ac_objext \
41263       conftest$ac_exeext conftest.$ac_ext
41264 fi
41265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41267 if test `eval echo '${'$as_ac_var'}'` = yes; then
41268   cat >>confdefs.h <<_ACEOF
41269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41270 _ACEOF
41271
41272 fi
41273 done
41274
41275 fi
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330 for ac_func in \
41331         bcopy                   \
41332         closesocket             \
41333         chroot                  \
41334         endgrent                \
41335         endpwent                \
41336         fcntl                   \
41337         flock                   \
41338         fstat                   \
41339         getdtablesize   \
41340         getgrgid                \
41341         gethostname             \
41342         getpass                 \
41343         getpassphrase   \
41344         getpwuid                \
41345         getpwnam                \
41346         getspnam                \
41347         gettimeofday    \
41348         initgroups              \
41349         lockf                   \
41350         memcpy                  \
41351         memmove                 \
41352         mkstemp                 \
41353         mktemp                  \
41354         pipe                    \
41355         read                    \
41356         recv                    \
41357         recvfrom                \
41358         setpwfile               \
41359         setgid                  \
41360         setegid                 \
41361         setsid                  \
41362         setuid                  \
41363         seteuid                 \
41364         signal                  \
41365         strdup                  \
41366         strpbrk                 \
41367         strrchr                 \
41368         strsep                  \
41369         strstr                  \
41370         strtol                  \
41371         strtoul                 \
41372         strtoq                  \
41373         strtouq                 \
41374         strtoll                 \
41375         strspn                  \
41376         sysconf                 \
41377         usleep                  \
41378         waitpid                 \
41379         wait4                   \
41380         write                   \
41381         send                    \
41382         sendmsg                 \
41383         sendto                  \
41384
41385 do
41386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41387 echo "$as_me:$LINENO: checking for $ac_func" >&5
41388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41389 if eval "test \"\${$as_ac_var+set}\" = set"; then
41390   echo $ECHO_N "(cached) $ECHO_C" >&6
41391 else
41392   cat >conftest.$ac_ext <<_ACEOF
41393 /* confdefs.h.  */
41394 _ACEOF
41395 cat confdefs.h >>conftest.$ac_ext
41396 cat >>conftest.$ac_ext <<_ACEOF
41397 /* end confdefs.h.  */
41398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41400 #define $ac_func innocuous_$ac_func
41401
41402 /* System header to define __stub macros and hopefully few prototypes,
41403     which can conflict with char $ac_func (); below.
41404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41405     <limits.h> exists even on freestanding compilers.  */
41406
41407 #ifdef __STDC__
41408 # include <limits.h>
41409 #else
41410 # include <assert.h>
41411 #endif
41412
41413 #undef $ac_func
41414
41415 /* Override any gcc2 internal prototype to avoid an error.  */
41416 #ifdef __cplusplus
41417 extern "C"
41418 {
41419 #endif
41420 /* We use char because int might match the return type of a gcc2
41421    builtin and then its argument prototype would still apply.  */
41422 char $ac_func ();
41423 /* The GNU C library defines this for functions which it implements
41424     to always fail with ENOSYS.  Some functions are actually named
41425     something starting with __ and the normal name is an alias.  */
41426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41427 choke me
41428 #else
41429 char (*f) () = $ac_func;
41430 #endif
41431 #ifdef __cplusplus
41432 }
41433 #endif
41434
41435 int
41436 main ()
41437 {
41438 return f != $ac_func;
41439   ;
41440   return 0;
41441 }
41442 _ACEOF
41443 rm -f conftest.$ac_objext conftest$ac_exeext
41444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41445   (eval $ac_link) 2>conftest.er1
41446   ac_status=$?
41447   grep -v '^ *+' conftest.er1 >conftest.err
41448   rm -f conftest.er1
41449   cat conftest.err >&5
41450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41451   (exit $ac_status); } &&
41452          { ac_try='test -z "$ac_c_werror_flag"
41453                          || test ! -s conftest.err'
41454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41455   (eval $ac_try) 2>&5
41456   ac_status=$?
41457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41458   (exit $ac_status); }; } &&
41459          { ac_try='test -s conftest$ac_exeext'
41460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41461   (eval $ac_try) 2>&5
41462   ac_status=$?
41463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464   (exit $ac_status); }; }; then
41465   eval "$as_ac_var=yes"
41466 else
41467   echo "$as_me: failed program was:" >&5
41468 sed 's/^/| /' conftest.$ac_ext >&5
41469
41470 eval "$as_ac_var=no"
41471 fi
41472 rm -f conftest.err conftest.$ac_objext \
41473       conftest$ac_exeext conftest.$ac_ext
41474 fi
41475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41477 if test `eval echo '${'$as_ac_var'}'` = yes; then
41478   cat >>confdefs.h <<_ACEOF
41479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41480 _ACEOF
41481
41482 fi
41483 done
41484
41485
41486
41487
41488 for ac_func in getopt getpeereid
41489 do
41490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41491 echo "$as_me:$LINENO: checking for $ac_func" >&5
41492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41493 if eval "test \"\${$as_ac_var+set}\" = set"; then
41494   echo $ECHO_N "(cached) $ECHO_C" >&6
41495 else
41496   cat >conftest.$ac_ext <<_ACEOF
41497 /* confdefs.h.  */
41498 _ACEOF
41499 cat confdefs.h >>conftest.$ac_ext
41500 cat >>conftest.$ac_ext <<_ACEOF
41501 /* end confdefs.h.  */
41502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41504 #define $ac_func innocuous_$ac_func
41505
41506 /* System header to define __stub macros and hopefully few prototypes,
41507     which can conflict with char $ac_func (); below.
41508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41509     <limits.h> exists even on freestanding compilers.  */
41510
41511 #ifdef __STDC__
41512 # include <limits.h>
41513 #else
41514 # include <assert.h>
41515 #endif
41516
41517 #undef $ac_func
41518
41519 /* Override any gcc2 internal prototype to avoid an error.  */
41520 #ifdef __cplusplus
41521 extern "C"
41522 {
41523 #endif
41524 /* We use char because int might match the return type of a gcc2
41525    builtin and then its argument prototype would still apply.  */
41526 char $ac_func ();
41527 /* The GNU C library defines this for functions which it implements
41528     to always fail with ENOSYS.  Some functions are actually named
41529     something starting with __ and the normal name is an alias.  */
41530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41531 choke me
41532 #else
41533 char (*f) () = $ac_func;
41534 #endif
41535 #ifdef __cplusplus
41536 }
41537 #endif
41538
41539 int
41540 main ()
41541 {
41542 return f != $ac_func;
41543   ;
41544   return 0;
41545 }
41546 _ACEOF
41547 rm -f conftest.$ac_objext conftest$ac_exeext
41548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41549   (eval $ac_link) 2>conftest.er1
41550   ac_status=$?
41551   grep -v '^ *+' conftest.er1 >conftest.err
41552   rm -f conftest.er1
41553   cat conftest.err >&5
41554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41555   (exit $ac_status); } &&
41556          { ac_try='test -z "$ac_c_werror_flag"
41557                          || test ! -s conftest.err'
41558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41559   (eval $ac_try) 2>&5
41560   ac_status=$?
41561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562   (exit $ac_status); }; } &&
41563          { ac_try='test -s conftest$ac_exeext'
41564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41565   (eval $ac_try) 2>&5
41566   ac_status=$?
41567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568   (exit $ac_status); }; }; then
41569   eval "$as_ac_var=yes"
41570 else
41571   echo "$as_me: failed program was:" >&5
41572 sed 's/^/| /' conftest.$ac_ext >&5
41573
41574 eval "$as_ac_var=no"
41575 fi
41576 rm -f conftest.err conftest.$ac_objext \
41577       conftest$ac_exeext conftest.$ac_ext
41578 fi
41579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41581 if test `eval echo '${'$as_ac_var'}'` = yes; then
41582   cat >>confdefs.h <<_ACEOF
41583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41584 _ACEOF
41585
41586 else
41587   case $LIBOBJS in
41588     "$ac_func.$ac_objext"   | \
41589   *" $ac_func.$ac_objext"   | \
41590     "$ac_func.$ac_objext "* | \
41591   *" $ac_func.$ac_objext "* ) ;;
41592   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41593 esac
41594
41595 fi
41596 done
41597
41598
41599
41600 if test "$ac_cv_func_getopt" != yes; then
41601         LIBSRCS="$LIBSRCS getopt.c"
41602 fi
41603 if test "$ac_cv_func_getpeereid" != yes; then
41604         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41605 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41606 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41607   echo $ECHO_N "(cached) $ECHO_C" >&6
41608 else
41609   cat >conftest.$ac_ext <<_ACEOF
41610 /* confdefs.h.  */
41611 _ACEOF
41612 cat confdefs.h >>conftest.$ac_ext
41613 cat >>conftest.$ac_ext <<_ACEOF
41614 /* end confdefs.h.  */
41615 $ac_includes_default
41616 #ifdef HAVE_SYS_SOCKET_H
41617 #include <sys/socket.h>
41618 #endif
41619
41620 int
41621 main ()
41622 {
41623 static struct msghdr ac_aggr;
41624 if (ac_aggr.msg_accrightslen)
41625 return 0;
41626   ;
41627   return 0;
41628 }
41629 _ACEOF
41630 rm -f conftest.$ac_objext
41631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41632   (eval $ac_compile) 2>conftest.er1
41633   ac_status=$?
41634   grep -v '^ *+' conftest.er1 >conftest.err
41635   rm -f conftest.er1
41636   cat conftest.err >&5
41637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41638   (exit $ac_status); } &&
41639          { ac_try='test -z "$ac_c_werror_flag"
41640                          || test ! -s conftest.err'
41641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41642   (eval $ac_try) 2>&5
41643   ac_status=$?
41644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41645   (exit $ac_status); }; } &&
41646          { ac_try='test -s conftest.$ac_objext'
41647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41648   (eval $ac_try) 2>&5
41649   ac_status=$?
41650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41651   (exit $ac_status); }; }; then
41652   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41653 else
41654   echo "$as_me: failed program was:" >&5
41655 sed 's/^/| /' conftest.$ac_ext >&5
41656
41657 cat >conftest.$ac_ext <<_ACEOF
41658 /* confdefs.h.  */
41659 _ACEOF
41660 cat confdefs.h >>conftest.$ac_ext
41661 cat >>conftest.$ac_ext <<_ACEOF
41662 /* end confdefs.h.  */
41663 $ac_includes_default
41664 #ifdef HAVE_SYS_SOCKET_H
41665 #include <sys/socket.h>
41666 #endif
41667
41668 int
41669 main ()
41670 {
41671 static struct msghdr ac_aggr;
41672 if (sizeof ac_aggr.msg_accrightslen)
41673 return 0;
41674   ;
41675   return 0;
41676 }
41677 _ACEOF
41678 rm -f conftest.$ac_objext
41679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41680   (eval $ac_compile) 2>conftest.er1
41681   ac_status=$?
41682   grep -v '^ *+' conftest.er1 >conftest.err
41683   rm -f conftest.er1
41684   cat conftest.err >&5
41685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686   (exit $ac_status); } &&
41687          { ac_try='test -z "$ac_c_werror_flag"
41688                          || test ! -s conftest.err'
41689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41690   (eval $ac_try) 2>&5
41691   ac_status=$?
41692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41693   (exit $ac_status); }; } &&
41694          { ac_try='test -s conftest.$ac_objext'
41695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41696   (eval $ac_try) 2>&5
41697   ac_status=$?
41698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41699   (exit $ac_status); }; }; then
41700   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41701 else
41702   echo "$as_me: failed program was:" >&5
41703 sed 's/^/| /' conftest.$ac_ext >&5
41704
41705 ac_cv_member_struct_msghdr_msg_accrightslen=no
41706 fi
41707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41708 fi
41709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41710 fi
41711 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41712 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41713 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41714
41715 cat >>confdefs.h <<_ACEOF
41716 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41717 _ACEOF
41718
41719
41720 fi
41721
41722         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41723                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41724 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41725 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41726   echo $ECHO_N "(cached) $ECHO_C" >&6
41727 else
41728   cat >conftest.$ac_ext <<_ACEOF
41729 /* confdefs.h.  */
41730 _ACEOF
41731 cat confdefs.h >>conftest.$ac_ext
41732 cat >>conftest.$ac_ext <<_ACEOF
41733 /* end confdefs.h.  */
41734 $ac_includes_default
41735 #ifdef HAVE_SYS_SOCKET_H
41736 #include <sys/socket.h>
41737 #endif
41738
41739 int
41740 main ()
41741 {
41742 static struct msghdr ac_aggr;
41743 if (ac_aggr.msg_control)
41744 return 0;
41745   ;
41746   return 0;
41747 }
41748 _ACEOF
41749 rm -f conftest.$ac_objext
41750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41751   (eval $ac_compile) 2>conftest.er1
41752   ac_status=$?
41753   grep -v '^ *+' conftest.er1 >conftest.err
41754   rm -f conftest.er1
41755   cat conftest.err >&5
41756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41757   (exit $ac_status); } &&
41758          { ac_try='test -z "$ac_c_werror_flag"
41759                          || test ! -s conftest.err'
41760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41761   (eval $ac_try) 2>&5
41762   ac_status=$?
41763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41764   (exit $ac_status); }; } &&
41765          { ac_try='test -s conftest.$ac_objext'
41766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41767   (eval $ac_try) 2>&5
41768   ac_status=$?
41769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41770   (exit $ac_status); }; }; then
41771   ac_cv_member_struct_msghdr_msg_control=yes
41772 else
41773   echo "$as_me: failed program was:" >&5
41774 sed 's/^/| /' conftest.$ac_ext >&5
41775
41776 cat >conftest.$ac_ext <<_ACEOF
41777 /* confdefs.h.  */
41778 _ACEOF
41779 cat confdefs.h >>conftest.$ac_ext
41780 cat >>conftest.$ac_ext <<_ACEOF
41781 /* end confdefs.h.  */
41782 $ac_includes_default
41783 #ifdef HAVE_SYS_SOCKET_H
41784 #include <sys/socket.h>
41785 #endif
41786
41787 int
41788 main ()
41789 {
41790 static struct msghdr ac_aggr;
41791 if (sizeof ac_aggr.msg_control)
41792 return 0;
41793   ;
41794   return 0;
41795 }
41796 _ACEOF
41797 rm -f conftest.$ac_objext
41798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41799   (eval $ac_compile) 2>conftest.er1
41800   ac_status=$?
41801   grep -v '^ *+' conftest.er1 >conftest.err
41802   rm -f conftest.er1
41803   cat conftest.err >&5
41804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41805   (exit $ac_status); } &&
41806          { ac_try='test -z "$ac_c_werror_flag"
41807                          || test ! -s conftest.err'
41808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41809   (eval $ac_try) 2>&5
41810   ac_status=$?
41811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41812   (exit $ac_status); }; } &&
41813          { ac_try='test -s conftest.$ac_objext'
41814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41815   (eval $ac_try) 2>&5
41816   ac_status=$?
41817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818   (exit $ac_status); }; }; then
41819   ac_cv_member_struct_msghdr_msg_control=yes
41820 else
41821   echo "$as_me: failed program was:" >&5
41822 sed 's/^/| /' conftest.$ac_ext >&5
41823
41824 ac_cv_member_struct_msghdr_msg_control=no
41825 fi
41826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41827 fi
41828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41829 fi
41830 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41831 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41832 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41833
41834 cat >>confdefs.h <<_ACEOF
41835 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41836 _ACEOF
41837
41838
41839 fi
41840
41841         fi
41842         LIBSRCS="$LIBSRCS getpeereid.c"
41843 fi
41844 if test "$ac_cv_func_snprintf" != yes ||
41845    test "$ac_cv_func_vsnprintf" != yes; then
41846         if test "$ac_cv_func_snprintf" != yes; then
41847
41848 cat >>confdefs.h <<\_ACEOF
41849 #define snprintf ber_pvt_snprintf
41850 _ACEOF
41851
41852         fi
41853         if test "$ac_cv_func_vsnprintf" != yes; then
41854
41855 cat >>confdefs.h <<\_ACEOF
41856 #define vsnprintf ber_pvt_vsnprintf
41857 _ACEOF
41858
41859         fi
41860 fi
41861
41862
41863 if test "$ol_enable_slapi" != no ; then
41864
41865 for ac_header in ltdl.h
41866 do
41867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41869   echo "$as_me:$LINENO: checking for $ac_header" >&5
41870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41872   echo $ECHO_N "(cached) $ECHO_C" >&6
41873 fi
41874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41876 else
41877   # Is the header compilable?
41878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41880 cat >conftest.$ac_ext <<_ACEOF
41881 /* confdefs.h.  */
41882 _ACEOF
41883 cat confdefs.h >>conftest.$ac_ext
41884 cat >>conftest.$ac_ext <<_ACEOF
41885 /* end confdefs.h.  */
41886 $ac_includes_default
41887 #include <$ac_header>
41888 _ACEOF
41889 rm -f conftest.$ac_objext
41890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41891   (eval $ac_compile) 2>conftest.er1
41892   ac_status=$?
41893   grep -v '^ *+' conftest.er1 >conftest.err
41894   rm -f conftest.er1
41895   cat conftest.err >&5
41896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41897   (exit $ac_status); } &&
41898          { ac_try='test -z "$ac_c_werror_flag"
41899                          || test ! -s conftest.err'
41900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41901   (eval $ac_try) 2>&5
41902   ac_status=$?
41903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41904   (exit $ac_status); }; } &&
41905          { ac_try='test -s conftest.$ac_objext'
41906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41907   (eval $ac_try) 2>&5
41908   ac_status=$?
41909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910   (exit $ac_status); }; }; then
41911   ac_header_compiler=yes
41912 else
41913   echo "$as_me: failed program was:" >&5
41914 sed 's/^/| /' conftest.$ac_ext >&5
41915
41916 ac_header_compiler=no
41917 fi
41918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41920 echo "${ECHO_T}$ac_header_compiler" >&6
41921
41922 # Is the header present?
41923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41925 cat >conftest.$ac_ext <<_ACEOF
41926 /* confdefs.h.  */
41927 _ACEOF
41928 cat confdefs.h >>conftest.$ac_ext
41929 cat >>conftest.$ac_ext <<_ACEOF
41930 /* end confdefs.h.  */
41931 #include <$ac_header>
41932 _ACEOF
41933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41935   ac_status=$?
41936   grep -v '^ *+' conftest.er1 >conftest.err
41937   rm -f conftest.er1
41938   cat conftest.err >&5
41939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940   (exit $ac_status); } >/dev/null; then
41941   if test -s conftest.err; then
41942     ac_cpp_err=$ac_c_preproc_warn_flag
41943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41944   else
41945     ac_cpp_err=
41946   fi
41947 else
41948   ac_cpp_err=yes
41949 fi
41950 if test -z "$ac_cpp_err"; then
41951   ac_header_preproc=yes
41952 else
41953   echo "$as_me: failed program was:" >&5
41954 sed 's/^/| /' conftest.$ac_ext >&5
41955
41956   ac_header_preproc=no
41957 fi
41958 rm -f conftest.err conftest.$ac_ext
41959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41960 echo "${ECHO_T}$ac_header_preproc" >&6
41961
41962 # So?  What about this header?
41963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41964   yes:no: )
41965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41969     ac_header_preproc=yes
41970     ;;
41971   no:yes:* )
41972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41984     (
41985       cat <<\_ASBOX
41986 ## ------------------------------------------ ##
41987 ## Report this to the AC_PACKAGE_NAME lists.  ##
41988 ## ------------------------------------------ ##
41989 _ASBOX
41990     ) |
41991       sed "s/^/$as_me: WARNING:     /" >&2
41992     ;;
41993 esac
41994 echo "$as_me:$LINENO: checking for $ac_header" >&5
41995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41997   echo $ECHO_N "(cached) $ECHO_C" >&6
41998 else
41999   eval "$as_ac_Header=\$ac_header_preproc"
42000 fi
42001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42003
42004 fi
42005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42006   cat >>confdefs.h <<_ACEOF
42007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42008 _ACEOF
42009
42010 fi
42011
42012 done
42013
42014
42015         if test $ac_cv_header_ltdl_h != yes ; then
42016                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
42017 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
42018    { (exit 1); exit 1; }; }
42019         fi
42020         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
42021 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
42022 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
42023   echo $ECHO_N "(cached) $ECHO_C" >&6
42024 else
42025   ac_check_lib_save_LIBS=$LIBS
42026 LIBS="-lltdl  $LIBS"
42027 cat >conftest.$ac_ext <<_ACEOF
42028 /* confdefs.h.  */
42029 _ACEOF
42030 cat confdefs.h >>conftest.$ac_ext
42031 cat >>conftest.$ac_ext <<_ACEOF
42032 /* end confdefs.h.  */
42033
42034 /* Override any gcc2 internal prototype to avoid an error.  */
42035 #ifdef __cplusplus
42036 extern "C"
42037 #endif
42038 /* We use char because int might match the return type of a gcc2
42039    builtin and then its argument prototype would still apply.  */
42040 char lt_dlinit ();
42041 int
42042 main ()
42043 {
42044 lt_dlinit ();
42045   ;
42046   return 0;
42047 }
42048 _ACEOF
42049 rm -f conftest.$ac_objext conftest$ac_exeext
42050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42051   (eval $ac_link) 2>conftest.er1
42052   ac_status=$?
42053   grep -v '^ *+' conftest.er1 >conftest.err
42054   rm -f conftest.er1
42055   cat conftest.err >&5
42056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42057   (exit $ac_status); } &&
42058          { ac_try='test -z "$ac_c_werror_flag"
42059                          || test ! -s conftest.err'
42060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42061   (eval $ac_try) 2>&5
42062   ac_status=$?
42063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064   (exit $ac_status); }; } &&
42065          { ac_try='test -s conftest$ac_exeext'
42066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42067   (eval $ac_try) 2>&5
42068   ac_status=$?
42069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42070   (exit $ac_status); }; }; then
42071   ac_cv_lib_ltdl_lt_dlinit=yes
42072 else
42073   echo "$as_me: failed program was:" >&5
42074 sed 's/^/| /' conftest.$ac_ext >&5
42075
42076 ac_cv_lib_ltdl_lt_dlinit=no
42077 fi
42078 rm -f conftest.err conftest.$ac_objext \
42079       conftest$ac_exeext conftest.$ac_ext
42080 LIBS=$ac_check_lib_save_LIBS
42081 fi
42082 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42083 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42084 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42085
42086                 SLAPI_LIBS=-lltdl
42087                 LIBSLAPI=libslapi.a
42088                 LIBSLAPITOOLS=../libslapi.a
42089
42090 cat >>confdefs.h <<\_ACEOF
42091 #define HAVE_LIBLTDL 1
42092 _ACEOF
42093
42094
42095 else
42096   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42097 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42098    { (exit 1); exit 1; }; }
42099 fi
42100
42101
42102
42103 cat >>confdefs.h <<\_ACEOF
42104 #define LDAP_SLAPI 1
42105 _ACEOF
42106
42107 fi
42108
42109 if test "$ol_enable_debug" != no ; then
42110
42111 cat >>confdefs.h <<\_ACEOF
42112 #define LDAP_DEBUG 1
42113 _ACEOF
42114
42115 fi
42116 if test "$ol_enable_syslog" = yes ; then
42117
42118 cat >>confdefs.h <<\_ACEOF
42119 #define LDAP_SYSLOG 1
42120 _ACEOF
42121
42122 fi
42123 if test "$ol_link_kbind" != no ; then
42124
42125 cat >>confdefs.h <<\_ACEOF
42126 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42127 _ACEOF
42128
42129 fi
42130 if test "$ol_enable_proctitle" != no ; then
42131
42132 cat >>confdefs.h <<\_ACEOF
42133 #define LDAP_PROCTITLE 1
42134 _ACEOF
42135
42136 fi
42137 if test "$ol_enable_referrals" != no ; then
42138
42139 cat >>confdefs.h <<\_ACEOF
42140 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42141 _ACEOF
42142
42143 fi
42144 if test "$ol_enable_local" != no; then
42145
42146 cat >>confdefs.h <<\_ACEOF
42147 #define LDAP_PF_LOCAL 1
42148 _ACEOF
42149
42150 fi
42151 if test "$ol_link_ipv6" != no; then
42152
42153 cat >>confdefs.h <<\_ACEOF
42154 #define LDAP_PF_INET6 1
42155 _ACEOF
42156
42157 fi
42158 if test "$ol_enable_cleartext" != no ; then
42159
42160 cat >>confdefs.h <<\_ACEOF
42161 #define SLAPD_CLEARTEXT 1
42162 _ACEOF
42163
42164 fi
42165 if test "$ol_enable_crypt" != no ; then
42166
42167 cat >>confdefs.h <<\_ACEOF
42168 #define SLAPD_CRYPT 1
42169 _ACEOF
42170
42171 fi
42172 if test "$ol_link_spasswd" != no ; then
42173
42174 cat >>confdefs.h <<\_ACEOF
42175 #define SLAPD_SPASSWD 1
42176 _ACEOF
42177
42178 fi
42179 if test "$ol_enable_multimaster" != no ; then
42180
42181 cat >>confdefs.h <<\_ACEOF
42182 #define SLAPD_MULTIMASTER 1
42183 _ACEOF
42184
42185 fi
42186 if test "$ol_enable_rlookups" != no ; then
42187
42188 cat >>confdefs.h <<\_ACEOF
42189 #define SLAPD_RLOOKUPS 1
42190 _ACEOF
42191
42192 fi
42193 if test "$ol_enable_aci" != no ; then
42194
42195 cat >>confdefs.h <<\_ACEOF
42196 #define SLAPD_ACI_ENABLED 1
42197 _ACEOF
42198
42199         WITH_ACI_ENABLED=yes
42200 else
42201         WITH_ACI_ENABLED=no
42202 fi
42203
42204 if test "$ol_link_modules" != no ; then
42205
42206 cat >>confdefs.h <<\_ACEOF
42207 #define SLAPD_MODULES 1
42208 _ACEOF
42209
42210         BUILD_SLAPD=yes
42211         SLAPD_MODULES_LDFLAGS="-dlopen self"
42212 fi
42213
42214
42215 cat >>confdefs.h <<\_ACEOF
42216 #define SLAPD_MOD_STATIC 1
42217 _ACEOF
42218
42219
42220 cat >>confdefs.h <<\_ACEOF
42221 #define SLAPD_MOD_DYNAMIC 2
42222 _ACEOF
42223
42224
42225 if test "$ol_enable_bdb" != no ; then
42226         BUILD_SLAPD=yes
42227         BUILD_BDB=$ol_enable_bdb
42228         if test "$ol_enable_bdb" = mod ; then
42229                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42230                 MFLAG=SLAPD_MOD_DYNAMIC
42231         else
42232                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42233                 MFLAG=SLAPD_MOD_STATIC
42234         fi
42235
42236 cat >>confdefs.h <<_ACEOF
42237 #define SLAPD_BDB $MFLAG
42238 _ACEOF
42239
42240 fi
42241
42242 if test "$ol_enable_dnssrv" != no ; then
42243         BUILD_SLAPD=yes
42244         BUILD_DNSSRV=$ol_enable_dnssrv
42245         if test "$ol_enable_dnssrv" = mod ; then
42246                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42247                 MFLAG=SLAPD_MOD_DYNAMIC
42248         else
42249                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42250                 MFLAG=SLAPD_MOD_STATIC
42251         fi
42252
42253 cat >>confdefs.h <<_ACEOF
42254 #define SLAPD_DNSSRV $MFLAG
42255 _ACEOF
42256
42257 fi
42258
42259 if test "$ol_enable_hdb" != no ; then
42260         BUILD_SLAPD=yes
42261         BUILD_HDB=$ol_enable_hdb
42262         if test "$ol_enable_hdb" = mod ; then
42263                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42264                 MFLAG=SLAPD_MOD_DYNAMIC
42265         else
42266                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42267                 MFLAG=SLAPD_MOD_STATIC
42268         fi
42269
42270 cat >>confdefs.h <<_ACEOF
42271 #define SLAPD_HDB $MFLAG
42272 _ACEOF
42273
42274 fi
42275
42276 if test "$ol_enable_ldap" != no ; then
42277         BUILD_SLAPD=yes
42278         BUILD_LDAP=$ol_enable_ldap
42279         if test "$ol_enable_ldap" = mod ; then
42280                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42281                 MFLAG=SLAPD_MOD_DYNAMIC
42282         else
42283                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42284                 MFLAG=SLAPD_MOD_STATIC
42285         fi
42286
42287 cat >>confdefs.h <<_ACEOF
42288 #define SLAPD_LDAP $MFLAG
42289 _ACEOF
42290
42291 fi
42292
42293 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
42294         BUILD_SLAPD=yes
42295         BUILD_LDBM=$ol_enable_ldbm
42296         if test "$ol_enable_ldbm" = mod ; then
42297                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42298                 MFLAG=SLAPD_MOD_DYNAMIC
42299         else
42300                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42301                 MFLAG=SLAPD_MOD_STATIC
42302         fi
42303
42304 cat >>confdefs.h <<_ACEOF
42305 #define SLAPD_LDBM $MFLAG
42306 _ACEOF
42307
42308 fi
42309
42310 if test "$ol_enable_meta" != no ; then
42311         BUILD_SLAPD=yes
42312         BUILD_META=$ol_enable_meta
42313         BUILD_REWRITE=yes
42314         if test "$ol_enable_meta" = mod ; then
42315                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42316                 MFLAG=SLAPD_MOD_DYNAMIC
42317         else
42318                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42319                 MFLAG=SLAPD_MOD_STATIC
42320         fi
42321
42322 cat >>confdefs.h <<_ACEOF
42323 #define SLAPD_META $MFLAG
42324 _ACEOF
42325
42326 fi
42327
42328 if test "$ol_enable_monitor" != no ; then
42329         BUILD_SLAPD=yes
42330         BUILD_MONITOR=$ol_enable_monitor
42331         if test "$ol_enable_monitor" = mod ; then
42332                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42333                 MFLAG=SLAPD_MOD_DYNAMIC
42334         else
42335                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42336                 MFLAG=SLAPD_MOD_STATIC
42337         fi
42338
42339 cat >>confdefs.h <<_ACEOF
42340 #define SLAPD_MONITOR $MFLAG
42341 _ACEOF
42342
42343 fi
42344
42345 if test "$ol_enable_null" != no ; then
42346         BUILD_SLAPD=yes
42347         BUILD_NULL=$ol_enable_null
42348         if test "$ol_enable_null" = mod ; then
42349                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42350                 MFLAG=SLAPD_MOD_DYNAMIC
42351         else
42352                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42353                 MFLAG=SLAPD_MOD_STATIC
42354         fi
42355
42356 cat >>confdefs.h <<_ACEOF
42357 #define SLAPD_NULL $MFLAG
42358 _ACEOF
42359
42360 fi
42361
42362 if test "$ol_enable_passwd" != no ; then
42363         BUILD_SLAPD=yes
42364         BUILD_PASSWD=$ol_enable_passwd
42365         if test "$ol_enable_passwd" = mod ; then
42366                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42367                 MFLAG=SLAPD_MOD_DYNAMIC
42368         else
42369                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42370                 MFLAG=SLAPD_MOD_STATIC
42371         fi
42372
42373 cat >>confdefs.h <<_ACEOF
42374 #define SLAPD_PASSWD $MFLAG
42375 _ACEOF
42376
42377 fi
42378
42379 if test "$ol_link_perl" != no ; then
42380         BUILD_SLAPD=yes
42381         BUILD_PERL=$ol_enable_perl
42382         if test "$ol_enable_perl" = mod ; then
42383                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42384                 MFLAG=SLAPD_MOD_DYNAMIC
42385         else
42386                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42387                 MFLAG=SLAPD_MOD_STATIC
42388         fi
42389
42390 cat >>confdefs.h <<_ACEOF
42391 #define SLAPD_PERL $MFLAG
42392 _ACEOF
42393
42394 fi
42395
42396 if test "$ol_enable_relay" != no ; then
42397         BUILD_SLAPD=yes
42398         BUILD_RELAY=$ol_enable_relay
42399         if test "$ol_enable_relay" = mod ; then
42400                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42401                 MFLAG=SLAPD_MOD_DYNAMIC
42402         else
42403                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42404                 MFLAG=SLAPD_MOD_STATIC
42405         fi
42406
42407 cat >>confdefs.h <<_ACEOF
42408 #define SLAPD_RELAY $MFLAG
42409 _ACEOF
42410
42411 fi
42412
42413 if test "$ol_enable_shell" != no ; then
42414         if test "$ol_link_threads" != no ; then
42415                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42416 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42417         fi
42418         BUILD_SLAPD=yes
42419         BUILD_SHELL=$ol_enable_shell
42420         if test "$ol_enable_shell" = mod ; then
42421                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42422                 MFLAG=SLAPD_MOD_DYNAMIC
42423         else
42424                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42425                 MFLAG=SLAPD_MOD_STATIC
42426         fi
42427
42428 cat >>confdefs.h <<_ACEOF
42429 #define SLAPD_SHELL $MFLAG
42430 _ACEOF
42431
42432 fi
42433
42434 if test "$ol_link_sql" != no ; then
42435         BUILD_SLAPD=yes
42436         BUILD_SQL=$ol_enable_sql
42437         if test "$ol_enable_sql" = mod; then
42438                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42439                 MFLAG=SLAPD_MOD_DYNAMIC
42440         else
42441                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42442                 MFLAG=SLAPD_MOD_STATIC
42443         fi
42444
42445 cat >>confdefs.h <<_ACEOF
42446 #define SLAPD_SQL $MFLAG
42447 _ACEOF
42448
42449 fi
42450
42451 if test "$ol_enable_accesslog" != no ; then
42452         BUILD_ACCESSLOG=$ol_enable_accesslog
42453         if test "$ol_enable_accesslog" = mod ; then
42454                 MFLAG=SLAPD_MOD_DYNAMIC
42455                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42456         else
42457                 MFLAG=SLAPD_MOD_STATIC
42458                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42459         fi
42460
42461 cat >>confdefs.h <<_ACEOF
42462 #define SLAPD_OVER_ACCESSLOG $MFLAG
42463 _ACEOF
42464
42465 fi
42466
42467 if test "$ol_enable_denyop" != no ; then
42468         BUILD_DENYOP=$ol_enable_denyop
42469         if test "$ol_enable_denyop" = mod ; then
42470                 MFLAG=SLAPD_MOD_DYNAMIC
42471                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42472         else
42473                 MFLAG=SLAPD_MOD_STATIC
42474                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42475         fi
42476
42477 cat >>confdefs.h <<_ACEOF
42478 #define SLAPD_OVER_DENYOP $MFLAG
42479 _ACEOF
42480
42481 fi
42482
42483 if test "$ol_enable_dyngroup" != no ; then
42484         BUILD_DYNGROUP=$ol_enable_dyngroup
42485         if test "$ol_enable_dyngroup" = mod ; then
42486                 MFLAG=SLAPD_MOD_DYNAMIC
42487                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42488         else
42489                 MFLAG=SLAPD_MOD_STATIC
42490                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42491         fi
42492
42493 cat >>confdefs.h <<_ACEOF
42494 #define SLAPD_OVER_DYNGROUP $MFLAG
42495 _ACEOF
42496
42497 fi
42498
42499 if test "$ol_enable_dynlist" != no ; then
42500         BUILD_DYNLIST=$ol_enable_dynlist
42501         if test "$ol_enable_dynlist" = mod ; then
42502                 MFLAG=SLAPD_MOD_DYNAMIC
42503                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42504         else
42505                 MFLAG=SLAPD_MOD_STATIC
42506                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42507         fi
42508
42509 cat >>confdefs.h <<_ACEOF
42510 #define SLAPD_OVER_DYNLIST $MFLAG
42511 _ACEOF
42512
42513 fi
42514
42515 if test "$ol_enable_lastmod" != no ; then
42516         BUILD_LASTMOD=$ol_enable_lastmod
42517         if test "$ol_enable_lastmod" = mod ; then
42518                 MFLAG=SLAPD_MOD_DYNAMIC
42519                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42520         else
42521                 MFLAG=SLAPD_MOD_STATIC
42522                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42523         fi
42524
42525 cat >>confdefs.h <<_ACEOF
42526 #define SLAPD_OVER_LASTMOD $MFLAG
42527 _ACEOF
42528
42529 fi
42530
42531 if test "$ol_enable_ppolicy" != no ; then
42532         BUILD_PPOLICY=$ol_enable_ppolicy
42533         if test "$ol_enable_ppolicy" = mod ; then
42534                 MFLAG=SLAPD_MOD_DYNAMIC
42535                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42536         else
42537                 MFLAG=SLAPD_MOD_STATIC
42538                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42539         fi
42540
42541 cat >>confdefs.h <<_ACEOF
42542 #define SLAPD_OVER_PPOLICY $MFLAG
42543 _ACEOF
42544
42545 fi
42546
42547 if test "$ol_enable_proxycache" != no ; then
42548         BUILD_PROXYCACHE=$ol_enable_proxycache
42549         if test "$ol_enable_proxycache" = mod ; then
42550                 MFLAG=SLAPD_MOD_DYNAMIC
42551                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42552         else
42553                 MFLAG=SLAPD_MOD_STATIC
42554                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42555         fi
42556
42557 cat >>confdefs.h <<_ACEOF
42558 #define SLAPD_OVER_PROXYCACHE $MFLAG
42559 _ACEOF
42560
42561 fi
42562
42563 if test "$ol_enable_refint" != no ; then
42564         BUILD_REFINT=$ol_enable_refint
42565         if test "$ol_enable_refint" = mod ; then
42566                 MFLAG=SLAPD_MOD_DYNAMIC
42567                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42568         else
42569                 MFLAG=SLAPD_MOD_STATIC
42570                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42571         fi
42572
42573 cat >>confdefs.h <<_ACEOF
42574 #define SLAPD_OVER_REFINT $MFLAG
42575 _ACEOF
42576
42577 fi
42578
42579 if test "$ol_enable_retcode" != no ; then
42580         BUILD_RETCODE=$ol_enable_retcode
42581         if test "$ol_enable_retcode" = mod ; then
42582                 MFLAG=SLAPD_MOD_DYNAMIC
42583                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42584         else
42585                 MFLAG=SLAPD_MOD_STATIC
42586                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42587         fi
42588
42589 cat >>confdefs.h <<_ACEOF
42590 #define SLAPD_OVER_RETCODE $MFLAG
42591 _ACEOF
42592
42593 fi
42594
42595 if test "$ol_enable_rwm" != no ; then
42596         BUILD_REWRITE=yes
42597         BUILD_RWM=$ol_enable_rwm
42598         if test "$ol_enable_rwm" = mod ; then
42599                 MFLAG=SLAPD_MOD_DYNAMIC
42600                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42601         else
42602                 MFLAG=SLAPD_MOD_STATIC
42603                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42604         fi
42605
42606 cat >>confdefs.h <<_ACEOF
42607 #define SLAPD_OVER_RWM $MFLAG
42608 _ACEOF
42609
42610 fi
42611
42612 if test "$ol_enable_syncprov" != no ; then
42613         BUILD_SYNCPROV=$ol_enable_syncprov
42614         if test "$ol_enable_syncprov" = mod ; then
42615                 MFLAG=SLAPD_MOD_DYNAMIC
42616                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42617         else
42618                 MFLAG=SLAPD_MOD_STATIC
42619                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42620         fi
42621
42622 cat >>confdefs.h <<_ACEOF
42623 #define SLAPD_OVER_SYNCPROV $MFLAG
42624 _ACEOF
42625
42626 fi
42627
42628 if test "$ol_enable_translucent" != no ; then
42629         BUILD_TRANSLUCENT=$ol_enable_translucent
42630         if test "$ol_enable_translucent" = mod ; then
42631                 MFLAG=SLAPD_MOD_DYNAMIC
42632                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42633         else
42634                 MFLAG=SLAPD_MOD_STATIC
42635                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42636         fi
42637
42638 cat >>confdefs.h <<_ACEOF
42639 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42640 _ACEOF
42641
42642 fi
42643
42644 if test "$ol_enable_unique" != no ; then
42645         BUILD_UNIQUE=$ol_enable_unique
42646         if test "$ol_enable_unique" = mod ; then
42647                 MFLAG=SLAPD_MOD_DYNAMIC
42648                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42649         else
42650                 MFLAG=SLAPD_MOD_STATIC
42651                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42652         fi
42653
42654 cat >>confdefs.h <<_ACEOF
42655 #define SLAPD_OVER_UNIQUE $MFLAG
42656 _ACEOF
42657
42658 fi
42659
42660 if test "$ol_enable_valsort" != no ; then
42661         BUILD_VALSORT=$ol_enable_valsort
42662         if test "$ol_enable_valsort" = mod ; then
42663                 MFLAG=SLAPD_MOD_DYNAMIC
42664                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42665         else
42666                 MFLAG=SLAPD_MOD_STATIC
42667                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42668         fi
42669
42670 cat >>confdefs.h <<_ACEOF
42671 #define SLAPD_OVER_VALSORT $MFLAG
42672 _ACEOF
42673
42674 fi
42675
42676 if test "$ol_enable_slurpd" != no &&
42677    test "$ol_link_threads" != no &&
42678    test $BUILD_SLAPD = yes ; then
42679         BUILD_SLURPD=yes
42680 fi
42681
42682 if test "$ol_enable_rewrite" != no ; then
42683
42684 cat >>confdefs.h <<\_ACEOF
42685 #define ENABLE_REWRITE 1
42686 _ACEOF
42687
42688         BUILD_REWRITE=yes
42689 fi
42690
42691 if test "$ol_enable_slapi" != no ; then
42692
42693 cat >>confdefs.h <<\_ACEOF
42694 #define ENABLE_SLAPI 1
42695 _ACEOF
42696
42697         BUILD_SLAPI=yes
42698         SLAPD_SLAPI_DEPEND=libslapi.a
42699 fi
42700
42701
42702
42703 if test "$ac_cv_mingw32" = yes ; then
42704         PLAT=NT
42705         SLAPD_MODULES_LDFLAGS=
42706 else
42707         PLAT=UNIX
42708 fi
42709
42710
42711
42712
42713
42714
42715
42716
42717
42718
42719
42720
42721
42722
42723
42724
42725
42726
42727
42728
42729
42730
42731
42732
42733
42734
42735
42736
42737
42738
42739
42740
42741
42742
42743
42744
42745
42746
42747
42748
42749
42750
42751
42752
42753
42754
42755
42756
42757
42758
42759
42760
42761
42762
42763
42764
42765
42766
42767
42768
42769
42770
42771
42772
42773
42774
42775
42776
42777
42778
42779
42780
42781
42782
42783
42784
42785
42786
42787
42788
42789 # Check whether --with-xxinstall or --without-xxinstall was given.
42790 if test "${with_xxinstall+set}" = set; then
42791   withval="$with_xxinstall"
42792
42793 fi;
42794
42795
42796                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
42797
42798
42799           ac_config_commands="$ac_config_commands default"
42800
42801
42802
42803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42804 # Let make expand exec_prefix.
42805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42806
42807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42809 # trailing colons and then remove the whole line if VPATH becomes empty
42810 # (actually we leave an empty line to preserve line numbers).
42811 if test "x$srcdir" = x.; then
42812   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42813 s/:*\$(srcdir):*/:/;
42814 s/:*\${srcdir}:*/:/;
42815 s/:*@srcdir@:*/:/;
42816 s/^\([^=]*=[     ]*\):*/\1/;
42817 s/:*$//;
42818 s/^[^=]*=[       ]*$//;
42819 }'
42820 fi
42821
42822 DEFS=-DHAVE_CONFIG_H
42823
42824 ac_libobjs=
42825 ac_ltlibobjs=
42826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42827   # 1. Remove the extension, and $U if already installed.
42828   ac_i=`echo "$ac_i" |
42829          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42830   # 2. Add them.
42831   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42832   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42833 done
42834 LIBOBJS=$ac_libobjs
42835
42836 LTLIBOBJS=$ac_ltlibobjs
42837
42838
42839 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42840   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42841 Usually this means the macro was only invoked conditionally." >&5
42842 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42843 Usually this means the macro was only invoked conditionally." >&2;}
42844    { (exit 1); exit 1; }; }
42845 fi
42846 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42847   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42848 Usually this means the macro was only invoked conditionally." >&5
42849 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42850 Usually this means the macro was only invoked conditionally." >&2;}
42851    { (exit 1); exit 1; }; }
42852 fi
42853 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42854   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42855 Usually this means the macro was only invoked conditionally." >&5
42856 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42857 Usually this means the macro was only invoked conditionally." >&2;}
42858    { (exit 1); exit 1; }; }
42859 fi
42860
42861 : ${CONFIG_STATUS=./config.status}
42862 ac_clean_files_save=$ac_clean_files
42863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42864 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42865 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42866 cat >$CONFIG_STATUS <<_ACEOF
42867 #! $SHELL
42868 # Generated by $as_me.
42869 # Run this file to recreate the current configuration.
42870 # Compiler output produced by configure, useful for debugging
42871 # configure, is in config.log if it exists.
42872
42873 debug=false
42874 ac_cs_recheck=false
42875 ac_cs_silent=false
42876 SHELL=\${CONFIG_SHELL-$SHELL}
42877 _ACEOF
42878
42879 cat >>$CONFIG_STATUS <<\_ACEOF
42880 ## --------------------- ##
42881 ## M4sh Initialization.  ##
42882 ## --------------------- ##
42883
42884 # Be Bourne compatible
42885 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42886   emulate sh
42887   NULLCMD=:
42888   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42889   # is contrary to our usage.  Disable this feature.
42890   alias -g '${1+"$@"}'='"$@"'
42891 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42892   set -o posix
42893 fi
42894 DUALCASE=1; export DUALCASE # for MKS sh
42895
42896 # Support unset when possible.
42897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42898   as_unset=unset
42899 else
42900   as_unset=false
42901 fi
42902
42903
42904 # Work around bugs in pre-3.0 UWIN ksh.
42905 $as_unset ENV MAIL MAILPATH
42906 PS1='$ '
42907 PS2='> '
42908 PS4='+ '
42909
42910 # NLS nuisances.
42911 for as_var in \
42912   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42913   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42914   LC_TELEPHONE LC_TIME
42915 do
42916   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42917     eval $as_var=C; export $as_var
42918   else
42919     $as_unset $as_var
42920   fi
42921 done
42922
42923 # Required to use basename.
42924 if expr a : '\(a\)' >/dev/null 2>&1; then
42925   as_expr=expr
42926 else
42927   as_expr=false
42928 fi
42929
42930 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42931   as_basename=basename
42932 else
42933   as_basename=false
42934 fi
42935
42936
42937 # Name of the executable.
42938 as_me=`$as_basename "$0" ||
42939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42940          X"$0" : 'X\(//\)$' \| \
42941          X"$0" : 'X\(/\)$' \| \
42942          .     : '\(.\)' 2>/dev/null ||
42943 echo X/"$0" |
42944     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42945           /^X\/\(\/\/\)$/{ s//\1/; q; }
42946           /^X\/\(\/\).*/{ s//\1/; q; }
42947           s/.*/./; q'`
42948
42949
42950 # PATH needs CR, and LINENO needs CR and PATH.
42951 # Avoid depending upon Character Ranges.
42952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42955 as_cr_digits='0123456789'
42956 as_cr_alnum=$as_cr_Letters$as_cr_digits
42957
42958 # The user is always right.
42959 if test "${PATH_SEPARATOR+set}" != set; then
42960   echo "#! /bin/sh" >conf$$.sh
42961   echo  "exit 0"   >>conf$$.sh
42962   chmod +x conf$$.sh
42963   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42964     PATH_SEPARATOR=';'
42965   else
42966     PATH_SEPARATOR=:
42967   fi
42968   rm -f conf$$.sh
42969 fi
42970
42971
42972   as_lineno_1=$LINENO
42973   as_lineno_2=$LINENO
42974   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42975   test "x$as_lineno_1" != "x$as_lineno_2" &&
42976   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
42977   # Find who we are.  Look in the path if we contain no path at all
42978   # relative or not.
42979   case $0 in
42980     *[\\/]* ) as_myself=$0 ;;
42981     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42982 for as_dir in $PATH
42983 do
42984   IFS=$as_save_IFS
42985   test -z "$as_dir" && as_dir=.
42986   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42987 done
42988
42989        ;;
42990   esac
42991   # We did not find ourselves, most probably we were run as `sh COMMAND'
42992   # in which case we are not to be found in the path.
42993   if test "x$as_myself" = x; then
42994     as_myself=$0
42995   fi
42996   if test ! -f "$as_myself"; then
42997     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42998 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42999    { (exit 1); exit 1; }; }
43000   fi
43001   case $CONFIG_SHELL in
43002   '')
43003     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43004 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43005 do
43006   IFS=$as_save_IFS
43007   test -z "$as_dir" && as_dir=.
43008   for as_base in sh bash ksh sh5; do
43009          case $as_dir in
43010          /*)
43011            if ("$as_dir/$as_base" -c '
43012   as_lineno_1=$LINENO
43013   as_lineno_2=$LINENO
43014   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43015   test "x$as_lineno_1" != "x$as_lineno_2" &&
43016   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
43017              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43018              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43019              CONFIG_SHELL=$as_dir/$as_base
43020              export CONFIG_SHELL
43021              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43022            fi;;
43023          esac
43024        done
43025 done
43026 ;;
43027   esac
43028
43029   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43030   # uniformly replaced by the line number.  The first 'sed' inserts a
43031   # line-number line before each line; the second 'sed' does the real
43032   # work.  The second script uses 'N' to pair each line-number line
43033   # with the numbered line, and appends trailing '-' during
43034   # substitution so that $LINENO is not a special case at line end.
43035   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43036   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
43037   sed '=' <$as_myself |
43038     sed '
43039       N
43040       s,$,-,
43041       : loop
43042       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43043       t loop
43044       s,-$,,
43045       s,^['$as_cr_digits']*\n,,
43046     ' >$as_me.lineno &&
43047   chmod +x $as_me.lineno ||
43048     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43049 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43050    { (exit 1); exit 1; }; }
43051
43052   # Don't try to exec as it changes $[0], causing all sort of problems
43053   # (the dirname of $[0] is not the place where we might find the
43054   # original and so on.  Autoconf is especially sensible to this).
43055   . ./$as_me.lineno
43056   # Exit status is that of the last command.
43057   exit
43058 }
43059
43060
43061 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43062   *c*,-n*) ECHO_N= ECHO_C='
43063 ' ECHO_T='      ' ;;
43064   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43065   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
43066 esac
43067
43068 if expr a : '\(a\)' >/dev/null 2>&1; then
43069   as_expr=expr
43070 else
43071   as_expr=false
43072 fi
43073
43074 rm -f conf$$ conf$$.exe conf$$.file
43075 echo >conf$$.file
43076 if ln -s conf$$.file conf$$ 2>/dev/null; then
43077   # We could just check for DJGPP; but this test a) works b) is more generic
43078   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43079   if test -f conf$$.exe; then
43080     # Don't use ln at all; we don't have any links
43081     as_ln_s='cp -p'
43082   else
43083     as_ln_s='ln -s'
43084   fi
43085 elif ln conf$$.file conf$$ 2>/dev/null; then
43086   as_ln_s=ln
43087 else
43088   as_ln_s='cp -p'
43089 fi
43090 rm -f conf$$ conf$$.exe conf$$.file
43091
43092 if mkdir -p . 2>/dev/null; then
43093   as_mkdir_p=:
43094 else
43095   test -d ./-p && rmdir ./-p
43096   as_mkdir_p=false
43097 fi
43098
43099 as_executable_p="test -f"
43100
43101 # Sed expression to map a string onto a valid CPP name.
43102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43103
43104 # Sed expression to map a string onto a valid variable name.
43105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43106
43107
43108 # IFS
43109 # We need space, tab and new line, in precisely that order.
43110 as_nl='
43111 '
43112 IFS="   $as_nl"
43113
43114 # CDPATH.
43115 $as_unset CDPATH
43116
43117 exec 6>&1
43118
43119 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43120 # report actual input values of CONFIG_FILES etc. instead of their
43121 # values after options handling.  Logging --version etc. is OK.
43122 exec 5>>config.log
43123 {
43124   echo
43125   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43126 ## Running $as_me. ##
43127 _ASBOX
43128 } >&5
43129 cat >&5 <<_CSEOF
43130
43131 This file was extended by $as_me, which was
43132 generated by GNU Autoconf 2.59.  Invocation command line was
43133
43134   CONFIG_FILES    = $CONFIG_FILES
43135   CONFIG_HEADERS  = $CONFIG_HEADERS
43136   CONFIG_LINKS    = $CONFIG_LINKS
43137   CONFIG_COMMANDS = $CONFIG_COMMANDS
43138   $ $0 $@
43139
43140 _CSEOF
43141 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43142 echo >&5
43143 _ACEOF
43144
43145 # Files that config.status was made for.
43146 if test -n "$ac_config_files"; then
43147   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43148 fi
43149
43150 if test -n "$ac_config_headers"; then
43151   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43152 fi
43153
43154 if test -n "$ac_config_links"; then
43155   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43156 fi
43157
43158 if test -n "$ac_config_commands"; then
43159   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43160 fi
43161
43162 cat >>$CONFIG_STATUS <<\_ACEOF
43163
43164 ac_cs_usage="\
43165 \`$as_me' instantiates files from templates according to the
43166 current configuration.
43167
43168 Usage: $0 [OPTIONS] [FILE]...
43169
43170   -h, --help       print this help, then exit
43171   -V, --version    print version number, then exit
43172   -q, --quiet      do not print progress messages
43173   -d, --debug      don't remove temporary files
43174       --recheck    update $as_me by reconfiguring in the same conditions
43175   --file=FILE[:TEMPLATE]
43176                    instantiate the configuration file FILE
43177   --header=FILE[:TEMPLATE]
43178                    instantiate the configuration header FILE
43179
43180 Configuration files:
43181 $config_files
43182
43183 Configuration headers:
43184 $config_headers
43185
43186 Configuration commands:
43187 $config_commands
43188
43189 Report bugs to <bug-autoconf@gnu.org>."
43190 _ACEOF
43191
43192 cat >>$CONFIG_STATUS <<_ACEOF
43193 ac_cs_version="\\
43194 config.status
43195 configured by $0, generated by GNU Autoconf 2.59,
43196   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43197
43198 Copyright (C) 2003 Free Software Foundation, Inc.
43199 This config.status script is free software; the Free Software Foundation
43200 gives unlimited permission to copy, distribute and modify it."
43201 srcdir=$srcdir
43202 INSTALL="$INSTALL"
43203 _ACEOF
43204
43205 cat >>$CONFIG_STATUS <<\_ACEOF
43206 # If no file are specified by the user, then we need to provide default
43207 # value.  By we need to know if files were specified by the user.
43208 ac_need_defaults=:
43209 while test $# != 0
43210 do
43211   case $1 in
43212   --*=*)
43213     ac_option=`expr "x$1" : 'x\([^=]*\)='`
43214     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43215     ac_shift=:
43216     ;;
43217   -*)
43218     ac_option=$1
43219     ac_optarg=$2
43220     ac_shift=shift
43221     ;;
43222   *) # This is not an option, so the user has probably given explicit
43223      # arguments.
43224      ac_option=$1
43225      ac_need_defaults=false;;
43226   esac
43227
43228   case $ac_option in
43229   # Handling of the options.
43230 _ACEOF
43231 cat >>$CONFIG_STATUS <<\_ACEOF
43232   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43233     ac_cs_recheck=: ;;
43234   --version | --vers* | -V )
43235     echo "$ac_cs_version"; exit 0 ;;
43236   --he | --h)
43237     # Conflict between --help and --header
43238     { { echo "$as_me:$LINENO: error: ambiguous option: $1
43239 Try \`$0 --help' for more information." >&5
43240 echo "$as_me: error: ambiguous option: $1
43241 Try \`$0 --help' for more information." >&2;}
43242    { (exit 1); exit 1; }; };;
43243   --help | --hel | -h )
43244     echo "$ac_cs_usage"; exit 0 ;;
43245   --debug | --d* | -d )
43246     debug=: ;;
43247   --file | --fil | --fi | --f )
43248     $ac_shift
43249     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43250     ac_need_defaults=false;;
43251   --header | --heade | --head | --hea )
43252     $ac_shift
43253     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43254     ac_need_defaults=false;;
43255   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43256   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43257     ac_cs_silent=: ;;
43258
43259   # This is an error.
43260   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43261 Try \`$0 --help' for more information." >&5
43262 echo "$as_me: error: unrecognized option: $1
43263 Try \`$0 --help' for more information." >&2;}
43264    { (exit 1); exit 1; }; } ;;
43265
43266   *) ac_config_targets="$ac_config_targets $1" ;;
43267
43268   esac
43269   shift
43270 done
43271
43272 ac_configure_extra_args=
43273
43274 if $ac_cs_silent; then
43275   exec 6>/dev/null
43276   ac_configure_extra_args="$ac_configure_extra_args --silent"
43277 fi
43278
43279 _ACEOF
43280 cat >>$CONFIG_STATUS <<_ACEOF
43281 if \$ac_cs_recheck; then
43282   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43283   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43284 fi
43285
43286 _ACEOF
43287
43288 cat >>$CONFIG_STATUS <<_ACEOF
43289 #
43290 # INIT-COMMANDS section.
43291 #
43292
43293 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43294 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43295
43296 _ACEOF
43297
43298
43299
43300 cat >>$CONFIG_STATUS <<\_ACEOF
43301 for ac_config_target in $ac_config_targets
43302 do
43303   case "$ac_config_target" in
43304   # Handling of arguments.
43305   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43306   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43307   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43308   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43309   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43310   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43311   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43312   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43313   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43314   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43315   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43316   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43317   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43318   "libraries/libldap_r/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43319   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43320   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43321   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43322   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43323   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43324   "servers/slapd/back-bdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
43325   "servers/slapd/back-dnssrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
43326   "servers/slapd/back-hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
43327   "servers/slapd/back-ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
43328   "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
43329   "servers/slapd/back-ldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
43330   "servers/slapd/back-meta/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
43331   "servers/slapd/back-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
43332   "servers/slapd/back-null/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
43333   "servers/slapd/back-passwd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
43334   "servers/slapd/back-perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
43335   "servers/slapd/back-relay/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
43336   "servers/slapd/back-shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
43337   "servers/slapd/back-sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
43338   "servers/slapd/shell-backends/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
43339   "servers/slapd/slapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43340   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43341   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43342   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43343   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43344   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43345   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43346   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43347   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43348   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43349   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43350   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43351 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43352    { (exit 1); exit 1; }; };;
43353   esac
43354 done
43355
43356 # If the user did not use the arguments to specify the items to instantiate,
43357 # then the envvar interface is used.  Set only those that are not.
43358 # We use the long form for the default assignment because of an extremely
43359 # bizarre bug on SunOS 4.1.3.
43360 if $ac_need_defaults; then
43361   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43362   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43363   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43364 fi
43365
43366 # Have a temporary directory for convenience.  Make it in the build tree
43367 # simply because there is no reason to put it here, and in addition,
43368 # creating and moving files from /tmp can sometimes cause problems.
43369 # Create a temporary directory, and hook for its removal unless debugging.
43370 $debug ||
43371 {
43372   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43373   trap '{ (exit 1); exit 1; }' 1 2 13 15
43374 }
43375
43376 # Create a (secure) tmp directory for tmp files.
43377
43378 {
43379   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43380   test -n "$tmp" && test -d "$tmp"
43381 }  ||
43382 {
43383   tmp=./confstat$$-$RANDOM
43384   (umask 077 && mkdir $tmp)
43385 } ||
43386 {
43387    echo "$me: cannot create a temporary directory in ." >&2
43388    { (exit 1); exit 1; }
43389 }
43390
43391 _ACEOF
43392
43393 cat >>$CONFIG_STATUS <<_ACEOF
43394
43395 #
43396 # CONFIG_FILES section.
43397 #
43398
43399 # No need to generate the scripts if there are no CONFIG_FILES.
43400 # This happens for instance when ./config.status config.h
43401 if test -n "\$CONFIG_FILES"; then
43402   # Protect against being on the right side of a sed subst in config.status.
43403   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43404    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43405 s,@SHELL@,$SHELL,;t t
43406 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43407 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43408 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43409 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43410 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43411 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43412 s,@exec_prefix@,$exec_prefix,;t t
43413 s,@prefix@,$prefix,;t t
43414 s,@program_transform_name@,$program_transform_name,;t t
43415 s,@bindir@,$bindir,;t t
43416 s,@sbindir@,$sbindir,;t t
43417 s,@libexecdir@,$libexecdir,;t t
43418 s,@datadir@,$datadir,;t t
43419 s,@sysconfdir@,$sysconfdir,;t t
43420 s,@sharedstatedir@,$sharedstatedir,;t t
43421 s,@localstatedir@,$localstatedir,;t t
43422 s,@libdir@,$libdir,;t t
43423 s,@includedir@,$includedir,;t t
43424 s,@oldincludedir@,$oldincludedir,;t t
43425 s,@infodir@,$infodir,;t t
43426 s,@mandir@,$mandir,;t t
43427 s,@build_alias@,$build_alias,;t t
43428 s,@host_alias@,$host_alias,;t t
43429 s,@target_alias@,$target_alias,;t t
43430 s,@DEFS@,$DEFS,;t t
43431 s,@ECHO_C@,$ECHO_C,;t t
43432 s,@ECHO_N@,$ECHO_N,;t t
43433 s,@ECHO_T@,$ECHO_T,;t t
43434 s,@LIBS@,$LIBS,;t t
43435 s,@build@,$build,;t t
43436 s,@build_cpu@,$build_cpu,;t t
43437 s,@build_vendor@,$build_vendor,;t t
43438 s,@build_os@,$build_os,;t t
43439 s,@host@,$host,;t t
43440 s,@host_cpu@,$host_cpu,;t t
43441 s,@host_vendor@,$host_vendor,;t t
43442 s,@host_os@,$host_os,;t t
43443 s,@target@,$target,;t t
43444 s,@target_cpu@,$target_cpu,;t t
43445 s,@target_vendor@,$target_vendor,;t t
43446 s,@target_os@,$target_os,;t t
43447 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43448 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43449 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43450 s,@CYGPATH_W@,$CYGPATH_W,;t t
43451 s,@PACKAGE@,$PACKAGE,;t t
43452 s,@VERSION@,$VERSION,;t t
43453 s,@ACLOCAL@,$ACLOCAL,;t t
43454 s,@AUTOCONF@,$AUTOCONF,;t t
43455 s,@AUTOMAKE@,$AUTOMAKE,;t t
43456 s,@AUTOHEADER@,$AUTOHEADER,;t t
43457 s,@MAKEINFO@,$MAKEINFO,;t t
43458 s,@install_sh@,$install_sh,;t t
43459 s,@STRIP@,$STRIP,;t t
43460 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43461 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43462 s,@mkdir_p@,$mkdir_p,;t t
43463 s,@AWK@,$AWK,;t t
43464 s,@SET_MAKE@,$SET_MAKE,;t t
43465 s,@am__leading_dot@,$am__leading_dot,;t t
43466 s,@AMTAR@,$AMTAR,;t t
43467 s,@am__tar@,$am__tar,;t t
43468 s,@am__untar@,$am__untar,;t t
43469 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43470 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43471 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43472 s,@top_builddir@,$top_builddir,;t t
43473 s,@ldap_subdir@,$ldap_subdir,;t t
43474 s,@CC@,$CC,;t t
43475 s,@AR@,$AR,;t t
43476 s,@CFLAGS@,$CFLAGS,;t t
43477 s,@LDFLAGS@,$LDFLAGS,;t t
43478 s,@CPPFLAGS@,$CPPFLAGS,;t t
43479 s,@ac_ct_CC@,$ac_ct_CC,;t t
43480 s,@EXEEXT@,$EXEEXT,;t t
43481 s,@OBJEXT@,$OBJEXT,;t t
43482 s,@DEPDIR@,$DEPDIR,;t t
43483 s,@am__include@,$am__include,;t t
43484 s,@am__quote@,$am__quote,;t t
43485 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43486 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43487 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43488 s,@CCDEPMODE@,$CCDEPMODE,;t t
43489 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43490 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43491 s,@EGREP@,$EGREP,;t t
43492 s,@LN_S@,$LN_S,;t t
43493 s,@ECHO@,$ECHO,;t t
43494 s,@ac_ct_AR@,$ac_ct_AR,;t t
43495 s,@RANLIB@,$RANLIB,;t t
43496 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43497 s,@DLLTOOL@,$DLLTOOL,;t t
43498 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43499 s,@AS@,$AS,;t t
43500 s,@ac_ct_AS@,$ac_ct_AS,;t t
43501 s,@OBJDUMP@,$OBJDUMP,;t t
43502 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43503 s,@CPP@,$CPP,;t t
43504 s,@LIBTOOL@,$LIBTOOL,;t t
43505 s,@PERLBIN@,$PERLBIN,;t t
43506 s,@OL_MKDEP@,$OL_MKDEP,;t t
43507 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43508 s,@LTSTATIC@,$LTSTATIC,;t t
43509 s,@LIBOBJS@,$LIBOBJS,;t t
43510 s,@LIBSRCS@,$LIBSRCS,;t t
43511 s,@PLAT@,$PLAT,;t t
43512 s,@WITH_SASL@,$WITH_SASL,;t t
43513 s,@WITH_TLS@,$WITH_TLS,;t t
43514 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43515 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43516 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43517 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43518 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43519 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43520 s,@BUILD_BDB@,$BUILD_BDB,;t t
43521 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43522 s,@BUILD_HDB@,$BUILD_HDB,;t t
43523 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43524 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43525 s,@BUILD_META@,$BUILD_META,;t t
43526 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43527 s,@BUILD_NULL@,$BUILD_NULL,;t t
43528 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43529 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43530 s,@BUILD_PERL@,$BUILD_PERL,;t t
43531 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43532 s,@BUILD_SQL@,$BUILD_SQL,;t t
43533 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43534 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43535 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43536 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43537 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43538 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43539 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43540 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43541 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43542 s,@BUILD_RWM@,$BUILD_RWM,;t t
43543 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43544 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43545 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43546 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43547 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43548 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43549 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43550 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43551 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43552 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43553 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43554 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43555 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43556 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43557 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43558 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43559 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43560 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43561 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43562 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43563 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43564 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43565 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43566 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43567 s,@SASL_LIBS@,$SASL_LIBS,;t t
43568 s,@TLS_LIBS@,$TLS_LIBS,;t t
43569 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43570 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43571 s,@LIBSLAPI@,$LIBSLAPI,;t t
43572 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43573 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43574 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43575 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43576 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43577 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43578 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43579 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43580 CEOF
43581
43582 _ACEOF
43583
43584   cat >>$CONFIG_STATUS <<\_ACEOF
43585   # Split the substitutions into bite-sized pieces for seds with
43586   # small command number limits, like on Digital OSF/1 and HP-UX.
43587   ac_max_sed_lines=48
43588   ac_sed_frag=1 # Number of current file.
43589   ac_beg=1 # First line for current file.
43590   ac_end=$ac_max_sed_lines # Line after last line for current file.
43591   ac_more_lines=:
43592   ac_sed_cmds=
43593   while $ac_more_lines; do
43594     if test $ac_beg -gt 1; then
43595       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43596     else
43597       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43598     fi
43599     if test ! -s $tmp/subs.frag; then
43600       ac_more_lines=false
43601     else
43602       # The purpose of the label and of the branching condition is to
43603       # speed up the sed processing (if there are no `@' at all, there
43604       # is no need to browse any of the substitutions).
43605       # These are the two extra sed commands mentioned above.
43606       (echo ':t
43607   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43608       if test -z "$ac_sed_cmds"; then
43609         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43610       else
43611         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43612       fi
43613       ac_sed_frag=`expr $ac_sed_frag + 1`
43614       ac_beg=$ac_end
43615       ac_end=`expr $ac_end + $ac_max_sed_lines`
43616     fi
43617   done
43618   if test -z "$ac_sed_cmds"; then
43619     ac_sed_cmds=cat
43620   fi
43621 fi # test -n "$CONFIG_FILES"
43622
43623 _ACEOF
43624 cat >>$CONFIG_STATUS <<\_ACEOF
43625 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43626   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43627   case $ac_file in
43628   - | *:- | *:-:* ) # input from stdin
43629         cat >$tmp/stdin
43630         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43631         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43632   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43633         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43634   * )   ac_file_in=$ac_file.in ;;
43635   esac
43636
43637   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43638   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43640          X"$ac_file" : 'X\(//\)[^/]' \| \
43641          X"$ac_file" : 'X\(//\)$' \| \
43642          X"$ac_file" : 'X\(/\)' \| \
43643          .     : '\(.\)' 2>/dev/null ||
43644 echo X"$ac_file" |
43645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43646           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43647           /^X\(\/\/\)$/{ s//\1/; q; }
43648           /^X\(\/\).*/{ s//\1/; q; }
43649           s/.*/./; q'`
43650   { if $as_mkdir_p; then
43651     mkdir -p "$ac_dir"
43652   else
43653     as_dir="$ac_dir"
43654     as_dirs=
43655     while test ! -d "$as_dir"; do
43656       as_dirs="$as_dir $as_dirs"
43657       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43659          X"$as_dir" : 'X\(//\)[^/]' \| \
43660          X"$as_dir" : 'X\(//\)$' \| \
43661          X"$as_dir" : 'X\(/\)' \| \
43662          .     : '\(.\)' 2>/dev/null ||
43663 echo X"$as_dir" |
43664     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43665           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43666           /^X\(\/\/\)$/{ s//\1/; q; }
43667           /^X\(\/\).*/{ s//\1/; q; }
43668           s/.*/./; q'`
43669     done
43670     test ! -n "$as_dirs" || mkdir $as_dirs
43671   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43672 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43673    { (exit 1); exit 1; }; }; }
43674
43675   ac_builddir=.
43676
43677 if test "$ac_dir" != .; then
43678   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43679   # A "../" for each directory in $ac_dir_suffix.
43680   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43681 else
43682   ac_dir_suffix= ac_top_builddir=
43683 fi
43684
43685 case $srcdir in
43686   .)  # No --srcdir option.  We are building in place.
43687     ac_srcdir=.
43688     if test -z "$ac_top_builddir"; then
43689        ac_top_srcdir=.
43690     else
43691        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43692     fi ;;
43693   [\\/]* | ?:[\\/]* )  # Absolute path.
43694     ac_srcdir=$srcdir$ac_dir_suffix;
43695     ac_top_srcdir=$srcdir ;;
43696   *) # Relative path.
43697     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43698     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43699 esac
43700
43701 # Do not use `cd foo && pwd` to compute absolute paths, because
43702 # the directories may not exist.
43703 case `pwd` in
43704 .) ac_abs_builddir="$ac_dir";;
43705 *)
43706   case "$ac_dir" in
43707   .) ac_abs_builddir=`pwd`;;
43708   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43709   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43710   esac;;
43711 esac
43712 case $ac_abs_builddir in
43713 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43714 *)
43715   case ${ac_top_builddir}. in
43716   .) ac_abs_top_builddir=$ac_abs_builddir;;
43717   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43718   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43719   esac;;
43720 esac
43721 case $ac_abs_builddir in
43722 .) ac_abs_srcdir=$ac_srcdir;;
43723 *)
43724   case $ac_srcdir in
43725   .) ac_abs_srcdir=$ac_abs_builddir;;
43726   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43727   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43728   esac;;
43729 esac
43730 case $ac_abs_builddir in
43731 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43732 *)
43733   case $ac_top_srcdir in
43734   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43735   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43736   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43737   esac;;
43738 esac
43739
43740
43741   case $INSTALL in
43742   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43743   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43744   esac
43745
43746   if test x"$ac_file" != x-; then
43747     { echo "$as_me:$LINENO: creating $ac_file" >&5
43748 echo "$as_me: creating $ac_file" >&6;}
43749     rm -f "$ac_file"
43750   fi
43751   # Let's still pretend it is `configure' which instantiates (i.e., don't
43752   # use $as_me), people would be surprised to read:
43753   #    /* config.h.  Generated by config.status.  */
43754   if test x"$ac_file" = x-; then
43755     configure_input=
43756   else
43757     configure_input="$ac_file.  "
43758   fi
43759   configure_input=$configure_input"Generated from `echo $ac_file_in |
43760                                      sed 's,.*/,,'` by configure."
43761
43762   # First look for the input files in the build tree, otherwise in the
43763   # src tree.
43764   ac_file_inputs=`IFS=:
43765     for f in $ac_file_in; do
43766       case $f in
43767       -) echo $tmp/stdin ;;
43768       [\\/$]*)
43769          # Absolute (can't be DOS-style, as IFS=:)
43770          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43771 echo "$as_me: error: cannot find input file: $f" >&2;}
43772    { (exit 1); exit 1; }; }
43773          echo "$f";;
43774       *) # Relative
43775          if test -f "$f"; then
43776            # Build tree
43777            echo "$f"
43778          elif test -f "$srcdir/$f"; then
43779            # Source tree
43780            echo "$srcdir/$f"
43781          else
43782            # /dev/null tree
43783            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43784 echo "$as_me: error: cannot find input file: $f" >&2;}
43785    { (exit 1); exit 1; }; }
43786          fi;;
43787       esac
43788     done` || { (exit 1); exit 1; }
43789 _ACEOF
43790 cat >>$CONFIG_STATUS <<_ACEOF
43791   sed "$ac_vpsub
43792 $extrasub
43793 _ACEOF
43794 cat >>$CONFIG_STATUS <<\_ACEOF
43795 :t
43796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43797 s,@configure_input@,$configure_input,;t t
43798 s,@srcdir@,$ac_srcdir,;t t
43799 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43800 s,@top_srcdir@,$ac_top_srcdir,;t t
43801 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43802 s,@builddir@,$ac_builddir,;t t
43803 s,@abs_builddir@,$ac_abs_builddir,;t t
43804 s,@top_builddir@,$ac_top_builddir,;t t
43805 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43806 s,@INSTALL@,$ac_INSTALL,;t t
43807 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43808   rm -f $tmp/stdin
43809   if test x"$ac_file" != x-; then
43810     mv $tmp/out $ac_file
43811   else
43812     cat $tmp/out
43813     rm -f $tmp/out
43814   fi
43815
43816 done
43817 _ACEOF
43818 cat >>$CONFIG_STATUS <<\_ACEOF
43819
43820 #
43821 # CONFIG_HEADER section.
43822 #
43823
43824 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43825 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43826 #
43827 # ac_d sets the value in "#define NAME VALUE" lines.
43828 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
43829 ac_dB='[         ].*$,\1#\2'
43830 ac_dC=' '
43831 ac_dD=',;t'
43832 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43833 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
43834 ac_uB='$,\1#\2define\3'
43835 ac_uC=' '
43836 ac_uD=',;t'
43837
43838 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43839   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43840   case $ac_file in
43841   - | *:- | *:-:* ) # input from stdin
43842         cat >$tmp/stdin
43843         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43844         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43845   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43846         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43847   * )   ac_file_in=$ac_file.in ;;
43848   esac
43849
43850   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43851 echo "$as_me: creating $ac_file" >&6;}
43852
43853   # First look for the input files in the build tree, otherwise in the
43854   # src tree.
43855   ac_file_inputs=`IFS=:
43856     for f in $ac_file_in; do
43857       case $f in
43858       -) echo $tmp/stdin ;;
43859       [\\/$]*)
43860          # Absolute (can't be DOS-style, as IFS=:)
43861          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43862 echo "$as_me: error: cannot find input file: $f" >&2;}
43863    { (exit 1); exit 1; }; }
43864          # Do quote $f, to prevent DOS paths from being IFS'd.
43865          echo "$f";;
43866       *) # Relative
43867          if test -f "$f"; then
43868            # Build tree
43869            echo "$f"
43870          elif test -f "$srcdir/$f"; then
43871            # Source tree
43872            echo "$srcdir/$f"
43873          else
43874            # /dev/null tree
43875            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43876 echo "$as_me: error: cannot find input file: $f" >&2;}
43877    { (exit 1); exit 1; }; }
43878          fi;;
43879       esac
43880     done` || { (exit 1); exit 1; }
43881   # Remove the trailing spaces.
43882   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
43883
43884 _ACEOF
43885
43886 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43887 # `conftest.undefs', that substitutes the proper values into
43888 # config.h.in to produce config.h.  The first handles `#define'
43889 # templates, and the second `#undef' templates.
43890 # And first: Protect against being on the right side of a sed subst in
43891 # config.status.  Protect against being in an unquoted here document
43892 # in config.status.
43893 rm -f conftest.defines conftest.undefs
43894 # Using a here document instead of a string reduces the quoting nightmare.
43895 # Putting comments in sed scripts is not portable.
43896 #
43897 # `end' is used to avoid that the second main sed command (meant for
43898 # 0-ary CPP macros) applies to n-ary macro definitions.
43899 # See the Autoconf documentation for `clear'.
43900 cat >confdef2sed.sed <<\_ACEOF
43901 s/[\\&,]/\\&/g
43902 s,[\\$`],\\&,g
43903 t clear
43904 : clear
43905 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43906 t end
43907 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43908 : end
43909 _ACEOF
43910 # If some macros were called several times there might be several times
43911 # the same #defines, which is useless.  Nevertheless, we may not want to
43912 # sort them, since we want the *last* AC-DEFINE to be honored.
43913 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43914 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43915 rm -f confdef2sed.sed
43916
43917 # This sed command replaces #undef with comments.  This is necessary, for
43918 # example, in the case of _POSIX_SOURCE, which is predefined and required
43919 # on some systems where configure will not decide to define it.
43920 cat >>conftest.undefs <<\_ACEOF
43921 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43922 _ACEOF
43923
43924 # Break up conftest.defines because some shells have a limit on the size
43925 # of here documents, and old seds have small limits too (100 cmds).
43926 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43927 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43928 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43929 echo '  :' >>$CONFIG_STATUS
43930 rm -f conftest.tail
43931 while grep . conftest.defines >/dev/null
43932 do
43933   # Write a limited-size here document to $tmp/defines.sed.
43934   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43935   # Speed up: don't consider the non `#define' lines.
43936   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
43937   # Work around the forget-to-reset-the-flag bug.
43938   echo 't clr' >>$CONFIG_STATUS
43939   echo ': clr' >>$CONFIG_STATUS
43940   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43941   echo 'CEOF
43942   sed -f $tmp/defines.sed $tmp/in >$tmp/out
43943   rm -f $tmp/in
43944   mv $tmp/out $tmp/in
43945 ' >>$CONFIG_STATUS
43946   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43947   rm -f conftest.defines
43948   mv conftest.tail conftest.defines
43949 done
43950 rm -f conftest.defines
43951 echo '  fi # grep' >>$CONFIG_STATUS
43952 echo >>$CONFIG_STATUS
43953
43954 # Break up conftest.undefs because some shells have a limit on the size
43955 # of here documents, and old seds have small limits too (100 cmds).
43956 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
43957 rm -f conftest.tail
43958 while grep . conftest.undefs >/dev/null
43959 do
43960   # Write a limited-size here document to $tmp/undefs.sed.
43961   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43962   # Speed up: don't consider the non `#undef'
43963   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
43964   # Work around the forget-to-reset-the-flag bug.
43965   echo 't clr' >>$CONFIG_STATUS
43966   echo ': clr' >>$CONFIG_STATUS
43967   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43968   echo 'CEOF
43969   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43970   rm -f $tmp/in
43971   mv $tmp/out $tmp/in
43972 ' >>$CONFIG_STATUS
43973   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43974   rm -f conftest.undefs
43975   mv conftest.tail conftest.undefs
43976 done
43977 rm -f conftest.undefs
43978
43979 cat >>$CONFIG_STATUS <<\_ACEOF
43980   # Let's still pretend it is `configure' which instantiates (i.e., don't
43981   # use $as_me), people would be surprised to read:
43982   #    /* config.h.  Generated by config.status.  */
43983   if test x"$ac_file" = x-; then
43984     echo "/* Generated by configure.  */" >$tmp/config.h
43985   else
43986     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
43987   fi
43988   cat $tmp/in >>$tmp/config.h
43989   rm -f $tmp/in
43990   if test x"$ac_file" != x-; then
43991     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43992       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43993 echo "$as_me: $ac_file is unchanged" >&6;}
43994     else
43995       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43997          X"$ac_file" : 'X\(//\)[^/]' \| \
43998          X"$ac_file" : 'X\(//\)$' \| \
43999          X"$ac_file" : 'X\(/\)' \| \
44000          .     : '\(.\)' 2>/dev/null ||
44001 echo X"$ac_file" |
44002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44004           /^X\(\/\/\)$/{ s//\1/; q; }
44005           /^X\(\/\).*/{ s//\1/; q; }
44006           s/.*/./; q'`
44007       { if $as_mkdir_p; then
44008     mkdir -p "$ac_dir"
44009   else
44010     as_dir="$ac_dir"
44011     as_dirs=
44012     while test ! -d "$as_dir"; do
44013       as_dirs="$as_dir $as_dirs"
44014       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44016          X"$as_dir" : 'X\(//\)[^/]' \| \
44017          X"$as_dir" : 'X\(//\)$' \| \
44018          X"$as_dir" : 'X\(/\)' \| \
44019          .     : '\(.\)' 2>/dev/null ||
44020 echo X"$as_dir" |
44021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44022           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44023           /^X\(\/\/\)$/{ s//\1/; q; }
44024           /^X\(\/\).*/{ s//\1/; q; }
44025           s/.*/./; q'`
44026     done
44027     test ! -n "$as_dirs" || mkdir $as_dirs
44028   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44029 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44030    { (exit 1); exit 1; }; }; }
44031
44032       rm -f $ac_file
44033       mv $tmp/config.h $ac_file
44034     fi
44035   else
44036     cat $tmp/config.h
44037     rm -f $tmp/config.h
44038   fi
44039 # Compute $ac_file's index in $config_headers.
44040 _am_stamp_count=1
44041 for _am_header in $config_headers :; do
44042   case $_am_header in
44043     $ac_file | $ac_file:* )
44044       break ;;
44045     * )
44046       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44047   esac
44048 done
44049 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
44050 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44051          X$ac_file : 'X\(//\)[^/]' \| \
44052          X$ac_file : 'X\(//\)$' \| \
44053          X$ac_file : 'X\(/\)' \| \
44054          .     : '\(.\)' 2>/dev/null ||
44055 echo X$ac_file |
44056     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44057           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44058           /^X\(\/\/\)$/{ s//\1/; q; }
44059           /^X\(\/\).*/{ s//\1/; q; }
44060           s/.*/./; q'`/stamp-h$_am_stamp_count
44061 done
44062 _ACEOF
44063 cat >>$CONFIG_STATUS <<\_ACEOF
44064
44065 #
44066 # CONFIG_COMMANDS section.
44067 #
44068 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44069   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44070   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44071   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44072 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44073          X"$ac_dest" : 'X\(//\)[^/]' \| \
44074          X"$ac_dest" : 'X\(//\)$' \| \
44075          X"$ac_dest" : 'X\(/\)' \| \
44076          .     : '\(.\)' 2>/dev/null ||
44077 echo X"$ac_dest" |
44078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44080           /^X\(\/\/\)$/{ s//\1/; q; }
44081           /^X\(\/\).*/{ s//\1/; q; }
44082           s/.*/./; q'`
44083   { if $as_mkdir_p; then
44084     mkdir -p "$ac_dir"
44085   else
44086     as_dir="$ac_dir"
44087     as_dirs=
44088     while test ! -d "$as_dir"; do
44089       as_dirs="$as_dir $as_dirs"
44090       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44092          X"$as_dir" : 'X\(//\)[^/]' \| \
44093          X"$as_dir" : 'X\(//\)$' \| \
44094          X"$as_dir" : 'X\(/\)' \| \
44095          .     : '\(.\)' 2>/dev/null ||
44096 echo X"$as_dir" |
44097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44098           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44099           /^X\(\/\/\)$/{ s//\1/; q; }
44100           /^X\(\/\).*/{ s//\1/; q; }
44101           s/.*/./; q'`
44102     done
44103     test ! -n "$as_dirs" || mkdir $as_dirs
44104   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44105 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44106    { (exit 1); exit 1; }; }; }
44107
44108   ac_builddir=.
44109
44110 if test "$ac_dir" != .; then
44111   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44112   # A "../" for each directory in $ac_dir_suffix.
44113   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44114 else
44115   ac_dir_suffix= ac_top_builddir=
44116 fi
44117
44118 case $srcdir in
44119   .)  # No --srcdir option.  We are building in place.
44120     ac_srcdir=.
44121     if test -z "$ac_top_builddir"; then
44122        ac_top_srcdir=.
44123     else
44124        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44125     fi ;;
44126   [\\/]* | ?:[\\/]* )  # Absolute path.
44127     ac_srcdir=$srcdir$ac_dir_suffix;
44128     ac_top_srcdir=$srcdir ;;
44129   *) # Relative path.
44130     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44131     ac_top_srcdir=$ac_top_builddir$srcdir ;;
44132 esac
44133
44134 # Do not use `cd foo && pwd` to compute absolute paths, because
44135 # the directories may not exist.
44136 case `pwd` in
44137 .) ac_abs_builddir="$ac_dir";;
44138 *)
44139   case "$ac_dir" in
44140   .) ac_abs_builddir=`pwd`;;
44141   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44142   *) ac_abs_builddir=`pwd`/"$ac_dir";;
44143   esac;;
44144 esac
44145 case $ac_abs_builddir in
44146 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44147 *)
44148   case ${ac_top_builddir}. in
44149   .) ac_abs_top_builddir=$ac_abs_builddir;;
44150   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44151   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44152   esac;;
44153 esac
44154 case $ac_abs_builddir in
44155 .) ac_abs_srcdir=$ac_srcdir;;
44156 *)
44157   case $ac_srcdir in
44158   .) ac_abs_srcdir=$ac_abs_builddir;;
44159   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44160   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44161   esac;;
44162 esac
44163 case $ac_abs_builddir in
44164 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44165 *)
44166   case $ac_top_srcdir in
44167   .) ac_abs_top_srcdir=$ac_abs_builddir;;
44168   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44169   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44170   esac;;
44171 esac
44172
44173
44174   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44175 echo "$as_me: executing $ac_dest commands" >&6;}
44176   case $ac_dest in
44177     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44178   # Strip MF so we end up with the name of the file.
44179   mf=`echo "$mf" | sed -e 's/:.*$//'`
44180   # Check whether this is an Automake generated Makefile or not.
44181   # We used to match only the files named `Makefile.in', but
44182   # some people rename them; so instead we look at the file content.
44183   # Grep'ing the first line is not enough: some people post-process
44184   # each Makefile.in and add a new line on top of each file to say so.
44185   # So let's grep whole file.
44186   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44187     dirpart=`(dirname "$mf") 2>/dev/null ||
44188 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44189          X"$mf" : 'X\(//\)[^/]' \| \
44190          X"$mf" : 'X\(//\)$' \| \
44191          X"$mf" : 'X\(/\)' \| \
44192          .     : '\(.\)' 2>/dev/null ||
44193 echo X"$mf" |
44194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44195           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44196           /^X\(\/\/\)$/{ s//\1/; q; }
44197           /^X\(\/\).*/{ s//\1/; q; }
44198           s/.*/./; q'`
44199   else
44200     continue
44201   fi
44202   # Extract the definition of DEPDIR, am__include, and am__quote
44203   # from the Makefile without running `make'.
44204   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44205   test -z "$DEPDIR" && continue
44206   am__include=`sed -n 's/^am__include = //p' < "$mf"`
44207   test -z "am__include" && continue
44208   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44209   # When using ansi2knr, U may be empty or an underscore; expand it
44210   U=`sed -n 's/^U = //p' < "$mf"`
44211   # Find all dependency output files, they are included files with
44212   # $(DEPDIR) in their names.  We invoke sed twice because it is the
44213   # simplest approach to changing $(DEPDIR) to its actual value in the
44214   # expansion.
44215   for file in `sed -n "
44216     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44217        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44218     # Make sure the directory exists.
44219     test -f "$dirpart/$file" && continue
44220     fdir=`(dirname "$file") 2>/dev/null ||
44221 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44222          X"$file" : 'X\(//\)[^/]' \| \
44223          X"$file" : 'X\(//\)$' \| \
44224          X"$file" : 'X\(/\)' \| \
44225          .     : '\(.\)' 2>/dev/null ||
44226 echo X"$file" |
44227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44228           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44229           /^X\(\/\/\)$/{ s//\1/; q; }
44230           /^X\(\/\).*/{ s//\1/; q; }
44231           s/.*/./; q'`
44232     { if $as_mkdir_p; then
44233     mkdir -p $dirpart/$fdir
44234   else
44235     as_dir=$dirpart/$fdir
44236     as_dirs=
44237     while test ! -d "$as_dir"; do
44238       as_dirs="$as_dir $as_dirs"
44239       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44240 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44241          X"$as_dir" : 'X\(//\)[^/]' \| \
44242          X"$as_dir" : 'X\(//\)$' \| \
44243          X"$as_dir" : 'X\(/\)' \| \
44244          .     : '\(.\)' 2>/dev/null ||
44245 echo X"$as_dir" |
44246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44247           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44248           /^X\(\/\/\)$/{ s//\1/; q; }
44249           /^X\(\/\).*/{ s//\1/; q; }
44250           s/.*/./; q'`
44251     done
44252     test ! -n "$as_dirs" || mkdir $as_dirs
44253   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44254 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44255    { (exit 1); exit 1; }; }; }
44256
44257     # echo "creating $dirpart/$file"
44258     echo '# dummy' > "$dirpart/$file"
44259   done
44260 done
44261  ;;
44262     default )
44263 chmod +x tests/run
44264 date > stamp-h
44265 BACKENDSC="servers/slapd/backends.c"
44266 echo "Making $BACKENDSC"
44267 rm -f $BACKENDSC
44268 cat > $BACKENDSC << ENDX
44269 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44270  *
44271  * Copyright 1998-2005 The OpenLDAP Foundation.
44272  * All rights reserved.
44273  *
44274  * Redistribution and use in source and binary forms, with or without
44275  * modification, are permitted only as authorized by the OpenLDAP
44276  * Public License.
44277  *
44278  * A copy of this license is available in the file LICENSE in the
44279  * top-level directory of the distribution or, alternatively, at
44280  * <http://www.OpenLDAP.org/license.html>.
44281  */
44282 /* This file is automatically generated by configure; please do not edit. */
44283
44284 #include "portable.h"
44285 #include "slap.h"
44286
44287 ENDX
44288 if test "${STATIC_BACKENDS}"; then
44289         for b in config ${STATIC_BACKENDS}; do
44290                 bb=`echo "${b}" | sed -e 's/back-//'`
44291                 cat >> $BACKENDSC << ENDX
44292 extern BI_init ${bb}_back_initialize;
44293 ENDX
44294         done
44295
44296         cat >> $BACKENDSC << ENDX
44297
44298 BackendInfo slap_binfo[] = {
44299 ENDX
44300
44301         for b in config ${STATIC_BACKENDS}; do
44302                 bb=`echo "${b}" | sed -e 's/back-//'`
44303                 echo "    Add ${bb} ..."
44304                 cat >> $BACKENDSC << ENDX
44305         { "${bb}", ${bb}_back_initialize },
44306 ENDX
44307         done
44308
44309         cat >> $BACKENDSC << ENDX
44310         { NULL, NULL },
44311 };
44312
44313 /* end of generated file */
44314 ENDX
44315 fi
44316
44317 echo Please run \"make depend\" to build dependencies
44318  ;;
44319   esac
44320 done
44321 _ACEOF
44322
44323 cat >>$CONFIG_STATUS <<\_ACEOF
44324
44325 { (exit 0); exit 0; }
44326 _ACEOF
44327 chmod +x $CONFIG_STATUS
44328 ac_clean_files=$ac_clean_files_save
44329
44330
44331 # configure is writing to config.log, and then calls config.status.
44332 # config.status does its own redirection, appending to config.log.
44333 # Unfortunately, on DOS this fails, as config.log is still kept open
44334 # by configure, so config.status won't be able to write to it; its
44335 # output is simply discarded.  So we exec the FD to /dev/null,
44336 # effectively closing config.log, so it can be properly (re)opened and
44337 # appended to by config.status.  When coming back to configure, we
44338 # need to make the FD available again.
44339 if test "$no_create" != yes; then
44340   ac_cs_success=:
44341   ac_config_status_args=
44342   test "$silent" = yes &&
44343     ac_config_status_args="$ac_config_status_args --quiet"
44344   exec 5>/dev/null
44345   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44346   exec 5>>config.log
44347   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44348   # would make configure fail if this is the last instruction.
44349   $ac_cs_success || { (exit 1); exit 1; }
44350 fi
44351